/* BeforeNine website. Editorial, Swiss-style: Helvetica, black, electric blue, film grain, real photography. */
:root {
  --bg: #050505;
  --bg-2: #0d0d0e;
  --ink: #f4f4f2;
  --mute: #a3a3a0;
  --dim: #6e6e6b;
  --rule: #262626;
  --rule-2: #3a3a3a;
  --blue: #1f3dff;
  --blue-ink: #6f86ff;
  --paper: #f4f4f2;
  --ok: #3ccf8e;
  --err: #ff6b5e;
  --wrap: 1320px;
  --gut: clamp(16px, 3vw, 40px);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; background-image: var(--grain); opacity: .06; mix-blend-mode: overlay; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: #fff; color: #000; padding: 10px 16px; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.t-hero { font-size: clamp(52px, 8.2vw, 132px); letter-spacing: -.055em; line-height: .92; }
.t-1 { font-size: clamp(40px, 5.6vw, 84px); letter-spacing: -.05em; line-height: .96; }
.t-2 { font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -.04em; line-height: 1.02; }
.t-3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.025em; line-height: 1.15; }
.t-lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.38; letter-spacing: -.015em; max-width: 34ch; }
.t-body { color: var(--mute); max-width: 60ch; }
.t-small { font-size: 13px; color: var(--dim); }
.mute { color: var(--mute); }
.dim { color: var(--dim); }
.ital { font-style: italic; font-weight: 400; }
.blue { color: var(--blue-ink); }
p { margin: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--rule-2);
  background: transparent; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { border-color: var(--ink); }
.btn.solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.solid:hover { background: #fff; border-color: #fff; color: #000; }
.btn.light { background: var(--ink); border-color: var(--ink); color: #000; }
.btn.light:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn .arr { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.is-loading { pointer-events: none; color: transparent !important; position: relative; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tlink { display: inline-flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--rule-2); padding-bottom: 3px; transition: border-color .2s, color .2s; }
.tlink:hover { border-color: var(--blue-ink); color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5,5,5,.88); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-color: var(--rule); }
.nav { height: 72px; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.045em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 15px; color: var(--mute); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.nav-cta .login { font-size: 15px; color: var(--mute); }
.nav-cta .login:hover { color: var(--ink); }
.menu-btn { display: none; margin-left: auto; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule-2); background: none; cursor: pointer; font-size: 14px; }

/* ---------- section scaffolding: label column + content ---------- */
.sec { padding: clamp(84px, 10vw, 150px) 0; border-top: 1px solid var(--rule); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.label { grid-column: 1 / span 3; font-size: 14px; color: var(--mute); padding-top: .6em; display: flex; gap: 14px; align-self: start; }
.label b { font-weight: 400; color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.body { grid-column: 4 / -1; display: grid; gap: 32px; }

/* ---------- photos ---------- */
figure { margin: 0; }
.photo { position: relative; overflow: hidden; background: var(--bg-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.04); transition: transform 1.2s var(--ease); }
.photo::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .16; mix-blend-mode: overlay; pointer-events: none; }
a:hover .photo img { transform: scale(1.03); }
.r-45 { aspect-ratio: 4 / 5; }
.r-43 { aspect-ratio: 4 / 3; }
.r-32 { aspect-ratio: 3 / 2; }
.r-21 { aspect-ratio: 21 / 9; }
figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; font-size: 13px; color: var(--dim); }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 5vw, 70px) 0 0; }
.hero .grid { align-items: end; row-gap: 40px; }
.hero-copy { grid-column: 1 / span 7; display: grid; gap: 34px; }
.hero-photo { grid-column: 8 / -1; }
.capture { display: flex; align-items: end; max-width: 520px; border-bottom: 1px solid var(--rule-2); transition: border-color .2s; }
.capture:focus-within { border-color: var(--ink); }
.capture input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 14px 0; font-size: 18px; }
.capture input::placeholder { color: var(--dim); }
.capture .btn { margin: 0 0 10px 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 14px; color: var(--mute); }
.hero-points span::before { content: "\2014\00a0"; color: var(--blue-ink); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); margin-top: clamp(50px, 6vw, 90px); }
.fact { padding: 26px 24px 30px 0; display: grid; gap: 8px; align-content: start; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--rule); }
.fact b { font-weight: 400; font-size: 13px; color: var(--blue-ink); }
.fact span { font-size: 19px; letter-spacing: -.02em; line-height: 1.3; }

/* ---------- blue statement block ---------- */
.blue-block { background: var(--blue); color: #fff; position: relative; overflow: hidden; isolation: isolate; padding: clamp(90px, 12vw, 170px) 0; }
.blue-block::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .55; mix-blend-mode: overlay; }
.blue-block .t-1 { max-width: 15ch; }
.blue-block .t-lead { color: rgba(255,255,255,.84); max-width: 40ch; }
.blue-block .label, .blue-block .label b { color: rgba(255,255,255,.75); }
.blue-block .btn { border-color: rgba(255,255,255,.55); color: #fff; }
.blue-block .btn:hover { background: #fff; color: var(--blue); border-color: #fff; }
.blue-block .btn.light { background: #fff; color: #000; border-color: #fff; }
.blue-block .btn.light:hover { background: #000; color: #fff; border-color: #000; }

/* ---------- numbered rows ---------- */
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.row .n { font-size: 14px; color: var(--blue-ink); padding-top: .5em; font-variant-numeric: tabular-nums; }
.row .txt { display: grid; gap: 14px; }
.row .txt p { color: var(--mute); max-width: 44ch; }

/* daily report: a real artifact on light paper */
.doc { background: var(--paper); color: #141414; padding: clamp(24px, 3vw, 36px); font-size: 15px; line-height: 1.5; position: relative; }
.doc::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .25; mix-blend-mode: multiply; pointer-events: none; }
.doc-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #c9c9c4; padding-bottom: 14px; margin-bottom: 6px; }
.doc-head b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; display: block; }
.doc-head span { font-size: 13px; color: #6a6a66; }
.doc h4 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin: 16px 0 6px; }
.doc ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.doc .stamp { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #6a6a66; border: 1px solid #b9b9b4; padding: 3px 7px; height: fit-content; white-space: nowrap; }

/* ---------- services index ---------- */
.index { border-top: 1px solid var(--rule); }
.index a { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.5fr) 32px; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); transition: color .2s, padding .35s var(--ease); }
.index .n { font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; }
.index h3 { font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -.04em; }
.index p { color: var(--mute); font-size: 16px; }
.index .go { justify-self: end; font-size: 20px; color: var(--dim); transition: transform .3s var(--ease), color .2s; }
.index a:hover { color: var(--blue-ink); padding-left: 10px; }
.index a:hover .go { color: var(--blue-ink); transform: translateX(4px); }

/* ---------- comparison ---------- */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); font-weight: 400; vertical-align: top; }
.compare thead th { font-size: 13px; color: var(--dim); border-bottom-color: var(--rule-2); }
.compare tbody th { color: var(--ink); width: 34%; }
.compare td { color: var(--dim); }
.compare .us { color: var(--ink); padding-left: 16px; background: rgba(31,61,255,.12); border-left: 2px solid var(--blue); }
.compare thead .us { color: var(--blue-ink); }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.02em; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue-ink); }
.faq details p { padding: 0 0 26px; color: var(--mute); max-width: 64ch; }

/* ---------- two doors ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.door { display: grid; gap: 16px; align-content: start; }
.door .t-2 { margin-top: 8px; }
.door p { color: var(--mute); max-width: 42ch; }
.door .tlink { justify-self: start; margin-top: 4px; }

/* ---------- inner page header ---------- */
.page-head { padding: clamp(40px, 6vw, 90px) 0 clamp(40px, 5vw, 70px); }
.page-head .grid { row-gap: 30px; align-items: end; }
.crumbs { grid-column: 1 / -1; display: flex; gap: 8px; font-size: 14px; color: var(--dim); }
.crumbs a:hover { color: var(--ink); }
.page-head h1 { grid-column: 1 / span 10; }
.page-head .intro { grid-column: 1 / span 6; display: grid; gap: 26px; }
.page-head .side { grid-column: 8 / -1; }

/* services detail */
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 26px; padding: clamp(50px, 6vw, 80px) 0; border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
.svc .label { grid-column: 1 / span 3; }
.svc h2 { grid-column: 4 / span 8; }
.svc .desc { grid-column: 4 / span 6; }
.svc .lists { grid-column: 4 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc .cta { grid-column: 4 / -1; }
.dash { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--mute); }
.dash li::before { content: "\2014\00a0\00a0"; color: var(--blue-ink); }
.tools { color: var(--dim); font-size: 15px; line-height: 1.7; }
.tools b { display: block; font-weight: 400; color: var(--mute); font-size: 13px; margin-bottom: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.plan { padding: 30px 24px 30px 0; display: grid; gap: 14px; align-content: start; }
.plan + .plan { padding-left: 24px; border-left: 1px solid var(--rule); }
.plan .big { font-size: clamp(44px, 4.6vw, 66px); letter-spacing: -.055em; line-height: 1; }
.plan .big small { font-size: 15px; letter-spacing: 0; color: var(--dim); margin-left: 6px; }
.plan .tlink { justify-self: start; }

/* ---------- forms ---------- */
.form-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 50px; align-items: start; }
.form-aside { grid-column: 1 / span 5; display: grid; gap: 30px; position: sticky; top: 110px; }
.form-main { grid-column: 7 / -1; }
.form-main h2 { font-size: 30px; letter-spacing: -.035em; }
.form-main .note { margin: 10px 0 34px; color: var(--mute); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .lbl { font-size: 13px; color: var(--mute); }
.field label em, .field .lbl em { font-style: normal; color: var(--dim); margin-left: 6px; }
.input, .select, .textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--rule-2); background: transparent; font-size: 17px; border-radius: 0; outline: none; transition: border-color .2s; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--mute); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue-ink); }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3a3a0' stroke-width='1.5'><path d='M1 1.5l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px; }
.select option { background: #111; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--rule-2); font-size: 14px; color: var(--mute); transition: all .15s; }
.chips label:hover span { border-color: var(--ink); color: var(--ink); }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--blue-ink); outline-offset: 2px; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; font-size: 14px; color: var(--mute); cursor: pointer; }
.consent input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { grid-column: 1 / -1; color: var(--err); font-size: 15px; }
.form-error:empty { display: none; }
.submit-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.success { display: none; gap: 18px; padding: 10px 0; }
.success.show { display: grid; animation: rise .6s var(--ease); }
.success h3 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -.045em; }
.success p { color: var(--mute); max-width: 44ch; }
.success .btn { justify-self: start; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.steps-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); counter-reset: s; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 4px 0; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.steps-list li::before { content: "0" counter(s); grid-row: span 2; color: var(--blue-ink); font-size: 14px; padding-top: 2px; }
.steps-list b { font-weight: 500; }
.steps-list span { color: var(--mute); font-size: 15px; }

/* ---------- careers ---------- */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.perk { padding: 28px 24px 34px 0; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--rule); }
.perk:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--rule); }
.perk b { font-size: 13px; font-weight: 400; color: var(--blue-ink); }
.perk h3 { font-size: 22px; letter-spacing: -.025em; }
.perk p { color: var(--mute); font-size: 15.5px; }
.jobs-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--rule-2); background: none; color: var(--mute); cursor: pointer; font-size: 14px; }
.filters button:hover { color: var(--ink); border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #000; border-color: var(--ink); }
.jobs { border-top: 1px solid var(--rule); }
.job-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--rule); transition: color .2s, padding .35s var(--ease); }
.job-row:hover { color: var(--blue-ink); padding-left: 10px; }
.job-row-title { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.04em; line-height: 1.1; }
.job-row-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--mute); font-size: 15px; }
.job-row-go { font-size: 15px; color: var(--mute); }
.job-row[hidden] { display: none; }
.jobs-empty { display: none; gap: 18px; padding: 34px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.jobs-empty .btn { justify-self: start; }
[data-jobs-state="empty"] .jobs-empty { display: grid; }
[data-jobs-state="empty"] .jobs, [data-jobs-state="empty"] .filters { display: none; }
.job-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.job-layout .prose { grid-column: 1 / span 7; }
.job-facts { grid-column: 9 / -1; position: sticky; top: 110px; display: grid; gap: 22px; }
.job-facts dl { margin: 0; border-top: 1px solid var(--rule); }
.job-facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.job-facts dt { color: var(--dim); font-size: 14px; }
.job-facts dd { margin: 0; text-align: right; }

/* rich text */
.prose { color: var(--mute); font-size: 17px; max-width: 68ch; }
.prose h1, .prose h2, .prose h3 { color: var(--ink); font-size: 26px; margin: 40px 0 12px; letter-spacing: -.03em; line-height: 1.15; }
.prose > :first-child { margin-top: 0; }
.prose h3 { font-size: 21px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 18px; display: grid; gap: 6px; }
.prose li::marker { color: var(--blue-ink); }
.prose strong, .prose b { color: var(--ink); font-weight: 500; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-size: .9em; background: #1a1a1a; padding: 2px 6px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 64px 0 34px; }
.foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.foot-brand { grid-column: 1 / span 5; display: grid; gap: 16px; align-content: start; }
.foot-brand p { color: var(--mute); max-width: 32ch; font-size: 15px; }
.foot-col { grid-column: span 2; }
.foot-col.first { grid-column: 7 / span 2; }
.foot-col h4 { font-size: 13px; font-weight: 400; color: var(--dim); letter-spacing: 0; margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.foot-col a { color: var(--mute); transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--dim); }

/* clock */
.clock { display: inline-flex; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.clock .live { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: blink 2.4s ease-in-out infinite; }
.clock em { font-style: normal; color: var(--blue-ink); }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.photo.reveal { transform: none; clip-path: inset(10% 0 0 0); transition: clip-path 1.1s var(--ease), opacity .7s; }
.photo.reveal.in { clip-path: inset(0 0 0 0); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 28px; }
  .nav-links { gap: 20px; }
  .label { grid-column: 1 / -1; padding: 0 0 22px; }
  .body { grid-column: 1 / -1; }
  .svc .label, .svc h2, .svc .desc, .svc .lists, .svc .cta { grid-column: 1 / -1; }
  .svc .label { padding-bottom: 0; }
  .index a { grid-template-columns: 44px minmax(0, 1fr) 28px; }
  .index p { grid-column: 2; }
  .index .go { grid-row: 1; grid-column: 3; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .site-header.open { background: var(--bg); }
  .site-header.open .nav-links { display: grid; position: fixed; inset: 72px 0 0; margin: 0; padding: 26px var(--gut); background: var(--bg); gap: 0; align-content: start; }
  .site-header.open .nav-links a { font-size: 34px; letter-spacing: -.045em; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .site-header.open .nav-links a::after { display: none; }
  .site-header.open .nav-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; padding: 18px var(--gut) calc(18px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--rule); }
  .site-header.open .nav-cta .btn { flex: 1; }
  .hero-copy, .hero-photo, .page-head h1, .page-head .intro, .page-head .side { grid-column: 1 / -1; }
  .facts, .plans, .perks, .doors { grid-template-columns: 1fr; }
  .fact + .fact, .plan + .plan { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .perk:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .row { grid-template-columns: 44px minmax(0, 1fr); }
  .row > :nth-child(3) { grid-column: 2; }
  .form-aside, .form-main { grid-column: 1 / -1; position: static; }
  .job-layout .prose, .job-facts { grid-column: 1 / -1; position: static; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col, .foot-col.first { grid-column: span 4; }
  .job-row { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid, .form-layout, .job-layout, .svc, .foot { column-gap: 0; }
  .fields, .svc .lists { grid-template-columns: 1fr; }
  .capture { flex-direction: column; align-items: stretch; border-bottom: 0; }
  .capture input { border-bottom: 1px solid var(--rule-2); }
  .capture .btn { margin: 16px 0 0; }
  .foot-col, .foot-col.first { grid-column: span 6; }
  .hero-photo .r-45 { aspect-ratio: 4 / 3; }
  .row { grid-template-columns: 1fr; gap: 12px; }
  .row > :nth-child(3) { grid-column: 1; }
  .row .n { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .photo.reveal { opacity: 1; transform: none; clip-path: none; }
}

/* notch / rounded-corner safety (viewport-fit=cover is set in <head>) */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.site-header { padding-top: env(safe-area-inset-top); }
.site-footer { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
@media (max-width: 860px) {
  .site-header.open .nav-links { inset: calc(72px + env(safe-area-inset-top)) 0 0; padding-left: max(var(--gut), env(safe-area-inset-left)); padding-right: max(var(--gut), env(safe-area-inset-right)); padding-bottom: calc(110px + env(safe-area-inset-bottom)); overflow-y: auto; }
  .menu-btn, .btn, .filters button, .chips span { min-height: 44px; }
  .chips span { display: inline-flex; align-items: center; }
}
.body.prose { display: block; }
/* backdrop-filter makes the header the containing block for fixed children; drop it while the menu is open */
.site-header.open { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* one-line "what we are" tag above headlines (also gives each H1 its keywords) */
.eyebrow { display: block; font-size: 15px; font-weight: 400; letter-spacing: 0; line-height: 1.4; color: var(--blue-ink); margin-bottom: 18px; }
h1 .t-hero, h1 .t-1 { display: block; }

/* quick-jump links */
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { padding: 9px 15px; border: 1px solid var(--rule-2); border-radius: 999px; font-size: 14px; color: var(--mute); transition: color .2s, border-color .2s; }
.jump a:hover { color: var(--ink); border-color: var(--ink); }

/* sticky action bar on phones, shown after the hero */
.quickbar { display: none; }
@media (max-width: 860px) {
  .quickbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(5,5,5,.94); border-top: 1px solid var(--rule); transform: translateY(110%); transition: transform .35s var(--ease); }
  .quickbar.show { transform: none; }
  .quickbar .btn { flex: 1; }
  body.has-quickbar .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
/* above the fold shows instantly: faster first impression and better Largest Contentful Paint */
.hero .reveal, .page-head .reveal { opacity: 1; transform: none; clip-path: none; transition: none; }

/* ---------- courses (waitlist) ---------- */
.course-intro { gap: 26px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.page-head .course-intro > * { grid-column: 1 / -1; }
.course-intro .crumbs { margin-bottom: 4px; }
.course-intro .dash { font-size: 16px; }
.courses a { scroll-margin-top: 90px; }
.soon { display: block; width: fit-content; margin-bottom: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); border: 1px solid rgba(111,134,255,.45); border-radius: 999px; padding: 3px 9px; }
/* one-line pointer to a related page (home, careers) */
.teaser { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-top: clamp(40px, 5vw, 70px); padding-top: 24px; border-top: 1px solid var(--rule); }
.teaser p { color: var(--mute); max-width: 52ch; }
.teaser p b { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) {
  .teaser .tlink { min-height: 44px; align-items: center; }
}
