/* Doctors2Doctors website v1.0.0 */
/* Self-hosted fonts (SIL Open Font License, see /licenses) */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../fonts/newsreader-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 500; font-display: swap; src: url('../fonts/newsreader-latin-wght-italic.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/hanken-grotesk-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/hanken-grotesk-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/hanken-grotesk-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-500.woff2') format('woff2'); }

/* Base reset (the preview host supplied this) */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Layout concept: a fixed particle "anatomy of light" lives behind dark chapters; clinical paper chapters slide over it. Editorial serif for conviction, grotesk for clarity, mono for the instrument's own units. */
:root {
  --night: #03070b;
  --night-2: #08121a;
  --night-line: rgba(160, 205, 214, 0.16);
  --mist: #e7eff0;
  --mist-soft: #9db1b7;
  --paper: #f2f5f5;
  --paper-2: #e5ecec;
  --paper-line: #c7d4d6;
  --ink: #0a1a21;
  --ink-soft: #3f555c;
  --teal: #5ccfc2;
  --teal-deep: #0b6c66;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --step-xl: clamp(3rem, 7.4vw, 7.6rem);
  --step-l: clamp(2.2rem, 4.6vw, 4.6rem);
  --step-m: clamp(1.5rem, 2.2vw, 2.1rem);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1240px;
  color-scheme: dark;
  scrollbar-color: var(--teal) var(--night);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); }
html::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track { background: var(--night); }
html::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 8px; border: 3px solid var(--night); }
body { background: var(--night); color: var(--mist); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--teal); color: var(--night); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
main, .site-footer { position: relative; z-index: 1; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
@media (min-width: 900px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

/* Type */
.display { font-family: var(--font-display); font-weight: 300; font-size: var(--step-xl); line-height: 0.98; letter-spacing: -0.025em; text-wrap: balance; margin: 0; font-optical-sizing: auto; }
.display em, .h2 em { font-style: italic; font-weight: 300; color: var(--teal); }
.light .h2 em { color: var(--teal-deep); }
.h2 { font-family: var(--font-display); font-weight: 350; font-size: var(--step-l); line-height: 1.03; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
.h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.125rem; line-height: 1.35; margin: 0; letter-spacing: -0.005em; }
.lede { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.6; max-width: 36rem; color: var(--mist-soft); margin: 0; }
.light .lede { color: var(--ink-soft); }
.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0; }

/* Buttons: one label per intent */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 0.9375rem/1 var(--font-body); text-decoration: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; white-space: nowrap; cursor: pointer; border: 1px solid transparent; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--night); }
.btn-primary:hover { background: #7fdcd2; }
.btn-ghost { border-color: rgba(231, 239, 240, 0.32); color: var(--mist); background: rgba(3, 7, 11, 0.35); }
.btn-ghost:hover { border-color: var(--mist); }
.light .btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.light .btn-ghost:hover { background: var(--ink); color: var(--paper); }
.light .btn-primary { background: var(--teal-deep); color: #fff; }
.light .btn-primary:hover { background: #095a55; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--teal); }
.light .text-link:hover { color: var(--teal-deep); }
.arrow { width: 16px; height: 16px; flex: none; }

/* Header */
.site-header { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; padding-top: 14px; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(5, 11, 16, 0.72); border: 1px solid var(--night-line); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--mist); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; letter-spacing: -0.01em; white-space: nowrap; }
.brand b { font-weight: 400; font-style: italic; color: var(--teal); padding: 0 1px; }
.site-header.on-light .brand b { color: var(--teal-deep); }
.nav { display: none; gap: 28px; font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--mist-soft); transition: color .2s; }
.nav a:hover { color: var(--mist); }
.site-header .btn { min-height: 44px; padding: 0 18px; }
@media (min-width: 1040px) { .nav { display: flex; } }
.site-header .bar, .brand, .nav a { transition: background-color .35s ease, border-color .35s ease, color .35s ease; }
.site-header.on-light .bar { background: rgba(242, 245, 245, 0.82); border-color: var(--paper-line); }
.site-header.on-light .brand { color: var(--ink); }
.site-header.on-light .nav a { color: var(--ink-soft); }
.site-header.on-light .nav a:hover { color: var(--ink); }
.site-header.on-light .btn-primary { background: var(--teal-deep); color: #fff; }
@media (max-width: 520px) { .brand span { font-size: 1.1rem; } .site-header .bar .btn { display: none; } .site-header .bar { padding: 8px 18px; } }

/* Chapters */
.chapter { position: relative; overflow-x: clip; }
.dark { color: var(--mist); }
.light { background: var(--paper); color: var(--ink); }
.light.alt { background: var(--paper-2); }
.pad { padding-block: clamp(96px, 13vw, 180px); }

/* Hero */
.hero { min-height: min(100svh, 980px); display: flex; align-items: flex-end; padding-block: 140px clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; gap: 28px; width: 100%; }
.hero .display { max-width: 11ch; }
.hero .lede { max-width: 31rem; color: #b7c8cc; }
.hero .kicker { color: var(--teal); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.ctas .text-link { margin-left: 8px; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--night-line); color: var(--mist-soft); }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: inline-block; }
@media (max-width: 899px) {
  .hero { min-height: 0; align-items: flex-end; padding-top: 27svh; padding-bottom: 40px; }
  .hero-grid { gap: 20px; }
  .hero .lede { font-size: 1rem; }
  .hero .display { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero-foot { margin-top: 20px; }
  .hero-grid { position: relative; }
  .hero-grid::before { content: ""; position: absolute; inset: -60px -40px -40px; background: linear-gradient(to top, rgba(3,7,11,0.96) 62%, rgba(3,7,11,0)); z-index: -1; }
}

/* Manifesto */
.manifesto { padding-block: clamp(120px, 18vw, 240px); }
.manifesto .wrap { display: grid; }
.manifesto p.statement { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.9rem, 3.9vw, 3.6rem); line-height: 1.18; letter-spacing: -0.015em; max-width: 21em; justify-self: end; text-wrap: pretty; }
.manifesto .w { transition: color .2s; }
@media (min-width: 900px) { .manifesto p.statement { max-width: 12.5em; } }
@media (max-width: 899px) { .manifesto { padding-top: 46svh; } .manifesto p.statement { position: relative; } .manifesto p.statement::before { content: ""; position: absolute; inset: -30px -24px; background: radial-gradient(closest-side, rgba(3,7,11,0.88), rgba(3,7,11,0.55) 70%, rgba(3,7,11,0)); z-index: -1; } }

/* Pinned chapters (specialties, frontier) */
.pinned { min-height: 100svh; display: flex; align-items: center; padding-block: 110px 48px; }
.pin-grid { display: grid; gap: 32px; width: 100%; align-items: center; }
@media (min-width: 900px) { .pin-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } .frontier .pin-copy { grid-column: 2; } }
.pin-copy { display: grid; gap: 28px; min-width: 0; }
.steps { padding-left: 26px; position: relative; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.steps::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--night-line); }
.steps .rail { position: absolute; left: 0; top: 10px; width: 1px; height: calc(100% - 20px); background: var(--teal); transform-origin: top; transform: scaleY(0); }
.step { padding: 12px 0; color: var(--mist-soft); transition: color .35s ease; position: relative; }
.step::before { content: ""; position: absolute; left: -30px; top: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--night); border: 1px solid var(--mist-soft); transition: background-color .35s, border-color .35s; }
.step .h3 { font-family: var(--font-display); font-weight: 350; font-size: clamp(1.4rem, 2vw, 1.85rem); letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.specialties { --spec: var(--teal); }
.specialties .h2 em, .specialties .step .detail .mono { color: var(--spec); transition: color .6s ease; }
.specialties .steps .rail { background: var(--spec); transition: background-color .6s ease; }
.specialties .step.is-active::before { background: var(--spec); border-color: var(--spec); }
.step .tag { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); border: 1px solid rgba(92, 207, 194, 0.45); border-radius: 999px; padding: 3px 9px; }
.step .detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease, opacity .45s ease; opacity: 0; }
.step .detail > div { overflow: hidden; }
.step .detail p { padding-top: 8px; max-width: 32rem; color: #b7c8cc; }
.step .detail .mono { display: block; padding-top: 10px; color: var(--teal); text-transform: none; letter-spacing: 0.02em; }
.step.is-active { color: var(--mist); }
.step.is-active::before { background: var(--teal); border-color: var(--teal); }
.step.is-active .detail { grid-template-rows: 1fr; opacity: 1; }
.also { color: var(--mist-soft); font-size: 0.9375rem; max-width: 34rem; }
.specialties .step { padding: 7px 0; }
.specialties .step::before { top: 17px; }
.specialties .step .h3 { font-size: clamp(1.15rem, 1.45vw, 1.45rem); }
.specialties .pin-copy { gap: 18px; }
.specialties .h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); }
@media (min-width: 900px) { .specialties.pinned { padding-block: 96px 28px; } }
.spec-dots { display: none; gap: 6px; }
.spec-dots i { width: 18px; height: 3px; border-radius: 3px; background: var(--night-line); transition: background-color .4s, width .4s; }
.spec-dots i.on { background: var(--spec); width: 34px; }
@media (max-width: 899px) {
  .specialties .step:not(.is-active) { display: none; }
  .specialties .steps { padding-left: 0; }
  .specialties .steps::before, .specialties .steps .rail, .specialties .step::before { display: none; }
  .spec-dots { display: flex; }
}
.also strong { color: var(--mist); font-weight: 500; }
.scene-cap { position: absolute; right: var(--gutter-r); bottom: 28px; color: var(--mist-soft); text-align: right; display: none; }
@media (min-width: 900px) { .scene-cap { display: block; right: max(40px, env(safe-area-inset-right, 0px)); } }
@media (max-width: 899px) {
  .pinned { align-items: flex-end; padding-top: 40svh; }
  .pin-copy { position: relative; }
  .pin-copy::before { content: ""; position: absolute; inset: -48px -40px -24px; background: linear-gradient(to top, rgba(3,7,11,0.97) 70%, rgba(3,7,11,0)); z-index: -1; }
  .pinned .h2 { font-size: clamp(1.85rem, 7.4vw, 2.6rem); }
}

/* Explorer chapters: clickable specialty selector, no scroll pinning */
.explorer { min-height: 100svh; display: flex; align-items: center; padding-block: 110px 56px; }
.explorer > .wrap { min-width: 0; width: 100%; }
.explorer .pin-copy > * { min-width: 0; }
.explorer .steps { padding-left: 0; }
.explorer .steps::before, .explorer .steps .rail { display: none; }
.explorer .step { padding: 0; }
.explorer .step::before { display: none; }
.step-btn { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; margin-left: -12px; border-radius: 12px; cursor: pointer; color: var(--mist-soft); position: relative; transition: background-color .25s ease, color .25s ease; }
.step-btn:hover { color: var(--mist); background: rgba(231, 239, 240, 0.05); }
.step-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.step.is-active .step-btn { color: var(--mist); background: rgba(231, 239, 240, 0.07); }
.step-btn .sw { width: 10px; height: 10px; border-radius: 50%; flex: none; opacity: 0.55; transition: opacity .25s, transform .25s; }
.step.is-active .step-btn .sw, .step-btn:hover .sw { opacity: 1; transform: scale(1.2); }
.step-btn .prog { position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--spec, var(--teal)); transform: scaleX(0); transform-origin: left; opacity: 0; }
.step.is-active .step-btn .prog.run { opacity: 0.8; animation: d2dprog var(--dwell, 6s) linear forwards; }
@keyframes d2dprog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.explorer .step .detail { padding-left: 22px; }
.explorer .step .detail p { padding-top: 4px; }
.explorer .step .detail > div { padding-bottom: 10px; }
.frontier { --spec: var(--teal); }
.spec-detail { display: none; }
@media (max-width: 899px) {
  .explorer { align-items: flex-end; padding-top: 42svh; padding-bottom: 48px; }
  .explorer .h2 { font-size: clamp(1.85rem, 7.4vw, 2.6rem); }
  .explorer .steps { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); }
  .explorer .steps-list { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(16px, env(safe-area-inset-left, 0px)) 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .explorer .steps-list::-webkit-scrollbar { display: none; }
  .explorer .step { display: block !important; flex: none; scroll-snap-align: start; }
  .explorer .step .detail { display: none; }
  .step-btn { margin-left: 0; width: auto; white-space: nowrap; padding: 10px 14px; min-height: 44px; border: 1px solid var(--night-line); border-radius: 999px; background: rgba(8, 18, 26, 0.8); }
  .step.is-active .step-btn { border-color: var(--spec, var(--teal)); background: rgba(8, 18, 26, 0.95); }
  .step-btn .h3 { font-size: 0.95rem !important; }
  .step-btn .tag { display: none; }
  .spec-detail { display: grid; gap: 8px; min-height: 7.5em; }
  .spec-detail p { color: #b7c8cc; }
  .spec-detail .mono { color: var(--spec, var(--teal)); text-transform: none; letter-spacing: 0.02em; }
}

/* Pathway */
.section-head { display: grid; gap: 22px; max-width: 46rem; }
.tiers-wrap { position: relative; margin-top: clamp(56px, 7vw, 88px); }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.tiers-wrap .track { position: absolute; background: var(--paper-line); }
.tiers-wrap .track i { position: absolute; inset: 0; background: var(--teal-deep); transform-origin: left top; }
.tier { display: grid; gap: 14px; padding-left: 34px; position: relative; }
.tier .dot { position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink-soft); transition: background-color .3s, border-color .3s; }
.tier.lit .dot { background: var(--teal-deep); border-color: var(--teal-deep); }
.tier .mono { color: var(--teal-deep); }
.tier .h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.3vw, 2.15rem); letter-spacing: -0.015em; }
.tier p { color: var(--ink-soft); max-width: 24rem; }
.tier dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 6px 0 0; font-size: 0.875rem; }
.tier dt { color: var(--ink-soft); }
.tier dd { margin: 0; font-weight: 500; }
@media (max-width: 899px) { .tiers-wrap .track { left: 7px; top: 8px; bottom: 8px; width: 1.5px; } .tiers-wrap .track i { transform: scaleY(0); } }
@media (min-width: 900px) {
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .tier { padding-left: 0; padding-top: 44px; }
  .tier .dot { top: 0; }
  .tiers-wrap .track { left: 7px; right: 0; top: 7px; height: 1.5px; }
  .tiers-wrap .track i { transform: scaleX(0); }
}

/* Standards */
.standards-grid { display: grid; gap: 56px; margin-top: clamp(56px, 7vw, 88px); align-items: start; }
@media (min-width: 980px) { .standards-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 72px; } }
.standards-grid > * { min-width: 0; }
.pillars { display: grid; gap: 0; border-top: 1px solid var(--paper-line); }
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } .pillars .pillar:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--paper-line); } .pillars .pillar:nth-child(even) { padding-left: 32px; } }
.pillar { padding-block: 28px; border-bottom: 1px solid var(--paper-line); display: grid; gap: 10px; }
.pillar svg { width: 28px; height: 28px; color: var(--teal-deep); }
.pillar p { color: var(--ink-soft); font-size: 0.98rem; }
.credential { background: var(--night); color: var(--mist); border-radius: 22px; padding: 28px; display: grid; gap: 22px; box-shadow: 0 30px 60px -30px rgba(10, 26, 33, 0.45); position: relative; overflow: hidden; }
.credential .top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.credential .seal { width: clamp(60px, 16vw, 88px); height: clamp(60px, 16vw, 88px); color: var(--mist); flex: none; }
.credential .name { overflow-wrap: anywhere; font-family: var(--font-display); font-size: clamp(1.45rem, 5.4vw, 1.9rem); font-weight: 350; line-height: 1.1; letter-spacing: -0.01em; }
.credential dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 0.875rem; border-top: 1px solid var(--night-line); padding-top: 18px; }
.credential dt { color: var(--mist-soft); }
.credential dd { margin: 0; }
.credential .verify { display: flex; align-items: center; gap: 8px; color: var(--teal); font-size: 0.875rem; font-weight: 500; }
.note { font-size: 0.8125rem; color: var(--ink-soft); margin-top: 12px; }
.dark .note, .credential .note { color: var(--mist-soft); }

/* Peak */
.peak { min-height: 150svh; display: grid; align-content: space-between; padding-block: 18svh 16svh; text-align: center; }
.peak .giant { font-family: var(--font-display); font-weight: 300; font-size: clamp(3.2rem, 10vw, 10.5rem); line-height: 0.95; letter-spacing: -0.035em; margin: 0; }
.peak .giant em { font-style: italic; color: var(--teal); }
.peak .after { display: grid; gap: 24px; justify-items: center; }
.peak .after .lede { color: #c2d2d5; max-width: 34rem; margin: 0 auto; }
.peak .after { position: relative; }
.peak .after::before { content: ""; position: absolute; inset: -60px -10%; background: radial-gradient(closest-side, rgba(3,7,11,0.9), rgba(3,7,11,0)); z-index: -1; }

/* Hiring board */
.hire-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hire-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; } }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; color: var(--teal-deep); flex: none; margin-top: 3px; }
.profile { background: #fff; border: 1px solid var(--paper-line); border-radius: 22px; padding: 26px; display: grid; gap: 20px; box-shadow: 0 40px 80px -40px rgba(10, 26, 33, 0.35); min-width: 0; }
.profile .head { display: flex; gap: 16px; align-items: center; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.35rem; color: var(--teal-deep); flex: none; }
.profile .who { min-width: 0; }
.profile .who strong { display: block; font-size: 1.125rem; }
.profile .who span { color: var(--ink-soft); font-size: 0.9rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #e3f3f1; color: var(--teal-deep); white-space: nowrap; }
.profile .row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.8125rem; padding: 6px 11px; border-radius: 8px; background: var(--paper); border: 1px solid var(--paper-line); }
.meters { display: grid; gap: 12px; }
.meter { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: 12px; align-items: center; font-size: 0.875rem; }
.meter .bar { height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--teal-deep); border-radius: 6px; }
.meter b { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; font-size: 0.8125rem; }
.profile .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--paper-line); padding-top: 18px; }
.profile .foot .mono { color: var(--ink-soft); }
.profile .btn { min-height: 42px; }
@media (max-width: 480px) { .meter { grid-template-columns: 6.5rem 1fr auto; } .profile { padding: 20px; } }

/* Roadmap */
.ideas { display: grid; gap: 0; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--paper-line); }
@media (min-width: 720px) { .ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .ideas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.idea { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--paper-line); display: grid; gap: 10px; align-content: start; }
.idea .mono { color: var(--teal-deep); }
.idea p { color: var(--ink-soft); font-size: 0.98rem; max-width: 26rem; }

/* Partners */
.seats { display: grid; gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 900px) { .seats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.seat { border: 1.5px dashed var(--paper-line); border-radius: 20px; padding: 28px; display: grid; gap: 14px; align-content: start; background: rgba(255,255,255,0.45); transition: border-color .25s, background-color .25s; }
.seat:hover { border-color: var(--teal-deep); background: #fff; }
.seat .mono { color: var(--ink-soft); }
.seat p { color: var(--ink-soft); font-size: 0.98rem; }
.seat .text-link { justify-self: start; margin-top: 6px; }

/* Final */
.final { padding-block: clamp(140px, 16vw, 200px) clamp(80px, 10vw, 120px); min-height: 100svh; display: flex; align-items: center; }
.final-grid { display: grid; gap: 48px; width: 100%; align-items: start; }
@media (min-width: 980px) { .final-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 72px; } }
.final .h2 { font-size: clamp(2.6rem, 5.4vw, 5.4rem); }
@media (max-width: 899px) { .final { padding-top: 46svh; align-items: flex-start; } }
.join { background: rgba(8, 18, 26, 0.82); border: 1px solid var(--night-line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-width: 0; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 14px; background: rgba(3, 7, 11, 0.7); border: 1px solid var(--night-line); }
.roles input { position: absolute; opacity: 0; pointer-events: none; }
.roles label { display: grid; place-items: center; text-align: center; min-height: 46px; padding: 6px 8px; border-radius: 10px; font-size: 0.875rem; font-weight: 600; color: var(--mist-soft); cursor: pointer; transition: background-color .2s, color .2s; line-height: 1.2; }
.roles input:checked + label { background: var(--mist); color: var(--night); }
.roles input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.8125rem; color: var(--mist-soft); font-weight: 500; }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(160, 205, 214, 0.24); background: rgba(3, 7, 11, 0.6); color: var(--mist); font: 500 1rem var(--font-body); }
.field input::placeholder { color: #6f858b; }
.field input:focus, .field select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(92, 207, 194, 0.18); }
.field [aria-invalid="true"] { border-color: #f08a7e; }
.err { color: #f6a89f; font-size: 0.8125rem; min-height: 0; }
.two { display: grid; gap: 14px; }
@media (min-width: 520px) { .two { grid-template-columns: 1fr 1fr; } }
.join .btn { justify-content: center; width: 100%; }
.join .fine { font-size: 0.8125rem; color: var(--mist-soft); }
.thanks { display: grid; gap: 10px; padding: 8px 0; }
.thanks .h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; }
.thanks p { color: var(--mist-soft); }

/* Footer */
.site-footer { background: var(--night); border-top: 1px solid var(--night-line); color: var(--mist-soft); font-size: 0.875rem; padding-block: 36px max(36px, env(safe-area-inset-bottom, 0px)); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--mist); }

/* Reveal helper (content is visible without JS; JS adds motion only) */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js.rm .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; } }
