/* =========================================================
   reMARKable Design Studio: web design & SEO management
   ========================================================= */

/* ---------- Fonts (self-hosted variable fonts) ---------- */
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("../fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  interpolate-size: allow-keywords;

  --paper: #fbf8f2;
  --paper-2: #f3eee3;
  --white: #ffffff;
  --ink: #0e2236;
  --ink-2: #2b3e52;
  --muted: #566476;
  --line: rgba(14, 34, 54, 0.12);

  --navy: #0e2236;
  --navy-2: #15304d;
  --navy-deep: #081726;
  --cream: #f6f1e7;
  --muted-light: rgba(246, 241, 231, 0.66);
  --line-light: rgba(246, 241, 231, 0.12);

  --gold: #c8902f;
  --gold-bright: #ecc373;
  --gold-text: #9a6514;

  --gold-on-paper: linear-gradient(100deg, #8f5d12 0%, #a8741f 45%, #9a6514 100%);
  --gold-on-navy: linear-gradient(100deg, #c8902f 0%, #f2cf86 45%, #d9a447 100%);
  --mark-gradient: linear-gradient(100deg, #0e2236 0%, #1d3a5a 20%, #a8741f 42%, #e2b25e 52%, #b37a26 64%, #0e2236 86%, #0e2236 100%);
  --mark-gradient-light: linear-gradient(100deg, #f6f1e7 0%, #f6f1e7 18%, #c8902f 40%, #f6d99a 52%, #d39a3c 64%, #f6f1e7 86%, #f6f1e7 100%);

  --font-display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4.4vw, 64px);
  --maxw: 1320px;
  --header-h: 100px;
  --header-h-scrolled: 78px;
  --logo-h: 74px;
  --logo-h-scrolled: 58px;
  --logo-scale: 1.276; /* logo-h / logo-h-scrolled */
  --radius-lg: clamp(20px, 2.2vw, 30px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-soft: 0 1px 2px rgba(14, 34, 54, 0.04), 0 18px 40px -24px rgba(14, 34, 54, 0.28);
  --shadow-lift: 0 2px 4px rgba(14, 34, 54, 0.05), 0 40px 70px -30px rgba(14, 34, 54, 0.38);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h-scrolled); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--gold-bright); color: var(--navy-deep); }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 4px; border-radius: 6px; }
.ready :focus-visible, .svc--seo :focus-visible, .explainer :focus-visible, .cta :focus-visible,
.site-footer :focus-visible, .site-header.is-dark :focus-visible { outline-color: var(--gold-bright); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--navy); color: var(--cream); font-weight: 600; font-size: 14px;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow--light { color: var(--muted-light); }
.eyebrow__tick {
  width: 16px; height: 16px; flex: none;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 13.5 9.5 19 20.5 5.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 13.5 9.5 19 20.5 5.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4.6vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-lede { color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); max-width: 560px; text-wrap: pretty; }
.text-gold {
  font-weight: 500;
  background: var(--gold-on-paper);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ready .text-gold,
.cta .text-gold { background-image: var(--gold-on-navy); }

.section-head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(44px, 5vw, 72px); }
.services .section-head { max-width: 1000px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split {
  max-width: none;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px 48px;
}

/* The brand device: MARK set like the logo */
.mark-word {
  position: relative;
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.005em;
  background: var(--mark-gradient);
  background-size: 220% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s var(--ease-io) 1.6s 2 alternate; /* sweep across and back, then rest */
}
.mark-word--light { background-image: var(--mark-gradient-light); }
@keyframes shimmer {
  0%, 20% { background-position: 0% 0; }
  80%, 100% { background-position: 100% 0; }
}
.splash { position: absolute; right: -0.28em; top: -0.18em; width: 0.6em; height: 0.6em; pointer-events: none; }
.splash i {
  position: absolute; border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  animation: pop 0.6s var(--ease) forwards;
}
.splash i:nth-child(1) { width: 0.11em; height: 0.11em; left: 10%; top: 60%; animation-delay: 1.2s; }
.splash i:nth-child(2) { width: 0.07em; height: 0.07em; left: 42%; top: 30%; animation-delay: 1.3s; background: var(--navy); }
.splash i:nth-child(3) { width: 0.09em; height: 0.09em; left: 70%; top: 2%; animation-delay: 1.4s; }
.splash i:nth-child(4) { width: 0.05em; height: 0.05em; left: 88%; top: 40%; animation-delay: 1.5s; }
.splash i:nth-child(5) { width: 0.04em; height: 0.04em; left: 30%; top: -6%; animation-delay: 1.55s; background: var(--gold-bright); }
.mark-word--light .splash i:nth-child(2) { background: var(--cream); }
.js .cta .mark-word,
.js .cta .splash i { animation-play-state: paused; }
.js .cta__title.is-visible .mark-word,
.js .cta__title.is-visible .splash i { animation-play-state: running; }
@keyframes pop { to { transform: scale(1); } }

/* Looping animations pause while their section is off-screen ([data-loop]) */
[data-loop].is-offscreen .loop { animation-play-state: paused !important; }

/* Ticks + hand-drawn strokes */
.tick { width: 18px; height: 18px; flex: none; }
.tick path { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.draw { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  min-height: 50px;
  transition: background-color 0.35s var(--ease), color 0.35s, border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { padding: 12px 18px; font-size: 14px; min-height: 44px; }
.btn--primary { background: var(--navy); color: var(--cream); box-shadow: 0 12px 26px -14px rgba(14, 34, 54, 0.7); }
.btn--primary:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(14, 34, 54, 0.22); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--gold {
  color: var(--navy-deep);
  background: var(--gold-on-navy);
  background-size: 160% 100%;
  box-shadow: 0 18px 40px -16px rgba(200, 144, 47, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn--gold:hover { background-position: 100% 0; transform: translateY(-2px); }
.btn--outline-light { color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(246, 241, 231, 0.35); }
.btn--outline-light:hover { box-shadow: inset 0 0 0 1.5px var(--cream); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  width: fit-content;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.45s var(--ease);
}
.link-arrow span { transition: transform 0.35s var(--ease); }
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow:hover span { transform: translateX(4px); }
.inline-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h-scrolled);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled {
  background: rgba(251, 248, 242, 0.95);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 32px; }
.brand { position: relative; display: block; margin-right: auto; }
.brand picture { display: contents; }
/* main.js watches this to know when the page has scrolled past 30px */
.scroll-marker { position: absolute; top: 30px; left: 0; width: 1px; height: 1px; visibility: hidden; pointer-events: none; }
/* At the top of the page the header reads taller (content lower, logo larger); scrolling shrinks it.
   Both states use transforms, so nothing re-lays out while the page scrolls. */
.site-header__inner {
  transform: translateY(calc((var(--header-h) - var(--header-h-scrolled)) / 2));
  transition: transform 0.4s var(--ease);
}
.site-header.is-scrolled .site-header__inner { transform: none; }
.brand__logo {
  display: block; height: var(--logo-h-scrolled); width: auto;
  transform: scale(var(--logo-scale)); transform-origin: left center;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.brand__logo--dark { position: absolute; left: 0; top: 0; opacity: 0; }
.site-header.is-scrolled .brand__logo { transform: none; }
/* Links: a hairline grows from the centre on hover; a gold dot marks the page or section you're on */
.nav { display: flex; gap: clamp(20px, 2.4vw, 34px); }
.nav a {
  position: relative;
  padding: 8px 0;
  font-size: 15px; font-weight: 500; letter-spacing: 0.005em;
  color: var(--ink-2);
  transition: color 0.3s;
}
.nav a::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; border-radius: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.45s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}
.nav a:hover, .nav a.is-active, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::before { transform: scaleX(1); }
.nav a.is-active::after, .nav a[aria-current="page"]::after { transform: scale(1); }

/* A hairline divider, then the quote button: a navy pill with a gold disc carrying the arrow */
.header-rule { width: 1px; height: 22px; background: var(--line); transition: background-color 0.4s; }
.header-cta {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 46px; padding: 5px 5px 5px 20px; border-radius: 999px;
  background: var(--navy); color: var(--cream);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 12px 26px -16px rgba(14, 34, 54, 0.7);
  transition: background-color 0.35s var(--ease), color 0.35s;
}
.header-cta__icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-on-navy); color: var(--navy-deep);
  transition: transform 0.45s var(--ease);
}
.header-cta__icon svg { width: 16px; height: 16px; }
.header-cta:hover { background: var(--navy-2); }
.header-cta:hover .header-cta__icon { transform: rotate(-45deg); }

/* Once the bar has a background, a 2px gold hairline along its bottom edge shows how far down the page you are */
.header-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, #a8741f, #ecc373 60%, #c8902f);
  transform-origin: left; transform: scaleX(0);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .header-progress { animation: header-progress linear both; animation-timeline: scroll(root block); }
  .site-header.is-scrolled .header-progress { opacity: 1; }
  .menu-open .header-progress { opacity: 0; }
}
@keyframes header-progress { to { transform: scaleX(1); } }

/* over the navy sections the header switches to a dark glass version */
.site-header.is-dark.is-scrolled { background: rgba(8, 23, 38, 0.92); border-bottom-color: var(--line-light); }
.site-header.is-dark .brand__logo { opacity: 0; }
.site-header.is-dark .brand__logo--dark { opacity: 1; }
.site-header.is-dark .nav a { color: var(--muted-light); }
.site-header.is-dark .nav a:hover,
.site-header.is-dark .nav a.is-active,
.site-header.is-dark .nav a[aria-current="page"] { color: var(--cream); }
.site-header.is-dark .nav a::before { background: var(--cream); }
.site-header.is-dark .nav a::after { background: var(--gold-bright); }
.site-header.is-dark .header-rule { background: var(--line-light); }
.site-header.is-dark .header-cta { background: var(--cream); color: var(--navy); }
.site-header.is-dark .header-cta:hover { background: var(--white); }
.site-header.is-dark .header-cta__icon { background: var(--navy); color: var(--gold-bright); }
.site-header.is-dark .menu-toggle { color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(246, 241, 231, 0.3); }
.site-header.is-dark .menu-toggle:hover { box-shadow: inset 0 0 0 1.5px var(--cream); }
/* while the menu is open the bar sits flat on it */
.menu-open .site-header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Menu button: says what it does, in words ("Menu" / "Close") */
.menu-toggle {
  display: none; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 16px 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(14, 34, 54, 0.2);
  transition: box-shadow 0.3s, color 0.3s;
}
.menu-toggle:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.menu-toggle__bars { position: relative; width: 18px; height: 10px; }
.menu-toggle__bars i {
  position: absolute; left: 0; right: 0; top: 4.25px; height: 1.5px; border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.menu-toggle__bars i:first-child { transform: translateY(-3.25px); }
.menu-toggle__bars i:last-child { transform: translateY(3.25px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { transform: rotate(-45deg); }

/* Full-screen menu: numbered rows divided by hairlines, the quote button at the bottom within thumb reach */
.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; gap: 36px;
  padding: calc(var(--header-h) + 8px) var(--gutter) 32px;
  background: rgba(251, 248, 242, 0.985);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__nav { display: grid; border-top: 1px solid var(--line); }
.mobile-menu__nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(32px, 9vw, 52px); line-height: 1.1; letter-spacing: -0.02em;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), color 0.3s;
  transition-delay: calc(var(--i, 0) * 45ms + 60ms);
}
.mobile-menu__nav a:nth-child(2) { --i: 1; }
.mobile-menu__nav a:nth-child(3) { --i: 2; }
.mobile-menu__nav a:nth-child(4) { --i: 3; }
.mobile-menu__nav a:nth-child(5) { --i: 4; }
.mobile-menu__nav a span { min-width: 22px; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--gold-text); }
.mobile-menu__nav a[aria-current="page"] { color: var(--gold-text); }
.mobile-menu.is-open .mobile-menu__nav a { opacity: 1; transform: none; }
.mobile-menu__foot { display: grid; gap: 18px; margin-top: auto; }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu__foot p { font-size: 13px; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .header-progress { animation-duration: auto !important; }
  .mobile-menu__nav a { transform: none; transition-delay: 0s; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px));
  padding-bottom: clamp(56px, 7vw, 100px);
}
.hero__canvas, .found__canvas {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(14, 34, 54, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 34, 54, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 60% 45%, #000 35%, transparent 85%);
  mask-image: radial-gradient(ellipse 85% 75% at 60% 45%, #000 35%, transparent 85%);
}
.hero__canvas::before {
  /* gold grid that lights up around the cursor */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200, 144, 47, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 144, 47, 0.55) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(240px circle at var(--sx, -999px) var(--sy, -999px), #000, transparent 75%);
  mask-image: radial-gradient(240px circle at var(--sx, -999px) var(--sy, -999px), #000, transparent 75%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.hero.is-pointer .hero__canvas::before { opacity: 1; }
.hero__canvas::after, .found__canvas::after {
  content: ""; position: absolute;
  width: 62vmax; height: 62vmax; right: -16vmax; top: -10vmax;
  background: radial-gradient(closest-side, rgba(236, 195, 115, 0.38), rgba(236, 195, 115, 0.08) 55%, transparent);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero__copy { display: grid; gap: clamp(20px, 2.2vw, 30px); justify-items: start; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(42px, 4.9vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero__title > span { display: block; }
.hero__title > .eyebrow { display: flex; width: fit-content; margin-bottom: clamp(20px, 2.2vw, 30px); }
.brush-under { position: relative; display: inline-block; font-weight: 400; }
.brush-under svg {
  position: absolute; left: -3%; bottom: -0.16em;
  width: 106%; height: 0.32em;
  overflow: visible;
}
.brush-under .draw { animation: draw 1.1s var(--ease) 1.15s forwards; }
.brush-under .draw--late { animation-delay: 1.45s; }
.hero__lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); max-width: 520px; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }

.js .load-in {
  opacity: 0;
  transform: translateY(26px);
  animation: load-in 1.1s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 120ms);
}
/* the load-in order (data-d in the HTML, not inline styles, so the Content-Security-Policy needs no 'unsafe-inline') */
[data-d="1"] { --d: 1; }
[data-d="2"] { --d: 2; }
[data-d="3"] { --d: 3; }
[data-d="4"] { --d: 4; }
[data-d="5"] { --d: 5; }
[data-d="6"] { --d: 6; }
@keyframes load-in { to { opacity: 1; transform: none; } }
/* Headline + intro slide in without fading, so they count as painted immediately (helps LCP) */
.js .hero__title .load-in,
.js .page-title .load-in,
.js .hero__lede.load-in { opacity: 1; transform: translateY(14px); animation-name: settle; animation-fill-mode: both; }
@keyframes settle { to { transform: none; } }

/* Search results mock (the Get found section) */
.found__visual {
  position: relative;
  perspective: 1400px;
  padding: 62px 18px 116px 30px;
}
.serp {
  --row: 76px;
  --gap: 10px;
  position: relative;
  padding: 16px 16px 18px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(14, 34, 54, 0.06), 0 50px 90px -40px rgba(14, 34, 54, 0.45), 0 20px 40px -30px rgba(14, 34, 54, 0.3);
  transform: rotateY(var(--ry, -7deg)) rotateX(var(--rx, 4deg));
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease);
}
.serp__top { display: flex; align-items: center; gap: 14px; }
.serp__dots { display: flex; gap: 6px; }
.serp__dots i { width: 9px; height: 9px; border-radius: 50%; background: #e6e0d4; }
.serp__search {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.serp__search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.serp__query { white-space: nowrap; overflow: hidden; }
.serp__caret { width: 1.5px; height: 18px; background: var(--gold); margin-left: -6px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.serp.is-typing .serp__caret { animation: none; opacity: 1; }
.serp__tabs {
  display: flex; gap: 20px;
  padding: 14px 8px 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.serp__tabs span { padding-bottom: 10px; }
.serp__tabs .is-on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }
.serp__list {
  position: relative;
  height: calc(4 * var(--row) + 3 * var(--gap));
  transition: opacity 0.35s var(--ease);
}
.serp__list.is-hidden { opacity: 0; }
.serp__row {
  --i: 0;
  position: absolute; left: 0; right: 0; top: 0;
  height: var(--row);
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  transform: translateY(calc(var(--i) * (var(--row) + var(--gap))));
  transition: transform 0.75s var(--ease), box-shadow 0.5s, background-color 0.5s;
}
.serp__row:nth-child(1) { --i: 0; }
.serp__row:nth-child(2) { --i: 1; }
.serp__row:nth-child(3) { --i: 2; }
.serp__row:nth-child(4) { --i: 3; }
.serp__fav { width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); flex: none; align-self: flex-start; margin-top: 2px; }
.serp__txt { flex: 1; min-width: 0; display: grid; gap: 7px; }
.sk { display: block; height: 8px; border-radius: 4px; background: #ece7dd; }
.sk--url { width: 30%; height: 6px; }
.sk--title { width: 76%; height: 10px; background: #d5dce6; }
.sk--desc { width: 92%; }
.sk--short { width: 55%; }
.serp__row--you {
  z-index: 2;
  background: linear-gradient(90deg, rgba(200, 144, 47, 0.13), rgba(200, 144, 47, 0.03));
  box-shadow: inset 0 0 0 1px rgba(200, 144, 47, 0.4);
}
.serp__row--you.is-top {
  background: linear-gradient(90deg, rgba(200, 144, 47, 0.2), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 0 0 1.5px var(--gold), 0 18px 30px -18px rgba(200, 144, 47, 0.8);
}
.serp__fav--you { display: grid; place-items: center; background: var(--navy); color: var(--gold-bright); }
.serp__fav--you svg { width: 16px; height: 16px; }
.serp__url { font-size: 11px; color: var(--muted); line-height: 1; }
.serp__row--you .serp__txt { position: relative; }
.serp__brush { position: absolute; left: -3px; top: calc(11px + 7px + 15px); width: 72%; height: 9px; overflow: visible; pointer-events: none; }
.serp__row--you.is-top .serp__brush .draw { animation: draw 0.8s var(--ease) 0.15s forwards; }
.serp__title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp__rank {
  flex: none;
  min-width: 44px; padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; text-align: center;
  color: var(--ink-2);
  background: var(--paper-2);
  transition: background-color 0.4s, color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.serp__row--you.is-top .serp__rank {
  color: var(--navy-deep);
  background: var(--gold-on-navy);
  box-shadow: 0 8px 18px -8px rgba(200, 144, 47, 0.9);
  animation: rank-pop 0.6s var(--ease);
}
@keyframes rank-pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

.float-card {
  position: absolute;
  z-index: 3;
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  animation: bob 6s ease-in-out 2;
}
.float-card--speed {
  top: 0; right: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px;
  background: var(--navy);
  color: var(--cream);
}
.float-card__text { display: grid; line-height: 1.1; }
.float-card__text strong { font-family: var(--font-display); font-weight: 500; font-size: 24px; }
.float-card__text strong small { font-size: 13px; font-weight: 400; color: var(--muted-light); margin-left: 1px; }
.float-card__text > span { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-light); }
.float-card--traffic {
  left: 0; bottom: 0;
  width: 210px;
  padding: 14px 16px;
  background: var(--white);
  display: grid; gap: 6px;
  animation-delay: -3s;
}
.float-card__label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.float-card__trend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--gold-text); }
.float-card__trend svg { width: 14px; height: 14px; }
.spark { width: 100%; height: auto; overflow: visible; }
.spark__area { fill: rgba(200, 144, 47, 0.12); }
.spark__line { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.found__visual.is-in .float-card--traffic .draw { animation: draw 1.6s var(--ease) 0.9s forwards; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.ring { width: 48px; height: 48px; transform: rotate(-90deg); flex: none; }
.ring--lg { width: 96px; height: 96px; }
.ring__bg { fill: none; stroke: rgba(246, 241, 231, 0.14); stroke-width: 5; }
.ring__fg {
  fill: none; stroke: url(#goldStroke); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 100 200; stroke-dashoffset: 100.5;
  transition: stroke-dashoffset 1.8s var(--ease);
}

/* =========================================================
   Hero showcase: a custom site for "your business" on a laptop and a phone.
   The brand card cycles three example palettes (data-palette) to show sites are designed around each client.
   ========================================================= */
.hero__visual { position: relative; }
.showcase {
  --acc: #0e2236; --acc-2: #c8902f; --acc-soft: #f3eee3;
  perspective: 1400px;
  padding: 44px 0 66px 64px;
}
.showcase[data-palette="1"] { --acc: #2f5546; --acc-2: #d9a35b; --acc-soft: #e8efe9; }
.showcase[data-palette="2"] { --acc: #8f3f2b; --acc-2: #e8b26a; --acc-soft: #f7e9e1; }
.sc-logo, .sc-logo i, .sc-btn, .sc-kicker, .sc-h, .sc-cta, .sc-art, .sc-art::before,
.sc-cards span, .sc-cards i, .sc-burger i, .brand-aa {
  transition: background-color 0.9s var(--ease), color 0.9s var(--ease), box-shadow 0.9s var(--ease);
}
.sc-browser {
  position: relative; z-index: 1;
  border-radius: 18px; overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(14, 34, 54, 0.06), 0 50px 90px -40px rgba(14, 34, 54, 0.45), 0 20px 40px -30px rgba(14, 34, 54, 0.3);
  transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 3deg));
  transition: transform 0.8s var(--ease);
}
.sc-bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; background: #fdfbf7; border-bottom: 1px solid var(--line); }
.sc-url {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden;
}
.sc-url svg { width: 13px; height: 13px; flex: none; }
.sc-site { display: grid; gap: 16px; padding: 16px 20px 20px; }
.sc-nav { display: flex; align-items: center; gap: 14px; }
.sc-logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--acc); white-space: nowrap; }
.sc-logo i { width: 18px; height: 18px; flex: none; border-radius: 50% 50% 50% 4px; background: var(--acc-2); }
.sc-links { display: flex; gap: 10px; margin-left: auto; }
.sc-links i { width: 30px; height: 6px; border-radius: 3px; background: #e6e0d4; }
.sc-btn { padding: 5px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--acc); color: var(--acc); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.sc-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.sc-hero > .sc-art { order: -1; } /* picture on the left, where the phone overlaps it; the heading stays clear */
.sc-copy { display: grid; gap: 9px; justify-items: start; }
.sc-kicker { width: 38px; height: 4px; border-radius: 2px; background: var(--acc-2); }
.sc-h { font-family: var(--font-display); font-weight: 400; font-size: clamp(17px, 1.7vw, 25px); line-height: 1.06; letter-spacing: -0.02em; color: var(--acc); }
.sc-line { display: block; width: 92%; height: 6px; border-radius: 3px; background: #ece7dd; }
.sc-line--short { width: 64%; }
.sc-cta { margin-top: 3px; padding: 7px 13px; border-radius: 999px; background: var(--acc); color: #fff; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.sc-art { position: relative; overflow: hidden; aspect-ratio: 1 / 0.86; border-radius: 12px; background: var(--acc); }
.sc-art::before { content: ""; position: absolute; width: 34%; aspect-ratio: 1; right: 16%; top: 15%; border-radius: 50%; background: var(--acc-2); }
.sc-art i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.sc-art i:nth-child(1) { left: -30%; width: 100%; height: 70%; bottom: -36%; }
.sc-art i:nth-child(2) { right: -34%; width: 110%; height: 80%; bottom: -50%; background: rgba(255, 255, 255, 0.24); }
.sc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sc-cards span { display: grid; gap: 7px; padding: 11px; border-radius: 10px; background: var(--acc-soft); }
.sc-cards i { width: 18px; height: 18px; margin-bottom: 2px; border-radius: 6px; background: var(--acc); }
.sc-cards b { display: block; height: 5px; border-radius: 3px; background: rgba(14, 34, 54, 0.13); }
.sc-cards b + b { width: 64%; }

.sc-phone {
  position: absolute; z-index: 2; left: 0; bottom: 0;
  width: clamp(118px, 31%, 166px);
  padding: 7px; border-radius: 26px;
  background: var(--navy-deep);
  box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(246, 241, 231, 0.08);
}
.sc-phone__screen { position: relative; overflow: hidden; display: grid; gap: 8px; padding: 18px 10px 14px; border-radius: 20px; background: var(--white); }
.sc-phone__screen::before { content: ""; position: absolute; top: 6px; left: 50%; width: 34%; height: 6px; translate: -50% 0; border-radius: 999px; background: var(--navy-deep); }
.sc-phone__nav { display: flex; align-items: center; justify-content: space-between; }
.sc-burger { display: grid; gap: 3px; }
.sc-burger i { display: block; width: 14px; height: 2px; border-radius: 1px; background: var(--acc); }
.sc-phone .sc-art { aspect-ratio: 1 / 0.78; border-radius: 10px; }
.sc-phone .sc-h { font-size: 14px; }
.sc-phone .sc-line { width: 80%; }
.sc-phone .sc-cta { justify-self: stretch; text-align: center; }

.float-card--brand {
  top: 0; right: -6px;
  display: grid; grid-template-columns: auto auto; align-items: center; gap: 8px 14px;
  padding: 12px 14px;
  background: var(--white);
  animation-delay: -2s;
}
.float-card--brand .float-card__label { grid-column: 1 / -1; }
.swatches { display: flex; gap: 9px; }
.swatch {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sw-a) 50%, var(--sw-b) 50%);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--line);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.swatch:nth-child(1) { --sw-a: #0e2236; --sw-b: #c8902f; }
.swatch:nth-child(2) { --sw-a: #2f5546; --sw-b: #d9a35b; }
.swatch:nth-child(3) { --sw-a: #8f3f2b; --sw-b: #e8b26a; }
.swatch.is-on { box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--gold); transform: scale(1.1); }
.brand-aa { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1; color: var(--acc); }
.float-card--quote {
  right: 5%; bottom: 6px;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px 11px 11px;
  background: var(--navy); color: var(--cream);
  animation-delay: -4s;
}
.quote-tick { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(246, 241, 231, 0.08); color: var(--gold-bright); }
.quote-tick svg { width: 20px; height: 20px; }
.float-card--quote .float-card__text strong { font-size: 20px; }

/* the site builds in once it's seen; colours change with transitions, so the build uses an animation */
.js .showcase:not(.is-in) [data-b] { opacity: 0; }
.showcase.is-in [data-b] { animation: sc-in 0.9s var(--ease) backwards; animation-delay: calc(0.35s + var(--b) * 0.12s); }
[data-b="0"] { --b: 0; }
[data-b="1"] { --b: 1; }
[data-b="2"] { --b: 2; }
[data-b="3"] { --b: 3; }
[data-b="4"] { --b: 4; }
@keyframes sc-in { from { opacity: 0; transform: translateY(14px); } }

/* =========================================================
   Why reMARKable
   ========================================================= */
.why { padding-block: clamp(96px, 11vw, 160px); background: var(--paper-2); }
.why__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }

/* =========================================================
   Get found (the former SEO hero): search results on the left, copy on the right
   ========================================================= */
.found { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(96px, 11vw, 160px); background: var(--paper); }
.found__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.found__visual { order: -1; }
.found__copy { display: grid; gap: 22px; justify-items: start; }
.found .section-lede { max-width: 520px; }
/* the brush under "found" draws when the heading scrolls into view, not on page load */
.js .found .brush-under .draw { animation: none; }
.js .found .section-title.is-visible .brush-under .draw { animation: draw 1.1s var(--ease) 0.5s forwards; }
.js .found .section-title.is-visible .brush-under .draw--late { animation-delay: 0.8s; }

@media (max-width: 1080px) {
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .found__inner { gap: 32px; }
}
@media (max-width: 860px) {
  .found__inner { grid-template-columns: 1fr; }
  .found__visual { order: 0; }
  .showcase { padding-left: 52px; }
}
@media (max-width: 600px) {
  .why__grid { grid-template-columns: 1fr; }
  .showcase { padding: 40px 0 58px 30px; }
  .sc-site { gap: 12px; padding: 12px 14px 14px; }
  .sc-links { display: none; }
  .sc-cards { gap: 6px; }
  .sc-cards span { padding: 8px; }
  .sc-phone { width: 36%; }
  .float-card--brand { right: 0; padding: 10px 12px; }
  .float-card--quote { right: 0; padding: 9px 14px 9px 9px; }
  .float-card--quote .float-card__text strong { font-size: 17px; }
  .quote-tick { width: 34px; height: 34px; }
}

/* =========================================================
   Ticker
   ========================================================= */
.ticker { background: var(--navy); color: var(--cream); overflow: hidden; padding-block: 22px; }
.ticker__track {
  display: flex; align-items: center; gap: 28px;
  width: max-content;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(20px, 2vw, 28px);
  white-space: nowrap;
  padding-right: 28px;
  animation: ticker 45s linear infinite;
}
.ticker__track b {
  width: 18px; height: 18px; flex: none;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 13.5 9.5 19 20.5 5.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 13.5 9.5 19 20.5 5.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* =========================================================
   Services
   ========================================================= */
.services { padding-block: clamp(96px, 11vw, 160px); }
.services__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 30px); }
.svc {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.svc:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lift); }
.svc--seo { background: var(--navy); color: var(--cream); box-shadow: var(--shadow-soft); }
.svc--seo:hover { box-shadow: var(--shadow-lift); }
.svc__art {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  padding: clamp(20px, 3vw, 40px);
  background: var(--paper-2);
}
.svc--seo .svc__art { background: radial-gradient(120% 100% at 100% 0%, #1b3a5c, var(--navy-2) 60%); }
.svc__art > svg { width: 100%; height: 100%; }
.svc__body { display: grid; gap: 16px; align-content: start; padding: clamp(26px, 3vw, 44px); flex: 1; }
.svc__num { font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: 0.1em; color: var(--gold-text); }
.svc--seo .svc__num { color: var(--gold-bright); }
.svc__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1; letter-spacing: -0.02em; }
.svc__body > p { color: var(--muted); max-width: 46ch; }
.svc--seo .svc__body > p { color: var(--muted-light); }
.ticks { display: grid; gap: 10px; margin: 6px 0 10px; font-weight: 500; font-size: 15px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks .tick { margin-top: 3px; }
.svc--seo .tick path { stroke: var(--gold-bright); }

.svc__badge {
  position: absolute; left: clamp(16px, 2vw, 26px); bottom: clamp(14px, 1.6vw, 22px);
  padding: 7px 12px; border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow-soft);
  font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.svc__badge b { color: var(--gold); }

/* Wireframe → website illustration */
.wf__frame { fill: var(--white); stroke: rgba(14, 34, 54, 0.18); stroke-width: 1.5; }
.wf__bar { stroke: rgba(14, 34, 54, 0.12); stroke-width: 1.5; }
.wf__dot { fill: #e6e0d4; }
.wf__b {
  fill: transparent;
  stroke: rgba(14, 34, 54, 0.38);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  transform-box: fill-box;
  transform-origin: center;
  transform: translateY(5px);
  transition: fill 0.45s var(--ease), stroke 0.45s var(--ease), transform 0.6s var(--ease);
}
/* un-building runs in reverse order, quickly */
.wf__b--card { transition-delay: 0s; }
.wf__b--hill { transition-delay: 0.03s; }
.wf__b--sun { transition-delay: 0.06s; }
.wf__b--img { transition-delay: 0.09s; }
.wf__b--cta { transition-delay: 0.12s; }
.wf__b--txt { transition-delay: 0.15s; }
.wf__b--h1b { transition-delay: 0.18s; }
.wf__b--h1 { transition-delay: 0.21s; }
.wf__b--btn { transition-delay: 0.24s; }
.wf__b--nav { transition-delay: 0.27s; }
.wf__b--logo { transition-delay: 0.3s; }
.is-built .wf__b { stroke: transparent; transform: none; }
.is-built .wf__b--logo { fill: var(--navy); transition-delay: 0s; }
.is-built .wf__b--nav { fill: rgba(14, 34, 54, 0.28); transition-delay: 0.05s; }
.is-built .wf__b--btn { fill: var(--gold); transition-delay: 0.1s; }
.is-built .wf__b--h1 { fill: var(--navy); transition-delay: 0.15s; }
.is-built .wf__b--h1b { fill: var(--gold); transition-delay: 0.2s; }
.is-built .wf__b--txt { fill: rgba(14, 34, 54, 0.2); transition-delay: 0.25s; }
.is-built .wf__b--cta { fill: var(--navy); transition-delay: 0.3s; }
.is-built .wf__b--img { fill: #1e4f86; transition-delay: 0.35s; }
.is-built .wf__b--sun { fill: var(--gold-bright); transition-delay: 0.45s; }
.is-built .wf__b--hill { fill: var(--navy); transition-delay: 0.5s; }
.is-built .wf__b--card { fill: var(--paper-2); transition-delay: 0.55s; }
.wf__b--sun, .wf__b--hill { stroke-dasharray: 3 4; }

/* Rising rankings chart */
.chart__grid path { stroke: rgba(246, 241, 231, 0.08); stroke-width: 1.5; }
.chart__area { fill: rgba(236, 195, 115, 0.1); opacity: 0; transition: opacity 1.2s var(--ease) 1s; }
.chart__line { fill: none; stroke-width: 7; stroke-linecap: round; }
.chart__dot { fill: var(--gold-bright); opacity: 0; transition: opacity 0.4s 1.8s; }
.chart__pulse { fill: none; stroke: var(--gold-bright); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
[data-chart].is-in .chart__line { animation: draw 1.8s var(--ease) 0.2s forwards; }
[data-chart].is-in .chart__area,
[data-chart].is-in .chart__dot { opacity: 1; }
[data-chart].is-in .chart__pulse { animation: pulse 2.2s ease-out 2s 3; }
@keyframes pulse { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.4); } }
.kw {
  position: absolute; left: clamp(18px, 2.4vw, 32px); top: clamp(18px, 2.4vw, 32px);
  display: grid; gap: 8px;
}
.kw li {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 7px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--cream);
  background: rgba(246, 241, 231, 0.07);
  box-shadow: inset 0 0 0 1px rgba(246, 241, 231, 0.12);
  opacity: 0; transform: translateX(-10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
/* chip text comes from data-kw so it isn't indexed as page copy */
.kw li::before { content: "“" attr(data-kw) "”"; }
.kw li::after { content: "▲"; color: var(--gold-bright); font-size: 10px; }
[data-chart].is-in .kw li { opacity: 1; transform: none; }
[data-chart].is-in .kw li:nth-child(2) { transition-delay: 0.15s; }
[data-chart].is-in .kw li:nth-child(3) { transition-delay: 0.3s; }

/* Motion & explainer video card (part of Web Design) */
.svc--motion {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}
.svc--motion .svc__body { align-content: center; }
.svc__art--motion {
  aspect-ratio: auto;
  display: grid;
  gap: 14px;
  place-items: stretch;
  align-content: center;
  padding: clamp(20px, 3.6vw, 52px);
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(236, 195, 115, 0.35), transparent 60%),
    var(--paper-2);
}

.explainer {
  --dur: 9s;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: 0 0 0 1px rgba(14, 34, 54, 0.08), 0 40px 70px -30px rgba(14, 34, 54, 0.55);
}
.explainer__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 85% 0%, rgba(44, 94, 156, 0.55), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(200, 144, 47, 0.22), transparent 60%),
    var(--navy);
}
.explainer__tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream);
  background: rgba(8, 23, 38, 0.55);
  box-shadow: inset 0 0 0 1px var(--line-light);
}
.explainer__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); animation: blink-soft 1.6s ease-in-out infinite; }
@keyframes blink-soft { 50% { opacity: 0.3; } }
.explainer__scene { position: absolute; left: 0; top: 5%; width: 100%; height: 78%; }

/* Three scenes on a 9s loop; captions share the same timing */
.beat, .cap,
.beat__pop, .beat__type, .beat__results, .beat__badge, .beat__tick {
  animation-duration: var(--dur);
  animation-iteration-count: infinite;
  animation-timing-function: var(--ease);
  animation-fill-mode: both;
}
.beat, .cap { opacity: 0; }
.beat, .beat__pop, .beat__type, .beat__results, .beat__badge { transform-box: fill-box; transform-origin: center; }
.beat--1 { animation-name: beat-1; }
.beat--2 { animation-name: beat-2; }
.beat--3 { animation-name: beat-3; }
.cap--1 { animation-name: cap-1; }
.cap--2 { animation-name: cap-2; }
.cap--3 { animation-name: cap-3; }
@keyframes beat-1 {
  0% { opacity: 0; transform: translateY(14px); }
  4%, 29% { opacity: 1; transform: none; }
  33%, 100% { opacity: 0; transform: translateY(-14px); }
}
/* scenes overlap slightly so the screen never goes empty between them */
@keyframes beat-2 {
  0%, 31% { opacity: 0; transform: translateY(14px); }
  35%, 62% { opacity: 1; transform: none; }
  66%, 100% { opacity: 0; transform: translateY(-14px); }
}
@keyframes beat-3 {
  0%, 64% { opacity: 0; transform: translateY(14px) scale(0.96); }
  69%, 95% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
/* captions swap cleanly without overlapping */
@keyframes cap-1 { 0% { opacity: 0; } 4%, 29% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes cap-2 { 0%, 34% { opacity: 0; } 37%, 62% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes cap-3 { 0%, 67% { opacity: 0; } 70%, 95% { opacity: 1; } 100% { opacity: 0; } }
.beat__pop { transform-origin: 0% 100%; animation-name: pop-1; }
@keyframes pop-1 { 0%, 7% { transform: scale(0); } 13%, 100% { transform: scale(1); } }
.beat__type { transform-origin: 0% 50%; animation-name: type-2; animation-timing-function: steps(14, end); }
@keyframes type-2 { 0%, 38% { transform: scaleX(0); } 52%, 100% { transform: scaleX(1); } }
.beat__results { animation-name: results-2; }
@keyframes results-2 { 0%, 52% { opacity: 0; transform: translateY(10px); } 58%, 100% { opacity: 1; transform: none; } }
.beat__badge { animation-name: badge-3; }
@keyframes badge-3 { 0%, 73% { transform: scale(0) rotate(-30deg); } 79%, 100% { transform: none; } }
.beat__tick { stroke-dasharray: 1 2; animation-name: tick-3; }
@keyframes tick-3 { 0%, 77% { stroke-dashoffset: 1.02; } 84%, 100% { stroke-dashoffset: 0; } }

.explainer__captions {
  position: absolute; left: 0; right: 0; bottom: 6%;
  display: grid; justify-items: center;
  pointer-events: none;
}
.cap {
  grid-area: 1 / 1;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(8, 23, 38, 0.72);
  color: var(--cream);
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 600;
  white-space: nowrap;
}

.explainer__controls { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.explainer__play {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream); color: var(--navy-deep);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.explainer__play:hover { transform: scale(1.08); background: var(--gold-bright); }
.explainer__play svg { grid-area: 1 / 1; width: 18px; height: 18px; }
.explainer__play .icon-play,
.svc__art--motion.is-paused .explainer__play .icon-pause { display: none; }
.svc__art--motion.is-paused .explainer__play .icon-play { display: block; }
.explainer__bar { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(246, 241, 231, 0.15); overflow: hidden; }
.explainer__progress {
  position: absolute; inset: 0; border-radius: inherit;
  background: var(--gold-on-navy);
  transform-origin: left;
  animation: progress var(--dur) linear infinite;
}
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.explainer__time { font-size: 12px; font-weight: 600; color: var(--muted-light); font-variant-numeric: tabular-nums; white-space: nowrap; }
.svc__art--motion.is-paused *,
.svc__art--motion.is-offscreen * { animation-play-state: paused !important; }

/* Motion sample tiles */
.motion-samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sample {
  display: grid; gap: 10px; justify-items: start;
  grid-template-rows: auto 1fr;
  padding: 12px 14px 14px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
}
.sample__label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sample__demo { position: relative; display: grid; place-items: center; width: 100%; height: 64px; align-self: end; }
.sample__demo--ease { place-items: start; width: 120px; max-width: 100%; }
.sample__demo--ease svg { width: 120px; height: 64px; overflow: visible; }
.sample__demo--ease path { fill: none; stroke: rgba(14, 34, 54, 0.22); stroke-width: 2; stroke-dasharray: 3 4; }
.sample__demo--ease i {
  position: absolute; left: 0; top: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 144, 47, 0.2);
  offset-path: path("M4 60 C 52 60, 56 4, 116 4");
  offset-rotate: 0deg;
  animation: ease-move 2.2s var(--ease-io) infinite alternate;
}
@keyframes ease-move { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.toggle {
  position: relative; width: 52px; height: 28px; border-radius: 999px;
  background: #e2dccf;
  animation: toggle-bg 2.6s var(--ease) infinite;
}
.toggle i {
  position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(14, 34, 54, 0.3);
  animation: toggle-knob 2.6s var(--ease) infinite;
}
@keyframes toggle-bg { 0%, 35% { background: #e2dccf; } 45%, 85% { background: var(--gold); } 95%, 100% { background: #e2dccf; } }
@keyframes toggle-knob { 0%, 35% { transform: none; } 45%, 85% { transform: translateX(24px) scale(1.06); } 95%, 100% { transform: none; } }
.sample__demo--icon svg { width: 46px; height: 46px; }
.icon-ring, .icon-tick { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; }
.icon-ring { stroke: var(--navy); stroke-width: 3; transform: rotate(-90deg); transform-origin: center; animation: icon-ring 2.8s var(--ease) infinite; }
.icon-tick { stroke: var(--gold); stroke-width: 4; animation: icon-tick 2.8s var(--ease) infinite; }
@keyframes icon-ring { 0% { stroke-dashoffset: 1.02; opacity: 1; } 35%, 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes icon-tick { 0%, 30% { stroke-dashoffset: 1.02; opacity: 1; } 55%, 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* =========================================================
   SEO-ready
   ========================================================= */
.ready {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 11vw, 160px);
  background: var(--navy-deep);
  color: var(--cream);
}
.ready::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(246, 241, 231, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 231, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.ready::after {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; left: -22vmax; bottom: -30vmax; pointer-events: none;
  background: radial-gradient(closest-side, rgba(200, 144, 47, 0.22), transparent);
}
.ready__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.ready__intro { display: grid; gap: 22px; align-content: start; }
.ready .section-lede { color: var(--muted-light); }
.score {
  display: flex; align-items: center; gap: 20px;
  margin-top: 14px;
  padding: 18px 26px 18px 18px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(246, 241, 231, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-light);
}
.score__text { display: grid; line-height: 1.15; }
.score__text strong { font-family: var(--font-display); font-weight: 400; font-size: 44px; }
.score__text > span { font-size: 15px; color: var(--muted-light); }

.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 18px 20px;
  border-radius: 18px;
  background: rgba(246, 241, 231, 0.035);
  box-shadow: inset 0 0 0 1px var(--line-light);
  transition: background-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
  transition-delay: calc(var(--i) * 140ms + 400ms);
}
.checklist li:nth-child(1) { --i: 0; }
.checklist li:nth-child(2) { --i: 1; }
.checklist li:nth-child(3) { --i: 2; }
.checklist li:nth-child(4) { --i: 3; }
.checklist li:nth-child(5) { --i: 4; }
.checklist li:nth-child(6) { --i: 5; }
.checklist li:nth-child(7) { --i: 6; }
.checklist li:nth-child(8) { --i: 7; }
.checklist h3 { font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.checklist p { font-size: 14px; line-height: 1.5; color: var(--muted-light); }
.tick--lg {
  width: 30px; height: 30px; padding: 5px;
  border-radius: 9px;
  background: rgba(246, 241, 231, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-light);
}
.tick--lg path { stroke: var(--gold-bright); stroke-dasharray: 1 2; stroke-dashoffset: 1.02; transition: stroke-dashoffset 0.7s var(--ease); transition-delay: calc(var(--i) * 140ms + 400ms); }
.checklist.is-visible li { background: rgba(246, 241, 231, 0.06); box-shadow: inset 0 0 0 1px rgba(236, 195, 115, 0.25); }
.checklist.is-visible .tick--lg path { stroke-dashoffset: 0; }

/* =========================================================
   Process
   ========================================================= */
.process { padding-block: clamp(96px, 11vw, 160px); background: var(--paper-2); }
.process__track { --p: 0; position: relative; }
.process__line { position: absolute; left: 0; top: 0; width: 100%; height: 60px; overflow: visible; }
.process__line-bg { fill: none; stroke: rgba(14, 34, 54, 0.16); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.process__line-fg { fill: none; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1.02; }
.process__line-v { display: none; }
.process__line-v path { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1.02; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 40px); }
.step { display: grid; gap: 12px; justify-items: center; align-content: start; text-align: center; }
.step__num {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 500; font-size: 22px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(14, 34, 54, 0.18);
  margin-bottom: 14px;
  transition: background-color 0.5s var(--ease), color 0.5s, box-shadow 0.5s, transform 0.5s var(--ease);
}
.step.is-active .step__num { background: var(--navy); color: var(--gold-bright); box-shadow: 0 12px 24px -12px rgba(14, 34, 54, 0.8); transform: scale(1.06); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 15px; max-width: 30ch; }

/* =========================================================
   Work
   ========================================================= */
.work { padding-block: clamp(96px, 11vw, 160px); }
.work .section-lede { font-size: 15px; }
.work__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 30px); }
.project { display: grid; gap: 18px; align-content: start; }
.browser {
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.project:hover .browser { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lift); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: var(--paper-2); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ddd5c6; }
.browser__bar span { flex: 1; height: 16px; margin-left: 12px; border-radius: 8px; background: var(--white); }
.browser__view { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; container-type: size; }
.project__info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.project__info h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: -0.01em; }
.tags { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* Mock website pages (placeholders for real screenshots) */
.mock {
  --m-bg: #fff; --m-ink: #1d1d1d; --m-soft: #eee; --m-accent: #c8643b; --m-img: linear-gradient(135deg, #f6c9a8, #e48f6d);
  position: absolute; left: 0; top: 0; width: 100%;
  display: flex; flex-direction: column;
  background: var(--m-bg);
  transition: transform 3.6s var(--ease-io);
}
/* scroll exactly to the bottom of the mock page */
.project:hover .mock, .project:focus-visible .mock { transform: translateY(calc(-100% + 100cqh)); }
.mock b, .mock span, .mock em { display: block; border-radius: 99px; }
.mock figure { border-radius: 8px; background: var(--m-img); }
.m-nav { display: flex; align-items: center; gap: 6%; padding: 5% 7%; flex: 0 0 auto; }
.m-nav b { width: 22%; height: 9px; background: var(--m-ink); margin-right: auto; }
.m-nav span { width: 9%; height: 5px; background: var(--m-soft); }
.m-nav em { width: 15%; height: 14px; background: var(--m-accent); }
.m-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; padding: 4% 7% 8%; align-items: center; flex: 0 0 auto; }
.m-hero > div { display: grid; gap: 8px; }
.m-hero b { height: 13px; width: 92%; background: var(--m-ink); border-radius: 4px; }
.m-hero b.s { width: 64%; background: var(--m-accent); }
.m-hero span { height: 5px; width: 80%; background: var(--m-soft); margin-top: 6px; }
.m-hero em { height: 18px; width: 48%; background: var(--m-ink); margin-top: 8px; }
.m-hero figure { aspect-ratio: 1; }
.m-hero--full { grid-template-columns: 1fr; margin: 0 4%; padding: 16% 8%; border-radius: 10px; background: var(--m-img); }
.m-hero--full b { background: #fff; }
.m-hero--full b.s { background: var(--m-accent); }
.m-hero--full span { background: rgba(255, 255, 255, 0.6); }
.m-hero--full em { background: var(--m-accent); }
.m-hero--center { grid-template-columns: 1fr; padding: 18% 14%; text-align: center; }
.m-hero--center > div { justify-items: center; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; padding: 2% 7% 7%; }
.m-grid figure { aspect-ratio: 0.85; }
.m-band { margin: 2% 7% 7%; padding: 9% 8%; border-radius: 10px; background: var(--m-accent); display: grid; gap: 8px; }
.m-band b { width: 60%; height: 11px; background: #fff; border-radius: 4px; }
.m-band span { width: 40%; height: 5px; background: rgba(255, 255, 255, 0.6); }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; padding: 6% 7%; }
.m-stats span { height: 46px; border-radius: 8px; background: var(--m-soft); }
.m-rows { display: grid; gap: 7%; padding: 4% 7% 8%; }
.m-rows > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; align-items: center; }
.m-rows figure { aspect-ratio: 1.2; }
.m-rows p { display: grid; gap: 7px; }
.m-rows b { height: 10px; width: 80%; background: var(--m-ink); border-radius: 4px; }
.m-rows span { height: 5px; width: 90%; background: var(--m-soft); }
.m-menu { display: grid; gap: 14px; padding: 4% 12% 10%; }
.m-menu p { display: flex; align-items: center; gap: 10px; }
.m-menu b { width: 34%; height: 8px; background: var(--m-ink); border-radius: 4px; }
.m-menu span { flex: 1; height: 0; border-top: 2px dotted var(--m-soft); border-radius: 0; }
.m-gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 0 7% 8%; aspect-ratio: 1.3; }
.m-gallery figure:first-child { grid-row: span 2; }
.m-foot { height: 70px; flex: none; background: var(--m-ink); }

.mock--shop { --m-bg: #fff8f3; --m-ink: #3a2219; --m-soft: #ecdcd2; --m-accent: #c8643b; --m-img: linear-gradient(135deg, #f7d3b8, #e49a77 60%, #c8643b); }
.mock--trade { --m-bg: #f4f7fb; --m-ink: #13294a; --m-soft: #dde5ef; --m-accent: #f08a24; --m-img: linear-gradient(135deg, #2c5687, #13294a 70%); }
.mock--dine { --m-bg: #14271f; --m-ink: #f1e6cf; --m-soft: rgba(241, 230, 207, 0.25); --m-accent: #d4a24c; --m-img: linear-gradient(135deg, #3c5a49, #d4a24c 120%); }
.mock--dine .m-nav b, .mock--dine .m-hero em { background: var(--m-accent); }
.mock--dine .m-foot { background: #0b1712; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding-block: clamp(96px, 11vw, 160px); background: var(--paper-2); }
.faq--paper { background: var(--paper); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq__head { display: grid; gap: 18px; position: sticky; top: 110px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(19px, 1.6vw, 23px); line-height: 1.3;
  text-wrap: pretty;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--gold-bright); }
.faq details p { padding: 0 60px 26px 0; color: var(--muted); max-width: 58ch; }
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(110px, 13vw, 190px);
  background: var(--navy);
  color: var(--cream);
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(246, 241, 231, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 231, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 80%);
}
.cta::after {
  content: ""; position: absolute; width: 70vmax; height: 50vmax; left: 50%; top: 60%; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(200, 144, 47, 0.25), transparent);
}
.cta__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 26px; }
.cta__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(46px, 7vw, 112px); line-height: 1; letter-spacing: -0.03em;
  text-wrap: balance;
}
.cta__lede { color: var(--muted-light); font-size: clamp(16px, 1.3vw, 19px); max-width: 540px; text-wrap: pretty; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.cta__email { font-size: 15px; color: var(--muted-light); border-bottom: 1px solid var(--line-light); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.cta__email:hover { color: var(--cream); border-color: var(--gold); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy-deep); color: var(--cream); padding-block: clamp(64px, 7vw, 100px) 32px; }
.site-footer__top { display: flex; justify-content: space-between; gap: 56px; flex-wrap: wrap; padding-bottom: clamp(48px, 5vw, 72px); }
.site-footer__brand { display: grid; gap: 18px; max-width: 340px; }
.site-footer__brand img { width: clamp(220px, 22vw, 300px); height: auto; }
.site-footer__brand p { color: var(--muted-light); font-size: 15px; }
.site-footer__cols { display: flex; gap: clamp(40px, 7vw, 110px); flex-wrap: wrap; }
.footer-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); }
.site-footer__cols ul { display: grid; gap: 0; margin-top: 8px; }
.footer-note { margin-top: 16px; color: var(--muted-light); font-size: 15px; line-height: 1.5; }
.site-footer__cols a { display: inline-block; padding-block: 10px; color: var(--muted-light); font-size: 15px; overflow-wrap: anywhere; transition: color 0.3s; }
.site-footer__cols a:hover { color: var(--cream); }
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line-light);
  font-size: 13px; color: var(--muted-light);
}
.back-top { transition: color 0.3s; }
.back-top:hover { color: var(--gold-bright); }

/* =========================================================
   Service pages
   ========================================================= */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px));
  padding-bottom: clamp(64px, 8vw, 112px);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.page-hero__copy { display: grid; gap: clamp(18px, 2vw, 26px); justify-items: start; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(14, 34, 54, 0.3); }
.breadcrumb a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(14, 34, 54, 0.25); text-underline-offset: 3px; }
.breadcrumb a:hover { text-decoration-color: var(--gold); }
.page-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.page-title > .eyebrow { display: flex; width: fit-content; margin-bottom: clamp(18px, 2vw, 26px); }
.page-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lift);
}
.page-visual .svc__art { aspect-ratio: 16 / 11; }
.page-visual .svc__art--motion { aspect-ratio: auto; }
.svc__art--navy { background: radial-gradient(120% 100% at 100% 0%, #1b3a5c, var(--navy-2) 60%); }

.features { padding-block: clamp(88px, 10vw, 140px); background: var(--paper-2); }
.features__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.feature {
  display: grid; gap: 12px; align-content: start;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: 22px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
}
.feature__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); }
.feature__icon .tick { width: 22px; height: 22px; }
.feature h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 15px; }
.feature .link-arrow { font-size: 14px; margin-top: 2px; }

.process--paper { background: var(--paper); }
.process__note { margin-top: clamp(36px, 4vw, 56px); text-align: center; color: var(--muted); font-weight: 600; }

.band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(88px, 10vw, 140px);
  background: var(--navy-deep);
  color: var(--cream);
}
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(246, 241, 231, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 231, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, #000, transparent 80%);
}
.band__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 28px clamp(40px, 6vw, 96px);
  align-items: end;
}
.band__copy { display: grid; gap: 20px; }
.band .section-lede { color: var(--muted-light); }
.band .text-gold { background-image: var(--gold-on-navy); }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.related { padding-block: clamp(88px, 10vw, 140px); }
.related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.related-card {
  display: grid; gap: 12px; align-content: start;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.related-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lift); }
.related-card h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.02em; line-height: 1.1; }
.related-card p { color: var(--muted); max-width: 60ch; }
.related-card .link-arrow { margin-top: 6px; }
.related-card:hover .link-arrow { background-size: 100% 1.5px; }
.related-card:hover .link-arrow span { transform: translateX(4px); }

@media (max-width: 1080px) {
  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-visual { max-width: 640px; width: 100%; }
}
@media (max-width: 860px) {
  .band__inner { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .related__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .features__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   404 page
   ========================================================= */
.notfound {
  min-height: 100svh;
  display: grid; align-content: center; justify-items: start; gap: 24px;
  width: min(880px, 100% - 2 * var(--gutter)); margin-inline: auto;
  padding-block: 64px;
}
.notfound__logo img { height: 72px; width: auto; margin-bottom: 24px; }
.notfound__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(42px, 6vw, 80px); line-height: 1.04; letter-spacing: -0.03em;
  text-wrap: balance;
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { opacity: 1; animation: reveal 1s var(--ease) var(--rd, 0s) backwards; }
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } }
.js .services__grid .reveal:nth-child(2),
.js .work__grid .reveal:nth-child(2),
.js .steps .reveal:nth-child(2) { --rd: 0.12s; }
.js .work__grid .reveal:nth-child(3),
.js .steps .reveal:nth-child(3) { --rd: 0.24s; }
.js .steps .reveal:nth-child(4) { --rd: 0.36s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-rule { display: none; }
  .site-header__inner { gap: 12px; }

  /* keep the hero in two columns until 860px so the search card stays above the fold */
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 32px; }
  .found__visual { padding: 56px 8px 112px 16px; }
  .serp__title { font-size: 12.5px; }
  .project__info { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ready__grid { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

@media (max-width: 860px) {
  :root { --header-h: 84px; --header-h-scrolled: 70px; --logo-h: 60px; --logo-h-scrolled: 50px; --logo-scale: 1.2; }
  .header-cta { display: none; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual, .found__visual { max-width: 600px; width: 100%; justify-self: start; }
  .found__visual { padding-left: 0; }
  .hero__title { font-size: clamp(36px, 9.4vw, 56px); }
  .section-head--center { margin-inline: 0; text-align: left; justify-items: start; }
  .svc--seo { order: 1; } /* keeps the motion card next to Web Design */

  .services__grid { grid-template-columns: 1fr; }
  .svc--motion { grid-template-columns: 1fr; }
  .svc__art--motion { order: -1; }
  .section-head--split { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; max-width: 520px; }

  /* vertical process timeline */
  .process__line { display: none; }
  .steps { grid-template-columns: 1fr; gap: 34px; padding-left: 0; }
  .steps::before {
    content: ""; position: absolute; left: 29px; top: 30px; bottom: var(--line-end, 30px); width: 2px; border-radius: 2px;
    background: rgba(14, 34, 54, 0.12);
  }
  .process__line-v {
    display: block; position: absolute; left: 24px; top: 30px;
    width: 12px; height: calc(100% - 30px - var(--line-end, 30px));
    overflow: visible;
  }
  .step { grid-template-columns: 60px 1fr; justify-items: start; text-align: left; column-gap: 20px; row-gap: 6px; position: relative; z-index: 1; }
  .step__num { grid-row: span 2; margin-bottom: 0; }
  .step h3 { align-self: end; }
}

@media (max-width: 600px) {
  .found__visual { padding: 56px 0 112px 0; }
  .serp { --row: 70px; padding: 12px; border-radius: 20px; }
  .serp__dots { display: none; }
  .serp__search { font-size: 14px; padding: 10px 14px; }
  .serp__row { padding: 10px; gap: 10px; }
  .serp__title { font-size: 13px; }
  .float-card--speed { top: 0; right: 4px; padding: 8px 14px 8px 8px; }
  .float-card--traffic { width: 180px; left: 4px; }
  .checklist { grid-template-columns: 1fr; }
  .checklist li { padding: 14px 16px; }
  .motion-samples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .motion-samples .sample:nth-child(2) { display: none; }
  .explainer__controls { gap: 10px; padding: 10px 12px; }
  .explainer__tag { left: 10px; top: 10px; padding: 4px 10px; font-size: 11px; gap: 6px; }
  .explainer__scene { top: 15%; height: 68%; }
  .explainer__captions { bottom: 5%; }
  .score { border-radius: 24px; }
  .faq details p { padding-right: 0; }
  .site-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
  .site-footer__cols > div:nth-child(3) { grid-column: 1 / -1; }
}

/* Short screens (1366x768, 1280x720, 1024x768 landscape): fit the whole hero above the fold */
@media (min-width: 861px) and (max-height: 820px) {
  .hero { padding-top: calc(var(--header-h) + 4px); padding-bottom: 32px; }
  .hero__copy { gap: 18px; }
  .hero__title { font-size: clamp(40px, 4.4vw, 64px); }
  .showcase { padding-top: 34px; padding-bottom: 54px; }
  .sc-site { gap: 12px; padding: 12px 16px 16px; }
}

@media (hover: none) {
  .project.is-visible .mock { animation: mock-scroll 9s var(--ease-io) 1.2s infinite alternate; }
  .project:nth-child(2).is-visible .mock { animation-delay: 4.2s; }
  .project:nth-child(3).is-visible .mock { animation-delay: 7.2s; }
}
@keyframes mock-scroll { 0%, 15% { transform: none; } 85%, 100% { transform: translateY(calc(-100% + 100cqh)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .draw { stroke-dashoffset: 0; }

  /* explainer + samples: show a still final frame instead of a blank screen */
  .beat, .cap, .beat__pop, .beat__type, .beat__results, .beat__badge, .beat__tick,
  .explainer__progress, .sample__demo--ease i, .toggle, .toggle i, .icon-ring, .icon-tick { animation: none !important; }
  .beat--3, .cap--3 { opacity: 1; }
  .beat__tick, .icon-ring, .icon-tick { stroke-dashoffset: 0; }
  .explainer__progress { transform: scaleX(1); }
  .explainer__play { display: none; }
  .sample__demo--ease i { offset-distance: 100%; }
}

/* =========================================================
   Review fixes (layout, readability, SEO), 2026-10-15
   ========================================================= */
.nowrap { white-space: nowrap; }

/* one section rhythm on every page (layout 9) */
.features, .band, .related { padding-block: clamp(96px, 11vw, 160px); }

/* phone held sideways: smaller rows so the menu fits (it also scrolls) */
@media (max-height: 520px) {
  .mobile-menu { gap: 20px; padding-bottom: 24px; }
  .mobile-menu__nav a { padding-block: 8px; font-size: clamp(26px, 7vh, 36px); }
}

/* hero mockup: nothing clips between 861 and 1000px, and "Book now" stays at the right edge (layout 2) */
.sc-logo { margin-right: auto; }
.sc-links { margin-left: 0; min-width: 0; overflow: hidden; }
.sc-site > * { min-width: 0; }
@media (min-width: 861px) and (max-width: 1000px) { .sc-links { display: none; } }

/* small phones: the free-quote card clears the phone mockup (layout 4) */
@media (max-width: 430px) {
  .sc-phone { width: 32%; }
  .float-card--quote { right: 0; bottom: 0; }
  .float-card--quote .float-card__text > span { font-size: 10.5px; letter-spacing: 0.04em; }
}

/* 44px tap areas without moving the underlines (layout 3) */
.link-arrow, .back-top, .cta__email, .breadcrumb a { position: relative; }
.link-arrow::after, .back-top::after, .cta__email::after, .breadcrumb a::after { content: ""; position: absolute; inset: -9px -6px; }

/* the hero topic line keeps "Central Coast" together on 360px phones (layout 6) */
@media (max-width: 380px) { .eyebrow { font-size: 12px; letter-spacing: 0.08em; } }

/* no lone words at the end of card and step headings (layout 7) */
.feature h3, .checklist h3, .related-card h3, .step h3, .svc__title, .faq summary { text-wrap: balance; }

/* tablets: the visuals use the width instead of leaving a gap on the right (layout 12) */
@media (min-width: 601px) and (max-width: 860px) { .hero__visual, .found__visual { max-width: 680px; } }

/* "Included with web design" reads as a label, not spaced-out words (layout 13) */
.svc--motion .svc__num { text-transform: uppercase; font-size: 12px; letter-spacing: 0.12em; }

/* Get found: the gold glow sits behind the search mockup, not behind the copy (readability 11: 4.4 -> 5.7:1+) */
.found__canvas::after { right: auto; left: -18vmax; }

/* the counting score keeps its width, so nothing shifts as it counts up (SEO CLS note) */
.score [data-count] { display: inline-block; min-width: 3ch; text-align: right; }

/* =========================================================
   Call-back widget (bottom right). Opens only when tapped; appears after the first screen.
   ========================================================= */
.callback { display: none; }
.js .callback {
  display: block;
  position: fixed; z-index: 45;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.callback__launcher {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 20px 8px 8px;
  border-radius: 999px;
  background: var(--navy); color: var(--cream);
  font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(246, 241, 231, 0.08);
  opacity: 0; transform: translateY(16px) scale(0.96);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background-color 0.3s;
}
.callback.is-shown:not(.is-open) .callback__launcher { opacity: 1; transform: none; pointer-events: auto; }
.callback__launcher:hover { background: var(--navy-2); }
.callback__launcher:focus-visible { outline-color: var(--gold-text); }
.callback__icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(246, 241, 231, 0.1); color: var(--gold-bright); }
.callback__icon svg { width: 18px; height: 18px; }

.callback__panel {
  position: absolute; right: 0; bottom: 0;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100svh - var(--header-h-scrolled) - 32px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 26px 24px 20px;
  border-radius: 24px;
  background: var(--white); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lift);
  pointer-events: auto;
  transform-origin: bottom right;
  animation: callback-in 0.4s var(--ease);
}
@keyframes callback-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
.callback__close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow 0.3s, color 0.3s;
}
.callback__close:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.callback__close svg { width: 18px; height: 18px; }
.callback__form { display: grid; gap: 14px; }
.callback__title { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; padding-right: 44px; }
.callback__intro { margin-top: -6px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.callback__method { display: flex; gap: 8px; margin: 0; padding: 0; border: 0; }
.callback__method legend { width: 100%; padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.callback__method label {
  position: relative; flex: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.callback__method input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.callback__method label:has(input:checked) { background: var(--navy); color: var(--cream); box-shadow: none; }
.callback__method label:has(input:focus-visible) { outline: 2px solid var(--gold-text); outline-offset: 3px; }

.callback__field { display: grid; gap: 6px; }
.callback__field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.callback__optional { font-weight: 400; color: var(--muted); }
.callback__field input, .callback__field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 0; border-radius: 12px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 16px; /* 16px stops iPhones zooming in on focus */
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow 0.3s;
}
.callback__field textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.callback__field input:hover, .callback__field textarea:hover { box-shadow: inset 0 0 0 1.5px rgba(14, 34, 54, 0.3); }
.callback__field input:focus-visible, .callback__field textarea:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; border-radius: 12px; }
.callback__field [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #b3261e; }
.callback__error { font-size: 13px; font-weight: 600; color: #b3261e; } /* 6.5:1 on white, 6.2:1 on paper */
.callback__count { font-size: 12px; color: var(--muted); text-align: right; margin-top: -2px; }
.callback__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Cloudflare Turnstile: its box has no height until Cloudflare asks the visitor to click, so until
   then it sits out of the grid (no extra gap); when it shows (about 70px tall), it fades in above the button */
.callback__form { position: relative; }
.callback__check { position: absolute; left: 0; right: 0; }
.callback__check.is-visible { position: static; animation: check-in 0.35s var(--ease); }
@keyframes check-in { from { opacity: 0; } }
.callback__submit { width: 100%; margin-top: 2px; }
.callback__submit[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.callback__status:empty { display: none; }
.callback__status { font-size: 13.5px; line-height: 1.5; color: #b3261e; font-weight: 600; }
.callback__status a { text-decoration: underline; }
.callback__notice { font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: center; }

.callback__done { display: grid; justify-items: center; gap: 10px; padding: 18px 8px 10px; text-align: center; outline: none; }
.callback__done .callback__title { padding-right: 0; }
.callback__done-tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--gold); }
.callback__done-tick svg { width: 28px; height: 28px; }

/* phones: a round button that doesn't cover content; the panel becomes a bottom sheet */
@media (max-width: 600px) {
  .callback__launcher { padding: 8px; min-height: 0; }
  .callback__launcher .callback__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .callback__icon { width: 44px; height: 44px; background: transparent; }
  .callback__icon svg { width: 22px; height: 22px; }
  .js .callback { right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  .callback__panel { width: calc(100vw - 24px); padding: 22px 18px 16px; }
}

.menu-open .callback { display: none; }

/* footer privacy link + form note link */
.footer-legal { position: relative; color: var(--muted-light); text-decoration: underline; text-decoration-color: var(--line-light); text-underline-offset: 3px; transition: color 0.3s; }
.footer-legal:hover { color: var(--cream); }
.footer-legal::after { content: ""; position: absolute; inset: -12px -6px; }
.callback__notice a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* =========================================================
   Legal pages (privacy policy)
   ========================================================= */
.legal { padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px)); padding-bottom: clamp(96px, 11vw, 160px); }
.legal__inner { max-width: 760px; }
.legal .breadcrumb { margin-bottom: 22px; }
.legal__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.legal__title .eyebrow { display: flex; width: fit-content; margin-bottom: clamp(18px, 2vw, 26px); }
.legal__lede { margin-top: 22px; font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); text-wrap: pretty; }
.legal__toc { margin: 40px 0 8px; padding: 22px 26px; border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.legal__toc p { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.legal__toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; list-style: decimal inside; padding: 0; color: var(--muted); font-size: 15px; }
.legal__toc a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(14, 34, 54, 0.25); text-underline-offset: 3px; }
.legal__toc a:hover { text-decoration-color: var(--gold); }
.legal__body h2 { margin: 52px 0 14px; font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); scroll-margin-top: var(--header-h-scrolled); }
.legal__body p, .legal__body li { color: var(--ink-2); font-size: 16px; line-height: 1.7; max-width: 68ch; }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p { margin-top: 12px; }
.legal__body ul { display: grid; gap: 8px; padding: 0; }
.legal__body ul li { position: relative; padding-left: 22px; }
.legal__body ul li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.legal__body a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal__updated { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px !important; color: var(--muted) !important; }
@media (max-width: 600px) { .legal__toc ol { grid-template-columns: 1fr; } }

/* =========================================================
   Contact page (shares the call-back form styles)
   ========================================================= */
.contact { padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px)); padding-bottom: clamp(96px, 11vw, 160px); }
.contact .breadcrumb { margin-bottom: 22px; }
.contact__head { max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact__card { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft); }
.contact__form { gap: 18px; }
.contact__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact__needs { margin: 0; padding: 0; border: 0; }
.contact__needs legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.contact__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.contact__chips label {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.contact__chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.contact__chips label:has(input:checked) { background: var(--navy); color: var(--cream); box-shadow: none; }
.contact__chips label:has(input:checked)::before { content: ""; width: 14px; height: 14px; margin-right: 8px; background: var(--gold-bright);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 13.5 9.5 19 20.5 5.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 13.5 9.5 19 20.5 5.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat; }
.contact__chips label:has(input:focus-visible) { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.contact__form .callback__submit { justify-self: start; width: auto; min-width: 240px; }
.contact__form .callback__notice { text-align: left; }
.contact__done { padding: clamp(24px, 4vw, 48px) 8px; }

.contact__aside { display: grid; gap: 18px; }
.contact__next { padding: clamp(24px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--navy-deep); color: var(--cream); }
.contact__next h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; margin-bottom: 16px; }
.contact__next ol { display: grid; gap: 14px; padding: 0; counter-reset: step; }
.contact__next li { position: relative; padding-left: 46px; min-height: 32px; font-size: 15px; line-height: 1.5; color: var(--muted-light); counter-increment: step; }
.contact__next li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--navy-deep); background: var(--gold-bright); }
.contact__details { display: grid; gap: 4px; padding: 10px 24px; border-radius: var(--radius-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.contact__details li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; font-size: 15px; color: var(--muted); }
.contact__details li + li { border-top: 1px solid var(--line); }
.contact__details strong { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.contact__details a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact__icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--gold-text); }
.contact__icon svg { width: 20px; height: 20px; }

@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .contact__row { grid-template-columns: 1fr; }
  .contact__form .callback__submit { width: 100%; }
}

/* =========================================================
   Review 2 fixes (layout, readability, SEO), 2026-10-15
   ========================================================= */
/* "hidden" always wins, so the form and the thank-you never show together */
[hidden] { display: none !important; }

/* the corner button can't be tabbed to while it's invisible */
.callback__launcher { visibility: hidden; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background-color 0.3s, visibility 0s linear 0.4s; }
.callback.is-shown:not(.is-open) .callback__launcher { visibility: visible; transition-delay: 0s; }

/* phones held sideways get the round button too */
@media (max-height: 500px) {
  .callback__launcher { padding: 8px; min-height: 0; }
  .callback__launcher .callback__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .callback__icon { width: 44px; height: 44px; background: transparent; }
  .callback__icon svg { width: 22px; height: 22px; }
  .callback__panel { max-height: calc(100svh - var(--header-h-scrolled) - 16px); }
}
/* short screens: tighter panel so the send button is closer to view */
@media (max-height: 760px) {
  .callback__panel .callback__intro { display: none; }
  .callback__panel .callback__form { gap: 10px; }
  .callback__panel textarea { min-height: 56px; }
}

/* field, choice and chip outlines reach 3:1 against the card */
.callback__field input, .callback__field textarea { box-shadow: inset 0 0 0 1.5px rgba(14, 34, 54, 0.5); }
.callback__field input:hover, .callback__field textarea:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.callback__method label, .contact__chips label { box-shadow: inset 0 0 0 1.5px rgba(14, 34, 54, 0.5); }
.callback__hint { font-size: 13px; color: var(--muted); margin-top: -2px; }

/* privacy page: jump links land just under the header; shorter lines; tidy numbering */
.legal__body h2 { scroll-margin-top: 16px; }
.legal__body p, .legal__body li { max-width: 62ch; }
.legal__toc ol { list-style: decimal outside; padding-left: 2.4ch; }
.legal__toc li::marker { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .legal__toc a { display: inline-block; padding: 8px 0; }
  .legal__toc ol { gap: 0 24px; }
}

/* bigger tap areas for small footer links */
.back-top { display: inline-block; padding: 12px 0; margin: -12px 0; }

/* contact page: the email address wraps at sensible points; side column follows on wide screens */
.contact__details a { overflow-wrap: break-word; }
@media (min-width: 961px) { .contact__aside { position: sticky; top: calc(var(--header-h-scrolled) + 24px); } }

/* footer logo is a <picture> now */
.site-footer__brand picture { display: contents; }
