/* ---- shared subpage pieces (contact, research, articles, legal), built on core.css tokens ---- */
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.here { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--or-text); }
.here::before { content: ""; width: 1px; height: 18px; background: #d6cec2; }
.m-menu a[aria-current="page"] { background: var(--or-soft); }
.site-footer nav a[aria-current="page"] { color: var(--or-text); }
.paper { background: var(--paper); }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* text links keep a tight underline but get a 48px tap area */
.link-u, a.u { position: relative; }
.link-u::after, a.u::after { content: ""; position: absolute; inset: -12px -6px; }
a.u { border-bottom: 1.5px solid var(--line); transition: border-color .25s; }
a.u:hover { border-color: var(--or); }

/* page hero */
.ph { position: relative; padding: clamp(132px, 14vw, 190px) var(--g) clamp(48px, 6vw, 96px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ph h1 em { font-style: normal; color: var(--or); }
.ph .lede { max-width: 44ch; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 32px; }
.acts .link-u { margin-top: 0; }
.ph-art { position: relative; min-height: 360px; display: grid; place-items: center; }
.ph-stair { position: absolute; inset: 0; margin: auto; width: min(92%, 400px); height: auto; overflow: visible; pointer-events: none; }
.ph-stair path { fill: none; }
.ph-stair .s-base { stroke: #e9e2d7; stroke-width: 14; }
.ph-stair .s-top { stroke: var(--or); stroke-width: 14; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 1.4s .5s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 15px var(--sans); border: 0; cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(21,20,18,.16); }
.btn.or { background: var(--or-ink); }
.btn.or:hover { box-shadow: 0 12px 30px rgba(214,63,28,.24); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: rgba(245,80,43,.45); box-shadow: 0 10px 26px rgba(245,80,43,.12); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(3px); }
.copy { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 500 14px var(--sans); color: var(--body); white-space: nowrap; transition: border-color .25s, color .25s, background .25s; }
.copy:hover { border-color: rgba(245,80,43,.45); color: var(--ink); }
.copy:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.copy svg { width: 15px; height: 15px; flex: none; }
.copy.done { background: #e9f4ee; border-color: #b9dcc8; color: #1d7a4a; }

/* cards and chips */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 60px rgba(60,40,20,.07); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(60,40,20,.1); font-size: 14px; color: var(--body); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--or); flex: none; }
.chip b { color: var(--ink); font-weight: 600; }

/* closing call to action */
.close { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.close h2 { max-width: 16ch; margin: 0 auto; }
.close .sub { margin: 0; }
.close .wl { margin: 8px 0 0; width: 100%; }
.close .wl-msg { margin: 0; }

/* scroll reveal (only with JS) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .ph { grid-template-columns: minmax(0, 1fr); padding-top: 112px; }
  .ph-art { min-height: 280px; }
}
/* phones: big type, 48px+ targets, full-width main actions, forms that stack */
@media (max-width: 560px) {
  .here { display: none; }
  h1 span { white-space: normal; }
  section.blk { padding-top: 64px; padding-bottom: 64px; }
  .ph { padding: 104px var(--g) 40px; gap: 28px; }
  .ph .lede { font-size: 19px; line-height: 1.5; }
  .sub { font-size: 18px; line-height: 1.55; }
  h2 { font-size: clamp(30px, 9vw, 36px); line-height: 1.06; }
  .mono { font-size: 12px; }
  .acts { margin-top: 26px; gap: 6px 24px; }
  .acts .btn { width: 100%; min-height: 54px; font-size: 16px; }
  .btn { min-height: 52px; font-size: 16px; }
  .link-u { display: inline-flex; align-items: center; min-height: 48px; padding: 0; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; font-size: 16px; }
  .link-u::after { inset: 0 -6px; }
  .copy { min-height: 48px; font-size: 15px; padding: 0 18px; }
  .wl { flex-direction: column; border-radius: 22px; padding: 8px; gap: 8px; }
  .wl input[type=email] { min-height: 52px; font-size: 17px; }
  .wl button { width: 100%; min-height: 52px; font-size: 16px; }
  .wl-msg { font-size: 16px; }
  .close { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .ph-stair .s-top { animation: none; stroke-dashoffset: 0; }
  .btn, .btn .arr { transition: none; }
}

/* ---- contact page ---- */
/* hero: one way in, five routes out. Lines draw from the SurgeLab mark to each route. */
.router { position: relative; width: min(100%, 440px); aspect-ratio: 400 / 340; }
.ph-art::before { content: ""; position: absolute; inset: 6% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(245,80,43,.10), rgba(245,80,43,0)); }
.rt-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rt-lines path { fill: none; stroke: #d9d0c3; stroke-width: 1.6; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 1s cubic-bezier(.6,0,.2,1), stroke .4s; }
.rt-lines path.hot { stroke: var(--or); stroke-width: 2.2; }
.js .router.wait .rt-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.rt-hub { position: absolute; left: 11%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(60,40,20,.12); display: grid; place-items: center; color: var(--ink); z-index: 1; }
.rt-hub svg { width: 28px; height: 28px; }
.rt-pulse { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 5px rgba(245,80,43,.18); opacity: 0; pointer-events: none; z-index: 2; }
.rt-ends { list-style: none; margin: 0; padding: 0; }
.rt-ends li { position: absolute; left: 42%; top: var(--y); transform: translateY(-50%); }
.rt-ends a { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; background: rgba(255,255,255,.92); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(60,40,20,.08); font-size: 15px; font-weight: 500; white-space: nowrap; transition: border-color .3s, box-shadow .3s, transform .4s cubic-bezier(.34,1.56,.64,1), opacity .5s, color .3s; }
.rt-ends a i { width: 8px; height: 8px; border-radius: 50%; background: #d9d0c3; transition: background .3s; }
.rt-ends a:hover, .rt-ends a.hot { border-color: rgba(245,80,43,.5); box-shadow: 0 14px 34px rgba(245,80,43,.16); transform: translateX(4px); }
.rt-ends a:hover i, .rt-ends a.hot i { background: var(--or); }
.js .router.wait .rt-ends a { opacity: 0; transform: translateX(-10px); }
.ltime { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--mono); letter-spacing: .06em; color: var(--mute); white-space: nowrap; }
.live { width: 7px; height: 7px; border-radius: 50%; background: #1d9a5a; box-shadow: 0 0 0 0 rgba(29,154,90,.5); animation: live 2.4s ease-out infinite; }
@keyframes live { 70%, 100% { box-shadow: 0 0 0 8px rgba(29,154,90,0); } }

/* what do you need? */
.need { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.opts { margin-top: clamp(28px, 3vw, 40px); display: grid; gap: 8px; }
.opts > button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); font-size: 16.5px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; transition: border-color .25s, background .25s, transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.opts > button:hover { border-color: #cfc5b7; transform: translateX(3px); }
.opts > button:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.opts .o-n { font: 500 12px var(--mono); color: var(--mute); transition: color .25s; }
.opts > button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 14px 34px rgba(21,20,18,.16); transform: translateX(6px); }
.opts > button[aria-checked="true"] .o-n { color: var(--or); }
.route { position: sticky; top: 104px; padding: clamp(22px, 3vw, 36px); min-height: 380px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.route::before { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(245,80,43,.12), rgba(245,80,43,0)); pointer-events: none; }
.r-top { display: flex; justify-content: space-between; align-items: center; }
.r-path { display: flex; gap: 5px; }
.r-path i { width: 6px; height: 6px; border-radius: 50%; background: #e2dacd; }
.route.go .r-path i { animation: hop .9s ease both; }
.route.go .r-path i:nth-child(2) { animation-delay: .12s; } .route.go .r-path i:nth-child(3) { animation-delay: .24s; }
@keyframes hop { 40% { background: var(--or); transform: translateY(-4px); } 100% { background: var(--or); } }
.r { display: flex; flex-direction: column; gap: 14px; }
.r[hidden] { display: none; }
.r.in { animation: rin .5s cubic-bezier(.2,.8,.2,1); }
@keyframes rin { from { opacity: 0; transform: translateY(12px); } }
.r h3 { margin: 0; font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; overflow-wrap: anywhere; }
.r > p { margin: 0; color: var(--body); line-height: 1.6; font-size: 17px; max-width: 46ch; }
.r .wl { margin: 8px 0 0; }
.r .wl-msg { margin: 0 0 0 6px; }
.r-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 8px; }
.r-acts .link-u { margin-top: 0; }

.ways { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.ways a { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 20px 22px; background: var(--paper); transition: background .25s; min-height: 88px; }
.ways a:hover { background: var(--card); }
.ways .mono { grid-column: 1; font-size: 12px; }
.ways b { grid-column: 1; font-weight: 500; font-size: 17px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ways i { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; color: var(--mute); transition: transform .25s, color .25s; }
.ways a:hover i { transform: translateX(4px); color: var(--or); }

/* company details */
.co { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.co-facts { margin: 0; padding: 8px clamp(18px, 2.4vw, 28px); }
.co-facts > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.co-facts > div:last-child { border-bottom: 0; }
.co-facts dt { font-size: 12px; }
.co-facts dd { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 17px; line-height: 1.45; }
.copy.sm { padding: 0 14px; flex: none; }
.close .alt-acts { justify-content: center; margin-top: 6px; }

@media (max-width: 900px) {
  .need, .co { grid-template-columns: minmax(0, 1fr); }
  .route { position: relative; top: auto; min-height: 0; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .ph-art { min-height: 300px; }
}
@media (max-width: 560px) {
  /* On a phone the five routes repeat the list just below, so the hero stays copy-only. */
  .ph-art { display: none; }
  .opts { gap: 10px; }
  .opts > button { font-size: 17px; min-height: 60px; padding: 14px 16px; }
  .opts > button[aria-checked="true"], .opts > button:hover { transform: none; }
  .route { padding: 22px 20px 24px; border-radius: 22px; }
  .r h3 { font-size: 30px; }
  .r > p { font-size: 17.5px; }
  .r-acts { flex-direction: column; align-items: stretch; gap: 4px; }
  .r-acts .btn, .r-acts .copy { width: 100%; }
  .r-acts .link-u { align-self: flex-start; }
  .r .wl-msg { margin: 0; }
  .ways .mono { font-size: 12px; }
  .ways b { font-size: 18px; }
  .ways a { padding: 18px 20px; min-height: 80px; }
  .co-facts > div { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0; }
  .co-facts dt { font-size: 12px; }
  .co-facts dd { flex-wrap: wrap; font-size: 18px; }
  .co-facts a.u { display: inline-flex; align-items: center; min-height: 48px; border-bottom: 0; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
  .close .alt-acts { flex-direction: column; align-items: stretch; width: 100%; gap: 4px; }
  .close .alt-acts .link-u { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .live, .route.go .r-path i, .r.in { animation: none; }
  .opts > button, .rt-lines path, .rt-ends a { transition: none; }
}

/* ---- phones, direction B: calm, one idea per screen. Only at 900px and below; desktop is untouched. ---- */
@media (min-width: 901px) { .mb { display: none !important; } }
@media (max-width: 900px) {
  .dk { display: none !important; }
  main section.blk { padding-top: 88px; padding-bottom: 88px; }
  main .eyebrow { font-size: 11.5px; letter-spacing: .12em; }
  main h2 { font-size: clamp(30px, 8.8vw, 36px); line-height: 1.06; letter-spacing: -.035em; }
  main .sub { font-size: 17px; line-height: 1.5; }

  /* hero: headline, one line, one button */
  .ph { padding: 112px var(--g) 72px; }
  .ph h1 { font-size: clamp(42px, 12.4vw, 50px); line-height: 1.02; }
  .ph h1 em { color: var(--ink); }
  .ph .lede { font-size: 17.5px; line-height: 1.5; max-width: 30ch; margin-top: 16px; }
  .ph-art { display: none; }
  .ph .acts { margin-top: 28px; flex-direction: column; align-items: stretch; gap: 4px; }
  .ph .acts .btn { width: 100%; min-height: 54px; font-size: 16px; }
  .ph .acts .link-u { align-self: center; color: var(--body); }

  /* what do you need: five tidy rows; the chosen one opens its route right underneath */
  .need { gap: 0; }
  .opts { margin-top: 32px; gap: 10px; }
  .opts > button[data-pick="talk"] { display: none; }
  .opts > button, .opts > button[aria-checked="true"], .opts > button:hover { min-height: 64px; padding: 14px 18px; border-radius: 18px; background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: none; transform: none; font-size: 16.5px; }
  .opts > button::after { content: "›"; margin-left: auto; padding-left: 12px; font-size: 22px; line-height: 1; color: var(--mute); transition: transform .3s; }
  .opts > button[aria-checked="true"] { border-color: var(--ink); }
  .opts > button[aria-checked="true"]::after { transform: rotate(90deg); color: var(--ink); }
  .opts .o-n, .opts > button[aria-checked="true"] .o-n { color: var(--mute); }
  .opts .route { margin: 0 0 6px; }
  .route { padding: 22px 20px 24px; border-radius: 20px; min-height: 0; gap: 12px; box-shadow: 0 24px 50px -30px rgba(60,40,20,.3); }
  .route::before, .r-top { display: none; }
  .r h3 { font-size: 26px; }
  .r > p { font-size: 16px; line-height: 1.5; }
  .r-acts .btn.or { background: var(--ink); }
  .ways { display: none; }

  /* company details: a quiet list */
  .co { gap: 28px; }
  .co-facts { padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0; border-top: 1px solid var(--line); }
  .co-facts > div { padding: 16px 0; gap: 4px; }
  .co-facts > div:last-child { border-bottom: 1px solid var(--line); }
  .co-facts dt { font-size: 11.5px; }
  .co-facts dd { font-size: 16.5px; }
  .copy.sm { min-height: 44px; padding: 0 14px; font-size: 14px; background: transparent; }

  /* closing */
  .close { padding-top: 0 !important; }
  .close .sub { max-width: 30ch; }
}
@media (max-width: 900px) {
  .route[hidden] { display: none; }
  .route .wl button { background: var(--ink); }
  .route .wl-msg:empty { display: none; }
}
