:root {
  --night: #171C14;
  --moss: #2A3324;
  --moss-2: #3A4630;
  --lime: #E3F983;
  --paper: #F3F1EC;
  --sky: #8DB9F1;
  --sky-deep: #6A9CE4;
  --white: #FFFFFF;
  --line: #DCDACF;
  --muted: #5B6253;
  --body: #2A3324;
  --on-dark: #C9D0B8;
  --serif: 'Instrument Serif', Georgia, serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --grain: url(/grain.png) 0 0 / 256px repeat;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--night); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.055em; }
:focus-visible { outline: 2px solid var(--night); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 24px; top: 24px; z-index: 100; background: var(--white); padding: 12px 16px; border-radius: 12px; }

.wrap { padding: 0 var(--gutter); }
.section { padding-top: clamp(112px, 12vw, 176px); }
.anchor { position: relative; top: -96px; display: block; height: 0; }

.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 4.4vw, 68px); line-height: .98; letter-spacing: -.05em; }
.h2 .serif { font-size: 1.06em; letter-spacing: -.02em; }
.lead { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 520px; }
.lead.on-dark { color: var(--on-dark); }
.lead a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border: 0; border-radius: 16px; corner-shape: superellipse(2); font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-dark { background: var(--night); color: var(--lime); }
.btn-lime { background: var(--lime); color: var(--night); }
.btn-white { background: var(--white); color: var(--night); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding: 16px var(--gutter) 0; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 68px; padding: 0 10px 0 24px; border-radius: 22px; corner-shape: superellipse(2); background: rgba(255,255,255,.86); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); transition: box-shadow .3s; }
.header.show .nav { box-shadow: 0 10px 40px rgba(23,28,20,.08); }
.logo { display: inline-flex; color: var(--night); }
.logo svg { height: 24px; width: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 10px 14px; border-radius: 12px; corner-shape: superellipse(2); font-size: 14px; font-weight: 500; text-decoration: none; transition: background .2s; }
.nav-links a:hover { background: var(--paper); }
.nav-apply { justify-self: end; height: 48px; }

/* Hero */
.hero { --p: 0; padding: calc(var(--p) * 100px) calc(var(--p) * var(--gutter)) 0; }
.hero-card { position: relative; overflow: hidden; min-height: calc(100svh - var(--p) * 116px); border-radius: calc(var(--p) * 56px); corner-shape: superellipse(2); background: linear-gradient(to top, #B1D2F8 0%, #73A5E9 var(--img-h), #6A9CE4 100%); padding: clamp(132px, 13vw, 168px) clamp(24px, 5vw, 80px) 0; display: flex; flex-direction: column; align-items: center; text-align: center; --img-h: 52%; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero-kicker { font-size: 14px; font-weight: 500; color: var(--night); opacity: .8; }
.hero h1 { font-weight: 400; font-size: clamp(56px, min(8.6vw, 14.5svh), 144px); line-height: .9; letter-spacing: -.03em; display: flex; flex-direction: column; }
.hero h1 .display { letter-spacing: -.065em; }
.hero-line { max-width: 440px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; font-weight: 500; }
.hero-img { position: absolute; left: 50%; bottom: 0; height: var(--img-h); width: auto; max-width: none; transform: translateX(-50%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 28%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 28%); mask-composite: intersect; pointer-events: none; }

/* The big mark */
.hero > .facts { margin-left: calc((1 - var(--p)) * var(--gutter)); margin-right: calc((1 - var(--p)) * var(--gutter)); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--night); }
.facts p { font-size: 15px; line-height: 1.5; color: var(--body); max-width: 340px; }
.facts strong { display: block; font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -.04em; color: var(--night); margin-bottom: 2px; }
.facts-clocks { display: flex; flex-wrap: wrap; column-gap: 24px; }
.facts-clocks em { flex-basis: 100%; font-style: normal; }

/* Page-load sequence: the one orchestrated moment */
.load { animation: rise 1s var(--ease) both; animation-delay: calc(var(--d) * 110ms + 100ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes markIn { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* Why Restless */
.why { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.def { position: sticky; top: 112px; border-radius: 40px; corner-shape: superellipse(2); background: var(--grain), radial-gradient(80% 90% at 100% 100%, var(--moss-2) 0%, rgba(58,70,48,0) 70%), var(--night); color: var(--paper); padding: clamp(32px, 3.6vw, 52px); }
.def-word { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 4.6vw, 72px); line-height: 1; letter-spacing: -.06em; color: var(--lime); }
.def-word span { color: var(--on-dark); font-weight: 500; }
.def-type { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--on-dark); }
.def-text { margin-top: 28px; font-size: 17px; line-height: 1.55; max-width: 300px; }
.manifesto { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 3.9vw, 60px); line-height: 1.08; letter-spacing: -.045em; }
.manifesto .wd { display: inline-block; opacity: .18; filter: blur(8px); transform: translateY(.12em); transition: opacity .6s var(--ease), filter .6s var(--ease), transform .6s var(--ease); }
.manifesto .wd.on { opacity: 1; filter: none; transform: none; }

/* How we work */
.how { border-radius: 56px; corner-shape: superellipse(2); background: var(--grain), radial-gradient(70% 70% at 0% 0%, rgba(141,185,241,.22) 0%, rgba(141,185,241,0) 60%), radial-gradient(60% 80% at 100% 100%, var(--moss-2) 0%, rgba(58,70,48,0) 70%), var(--night); color: var(--paper); padding: clamp(40px, 6vw, 104px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); }
.how-head { display: flex; flex-direction: column; gap: 24px; }
.how-head .h2 .serif { color: var(--sky); }
.how-list { margin: 0; }
.how-list > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; padding: 26px 0; border-top: 1px solid rgba(243,241,236,.16); }
.how-list > div:last-child { border-bottom: 1px solid rgba(243,241,236,.16); }
.how-list dt { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.03em; }
.how-list dd { margin: 0; color: var(--on-dark); line-height: 1.6; }

/* Promise */
.promise { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); }
.promise-intro { display: flex; flex-direction: column; gap: 24px; align-self: start; position: sticky; top: 112px; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--muted); }
.promise-img { margin: 8px 0 0; max-width: 420px; aspect-ratio: 1122 / 842; overflow: hidden; border-radius: 32px; corner-shape: superellipse(2); }
.promise-img img { width: 100%; height: 100%; object-fit: cover; }
.promise-list { list-style: none; margin: 0; padding: 0; }
.promise-list li { padding: 30px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
.promise-list li:last-child { border-bottom: 1px solid var(--line); }
.promise-list h3 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -.04em; }
.promise-list p { color: var(--body); line-height: 1.6; }

/* Audience */
.audience { border-radius: 56px; corner-shape: superellipse(2); background: var(--white); padding: clamp(40px, 6vw, 104px); display: flex; flex-direction: column; gap: 64px; }
.audience-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.audience-head .h2 { max-width: 620px; }
.tabs { display: inline-flex; padding: 6px; border-radius: 18px; corner-shape: superellipse(2); background: var(--paper); }
.tab { white-space: nowrap; height: 44px; padding: 0 20px; border: 0; border-radius: 13px; corner-shape: superellipse(2); background: transparent; color: var(--muted); font: 500 15px var(--sans); cursor: pointer; transition: background .25s, color .25s; }
.tab[aria-selected="true"] { background: var(--night); color: var(--lime); }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.panel[hidden] { display: none; }
.panel-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.panel-copy h3 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.02; letter-spacing: -.045em; }
.panel-copy p { color: var(--body); line-height: 1.6; max-width: 440px; margin-bottom: 8px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--sky-deep); }
.steps h4 { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.03em; }
.steps p { margin-top: 4px; color: var(--muted); line-height: 1.55; }

/* Services index */
.services-title { max-width: 900px; margin-bottom: 40px; }
.services { list-style: none; margin: 0; padding: 0; }
.services li { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--night); }
.services li:last-child { border-bottom: 1px solid var(--night); }
.services h3 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.6vw, 56px); line-height: 1; letter-spacing: -.055em; transition: transform .4s var(--ease); }
.services li:hover h3 { transform: translateX(12px); }
.services p { color: var(--body); line-height: 1.6; max-width: 460px; }

/* Join */
.join { border-radius: 56px; corner-shape: superellipse(2); background: var(--white); padding: clamp(40px, 6vw, 104px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.join h2 { font-family: var(--display); font-weight: 600; font-size: clamp(48px, 6.4vw, 104px); line-height: .9; letter-spacing: -.06em; }
.join-copy > p { margin: 24px 0 32px; max-width: 460px; font-size: 18px; line-height: 1.6; color: var(--body); }
.join-img { margin: 0; max-width: 460px; aspect-ratio: 1227 / 1085; overflow: hidden; border-radius: 32px; corner-shape: superellipse(2); }
.join-img img { width: 100%; height: 100%; object-fit: cover; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; width: 100%; text-align: left; }
.form-head h3 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -.05em; }
.form-head p { margin: 6px 0 10px; font-size: 15px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: 13px; font-weight: 500; padding: 0; }
.field em { font-style: normal; opacity: .55; font-weight: 400; margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; color: inherit; border: 1px solid transparent; border-radius: 14px; corner-shape: superellipse(2); padding: 14px 16px; outline: none; transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none; }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B6253' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer; }
.form-light .field input, .form-light .field select, .form-light .field textarea { background-color: var(--paper); }
.form-light .field input:focus, .form-light .field select:focus, .form-light .field textarea:focus { border-color: var(--night); background-color: var(--white); }
.form-dark .field > span, .form-dark .field legend { color: var(--on-dark); }
.form-dark .field input, .form-dark .field textarea { background-color: rgba(243,241,236,.07); border-color: rgba(243,241,236,.12); color: var(--paper); }
.form-dark .field input::placeholder, .form-dark .field textarea::placeholder { color: rgba(243,241,236,.4); }
.form-dark .field input:focus, .form-dark .field textarea:focus { border-color: var(--lime); }
.field [aria-invalid="true"] { border-color: #C2410C !important; }
.choice { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.choice legend { width: 100%; margin-bottom: 8px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 12px; corner-shape: superellipse(2); font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.form-light .choice label span { background: var(--paper); }
.form-light .choice input:checked + span { background: var(--night); color: var(--lime); }
.form-dark .choice label span { background: rgba(243,241,236,.08); color: var(--paper); }
.form-dark .choice input:checked + span { background: var(--lime); color: var(--night); }
.choice input:focus-visible + span { outline: 2px solid currentColor; outline-offset: 2px; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.form-status { font-size: 14px; }
.form-status.err { color: #C2410C; }
.form-dark .form-status.err { color: #FDBA74; }
.form-note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.form-note a { text-underline-offset: 3px; }
.form-dark .form-note { color: var(--on-dark); }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-done { padding: 32px; border-radius: 24px; corner-shape: superellipse(2); gap: 10px; }
.form-light.form-done { background: var(--lime); }
.form-dark.form-done { background: rgba(243,241,236,.07); }
.form-done h3 { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -.04em; }
.form-done p { font-size: 15px; line-height: 1.6; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); }
.faq-intro { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; align-self: start; position: sticky; top: 112px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.03em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex-shrink: 0; width: 36px; height: 36px; border-radius: 12px; corner-shape: superellipse(2); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23171C14' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center no-repeat; transition: transform .3s var(--ease), background-color .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--lime); }
.faq-item p { padding: 0 56px 24px 0; max-width: 640px; color: var(--body); line-height: 1.65; }

/* Contact */
.cta { border-radius: 56px; corner-shape: superellipse(2); background: var(--grain), radial-gradient(50% 70% at 50% 0%, var(--moss-2) 0%, rgba(58,70,48,0) 70%), var(--night); color: var(--paper); padding: clamp(64px, 8vw, 128px) clamp(24px, 5vw, 72px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.cta h2 { font-weight: 400; font-size: clamp(52px, 7.4vw, 128px); line-height: .9; letter-spacing: -.03em; display: flex; flex-direction: column; }
.cta h2 .display { color: var(--lime); letter-spacing: -.065em; }
.cta > p { max-width: 440px; font-size: 17px; line-height: 1.6; color: var(--on-dark); }
.cta .form { max-width: 720px; margin-top: 16px; }

/* Footer */
.footer { padding: clamp(112px, 12vw, 176px) var(--gutter) 0; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding-bottom: 56px; }
.footer-line { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -.04em; max-width: 440px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-cols p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.footer-cols a { display: block; padding: 4px 0; font-size: 15px; text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-mark { position: relative; }
.footer-mark svg { display: block; width: 100%; height: auto; }
.footer-mark span { display: block; text-align: right; margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 36px); color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px 0 32px; font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .why, .how, .promise, .panel, .join, .faq, .footer-top { grid-template-columns: 1fr; }
  .def, .promise-intro, .faq-intro { position: static; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts-clocks { grid-column: span 2; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .hero-card { --img-h: 46%; padding-top: 120px; }
  .how, .audience, .join, .cta { border-radius: 36px; }
  .facts { grid-template-columns: 1fr; }
  .facts-clocks { grid-column: auto; }
  .how-list > div, .promise-list li, .services li { grid-template-columns: 1fr; gap: 8px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .faq-item p { padding-right: 0; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 0 10px; font-size: 14px; }
}
@media (max-width: 480px) {
  .logo svg { height: 20px; }
  .nav-apply { padding: 0 16px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .load { animation: none; }
  .manifesto .wd { opacity: 1; filter: none; transform: none; transition: none; }
  .hero { --p: 1 !important; }
  .btn, .services h3 { transition: none; }
}

/* Legal page */
.nav-cta { grid-column: 3; justify-self: end; }
.legal { padding-top: 120px; }
.legal-card { max-width: 820px; margin: 0 auto; background: var(--white); border-radius: 48px; corner-shape: superellipse(2); padding: clamp(32px, 6vw, 88px); }
.legal-card .label { font-size: 14px; color: var(--muted); }
.legal-card .label b { font-weight: 500; color: var(--night); margin-right: 8px; }
.legal-card h1 { margin: 20px 0 24px; font-family: var(--display); font-weight: 600; font-size: clamp(44px, 6vw, 88px); line-height: .92; letter-spacing: -.05em; }
.legal-card h2 { margin: 48px 0 12px; font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -.03em; }
.legal-card p, .legal-card li { font-size: 16px; line-height: 1.7; color: var(--body); }
.legal-card p { margin: 0 0 14px; }
.legal-card ul { margin: 0 0 14px; padding-left: 20px; }
.legal-card a { text-underline-offset: 3px; }
.legal-lead { font-size: 19px !important; }
.legal-footer { padding-top: 64px; }
@media (max-width: 1100px) { .nav-cta { grid-column: 2; } }


/* ===== Motion layer ===== */

/* Intro curtain: shown once per visit */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--night); display: grid; place-items: center; pointer-events: none; }
.intro-mark { width: min(64vw, 720px); color: var(--lime); overflow: hidden; }
.intro-mark svg { display: block; width: 100%; height: auto; transform: translateY(105%); }
html.intro-run .intro-mark svg { animation: introRise .9s var(--ease) .1s forwards; }
html.intro-run .intro { animation: introLift 1s cubic-bezier(.76,0,.24,1) 1.15s forwards; }
html.intro-done .intro, html.no-intro .intro { display: none; }
@keyframes introRise { to { transform: none; } }
@keyframes introLift { to { clip-path: inset(0 0 100% 0); } }
.intro { clip-path: inset(0 0 0 0); }
html.intro-run .load { animation-delay: calc(var(--d) * 110ms + 1550ms); }

/* The restless wordmark: never stops moving */
.mark { margin-top: clamp(28px, 4vw, 56px); overflow: hidden; color: var(--night); }
.mark-track { display: flex; width: max-content; will-change: transform; }
.mark-item { display: flex; align-items: center; flex-shrink: 0; }
.mark-item svg { display: block; width: auto; height: clamp(110px, 21vw, 320px); }
.mark-dot { display: block; flex-shrink: 0; width: clamp(28px, 5vw, 76px); height: clamp(28px, 5vw, 76px); margin: 0 clamp(28px, 4vw, 64px); border-radius: 32%; corner-shape: superellipse(2); background: var(--lime); transform: translateY(18%); }

/* Hero parallax (driven by --y from script) */
.hero-copy { transform: translateY(calc(var(--y, 0) * -0.18px)); opacity: calc(1 - var(--y, 0) / 700); }
.hero-img { translate: 0 calc(var(--y, 0) * 0.12px); }

/* Header tucks away on scroll down, returns on scroll up */
.header { transition: transform .5s var(--ease); }
.header.away { transform: translateY(-120%); }

/* Headings reveal through a mask */
[data-reveal] { clip-path: inset(0 0 100% 0); transform: translateY(32px); transition: clip-path 1.1s cubic-bezier(.65,0,.25,1), transform 1.1s cubic-bezier(.65,0,.25,1); }
[data-reveal].in { clip-path: inset(-10% -5% -20% -5%); transform: none; }

/* Images settle into their frames */
[data-zoom] img { transform: scale(1.14); transition: transform 1.6s var(--ease); }
[data-zoom].in img { transform: scale(1); }

/* Footer wordmark rises as you reach the end */
[data-rise] svg { transform: translateY(calc((1 - var(--r, 0)) * 40%)); }
.footer-mark { overflow: hidden; padding-bottom: 4px; }

/* Services: lime fill sweeps in on hover */
.services li { position: relative; isolation: isolate; padding-left: 16px; padding-right: 16px; margin: 0 -16px; }
.services li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lime); border-radius: 20px; corner-shape: superellipse(2); clip-path: inset(0 100% 0 0 round 20px); transition: clip-path .6s cubic-bezier(.65,0,.25,1); }
.services li:hover::before { clip-path: inset(0 0 0 0 round 20px); }
.services li:hover h3 { transform: translateX(8px); }

/* How-we-work rows brighten on hover */
.how-list > div { transition: padding-left .4s var(--ease); }
.how-list > div:hover { padding-left: 12px; }
.how-list > div:hover dt { color: var(--lime); }
.how-list dt { transition: color .3s; }

/* Steps: number fills when hovered */
.steps li { transition: background .3s; }
.steps li::before { transition: transform .4s var(--ease); }
.steps li:hover::before { transform: translateX(6px); }

/* Tab panels crossfade */
.panel:not([hidden]) { animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* FAQ opens smoothly */
.faq-item { interpolate-size: allow-keywords; }
.faq-item::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.faq-item[open]::details-content { height: auto; }

/* Magnetic primary buttons */
.btn.magnetic { transition: transform .35s var(--ease), background .25s; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .mark-track { transform: none !important; }
  .hero-copy, .hero-img { transform: none; translate: none; opacity: 1; }
  [data-reveal], [data-zoom] img, [data-rise] svg { clip-path: none; transform: none; transition: none; }
  .services li::before { transition: none; }
}
