/* /developer — four parts in order: why → how → whose data → who.
 * Large type, generous white, one signature motion (the scroll-linked stage in "how").
 * Everything is readable with no JS and with reduced motion; motion only adds order. */

.dev-page main { overflow-x: clip; }
.hide-sm { }
@media (max-width: 560px) { .hide-sm { display: none; } }

.h-display {
  font-size: clamp(34px, 4.8vw, 60px); line-height: 1.24; font-weight: 700; letter-spacing: 0;
  text-wrap: balance;
}
.h-display-sm { font-size: clamp(32px, 4.2vw, 52px); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.75; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.seg { white-space: nowrap; }

/* ---------- 1 · hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vh, 104px) 0 0; text-align: center; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-title { font-size: clamp(38px, 6.4vw, 80px); line-height: 1.2; font-weight: 700; letter-spacing: 0; }
.hero-title .hl { display: block; }
.hero-sub { margin-top: 24px; max-width: 34em; text-wrap: balance; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.75; color: var(--ink-2); }
.hero-cta { margin-top: 32px; }

.hero-visual { position: relative; max-width: 680px; margin: clamp(48px, 7vh, 80px) auto 0; padding: 0 var(--gutter); }
.hv-light { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; filter: blur(8px); }
.hv-light-pink { width: 360px; height: 260px; left: 2%; top: 10%; background: radial-gradient(closest-side, rgba(248, 220, 232, .95), rgba(248, 220, 232, 0)); }
.hv-light-sky { width: 380px; height: 280px; right: 0; bottom: -12%; background: radial-gradient(closest-side, rgba(221, 238, 255, 1), rgba(221, 238, 255, 0)); }
.hv-plate { position: relative; z-index: 1; border-radius: var(--r-panel); padding: 28px 32px 30px; text-align: left; }
.hv-wave { width: 100%; height: 48px; fill: var(--ink); opacity: .72; }
.hv-pair { position: relative; margin-top: 22px; display: grid; gap: 10px; }
.hv-line { display: flex; align-items: baseline; gap: 14px; }
.hv-lang { flex: none; width: 72px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.hv-words { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; line-height: 1.5; }
.hv-central .hv-words { color: var(--accent); }
.hv-link { display: block; height: 1px; margin-left: 86px; background: linear-gradient(90deg, rgba(29, 29, 31, .22), rgba(29, 29, 31, 0)); }

.motion .hero-title .hl { animation: dev-rise .65s var(--ease) both; }
.motion .hero-title .hl-2 { animation-delay: .08s; }
.motion .hero-sub { animation: dev-rise .5s var(--ease) .12s both; }
.motion .hero-cta { animation: dev-rise .5s var(--ease) .2s both; }
.motion .hero-visual { animation: dev-visual .8s var(--ease) .38s both; }
@keyframes dev-rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes dev-visual { from { opacity: 0; transform: translateY(20px) scale(.97); } }

/* ---------- problem (the heart of the page: most space) ---------- */
.problem { padding: clamp(112px, 16vh, 176px) 0 clamp(104px, 14vh, 160px); }
.problem-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.problem-copy .lead { margin-top: 28px; }
.words {
  border-radius: var(--r-panel); padding: 12px 32px 22px;
  background: linear-gradient(165deg, #FDF0F5 0%, #FFFFFF 78%); border: 1px solid rgba(248, 220, 232, .9);
}
.word-list li { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; gap: 12px; padding: 18px 0; }
.word-list li + li { border-top: 1px solid rgba(29, 29, 31, .07); }
.word-list li::after { content: ""; grid-column: 2; grid-row: 1; height: 1px; background: rgba(29, 29, 31, .25); }
.w-south { grid-column: 1; grid-row: 1; font-size: clamp(30px, 3.2vw, 40px); font-weight: 600; line-height: 1.4; }
.w-central { grid-column: 3; grid-row: 1; font-size: clamp(18px, 1.7vw, 22px); color: var(--ink-2); line-height: 1.5; }
.words figcaption { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.motion .problem-grid.reveal { --rise: 16px; --dur: .6s; }

/* ---------- 2 · tech + signature stage ---------- */
.tech { padding: clamp(64px, 10vh, 120px) 0 clamp(72px, 10vh, 120px); background: linear-gradient(180deg, #FFFFFF 0%, var(--paper) 22%, var(--paper) 78%, #FFFFFF 100%); }
.tech-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.tech-head .lead { margin-top: 22px; }

.scrolly { position: relative; margin-top: clamp(40px, 6vh, 64px); }
.stage { position: relative; }
.stage::before, .stage::after { content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; }
.stage::before { width: 420px; height: 300px; left: 4%; top: 18%; background: radial-gradient(closest-side, rgba(248, 220, 232, .85), rgba(248, 220, 232, 0)); }
.stage::after { width: 460px; height: 320px; right: 2%; bottom: 6%; background: radial-gradient(closest-side, rgba(221, 238, 255, .95), rgba(221, 238, 255, 0)); }
.stage-inner { position: relative; z-index: 1; }

.demo-tag { display: flex; justify-content: center; margin-bottom: 36px; }
.demo-tag span {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.demo-tag span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #E3A8C0; }

.flow { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr); align-items: start; }
.step { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel {
  position: relative; min-height: 224px; padding: 26px 28px 28px; border-radius: var(--r-card);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.panel-audio { justify-content: space-between; }
.wave { width: 100%; height: 88px; }
.wave-base { fill: rgba(29, 29, 31, .2); }
.wave-played { fill: var(--ink); clip-path: inset(0 calc((1 - var(--a, 1)) * 100%) 0 0); }
.panel-cap { font-size: 14px; color: var(--ink-2); }
.panel-kicker { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.panel-words { font-size: clamp(21px, 1.9vw, 26px); font-weight: 600; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.panel-trans { background: var(--white); border: 1px solid #CFE3F9; box-shadow: 0 1px 2px rgba(29, 29, 31, .04), 0 18px 44px rgba(18, 87, 168, .1); }
.panel-trans .panel-words { color: var(--accent); }
.step-label { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.step-label b { font-size: 16px; font-weight: 600; }
.step-label span { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

.link { position: relative; height: 224px; display: flex; align-items: center; }
.link i {
  display: block; width: 100%; height: 2px; border-radius: 2px; transform-origin: left center;
  background: linear-gradient(90deg, rgba(227, 168, 192, .9), rgba(150, 196, 240, .95));
  transform: scaleX(var(--c, 1));
}
.link i::after {
  content: ""; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: #9CC7F2; box-shadow: 0 0 0 4px rgba(221, 238, 255, .9); opacity: var(--c, 1);
}
.link i { position: relative; }
.link-1 i { --c: var(--c1, 1); }
.link-2 i { --c: var(--c2, 1); }

/* Pinned mode (desktop, tall enough, motion allowed): one sticky stage over ~165svh of normal scroll.
 * Every value below is a function of a single scroll progress (developer.js); nothing plays by itself. */
.scrolly.pin { height: 165svh; }
.scrolly.pin .stage { position: sticky; top: 64px; height: calc(100svh - 64px); display: flex; align-items: center; }
.scrolly.pin .stage-inner { width: 100%; }
.scrolly.pin .step-audio .panel { transform: scale(calc(1 + .02 * var(--a-focus, 0))); }
.scrolly.pin .step-text { opacity: calc(.16 + .84 * var(--t, 1)); transform: translate3d(0, calc((1 - var(--t, 1)) * 16px), 0); }
.scrolly.pin .step-trans { opacity: calc(.16 + .84 * var(--x, 1)); transform: translate3d(0, calc((1 - var(--x, 1)) * 16px), 0); }
.scrolly.pin .step-text .panel-words, .scrolly.pin .step-trans .panel-words { opacity: var(--words-t, 1); }
.scrolly.pin .step-trans .panel-words { opacity: var(--words-x, 1); }

.tech-foot { margin-top: clamp(40px, 6vh, 64px); display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.tech-note { max-width: 40em; font-size: 15px; line-height: 1.7; color: var(--ink-2); }

.disclosure { width: 100%; max-width: var(--measure); text-align: left; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.disclosure summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 4px;
  cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; border-radius: 10px;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.disclosure[open] summary svg { transform: rotate(180deg); }
.disclosure-body { overflow: hidden; }
.spec { display: grid; gap: 14px; padding: 4px 4px 22px; }
.spec div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
.spec dt { font-size: 15px; font-weight: 600; }
.spec dd { font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* ---------- 3 · credit ---------- */
.credit { padding: clamp(96px, 13vh, 144px) 0; background: linear-gradient(180deg, #FFFFFF 0%, #FFFAEA 20%, #FFFAEA 80%, #FFFFFF 100%); }
.credit-inner { max-width: calc(var(--measure) + var(--gutter) * 2); display: flex; flex-direction: column; align-items: flex-start; }
.credit-mark { margin-top: 32px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: .01em; }
.credit-mark span { color: var(--ink-3); margin: 0 .2em; }
.credit .lead { margin-top: 14px; }
.attrib { margin-top: 32px; width: 100%; display: grid; gap: 0; border-top: 1px solid rgba(29, 29, 31, .08); }
.attrib div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(29, 29, 31, .08); }
.attrib dt { font-size: 15px; font-weight: 600; }
.attrib dd { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 18px; font-weight: 600; text-decoration: none; }
.arrow-link:hover { text-decoration: underline; }
.arrow-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.motion .credit-inner.reveal { --rise: 12px; --dur: .5s; }

/* ---------- 4 · team ---------- */
.team { padding: clamp(104px, 14vh, 160px) 0 clamp(96px, 12vh, 144px); }
.people-group { margin-top: clamp(40px, 6vh, 64px); }
.group-label { font-size: 15px; font-weight: 600; color: var(--ink-2); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.people-advisors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.people li { padding: 24px 0 26px; }
.p-name { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; line-height: 1.45; }
.p-role { margin-top: 6px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.motion .people li.reveal { --rise: 12px; --dur: .45s; }
.closing { margin-top: clamp(56px, 8vh, 88px); padding-top: 40px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.closing-lead { font-size: 17px; color: var(--ink-2); }
.contact { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.contact a { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .flow { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .link { height: 44px; justify-content: center; }
  .link i { width: 2px; height: 100%; transform: none; background: linear-gradient(180deg, rgba(227, 168, 192, .9), rgba(150, 196, 240, .95)); }
  .link i::after { display: none; }
  .panel { min-height: 0; }
  .panel-audio { gap: 14px; }
}
@media (max-width: 760px) {
  .problem-grid { grid-template-columns: 1fr; }
  .words { padding: 6px 22px 18px; }
  .people, .people-advisors { grid-template-columns: 1fr; }
  .people li { padding: 18px 0 20px; }
  .people li + li { border-top: 1px solid var(--line); }
  .hv-plate { padding: 22px 20px 24px; }
  .hv-lang { width: 60px; font-size: 13px; }
  .hv-link { margin-left: 74px; }
  .attrib div { grid-template-columns: 1fr; gap: 2px; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 400px) {
  .hero-title { font-size: 36px; }
  .h-display { font-size: 31px; }
}
