/* CoTECh model study: the approved black/white prototype, scoped to its home section. */
.cotech-model {
  --cm-paper: #090a0a;
  --cm-ink: #fff;
  --cm-muted: #b8bdc0;
  --cm-label: #a5adb2;
  --cm-line: #303638;
  --cm-gutter: var(--page-margin, 40px);
  --cm-duration: 5.6s;
  --cm-ease: cubic-bezier(.1, .72, .16, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(calc(100svh / var(--jet-zoom, 1)), 900px);
  padding: 48px var(--cm-gutter) 8px;
  overflow: hidden;
  background: var(--cm-paper);
  color: var(--cm-ink);
  font-family: var(--jet-font-family, "Plus Jakarta Sans", Arial, sans-serif);
  text-align: left;
  -webkit-font-smoothing: antialiased;
  scroll-margin-top: 32px;
}
.cotech-model *,
.cotech-model *::before,
.cotech-model *::after { box-sizing: border-box; }
.cotech-model [hidden] { display: none !important; }
.cotech-model ::selection { background: #fff; color: #090a0a; }
.cotech-model button {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.cotech-model button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}
.cotech-model__top { position: relative; margin: 0 0 24px; }
.cotech-model__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
  padding-right: 150px;
  color: var(--cm-label);
  font-size: 12px;
  font-weight: 550;
  line-height: 18px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.cotech-model__eyebrow::before {
  width: 16px;
  height: 2px;
  flex: 0 0 16px;
  background: var(--cm-ink);
  content: "";
}
.cotech-model__title {
  margin: 0;
  color: var(--cm-ink);
  font-size: 52px;
  font-weight: 450;
  line-height: 55px;
  letter-spacing: -.03em;
}
.cotech-model [data-cm-pause] {
  position: absolute;
  top: -12px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 0 10px 12px;
  color: var(--cm-muted);
  font-size: 12px;
  line-height: 18px;
}
.cotech-model [data-cm-pause]:hover { color: var(--cm-ink); }
.cotech-model [data-cm-pause] svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}
.cotech-model__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  flex: 1;
  min-height: 460px;
  min-width: 0;
}
.cotech-model__left { align-self: center; min-width: 0; }
.cotech-model__index {
  margin: 0 0 18px;
  color: var(--cm-label);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.cotech-model__word {
  margin: 0;
  color: var(--cm-ink);
  font-size: 64px;
  font-weight: 450;
  line-height: 66px;
  letter-spacing: -.04em;
}
.cotech-model__stage {
  position: relative;
  align-self: center;
  width: 100%;
  min-width: 0;
  height: clamp(380px, calc(58svh / var(--jet-zoom, 1)), 500px);
  min-height: 380px;
  margin: 24px 0;
  isolation: isolate;
}
.cotech-model__stage canvas {
  position: absolute;
  /* the canvas bleeds 25% above and below the stage (transparent), so a model taller than the stage is
     not cut; the camera widens its view to match, so the models keep their size (home-cotech-model.js) */
  top: -25%;
  left: 0;
  display: block;
  width: 100% !important;
  max-width: none;
  height: 150% !important;
  pointer-events: none;
}
.cotech-model__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  margin: 0;
  padding: 32px;
  color: var(--cm-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.cotech-model__right {
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 360px;
  min-width: 0;
}
.cotech-model__text {
  max-width: 400px;
  margin: 0 0 40px;
  color: var(--cm-muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}
.cotech-model__text strong { color: var(--cm-ink); font-weight: 500; }
.cotech-model__statement {
  margin: 0;
  color: var(--cm-ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}
.cotech-model__statement span { color: var(--cm-muted); }
.cotech-model__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex-shrink: 0;
  margin: 0;
  border-top: 1px solid var(--cm-line);
}
.cotech-model__nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  min-height: 82px;
  padding: 26px 12px 30px 0;
  color: var(--cm-label);
  font-size: 22px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: -.02em;
  transition: color .4s;
}
.cotech-model__nav button small {
  min-width: 22px;
  color: var(--cm-label);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: .02em;
}
.cotech-model__nav button::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cm-ink);
  transform: scaleX(0);
  transform-origin: left;
  content: "";
}
.cotech-model__nav button[aria-pressed="true"],
.cotech-model__nav button:hover { color: var(--cm-ink); }
.cotech-model__nav button[aria-pressed="true"]::before { transform: scaleX(1); }
.cotech-model.is-playing .cotech-model__nav button[aria-pressed="true"]::before {
  animation: cotech-model-progress var(--cm-duration) linear forwards;
}
.cotech-model.is-paused .cotech-model__nav button[aria-pressed="true"]::before {
  animation-play-state: paused;
}
.cotech-model__status,
.cotech-model [data-cm-status] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@keyframes cotech-model-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (max-width: 1100px) and (min-width: 801px) {
  .cotech-model__body { gap: 24px; }
  .cotech-model__word { font-size: 52px; line-height: 56px; }
  .cotech-model__text { font-size: 16px; }
  .cotech-model__nav button { gap: 12px; font-size: 20px; }
}
@media (max-width: 800px) {
  .cotech-model { --cm-gutter: 20px; min-height: 0; padding-top: 48px; }
  .cotech-model__title { font-size: 38px; line-height: 42px; }
  .cotech-model__eyebrow { margin-bottom: 24px; }
  .cotech-model__body { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .cotech-model__stage { order: -1; height: 380px; margin: 8px 0 0; }
  .cotech-model__word { font-size: 44px; line-height: 48px; }
  .cotech-model__right { justify-self: start; max-width: 480px; }
  .cotech-model__text { margin-bottom: 28px; font-size: 16px; }
  .cotech-model__statement { margin-bottom: 40px; font-size: 16px; }
  .cotech-model__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cotech-model__nav button { min-height: 72px; padding-block: 22px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cotech-model *, .cotech-model *::before, .cotech-model *::after {
    animation: none !important;
    transition: none !important;
  }
  .cotech-model__nav button[aria-pressed="true"]::before { transform: scaleX(1); }
}

/* Mobile: the pause control keeps only its icon */
@media (max-width: 809px) {
  .cotech-model [data-cm-pause] { font-size: 0; gap: 0; }
  .cotech-model [data-cm-pause] svg { width: 16px; height: 16px; }
}

/* Mobile, lighter: smaller object, no closing statement, the four words in one scrolling row */
@media (max-width: 809px) {
  .cotech-model .cotech-model__statement { display: none; }
  .cotech-model .cotech-model__stage { min-height: 0; height: 250px; }
  .cotech-model .cotech-model__nav { display: flex; grid-template-columns: none; gap: 24px; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--page-margin, 20px)); padding-right: var(--page-margin, 20px); }
  .cotech-model .cotech-model__nav::-webkit-scrollbar { display: none; }
  .cotech-model .cotech-model__nav button { flex: 0 0 auto; padding-right: 0; white-space: nowrap; }
}

/* Daniele 2026-11-02: the advancing status bars in red, and the initials more visible (red) */
.cotech-model__nav button::before { background: var(--red, #e5231f); }
.cotech-model__nav button small { color: var(--red, #e5231f); font-size: 14px; font-weight: 550; }
