/* cirucal.com — v2. One centred column, a lot of air, glass on everything that floats,
   and motion that behaves like the dock: springy, magnetic, driven by the scroll. */
:root {
  --paper:   #F2F4F3;
  --surface: #E4E9E8;
  --field:   #D3DBDA;
  --white:   #FBFCFB;
  --ink:     #17202A;
  --night:   #0E1318;
  --muted:   #4E5A66;
  --accent:  #2346C8;
  --accent-2:#1B3AAE;
  --accent-lt:#7C93F2;
  --hold:    #E0A028;
  --steel:   #8A939C;
  --on-dark: #F2F4F3;
  --on-dark-2: rgba(242, 244, 243, .74);

  --f-display: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --t-hero: clamp(44px, min(8.2vw, 12.5vh), 132px); /* sized by width and height, so the buttons always fit */
  --t-h2:   clamp(38px, 5.6vw, 88px);
  --t-h3:   clamp(28px, 3.2vw, 44px);
  --t-read: clamp(26px, 3.3vw, 50px);
  --t-lead: clamp(18px, 1.45vw, 21px);
  --t-b:    17px;
  --t-s:    14px;

  --wrap: 1240px;
  --sec: clamp(72px, 8vw, 120px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-b); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 80; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 99px; }
.skip:focus { top: 16px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.wrap.center { display: flex; flex-direction: column; align-items: center; }

/* ---------- glass ---------- */
.glass {
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 18px 50px rgba(5, 8, 12, .28);
  color: #fff;
}
.glass-light, [data-tone="light"] .seg, .note, .chip {
  background: rgba(255, 255, 255, .58);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 #fff, 0 10px 30px rgba(23, 32, 42, .10);
}

/* ---------- type ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
[data-tone="dark"] .eyebrow { color: var(--on-dark-2); }
.h2 { font-size: var(--t-h2); line-height: 1; letter-spacing: -.045em; max-width: 16ch; margin-top: 16px; }
.h2-sm { font-size: var(--t-h3); letter-spacing: -.035em; max-width: 20ch; }
.sub { font-size: var(--t-lead); line-height: 1.55; color: var(--muted); max-width: 58ch; margin-top: 20px; }
[data-tone="dark"] .sub { color: var(--on-dark-2); }
.stop { display: inline-block; width: .19em; height: .19em; border-radius: 50%; background: var(--accent); margin-left: .05em; vertical-align: .02em; }
[data-tone="dark"] .stop { background: var(--accent-lt); }

/* ---------- buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  background: var(--accent); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-b);
  height: 54px; padding: 0 28px; border-radius: 999px;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: background-color .2s, box-shadow .25s;
  box-shadow: 0 10px 30px -10px rgba(35, 70, 200, .7);
}
.btn:hover { background: var(--accent-2); }
.btn:active { filter: brightness(.95); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; box-shadow: none; }
.btn-glass {
  background: rgba(255, 255, 255, .12); color: #fff;
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
[data-magnetic] { will-change: transform; }

/* ---------- top nav (glass bar) ---------- */
.nav {
  position: fixed; z-index: 60; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  width: min(var(--wrap), 100% - 24px); height: 64px; padding: 0 12px 0 22px; border-radius: 18px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: rgba(14, 19, 24, .34); color: #fff;
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 40px rgba(0, 0, 0, .18);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s, transform .55s var(--ease), opacity .35s ease;
}
.nav.away { transform: translate(-50%, calc(-100% - 24px)); opacity: 0; pointer-events: none; }
.nav.light { background: rgba(242, 244, 243, .66); color: var(--ink); border-color: rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, 0 12px 34px rgba(23, 32, 42, .10); }
.nav .btn-sm { justify-self: end; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { text-decoration: none; font-size: 15px; padding: 8px 14px; border-radius: 99px; opacity: .86; transition: opacity .2s, background-color .2s; }
.nav-links a:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.nav.light .nav-links a:hover { background: rgba(23, 32, 42, .06); }

.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.035em; line-height: 1; }
.wordmark svg { width: 26px; height: 26px; color: currentColor; --dot: var(--accent-lt); transition: transform .6s var(--spring); }
.nav.light .wordmark svg { --dot: var(--accent); }
.wordmark:hover svg { transform: rotate(-30deg); }
.wordmark span { padding-bottom: 2px; }
.nav .wordmark { padding: 10px 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: var(--night); color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: -6% 0 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; filter: grayscale(1) contrast(1.08) brightness(.62); transform: translate3d(0, var(--hy, 0px), 0) scale(var(--hs, 1.08)); will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,19,24,.55) 0%, rgba(14,19,24,.15) 38%, rgba(14,19,24,.35) 70%, var(--night) 100%); } /* scrim under text on a photograph */
.hero-inner { width: min(1180px, 100% - 40px); text-align: center; display: flex; flex-direction: column; align-items: center; padding: clamp(96px, 13vh, 140px) 0 clamp(72px, 11vh, 120px); }
.hero-h { font-size: var(--t-hero); line-height: .98; letter-spacing: -.05em; font-weight: 600; margin-top: 0; max-width: 13ch; text-wrap: initial; }
.hero-h .w { display: inline-block; }
.pill { display: inline-block; width: 1.72em; height: .76em; border-radius: 999px; overflow: hidden; vertical-align: -.02em; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 10px 30px rgba(0,0,0,.35); background: #1C2A38; }
.pill video, .pill img { width: 100%; height: 100%; object-fit: cover; }
/* hero pill: a glass capsule where the mark draws itself closed and the sign-off dot lands, on a loop */
.hero-h .pill-mark { display: inline-flex; align-items: center; justify-content: center; line-height: 0; background: rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 34px rgba(0, 0, 0, .3); }
.pill-mark svg { display: block; width: .5em; height: .5em; overflow: visible; }
.pm-ring { fill: none; stroke: #fff; stroke-width: 14; stroke-dasharray: 100; stroke-dashoffset: 100; animation: pmDraw 6s var(--ease) 1s infinite; }
.pm-dot { fill: var(--accent-lt); transform-origin: 86px 50px; transform: scale(0); animation: pmDot 6s var(--spring) 1s infinite; }
@keyframes pmDraw { 0% { stroke-dashoffset: 100; opacity: 1; } 28%, 86% { stroke-dashoffset: 0; opacity: 1; } 96% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 100; opacity: 0; } }
@keyframes pmDot { 0%, 30% { transform: scale(0); } 38%, 86% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
.pill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); pointer-events: none; }
.hero-sub { font-size: var(--t-lead); line-height: 1.5; color: var(--on-dark-2); max-width: 60ch; margin-top: clamp(18px, 3.2vh, 34px); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: clamp(22px, 3.6vh, 40px); }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.scroll-cue::after { content: ""; position: absolute; inset: -10px -12px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* load-in: runs in CSS, so the hero arrives even if the script does not */
@keyframes wordIn { from { opacity: 0; transform: translateY(.42em) scale(.96); filter: blur(14px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes pillIn { from { opacity: 0; transform: scale(.4, .7); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.hero-h .w { animation: wordIn 1.05s var(--ease) both; animation-delay: calc(180ms + var(--i) * 85ms); }
.hero-h .pill { animation-name: pillIn; animation-timing-function: var(--spring); }
.a-in { animation: fadeUp 1s var(--ease) both; animation-delay: var(--d, 0ms); }

/* ---------- segmented control (glass, spring indicator) ---------- */
.seg { position: relative; z-index: 3; display: inline-flex; gap: 0; padding: 6px; border-radius: 999px; margin-top: 32px; max-width: 100%; }
.seg button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; height: 44px; padding: 0 20px; border-radius: 999px; font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--muted); white-space: nowrap; transition: color .25s; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { color: #fff; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"]:hover, .seg button[aria-pressed="true"]:hover { color: #fff; }
.seg .sm { display: none; }
.seg-ind { pointer-events: none; position: absolute; z-index: 0; top: 6px; left: 0; height: 44px; width: 100px; border-radius: 999px; background: var(--ink);
  transform: translateX(var(--ix, 6px)); width: var(--iw, 100px); box-shadow: 0 6px 18px rgba(23,32,42,.25); }

/* ---------- documents ---------- */
.docs { padding-top: var(--sec); overflow-x: clip; }
.doc-stage { position: relative; width: min(var(--wrap), 100% - 40px); margin: 48px auto 0; height: calc(var(--doc-h, 760px) + 70px); perspective: 1600px; display: flex; justify-content: center; }
.doc-ring { pointer-events: none; position: absolute; top: 30px; left: 50%; width: 820px; height: 820px; margin-left: -410px; color: var(--surface); z-index: 0;
  transform: rotate(calc(var(--dp, 0) * 50deg - 20deg)) scale(calc(.82 + var(--dp, 0) * .18)); }
.doc-tilt { position: relative; z-index: 1; width: 620px; max-width: 100%; transform-style: preserve-3d;
  transform: translateY(calc((1 - var(--dp, 1)) * 120px)) rotateX(calc((1 - var(--dp, 1)) * 24deg)) scale(calc(.9 + var(--dp, 1) * .1));
  transform-origin: 50% 0%; will-change: transform; }
.doc {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--white); color: var(--ink); padding: 48px 52px 52px; border-radius: 6px;
  box-shadow: 0 50px 90px -40px rgba(23,32,42,.45), 0 2px 6px rgba(23,32,42,.06);
  display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.55;
  opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.doc.on { opacity: 1; transform: none; }
.doc-lh { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 2px solid var(--ink); font-size: 14px; }
.doc-lh b { font-family: var(--f-display); font-size: 16px; letter-spacing: -.01em; }
.doc-lh span { color: var(--muted); }
.doc h3 { font-size: 30px; letter-spacing: -.03em; margin-top: 10px; }
.doc-sub { color: var(--muted); font-size: 14px; margin-top: -6px; }
.tbl { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.doc th { text-align: left; font-weight: 600; color: var(--muted); padding: 9px 8px 9px 0; border-bottom: 1px solid #D9DFDE; }
.doc td { padding: 8px 8px 8px 0; border-bottom: 1px solid #EDF0EF; }
.doc td.src { color: var(--accent); font-weight: 500; }
.doc-basis b, .doc-open b { font-weight: 600; }
.doc-open { background: #FBF0D6; border-left: 4px solid var(--hold); padding: 10px 12px; border-radius: 0 8px 8px 0; }
.doc-sig { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.doc-sig svg { width: 190px; height: 50px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.doc-sig span { font-size: 14px; color: var(--muted); }
.doc.mail { left: 40px; right: 40px; padding: 0 0 34px; border-radius: 16px; }
.doc.mail > p { padding: 0 34px; }
.mail-h { background: #F5F7F6; padding: 20px 34px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; border-bottom: 1px solid #E3E8E7; border-radius: 16px 16px 0 0; }
.mail-h span { display: inline-block; width: 76px; color: var(--muted); }
.mail-f { color: var(--muted); font-size: 14px; margin-top: 8px; }

.note {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; color: var(--ink);
  transform: translate3d(0, var(--ny, 0px), 0); transition: opacity .9s var(--ease), background-color .2s;
}
.n1 { top: 160px; left: 4%; }
.n2 { top: 380px; right: 2%; }
.n3 { top: 620px; left: 8%; }
.nd { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.nd-blue { background: var(--accent); } .nd-hold { background: var(--hold); } .nd-ink { background: var(--ink); } .nd-steel { background: var(--steel); }

/* ---------- statement: words light up as you scroll ---------- */
.statement { padding: calc(var(--sec) * .8) 20px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.big-read + .big-read { margin-top: 1em; }
.big-read { font-family: var(--f-display); font-weight: 600; font-size: var(--t-read); line-height: 1.16; letter-spacing: -.035em; text-align: center; max-width: 24ch; }
.big-read-2 { max-width: 22ch; }
.record-fig { position: relative; margin: 2em auto 1.4em; width: min(500px, 82vw); }
.record-fig img { width: 100%; height: auto; border-radius: 6px; filter: sepia(.15); box-shadow: 0 50px 90px -40px rgba(23,32,42,.5), 0 2px 8px rgba(23,32,42,.08);
  transform: translateY(calc((1 - var(--gp, 1)) * 90px)) rotate(calc(-8deg + var(--gp, 1) * 6deg)) scale(calc(.84 + var(--gp, 1) * .16)); will-change: transform; }
.record-fig figcaption { position: absolute; left: calc(100% + 44px); top: 50%; width: 270px; text-align: left;
  font-size: 16px; line-height: 1.5; color: var(--ink); padding: 18px 20px; border-radius: 20px;
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.95); box-shadow: inset 0 1px 0 #fff, 0 14px 34px rgba(23,32,42,.10);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  opacity: var(--gp, 1); transform: translate(calc((1 - var(--gp, 1)) * 40px), -50%); }
.record-fig figcaption b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -.015em; margin-bottom: 4px; }
@media (max-width: 1120px) {
  .record-fig figcaption { position: static; width: auto; margin-top: 22px; text-align: center; transform: none; opacity: 1; }
}
.big-read .wd { opacity: .14; transition: opacity .25s linear; }
.big-read .wd.lit { opacity: 1; }

/* ---------- how it works: pinned ---------- */
.how { position: relative; height: 420svh; }
.how-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px 108px; gap: 18px; } /* bottom room keeps the step switch clear of the dock */
.step-h { font-size: clamp(38px, 5vw, 76px); line-height: 1.02; letter-spacing: -.045em; max-width: 20ch; min-height: 1.05em; display: block; text-align: center; }
.step-h .sw { display: inline-block; animation: wordIn .7s var(--ease) both; animation-delay: calc(var(--i) * 55ms); }
.step-t { font-size: var(--t-lead); color: var(--muted); max-width: 60ch; min-height: 3.2em; transition: opacity .3s, transform .4s var(--ease); }
.step-t.swap { opacity: 0; transform: translateY(8px); }

.stage-film { position: relative; width: min(860px, 100%, calc((100svh - 430px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; margin-top: 8px;
  background: var(--paper); box-shadow: 0 40px 80px -40px rgba(23,32,42,.45), 0 0 0 1px rgba(23,32,42,.06); }
.stage-film .sf { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .45s var(--ease), transform .7s var(--ease); }
.stage-film .sf.on { opacity: 1; transform: none; }
.sf-phone { display: none; }
@media (max-width: 640px) {
  .sf-wide { display: none; }
  .sf-phone { display: block; aspect-ratio: 4 / 5; width: min(100%, calc((100svh - 390px) * 4 / 5)); border-radius: 22px; }
}
.how-copy { display: contents; }
.seg-steps { order: 5; }
/* desktop: words on the left, the film large on the right */
@media (min-width: 981px) {
  .how-pin { flex-direction: row; align-items: center; justify-content: center; text-align: left; gap: clamp(36px, 4vw, 72px);
    width: min(1440px, 100%); margin-inline: auto; padding: 40px clamp(24px, 3vw, 48px) 104px; }
  .how-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; flex: 0 0 clamp(320px, 31%, 440px); }
  .how-copy .step-h { font-size: clamp(36px, 3.7vw, 60px); max-width: none; text-align: left; min-height: 2.04em; display: flex; flex-wrap: wrap; align-content: flex-end; }
  .how-copy .step-h .sw { margin-right: .22em; }
  .how-copy .step-t { font-size: 18px; min-height: 6.3em; max-width: none; }
  .how-copy .seg-steps { margin-top: 8px; }
  .stage-film { flex: 1 1 0; min-width: 0; margin-top: 0; width: auto; max-width: min(100%, calc((100svh - 150px) * 16 / 9)); border-radius: 28px; }
}

.seg-steps { margin-top: 10px; }

/* ---------- coverage ---------- */
.coverage { padding-top: var(--sec); }
.marquees { margin-top: 44px; display: flex; flex-direction: column; gap: 16px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee { overflow: visible; }
.track { list-style: none; margin: 0; padding: 6px 0; display: flex; gap: 14px; width: max-content; animation: marq 46s linear infinite; }
.marquee.rev .track { animation-direction: reverse; animation-duration: 40s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.chip { --mx: 0px; --my: 0px; display: inline-flex; align-items: baseline; gap: 10px; padding: 14px 22px; border-radius: 999px; font-family: var(--f-display); font-weight: 600; font-size: 18px; white-space: nowrap;
  transform: translate3d(var(--mx), var(--my), 0); transition: background-color .2s; cursor: default; }
.chip:hover { background: #fff; }
.chip .nd { transform: translateY(-1px); }
.chip em { font-style: normal; font-family: var(--f-body); font-weight: 400; font-size: 15px; color: var(--muted); }


/* ---------- letter ---------- */
.about { padding-top: var(--sec); }
.about .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.letter { margin-top: 36px; text-align: left; width: 100%; background: var(--white); border-radius: 28px; padding: clamp(32px, 6vw, 64px); display: flex; flex-direction: column; gap: 20px; box-shadow: 0 30px 70px -40px rgba(23,32,42,.3); }
.letter p { font-size: 18px; line-height: 1.65; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; margin-bottom: 6px; }
.avatar svg { width: 28px; height: 28px; color: var(--on-dark); --dot: var(--accent-lt); }
.sign { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.sign-draw { width: 180px; height: 54px; }
.sign-draw use { stroke-dasharray: 260; stroke-dashoffset: calc(260 - var(--sp, 1) * 260); }
.sign span { color: var(--muted); font-size: 15px; }
.sign span a { display: inline-block; padding: 12px 2px; margin: -12px 0; }

/* ---------- questions ---------- */
.faq { padding-top: var(--sec); }
.faq .wrap { display: flex; flex-direction: column; align-items: center; }
.acc { margin-top: 36px; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.qa { border-radius: 22px; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.95); box-shadow: inset 0 1px 0 #fff, 0 8px 24px rgba(23,32,42,.06); transition: background-color .25s; }
.qa:hover { background: rgba(255,255,255,.85); }
.qa button { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -.015em; }
.qa button i { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface); transition: transform .5s var(--spring), background-color .25s; }
.qa button i::before, .qa button i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: var(--ink); }
.qa button i::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.qa button[aria-expanded="true"] i { transform: rotate(180deg); background: var(--ink); }
.qa button[aria-expanded="true"] i::before, .qa button[aria-expanded="true"] i::after { background: #fff; }
.qa button[aria-expanded="true"] i::after { transform: rotate(0deg); }
.a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.a > div { overflow: hidden; }
.a p { padding: 0 26px 24px; color: var(--muted); max-width: 60ch; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .45s var(--ease); }
.qa button[aria-expanded="true"] + .a { grid-template-rows: 1fr; }
.qa button[aria-expanded="true"] + .a p { opacity: 1; transform: none; }

/* ---------- contact ---------- */
.contact { position: relative; margin-top: var(--sec); padding: var(--sec) 0; background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.contact-media { position: absolute; inset: 0; z-index: -1; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: grayscale(1) brightness(.42); transform: scale(calc(1.15 - var(--cp, 0) * .15)); }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,19,24,.2), rgba(14,19,24,.5)); } /* scrim */
.field { --mx: 0; position: relative; width: min(640px, 100%); margin-top: 48px; border-radius: 999px; padding: 8px; display: flex; align-items: center; }
.field input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; color: #fff; padding: 0 16px 0 22px; font: inherit; font-size: 18px; outline: none; }
.field input::placeholder { color: rgba(255,255,255,.6); }
.field:focus-within { box-shadow: inset 0 0 0 2px var(--accent-lt), 0 18px 50px rgba(5,8,12,.28); }
.field button { --mx: 0px; --my: 0px; width: 56px; height: 56px; flex: none; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; transform: translate3d(var(--mx), var(--my), 0); transition: background-color .2s; }
.field button svg { width: 22px; height: 22px; }
.field button:hover { background: var(--accent-2); }
.field-note { margin-top: 16px; font-size: var(--t-s); color: var(--on-dark-2); }
.contact-row { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.addr { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; margin-right: 8px; user-select: all; }
.copy { --mx: 0px; --my: 0px; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 15px;
  background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transform: translate3d(var(--mx), var(--my), 0); transition: background-color .2s; }
.copy:hover { background: rgba(255,255,255,.22); }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--on-dark); padding: 80px 20px 36px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 40px; overflow: hidden; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.foot-links a { display: inline-block; padding: 10px 4px; text-decoration: none; color: var(--on-dark-2); transition: color .2s; }
.foot-links a:hover { color: #fff; }
.foot-mark { display: inline-flex; align-items: center; gap: .18em; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: clamp(80px, 19vw, 300px); letter-spacing: -.06em; line-height: .9; }
.foot-mark svg { width: .8em; height: .8em; color: var(--on-dark); --dot: var(--accent-lt); }
.foot-mark span { padding-bottom: .08em; }
.credits { font-size: 13px; color: rgba(242,244,243,.5); max-width: 90ch; }
.legal { font-size: 13px; color: rgba(242,244,243,.5); }

/* ---------- dock ---------- */
.dock {
  position: fixed; z-index: 55; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-radius: 26px; height: 74px;
  background: rgba(242, 244, 243, .62); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 #fff, 0 16px 40px rgba(23, 32, 42, .18);
  transform: translate(-50%, 0); transition: transform .55s var(--spring), opacity .35s ease;
}
.dock.away { transform: translate(-50%, 150%); opacity: 0; pointer-events: none; }
.dk { position: relative; display: flex; flex-direction: column; align-items: center; text-decoration: none; outline: none; }
.dk-ic { width: var(--s, 52px); height: var(--s, 52px); border-radius: 15px; display: grid; place-items: center; background: var(--white); color: var(--ink);
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(23,32,42,.12); transform: translateY(var(--y, 0px)); transition: box-shadow .2s; will-change: width, height, transform; }
.dk-ic svg { width: 54%; height: 54%; }
.dk:first-child .dk-ic { background: var(--ink); } .dk:first-child .dk-ic svg { color: var(--on-dark); --dot: var(--accent-lt); width: 60%; height: 60%; }
.dk-mail .dk-ic { background: var(--accent); color: #fff; }
.dk:hover .dk-ic, .dk:focus-visible .dk-ic { box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(23,32,42,.22); }
.dk:focus-visible .dk-ic { outline: 2px solid var(--accent); outline-offset: 2px; }
.dk:active .dk-ic { transform: translateY(var(--y, 0px)) scale(.92); }
.dk-lb { position: absolute; bottom: calc(100% + 14px + var(--lift, 0px)); left: 50%; transform: translate(-50%, 6px) scale(.94); white-space: nowrap; font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 10px; background: var(--ink); color: var(--on-dark); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.dk:hover .dk-lb, .dk:focus-visible .dk-lb { opacity: 1; transform: translate(-50%, 0) scale(1); }
.dk::after { content: ""; position: absolute; bottom: -7px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(.5); transition: transform .3s var(--spring), opacity .25s; }
.dk[aria-current="true"]::after { opacity: 1; transform: scale(1); }

/* ---------- reveal on scroll (words and blocks) ---------- */
.js [data-split] .sw { display: inline-block; }
.js [data-split].pre .sw { opacity: 0; transform: translateY(.5em); filter: blur(10px); }
.js [data-split] .sw { transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.js [data-reveal].pre { opacity: 0; transform: translateY(26px); filter: blur(6px); }
.js [data-reveal] { transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .note.pre { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .js [data-split].pre .sw, .js [data-reveal].pre { opacity: 1; transform: none; filter: none; }
  .big-read .wd { opacity: 1; } .record-fig img { transform: rotate(-2deg); }
  .pm-ring { animation: none; stroke-dashoffset: 0; } .pm-dot { animation: none; transform: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .doc-stage { height: auto; flex-direction: column; align-items: center; gap: 14px; perspective: none; margin-top: 56px; }
  .doc-tilt { height: var(--doc-h, 760px); }
  .doc-ring { width: 120vw; height: 120vw; margin-left: -60vw; }
  .note { position: relative; top: auto; left: auto; right: auto; transform: none; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  :root { --sec: 64px; --t-b: 17px; }
  .nav { height: 56px; padding: 0 8px 0 16px; border-radius: 16px; }
  .wordmark { font-size: 20px; } .wordmark svg { width: 24px; height: 24px; }
  .hero-inner { padding: 120px 0 100px; }
  .hero-h { font-size: clamp(40px, 11.6vw, 56px); max-width: none; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .seg { max-width: 100%; }
  .seg button { padding: 0 16px; font-size: 15px; }
  .seg .lg { display: none; } .seg .sm { display: inline; }
  .doc { padding: 28px 22px 32px; font-size: 14px; }
  .doc h3 { font-size: 24px; }
  .doc table { font-size: 13px; }
  .doc th, .doc td { padding-right: 6px; white-space: nowrap; }
  .doc td:first-child { white-space: normal; }
  .doc.mail { left: 0; right: 0; }
  .doc.mail > p { padding: 0 22px; } .mail-h { padding: 16px 22px; } .mail-h span { width: 64px; }
  .note { font-size: 14px; padding: 10px 16px; }
  .how { height: 380svh; }
  .how-pin { gap: 14px; padding-top: 24px; padding-bottom: 92px; }
  .step-h { font-size: clamp(34px, 9.6vw, 44px); }
  .step-t { font-size: 16px; }
  .seg-steps { width: auto; }
  .chip { font-size: 16px; padding: 12px 18px; }
  .chip em { font-size: 14px; }
  .qa button { font-size: 17px; padding: 18px 20px; }
  .a p { padding: 0 20px 20px; }
  .addr { font-size: 20px; width: 100%; margin: 0 0 6px; }
  .dock { gap: 6px; padding: 8px; height: 62px; border-radius: 22px; }
  .dk-ic { width: 44px; height: 44px; border-radius: 13px; }
  .dk:first-child, .dk-lb { display: none; }
}
@media (min-width: 641px) and (max-height: 820px) {
  .how-pin { gap: 12px; padding-top: 28px; }
    .step-h { font-size: clamp(34px, 4.4vw, 60px); min-height: 0; }
  .step-t { min-height: 0; font-size: 17px; }
}

@media (max-width: 380px) { .dk-ic { width: 40px; height: 40px; } }
/* short phones (iPhone SE and similar): give the stage clip the room */
@media (max-width: 640px) and (max-height: 740px) {
  .how-pin .eyebrow { display: none; }
  .how-pin { gap: 10px; padding-top: 18px; }
  .step-h { font-size: 32px; }
  .step-t { font-size: 15px; line-height: 1.45; min-height: 0; }
  .sf-phone { width: min(100%, calc((100svh - 318px) * 4 / 5)); }
}
/* phones: reserve the heading and text space so the clip never jumps between steps */
@media (max-width: 640px) {
  .how-pin { justify-content: flex-start; }
  .step-h { min-height: 2.04em; }
  .step-t { min-height: 6.2em; }
  .sf-phone { width: min(100%, calc((100svh - 425px) * 4 / 5)); }
}
@media (max-width: 640px) and (max-height: 740px) {
  .step-t { min-height: 5.8em; }
  .sf-phone { width: min(100%, calc((100svh - 345px) * 4 / 5)); }
}

@media (max-height: 720px) { .scroll-cue { display: none; } }
