/* =========================================================
   AMJAY AI — site styles
   Calm, editorial, light. Two colour themes:
   C "plum"     (default) cream + deep plum + brass
   D "lavender"           lavender mist + deep violet + soft gold
   ========================================================= */

:root {
  --bg: #f5f1ea;          /* cream */
  --surface: #fbf8f3;     /* lighter panel */
  --band: #ece4e6;        /* tinted section band */
  --surface-2: #e9e1e3;   /* placeholder / deeper panel */
  --ink: #2b1e36;         /* deep plum */
  --ink-2: #5a4468;       /* italic / secondary ink */
  --muted: #665a6c;
  --line: #dcd2d5;
  --line-soft: #e7dfe1;
  --brass: #a4875a;
  --brass-deep: #7d6438;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(96px, 12vw, 168px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

:root[data-theme="lavender"] {
  --bg: #f3f1f6;
  --surface: #faf9fc;
  --band: #e8e4f0;
  --surface-2: #e4e0ec;
  --ink: #231d45;
  --ink-2: #4e4583;
  --muted: #605c72;
  --line: #d6d1e2;
  --line-soft: #e2deea;
  --brass: #b39256;
  --brass-deep: #8a6e3c;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--surface); }

:focus-visible { outline: 1.5px solid var(--brass); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { letter-spacing: -0.042em; }
h2 { letter-spacing: -0.036em; }
.lead, .head p, .statement p { text-wrap: pretty; }
.nw { white-space: nowrap; }
@media (min-width: 861px) { .split.top > .head { position: sticky; top: 120px; } }
h1 { font-size: clamp(2.8rem, 5.8vw, 5.25rem); line-height: 1.0; }
h2 { font-size: clamp(2.25rem, 4.4vw, 3.6rem); line-height: 1.06; }
h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.2; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--ink-2); }

p { margin: 0; }
.lead { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); color: var(--muted); max-width: 32rem; line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px;
  border-radius: 2px;
  background: var(--ink); color: var(--surface);
  font-size: .975rem; font-weight: 500; letter-spacing: .01em;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn .arr { width: 18px; height: 10px; transition: transform .45s var(--ease); }
.btn:hover { background: var(--ink-2); }
.btn:hover .arr { transform: translate(2px, -2px); }
.btn.btn-sm { padding: 11px 18px; font-size: .875rem; gap: 10px; white-space: nowrap; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--ink); }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: .975rem;
  padding-bottom: 4px;
  background: linear-gradient(var(--brass), var(--brass)) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link .arr { width: 16px; height: 9px; transition: transform .45s var(--ease); }
.link:hover .arr { transform: translate(2px, -2px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 84px; }
.nav .wordmark { justify-self: start; }
.nav-cta { justify-self: end; }
.nav-links .sm { display: none; }

.wordmark {
  font-family: var(--sans); font-weight: 500;
  font-size: .95rem; letter-spacing: .34em;
  color: var(--ink); white-space: nowrap;
  padding-left: .34em; /* balance letter-spacing */
}
.wordmark span { color: var(--brass); margin-left: .2em; }

.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .9rem; color: var(--ink-2); position: relative; padding: 6px 0; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after, .nav-links a.is-current::after { transform: scaleX(1); }

/* Colour preview switcher (only shown on local preview or with ?theme= in the URL) */
.theme-switch {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 80;
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .35); font-size: .85rem; color: var(--muted);
}
.theme-switch button {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 7px 14px;
  cursor: pointer; font-size: .85rem; color: var(--ink); white-space: nowrap;
}
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }


/* ---------- Hero ---------- */

.hero { padding: clamp(140px, 19vh, 210px) 0 clamp(72px, 9vw, 128px); position: relative; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.hero .lead { margin: 30px 0 44px; }
.hero-art { width: 100%; max-width: 500px; justify-self: end; }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section.alt { background: var(--band); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section.alt + .section { border-top: 0; }

.head { max-width: 40rem; margin-bottom: clamp(48px, 6vw, 80px); }
.head p { margin-top: 20px; color: var(--muted); font-size: 1.125rem; max-width: 30rem; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center p { margin-left: auto; margin-right: auto; }

.sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin: clamp(72px, 9vw, 120px) 0 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.sub-head h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }

/* ---------- Grids of items ---------- */

.grid { display: grid; gap: clamp(28px, 3.5vw, 48px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.item { padding-top: 26px; border-top: 1px solid var(--line); }
.item h3 { margin: 22px 0 10px; }
.item p { color: var(--muted); font-size: 1rem; max-width: 22rem; }
.item .tags { margin-top: 16px; font-size: .875rem; color: var(--ink-2); letter-spacing: .01em; }

.ico { width: 40px; height: 40px; fill: none; stroke: var(--brass-deep); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }

.num { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--brass); line-height: 1; }

/* ---------- Steps with a drawn line ---------- */

.steps { position: relative; }
.steps .track { position: absolute; left: 0; right: 0; top: 7px; height: 2px; width: 100%; overflow: visible; }
.steps .grid > div { position: relative; padding-top: 44px; }
.steps .grid > div::before {
  content: ""; position: absolute; top: 2px; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--brass);
}
.section.alt .steps .grid > div::before { background: var(--surface); }
.steps h3 { margin: 14px 0 8px; font-size: 1.5rem; }
.steps p { color: var(--muted); font-size: 1rem; max-width: 18rem; }

/* ---------- Split layout ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.split.top { align-items: start; }
.split .stack > * + * { margin-top: 22px; }
.split .stack .btn, .split .stack .link { margin-top: 34px; }

/* ---------- Data switch (CSS only) ---------- */

.aud-input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }

.switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.switch label {
  position: relative; z-index: 1; cursor: pointer; text-align: center; white-space: nowrap;
  padding: 13px 28px; border-radius: 999px; font-size: .95rem; font-weight: 500; color: var(--muted);
  transition: color .45s var(--ease);
}
.switch-thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: 999px; background: var(--ink);
  transition: transform .6s var(--ease);
}
.switch:has(label:nth-of-type(3)) { grid-template-columns: 1fr 1fr 1fr; }
.switch:has(label:nth-of-type(3)) .switch-thumb { width: calc((100% - 10px) / 3); }
.switch .sm { display: none; }
#aud-labs:checked ~ .switch .switch-thumb { transform: translateX(100%); }
#aud-auto:checked ~ .switch .switch-thumb { transform: translateX(200%); }
#aud-partners:checked ~ .switch label[for="aud-partners"],
#aud-labs:checked ~ .switch label[for="aud-labs"],
#aud-auto:checked ~ .switch label[for="aud-auto"] { color: var(--surface); }
#aud-partners:focus-visible ~ .switch label[for="aud-partners"],
#aud-labs:focus-visible ~ .switch label[for="aud-labs"],
#aud-auto:focus-visible ~ .switch label[for="aud-auto"] { outline: 1.5px solid var(--brass); outline-offset: 3px; }

.panel { display: none; }
#aud-partners:checked ~ .panels .panel-partners,
#aud-labs:checked ~ .panels .panel-labs,
#aud-auto:checked ~ .panels .panel-auto { display: grid; animation: panelIn .8s var(--ease) both; }
#aud-auto:checked ~ .promise { display: none; }
.panel-wide { grid-column: 1 / -1; }
.panel-wide > .sub-head:first-child { margin-top: clamp(24px, 4vw, 48px); }
.panel { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.panel .stack > * + * { margin-top: 20px; }
.panel .stack .btn { margin-top: 36px; }
.panel .grid { gap: 40px 48px; }
.panel .item { animation: panelIn .9s var(--ease) both; }
.panel .item:nth-child(2) { animation-delay: .08s; }
.panel .item:nth-child(3) { animation-delay: .16s; }
.panel .item:nth-child(4) { animation-delay: .24s; }
.panel .ico * { stroke-dasharray: 100; stroke-dashoffset: 0; animation: drawIn 2s var(--ease) both; animation-delay: .2s; }

@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drawIn { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* ---------- Promise line ---------- */

.promise {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: clamp(72px, 9vw, 120px); padding-top: 40px; border-top: 1px solid var(--line-soft);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--ink-2);
  text-align: center;
}
.promise .ico { width: 34px; height: 34px; flex: none; }

.statement { text-align: center; max-width: 46rem; margin: 0 auto; }
.statement h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.statement p { margin: 22px auto 0; color: var(--muted); font-size: 1.125rem; max-width: 30rem; }
.statement .art-sm { width: 120px; margin: 0 auto 36px; }

/* ---------- Path cards (contact) ---------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(28px, 3vw, 40px);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px;
  transition: transform .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease);
}
.section.alt .card { background: var(--bg); }
.card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 24px 48px -32px rgba(20, 27, 38, .25); }
.card h3 { margin-top: 18px; }
.card p { color: var(--muted); font-size: 1rem; flex: 1; }
.card .link { align-self: flex-start; margin-top: 18px; }

.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.split .stack .values { display: grid; gap: 24px; margin-top: 40px; }
.values .item { padding-top: 20px; }
.values h3 { margin: 0 0 6px; font-size: 1.4rem; }

.path-links { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.path-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 36px 0; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  transition: color .4s var(--ease);
}
.path-links a + a { border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 56px); }
.path-links a:first-child { padding-right: clamp(24px, 4vw, 56px); }
.path-links .arr { width: 28px; height: 14px; color: var(--brass); transition: transform .5s var(--ease); flex: none; }
.path-links a:hover .arr { transform: translateX(6px); }

/* ---------- Photo & logo placeholders ---------- */

.ph {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  width: 100%; aspect-ratio: 4 / 5;
  background: var(--surface-2);
  border-radius: 18px; overflow: hidden;
  color: var(--muted); font-size: .875rem; letter-spacing: .02em; text-align: center; padding: 24px;
}
.ph::before {
  content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(93, 99, 110, .28); border-radius: 10px; pointer-events: none;
}
.ph svg { width: 44px; height: 44px; fill: none; stroke: var(--muted); stroke-width: 1; opacity: .7; }
.ph.wide { aspect-ratio: 16 / 10; }
.ph.square { aspect-ratio: 1 / 1; }
.ph.short { aspect-ratio: 16 / 7; }

.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.logo-ph {
  height: 88px; border: 1px dashed var(--line); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; letter-spacing: .04em;
}

.quote { max-width: 44rem; margin: 56px 0 0; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.25; color: var(--ink); }
.quote figcaption { margin-top: 20px; color: var(--muted); font-size: .95rem; }

/* ---------- Team ---------- */

.team .ph { aspect-ratio: 4 / 5; }
.team h3 { margin-top: 22px; font-size: 1.5rem; }
.team p { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 0; font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { position: relative; width: 18px; height: 18px; flex: none; }
.faq .pm::before, .faq .pm::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--brass);
  transition: transform .5s var(--ease);
}
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq details p { padding: 0 48px 30px 0; color: var(--muted); max-width: 36rem; animation: panelIn .6s var(--ease) both; }

/* ---------- Forms ---------- */

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 32px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .field legend { font-size: .875rem; color: var(--muted); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 10px 0 12px; font-size: 1.0625rem; border-radius: 0; outline: none;
  transition: border-color .4s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237d6438' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px; cursor: pointer;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--brass); }
.field input::placeholder, .field textarea::placeholder { color: #9a9ea6; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { margin-bottom: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .925rem; color: var(--ink-2); transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.chip:hover span { border-color: var(--ink-2); }
.chip input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 1.5px solid var(--brass); outline-offset: 3px; }

.btn:disabled { opacity: .6; cursor: progress; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.form-done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(16px, 3vw, 40px) 0; outline: none; animation: panelIn .8s var(--ease) both; }
.form-done svg { width: 64px; height: 64px; margin-bottom: 12px; }
.form-done h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.08; }
.form-done p { color: var(--muted); max-width: 26rem; }

.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.form-status { font-size: .95rem; color: var(--muted); min-height: 1.5em; }

.form-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 22px;
  padding: clamp(28px, 4vw, 52px);
}
.section.alt .form-card { background: var(--bg); }

.contact-line { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.contact-line a { background: linear-gradient(var(--brass), var(--brass)) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }

/* ---------- CTA band ---------- */

.cta { text-align: center; }
.cta h2 { max-width: 40rem; margin: 0 auto; }
.cta p { margin: 22px auto 40px; color: var(--muted); font-size: 1.125rem; max-width: 30rem; }

/* ---------- Footer ---------- */

.site-footer { padding: clamp(72px, 9vw, 120px) 0 40px; border-top: 1px solid var(--line-soft); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.foot-grid h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); max-width: 22rem; margin-top: 28px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-grid a:not(.wordmark) { color: var(--ink-2); font-size: .975rem; transition: color .3s; }
.foot-grid a:not(.wordmark):hover { color: var(--brass-deep); }
.foot-title { font-size: .875rem; color: var(--muted); margin-bottom: 18px; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(64px, 8vw, 104px); padding-top: 28px; border-top: 1px solid var(--line-soft);
  font-size: .875rem; color: var(--muted);
}

/* =========================================================
   Line-drawing art
   Paths use pathLength="1" so they can be drawn in with CSS.
   ========================================================= */

.art { overflow: visible; }
.art .l, .art .f { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.art .soft { opacity: .32; }
.art .faint { opacity: .16; }
.art .b { stroke: var(--brass); }
.art .dot { fill: var(--brass); }
.art .node { fill: var(--bg); stroke: var(--ink); stroke-width: 1; }
.art .dash { stroke-dasharray: 2 7; }
.art .flow { stroke-dasharray: 3 9; animation: flow 2.8s linear infinite; }
.art .spin { transform-box: fill-box; transform-origin: center; animation: spin 80s linear infinite; }
.art .spin.rev { animation-direction: reverse; animation-duration: 110s; }
.art .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 4.5s var(--ease) infinite; }
.art .pulse.d2 { animation-delay: 1.5s; }
.art .pulse.d3 { animation-delay: 3s; }
.art .breathe { animation: breathe 6s ease-in-out infinite; }

@keyframes flow { to { stroke-dashoffset: -48; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes breathe { 0%, 100% { opacity: .25; } 50% { opacity: .6; } }

/* Draw-in (only when JS is present, so lines are never lost) */
.js .draw .l { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); transition-delay: var(--d, 0s); }
.js .draw.in .l { stroke-dashoffset: 0; }
.js .draw .f, .js .draw .dot, .js .draw .node { opacity: 0; transition: opacity 1.4s var(--ease); transition-delay: var(--d, 1.2s); }
.js .draw .f.soft { --o: .32; } .js .draw .f.faint { --o: .16; }
.js .draw.in .f { opacity: var(--o, 1); }
.js .draw.in .dot, .js .draw.in .node { opacity: 1; }

/* Text reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal .ico * { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2.2s var(--ease); transition-delay: calc(var(--d, 0s) + .25s); }
.js .reveal.in .ico * { stroke-dashoffset: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .nav-links .lg { display: none; }
  .nav-links .sm { display: inline; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps .track { display: none; }
}

@media (max-width: 860px) {
  .nav { height: 72px; }
  .nav-links { gap: 24px; }

  .hero-grid, .split, .panel { grid-template-columns: minmax(0, 1fr); }
  .hero-art { justify-self: center; max-width: 380px; order: 2; }
  .grid-3, .cards, .cards.two, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .path-links { grid-template-columns: 1fr; }
  .path-links a + a { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .path-links a:first-child { padding-right: 0; }
  .split .media { order: -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav { height: auto; grid-template-columns: 1fr auto; grid-template-areas: "logo cta" "links links"; row-gap: 8px; padding: 12px var(--gutter) 8px; }
  .nav .wordmark { grid-area: logo; }
  .nav-cta { grid-area: cta; }
  .nav-links { grid-area: links; width: 100%; justify-content: space-between; gap: 10px; }
  .nav-links a { font-size: .875rem; }
  .btn.btn-sm { padding: 9px 14px; }
  html { scroll-padding-top: 110px; }
  .grid-2, .grid-4, .form { grid-template-columns: minmax(0, 1fr); }
  .form .full { grid-column: auto; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .switch { display: grid; width: 100%; }
  .switch label { padding: 12px 6px; font-size: .875rem; }
  .switch .lg { display: none; }
  .switch .sm { display: inline; }
  .hero { padding-top: 156px; }
  .hero-art { max-width: 300px; }
  .btn { padding: 16px 26px; }
  .sub-head { flex-direction: column; gap: 12px; }
  .promise { flex-direction: column; gap: 12px; }
  .faq details p { padding-right: 0; }
  .ph.short { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .draw .l { stroke-dashoffset: 0; }
  .js .draw .f { opacity: var(--o, 1); }
  .js .draw .dot, .js .draw .node, .js .reveal { opacity: 1; transform: none; }
  .js .reveal .ico *, .panel .ico * { stroke-dashoffset: 0; }
  .art .mover { display: none; }
}
