/* ==========================================================================
   BuiltByAro — stylesheet
   Navy + muted burnt orange on warm off-white. Friendly, mobile-first.
   ========================================================================== */

:root {
  /* Colour */
  --navy-950: #0b1730;
  --navy-900: #10213f;
  --navy-800: #17305a;
  --navy-700: #22406f;
  --navy-200: #c9d3e4;
  --navy-100: #e6ecf5;
  --navy-50: #f2f5fa;
  --orange: #e0793a;          /* buttons, accents (navy text on it = 5.3:1) */
  --orange-hover: #ea8b51;
  --orange-deep: #b2541b;     /* orange text on light backgrounds (4.7:1+) */
  --orange-soft: #fbe9dc;
  --cream: #fbf8f4;
  --sand: #f3ede4;
  --white: #ffffff;
  --text: #10213f;
  --muted: #4a5874;
  --on-navy: #eef2f8;
  --on-navy-muted: #b5c1d6;
  --line: rgba(16, 33, 63, 0.12);
  --line-strong: rgba(16, 33, 63, 0.24);
  --line-navy: rgba(238, 242, 248, 0.14);
  --success: #1d7a4e;
  --error: #b42318;

  /* Type */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-sm: 0.875rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.4vw, 3.3rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 4.2vw, 5rem);

  /* Space */
  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-5: 3rem; --s-6: 4rem; --s-7: 6rem;
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 74rem;

  /* Shape & depth */
  --r-lg: 24px;
  --r: 18px;
  --r-sm: 12px;
  --shadow-1: 0 1px 2px rgba(16, 33, 63, 0.05), 0 6px 18px rgba(16, 33, 63, 0.06);
  --shadow-2: 0 2px 6px rgba(16, 33, 63, 0.06), 0 22px 50px -12px rgba(16, 33, 63, 0.22);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast: 180ms;
  --dur-med: 400ms;
  --dur-slow: 850ms;

  --z-fab: 30;
  --z-header: 60;
  --z-menu: 50;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--text);
  background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--orange); color: var(--navy-950); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: var(--s-2); top: -100px; z-index: 100; background: var(--navy-900); color: var(--white); padding: 0.75rem 1.25rem; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: var(--s-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--sand { background: var(--sand); --curtain: var(--sand); }
.section--white { background: var(--white); --curtain: var(--white); }
.section--navy { background: var(--navy-900); color: var(--on-navy); --curtain: var(--navy-900); }
.section--navy p { color: var(--on-navy-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.9rem 0.4rem 0.5rem; border-radius: 999px;
  background: var(--orange-soft); color: var(--orange-deep); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.02em;
}
.eyebrow::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--orange); margin-left: 0.35rem; }
.section--navy .eyebrow { background: rgba(224, 121, 58, 0.14); color: var(--orange); }

.section-head { max-width: 46rem; margin-bottom: var(--s-6); }
.section-head h2 { font-size: var(--fs-h2); margin-top: var(--s-2); }
.section-head p { margin-top: var(--s-3); font-size: var(--fs-lg); color: var(--muted); }
.section--navy .section-head p { color: var(--on-navy-muted); }
.section-head--center { margin-inline: auto; text-align: center; }

.accent { color: var(--orange-deep); }
.section--navy .accent, .page-hero .accent, .cta-band .accent { color: var(--orange); }

/* hand-drawn underline on a key phrase */
.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble svg { position: absolute; left: -2%; bottom: -0.18em; width: 104%; height: 0.42em; overflow: visible; color: var(--orange); pointer-events: none; }
.scribble path { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--orange); --btn-fg: var(--navy-950); --btn-hover: var(--orange-hover);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3.25rem; padding: 0.85rem 1.55rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; font-size: 1rem; line-height: 1.2;
  touch-action: manipulation;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 16px -8px rgba(178, 84, 27, 0.55);
  transition: background-color var(--dur-fast), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.btn:hover { background: var(--btn-hover); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 26px -12px rgba(178, 84, 27, 0.65); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn .arrow { transition: transform var(--dur-med) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--navy { --btn-bg: var(--navy-900); --btn-fg: var(--white); --btn-hover: var(--navy-800); box-shadow: 0 6px 16px -8px rgba(16, 33, 63, 0.6); }
.btn--navy:hover { box-shadow: 0 14px 26px -12px rgba(16, 33, 63, 0.7); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--text); --btn-hover: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--navy-900), 0 10px 20px -14px rgba(16, 33, 63, 0.5); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--on-navy); --btn-hover: rgba(238, 242, 248, 0.08); box-shadow: inset 0 0 0 1.5px var(--line-navy); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--on-navy); }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { pointer-events: none; opacity: 0.75; }
.btn .spinner { display: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; color: var(--orange-deep);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 2px;
  transition: background-size var(--dur-med) var(--ease-out);
}
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow svg { width: 1rem; height: 1rem; transition: transform var(--dur-med) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--navy .link-arrow { color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  transition: background-color var(--dur-med), box-shadow var(--dur-med), transform var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled { background: rgba(251, 248, 244, 0.86); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); height: 5rem; transition: height var(--dur-med) var(--ease-out); }
.is-scrolled .header-inner { height: 4.25rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.04em; color: var(--navy-900); }
.brand-mark { width: 2.5rem; height: 2.5rem; flex: none; }
.brand-mark .bg { fill: var(--navy-900); }
.brand-mark .l, .brand-mark .r, .brand-mark .x { fill: none; stroke-linecap: round; }
.brand-mark .l { stroke: #fff; stroke-width: 10; }
.brand-mark .r { stroke: var(--orange); stroke-width: 10; }
.brand-mark .x { stroke: #fff; stroke-width: 7.5; }
.brand .brand-aro { color: var(--orange-deep); }
.brand--light { color: var(--white); }
.brand--light .brand-aro { color: var(--orange); }
.brand--light .brand-mark .bg { fill: var(--navy-700); }

.nav-list { display: none; }
.nav-cta { display: none; }
.nav-toggle { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); }
.nav-toggle-bars { position: relative; width: 1.2rem; height: 0.75rem; }
.nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur-med) var(--ease-out), top var(--dur-med) var(--ease-out), opacity var(--dur-fast); }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: calc(50% - 1px); }
.nav-toggle-bars span:nth-child(3) { top: calc(100% - 2px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: calc(50% - 1px); transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--cream);
  display: flex; flex-direction: column; padding: 6.5rem var(--gutter) var(--s-5);
  clip-path: circle(0% at calc(100% - 2.6rem) 2.5rem); visibility: hidden;
  transition: clip-path 650ms var(--ease-in-out), visibility 0s linear 650ms;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 2.6rem) 2.5rem); visibility: visible; transition: clip-path 650ms var(--ease-in-out), visibility 0s; }
.mobile-menu ul { display: grid; gap: 0.15rem; }
.mobile-menu li { overflow: hidden; }
.mobile-menu .m-link {
  display: flex; align-items: center; justify-content: space-between; padding-block: 0.7rem; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 8vw, 2.6rem); letter-spacing: -0.03em;
  transform: translateY(110%); transition: transform 650ms var(--ease-out), color var(--dur-fast); transition-delay: calc(150ms + var(--i, 0) * 55ms);
}
.mobile-menu .m-link svg { width: 1.5rem; height: 1.5rem; color: var(--orange-deep); }
.mobile-menu.is-open .m-link { transform: none; }
.mobile-menu .m-link[aria-current="page"] { color: var(--orange-deep); }
.mobile-menu-foot { margin-top: auto; opacity: 0; transition: opacity 400ms var(--ease-out) 450ms; }
.mobile-menu.is-open .mobile-menu-foot { opacity: 1; }
body.menu-open { overflow: hidden; }
.menu-open .site-header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

@media (min-width: 62em) {
  .nav-toggle, .mobile-menu { display: none; }
  .nav-list { display: flex; gap: 0.2rem; padding: 0.3rem; border-radius: 999px; background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px var(--line); list-style: none; }
  .nav-list a { display: inline-block; padding: 0.5rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: var(--muted); transition: color var(--dur-fast), background-color var(--dur-fast); }
  .nav-list a:hover { color: var(--text); background: var(--navy-50); }
  .nav-list a[aria-current="page"] { color: var(--white); background: var(--navy-900); }
  .nav-cta { display: inline-flex; min-height: 2.9rem; padding: 0.65rem 1.25rem; font-size: 0.95rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(7.5rem, 6rem + 5vw, 10rem); padding-bottom: clamp(4rem, 3rem + 4vw, 6.5rem); overflow: hidden; isolation: isolate; }
.hero::before { /* soft blobs */
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(38rem 30rem at 85% 20%, rgba(224, 121, 58, 0.16), transparent 70%),
    radial-gradient(40rem 34rem at 10% 90%, rgba(34, 64, 111, 0.10), transparent 70%);
}
.hero::after { /* dotted grid */
  content: ""; position: absolute; z-index: -1; inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(16, 33, 63, 0.12) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.hero-grid { display: grid; gap: var(--s-6); align-items: center; }
.hero h1 { font-size: var(--fs-h1); margin-top: var(--s-3); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero h1 .w > span { display: inline-block; }
.hero-lede { margin-top: var(--s-3); max-width: 34rem; font-size: var(--fs-lg); color: var(--muted); }
.hero .btn-row { margin-top: var(--s-4); }
.ticks { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; list-style: none; padding: 0; font-weight: 600; font-size: 0.95rem; }
.ticks li { display: inline-flex; align-items: center; gap: 0.5rem; }
.ticks .tick { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--white); flex: none; }
.ticks .tick svg { width: 0.85rem; height: 0.85rem; }

/* Hero device composition */
.devices { position: relative; width: 100%; max-width: 38rem; margin-inline: auto; padding: 0 0 2.5rem 0; }
.browser { position: relative; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 0.4rem; height: 2.1rem; padding-inline: 0.85rem; background: var(--navy-50); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--navy-200); }
.browser-bar i:first-child { background: #f0a37a; }
.browser-bar .url { margin-left: 0.6rem; flex: 1; height: 1.15rem; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.68rem; line-height: 1.15rem; padding-inline: 0.6rem; color: var(--muted); overflow: hidden; white-space: nowrap; }
.browser-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--white); }
.browser-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Wireframe that "builds" before the real site appears */
.wire { position: absolute; inset: 0; padding: 7% 7%; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto 1fr; gap: 6% 7%; background: var(--white); }
.wire span { display: block; border-radius: 6px; background: var(--navy-100); transform-origin: left center; }
.wire .w-nav { grid-column: 1 / -1; height: 7%; min-height: 10px; display: flex; gap: 4%; background: none; }
.wire .w-nav b { display: block; height: 100%; flex: 0 0 14%; border-radius: 4px; background: var(--navy-100); }
.wire .w-nav b:first-child { flex-basis: 22%; background: var(--navy-900); }
.wire .w-nav b:last-child { margin-left: auto; background: var(--orange); }
.wire .w-text { display: grid; gap: 9%; align-content: start; background: none; }
.wire .w-text b { display: block; height: 0.9rem; border-radius: 4px; background: var(--navy-900); }
.wire .w-text b:nth-child(2) { width: 80%; }
.wire .w-text b:nth-child(3) { width: 90%; height: 0.45rem; background: var(--navy-200); margin-top: 6%; }
.wire .w-text b:nth-child(4) { width: 70%; height: 0.45rem; background: var(--navy-200); }
.wire .w-text b:nth-child(5) { width: 42%; height: 1.15rem; border-radius: 999px; background: var(--orange); margin-top: 8%; }
.wire .w-img { grid-row: span 2; border-radius: 10px; background: linear-gradient(135deg, var(--navy-100), var(--navy-200)); }
.wire .w-cards { grid-column: 1 / 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8%; background: none; align-self: end; height: 60%; }
.wire .w-cards b { display: block; border-radius: 6px; background: var(--sand); }

.phone {
  position: absolute; right: -0.5rem; bottom: 0; width: 30%; aspect-ratio: 390 / 844; max-height: 115%;
  border-radius: 1.6rem; padding: 0.4rem; background: var(--navy-950); box-shadow: 0 30px 60px -20px rgba(11, 23, 48, 0.55);
}
.phone::before { content: ""; position: absolute; top: 0.85rem; left: 50%; width: 26%; height: 0.32rem; border-radius: 999px; background: #000; transform: translateX(-50%); z-index: 2; opacity: 0.8; }
.phone-screen { width: 100%; height: 100%; border-radius: 1.25rem; overflow: hidden; background: #15120f; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.9rem 0.55rem 0.55rem;
  border-radius: 999px; background: var(--white); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); font-weight: 700; font-size: 0.82rem; white-space: nowrap;
}
.chip .ci { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-deep); }
.chip .ci svg { width: 0.95rem; height: 0.95rem; }
.chip--a { left: -0.75rem; top: 18%; }
.chip--b { left: 12%; bottom: 0.25rem; }
.chip--c { right: 22%; top: -1rem; }
@media (max-width: 30em) { .chip--c { display: none; } .chip { font-size: 0.75rem; } }

@media (min-width: 62em) {
  .hero { min-height: min(100svh, 58rem); display: flex; align-items: center; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: var(--s-5); }
}

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding-top: clamp(8rem, 6rem + 5vw, 10.5rem); padding-bottom: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); background: var(--navy-900); color: var(--on-navy); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 46rem; height: 46rem; right: -14rem; top: -24rem; background: radial-gradient(closest-side, rgba(224, 121, 58, 0.28), transparent 70%); }
.page-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: 0.6; background-image: radial-gradient(rgba(238, 242, 248, 0.09) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.page-hero .eyebrow { background: rgba(224, 121, 58, 0.16); color: var(--orange); }
.page-hero h1 { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4.2rem); margin-top: var(--s-3); max-width: 20ch; font-weight: 800; }
.page-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.page-hero h1 .w > span { display: inline-block; }
.page-hero p { margin-top: var(--s-3); max-width: 40rem; font-size: var(--fs-lg); color: var(--on-navy-muted); }
.page-hero .header-shim { display: none; }
/* Header sits on a navy hero on inner pages until scrolled */
.on-navy .site-header:not(.is-scrolled) .brand { color: var(--white); }
.on-navy .site-header:not(.is-scrolled) .brand .brand-aro { color: var(--orange); }
.on-navy .site-header:not(.is-scrolled) .brand-mark .bg { fill: var(--navy-700); }
.on-navy .site-header:not(.is-scrolled) .nav-toggle { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-navy); }
.on-navy.menu-open .site-header .brand { color: var(--navy-900); }
.on-navy.menu-open .site-header .brand .brand-aro { color: var(--orange-deep); }
.on-navy.menu-open .site-header .brand-mark .bg { fill: var(--navy-900); }
.on-navy.menu-open .site-header .nav-toggle { background: var(--white); color: var(--navy-900); }

/* ---------- Pain points ---------- */
.pains { display: grid; gap: var(--s-3); }
@media (min-width: 48em) { .pains { grid-template-columns: repeat(3, 1fr); } }
.pain { padding: var(--s-4); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-1); }
.pain .p-icon { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-800); }
.pain .p-icon svg { width: 1.4rem; height: 1.4rem; }
.pain h3 { font-size: var(--fs-xl); margin-top: var(--s-3); }
.pain p { margin-top: 0.5rem; color: var(--muted); }
.pain-answer { margin-top: var(--s-5); text-align: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.02em; }

/* ---------- ARO method ---------- */
.aro { display: grid; gap: var(--s-3); counter-reset: aro; }
@media (min-width: 56em) { .aro { grid-template-columns: repeat(3, 1fr); } }
.aro-card { position: relative; padding: var(--s-4); border-radius: var(--r-lg); background: var(--navy-800); box-shadow: inset 0 0 0 1px var(--line-navy); overflow: hidden; isolation: isolate; transition: transform var(--dur-med) var(--ease-out), background-color var(--dur-med); }
.aro-card:hover { transform: translateY(-4px); background: #1b3766; }
.aro-letter {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 4rem + 4vw, 7.5rem); line-height: 0.85; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 2px rgba(224, 121, 58, 0.65);
  background: linear-gradient(0deg, var(--orange) 0 50%, transparent 50% 100%) 0 0 / 100% 200% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  transition: background-position 1.3s var(--ease-in-out); transition-delay: calc(300ms + var(--i, 0) * 180ms);
}
.aro-card.is-in .aro-letter { background-position: 0 100%; }
.no-js .aro-letter, .aro-card:not([data-reveal]) .aro-letter { background-position: 0 100%; }
.aro-card h3 { margin-top: var(--s-3); font-size: var(--fs-h3); color: var(--white); }
.aro-card > p { margin-top: 0.6rem; }
.aro-card ul { margin-top: var(--s-3); display: grid; gap: 0.55rem; list-style: none; padding: 0; color: var(--on-navy); font-weight: 500; }
.aro-card li { display: flex; gap: 0.6rem; align-items: flex-start; }
.aro-card li svg { width: 1.2rem; height: 1.2rem; color: var(--orange); flex: none; margin-top: 0.2rem; }

/* ---------- Case study teaser ---------- */
.case { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 60em) { .case { grid-template-columns: 1.15fr 1fr; gap: var(--s-6); } }
.case-visual { position: relative; padding: 0 0 3rem 0; }
.case-visual .phone { width: 27%; right: -0.25rem; }
.case-body h2 { font-size: var(--fs-h2); margin-top: var(--s-2); }
.case-body > p { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-lg); }
.case-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--s-3); list-style: none; padding: 0; }
.case-tags li { padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.85rem; font-weight: 600; }
.case-list { margin-top: var(--s-4); display: grid; gap: 0.8rem; list-style: none; padding: 0; }
.case-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.case-list .tick { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-deep); flex: none; margin-top: 0.1rem; }
.case-list .tick svg { width: 0.9rem; height: 0.9rem; }
.case-body .btn-row { margin-top: var(--s-5); }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: var(--s-3); align-items: stretch; }
@media (min-width: 60em) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; padding: var(--s-4); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.plan--featured { background: var(--navy-900); color: var(--on-navy); box-shadow: var(--shadow-2); }
.plan--featured:hover { box-shadow: 0 30px 60px -20px rgba(11, 23, 48, 0.6); }
@media (min-width: 60em) { .plan--featured { transform: translateY(-14px); } .plan--featured:hover { transform: translateY(-20px); } }
.plan-badge { position: absolute; top: -0.85rem; left: var(--s-4); padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--orange); color: var(--navy-950); font-weight: 700; font-size: 0.8rem; }
.plan h3 { font-size: var(--fs-h3); }
.plan .plan-for { margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; min-height: 3em; }
.plan--featured .plan-for { color: var(--on-navy-muted); }
.price { display: flex; align-items: baseline; gap: 0.4rem; margin-top: var(--s-3); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.price .from { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.plan--featured .price .from, .plan--featured .price .unit { color: var(--on-navy-muted); }
.price strong { font-size: clamp(2.4rem, 2rem + 1.5vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price .unit { font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); }
.upfront { margin-top: 0.6rem; font-size: 0.88rem; color: var(--muted); }
.upfront .zero { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--orange-soft); color: var(--orange-deep); font-weight: 700; }
.plan--featured .upfront { color: var(--on-navy-muted); }
.plan--featured .upfront .zero { background: rgba(224, 121, 58, 0.18); color: var(--orange); }
.care-alt { font-size: 0.95rem; color: var(--muted); max-width: 17rem; }
.care-alt strong { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 0.2rem; }
.plan ul { margin-top: var(--s-4); display: grid; gap: 0.65rem; list-style: none; padding: 0; font-size: 0.97rem; flex: 1; }
.plan li { display: flex; gap: 0.6rem; align-items: flex-start; }
.plan li svg { width: 1.15rem; height: 1.15rem; color: var(--orange-deep); flex: none; margin-top: 0.22rem; }
.plan--featured li svg { color: var(--orange); }
.plan .btn { margin-top: var(--s-4); }

.care { margin-top: var(--s-5); display: grid; gap: var(--s-4); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-radius: var(--r-lg); background: var(--orange-soft); box-shadow: inset 0 0 0 1px rgba(178, 84, 27, 0.18); }
@media (min-width: 56em) { .care { grid-template-columns: 1fr 1.3fr auto; align-items: center; } }
.care h3 { font-size: var(--fs-h3); }
.care p { margin-top: 0.4rem; color: var(--muted); }
.care ul { display: grid; gap: 0.5rem 1.5rem; list-style: none; padding: 0; font-weight: 600; font-size: 0.95rem; }
@media (min-width: 36em) { .care ul { grid-template-columns: 1fr 1fr; } }
.care li { display: flex; gap: 0.5rem; align-items: flex-start; }
.care li svg { width: 1.1rem; height: 1.1rem; color: var(--orange-deep); flex: none; margin-top: 0.22rem; }
.care .price { margin-top: 0; }
.price-note { margin-top: var(--s-3); font-size: 0.9rem; color: var(--muted); text-align: center; }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; gap: var(--s-4); list-style: none; padding: 0; }
@media (min-width: 56em) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-3); } }
.step { position: relative; padding: var(--s-4) var(--s-3) var(--s-3); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-1); }
.step-num { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--navy-900); color: var(--white); font-family: var(--font-display); font-weight: 800; }
.step h3 { margin-top: var(--s-2); font-size: var(--fs-xl); }
.step p { margin-top: 0.4rem; color: var(--muted); font-size: 0.97rem; }
.steps-track { display: none; }
@media (min-width: 56em) {
  .steps-track { display: block; position: absolute; left: 2.6rem; right: 2.6rem; top: 3.3rem; height: 2px; background: var(--line); z-index: 0; }
  .steps-track::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-in-out) 300ms; }
  .steps.is-in .steps-track::after { transform: scaleX(1); }
  .step { z-index: 1; background: transparent; box-shadow: none; padding: 0; }
  .step-num { box-shadow: 0 0 0 8px var(--cream); }
  .section--white .step-num { box-shadow: 0 0 0 8px var(--white); }
}

/* ---------- Service detail ---------- */
.svc-block { display: grid; gap: var(--s-4); padding-block: var(--s-6); border-top: 1px solid var(--line); }
.svc-block:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 56em) { .svc-block { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-6); } }
.svc-letter { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 3rem + 4vw, 6.5rem); line-height: 0.85; color: var(--orange); letter-spacing: -0.05em; }
.svc-head h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin-top: var(--s-2); }
.svc-head p { margin-top: var(--s-2); color: var(--muted); font-size: var(--fs-lg); }
.svc-items { display: grid; gap: var(--s-3); }
@media (min-width: 40em) { .svc-items { grid-template-columns: 1fr 1fr; } }
.svc-item { padding: var(--s-3); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-1); transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); }
.svc-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.svc-item .p-icon { width: 2.75rem; height: 2.75rem; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-deep); }
.svc-item .p-icon svg { width: 1.3rem; height: 1.3rem; }
.svc-item h3 { margin-top: var(--s-2); font-size: 1.2rem; }
.svc-item p { margin-top: 0.4rem; color: var(--muted); font-size: 0.97rem; }

.who { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; list-style: none; padding: 0; }
.who li { padding: 0.6rem 1.1rem; border-radius: 999px; background: var(--navy-800); box-shadow: inset 0 0 0 1px var(--line-navy); font-weight: 600; color: var(--on-navy); }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq details { border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-1); overflow: hidden; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 1.15rem 1.4rem; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; min-height: 3.5rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--navy-50); flex: none; transition: background-color var(--dur-fast), transform var(--dur-med) var(--ease-out); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.75rem; height: 2px; background: var(--navy-900); border-radius: 2px; transform: translate(-50%, -50%); transition: transform var(--dur-med) var(--ease-out); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .pm { background: var(--orange); transform: rotate(180deg); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover .pm { background: var(--orange-soft); }
.faq .faq-a { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.faq details[open] .faq-a { animation: fadeUp 450ms var(--ease-out); }

/* ---------- Case study page ---------- */
.cs-facts { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
@media (min-width: 48em) { .cs-facts { grid-template-columns: repeat(4, 1fr); } }
.cs-facts div { padding-top: var(--s-2); border-top: 1px solid var(--line-navy); }
.cs-facts dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.cs-facts dd { margin: 0.35rem 0 0; color: var(--on-navy); font-weight: 600; }
.cs-shot { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-2), 0 0 0 1px var(--line); background: var(--white); }
.cs-grid { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 56em) { .cs-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
.cs-grid h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); margin-top: var(--s-2); }
.cs-grid p { margin-top: var(--s-2); color: var(--muted); }
.cs-mobile-row { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 56em) { .cs-mobile-row { grid-template-columns: 0.6fr 1fr; gap: var(--s-6); } }
.cs-mobile-row .phone { position: relative; right: auto; bottom: auto; width: min(18rem, 70%); margin-inline: auto; max-height: none; }

.next-card { display: grid; gap: var(--s-3); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-1), inset 0 0 0 2px dashed; box-shadow: var(--shadow-1); border: 2px dashed var(--line-strong); text-align: center; justify-items: center; }
.next-card h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
.next-card p { color: var(--muted); max-width: 36rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s-5); }
@media (min-width: 60em) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-6); align-items: start; } }
.contact-side h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); }
.contact-side > p { margin-top: var(--s-2); color: var(--muted); font-size: var(--fs-lg); }
.expect { margin-top: var(--s-4); display: grid; gap: var(--s-3); list-style: none; padding: 0; counter-reset: ex; }
.expect li { display: grid; grid-template-columns: 2.4rem 1fr; gap: var(--s-2); counter-increment: ex; }
.expect li::before { content: counter(ex); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--orange-soft); color: var(--orange-deep); font-weight: 800; font-family: var(--font-display); }
.expect strong { display: block; }
.expect span { color: var(--muted); font-size: 0.97rem; }

.form-card { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.form-card h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.form-card > p { margin-top: 0.4rem; color: var(--muted); }
.form-grid { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
@media (min-width: 40em) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label, .field legend { font-weight: 700; font-size: 0.95rem; padding: 0; }
.field .req { color: var(--orange-deep); }
.field .hint { font-size: 0.87rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.1rem; padding: 0.75rem 1rem; border-radius: var(--r-sm); font-size: 1rem;
  background: var(--cream); border: 1.5px solid var(--line); transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(224, 121, 58, 0.25); }
.field [aria-invalid="true"] { border-color: var(--error); background: #fff8f7; }
.field .error { display: none; align-items: center; gap: 0.4rem; font-size: 0.88rem; font-weight: 600; color: var(--error); }
.field .error.is-visible { display: flex; }
.field .error svg { width: 1rem; height: 1rem; flex: none; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.15rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1rem; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 0.93rem; cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast); }
.choice span:hover { box-shadow: inset 0 0 0 1.5px var(--navy-700); }
.choice input:checked + span { background: var(--navy-900); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--navy-900); }
.choice input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.form-actions { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.form-note { font-size: 0.87rem; color: var(--muted); }
.form-alert { display: none; margin-top: var(--s-3); padding: 1rem 1.2rem; border-radius: var(--r-sm); font-weight: 600; gap: 0.6rem; align-items: flex-start; }
.form-alert svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: 0.15rem; }
.form-alert.is-visible { display: flex; }
.form-alert--error { background: #fdecea; color: var(--error); }
.form-success { display: none; text-align: center; padding: var(--s-5) var(--s-2); }
.form-success.is-visible { display: block; animation: fadeUp 600ms var(--ease-out); }
.form-success .big-tick { width: 4.5rem; height: 4.5rem; margin: 0 auto var(--s-3); border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-deep); }
.form-success .big-tick svg { width: 2.2rem; height: 2.2rem; }
.form-success .big-tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawStroke 700ms var(--ease-out) 250ms forwards; }
.form-success h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.form-success p { margin-top: 0.6rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding-block: clamp(2rem, 1rem + 3vw, 4rem); }
.cta-card { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: var(--s-4); padding: clamp(2rem, 1.2rem + 3.5vw, 4.5rem); border-radius: calc(var(--r-lg) + 8px); background: var(--navy-900); color: var(--on-navy); }
.cta-card::before { content: ""; position: absolute; z-index: -1; width: 40rem; height: 40rem; right: -12rem; bottom: -22rem; background: radial-gradient(closest-side, rgba(224, 121, 58, 0.35), transparent 70%); }
.cta-card::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: 0.5; background-image: radial-gradient(rgba(238, 242, 248, 0.08) 1px, transparent 1px); background-size: 24px 24px; }
.cta-card h2 { font-size: var(--fs-h2); max-width: 18ch; color: var(--white); }
.cta-card p { color: var(--on-navy-muted); font-size: var(--fs-lg); max-width: 34rem; }
@media (min-width: 56em) { .cta-card { grid-template-columns: 1.4fr auto; align-items: end; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-navy-muted); padding-top: var(--s-7); margin-top: var(--section); font-size: 0.95rem; }
.cta-band + .site-footer, .no-gap + .site-footer { margin-top: 0; }
.footer-grid { display: grid; gap: var(--s-5); }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-about p { margin-top: var(--s-3); max-width: 28rem; }
.footer-aro { margin-top: var(--s-3); display: flex; gap: 1.2rem; font-weight: 700; color: var(--on-navy); font-size: 0.9rem; }
.footer-aro b { color: var(--orange); }
.footer-col h2 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.footer-col ul { margin-top: var(--s-2); display: grid; gap: 0.5rem; list-style: none; padding: 0; }
.footer-col a { transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { margin-top: var(--s-6); padding-block: var(--s-3); border-top: 1px solid var(--line-navy); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); font-size: 0.87rem; }
.footer-bottom a:hover { color: var(--orange); }

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes popIn { 0% { opacity: 0; transform: translateY(10px) scale(0.85); } 100% { opacity: 1; transform: none; } }
@keyframes slideUpIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes revealSite { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes barUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Logo: the A draws itself on load */
.js .site-header .brand-mark .l, .js .site-header .brand-mark .r { stroke-dasharray: 42; stroke-dashoffset: 42; animation: drawStroke 650ms var(--ease-out) forwards; }
.js .site-header .brand-mark .l { animation-delay: 150ms; }
.js .site-header .brand-mark .r { animation-delay: 380ms; }
.js .site-header .brand-mark .x { stroke-dasharray: 16; stroke-dashoffset: 16; animation: drawStroke 400ms var(--ease-out) 700ms forwards; }

/* Headline words rise */
.js .hero h1 .w > span, .js .page-hero h1 .w > span { transform: translateY(110%); animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(120ms + var(--i, 0) * 70ms); }
.js [data-load] { opacity: 0; animation: fadeUp 800ms var(--ease-out) forwards; animation-delay: calc(450ms + var(--i, 0) * 100ms); }
.js .scribble path { stroke-dasharray: 340; stroke-dashoffset: 340; animation: drawStroke 1.1s var(--ease-in-out) 1.1s forwards; }

/* Hero: the website "builds" itself */
.js .hero .browser { animation: slideUpIn 900ms var(--ease-out) 200ms both; }
.js .hero .wire .w-nav b, .js .hero .wire .w-text b, .js .hero .wire .w-img, .js .hero .wire .w-cards b { transform-origin: left center; animation: growX 600ms var(--ease-out) both; }
.js .hero .wire .w-nav b:nth-child(1) { animation-delay: 600ms; }
.js .hero .wire .w-nav b:nth-child(2) { animation-delay: 680ms; }
.js .hero .wire .w-nav b:nth-child(3) { animation-delay: 740ms; }
.js .hero .wire .w-nav b:nth-child(4) { animation-delay: 800ms; }
.js .hero .wire .w-text b:nth-child(1) { animation-delay: 850ms; }
.js .hero .wire .w-text b:nth-child(2) { animation-delay: 930ms; }
.js .hero .wire .w-text b:nth-child(3) { animation-delay: 1010ms; }
.js .hero .wire .w-text b:nth-child(4) { animation-delay: 1070ms; }
.js .hero .wire .w-text b:nth-child(5) { animation-delay: 1150ms; animation-name: popIn; }
.js .hero .wire .w-img { animation: popIn 700ms var(--ease-spring) 950ms both; transform-origin: center; }
.js .hero .wire .w-cards b:nth-child(1) { animation-delay: 1200ms; }
.js .hero .wire .w-cards b:nth-child(2) { animation-delay: 1260ms; }
.js .hero .wire .w-cards b:nth-child(3) { animation-delay: 1320ms; }
.js .hero .browser-screen > img { animation: revealSite 900ms var(--ease-out) 2000ms both; }
.js .hero .wire { animation: fadeOut 500ms var(--ease-out) 2300ms forwards; }
.hero .browser-screen > img { z-index: 1; }
.js .hero .browser-screen > img { z-index: 1; }
.hero .wire { z-index: 0; }
.js .hero .phone { animation: slideUpIn 900ms var(--ease-out) 2300ms both; }
.js .hero .chip { animation: popIn 600ms var(--ease-spring) both, bob 4s var(--ease-in-out) 3.4s 2; }
.js .hero .chip--a { animation-delay: 2700ms, 3400ms; }
.js .hero .chip--b { animation-delay: 2850ms, 3800ms; }
.js .hero .chip--c { animation-delay: 3000ms, 4200ms; }

/* Scroll reveals */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: translateY(30px) scale(0.96); }
.js [data-reveal="scale"].is-in { transform: none; }
.js .plan[data-reveal].is-in:hover { transform: translateY(-6px); transition-delay: 0s; transition-duration: var(--dur-med); }
@media (min-width: 60em) {
  .js .plan--featured[data-reveal].is-in { transform: translateY(-14px); }
  .js .plan--featured[data-reveal].is-in:hover { transform: translateY(-20px); }
}
.js .aro-card[data-reveal].is-in:hover, .js .svc-item[data-reveal].is-in:hover { transition-delay: 0s; transition-duration: var(--dur-med); }
.js .aro-card[data-reveal].is-in:hover { transform: translateY(-4px); }
.js .svc-item[data-reveal].is-in:hover { transform: translateY(-3px); }

/* Image curtain (overlay, so IntersectionObserver still sees the element) */
.js [data-reveal="img"] { opacity: 1; transform: none; position: relative; overflow: hidden; }
.js [data-reveal="img"]::after { content: ""; position: absolute; inset: -1px; z-index: 5; pointer-events: none; background: var(--curtain, var(--cream)); transform-origin: right; transition: transform 1.2s var(--ease-in-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="img"].is-in::after { transform: scaleX(0); }
.js [data-reveal="img"] img { transform: scale(1.12); transition: transform 1.6s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="img"].is-in img { transform: none; }

/* Reduced motion: final state immediately */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js [data-reveal] img { opacity: 1 !important; transform: none !important; }
  .js [data-reveal="img"]::after { display: none; }
  .aro-letter { background-position: 0 100% !important; }
}

/* ---------- Concept projects ---------- */
.concepts { display: grid; gap: var(--s-4); }
@media (min-width: 56em) { .concepts { grid-template-columns: 1fr 1fr; } }
.concept { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); }
.concept:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.js .concept[data-reveal].is-in:hover { transform: translateY(-6px); transition-delay: 0s; }
.concept-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-50); border-bottom: 1px solid var(--line); }
.concept-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.concept:hover .concept-shot img { transform: scale(1.04); }
.concept-body { display: flex; flex-direction: column; gap: 0.75rem; padding: var(--s-4); flex: 1; }
.concept-body h3 { font-size: var(--fs-h3); }
.concept-body p { color: var(--muted); }
.concept-body .btn-row { margin-top: auto; padding-top: var(--s-2); }
.concept-tag { align-self: flex-start; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--navy-50); color: var(--navy-700); font-size: 0.8rem; font-weight: 700; }
.concept-note { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: var(--r); background: var(--orange-soft); color: var(--text); font-size: 0.95rem; }
.concept-note svg { width: 1.25rem; height: 1.25rem; color: var(--orange-deep); flex: none; margin-top: 0.15rem; }
.cs-meta { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 1.25rem; }
.cs-meta dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-deep); }
.cs-meta dd { margin: 0.2rem 0 0; font-weight: 600; }
.cs-pair { display: grid; gap: var(--s-4); align-items: center; }
@media (min-width: 56em) { .cs-pair { grid-template-columns: 1fr 15rem; gap: var(--s-5); } }
.cs-pair .phone { position: relative; right: auto; bottom: auto; width: min(15rem, 70vw); margin-inline: auto; max-height: none; }
