/* ==========================================================================
   Hexacell — homepage sections (client-finalised order)
   ========================================================================== */

/* ---------- Hero (Hexa 2) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: min(100svh, 980px);
  overflow: hidden;
  background: var(--blue-ink);
  isolation: isolate;
}
@media (min-height: 1000px) { .hero { min-height: 900px; } }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-poster, .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  transform-origin: 60% 50%;
}
.hero-video { opacity: 0; transition: opacity 900ms var(--ease-out); }
.hero.is-playing .hero-video { opacity: 1; }
.js-motion .hero .hero-poster, .js-motion .hero .hero-video { animation: hero-settle 2.4s var(--ease-out) both; }
@keyframes hero-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(0 24 33 / 0.55) 0%, rgb(0 24 33 / 0) 24%),
    linear-gradient(0deg, rgb(0 24 33 / 0.78) 0%, rgb(0 24 33 / 0.1) 46%),
    linear-gradient(90deg, rgb(0 30 42 / 0.82) 0%, rgb(0 30 42 / 0.5) 38%, rgb(0 30 42 / 0) 70%);
}
.hero-hexfield {
  position: absolute;
  inset: auto auto 0 0;
  width: 70%;
  height: 70%;
  background: var(--hex-line-dark) left bottom / 40px 69.3px;
  -webkit-mask-image: radial-gradient(ellipse at 0% 100%, #000 0%, transparent 62%);
  mask-image: radial-gradient(ellipse at 0% 100%, #000 0%, transparent 62%);
  opacity: 0.7;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 56px);
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 28px;
}
.hero-copy { max-width: 880px; }
.hero-eyebrow { color: var(--sky-ink); }
.hero-title { color: var(--white); margin-bottom: 22px; }
.hl {
  color: inherit;
  padding: 0 0.1em;
  margin: 0 -0.04em;
  border-radius: 6px;
  background: linear-gradient(var(--blue), var(--blue)) no-repeat 0 58% / 100% 82%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.js-motion .hero .hl { background-size: 0% 82%; transition: background-size 900ms var(--ease-out) 700ms; }
.js-motion .hero .split-lines.is-in .hl { background-size: 100% 82%; }
.js-motion .hero .split-lines.is-in .line:nth-child(2) .hl { transition-delay: 950ms; }
.hero-lede { max-width: 44ch; color: rgb(255 255 255 / 0.84); }
.hero-actions { margin-top: 30px; }
.js-motion .hero-eyebrow, .js-motion .hero-lede, .js-motion .hero-actions, .js-motion .hero-rail {
  animation: hero-in 1100ms var(--ease-out) both;
}
.js-motion .hero-eyebrow { animation-delay: 150ms; }
.js-motion .hero-lede { animation-delay: 650ms; }
.js-motion .hero-actions { animation-delay: 800ms; }
.js-motion .hero-rail { animation-delay: 1100ms; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-rail {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.16);
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.8);
  text-decoration: none;
}
.scroll-cue__line { position: relative; width: 1px; height: 30px; background: rgb(255 255 255 / 0.25); overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: -40%;
  width: 1px; height: 40%; background: var(--white);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue { to { top: 100%; } }
.hero-note { margin-left: auto; font-size: 0.8rem; color: rgb(255 255 255 / 0.66); }
.hero-toggle {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.35);
  background: rgb(0 0 0 / 0.15);
  color: var(--white);
  transition: background-color var(--t-ui), transform var(--t-ui) var(--ease-out);
}
.hero-toggle:hover { background: rgb(255 255 255 / 0.15); transform: scale(1.05); }
.hero-toggle svg { width: 18px; height: 18px; }
.hero-toggle .i-play { display: none; }
.hero-toggle[aria-pressed="true"] .i-play { display: block; }
.hero-toggle[aria-pressed="true"] .i-pause { display: none; }
.hero:not(.has-video) .hero-toggle { display: none; }
@media (max-width: 599px) {
  .hero-note { display: none; }
  .hero-toggle { margin-left: auto; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-poster, .hero-video { object-position: 66% 40%; }
  .hero-veil {
    background:
      linear-gradient(180deg, rgb(0 24 33 / 0.5) 0%, rgb(0 24 33 / 0) 26%),
      linear-gradient(0deg, rgb(0 24 33 / 0.94) 0%, rgb(0 24 33 / 0.72) 42%, rgb(0 24 33 / 0.1) 72%);
  }
}

/* ---------- Marquee (Hexa 2) ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
  border-block: 1px solid rgb(255 255 255 / 0.08);
}
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; }
.marquee-group span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding: 19px 0 19px 34px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-group span::after {
  content: "";
  width: 11px; height: 12.7px;
  background: var(--peach);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  opacity: 0.9;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- About (Hexa 2) ---------- */
.about { overflow: hidden; }
.about-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 80px; } }
.about-copy { position: relative; }
.about-word {
  position: absolute;
  left: -0.04em;
  top: -0.62em;
  z-index: -1;
  font-family: var(--font-ui);
  font-size: clamp(4.5rem, 2rem + 9vw, 10.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgb(172 116 71 / 0.28);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.about .h2 { max-width: 13ch; }
.about-lede { margin-top: 22px; max-width: 46ch; }
.about .btn-row { margin-top: 32px; }
.about-media { position: relative; justify-self: center; width: min(100%, 500px); }
.about-frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--kraft-paper);
  box-shadow: var(--shadow-lg);
}
.about-frame img { width: 100%; height: 112%; object-fit: cover; margin-top: -6%; }
.about-media figcaption { margin-top: 14px; }
/* ---------- Structure (Hexa 2) ---------- */
.structure {
  overflow: hidden;
  background: linear-gradient(150deg, var(--blue) 0%, #006a8d 48%, var(--blue-deep) 100%);
}
.structure-bg {
  position: absolute;
  inset: 0;
  background: var(--hex-line-dark) center / 48px 83.1px;
  -webkit-mask-image: radial-gradient(ellipse at 85% 10%, #000 0%, transparent 60%);
  mask-image: radial-gradient(ellipse at 85% 10%, #000 0%, transparent 60%);
  pointer-events: none;
}
.structure .container { position: relative; }
.structure-stage { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 960px) { .structure-stage { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 28px; } }
.structure-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 1rem + 1.5vw, 36px);
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -40px rgb(0 20 30 / 0.65);
}
.structure-svg { width: 100%; height: auto; flex: 1; }
.st-grid polygon {
  fill: transparent;
  stroke: var(--kraft);
  stroke-width: 1.6;
  stroke-linejoin: round;
  transition: fill 520ms var(--ease-out), stroke 520ms var(--ease-out), transform 620ms var(--ease-spring);
  transform-box: fill-box;
  transform-origin: center;
}
.st-grid polygon.is-lit { fill: rgb(0 122 162 / 0.9); stroke: var(--blue-deep); transform: scale(0.92); }
.st-grid polygon.is-soft { fill: rgb(244 199 167 / 0.75); stroke: var(--kraft); }
.js-motion .st-grid polygon { stroke-dasharray: 180; stroke-dashoffset: 180; }
.js-motion .structure-card.is-drawn .st-grid polygon { stroke-dashoffset: 0; transition: stroke-dashoffset 1400ms var(--ease-out) var(--sd, 0ms), fill 520ms var(--ease-out), stroke 520ms, transform 620ms var(--ease-spring); }
.structure-card figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.structure-card figcaption .caption { color: var(--muted); }
.structure-state { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700; color: var(--blue); }
.structure-thumb {
  position: absolute;
  right: clamp(16px, 1rem + 1vw, 32px);
  top: clamp(16px, 1rem + 1vw, 32px);
  width: clamp(82px, 4rem + 3vw, 120px);
  padding: 6px 6px 8px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: rotate(3deg);
}
.structure-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.structure-thumb span { display: block; margin-top: 6px; text-align: center; font-family: var(--font-ui); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.structure-topics { display: grid; gap: 14px; align-content: center; }
.structure-topic {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 18px;
  background: var(--white);
  color: var(--muted);
  box-shadow: 0 18px 40px -26px rgb(0 20 30 / 0.7);
  cursor: default;
  outline-offset: 4px;
  transition: transform 520ms var(--ease-out), box-shadow 520ms var(--ease-out), background-color 400ms;
}
.structure-topic::before {
  content: "";
  position: absolute;
  left: 0; top: 22px; bottom: 22px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--kraft);
  transform: scaleY(0);
  transition: transform 480ms var(--ease-out);
}
.structure-topic .h3 { color: var(--espresso); margin-bottom: 6px; }
.structure-topic p { font-size: 0.97rem; line-height: 1.55; }
.structure-topic__idx {
  display: grid; place-items: center;
  width: 42px; height: 48px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--sky-soft);
  color: var(--blue-deep);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 800;
  transition: background-color 400ms, color 400ms;
}
/* Client change 11 Oct 2026 (revised): the ACTIVE card — the one the diagram is showing, whether
   auto-cycled, hovered, focused or clicked (main.js initStructure sets .is-active on exactly one card) —
   is dark brown with a golden left bar and light text. Without JS, :hover / :focus-visible get the same look.
   Contrast (computed): #fff on #4a2e19 = 12.4:1, #f3e3d3 on #4a2e19 = 9.9:1, idx #221810 on #d9a66f = 8.0:1 (all AAA). */
.structure-topic {
  transition: transform 480ms var(--ease-out), box-shadow 480ms var(--ease-out), background-color 420ms var(--ease-out), color 420ms var(--ease-out);
}
.structure-topic .h3 { transition: color 420ms var(--ease-out); }
.structure-topic::before { transition: transform 450ms var(--ease-out), background-color 420ms var(--ease-out), width 300ms var(--ease-out); }
.structure-topic__idx { transition: background-color 420ms var(--ease-out), color 420ms var(--ease-out); }
.js .structure-topic.is-active, .no-js .structure-topic:hover, .no-js .structure-topic:focus-visible {
  transform: translateX(6px);
  background: #4a2e19;
  color: #f3e3d3;
  box-shadow: 0 26px 50px -24px rgb(0 0 0 / 0.75), inset 0 0 0 1px rgb(217 166 111 / 0.25);
}
.js .structure-topic.is-active::before, .no-js .structure-topic:hover::before, .no-js .structure-topic:focus-visible::before { transform: none; width: 5px; background: #d9a66f; top: 14px; bottom: 14px; }
.js .structure-topic.is-active .h3, .no-js .structure-topic:hover .h3, .no-js .structure-topic:focus-visible .h3 { color: var(--white); }
.js .structure-topic.is-active .structure-topic__idx, .no-js .structure-topic:hover .structure-topic__idx, .no-js .structure-topic:focus-visible .structure-topic__idx { background: #d9a66f; color: var(--espresso); }
.structure-topic:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; }
/* once revealed, hand transitions back to the card (the reveal rule would otherwise delay/omit bg + colour,
   and its transform:none would cancel the active shift) */
.js-motion .structure-topic[data-reveal].is-in {
  transition: opacity var(--t-reveal) var(--ease-out), transform 480ms var(--ease-out), box-shadow 480ms var(--ease-out), background-color 420ms var(--ease-out), color 420ms var(--ease-out);
  transition-delay: 0ms;
}
.js-motion .structure-topic[data-reveal].is-in.is-active { transform: translateX(6px); }
@media (max-width: 959px) { .js .structure-topic.is-active, .no-js .structure-topic:hover, .no-js .structure-topic:focus-visible, .js-motion .structure-topic[data-reveal].is-in.is-active { transform: none; } }

@media (prefers-reduced-motion: reduce) { .structure-topic, .structure-topic .h3, .structure-topic::before, .structure-topic__idx { transition: none; } }

/* ---------- Products widget (Hexa 2, improved) ---------- */
.products {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgb(138 177 196 / 0.22), transparent 70%),
    var(--paper);
}
.products::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--hex-line-light) center / 46px 79.7px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%);
  mask-image: linear-gradient(180deg, #000, transparent 55%);
  pointer-events: none;
}
.products .container { position: relative; }
.pw-tabs-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.pw-tabs {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid rgb(var(--ink-rgb) / 0.08);
  box-shadow: var(--shadow-sm);
}
.pw-indicator {
  position: absolute;
  top: 6px; bottom: 6px;
  left: 0;
  width: 0;
  border-radius: var(--r-pill);
  background: var(--blue);
  box-shadow: 0 8px 18px -8px rgb(var(--brand-rgb) / 0.7);
  transform: translateX(var(--x, 6px));
  width: var(--w, 0);
  transition: transform 560ms var(--ease-out), width 560ms var(--ease-out);
}
.pw-tabs [role="tab"] {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px 0 8px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: color 400ms var(--ease-out);
}
.pw-tabs [role="tab"]:hover { color: var(--espresso); }
.pw-tabs [role="tab"][aria-selected="true"] { color: var(--white); }
.pw-tab-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sky-soft); color: var(--blue); transition: background-color 400ms, color 400ms; }
.pw-tab-ico svg { width: 18px; height: 18px; }
[aria-selected="true"] .pw-tab-ico { background: rgb(255 255 255 / 0.18); color: var(--white); }
.pw-tab-short { display: none; }
@media (min-width: 641px) and (max-width: 900px) {
  .pw-tab-long { display: none; }
  .pw-tab-short { display: inline; }
}
.pw-count {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: var(--r-pill);
  background: rgb(var(--ink-rgb) / 0.07);
  font-size: 0.72rem;
}
[aria-selected="true"] .pw-count { background: rgb(255 255 255 / 0.2); }
.no-js .pw-indicator { display: none; }

.pw-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pw-cell { min-width: 0; }
.pw-panel.is-entering .pw-cell { animation: pw-in 700ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes pw-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.pw-progress { display: none; }
.pw-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  height: 100%;
  min-height: 360px;
  padding: 28px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--blue-deep) var(--hex-line-dark) center / 34px 58.9px;
  color: rgb(255 255 255 / 0.84);
}
.pw-cta::before {
  content: "";
  position: absolute;
  inset: -30% -30% auto auto;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(244 199 167 / 0.35), transparent 65%);
}
.pw-cta .h3 { color: var(--white); position: relative; }
.pw-cta p, .pw-cta .btn { position: relative; }
.pw-cta .caption { color: var(--peach); }
.pw-cta .btn { align-self: flex-start; margin-top: 8px; }
.pw-cta__hex {
  position: absolute;
  top: 28px; left: 28px;
  width: 56px; height: 64px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--peach);
  opacity: 0.9;
}

@media (max-width: 899px) {
  .pw-rail {
    display: flex;
    gap: 16px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .pw-rail::-webkit-scrollbar { display: none; }
  .pw-cell { flex: 0 0 min(78vw, 340px); scroll-snap-align: start; }
  .pw-progress { display: block; height: 3px; margin-top: 14px; border-radius: 3px; background: rgb(var(--ink-rgb) / 0.1); overflow: hidden; }
  .pw-progress span { display: block; height: 100%; width: var(--rw, 33%); border-radius: inherit; background: var(--blue); transform: translateX(var(--rx, 0%)); transition: transform 200ms linear; }
}
@media (max-width: 640px) {
  .pw-tabs { display: grid; width: 100%; }
  .pw-tab-long { display: none; }
  .pw-tab-short { display: inline; }
  .pw-tabs [role="tab"] { padding: 0 8px; gap: 6px; font-size: 0.85rem; }
  .pw-tab-ico { display: none; }
}

@keyframes hex-pulse { from { opacity: 0.35; transform: scale(0.85); } to { opacity: 0; transform: scale(1.45); } }

/* ---------- Cinematic (Hexa 2) ---------- */
.cinematic {
  position: relative;
  background:
    linear-gradient(165deg, var(--blue-night) 0%, var(--blue-ink) 46%, var(--espresso) 100%);
  overflow: hidden;
}
.cine-pin {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 40px) 56px;
  overflow: hidden;
}
.cine-honeycomb { position: absolute; inset: 0; width: 100%; height: 100%; }
.no-js .cine-honeycomb, .cine-honeycomb.is-fallback { display: none; }
.cinematic::before {
  /* CSS fallback / first paint: tessellated honeycomb with shared edges */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hex-line-dark) center / 52px 90px;
  opacity: 0.55;
}
.cinematic.has-canvas::before { opacity: 0; transition: opacity 600ms; }
.cine-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 50% at var(--gx, 70%) var(--gy, 40%), rgb(0 122 162 / 0.35), transparent 70%),
    radial-gradient(30% 40% at 15% 90%, rgb(172 116 71 / 0.28), transparent 70%);
  pointer-events: none;
}
.cine-grid { position: relative; display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .cine-grid { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.5fr); gap: 56px; } }
.cine-lede { margin-top: 18px; max-width: 40ch; }
.cine-steps { list-style: none; margin-top: 30px; counter-reset: s; }
.cine-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  color: rgb(255 255 255 / 0.55);
  font-weight: 500;
  transition: color 500ms var(--ease-out);
}
.cine-steps li:last-child { border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.cine-steps li span { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; color: rgb(255 255 255 / 0.4); transition: color 500ms; }
.cine-steps li::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px; width: 100%;
  background: var(--peach);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease-out);
}
.cine-steps li.is-active { color: var(--white); }
.cine-steps li.is-active span { color: var(--peach); }
.cine-steps li.is-active::after { transform: scaleX(1); }
.cine-skip { margin-top: 22px; }
.cine-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--stage);
  box-shadow: 0 50px 90px -40px rgb(0 0 0 / 0.75), 0 0 0 1px rgb(255 255 255 / 0.1);
}
.cine-poster, .cine-canvas, .cine-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine-canvas { opacity: 0; transition: opacity 300ms; }
.cine-canvas.is-active { opacity: 1; }
.cine-video { opacity: 0; pointer-events: none; }
.cinematic[data-mode="video"] .cine-video.is-playing { opacity: 1; }
.cine-play {
  position: absolute;
  left: 50%; bottom: 22px;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px 0 6px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--espresso);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
  white-space: nowrap;
}
.cine-play__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--white); }
.cine-play__ico svg { width: 14px; height: 14px; }
.cinematic[data-mode="video"] .cine-play { display: inline-flex; }
.cinematic[data-mode="video"] .cine-play[hidden] { display: none; }
.cine-chip { position: absolute; left: 14px; top: 14px; }
.cine-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(0 0 0 / 0.12); }
.cine-progress span { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.cine-desc { margin-top: 14px; font-size: 0.9rem; color: rgb(255 255 255 / 0.72); max-width: 60ch; }
@media (max-width: 1023px) {
  .cine-pin { min-height: 0; padding-block: var(--section-y); }
}

/* ---------- Applications carousel (Hexa 2) ---------- */
.apps { background: var(--white); overflow: hidden; }
.carousel-viewport { overflow: visible; touch-action: pan-y; }
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 800ms var(--ease-out);
  will-change: transform;
  cursor: grab;
  user-select: none;
}
.carousel-track.is-dragging { transition: none; cursor: grabbing; }
.app-slide {
  flex: 0 0 min(88%, 1080px);
  display: grid;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgb(var(--ink-rgb) / 0.07);
  transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out);
}
.app-slide:not(.is-current) { opacity: 0.5; }
.app-slide:not(.is-current) .btn { visibility: hidden; }
.no-js .app-slide { opacity: 1; }
.app-slide__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--stage); }
.app-slide__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1400ms var(--ease-out); pointer-events: none; }
.app-slide.is-current .app-slide__media img { transform: scale(1); }
.app-slide__media--contain { background: var(--hex-line-light) center / 34px 58.9px, linear-gradient(160deg, var(--sky-soft), var(--paper)); display: grid; place-items: center; }
.app-slide__media--contain img { width: auto; height: 82%; max-width: 70%; object-fit: contain; filter: drop-shadow(0 22px 22px rgb(var(--shadow-rgb) / 0.22)); }
.app-slide__media--render img { object-fit: contain; }
.app-slide__media .tag-chip { position: absolute; left: 16px; top: 16px; }
.app-slide__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: clamp(24px, 1rem + 2vw, 48px); }
.app-slide__idx { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; color: var(--kraft-dark); }
.app-slide__copy .h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 500; letter-spacing: -0.03em; }
.app-slide__copy p { color: var(--muted); max-width: 36ch; }
.app-slide__copy .btn { margin-top: 10px; }
@media (min-width: 900px) { .app-slide { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } .app-slide__media { aspect-ratio: auto; min-height: 440px; } }
.carousel-chrome { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dots button {
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  display: grid; place-items: center;
}
.carousel-dots button::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgb(var(--ink-rgb) / 0.18);
  transition: width 500ms var(--ease-out), background-color 400ms;
}
.carousel-dots button[aria-current="true"]::before { width: 30px; background: var(--blue); }
.carousel-nav { display: flex; gap: 10px; }

/* ---------- Matrix / "At a glance" — client change 11 Oct 2026: colours swapped ----------
   Was: peach background, espresso text, kraft hex outlines. Now: espresso background, peach text
   and peach hex outlines (img-000 intent). Contrast: #f4c7a7 on #221810 = 11.6:1. */
.matrix { background: var(--espresso); color: var(--peach); overflow: hidden; }
.matrix::before {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34.64' height='60' viewBox='0 0 34.64 60'%3E%3Cpath d='M17.32 0L34.64 10V30L17.32 40L0 30V10ZM17.32 40V60' fill='none' stroke='%23f4c7a7' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E") center / 58px 100.5px;
  -webkit-mask-image: radial-gradient(ellipse at 100% 100%, #000 0%, transparent 60%);
  mask-image: radial-gradient(ellipse at 100% 100%, #000 0%, transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}
.matrix .container { position: relative; }
.matrix .eyebrow { color: var(--peach); }
.matrix .eyebrow .idx { color: var(--kraft-light); }
.matrix .eyebrow .idx::after { background: currentColor; }
.matrix .h2 { color: var(--peach); }
.matrix .em { color: var(--white); }
.matrix-head { margin-bottom: clamp(36px, 2rem + 2vw, 64px); }
.matrix-head .h2 { max-width: 18ch; }
.matrix-grid { display: grid; gap: 0; }
@media (min-width: 700px) { .matrix-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.metric {
  position: relative;
  padding: 28px 28px 30px 0;
  border-top: 1px solid rgb(244 199 167 / 0.24);
}
@media (min-width: 700px) {
  .metric { padding: 30px 24px 8px; border-top: 0; border-left: 1px solid rgb(244 199 167 / 0.24); }
  .metric:first-child { padding-left: 0; border-left: 0; }
}
.metric-hex {
  position: absolute;
  right: 24px; top: 26px;
  width: 64px;
  fill: none;
  stroke: var(--peach);
  stroke-width: 2;
  opacity: 0.55;
  stroke-dasharray: 340;
  stroke-dashoffset: 0;
}
.js-motion .metric-hex { stroke-dashoffset: 340; transition: stroke-dashoffset 1600ms var(--ease-out) calc(var(--d, 0ms) + 200ms); }
.js-motion .metric.is-in .metric-hex { stroke-dashoffset: 0; }
.metric-k { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; color: var(--kraft-light); }
.metric-v {
  margin: 12px 0 10px;
  font-size: clamp(4rem, 2.6rem + 4.6vw, 7.6rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--peach);
}
.metric-v small { font-size: 0.42em; font-weight: 500; letter-spacing: -0.02em; color: var(--kraft-light); margin-left: 4px; vertical-align: 0.9em; }
.metric-l { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; color: var(--peach); }
.metric-n { margin-top: 6px; color: rgb(244 199 167 / 0.82); font-size: 0.95rem; max-width: 30ch; }

/* ---------- Proof — deep Coast blue (was espresso; changed 11 Oct 2026 so it doesn't merge with
   the now-espresso "At a glance" section directly above) ---------- */
.proof {
  background:
    radial-gradient(50% 60% at 0% 0%, rgb(0 122 162 / 0.35), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgb(172 116 71 / 0.22), transparent 70%),
    var(--blue-night);
  overflow: hidden;
}
.cert-feature {
  display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 18px;
  border: 1px solid rgb(244 199 167 / 0.35); background: rgb(255 255 255 / 0.05); max-width: 640px;
}
.cert-feature .cert-hex { width: 54px; height: 62px; }
.cert-feature .caption { color: var(--sky-ink); }
.cert-feature__name { margin-top: 4px; color: var(--white); font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem); font-weight: 600; letter-spacing: -0.01em; }
.cert-row { display: grid; gap: 12px; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cert {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 0.12);
  background: rgb(255 255 255 / 0.03);
  transition: border-color 400ms, background-color 400ms, transform 500ms var(--ease-out);
}
.cert:hover { border-color: rgb(244 199 167 / 0.5); background: rgb(255 255 255 / 0.06); transform: translateY(-3px); }
.cert-hex {
  display: grid; place-items: center;
  width: 46px; height: 52px; flex: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: rgb(244 199 167 / 0.14);
  color: var(--peach);
}
.cert-hex svg { width: 22px; }
.cert > span:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cert strong { color: var(--white); font-weight: 600; }
.voices {
  display: grid;
  margin-top: 20px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12);
}
@media (min-width: 900px) { .voices { grid-template-columns: 280px 1fr; } }
.voices-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: rgb(255 255 255 / 0.04);
}
@media (max-width: 899px) { .voices-side { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; } }
.voices-count { font-size: 2.4rem; font-weight: 300; letter-spacing: -0.04em; color: var(--white); line-height: 1; font-variant-numeric: tabular-nums; }
.voices-count span:last-child { color: rgb(255 255 255 / 0.45); }
@media (min-width: 900px) { .voices-nav { margin-top: auto; } }
.voices-nav { display: flex; gap: 10px; }
.voices-stage { display: grid; background: var(--paper); color: var(--ink); }
.voice {
  grid-area: 1 / 1;
  margin: 0;
  padding: clamp(28px, 1.5rem + 2.5vw, 64px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out), visibility 0s linear 700ms;
}
.voice.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 600ms var(--ease-out) 120ms, transform 700ms var(--ease-out) 120ms, visibility 0s; }
.voice-mark { display: block; height: 0.55em; font-size: 5.5rem; line-height: 1; color: var(--kraft); font-family: Georgia, serif; }
.voice p { margin-top: 18px; font-size: clamp(1.25rem, 1rem + 1.05vw, 1.95rem); line-height: 1.38; letter-spacing: -0.02em; color: var(--espresso); max-width: 34ch; }
.voice footer { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.voice footer > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.voice footer strong { color: var(--espresso); }
.voice footer > span:last-child > span { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.voice-avatar {
  display: grid; place-items: center;
  width: 50px; height: 56px; flex: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--kraft);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.85rem;
}
.voices-stage .placeholder-flag { color: var(--kraft-dark); background: rgb(244 199 167 / 0.35); }

/* ---------- Small cells (Hexa 1) — connected kraft honeycomb ---------- */
.cells {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 78vh, 780px);
  overflow: hidden;
  background: var(--kraft-paper);
}
.cells-field {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / 0.22) 0%, rgb(0 0 0 / 0.35) 30%, #000 58%);
  mask-image: linear-gradient(90deg, rgb(0 0 0 / 0.22) 0%, rgb(0 0 0 / 0.35) 30%, #000 58%);
}
.cells-field::before {
  /* CSS fallback while canvas boots / without JS: connected kraft cells */
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60.62' height='105' viewBox='0 0 60.62 105'%3E%3Cpath d='M30.31 0L60.62 17.5V52.5L30.31 70L0 52.5V17.5ZM30.31 70V105' fill='none' stroke='%23ac7447' stroke-width='3'/%3E%3C/svg%3E") center / 60.62px 105px;
  opacity: 0.6;
}
.cells-field.has-canvas::before { display: none; }
.cells-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.cells-inner { position: relative; pointer-events: none; }
.cells-copy { max-width: 520px; padding-block: var(--section-y); pointer-events: auto; }
.cells-copy::before {
  content: "";
  position: absolute;
  inset: -10% auto -10% -30vw;
  width: calc(30vw + 640px);
  background: radial-gradient(ellipse at 40% 50%, var(--kraft-paper) 30%, rgb(243 232 220 / 0) 70%);
  z-index: -1;
  pointer-events: none;
}
.cells .em { color: var(--kraft-dark); }
.cells .eyebrow { color: var(--kraft-dark); }
.cells .eyebrow .idx { color: var(--blue); }
.cells .lead { color: var(--ink); opacity: 0.86; margin-top: 20px; }
.cells-hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--kraft-deep); }
.cells-hint__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--kraft); }
.cells-hint__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--kraft); animation: dot 2.4s var(--ease-out) infinite; }
@keyframes dot { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (max-width: 899px) {
  .cells { flex-direction: column; align-items: stretch; min-height: 0; }
  .cells-inner { order: 1; }
  .cells-copy { padding-block: var(--section-y) 32px; }
  .cells-copy::before { display: none; }
  .cells-field { position: relative; order: 2; height: clamp(320px, 70vw, 460px); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%); }
}

/* hero: keep the showreel product to the right of the headline on wide screens */
@media (min-width: 1100px) {
  .hero-media { background: #8f9396; }
  .hero-poster, .hero-video { transform-origin: 100% 50%; translate: 14% 0; }
}
