/* =====================================================================
   ETUYA, option C "Living Lab". Light theme, locked.
   Shared by /etuya-web/option-c/ (English) and /etuya-web/option-c/id/ (Indonesian).
   SHAPE RULE: cards and panels 22px; anything nested inside a card
   (media, screenshots, bins, stage, role cards) 14px; buttons, chips
   and tokens full pill; inputs 14px.
   Z-INDEX SCALE: 1 local art, 5 flying tokens, 50 nav, 70 toast,
   dialog lives in the top layer.
   ===================================================================== */
:root {
  --canvas: #F4F6F8;
  --surface: #FFFFFF;
  --line: #E1E7EE;
  --line-strong: #C9D3DE;
  --ink: #0B1520;
  --ink-2: #4B5A6B;
  --ink-3: #768597;           /* large text and non-text graphics only (3.5:1) */
  --accent: #1577BD;          /* the one UI accent: buttons, links, focus, active */
  --accent-strong: #0F5E98;   /* accent for small text on light surfaces (AA) */
  --accent-soft: #E4F0FA;
  /* Brand gradient stops: WebGL art, CTA panel and project tiles only, never on text */
  --b-navy: #14284B;
  --b-blue: #1577BD;
  --b-teal: #139068;
  --b-glow: #58FAC3;

  --r-card: 22px;
  --r-media: 14px;
  --r-input: 14px;
  --r-pill: 999px;

  --shadow: 0 1px 2px rgba(11,21,32,.04), 0 12px 32px -12px rgba(21,119,189,.18);
  --shadow-lg: 0 2px 4px rgba(11,21,32,.04), 0 30px 64px -28px rgba(21,119,189,.32);
  --shadow-chip: 0 1px 2px rgba(11,21,32,.05), 0 8px 18px -12px rgba(21,119,189,.28);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --wrap: 1360px;
  --pad: clamp(16px, 4vw, 48px);
  --cell-pad: clamp(20px, 2.2vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }
html.reduced { scroll-behavior: auto; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
.ph { line-height: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent-soft); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 6.2vw, 96px); scroll-margin-top: 84px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 80; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }

/* Type */
.display-xl, .display-l, .hero-title {
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.02;
  color: var(--ink);
}
.display-xl { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.display-l { font-size: clamp(2.05rem, 3.6vw, 3.3rem); }
.lede { font-size: clamp(1.02rem, 1.25vw, 1.15rem); color: var(--ink-2); max-width: 60ch; }
.eyebrow {
  font: 500 12px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 18px;
}
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(30px, 3.6vw, 48px); max-width: 780px; }
.src { font: 500 11.5px/1.45 var(--mono); color: var(--ink-2); letter-spacing: 0; }

/* Buttons: full pill, press scale for tactile feedback */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .25s, transform .15s var(--ease-out);
}
.btn:active { transform: scale(.98); }
.btn .ph { font-size: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(11,21,32,.08), 0 10px 24px -12px rgba(21,119,189,.6); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-primary:disabled { background: #C9D3DE; color: #4B5A6B; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-chip); }
.btn-secondary:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent-strong); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 15px; }
.btn-sm .ph { font-size: 17px; }

/* Text link (anchor or button): names its destination, arrow nudges on hover */
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 650; font-size: 15px; line-height: 1.3; color: var(--accent-strong);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: text-decoration-color .2s, color .2s;
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link .ph { font-size: 16px; transition: transform .25s var(--ease-out); }
.text-link:hover .ph-arrow-up-right { transform: translate(2px, -2px); }
.text-link:hover .ph-arrow-down { transform: translateY(2px); }

/* =============================== NAV =============================== */
.nav-shell {
  position: fixed; inset: 12px 0 auto; z-index: 50;
  padding-inline: var(--pad);
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  position: relative;
  max-width: calc(var(--wrap) - 2 * 48px);
  margin-inline: auto;
  height: 64px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 8px 0 20px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(225,231,238,.9);
  box-shadow: 0 1px 2px rgba(11,21,32,.04), 0 10px 30px -18px rgba(21,119,189,.35);
  transition: box-shadow .3s, background-color .3s;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav {
    background: rgba(255,255,255,.66);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
  }
}
@media (prefers-reduced-transparency: reduce) { .nav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.nav-shell.is-scrolled .nav { box-shadow: 0 1px 2px rgba(11,21,32,.05), 0 16px 40px -18px rgba(21,119,189,.45); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 10px; padding-block: 10px; }
.brand img { width: 150px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-links a {
  position: relative;
  display: inline-flex; align-items: center; height: 40px; padding: 0 13px;
  border-radius: var(--r-pill);
  color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(11,21,32,.04); }
.nav-links a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 7px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-cta { flex: none; }

/* Language switcher: two short links, the current one filled */
.lang {
  flex: none;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: rgba(255,255,255,.7);
}
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 34px; padding: 0 10px; border-radius: var(--r-pill);
  font: 500 12.5px/1 var(--mono); letter-spacing: .06em; color: var(--ink-2); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.lang a:hover { color: var(--ink); background: rgba(11,21,32,.05); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }

.menu-btn {
  display: none; flex: none;
  width: 48px; height: 48px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn .ph { font-size: 22px; }
.menu-btn .ph-x { display: none; }
.menu-open .menu-btn .ph-x { display: block; }
.menu-open .menu-btn .ph-list { display: none; }
.mobile-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  padding: 10px; display: grid; gap: 2px;
  max-height: calc(100dvh - 100px); overflow: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 0 16px; border-radius: 14px;
  color: var(--ink); font-weight: 600; font-size: 18px; text-decoration: none;
}
.mobile-menu > a:hover { background: var(--canvas); }
.menu-foot { display: grid; gap: 10px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.lang-menu { display: grid; grid-template-columns: 1fr 1fr; width: 100%; padding: 4px; }
.lang-menu a { height: 44px; padding: 0 8px; font: 600 15px/1 var(--font); letter-spacing: 0; white-space: nowrap; }
.menu-foot .btn { width: 100%; }
html:not(.reduced) .mobile-menu:not([hidden]) { animation: menu-in .28s var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }

/* Six links plus the language switch and the CTA: tighten them until the menu takes over */
@media (min-width: 1100px) and (max-width: 1299px) {
  .nav { gap: 10px; padding-left: 16px; }
  .brand img { width: 132px; }
  .nav-links a { padding: 0 9px; font-size: 14.5px; }
}
@media (max-width: 1099px) {
  .nav { padding: 0 8px 0 18px; }
  .nav-links, .nav-cta, .nav > .lang { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .brand img { width: 128px; }
}

/* =============================== HERO =============================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 6rem 0 3.5rem;
  display: grid; align-items: center;
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero-copy { container-type: inline-size; display: grid; gap: 26px; justify-items: start; position: relative; z-index: 2; }
.hero-title { font-size: clamp(2.6rem, 5vw, 4.4rem); }
@supports (font-size: 1cqi) { .hero-title { font-size: min(4.6rem, 9.4cqi); } }
.hero-title .wm { display: inline-block; overflow: clip; padding-bottom: .12em; margin-bottom: -.12em; vertical-align: top; }
.hero-title .w { display: inline-block; }
.hero-sub { font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn { --h: 52px; }
.hero-visual { position: relative; z-index: 1; }
.hero-art { position: absolute; inset: -22% -26% -18% -18%; z-index: 0; pointer-events: none; }
.hero-art canvas { width: 100%; height: 100%; display: block; }
.blob-fallback {
  display: none; position: absolute; inset: 14% 12% 10% 10%;
  border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%;
  background:
    radial-gradient(60% 60% at 32% 34%, var(--b-blue), transparent 72%),
    radial-gradient(50% 52% at 70% 70%, var(--b-teal), transparent 72%),
    radial-gradient(32% 30% at 74% 30%, var(--b-glow), transparent 72%),
    var(--b-navy);
  filter: blur(26px); opacity: .85;
}
.no-webgl .blob-fallback { display: block; }
.no-webgl .hero-art canvas { display: none; }
.stack {
  position: relative; z-index: 1;
  height: clamp(360px, 40vw, 540px);
  perspective: 1500px;
  perspective-origin: 50% 42%;
}
.shot {
  position: absolute; left: 50%; top: 50%;
  width: min(460px, 94%);
  translate: -50% -50%;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  box-shadow: 0 1px 2px rgba(11,21,32,.05), 0 34px 70px -30px rgba(20,40,75,.45);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform;
}
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--canvas); opacity: var(--dim, 0); pointer-events: none; }
.shot img { width: 100%; height: auto; border-radius: 9px; aspect-ratio: 16 / 10; object-fit: contain; background: #fff; }
.shot.is-capture img { object-fit: cover; object-position: 50% 0; }
.shot-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 7px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.94); border: 1px solid var(--line);
  box-shadow: 0 6px 16px -10px rgba(20,40,75,.5);
  font: 500 11.5px/1 var(--mono); color: var(--ink-2); white-space: nowrap;
}
.shot-tag b { font: 750 13px/1 var(--font); letter-spacing: -.01em; color: var(--ink); }
/* no-JS fallback poses (JS takes over with the same values) */
.shot:nth-child(1) { transform: translate3d(-40px, 50px, 0) rotateY(-15deg) rotateX(7deg) rotateZ(-3deg); z-index: 3; }
.shot:nth-child(2) { transform: translate3d(4px, -8px, -110px) rotateY(-15deg) rotateX(7deg) rotateZ(1.5deg); z-index: 2; }
.shot:nth-child(3) { transform: translate3d(42px, -66px, -220px) rotateY(-15deg) rotateX(7deg) rotateZ(5deg); z-index: 1; }

/* Hero intro gating: hidden only while JS is about to animate them */
html.js:not(.reduced):not(.failsafe) [data-hero-in] { opacity: 0; }

@media (max-width: 959px) {
  .hero { padding: 6.5rem 0 3rem; align-items: start; min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-title { font-size: clamp(2.3rem, 10.4vw, 3.6rem) !important; }
  .stack { height: clamp(260px, 68vw, 440px); }
  .shot { width: min(420px, 74%); }
  .shot-tag { left: 10px; bottom: 10px; padding: 6px 10px; }
  .hero-art { inset: -14% -10% -10% -10%; }
}
@media (max-width: 479px) {
  .hero-ctas { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .shot-tag { font-size: 10.5px; }
  .shot-tag b { font-size: 12px; }
}

/* =============================== LOGOS =============================== */
.logos { padding: 8px 0 clamp(40px, 5vw, 64px); }
.logos-row { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 40px; align-items: center; }
.logos-line { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink-2); letter-spacing: 0; }
.logo-list { display: flex; align-items: center; justify-content: space-between; gap: 18px 26px; flex-wrap: wrap; }
.logo-list li { display: flex; align-items: center; justify-content: center; }
.logo-list .sep { width: 1px; height: 36px; background: var(--line-strong); }
.logo-list img {
  width: auto;
  filter: grayscale(1) brightness(1.04) contrast(1.06);
  mix-blend-mode: multiply;
  opacity: .8;
  transition: filter .3s, opacity .3s;
}
.logo-list img:hover { filter: none; opacity: 1; }

/* Partner cards: who the partner is and a link to its site. Hover (fine pointers) and focus
   show the card; on touch the first tap opens it and the second follows the link (c.js).
   c.js nudges each card sideways (--dx) so it stays inside the viewport. */
.partner { position: relative; }
.partner__link { position: relative; display: block; border-radius: 10px; }
.partner__card {
  position: absolute; left: 50%; bottom: calc(100% + 14px); z-index: 30;
  display: none;
  width: min(284px, calc(100vw - 32px));
  padding: 14px 16px 13px;
  border-radius: var(--r-media);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  text-align: left; white-space: normal;
  transform: translate(calc(-50% + var(--dx, 0px)), 0);
  transform-origin: calc(50% - var(--dx, 0px)) 100%;
  transition: opacity .16s var(--ease-out), transform .16s var(--ease-out);
}
.partner__card::after {
  content: ""; position: absolute; top: 100%; left: calc(50% - var(--dx, 0px));
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  background: var(--surface);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-bottom-right-radius: 3px;
  transform: rotate(45deg);
}
@media (hover: hover) and (pointer: fine) { .partner:hover .partner__card { display: block; } }
.partner__link:focus-visible .partner__card, .partner.is-open .partner__card { display: block; }
@starting-style {
  .partner:hover .partner__card, .partner__link:focus-visible .partner__card, .partner.is-open .partner__card {
    opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), 6px) scale(.97);
  }
}
.partner__name { display: block; font-weight: 700; font-size: 14px; line-height: 1.35; color: var(--ink); letter-spacing: -.005em; }
.partner__about { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.partner__url { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; font: 500 12px/1.2 var(--mono); color: var(--accent-strong); }
.partner__link:focus-visible img, .partner.is-open img { filter: none; opacity: 1; }
html.reduced .partner__card { transition: none; }
@media (max-width: 899px) {
  .logos-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .logos-line { max-width: 34ch; }
  .logo-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; justify-items: center; }
  .logo-list .sep { display: none; }
}

/* =============================== WHAT WE BUILD (bento) =============================== */
.build { padding-top: clamp(44px, 5.5vw, 80px); }
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "a a a a a a a b b b b b"
    "c c c c c c c c c c c c"
    "d d d d e e e e f f f f";
}
.cell {
  position: relative;
  container-type: inline-size;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: var(--cell-pad);
  display: flex; flex-direction: column; gap: 18px;
  min-width: 0;
}
.cell h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.cell p { color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 52ch; }
.cell-text { display: grid; gap: 10px; }
.cell .src { font-size: 11.5px; line-height: 1.45; }
.cell-plan { grid-area: a; }
.cell-fund { grid-area: b; }
.cell-map { grid-area: c; }
.cell-model { grid-area: d; }
.cell-learn { grid-area: e; }
.cell-know { grid-area: f; }
.cell-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }

/* Spotlight border: radial gradient following the pointer, shown only inside the 1px border ring */
.spot::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: radial-gradient(340px circle at var(--mx, -999px) var(--my, -999px), rgba(21,119,189,.85), rgba(21,119,189,0) 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 3;
}
@media (hover: hover) and (pointer: fine) { .spot:hover::before { opacity: 1; } }

/* a. AKSARA module switcher */
.aks { display: grid; gap: 14px; margin-top: auto; }
.aks-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tabs {
  --i: 0;
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px; border-radius: var(--r-pill);
  background: var(--canvas); border: 1px solid var(--line);
  min-width: min(380px, 100%);
}
.tabs::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: var(--r-pill); background: var(--surface);
  box-shadow: 0 1px 2px rgba(11,21,32,.06), 0 4px 12px -6px rgba(21,119,189,.35);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform .5s var(--ease-out);
}
.tab {
  position: relative; z-index: 1; overflow: hidden;
  height: 40px; padding: 0 14px; border: 0; background: transparent; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  transition: color .25s;
}
.tab[aria-selected="true"] { color: var(--ink); }
.tab-progress {
  position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0;
}
.is-auto .tab[aria-selected="true"] .tab-progress { opacity: 1; animation: aks-progress 4s linear forwards; }
.aks:hover .tab-progress, .aks:focus-within .tab-progress, .aks.is-paused .tab-progress { animation-play-state: paused !important; }
@keyframes aks-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  box-shadow: 0 1px 2px rgba(11,21,32,.04), 0 18px 40px -26px rgba(20,40,75,.4);
  overflow: hidden;
}
.aks-stage { display: grid; aspect-ratio: 1.62; }
.aks-panel {
  grid-area: 1 / 1; display: grid; place-items: center; padding: 10px;
  opacity: 0; visibility: hidden; transform: scale(1.015);
  transition: opacity .55s var(--ease-out), transform .8s var(--ease-out), visibility 0s linear .55s;
}
.aks-panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .55s var(--ease-out), transform .8s var(--ease-out), visibility 0s; }
.aks-panel img { width: 100%; height: 100%; object-fit: contain; }
@container (max-width: 520px) {
  .aks-bar { flex-direction: column; align-items: stretch; }
  .aks-bar .pchip { align-self: flex-start; }
  .tabs { min-width: 0; }
}

/* Project chip: opens the project dialog (large in the landscape, small inside cells) */
.pchip {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 7px 18px 7px 8px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-chip);
  font-weight: 650; font-size: 15px; line-height: 1.25; color: var(--ink); text-align: left;
  cursor: pointer;
  transition: transform .3s var(--ease-out), border-color .2s, box-shadow .3s, color .2s;
}
.pchip .lead {
  width: 30px; height: 30px; border-radius: var(--r-pill); flex: none;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); font-size: 16px;
  transition: background-color .25s, color .25s;
}
.pchip:hover { transform: translateY(-2px); border-color: rgba(21,119,189,.5); box-shadow: 0 1px 2px rgba(11,21,32,.05), 0 14px 26px -14px rgba(21,119,189,.45); }
.pchip:hover .lead { background: var(--accent); color: #fff; }
.pchip:active { transform: scale(.98); }
.pchip.sm { min-height: 40px; padding: 5px 15px 5px 6px; font-size: 14px; gap: 8px; }
.pchip.sm .lead { width: 28px; height: 28px; font-size: 15px; }

/* b. Fund: the three tags as tokens, then the CONNECT live capture */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row li {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 13px 0 10px; border-radius: var(--r-pill);
  border: 1px solid rgba(21,119,189,.32); background: var(--accent-soft);
  font: 500 13px/1 var(--mono); color: var(--accent-strong); white-space: nowrap;
}
.tag-row .ph { font-size: 15px; }
.fund-shot { display: grid; gap: 8px; margin-top: auto; }
.fund-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; }

/* c. Map: the national target, region by region */
.cell-map {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px;
  min-height: 380px;
  background: linear-gradient(180deg, #fff 0%, #F6FAFD 100%);
}
.map-side { position: relative; z-index: 2; display: grid; gap: 22px; align-content: space-between; }
.stakes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.stakes > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 14px 12px 12px 0; }
.stakes > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.stakes > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.stakes dd { margin: 0; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--ink); font-variant-numeric: tabular-nums; }
.stakes dt { font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.map-wrap {
  position: relative; min-height: 300px;
  margin: calc(-1 * var(--cell-pad)) calc(-1 * var(--cell-pad)) calc(-1 * var(--cell-pad)) 0;
  border-radius: 0 21px 21px 0; overflow: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(21,119,189,.16) 1px, transparent 1.6px);
  background-size: 12px 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 100%);
}
.map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease-out); }
.map-ready .map-canvas { opacity: 1; }
.map-ready { background-image: none; }

/* d, e. Duo cells: text and a screen side by side */
.cell-duo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: center; }
.duo-text { display: grid; gap: 12px; align-content: start; }
.duo-text .cell-actions { margin-top: 6px; }
.duo-thumb { aspect-ratio: 1.42; }
.duo-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
/* Wide screens: the three duo cells share one row, text above the screen */
@media (min-width: 1024px) {
  .bento .cell-duo { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .bento .cell-duo .duo-thumb { margin-top: auto; aspect-ratio: 16 / 10; }
}

@media (max-width: 1023px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "a" "b" "c" "d" "e" "f";
  }
  .cell-fund { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; column-gap: 24px; }
  .cell-fund .cell-text { grid-column: 1; }
  .cell-fund .fund-shot { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .cell-fund .tag-row { grid-column: 1; }
  .cell-fund .cell-actions { grid-column: 1; align-self: start; }
}
@media (max-width: 759px) {
  .cell-fund { display: flex; }
  .cell-map { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .map-wrap {
    min-height: 210px;
    margin: 0 calc(-1 * var(--cell-pad)) calc(-1 * var(--cell-pad));
    border-radius: 0 0 21px 21px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 100%);
  }
  .cell-duo { grid-template-columns: minmax(0, 1fr); }
  .duo-thumb { order: -1; aspect-ratio: 16 / 9; }
}

/* =============================== BUILT FOR YOUR ROLE =============================== */
.rs {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  padding: 10px;
}
.rs-tabs {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  padding: 5px; border-radius: 18px;
  background: var(--canvas); border: 1px solid var(--line);
}
.rs-tab {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 6px 14px; border: 0; border-radius: 14px; background: transparent; cursor: pointer;
  font-weight: 650; font-size: 15px; line-height: 1.2; color: var(--ink-2); text-align: left;
  transition: color .25s;
}
.rs-tab .ph { font-size: 20px; flex: none; transition: color .25s; }
.rs-tab:hover { color: var(--ink); }
.rs-tab[aria-selected="true"] { color: var(--ink); }
.rs-tab[aria-selected="true"] .ph { color: var(--accent-strong); }
.rs-ink {
  position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 0;
  border-radius: 14px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(11,21,32,.06), 0 6px 16px -8px rgba(21,119,189,.4);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), height .5s var(--ease-out);
}
.no-ink .rs-tab[aria-selected="true"] { background: var(--surface); box-shadow: 0 1px 2px rgba(11,21,32,.06); }
.rs-panel {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(22px, 3.2vw, 42px) clamp(16px, 2.8vw, 36px) clamp(20px, 2.6vw, 32px);
}
.rs-panel[hidden] { display: none; }
.rs-main { display: grid; justify-items: start; }
.rs-msg { font-size: clamp(1.35rem, 2.1vw, 1.95rem); font-weight: 700; letter-spacing: -.028em; line-height: 1.24; color: var(--ink); text-wrap: balance; max-width: 30ch; }
.rs-proof { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); max-width: 52ch; }
.rs-proof .ph { font-size: 20px; color: var(--b-teal); flex: none; margin-top: 1px; }
.rs-cta { margin-top: 24px; }
.rs-cards { display: grid; gap: 10px; }
.rcard {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  width: 100%; padding: 8px 16px 8px 8px;
  border: 1px solid var(--line); border-radius: var(--r-media); background: var(--surface);
  text-align: left; cursor: pointer;
  box-shadow: 0 1px 2px rgba(11,21,32,.03);
  transition: transform .3s var(--ease-out), border-color .2s, box-shadow .3s;
}
.rcard:hover { transform: translateY(-2px); border-color: rgba(21,119,189,.5); box-shadow: 0 14px 26px -16px rgba(21,119,189,.45); }
.rcard:active { transform: scale(.99); }
.rc-thumb { display: block; width: 88px; aspect-ratio: 1.45; border-radius: 9px; overflow: hidden; background: var(--canvas); border: 1px solid var(--line); }
.rc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.rc-tile {
  display: flex; align-items: flex-end; padding: 6px 8px;
  background: radial-gradient(70% 90% at 100% 100%, rgba(88,250,195,.7), transparent 60%), linear-gradient(135deg, var(--b-navy), var(--b-blue) 55%, var(--b-teal));
  border-color: transparent;
}
.rc-tile span { font-weight: 800; font-size: 14px; letter-spacing: -.02em; color: #fff; }
.rc-t { display: grid; gap: 3px; min-width: 0; }
.rc-name { font-weight: 700; font-size: 15.5px; line-height: 1.25; color: var(--ink); }
.rc-sub { font: 500 12px/1.35 var(--mono); color: var(--ink-2); }
.rcard .ph { font-size: 18px; color: var(--ink-2); transition: color .2s, transform .25s var(--ease-out); }
.rcard:hover .ph { color: var(--accent-strong); transform: translate(2px, -2px); }
@media (max-width: 859px) {
  .rs-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 479px) {
  .rs { padding: 6px; }
  .rs-tab { min-height: 48px; font-size: 14px; gap: 8px; padding: 6px 10px; justify-content: flex-start; }
  .rs-tab .ph { font-size: 18px; }
  .rcard { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; padding-right: 12px; }
  .rc-thumb { width: 72px; }
}
/* View Transitions for the role switch: the card resizes, message and proof slide, shared cards glide */
html.vt-role .rs { view-transition-name: role-card; }
html.vt-role .rs-tabs { view-transition-name: role-tabs; }
html.vt-role .rs-panel:not([hidden]) .rs-msg { view-transition-name: role-msg; }
html.vt-role .rs-panel:not([hidden]) .rs-proof { view-transition-name: role-proof; }
html.vt-role .rs-panel:not([hidden]) .rs-cta { view-transition-name: role-cta; }
html.vt-role .rs-panel:not([hidden]) .rcard[data-project="aksara"] { view-transition-name: rc-aksara; }
html.vt-role .rs-panel:not([hidden]) .rcard[data-project="connect"] { view-transition-name: rc-connect; }
html.vt-role .rs-panel:not([hidden]) .rcard[data-project="resilience"] { view-transition-name: rc-resilience; }
html.vt-role .rs-panel:not([hidden]) .rcard[data-project="waste"] { view-transition-name: rc-waste; }
html.vt-role .rs-panel:not([hidden]) .rcard[data-project="elearning"] { view-transition-name: rc-elearning; }
html.vt-role .rs-panel:not([hidden]) .rcard[data-project="cbt"] { view-transition-name: rc-cbt; }
html.vt-role .rs-panel:not([hidden]) .rcard[data-project="ranes"] { view-transition-name: rc-ranes; }
html.vt-role .rs-panel:not([hidden]) .rcard[data-project="abgi"] { view-transition-name: rc-abgi; }
html.vt-role .rs-panel:not([hidden]) .rcard[data-project="marine"] { view-transition-name: rc-marine; }
html.vt-role::view-transition-old(root), html.vt-role::view-transition-new(root) { animation: none; }
html.vt-role::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
html.vt-role::view-transition-old(role-tabs) { display: none; }
html.vt-role::view-transition-new(role-tabs) { animation: none; }
html.vt-role::view-transition-old(role-msg), html.vt-role::view-transition-old(role-proof) { animation: vt-out .16s ease both; }
html.vt-role::view-transition-new(role-msg), html.vt-role::view-transition-new(role-proof) { animation: vt-rise .46s .08s cubic-bezier(.2, .8, .2, 1) both; }
html.vt-role::view-transition-new(role-msg), html.vt-role::view-transition-old(role-msg),
html.vt-role::view-transition-new(role-proof), html.vt-role::view-transition-old(role-proof) { height: 100%; object-fit: none; object-position: left top; }
html.vt-role::view-transition-new(*):only-child { animation: vt-pop .46s .1s cubic-bezier(.2, .8, .2, 1) both; }
html.vt-role::view-transition-old(*):only-child { animation: vt-out .2s ease both; }
@keyframes vt-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes vt-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* =============================== TRY IT (tagger) =============================== */
.demo .sec-head { max-width: none; }
.demo .sec-head .lede { max-width: 66ch; }
.tagger {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  overflow: clip;
  min-height: min(580px, 74vh);
}
.tg-form { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.tg-label { font-weight: 700; font-size: 16px; color: var(--ink); }
.tg-field { display: flex; gap: 10px; align-items: stretch; }
.tg-input {
  flex: 1; min-width: 0; height: 56px; padding: 0 16px;
  border-radius: var(--r-input); border: 1px solid #7E8D9E; /* 3.4:1 against white for the field boundary */
  background: var(--surface); color: var(--ink);
  font: 500 16px/1.2 var(--font);
  transition: border-color .2s, box-shadow .2s;
}
.tg-input::placeholder { color: #5E6D7E; opacity: 1; }
.tg-input:hover { border-color: #5E6D7E; }
.tg-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(21,119,189,.18); }
.tg-field .btn { --h: 56px; padding: 0 20px; }
.tg-help { font-size: 14px; color: var(--ink-2); }
.tg-form:has(.tg-input:not(:placeholder-shown)) .tg-help .hint-empty { display: none; }
.tg-form:has(.tg-input:placeholder-shown) .tg-help .hint-typed { display: none; }
.samples { display: flex; flex-wrap: wrap; gap: 8px; }
.sample {
  display: inline-flex; align-items: center; gap: 8px; text-align: left;
  min-height: 40px; padding: 8px 14px 8px 12px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--canvas);
  font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink); cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s, transform .15s var(--ease-out);
}
.sample .ph { font-size: 15px; color: var(--accent-strong); flex: none; }
.sample:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: var(--accent-soft); color: var(--accent-strong); }
.sample:active { transform: scale(.98); }

.machine {
  position: relative;
  container-type: inline-size;
  border-left: 1px solid var(--line);
  background-color: #F7F9FB;
  background-image: radial-gradient(circle at 1px 1px, rgba(11,21,32,.08) 1px, transparent 1.5px);
  background-size: 16px 16px;
  padding: clamp(18px, 2.6vw, 32px);
  display: flex; flex-direction: column; gap: 16px;
}
.stage {
  position: relative;
  min-height: 118px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-media);
  background: rgba(255,255,255,.85);
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px;
}
.stage-idle { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.stage-idle .ph { font-size: 18px; color: var(--accent-strong); }
.tok {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface);
  font: 500 13px/1 var(--mono); color: var(--ink); white-space: nowrap;
  transition: background-color .25s, border-color .25s, color .25s; /* opacity and transform are driven by GSAP */
}
.tok .ph { font-size: 13px; display: none; }
.tok.is-hit { background: var(--accent-soft); border-color: rgba(21,119,189,.55); color: var(--accent-strong); }
.tok.is-hit .ph { display: inline-block; }
.tok.is-miss { opacity: .42; }
.tok-fly { position: absolute; z-index: 5; margin: 0; pointer-events: none; box-shadow: 0 10px 22px -10px rgba(21,119,189,.6); }
.fly-layer { position: absolute; inset: 0; pointer-events: none; z-index: 5; }

.bins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; flex: 1; }
.bin {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 200px; min-width: 0;
  transition: border-color .35s, background-color .35s, box-shadow .35s;
}
.bin.is-winner { border-color: var(--accent); background: #F5F9FD; box-shadow: 0 0 0 3px rgba(21,119,189,.14); }
.bin-head { display: flex; align-items: center; gap: 10px; }
.bin-head .ico {
  width: 30px; height: 30px; border-radius: var(--r-pill); flex: none;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); font-size: 16px;
  transition: background-color .3s, color .3s;
}
.bin.is-winner .bin-head .ico { background: var(--accent); color: #fff; }
.bin-head h3 { font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.bin-meter { position: relative; height: 8px; }
.bin-meter::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.meter-fill {
  position: absolute; inset: 0; border-radius: var(--r-pill);
  background: var(--accent); opacity: .45;
  transform: scaleX(0); transform-origin: left center;
}
.bin.is-winner .meter-fill { opacity: 1; }
.bin-list { display: grid; gap: 6px; }
.bin-list li {
  font-size: 13px; line-height: 1.3; color: var(--ink);
  padding: 6px 11px; border-radius: var(--r-pill); background: var(--canvas);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bin-list li:first-child { background: var(--accent-soft); color: var(--accent-strong); }
.bin-empty { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.bin:has(.bin-list li) .bin-empty { display: none; }
.result { display: grid; gap: 4px; min-height: 52px; }
.result-title { font-weight: 750; font-size: 17px; letter-spacing: -.01em; color: var(--ink); }
.result-why { font-size: 14px; color: var(--ink-2); }
.disclaimer {
  margin-top: auto;
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; line-height: 1.5; color: var(--ink-2);
  padding: 10px 14px; border-radius: var(--r-media); background: rgba(255,255,255,.9); border: 1px solid var(--line);
}
.disclaimer .ph { font-size: 17px; color: var(--accent-strong); flex: none; margin-top: 1px; }
.after-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px;
  margin-top: 16px; padding: 10px 10px 10px 24px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
}
.after-row p { font-weight: 600; font-size: 15.5px; color: var(--ink); }

/* Five more games: tiles linking to the Try it pages */
.mg { margin-top: clamp(28px, 3.4vw, 44px); }
.mg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.mg-title { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 750; letter-spacing: -.02em; }
.mg-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.mg-card {
  display: grid; gap: 6px; height: 100%; padding: 10px 10px 16px;
  border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-chip);
  color: var(--ink); text-decoration: none;
  transition: transform .25s var(--ease-out), box-shadow .3s, border-color .3s;
}
.mg-tile {
  display: grid; place-items: center; aspect-ratio: 16 / 10; margin-bottom: 8px;
  border-radius: var(--r-media); color: #fff; font-size: clamp(30px, 3vw, 40px);
  background: radial-gradient(70% 90% at 20% 10%, rgba(88,250,195,.45), transparent 60%), linear-gradient(140deg, var(--b-blue), var(--b-navy));
}
.mg-tile--sort { background: radial-gradient(70% 90% at 80% 10%, rgba(88,250,195,.4), transparent 60%), linear-gradient(140deg, var(--b-teal), var(--b-navy)); }
.mg-tile--sea { background: radial-gradient(70% 90% at 30% 90%, rgba(88,250,195,.5), transparent 60%), linear-gradient(160deg, #1A82CC, var(--b-blue)); }
.mg-tile--quiz { background: radial-gradient(70% 90% at 80% 80%, rgba(21,119,189,.7), transparent 60%), linear-gradient(140deg, var(--b-navy), #0B1A33); }
.mg-tile--mix { background: radial-gradient(70% 90% at 20% 80%, rgba(88,250,195,.4), transparent 60%), linear-gradient(140deg, var(--b-blue), var(--b-teal)); }
.mg-tile .ph { transition: transform .4s var(--ease-out); }
.mg-name { padding-inline: 6px; font-weight: 750; font-size: 15.5px; line-height: 1.3; letter-spacing: -.01em; }
.mg-meta { padding-inline: 6px; font: 500 12px/1.2 var(--mono); color: var(--ink-2); }
.mg-card:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .mg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
  .mg-card:hover .mg-tile .ph { transform: scale(1.12) rotate(-4deg); }
}
@media (max-width: 1023px) { .mg-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .mg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mg-list li:last-child { grid-column: 1 / -1; }
  .mg-list li:last-child .mg-tile { aspect-ratio: 16 / 6; }
}
.after-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@container (max-width: 560px) {
  .bins { grid-template-columns: minmax(0, 1fr); }
  .bin { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 38%); align-items: center; gap: 10px 14px; }
  .bin-head { grid-column: 1; }
  .bin-meter { grid-column: 2; grid-row: 1; }
  .bin-list, .bin-empty { grid-column: 1 / -1; }
}
@media (max-width: 959px) {
  .tagger { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .machine { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 699px) {
  .after-row { border-radius: var(--r-card); padding: 16px; }
  .after-actions { width: 100%; }
  .after-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 599px) {
  /* samples become one swipeable row so the form stays short */
  .samples {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(-1 * clamp(22px, 3vw, 40px)); padding: 2px clamp(22px, 3vw, 40px) 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
  }
  .samples::-webkit-scrollbar { display: none; }
  .sample { white-space: nowrap; }
  .tg-field { flex-direction: column; }
  .tg-field .tg-input { flex: 0 0 auto; width: 100%; } /* a zero flex-basis would collapse the field in a column */
  .tg-field .btn { width: 100%; }
}

/* =============================== PLATFORMS (impact landscape) =============================== */
.mx-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(300px, auto) minmax(300px, auto);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mx-head { grid-area: 1 / 1; padding: clamp(28px, 3.4vw, 48px); display: grid; align-content: start; gap: 16px; position: relative; z-index: 2; }
.mx-head p { color: var(--ink-2); max-width: 42ch; }
.mx-q { position: relative; z-index: 2; padding: 64px 44px 48px; display: grid; align-content: center; }
.mx-q-tr { grid-area: 1 / 2; background: linear-gradient(180deg, #F3F8FC, #EEF5FB); }
.mx-q-br { grid-area: 2 / 2; background: #F8FAFC; }
.mx-q-bl { grid-area: 2 / 1; background: #FBFCFD; }
/* quadrant headings: read by screen readers on desktop (the axes carry the meaning visually), shown on mobile */
.mx-q-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mx-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-content: center; }
.mx-axis { position: absolute; z-index: 3; pointer-events: none; }
.mx-axis-v { left: 50%; top: 18px; bottom: 18px; width: 1px; background: var(--line-strong); }
.mx-axis-h { top: 50%; left: 18px; right: 18px; height: 1px; background: var(--line-strong); }
.mx-axis .ph { position: absolute; font-size: 14px; color: var(--ink-3); }
.mx-axis-v .ph-caret-up { top: -9px; left: -7px; }
.mx-axis-v .ph-caret-down { bottom: -9px; left: -7px; }
.mx-axis-h .ph-caret-left { left: -9px; top: -7px; }
.mx-axis-h .ph-caret-right { right: -9px; top: -7px; }
.mx-label {
  position: absolute; z-index: 3;
  font: 500 12px/1.3 var(--mono); color: var(--ink-2);
  background: rgba(255,255,255,.92); padding: 4px 9px; border-radius: var(--r-pill); border: 1px solid var(--line);
  white-space: nowrap; pointer-events: none;
}
.mx-l-top { left: calc(50% + 14px); top: 16px; }
.mx-l-bottom { left: calc(50% + 14px); bottom: 16px; }
.mx-l-left { left: 22px; top: calc(50% + 12px); }
.mx-l-right { right: 22px; top: calc(50% + 12px); }

@media (max-width: 899px) {
  .mx-board { display: flex; flex-direction: column; background: transparent; border: 0; box-shadow: none; overflow: visible; gap: 14px; }
  .mx-head { padding: 0 0 8px; }
  .mx-axis, .mx-label { display: none; }
  .mx-q { padding: 20px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); align-content: start; gap: 14px; }
  .mx-q-tr { order: 1; } .mx-q-br { order: 2; } .mx-q-bl { order: 3; }
  .mx-q-title { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; display: grid; gap: 2px; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; }
  .mx-q-title span:last-child { font: 500 12.5px/1.4 var(--mono); color: var(--ink-2); }
  .mx-chips { justify-content: flex-start; }
}

/* =============================== PROJECT DIALOG =============================== */
.pdialog {
  padding: 0; border: 0; background: transparent;
  width: min(1000px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: visible;
  color: var(--ink);
}
.pdialog::backdrop { background: rgba(11,21,32,.42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
html:not(.reduced) .pdialog.fade-in[open] { animation: dlg-in .3s var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.pd-panel {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--surface); border-radius: var(--r-card); border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(11,21,32,.55);
  overflow: hidden;
  max-height: calc(100dvh - 32px);
}
.pd-media { background: var(--canvas); padding: 22px; display: grid; gap: 12px; align-content: center; border-right: 1px solid var(--line); min-width: 0; }
.pd-main img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: #fff; transition: opacity .25s; }
.pd-main.is-capture img { object-fit: cover; object-position: 50% 0; }
.pd-main.is-swapping img { opacity: .2; }
.pd-cap { min-height: 1.45em; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-th {
  width: 72px; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  opacity: .72; transition: opacity .2s, border-color .2s, box-shadow .2s;
}
.pd-th img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.pd-th:hover { opacity: 1; }
.pd-th[aria-pressed="true"] { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(21,119,189,.25); }
.pd-tile {
  width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-media);
  background:
    radial-gradient(70% 90% at 100% 100%, rgba(88,250,195,.75), transparent 60%),
    linear-gradient(135deg, var(--b-navy) 0%, var(--b-blue) 52%, var(--b-teal) 100%);
  display: flex; align-items: flex-end; padding: 22px;
}
.pd-tile span { font-weight: 800; letter-spacing: -.04em; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: #fff; text-shadow: 0 1px 18px rgba(20,40,75,.35); }
.pd-body { padding: clamp(24px, 3vw, 36px); display: grid; align-content: start; gap: 14px; overflow: auto; }
.pd-area { font: 500 12.5px/1.3 var(--mono); color: var(--accent-strong); }
.pd-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; padding-right: 44px; }
.pd-sub { font-weight: 600; color: var(--ink-2); font-size: 15px; margin-top: -6px; }
.pd-desc { color: var(--ink-2); font-size: 16px; }
.pd-stat { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-media); background: var(--accent-soft); border: 1px solid rgba(21,119,189,.18); }
.pd-stat[hidden] { display: none; }
.pd-stat b { font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.pd-stat span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.pd-meta { display: grid; gap: 10px; margin: 4px 0 0; }
.pd-meta div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; font-size: 14.5px; }
.pd-meta dt { font: 500 12.5px/1.6 var(--mono); color: var(--ink-2); }
.pd-meta dd { margin: 0; color: var(--ink); font-weight: 600; }
.pd-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-stack li { height: 30px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--canvas); font: 500 12.5px/30px var(--mono); color: var(--ink); }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pd-actions:empty { display: none; }
.pd-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .2s, transform .15s var(--ease-out);
}
.pd-close:hover { border-color: var(--accent); }
.pd-close:active { transform: scale(.96); }
.pd-close .ph { font-size: 20px; }
@media (max-width: 759px) {
  /* one scrolling column; the close button spans both rows so it stays in reach while the panel scrolls */
  .pd-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; overflow: auto; overscroll-behavior: contain; }
  .pd-close { position: sticky; top: 10px; grid-row: 1 / span 2; grid-column: 1; justify-self: end; align-self: start; margin: 10px 10px 0 0; box-shadow: 0 6px 16px -8px rgba(11,21,32,.35); }
  .pd-media { grid-row: 1; grid-column: 1; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .pd-body { grid-row: 2; grid-column: 1; overflow: visible; }
  .pd-th { width: 60px; }
}
/* Chip to panel morph: a white card grows from the chip; the chip snapshot keeps its natural size and fades, the panel fades in scaled to the card */
::view-transition-group(pmorph) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); border-radius: 22px; overflow: clip; background: #fff; box-shadow: 0 30px 70px -30px rgba(11,21,32,.45); }
::view-transition-old(pmorph), ::view-transition-new(pmorph) { height: 100%; width: 100%; object-position: left top; }
::view-transition-old(pmorph) { object-fit: none; animation: vt-out .2s ease both; }
::view-transition-new(pmorph) { object-fit: cover; animation: vt-in .34s .08s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* =============================== ABOUT (why ETUYA) =============================== */
.about-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(28px, 3.6vw, 48px); }
.about h2 { max-width: 20ch; }
.about-text { font-size: clamp(1.08rem, 1.45vw, 1.28rem); line-height: 1.55; color: var(--ink-2); max-width: 42ch; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.team, .stats, .pillars {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow);
}
.team { display: flex; align-items: center; gap: 22px; padding: var(--cell-pad); }
.venn { position: relative; width: 132px; height: 132px; flex: none; isolation: isolate; }
.circ {
  position: absolute; width: 78px; height: 78px; border-radius: 50%;
  border: 1.5px solid rgba(21,119,189,.55);
  background: rgba(21,119,189,.10);
  mix-blend-mode: multiply;
  transition: background-color .3s, border-color .3s;
}
.circ .ph { position: absolute; font-size: 17px; color: var(--accent-strong); }
.c1 { left: 0; top: 0; } .c1 .ph { left: 14px; top: 14px; }
.c2 { right: 0; top: 0; } .c2 .ph { right: 14px; top: 14px; }
.c3 { left: 0; bottom: 0; } .c3 .ph { left: 14px; bottom: 14px; }
.c4 { right: 0; bottom: 0; } .c4 .ph { right: 14px; bottom: 14px; }
.disc-list { display: grid; gap: 9px; font-size: 15px; font-weight: 600; color: var(--ink); }
.disc-list li { display: flex; align-items: center; gap: 10px; line-height: 1.3; cursor: default; }
.disc-list .ph { font-size: 18px; color: var(--accent-strong); flex: none; }
.team:has([data-d="1"]:hover) .c1,
.team:has([data-d="2"]:hover) .c2,
.team:has([data-d="3"]:hover) .c3,
.team:has([data-d="4"]:hover) .c4 { background: rgba(21,119,189,.32); border-color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 4px var(--cell-pad); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 18px 0 16px; }
.stat:nth-child(odd) { padding-right: 18px; }
.stat:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.stat dt { font-size: 14.5px; color: var(--ink-2); line-height: 1.35; }
.stat dd { margin: 0; font-weight: 800; letter-spacing: -.045em; line-height: 1; font-size: clamp(2.3rem, 3.6vw, 3.2rem); color: var(--ink); font-variant-numeric: tabular-nums; }
.pillars { display: grid; gap: 16px; align-content: center; padding: var(--cell-pad); }
.pillars li { display: flex; gap: 12px; align-items: flex-start; }
.pillars .ph { font-size: 20px; color: var(--accent-strong); flex: none; margin-top: 2px; width: 34px; height: 34px; border-radius: var(--r-pill); background: var(--accent-soft); display: grid; place-items: center; }
.pillars p { font-size: 15.5px; line-height: 1.45; font-weight: 600; color: var(--ink); }
@media (max-width: 1099px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pillars { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 859px) {
  .about-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .team { flex-direction: column; align-items: flex-start; }
}

/* =============================== HOW WE WORK =============================== */
.strips {
  --cols: 3fr 1fr 1fr 1fr;
  container-type: inline-size;
  display: grid; gap: 12px;
  grid-template-columns: var(--cols);
  height: clamp(450px, 36vw, 510px);
  transition: grid-template-columns .7s var(--ease-out);
}
.strips[data-open="1"] { --cols: 1fr 3fr 1fr 1fr; }
.strips[data-open="2"] { --cols: 1fr 1fr 3fr 1fr; }
.strips[data-open="3"] { --cols: 1fr 1fr 1fr 3fr; }
.strip {
  position: relative; min-width: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.strip:not(.is-open):hover { border-color: rgba(21,119,189,.45); }
.strip.is-open { cursor: default; box-shadow: var(--shadow-lg); }
.strip-h { margin: 0; }
.strip-btn {
  display: grid; gap: 16px; justify-items: start; text-align: left;
  width: 100%; padding: 22px 20px 12px; border: 0; background: transparent; cursor: pointer;
  border-radius: var(--r-card);
}
.strip-btn .ico {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--canvas); color: var(--ink-2); font-size: 20px;
  transition: background-color .3s, color .3s;
}
.strip.is-open .strip-btn .ico { background: var(--accent); color: #fff; }
.strip-caret { display: none; }
.strip-title {
  /* fixed to the collapsed width so titles never re-wrap while strips resize */
  width: calc((100cqi - 36px) / 6 - 40px);
  font-size: clamp(1.05rem, 1.35vw, 1.28rem); font-weight: 750; letter-spacing: -.02em; line-height: 1.22; color: var(--ink);
}
.strip-body {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; gap: 16px;
  padding: 4px 20px 20px;
  width: calc((100cqi - 36px) / 2 - 2px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.strip.is-open .strip-body { opacity: 1; visibility: visible; transition: opacity .5s ease .25s, visibility 0s; }
.strip-inner { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.strip-body p { color: var(--ink-2); max-width: 48ch; font-size: 16px; }
.strip-media { flex: 1; min-height: 0; border-radius: var(--r-media); overflow: hidden; border: 1px solid var(--line); background: var(--canvas); }
.strip-media img { width: 100%; height: 100%; object-fit: cover; }
.strip-media.is-shot { background: #fff; }
.strip-media.is-shot img { object-fit: contain; padding: 8px; }
.strip-link { align-self: flex-start; }
html:not(.reduced) .strip.is-open .strip-media img { animation: strip-img 1.1s var(--ease-out); }
@keyframes strip-img { from { transform: scale(1.06); } to { transform: none; } }
/* collapsed strips show a masked peek of their image (hierarchy: invites the hover that opens them) */
.strip-peek {
  position: absolute; left: 10px; right: 10px; bottom: 10px; height: 46%;
  border-radius: var(--r-media); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 45%, transparent 100%);
  mask-image: linear-gradient(to top, #000 45%, transparent 100%);
  transition: opacity .35s ease;
}
.strip-peek img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transition: transform .7s var(--ease-out); }
.strip-peek.is-shot { background: #fff; }
.strip-peek.is-shot img { object-position: 0% 40%; }
.strip.is-open .strip-peek { opacity: 0; }
.strip:not(.is-open):hover .strip-peek img { transform: scale(1.05); }

@media (max-width: 1099px) {
  .strips { display: grid; grid-template-columns: minmax(0, 1fr) !important; height: auto; gap: 10px; }
  .strip { cursor: default; }
  .strip-btn { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; }
  .strip-caret { display: block; font-size: 20px; color: var(--ink-2); transition: transform .3s var(--ease-out); }
  .strip.is-open .strip-caret { transform: rotate(180deg); }
  .strip-title { width: auto; }
  .strip-peek { display: none; }
  .strip-body { width: auto; display: grid; grid-template-rows: 0fr; padding: 0 18px; gap: 0; transition: grid-template-rows .45s var(--ease-out), opacity .3s, visibility 0s linear .45s; }
  .strip.is-open .strip-body { grid-template-rows: 1fr; padding-bottom: 18px; transition: grid-template-rows .45s var(--ease-out), opacity .4s .1s, visibility 0s; }
  .strip-inner { min-height: 0; overflow: hidden; display: grid; gap: 14px; }
  .strip-media { aspect-ratio: 16 / 10; flex: none; }
}

/* =============================== VERIFY IT =============================== */
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; max-width: none; }
.sec-row-main { max-width: 760px; }
.checked {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  font: 500 12.5px/1 var(--mono); color: var(--ink-2); white-space: nowrap;
}
.checked .ph { font-size: 16px; color: var(--b-teal); }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vcard {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .25s;
}
.vcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(21,119,189,.4); }
.vcard:has(.v-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.v-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.v-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .8s var(--ease-out); }
.vcard:hover .v-shot img { transform: scale(1.035); }
.v-pill {
  position: absolute; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.94); border: 1px solid var(--line);
  font: 500 11.5px/1 var(--mono); color: var(--ink);
}
.v-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--b-teal); box-shadow: 0 0 0 3px rgba(19,144,104,.18); }
.v-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 22px; flex: 1; }
.v-body .v-owner { font: 500 12px/1.3 var(--mono); color: var(--accent-strong); letter-spacing: .02em; }
.v-body h3 { font-size: 1.35rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.v-body p { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.v-link {
  margin-top: auto; padding-top: 10px;
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  font-weight: 650; font-size: 15px; color: var(--accent-strong); text-decoration: none;
}
.v-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.v-link:focus-visible { outline: none; }
.v-link .dom { font: 500 12.5px/1.2 var(--mono); color: var(--ink-2); }
.v-link .ph { font-size: 16px; transition: transform .25s var(--ease-out); }
.vcard:hover .v-link .ph { transform: translate(2px, -2px); }
.vcard:hover .v-label { text-decoration: underline; text-underline-offset: 4px; }
.v-foot { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 899px) {
  .vgrid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(260px, 78%);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--pad)); padding: 4px var(--pad) 14px; scroll-padding-inline: var(--pad);
    scrollbar-width: thin;
  }
  .vcard { scroll-snap-align: start; }
  .vcard:hover { transform: none; }
}

/* =============================== FAQ =============================== */
.faq-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: 108px; display: grid; gap: 18px; justify-items: start; }
.faq-head .lede { max-width: 36ch; }
.faq-list { display: grid; gap: 10px; }
.qa {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  transition: border-color .25s, box-shadow .3s;
  interpolate-size: allow-keywords;
}
.qa:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.qa[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 58px; padding: 12px 14px 12px 22px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; color: var(--ink);
  border-radius: 18px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ph {
  flex: none; width: 34px; height: 34px; border-radius: var(--r-pill);
  display: grid; place-items: center; font-size: 18px;
  background: var(--canvas); color: var(--ink-2);
  transition: transform .35s var(--ease-out), background-color .25s, color .25s;
}
.qa summary:hover .ph { color: var(--accent-strong); }
.qa[open] summary .ph { transform: rotate(45deg); background: var(--accent); color: #fff; }
.qa-a { padding: 0 22px 20px; }
.qa-a p { color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 64ch; }
@supports selector(::details-content) {
  .qa::details-content { block-size: 0; overflow-y: clip; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
  .qa[open]::details-content { block-size: auto; }
}
@media (max-width: 899px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq-head { position: static; }
  .qa summary { font-size: 16px; padding-left: 18px; }
  .qa-a { padding: 0 18px 18px; }
}

/* =============================== CTA PANEL =============================== */
.cta-sec { padding-top: 0; }
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-card);
  background: var(--b-navy);
  color: #fff;
  padding: clamp(28px, 5vw, 72px);
  display: grid; gap: 26px;
  box-shadow: 0 40px 80px -40px rgba(20,40,75,.6);
}
.cta-mesh { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cta-mesh::before {
  content: ""; position: absolute; inset: -35%;
  background:
    radial-gradient(44% 48% at 22% 28%, rgba(21,119,189,1), transparent 72%),
    radial-gradient(34% 40% at 78% 34%, rgba(19,144,104,.9), transparent 70%),
    radial-gradient(18% 20% at 86% 22%, rgba(88,250,195,.85), transparent 70%),
    radial-gradient(40% 36% at 60% 88%, rgba(21,119,189,.55), transparent 70%);
  animation: mesh-drift 26s var(--ease-io) infinite alternate;
}
.cta-mesh::after {
  /* keep the lower band calm and dark so small white text passes contrast */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,40,75,.22) 0%, rgba(20,40,75,.08) 55%, rgba(20,40,75,0) 75%),
    linear-gradient(180deg, rgba(20,40,75,0) 30%, rgba(20,40,75,.55) 62%, rgba(20,40,75,.92) 100%);
}
@keyframes mesh-drift {
  0% { transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1); }
  100% { transform: translate3d(4%, 3%, 0) rotate(8deg) scale(1.08); }
}
.cta-panel.is-offscreen .cta-mesh::before, html.reduced .cta-mesh::before { animation-play-state: paused; }
html.reduced .cta-mesh::before { animation: none; }
.cta-logo { width: 150px; height: auto; }
.cta-panel h2 { color: #fff; max-width: 15ch; text-shadow: 0 2px 30px rgba(20,40,75,.35); }
.cta-sub { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: rgba(255,255,255,.94); max-width: 44ch; margin-top: -4px; }
.send-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: -6px; }
.send-list li {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 8px 18px 8px 12px; border-radius: var(--r-pill);
  background: rgba(11,21,32,.28); border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-weight: 600; font-size: 15.5px; line-height: 1.3; color: #fff;
}
.send-list .ph { font-size: 20px; color: #A6F3D8; flex: none; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-white { background: #fff; color: var(--b-navy); box-shadow: 0 12px 30px -14px rgba(0,0,0,.45); }
.btn-white:hover { background: #EAF4FC; }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.cta-panel :focus-visible { outline-color: #fff; }
.cta-main { display: grid; gap: 26px; align-content: start; justify-items: start; }
.cta-kicker { font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #A6F3D8; margin-bottom: -10px; }
/* Proof beside the ask: regulations we have turned into systems, each opens its case */
.cta-proof {
  align-self: end;
  padding: clamp(18px, 2vw, 24px);
  border-radius: var(--r-card);
  background: rgba(11,21,32,.32); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cta-proof-t { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; color: rgba(255,255,255,.85); margin-bottom: 12px; }
.rx-list { display: grid; gap: 8px; }
.rx {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; width: 100%;
  padding: 12px 44px 12px 14px; position: relative; text-align: left;
  border-radius: var(--r-media); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
  color: #fff; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .15s var(--ease-out);
}
.rx-from { font: 500 12.5px/1.35 var(--mono); color: #A6F3D8; }
.rx-arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 17px; color: rgba(255,255,255,.7); transition: transform .25s var(--ease-out), color .2s; }
.rx-to { font-weight: 700; font-size: 15.5px; line-height: 1.35; letter-spacing: -.01em; }
.rx:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) {
  .rx:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
  .rx:hover .rx-arrow { transform: translate(2px, calc(-50% - 2px)); color: #fff; }
}
@media (min-width: 1024px) {
  .cta-panel { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 64px); }
  .cta-contacts { grid-column: 1 / -1; }
}
.cta-contacts {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px;
  margin-top: clamp(8px, 2.4vw, 32px); padding-top: 26px; border-top: 1px solid rgba(255,255,255,.22);
}
.cta-contacts h3 { font: 500 12px/1 var(--mono); letter-spacing: .06em; color: rgba(255,255,255,.85); margin-bottom: 12px; font-weight: 500; }
.cta-contacts address, .cta-contacts a, .cta-contacts p { color: #fff; font-size: 15.5px; line-height: 1.6; }
.cta-contacts a { display: block; width: fit-content; text-decoration-color: rgba(255,255,255,.45); }
.cta-contacts a:hover { text-decoration-color: #fff; }
.cta-contacts .maps { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; }
@media (max-width: 859px) {
  .cta-contacts { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 479px) {
  .send-list li { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
}

/* =============================== FOOTER =============================== */
.footer { border-top: 1px solid var(--line); padding: 56px 0 96px; }
.f-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: start; }
.f-logo img { width: 150px; height: auto; }
.f-tag { margin-top: 16px; color: var(--ink-2); font-size: 15px; max-width: 34ch; }
.f-nav ul { display: grid; gap: 10px; }
.f-nav a, .f-contact a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.f-nav a:hover, .f-contact a:hover { color: var(--accent-strong); text-decoration: underline; }
.f-contact { display: grid; gap: 14px; font-size: 15px; color: var(--ink-2); }
.f-contact dl { margin: 0; display: grid; gap: 10px; }
.f-contact dl div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
.f-contact dt { font: 500 12.5px/1.7 var(--mono); color: var(--ink-2); }
.f-contact dd { margin: 0; }
.f-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.f-bottom .credits { max-width: 80ch; }
@media (max-width: 859px) {
  .f-top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .f-bottom { grid-template-columns: minmax(0, 1fr); }
}

/* Toast (bottom right, clear of the prototype switcher corner) */
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 18px 40px -16px rgba(11,21,32,.6);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease-out);
}
.toast .ph { color: #9ACBF0; font-size: 18px; }
.toast.is-on { opacity: 1; transform: none; }

/* Reduced motion: everything visible and still */
html.reduced *, html.reduced *::before, html.reduced *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
.cta-main h2 { font-size: clamp(2.2rem, 4.2vw, 3.9rem); max-width: 16ch; }
