/* GTM Doctor. Clinical editorial: paper, ink, one phosphor window. Serif display with italic accents, mono chart labels. */
:root {
  --paper: #F3F5F2;
  --paper-2: #E8ECE8;
  --paper-3: #DDE3DE;
  --ink: #0E1512;
  --ink-2: #353E3A;
  --mute: #6F7A74;
  --rule: #CDD5CF;
  --green: #0FB067;
  --green-deep: #087A48;
  --phosphor: #45F0A0;
  --dark: #071009;
  --forest: #0D2A21;
  --forest-2: #123A2D;
  --forest-line: rgba(243,245,242,.14);
  --brass: #B8975A;
  --brass-soft: rgba(184,151,90,.45);
  --red: #C8463A;
  --display: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; padding-bottom: env(safe-area-inset-bottom); background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
em { font-family: var(--display); font-style: italic; color: var(--green-deep); }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.muted { color: var(--mute); }
.sep { color: var(--green); margin: 0 .5em; }
.green, .ok { color: var(--green-deep); }
.dead { color: var(--red); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* buttons */
.btn {
  appearance: none; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  padding: 15px 22px; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__cross { width: 14px; height: 14px; color: var(--green); display: inline-flex; }
.brand__cross svg { width: 100%; height: 100%; }
.brand__name { font-family: var(--display); font-size: 22px; letter-spacing: -.01em; }
.brand__name i { color: var(--green-deep); }
.vitals { display: flex; gap: 22px; white-space: nowrap; }
.vitals .mono b { font-weight: 500; color: var(--ink); margin-left: 6px; font-variant-numeric: tabular-nums; }
.vitals .pulse { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: 1px; animation: blink 1.1s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.nav { display: flex; justify-content: flex-end; align-items: center; gap: 26px; }
.nav a { text-decoration: none; white-space: nowrap; }
.nav a.mono { color: var(--ink-2); transition: color .2s; }
.nav a.mono:hover { color: var(--green-deep); }
.btn--sm { padding: 11px 16px; }
.btn--bare { border: 0; background: transparent; color: var(--ink); padding: 10px 0 10px 18px; }
.btn--bare:hover { background: transparent; color: var(--green-deep); }

/* hero */
.hero { position: relative; padding: 150px 0 72px; }
.hero__ecg { position: absolute; left: 0; right: 0; top: 96px; height: 56px; pointer-events: none; }
.hero__ecg svg { width: 100%; height: 100%; display: block; }
.ecg { fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; opacity: .9; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--mute); margin-bottom: 28px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--brass); }
.hero h1 {
  font-family: var(--display); font-size: clamp(44px, 6.4vw, 92px); line-height: .98; letter-spacing: -.02em;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; white-space: nowrap; }
.hero h1 em { color: var(--green-deep); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 54ch; margin: 34px 0 44px; }

.dx { max-width: 520px; }
.dx label { display: block; color: var(--mute); margin-bottom: 12px; }
.dx__row { display: flex; align-items: stretch; border-bottom: 1.5px solid var(--ink); }
.dx__prefix { display: flex; align-items: center; color: var(--green-deep); padding-right: 14px; font-size: 14px; }
.dx input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 0;
  font-family: var(--mono); font-size: 26px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.dx input::placeholder { color: var(--paper-3); }
.dx__msg { min-height: 1.5em; margin-top: 12px; color: var(--mute); }
.dx__msg.err { color: var(--red); }

.hero__doc { margin: 0; position: relative; justify-self: end; width: 100%; max-width: 440px; }
.arch {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 18px 18px;
  background: var(--paper-2);
  box-shadow: 0 0 0 1px var(--brass-soft), 0 0 0 10px var(--paper), 0 0 0 11px var(--brass-soft), 0 40px 80px -40px rgba(13,42,33,.55);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; transform: scale(1.02); }
.arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 -80px 80px -60px rgba(13,42,33,.35); pointer-events: none; }
.arch__cap { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 6px 0; color: var(--mute); }
.arch__cap .serif { font-family: var(--display); font-size: 22px; color: var(--ink); letter-spacing: -.01em; }
.seal { position: absolute; left: -44px; bottom: 44px; width: 132px; height: 132px; color: var(--brass); background: var(--paper); border-radius: 50%; box-shadow: 0 0 0 1px var(--brass-soft); }
.seal svg { width: 100%; height: 100%; animation: spin 24s linear infinite; }
.seal__text { font-family: var(--mono); font-size: 8.6px; letter-spacing: .12em; fill: currentColor; font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }
.doc__tag {
  position: absolute; right: -10px; top: 34px; z-index: 2; transform: rotate(6deg);
  background: var(--green); color: var(--dark); padding: 7px 11px; border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ticker */
.ticker { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); overflow: hidden; padding: 14px 0; }
.ticker__track { display: flex; gap: 48px; width: max-content; animation: ticker 48s linear infinite; }
.ticker__track span { color: var(--mute); }
.ticker__track span b { color: var(--ink); font-weight: 500; }
.ticker__track span i { font-style: normal; color: var(--green); margin-left: 48px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* forest sections */
.section--forest { background: var(--forest); color: var(--paper); padding-bottom: clamp(72px, 9vw, 132px); margin-top: clamp(72px, 9vw, 132px); position: relative; }
.section--forest::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 0%, rgba(69,240,160,.10), transparent 60%), radial-gradient(40% 40% at 0% 100%, rgba(184,151,90,.12), transparent 60%); pointer-events: none; }
.section--forest + .section { padding-top: clamp(72px, 9vw, 132px); }
.section--forest .wrap { position: relative; }
.section__head--dark { border-bottom-color: var(--forest-line); }
.section__head--dark h2 { font-family: var(--display); font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -.015em; color: var(--paper); max-width: 24ch; }
.section__head--dark .mono { color: rgba(243,245,242,.6); }
.section__head--dark .n { color: var(--brass); }

/* practice */
.practice { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); padding-top: 56px; }
.practice__copy { display: grid; gap: 22px; }
.practice__copy p { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: rgba(243,245,242,.86); max-width: 58ch; }
.practice__copy p:first-child::first-letter { font-family: var(--display); font-size: 3.2em; float: left; line-height: .8; padding: 8px 10px 0 0; color: var(--brass); }
.practice__sig { font-family: var(--display); font-style: italic; color: var(--phosphor) !important; font-size: 24px !important; }
.practice__chart { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 16px 22px; align-content: start; border: 1px solid var(--forest-line); padding: 28px; background: rgba(7,16,9,.25); }
.practice__chart dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); padding-top: 3px; }
.practice__chart dd { margin: 0; color: rgba(243,245,242,.9); font-size: 16px; border-bottom: 1px solid var(--forest-line); padding-bottom: 14px; }
.practice__chart dd:last-child { border-bottom: 0; padding-bottom: 0; }

/* conditions */
.conds { list-style: none; margin: 0; padding: 0; }
.cond { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); position: relative; transition: padding-left .35s var(--ease); }
.cond::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--brass); transition: width .5s var(--ease); }
.cond:hover::before { width: 100%; }
.cond:hover { padding-left: 8px; }
.cond__n { color: var(--brass); }
.cond__body h3 { font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.01em; }
.cond__body p { color: var(--ink-2); margin-top: 6px; max-width: 60ch; }
.cond__dx { display: grid; justify-items: end; gap: 6px; text-align: right; }
.cond__dx > .mono:first-child { color: var(--green-deep); }
.cond__status { color: var(--mute); font-size: 10px; }

/* consultation steps */
.steps { list-style: none; margin: 0; padding: 56px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 22px; border-top: 1px solid var(--rule); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 1px; background: var(--brass); }
.step__n { font-family: var(--display); font-size: 48px; line-height: 1; color: var(--brass); display: block; margin-bottom: 14px; }
.step h3 { font-family: var(--display); font-size: 28px; line-height: 1.1; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 16px; }
.treatments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 64px; }
.treat { background: #fff; padding: 32px 28px 34px; display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; }
.treat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.treat:hover::after { transform: scaleX(1); }
.treat__k { color: var(--brass); }
.treat h3 { font-family: var(--display); font-size: 32px; line-height: 1.05; letter-spacing: -.01em; }
.treat p { color: var(--ink-2); font-size: 16px; }
.treat__note { margin-top: 22px; color: var(--mute); display: flex; gap: 14px; align-items: center; }
.treat__note a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
.treat__note a:hover { color: var(--green-deep); }

/* consult list */
.consult__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; color: var(--mute); }
.consult__list li { display: flex; align-items: center; gap: 12px; }
.consult__list li::before { content: ""; width: 18px; height: 1px; background: var(--brass); }

/* section heads */
.section { padding: clamp(72px, 9vw, 132px) 0 0; }
.section__head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--ink); }
.section__num { display: flex; align-items: baseline; gap: 18px; }
.section__num .n { font-family: var(--display); font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.section__num .mono { color: var(--mute); }
.section__head p { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); max-width: 56ch; }

/* case file */
.file { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 48px; padding: 56px 0 0; }
.file__meta { display: grid; gap: 22px; align-content: start; position: sticky; top: 96px; }
.stamp {
  justify-self: start; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: var(--green-deep); border: 1.5px solid currentColor; padding: 7px 12px; transform: rotate(-2deg);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 -2.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 -2.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' fill='%23000'/%3E%3C/svg%3E");
}
.file__meta dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; color: var(--ink-2); font-size: 15px; }
.file__meta dt { color: var(--mute); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.file__meta dd { margin: 0; }
.file__body { display: grid; gap: 36px; min-width: 0; }
.file h3 { font-family: var(--display); font-size: clamp(32px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -.015em; }
.chart { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 14px 24px; }
.chart dt { color: var(--mute); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding-top: 5px; }
.chart dd { margin: 0; color: var(--ink-2); font-size: 18px; line-height: 1.5; max-width: 62ch; }

.xray {
  position: relative; background: var(--dark); color: var(--phosphor); padding: 30px 32px 30px; overflow: hidden;
  font-family: var(--mono); font-size: 17px; line-height: 1.6; letter-spacing: .01em;
  box-shadow: inset 0 0 0 1px rgba(69,240,160,.25), 0 30px 60px -30px rgba(7,16,9,.6);
}
.xray::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(69,240,160,.06) 0 1px, transparent 1px 4px); pointer-events: none; }
.xray::after { content: ""; position: absolute; left: 0; right: 0; height: 90px; top: -90px; background: linear-gradient(to bottom, transparent, rgba(69,240,160,.12), transparent); animation: scan 5s linear infinite; pointer-events: none; }
@keyframes scan { to { transform: translateY(calc(100% + 400px)); } }
.xray__label { position: absolute; top: 12px; right: 14px; font-size: 10px; color: rgba(69,240,160,.55); }
.xray p { margin: 0; text-shadow: 0 0 12px rgba(69,240,160,.35); }
.xray .caret { display: inline-block; width: .6em; height: 1.1em; background: var(--phosphor); vertical-align: -.2em; margin-left: 2px; animation: blink .9s steps(1) infinite; }

/* prescription, locked and open */
.rx { border-top: 1px solid var(--rule); padding-top: 28px; }
.rx__label { color: var(--green-deep); display: block; margin-bottom: 14px; }
.redact { display: grid; gap: 11px; margin: 4px 0 28px; }
.redact__line { height: 14px; background: var(--ink); opacity: .9; position: relative; }
.redact__line.w85 { width: 85%; } .redact__line.w62 { width: 62%; } .redact__line.w92 { width: 92%; } .redact__line.w48 { width: 48%; } .redact__line.w74 { width: 74%; }
.redact__line.tag::after { content: "REDACTED"; position: absolute; right: 10px; top: 0; font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--paper); line-height: 14px; }

.unlock {
  position: relative; background: #fff; border: 1px solid var(--rule); padding: 32px;
  display: grid; gap: 22px; box-shadow: 0 30px 60px -36px rgba(14,21,18,.35);
}
.unlock::before { content: "PATIENT CHART"; position: absolute; top: -9px; left: 24px; background: #fff; padding: 0 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--mute); }
.unlock__title { font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.01em; }
.unlock__sub { color: var(--ink-2); max-width: 60ch; }
.unlock__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.unlock__msg, .case__msg { min-height: 1.4em; color: var(--mute); }
.unlock__msg.err, .case__msg.err { color: var(--red); }
.case__msg.ok { color: var(--green-deep); }

.field { display: grid; gap: 7px; }
.field label { color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1.5px solid var(--rule); background: transparent; border-radius: 0;
  font: inherit; font-size: 17px; padding: 9px 0; outline: 0; color: var(--ink);
  transition: border-color .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--green-deep); }
.field textarea { resize: vertical; min-height: 120px; }
.field select { cursor: pointer; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rx h4 { font-family: var(--display); font-size: 26px; line-height: 1.15; margin: 26px 0 8px; letter-spacing: -.01em; }
.rx p { color: var(--ink-2); max-width: 66ch; font-size: 18px; }
.rx p + p { margin-top: 10px; }
.rx__intro { font-size: 20px !important; color: var(--ink) !important; }
.piles { margin: 8px 0 12px; padding: 0; list-style: none; display: grid; gap: 10px; }
.piles li { padding: 14px 0 14px 18px; border-left: 2px solid var(--green); color: var(--ink-2); font-size: 17px; }
.piles strong { color: var(--ink); font-weight: 600; }
.rx__rule { color: var(--mute) !important; font-size: 15px !important; }
.formula { display: inline-block; background: var(--dark); color: var(--phosphor) !important; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; padding: 12px 16px; margin: 6px 0 14px; }
.tonight { display: inline-block; margin-top: 18px; background: var(--paper-2); color: var(--ink) !important; padding: 8px 12px; }
.rx__dl { margin-top: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dl { display: inline-flex; align-items: center; gap: 10px; background: var(--green-deep); color: #fff; text-decoration: none; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 13px 18px; transition: background .25s var(--ease); }
.dl:hover { background: var(--ink); }

/* method */
.principles { list-style: none; margin: 0; padding: 0; }
.principles li {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; align-items: baseline;
  padding: 34px 0; border-bottom: 1px solid var(--rule);
}
.principles .n { font-family: var(--display); font-size: clamp(40px, 4.5vw, 64px); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.principles .n i { font-style: normal; color: var(--green); font-size: .5em; vertical-align: top; margin-left: 4px; }
.principles strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; margin-bottom: 8px; letter-spacing: -.01em; }
.principles span.t { color: var(--ink-2); font-size: 18px; max-width: 54ch; display: block; }

.principles--dark li { border-bottom-color: var(--forest-line); }
.principles--dark .n { color: var(--paper); }
.principles--dark .n i { color: var(--brass); }
.principles--dark strong { color: var(--paper); }
.principles--dark span.t { color: rgba(243,245,242,.72); }

/* consult */
.consult { padding-bottom: clamp(72px, 9vw, 132px); }
.consult__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); padding-top: 56px; }
.consult__copy { display: grid; gap: 22px; align-content: start; position: sticky; top: 96px; }
.consult__copy h3 { font-family: var(--display); font-size: clamp(38px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.02em; }
.consult__copy p { color: var(--ink-2); font-size: 18px; max-width: 42ch; }
.case { position: relative; background: #fff; border: 1px solid var(--rule); padding: 32px; display: grid; gap: 22px; box-shadow: 0 30px 60px -36px rgba(14,21,18,.35); }
.case::before { content: "INTAKE FORM"; position: absolute; top: -9px; left: 24px; background: #fff; padding: 0 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--mute); }

/* closer */
.closer { background: var(--ink); color: var(--paper); padding: clamp(80px, 10vw, 150px) 0; position: relative; overflow: hidden; }
.closer .quote { font-family: var(--display); font-size: clamp(36px, 6vw, 88px); line-height: 1.02; letter-spacing: -.02em; max-width: 16ch; }
.closer .quote em { color: var(--phosphor); }
.closer .sig { margin-top: 36px; color: rgba(243,245,242,.6); display: flex; align-items: center; gap: 14px; }
.closer .sig::before { content: ""; width: 36px; height: 1px; background: var(--brass); }
.closer__ecg { position: absolute; right: -2%; bottom: 10%; width: 60%; opacity: .25; pointer-events: none; }
.closer__ecg path { fill: none; stroke: var(--phosphor); stroke-width: 1.2; }

/* footer */
.foot { border-top: 1px solid var(--rule); padding: 26px 0 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; align-items: center; }
.foot a { margin-right: 16px; text-decoration: none; color: var(--mute); }
.foot a:hover { color: var(--green-deep); }

/* reveal defaults (JS sets initial state) */
[data-reveal] { will-change: transform, opacity; }

@media (max-width: 1320px) {
  .vitals { display: none; }
  .topbar { grid-template-columns: auto 1fr; }
}
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .practice, .treatments { grid-template-columns: 1fr; }
  .cond { grid-template-columns: 40px minmax(0, 1fr); }
  .cond__dx { grid-column: 2; justify-items: start; text-align: left; }
  .hero__doc { max-width: 320px; }
  .seal { left: -18px; width: 104px; height: 104px; }
  .topbar { grid-template-columns: auto 1fr; }
  .vitals { display: none; }
  .nav a.mono { display: none; }
  .hero { padding-top: 120px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__doc { justify-self: start; max-width: 300px; margin-top: 8px; }
  .section__head, .file, .principles li, .consult__grid { grid-template-columns: 1fr; }
  .file__meta, .consult__copy { position: static; }
  .chart { grid-template-columns: 110px 1fr; }
  .unlock__grid { grid-template-columns: 1fr; }
  .unlock, .case { padding: 26px 20px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .nav a.mono { display: none; }
  .dx input { font-size: 20px; }
  .chart { grid-template-columns: 1fr; gap: 4px 0; }
  .chart dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track, .xray::after, .vitals .pulse, .xray .caret { animation: none; }
  html { scroll-behavior: auto; }
}


/* ===== mobile-native layer (Instagram in-app traffic) ===== */
.btn--dx { display: none; }
.tabbar { display: none; }
.cond__link { color: inherit; text-decoration: none; display: block; }
.cond__chev { display: none; width: 16px; height: 16px; color: var(--brass); }

@media (max-width: 960px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  html { scroll-padding-top: 76px; }
  .topbar { height: 60px; grid-template-columns: auto 1fr; padding-top: env(safe-area-inset-top); }
  .nav .btn--sm:not(.btn--dx) { display: none; }
  .btn--dx { display: inline-flex; padding: 10px 14px; font-size: 12px; letter-spacing: .14em; border-color: var(--green-deep); background: var(--green-deep); }
  .brand__name { font-size: 20px; }

  /* bottom tab bar */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-top: 1px solid var(--rule);
  }
  .tabbar a { display: grid; justify-items: center; gap: 4px; padding: 6px 2px; text-decoration: none; color: var(--mute); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; min-height: 48px; border-radius: 10px; transition: color .2s, background .2s; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--ink); }
  .tabbar a.active svg { color: var(--green-deep); }
  .tabbar__cta { color: var(--paper) !important; background: var(--ink); }
  .tabbar__cta svg { color: var(--phosphor); }

  /* hero: headline, then the DX input, then the short lede, then the portrait */
  .hero { padding: 92px 0 48px; }
  .hero__ecg { top: 68px; height: 36px; }
  .hero__grid { gap: 28px; }
  .hero__text { display: flex; flex-direction: column; }
  .eyebrow { order: 0; margin-bottom: 18px; }
  .hero h1 { order: 1; font-size: clamp(42px, 12.5vw, 56px); }
  .dx { order: 2; margin-top: 26px; max-width: none; }
  .lede { order: 3; font-size: 17px; margin: 26px 0 0; }
  .dx__row { border: 1.5px solid var(--ink); background: #fff; padding: 0 0 0 14px; border-radius: 14px; align-items: center; }
  .dx input { font-size: 20px; padding: 14px 0; }
  .dx .btn--bare { background: var(--ink); color: var(--paper); padding: 0 16px; align-self: stretch; border-radius: 0 12px 12px 0; }
  .dx .btn--bare:hover { color: var(--paper); }
  .hero__doc { max-width: 100%; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px; justify-self: stretch; margin-top: 8px; }
  .arch { border-radius: 999px 999px 10px 10px; box-shadow: 0 0 0 1px var(--brass-soft), 0 0 0 6px var(--paper), 0 0 0 7px var(--brass-soft); }
  .arch__cap { flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; }
  .hero__doc { position: relative; }
  .seal { position: absolute; left: 106px; bottom: -16px; width: 84px; height: 84px; }
  .doc__tag { right: auto; left: 110px; top: -6px; transform: rotate(-5deg); }

  /* sections */
  .section { padding-top: 64px; }
  .section--forest { margin-top: 64px; padding-bottom: 64px; }
  .section__head { padding-bottom: 24px; gap: 14px; }
  .section__num .n { font-size: 40px; }
  .section__head p { font-size: 17px; }
  .section__head--dark h2 { font-size: 26px; }
  .practice { padding-top: 32px; gap: 28px; }
  .practice__copy p { font-size: 17px; }
  .practice__chart { padding: 20px; gap: 12px 16px; }

  /* conditions as tappable rows */
  .cond { padding: 18px 0; gap: 12px 14px; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; }
  .cond:hover { padding-left: 0; }
  .cond__body h3 { font-size: 22px; }
  .cond__body p { font-size: 15px; margin-top: 4px; }
  .cond__dx { grid-column: 3; justify-items: end; text-align: right; gap: 4px; align-items: center; }
  .cond__dx > .mono:first-child { font-size: 10px; }
  .cond__status { display: none; }
  .cond__chev { display: block; }
  .cond:active { background: var(--paper-2); }

  /* swipeable steps and treatments */
  .steps, .treatments { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 32px var(--gutter) 8px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; background: transparent; border: 0; }
  .steps::-webkit-scrollbar, .treatments::-webkit-scrollbar { display: none; }
  .step, .treat { flex: 0 0 78vw; scroll-snap-align: start; border: 1px solid var(--rule); background: #fff; padding: 22px 20px 24px; }
  .step::before { left: 20px; top: 0; }
  .step__n { font-size: 40px; }
  .step h3, .treat h3 { font-size: 26px; }
  .treatments { margin-top: 24px; }
  .treat__note { flex-wrap: wrap; }

  /* case file */
  .file { padding-top: 28px; gap: 22px; }
  .file__meta { grid-template-columns: 1fr; gap: 14px; }
  .file__meta dl { grid-template-columns: 90px 1fr; }
  .file h3 { font-size: 30px; }
  .chart dd { font-size: 16px; }
  .xray { padding: 22px 18px; font-size: 15px; }
  .unlock { padding: 22px 18px; }
  .unlock .btn, .case .btn { width: 100%; justify-content: center; min-height: 52px; }
  .field input, .field select, .field textarea { font-size: 17px; min-height: 48px; }
  .unlock__title { font-size: 26px; }

  .consult__grid { padding-top: 28px; gap: 28px; }
  .consult__copy h3 { font-size: 38px; }
  .closer { padding: 64px 0; }
  .closer .quote { font-size: 38px; }
  .foot .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}
