/* Breakwater Web Co — styles
   Palette: Southern Ocean blue, sand, one bold accent (buoy orange). Type: Plus Jakarta Sans.
   Motion: transform/opacity only; everything is disabled under prefers-reduced-motion. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("../assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --ink: #174A6E;
  --ink-2: #134264;
  --ink-3: #113B5A;
  --abyss: #0F3552;
  --sand: #F4EEE4;
  --sand-2: #EAE0D0;
  --foam: #FBF8F3;
  --text: #0B2230;
  --text-strong: #0B2230;     /* dark text: stays fixed whatever the background theme */
  --on-accent: #0A1C28;
  --accent-text: #FFA37D;     /* accent used as text/icons on dark backgrounds */
  --glow: #3584B8;
  --wave-a: #2A6991;
  --wave-b: #1E5A83;
  --wall: #0F3654;
  --hero-bottom: #1B557D;
  --header-bg: rgba(23, 74, 110, .92);
  --plan-hi: #174A6E;
  --display-weight: 700;
  --hero-weight: 800;
  --display-tracking: -.025em;
  --hero-tracking: -.03em;
  --em-style: normal;
  --em-weight: 800;
  --muted: #4A5963;
  --on-dark: #F4EEE4;
  --on-dark-muted: #D3DCE0;
  --accent: #F2784B;          /* on dark backgrounds / as fill with ink text */
  --accent-deep: #A83B19;     /* accent as text on light backgrounds */
  --line: rgba(11, 34, 48, .14);
  --line-dark: rgba(244, 238, 228, .2);

  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(8, 26, 37, .06), 0 12px 32px -12px rgba(8, 26, 37, .22);
  --shadow-lg: 0 30px 60px -20px rgba(8, 26, 37, .45);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 900ms;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(56px, min(9vw, 9.5vh), 120px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font-body); font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.65; color: var(--text); background: var(--sand); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1.08; letter-spacing: var(--display-tracking); margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 1.1rem + min(2.6vw, 4.6vh), 3.4rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); letter-spacing: -.01em; }
h2 em, h1 em { font-style: var(--em-style); font-weight: var(--em-weight); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--accent); color: var(--on-accent); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top var(--dur-fast); }
.skip-link:focus { top: 12px; }

/* ---------- Draft placeholders (remove data-draft on <html> at launch) ---------- */
.draft-banner { display: none; }
html[data-draft] .draft-banner { display: block; position: relative; z-index: 60; background: #FFE27A; color: #2B2200; font-size: .8rem; text-align: center; padding: 6px 12px; }
html[data-draft] [data-placeholder] { outline: 2px dashed #F5C518; outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ----------
   The button box never moves on hover (a lifting button slides out from under a cursor resting
   near its bottom edge, un-hovers, drops back and jitters). Hover is expressed inside the box:
   a fill sweep, a single light glint, a looping arrow and a soft glow. */
.btn { --bg: transparent; --fg: currentColor; --fill: rgba(255, 255, 255, .14); position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: .8em 1.5em; border-radius: 999px; border: 1.5px solid transparent; background: var(--bg); color: var(--fg); font: 700 1rem/1 var(--font-body); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast), color var(--dur), border-color var(--dur), box-shadow .5s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--fill); transform: scaleX(0); transform-origin: right center; transition: transform .6s var(--ease-out); }
.btn::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%; z-index: -1; background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .38) 50%, transparent 100%); transform: translateX(-160%) skewX(-18deg); pointer-events: none; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: scale(.98); transition: transform 90ms ease-out; }
@media (hover: hover) {
  .btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
  .btn:hover::after, .btn:focus-visible::after { transform: translateX(380%) skewX(-18deg); transition: transform .9s var(--ease-out) .05s; }
  .btn:hover svg, .btn:focus-visible svg { animation: arrow-loop .55s var(--ease-out) both; }
}
@keyframes arrow-loop { 0% { transform: translateX(0); opacity: 1; } 45% { transform: translateX(140%); opacity: 0; } 46% { transform: translateX(-140%); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
.btn-accent { --bg: var(--accent); --fg: var(--on-accent); --fill: #FF9A70; box-shadow: 0 10px 24px -12px rgba(242, 120, 75, .65), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-accent:hover, .btn-accent:focus-visible { box-shadow: 0 16px 36px -12px rgba(242, 120, 75, .85), 0 0 0 6px rgba(242, 120, 75, .14), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ghost { --fg: var(--on-dark); --fill: rgba(244, 238, 228, .12); border-color: rgba(244, 238, 228, .35); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--on-dark); }
.btn-light { --bg: var(--sand); --fg: var(--text-strong); --fill: #fff; }
.btn-light:hover, .btn-light:focus-visible { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); }
.btn-dark { --bg: var(--ink); --fg: var(--on-dark); --fill: var(--ink-3); }
.btn-dark:hover, .btn-dark:focus-visible { box-shadow: 0 14px 30px -14px rgba(8, 26, 37, .55); }
.btn-sm { min-height: 44px; padding: .6em 1.15em; font-size: .92rem; }
.btn-block { width: 100%; }

.eyebrow { font: 700 .78rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 1.1rem; }
.eyebrow-dark { color: var(--accent-deep); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); color: var(--on-dark); background: transparent; transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), backdrop-filter var(--dur); }
.site-header.is-scrolled { background: var(--header-bg); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 var(--line-dark); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: inherit; margin-right: auto; }
.brand-mark { width: 40px; height: 28px; color: var(--on-dark); }
.brand-logo { display: block; height: 46px; width: auto; aspect-ratio: 340.6 / 56; color: var(--on-dark); --logo-sub: #C9D6DE; --logo-wave: #8FC3E3; }
.brand-footer .brand-logo { height: 56px; }
.brand-word { white-space: nowrap; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.brand-word small { font-family: var(--font-body); font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .75; margin-left: 2px; vertical-align: middle; }

.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-menu a:not(.btn) { display: inline-block; padding: 10px 12px; font-weight: 600; font-size: .94rem; text-decoration: none; color: var(--on-dark-muted); border-radius: 8px; position: relative; transition: color var(--dur-fast); }
.nav-menu a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1.5px; background: var(--accent-text); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
.nav-menu a:not(.btn):hover { color: var(--on-dark); }
.nav-menu a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta-item { margin-left: 8px; }
.nav-toggle { display: none; }
.header-call { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(244, 238, 228, .3); background: transparent; color: var(--on-dark); font: 700 .9rem var(--font-body); cursor: pointer; position: relative; z-index: 2; }
  .nav-toggle-bars { width: 18px; height: 12px; position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur) var(--ease-out), top var(--dur) var(--ease-out); }
  .nav-toggle-bars::before { top: 2px; } .nav-toggle-bars::after { top: 8px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 5px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 5px; transform: rotate(-45deg); }
  .nav-menu { position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: stretch; gap: 6px; padding: calc(var(--header-h) + 20px) var(--gutter) 40px; background: var(--ink); visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur); }
  .nav-menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-menu a:not(.btn) { font-family: var(--font-display); font-size: 2rem; color: var(--on-dark); padding: 8px 0; }
  .nav-menu a:not(.btn)::after { left: 0; right: auto; width: 40px; bottom: 4px; }
  .nav-cta-item { margin: 20px 0 0; }
  .nav-cta-item .btn { width: 100%; min-height: 56px; font-size: 1.05rem; }
  /* Taller than the screen (phone landscape): scroll inside the menu instead of clipping, top-aligned */
  .nav-menu { overflow-y: auto; overscroll-behavior: contain; scroll-padding-top: calc(var(--header-h) + 12px); }   /* keyboard focus never lands under the header (WCAG 2.4.11) */
  @media (max-height: 600px) {
    .nav-menu { justify-content: flex-start; gap: 2px; padding-bottom: 24px; }
    .nav-menu a:not(.btn) { font-size: 1.5rem; padding: 4px 0; }
    .nav-cta-item { margin-top: 12px; }
  }
  .header-call { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); position: relative; z-index: 2; }
  .header-call svg { width: 20px; height: 20px; }
  .header-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .brand { position: relative; z-index: 2; }
  body.nav-open { overflow: hidden; }
  /* backdrop-filter would make the fixed menu relative to the header; drop it while open */
  body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ink); }
  /* Opaque header layer above the open menu, below the logo and buttons (z 2): scrolled menu links pass under it, never through the logo */
  body.nav-open .site-header::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--ink); pointer-events: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(120% 90% at 85% 10%, var(--glow) 0%, transparent 55%), linear-gradient(180deg, var(--ink) 0%, var(--hero-bottom, var(--ink-2)) 100%); color: var(--on-dark); margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(28px, 4.5vw, 64px)) 0 clamp(150px, 15vw, 200px); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; background-image: radial-gradient(rgba(244, 238, 228, .9) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(180deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .65fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-title { font-size: clamp(2.4rem, 1.2rem + 3.8vw, 4.4rem); font-weight: var(--hero-weight); line-height: 1.02; letter-spacing: var(--hero-tracking); margin-bottom: .45em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > * { display: inline-block; }
.hero-title em { color: var(--accent-text); font-weight: var(--em-weight); }
.hero-lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--on-dark-muted); max-width: 36em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.2rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .92rem; color: var(--on-dark-muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; }

/* Load-in choreography */
.js .hero-in { opacity: 0; transform: translateY(28px); animation: rise 1s var(--ease-out) forwards; animation-delay: calc(120ms + var(--d, 0) * 110ms); }
.js .hero-title .hero-in { transform: translateY(105%); animation-name: riseLine; animation-duration: 1.1s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes riseLine { from { opacity: 1; } to { opacity: 1; transform: none; } }

/* Phone mockup */
.hero-visual { position: relative; justify-self: center; }
/* ---------- Realistic phone ---------- */
.hero-grid { position: relative; z-index: 1; }
.phone-wrap { position: relative; perspective: 1400px; --rx: 6deg; --ry: -16deg; --rz: 1.5deg; }
.phone { position: relative; width: min(262px, 68vw); aspect-ratio: 9 / 19.3; border-radius: 52px; padding: 11px;
  background: linear-gradient(140deg, #6E737A 0%, #2A2E33 18%, #44484E 48%, #1E2125 70%, #5B6066 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 0 0 3px #111316, inset 0 2px 6px rgba(255, 255, 255, .25),
    -2px 0 0 rgba(255, 255, 255, .05), 0 50px 80px -30px rgba(3, 14, 24, .7), 0 24px 40px -24px rgba(3, 14, 24, .6);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)); transform-style: preserve-3d; transition: transform .8s var(--ease-out); animation: phone-float 8s var(--ease-in-out) infinite; }
@keyframes phone-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.phone-btn { position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #2A2E33, #6E737A 60%, #3B3F44); }
.pb-action { left: -3px; top: 17%; height: 4.5%; } .pb-up { left: -3px; top: 25%; height: 9%; } .pb-down { left: -3px; top: 36%; height: 9%; }
.pb-power { right: -3px; top: 28%; height: 13%; background: linear-gradient(270deg, #2A2E33, #6E737A 60%, #3B3F44); }
.phone-screen { position: relative; container-type: inline-size; height: 100%; border-radius: 42px; overflow: hidden; background: #0B0D10; box-shadow: 0 0 0 2px #050607; isolation: isolate; }
.phone-island { position: absolute; top: 11px; left: 50%; width: 27%; height: 26px; translate: -50% 0; border-radius: 20px; background: #000; z-index: 4; box-shadow: inset 6px 0 6px -4px rgba(60, 80, 120, .5); }
.phone-island::after { content: ""; position: absolute; right: 10px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2B3A55, #05070C 70%); }
.phone-status { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 15px 6cqw 13px 12.5cqw; background: #13324A; color: #fff; font: 700 min(.72rem, 5.1cqw)/1 var(--font-body); letter-spacing: .01em; }
.ps-icons { display: inline-flex; gap: min(4px, 1.8cqw); align-items: center; }
.ps-icons svg { height: min(10px, 4.4cqw); width: auto; fill: currentColor; }
.phone-scroll { height: 100%; overflow: hidden; background: #FBF8F3; }
.phone-scroll .mini { height: auto; min-height: 100%; padding-bottom: 60px; animation: mini-scroll 16s var(--ease-in-out) infinite; }
@keyframes mini-scroll { 0%, 22% { transform: translateY(0); } 48%, 70% { transform: translateY(-28%); } 96%, 100% { transform: translateY(0); } }
.phone-screen .mini-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: 26px; }
.phone-home { position: absolute; bottom: 8px; left: 50%; width: 36%; height: 5px; translate: -50% 0; border-radius: 3px; background: #13324A; opacity: .75; z-index: 3; }
.phone-glare { position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 28%, transparent 29%, transparent 100%); }
.phone-shadow { position: absolute; left: 12%; right: 4%; bottom: -34px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(3, 14, 24, .55), transparent); filter: blur(6px); animation: shadow-breathe 8s var(--ease-in-out) infinite; }
@keyframes shadow-breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.9); opacity: .7; } }
.mini-jobs { margin: 14px 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini-jobs b { grid-column: 1 / -1; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #13324A; }
.mini-jobs span { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, #C8D8E3, #7E9DB2); }
.mini-jobs span:nth-child(3) { background: linear-gradient(135deg, #E9D9BE, #B89B6E); } .mini-jobs span:nth-child(4) { background: linear-gradient(135deg, #B9CBB1, #6F8C65); }

.mini { height: 100%; display: flex; flex-direction: column; font-family: var(--font-body); }
.mini-nav { display: flex; justify-content: space-between; align-items: center; padding: 48px 16px 12px; background: #13324A; color: #fff; }
.mini-logo { font-weight: 800; font-size: .8rem; letter-spacing: -.01em; }
.mini-logo b { color: #FFC83D; margin-left: 3px; }
.mini-burger { width: 18px; height: 10px; border-block: 2px solid #fff; position: relative; }
.mini-hero { background: linear-gradient(160deg, #13324A, #1E4A68); color: #fff; padding: 20px 16px 26px; display: grid; gap: 10px; }
.mini-tag { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: #FFC83D; font-weight: 700; }
.mini-h { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.05; font-weight: 600; }
.mini-btn { justify-self: start; background: #FFC83D; color: #13324A; font-weight: 800; font-size: .72rem; padding: 9px 16px; border-radius: 999px; }
.mini-btn--pulse { animation: pulse 2.6s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 200, 61, .55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255, 200, 61, 0); } }
.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 16px; }
.mini-cards span { height: 58px; border-radius: 10px; background: #E6EDF2; }
.mini-cards span:nth-child(1) { background: linear-gradient(135deg, #C8D8E3, #9FB8C9); }
.mini-cards span:nth-child(4) { background: linear-gradient(135deg, #F3E1B5, #E8C977); }
.mini-lines { padding: 4px 16px; display: grid; gap: 7px; }
.mini-lines span { height: 7px; border-radius: 4px; background: #DCE3E8; }
.mini-lines span:nth-child(2) { width: 80%; } .mini-lines span:nth-child(3) { width: 60%; }
.mini-area { margin: 14px 16px 0; padding: 12px; border-radius: 12px; background: #13324A; color: #fff; display: grid; gap: 6px; }
.mini-area b { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #FFC83D; }
.mini-area span { font-size: .7rem; opacity: .85; }
.mini-bar { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 20px; background: #fff; border-top: 1px solid #E3E8EC; font-size: .66rem; font-weight: 800; color: #13324A; }
.mini-bar i { font-style: normal; background: #13324A; color: #fff; padding: 7px 12px; border-radius: 999px; }

/* Sea + breakwater */
.hero-sea { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(140px, 17vw, 210px); pointer-events: none; z-index: 0; }
.hero-sea .wall g { fill: var(--wall); }
.hero-sea .wall { position: absolute; right: -2%; bottom: 36%; height: 72%; width: auto; opacity: .95; }
.wave { position: absolute; left: 0; bottom: 0; width: 200%; display: flex; will-change: transform; }
.wave svg { width: 50%; height: 100%; flex: none; }
.wave-3 { height: 100%; animation: drift 38s linear infinite; }
.wave-3 path { fill: var(--wave-a); opacity: .55; }
.wave-2 { height: 78%; animation: drift 26s linear infinite reverse; }
.wave-2 path { fill: var(--wave-b); opacity: .85; }
.wave-1 { height: 58%; animation: drift 18s linear infinite; }
.wave-1 path { fill: var(--sand); }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.hero.is-paused .wave, .hero.is-paused .phone, .hero.is-paused .mini-btn--pulse, .hero.is-paused .phone-scroll .mini, .hero.is-paused .phone-shadow, .hero.is-paused .p-spray-a, .hero.is-paused .p-spray-b { animation-play-state: paused; }

/* ---------- Ticker ---------- */
.ticker { background: var(--sand); padding: 22px 0 10px; overflow: hidden; border-bottom: 1px solid var(--line); }
.ticker-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { list-style: none; margin: 0; padding: 0; display: flex; }
.ticker li { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); font-style: var(--em-style); padding: 0 1.1em; white-space: nowrap; color: var(--text-strong); display: flex; align-items: center; gap: 1.1em; }
.ticker li::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); margin-left: 1.1em; }
.ticker li.soft { color: var(--muted); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-light { background: var(--foam); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark .section-lede { color: var(--on-dark-muted); }
.section-dark h2 em { color: var(--accent-text); }
.section-light h2 em, .section-sand h2 em { color: var(--accent-deep); }
.section-head { max-width: 780px; margin-bottom: clamp(28px, min(5vw, 6vh), 64px); }
.section-lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 40em; }

/* Features */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--foam); padding: clamp(28px, 3vw, 40px); position: relative; transition: background-color var(--dur) var(--ease-out); }
.feature::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.feature:hover { background: #fff; }
.feature:hover::before { transform: scaleX(1); }
.feature-num { display: inline-block; font: 600 .8rem var(--font-body); letter-spacing: .1em; color: var(--accent-deep); margin-bottom: 18px; }
.feature p { color: var(--muted); margin: 0; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 38px); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); transition: transform .5s var(--ease-out), border-color var(--dur), box-shadow .5s var(--ease-out); }
.plan { position: relative; }
.plan::after, .call-card::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.plan:hover { transform: translateY(-6px); border-color: rgba(242, 120, 75, .5); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.plan-feature { background: linear-gradient(160deg, var(--plan-hi) 0%, var(--ink-3) 60%); border-color: rgba(242, 120, 75, .35); }
.plan-kicker { font: 700 .75rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .6rem; }
.plan h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: .4em; }
.plan-desc { color: var(--on-dark-muted); font-size: .98rem; }
.plan-price { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 2rem + 1.5vw, 3.2rem); line-height: 1; margin: .4em 0 .6em; letter-spacing: -.03em; }
.plan-price .from { font: 600 .85rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); vertical-align: middle; margin-right: 4px; }
.plan-price .per { font: 600 1rem var(--font-body); color: var(--on-dark-muted); letter-spacing: 0; }
.plan-list { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line-dark); display: grid; gap: 12px; align-content: start; flex: 1; font-size: .96rem; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--accent-text); }
.plan-list .plan-x { color: var(--on-dark-muted); }
.plan-list .plan-x svg { color: var(--on-dark-muted); }
/* "Recommended" badge on the featured plan */
.plan-badge { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px 6px 10px; border-radius: 0 var(--radius) 0 14px; background: var(--accent); color: #1a1208; font: 700 .75rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.plan-badge svg { width: 14px; height: 14px; }
.term-note { margin: 10px 0 0; font-size: .88rem; font-weight: 600; color: var(--on-dark); }
/* Care plans: one slim band under the build cards */
.care { margin-top: 20px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--ink-2); }
.care > * { padding: clamp(20px, 2.2vw, 28px) clamp(22px, 2.6vw, 34px); }
.care-intro h3 { margin-bottom: .3rem; }
.care-intro .plan-desc { margin: 0; }
.care-opt { border-left: 1px solid var(--line-dark); display: flex; flex-direction: column; justify-content: center; }
.care-name { font: 700 .75rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 .35rem; }
.care-price { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 1.6rem + 1vw, 2.4rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 .4rem; }
.care-price .per { font: 600 1rem var(--font-body); color: var(--on-dark-muted); letter-spacing: 0; }
.care-detail { color: var(--on-dark-muted); font-size: .95rem; margin: 0; }
.plans-note { margin: 28px 0 0; font-size: .9rem; color: var(--on-dark-muted); max-width: 62em; }

/* Demos */
.demos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.demo { margin: 0; border-radius: var(--radius); outline-offset: 6px; }
.demo { position: relative; }
.demo-link { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; color: var(--accent-deep); font-weight: 700; font-size: .95rem; text-decoration: underline; text-underline-offset: 4px; }
.demo-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.demo-link:focus-visible { outline: none; }
.demo-link:focus-visible::after { outline: 3px solid var(--accent-deep); outline-offset: 6px; }
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.demo:hover .browser, .demo:focus-within .browser { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #EFE9DF; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D6CCBC; }
.browser-bar span { margin-left: 10px; flex: 1; font-size: .7rem; color: var(--muted); background: #fff; border-radius: 6px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo { --view-h: 320px; }
.browser-view { height: var(--view-h); overflow: hidden; position: relative; }
.shot { display: block; width: 100%; height: auto; transition: transform 3.2s var(--ease-in-out); }
.demo:hover .shot, .demo:focus-within .shot { transform: translateY(calc(-100% + var(--view-h))); }   /* real screenshot scrolls through the demo */
.mock { transition: transform 3.2s var(--ease-in-out); font-family: var(--font-body); }
.demo:hover .mock, .demo:focus-within .mock { transform: translateY(calc(-100% + 320px)); }
.m-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: .78rem; }
.m-nav b { font-weight: 800; letter-spacing: -.01em; }
.m-nav span { font-size: .66rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.m-hero { padding: 34px 18px 40px; display: grid; gap: 10px; }
.m-h { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.02; font-weight: 600; letter-spacing: -.02em; }
.m-p { font-size: .78rem; opacity: .85; }
.m-btn { justify-self: start; font-size: .72rem; font-weight: 800; padding: 9px 16px; border-radius: 999px; margin-top: 4px; }
.m-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px 18px; }
.m-row span { font-size: .66rem; font-weight: 700; text-align: center; padding: 18px 4px; border-radius: 10px; }
.m-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px 18px 18px; }
.m-gallery i { aspect-ratio: 1; border-radius: 8px; }
.m-foot { padding: 26px 18px 34px; display: grid; gap: 8px; }
.m-foot span { height: 8px; border-radius: 4px; width: 60%; }
.m-foot span + span { width: 40%; }

.mock--plumb { background: #fff; color: #13324A; }
.mock--plumb .m-nav { background: #13324A; color: #fff; }
.mock--plumb .m-nav span { background: #FFC83D; color: #13324A; }
.mock--plumb .m-hero { background: linear-gradient(160deg, #13324A, #235679); color: #fff; }
.mock--plumb .m-btn { background: #FFC83D; color: #13324A; }
.mock--plumb .m-row span { background: #EEF3F7; }
.mock--plumb .m-gallery i { background: linear-gradient(135deg, #C8D8E3, #8FAEC3); }
.mock--plumb .m-gallery i:nth-child(3n+2) { background: linear-gradient(135deg, #F3E1B5, #E8C977); }
.mock--plumb .m-foot { background: #13324A; } .mock--plumb .m-foot span { background: rgba(255, 255, 255, .25); }

.mock--elec { background: #0E1116; color: #E8ECEF; }
.mock--elec .m-nav { border-bottom: 1px solid #242A33; }
.mock--elec .m-nav span { background: #1B2129; color: #C6F432; }
.mock--elec .m-hero { background: radial-gradient(90% 80% at 80% 0%, #25310B, #0E1116 70%); }
.mock--elec .m-h { color: #fff; }
.mock--elec .m-btn { background: #C6F432; color: #0E1116; }
.mock--elec .m-row span { background: #171C23; color: #C6F432; border: 1px solid #242A33; }
.mock--elec .m-gallery i { background: linear-gradient(135deg, #1B2129, #2B3440); }
.mock--elec .m-gallery i:nth-child(2n) { background: linear-gradient(135deg, #2F3D10, #1B2129); }
.mock--elec .m-foot span { background: #242A33; }

.mock--garden { background: #F6F3EA; color: #2E3B2A; }
.mock--garden .m-nav span { background: #2E3B2A; color: #F6F3EA; }
.mock--garden .m-hero { background: linear-gradient(180deg, rgba(46, 59, 42, .15), rgba(46, 59, 42, .55)), linear-gradient(135deg, #8BA27A, #4E6A45); color: #fff; padding-block: 60px 40px; }
.mock--garden .m-h { font-style: italic; font-weight: 500; }
.mock--garden .m-btn { background: #F6F3EA; color: #2E3B2A; }
.mock--garden .m-row span { background: #E8E3D3; }
.mock--garden .m-gallery i { background: linear-gradient(135deg, #A8B99A, #6E8A62); }
.mock--garden .m-gallery i:nth-child(3n) { background: linear-gradient(135deg, #D9C9A3, #B8A073); }
.mock--garden .m-foot { background: #2E3B2A; } .mock--garden .m-foot span { background: rgba(255, 255, 255, .2); }

.demo figcaption { padding: 18px 4px 0; color: var(--muted); font-size: .95rem; }
.demo figcaption strong { display: block; color: var(--text-strong); font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin: 6px 0 2px; }
.demo-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); border: 1px solid rgba(168, 59, 25, .35); padding: 3px 8px; border-radius: 999px; }
.demos-hint { margin: 28px 0 0; font-size: .85rem; color: var(--muted); }

/* Process */
.process-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.sticky-head { margin-bottom: 0; }   /* heading stays put; no longer follows the scroll (Jevad, 5 Oct) */
.sticky-head .btn { margin-top: 12px; }
.steps { list-style: none; margin: 0; padding: 0 0 0 44px; position: relative; display: grid; gap: clamp(36px, 5vw, 56px); }
.steps::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--accent); transform-origin: top; transform: scaleY(var(--progress, 1)); }
.js .steps::after { --progress: 0; transform: scaleY(var(--progress)); transition: transform .15s linear; }
.step { position: relative; }
.step-dot { position: absolute; left: -44px; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--foam); border: 2px solid var(--line); transition: border-color .4s var(--ease-out), background-color .4s var(--ease-out), transform .4s var(--ease-out); }
.step.is-active .step-dot, .no-js .step-dot { border-color: var(--accent); background: var(--accent); transform: scale(1.08); }
.step h3 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }
.step-n { font: 700 .8rem var(--font-body); color: var(--accent-deep); letter-spacing: .1em; }
.step p { color: var(--muted); max-width: 34em; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.portrait { aspect-ratio: 3 / 2; border-radius: var(--radius); background: linear-gradient(160deg, var(--ink-3), var(--ink)); display: grid; place-items: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.portrait picture, .portrait img { display: block; width: 100%; height: 100%; }
.portrait img { object-fit: cover; object-position: 50% 50%; }
.portrait span { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 5vw, 8rem); color: var(--sand); font-style: var(--em-style); opacity: .9; }
.about-copy p { max-width: 36em; }
.about-copy p:not(.section-lede):not(.eyebrow):not(.signature) { color: var(--muted); }
.signature { font-family: var(--font-display); font-style: var(--em-style); font-size: 1.6rem; color: var(--text-strong); margin-top: 1.4em; }
.signoff { margin-top: 1.8em; padding-top: 1.1em; border-top: 2px solid var(--accent); width: max-content; max-width: 100%; }
.signoff .signature { margin: 0; line-height: 1.2; }
.about-copy .signoff-role { margin: .25em 0 0; font-size: .95rem; color: var(--muted); }

/* FAQ */
.faq-wrap { max-width: 900px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--font-display); font-size: clamp(1.15rem, 1.05rem + .5vw, 1.45rem); font-weight: 600; letter-spacing: -.01em; transition: color var(--dur-fast); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: linear-gradient(var(--text-strong), var(--text-strong)) center / 12px 1.5px no-repeat, linear-gradient(var(--text-strong), var(--text-strong)) center / 1.5px 12px no-repeat; transition: transform var(--dur) var(--ease-out), background-color var(--dur), border-color var(--dur); }
.faq details[open] summary::after { transform: rotate(135deg); border-color: var(--accent); background-color: var(--accent); }
.faq summary:hover { color: var(--accent-deep); }
.faq-body { padding: 0 60px 24px 0; color: var(--muted); }
.faq-body p { margin: 0; }
.js .faq-body { animation: fadeDown .45s var(--ease-out); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Contact */
.contact { background: radial-gradient(80% 60% at 0% 100%, var(--glow) 0%, transparent 60%), var(--ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.call-card { position: relative; display: inline-flex; align-items: center; gap: 16px; margin: 12px 0 28px; padding: 16px 24px 16px 16px; border-radius: 999px; background: rgba(244, 238, 228, .06); border: 1px solid var(--line-dark); text-decoration: none; transition: background-color var(--dur), transform var(--dur) var(--ease-out); }
.call-card:hover { background: rgba(244, 238, 228, .12); transform: translateY(-2px); }
.call-card svg { width: 52px; height: 52px; padding: 14px; border-radius: 50%; background: var(--accent); color: var(--on-accent); flex: none; }
.call-card small { display: block; font-size: .8rem; color: var(--on-dark-muted); }
.call-card strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.contact-meta { color: var(--on-dark-muted); font-size: .92rem; }

.form { background: var(--foam); color: var(--text-strong); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field { margin-bottom: 6px; }
label, legend { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.req { color: var(--accent-deep); }
.opt { font-weight: 500; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text-strong); background: #fff; border: 1.5px solid #B9B2A6; border-radius: var(--radius-sm); padding: 13px 14px; min-height: 50px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: #6B767D; }
input:focus, textarea:focus { outline: none; border-color: var(--text-strong); box-shadow: 0 0 0 4px rgba(242, 120, 75, .35); }
[aria-invalid="true"] { border-color: #B3261E !important; }
.field-hint { font-size: .82rem; color: var(--muted); margin: 0 0 4px; }
.field-error { font-size: .85rem; color: #B3261E; font-weight: 600; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
#f-contact-err { margin-bottom: 14px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.choices legend { width: 100%; }
.chip { position: relative; margin: 0; font-weight: 600; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid #B9B2A6; background: #fff; font-size: .9rem; transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur) var(--ease-out); }
.chip:hover span { border-color: var(--text-strong); }
.chip input:checked + span { background: var(--text-strong); color: var(--sand); border-color: var(--text-strong); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { font-size: .82rem; color: var(--muted); margin: 6px 0 18px; }
.form-notice a { color: var(--text-strong); font-weight: 600; }
.form-status { margin-top: 14px; font-size: .95rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #1E6B3A; }
.form-status.is-error { color: #B3261E; }
.form-status a { color: inherit; }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.btn[aria-busy="true"] svg { animation: nudge .9s var(--ease-in-out) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }

/* Footer */
.site-footer { background: var(--abyss); color: var(--on-dark-muted); padding: 64px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.brand-footer { color: var(--on-dark); margin-bottom: 14px; }
.footer-tag { max-width: 22em; }
.social { list-style: none; display: flex; width: fit-content; gap: 10px; margin: 18px 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--on-dark); transition: background-color .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--on-dark); color: var(--abyss); border-color: var(--on-dark); }
.social svg { width: 20px; height: 20px; }
.footer-details strong { color: var(--on-dark); }
.footer-details a, .footer-links a { color: var(--on-dark); text-decoration: none; }
.footer-details a:hover, .footer-links a:hover { color: var(--accent-text); }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { display: inline-block; padding: 2px 0; }
.footer-base { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; font-size: .82rem; }
.footer-base p { margin: 0; max-width: 60em; }
.acknowledgement { display: flex; align-items: center; gap: 14px; max-width: 62em; }
.ack-flags { display: flex; gap: 6px; flex: none; }
.ack-flags img { display: block; width: 36px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(244, 238, 228, .35); }
@media (max-width: 560px) { .acknowledgement { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr 1fr; }
  .plans > .plan:last-child { grid-column: 1 / -1; }
  .care { grid-template-columns: 1fr 1fr; }
  .care-intro { grid-column: 1 / -1; border-bottom: 1px solid var(--line-dark); }
  .care-intro + .care-opt { border-left: 0; }
  .demos { grid-template-columns: 1fr 1fr; }
  .demos .demo:last-child { grid-column: 1 / -1; max-width: calc(50% - 16px); }
}
@media (max-width: 860px) {
  .hero-grid, .process-wrap, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; }
  .phone { width: min(230px, 62vw); }
  .sticky-head { position: static; margin-bottom: 20px; }
  .about-photo { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 20px; }
}
@media (max-width: 640px) {
  /* Phones: icon-only menu button so the logo can take the freed space */
  .header-inner { gap: 8px; }
  .brand { flex: 1 1 0; min-width: 0; }
  .brand-logo { width: min(100%, 262px); height: auto; }
  .nav-toggle { width: 44px; padding: 0; justify-content: center; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .theme-toggle { margin-right: 0; }
  .feature-grid, .plans, .demos { grid-template-columns: 1fr; }
  .care { grid-template-columns: 1fr; }
  .care-opt, .care-intro + .care-opt { border-left: 0; border-top: 1px solid var(--line-dark); }
  .care-intro { border-bottom: 0; }
  .demos .demo:last-child { max-width: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 14px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .demo { --view-h: 280px; }
  .demo:hover .mock, .demo:focus-within .mock { transform: translateY(calc(-100% + 280px)); }
  /* Phones: one swipeable row with the next card peeking in, instead of a 1,900 px stack */
  .demos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 12px var(--gutter) 14px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .demos::-webkit-scrollbar { display: none; }
  .demo { scroll-snap-align: start; }
  .demos .demo:last-child { grid-column: auto; }   /* undo the tablet "last card spans the row" rule, keeps the cards in order */
  .demos-hint { display: none; }   /* hover hint doesn't apply on phones; the peeking card shows it scrolls */
  .faq-body { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-auto-flow: row; }
  .hero-sea .wall { right: -30%; }
}

/* Cheaper effects on small/touch devices */
@media (hover: none) {
  .demos-hint { display: none; }   /* "Hover over or tab" can't be done on a touch screen, tablets included */
  .feature::before { transform: scaleX(1); opacity: .6; }
  .ticker:hover .ticker-track { animation-play-state: running; }
}


/* ---------- Hero scene: light mode (default) and dark mode (html[data-theme="dark"]) ---------- */
.hero-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hs-sun, .hs-stars, .hs-mist { position: absolute; display: none; }
[data-depth] { will-change: translate; }

/* Breakwater walk: wall receding into the distance, rust railing, curved street lamps, a wave breaking over */
.hs-pier { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-rail path:not(.p-railbar), .p-arm, .p-seam path, .p-curb { fill: none; stroke-linecap: round; }
.p-spray-a, .p-spray-b { transform-box: fill-box; transform-origin: 50% 100%; animation: spray-breathe 7s var(--ease-in-out) infinite; }
.p-spray-b { animation-delay: -3.5s; }
@keyframes spray-breathe { 0%, 100% { transform: translate(0, 6px) scale(.94); opacity: .8; } 50% { transform: translate(-12px, -6px) scale(1.05); opacity: 1; } }
.p-glow { display: none; }
.p-hill { fill: #E3E9EC; } .p-walk { fill: #E9ECEC; }
.p-wall-near { stop-color: #DCD3C8; } .p-wall-far { stop-color: #F5EFE8; } .p-cap-near { stop-color: #EBE5DC; } .p-cap-far { stop-color: #F8F4EE; } .p-end { fill: #E9E2D8; }
.p-seam path { stroke: rgba(110, 92, 72, .14); } .p-curb { stroke: rgba(255, 255, 255, .85); } .p-sh1 { stop-color: #5A4A3A; stop-opacity: .1; } .p-sh2 { stop-color: #5A4A3A; stop-opacity: 0; }
.p-rail path:not(.p-railbar) { stroke: url(#pRailG); } .p-rail-near { stop-color: #B47A62; } .p-rail-far { stop-color: #B47A62; stop-opacity: .22; }
.p-pole path:first-child { fill: #9EA9B1; } .p-arm { stroke: #9EA9B1; } .p-lamp { fill: #7F8C95; }
.p-crest { fill: #C8DBE5; }
.p-st1 { stop-color: #C6DAE6; stop-opacity: .95; } .p-st2 { stop-color: #D5E4EC; stop-opacity: .55; } .p-st3 { stop-color: #E6EEF2; stop-opacity: 0; }

/* Light hero: mostly white, a soft warm glow, blue only in the sea */
.hero { background: linear-gradient(180deg, #FFFFFF 0%, #FCFAF7 42%, #F8F2EB 74%, #F2E8DD 100%); color: var(--text-strong); }
.hero::before { opacity: .045; background-image: radial-gradient(rgba(11, 34, 48, .9) 1px, transparent 1px); }
.hs-sun { display: block; right: 6%; top: 4%; width: min(620px, 70vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 238, 220, .95) 0%, rgba(255, 226, 200, .45) 30%, rgba(255, 226, 200, 0) 66%); }
.hs-mist { display: block; left: 0; right: 0; bottom: clamp(100px, 13vw, 170px); height: 120px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .7) 55%, transparent); }
.wave-3 path { fill: #A9C6D4; opacity: .75; }
.wave-2 path { fill: #5B8FAC; opacity: .95; }
.site-header { background: var(--header-bg); }
.hero-lede, .hero-points { color: #3D4F5A; }
.hero-title em, .hero .eyebrow, .hero-points svg { color: var(--accent-deep); }
.hero .btn-ghost { --fg: var(--text-strong); --fill: rgba(11, 34, 48, .07); border-color: rgba(11, 34, 48, .35); }
.hero .btn-ghost:hover, .hero .btn-ghost:focus-visible { border-color: var(--text-strong); }
.phone-label { color: #5A6A73; }
.hero-sea .wall { display: none; }

/* Dark hero: night harbour, stars, lamps lit along the wall */
html[data-theme="dark"] .hero { background: radial-gradient(50% 45% at 84% 26%, rgba(255, 190, 140, .14), transparent 60%), linear-gradient(180deg, #06172A 0%, #0B2A45 52%, #174A6E 100%); color: var(--on-dark); }
html[data-theme="dark"] .hero::before { opacity: .03; background-image: radial-gradient(rgba(244, 238, 228, .9) 1px, transparent 1px); }
html[data-theme="dark"] .hs-sun { display: none; }
html[data-theme="dark"] .hs-stars { display: block; inset: 0 0 45% 0; opacity: .7;
  background-image: radial-gradient(1.2px 1.2px at 8% 18%, #fff, transparent), radial-gradient(1px 1px at 22% 42%, #fff, transparent), radial-gradient(1.4px 1.4px at 36% 12%, #fff, transparent), radial-gradient(1px 1px at 48% 34%, #fff, transparent), radial-gradient(1.2px 1.2px at 63% 8%, #fff, transparent), radial-gradient(1px 1px at 71% 46%, #fff, transparent), radial-gradient(1.3px 1.3px at 88% 22%, #fff, transparent), radial-gradient(1px 1px at 94% 52%, #fff, transparent), radial-gradient(1px 1px at 15% 60%, #fff, transparent), radial-gradient(1.2px 1.2px at 55% 58%, #fff, transparent);
  background-size: 640px 420px; }
html[data-theme="dark"] .hs-mist { left: -10%; right: -10%; height: 140px; background: radial-gradient(60% 50% at 50% 50%, rgba(190, 220, 240, .12), transparent 70%); }
html[data-theme="dark"] .wave-3 path { fill: #1E5A83; opacity: .8; }
html[data-theme="dark"] .wave-2 path { fill: #174A6E; opacity: .95; }
html[data-theme="dark"] .site-header:not(.is-scrolled) { background: transparent; }
html[data-theme="dark"] .hero-lede, html[data-theme="dark"] .hero-points { color: var(--on-dark-muted); }
html[data-theme="dark"] .hero-title em, html[data-theme="dark"] .hero .eyebrow, html[data-theme="dark"] .hero-points svg { color: var(--accent-text); }
html[data-theme="dark"] .hero .btn-ghost { --fg: var(--on-dark); --fill: rgba(244, 238, 228, .12); border-color: rgba(244, 238, 228, .35); }
html[data-theme="dark"] .hero .btn-ghost:hover, html[data-theme="dark"] .hero .btn-ghost:focus-visible { border-color: var(--on-dark); }
html[data-theme="dark"] .phone-label { color: var(--on-dark-muted); }
html[data-theme="dark"] .p-glow { display: inline; }
html[data-theme="dark"] .p-hill { fill: #0B243A; } html[data-theme="dark"] .p-walk { fill: #0B2134; }
html[data-theme="dark"] .p-wall-near { stop-color: #0A1F31; } html[data-theme="dark"] .p-wall-far { stop-color: #0E2A44; } html[data-theme="dark"] .p-cap-near { stop-color: #143350; } html[data-theme="dark"] .p-cap-far { stop-color: #11304B; } html[data-theme="dark"] .p-end { fill: #0C2740; }
html[data-theme="dark"] .p-seam path { stroke: rgba(255, 255, 255, .05); } html[data-theme="dark"] .p-curb { stroke: rgba(160, 196, 220, .14); } html[data-theme="dark"] .p-sh1 { stop-color: #000; stop-opacity: .3; } html[data-theme="dark"] .p-sh2 { stop-color: #000; stop-opacity: 0; }
html[data-theme="dark"] .p-rail-near { stop-color: #7A4A3A; } html[data-theme="dark"] .p-rail-far { stop-color: #7A4A3A; stop-opacity: .25; }
html[data-theme="dark"] .p-pole path:first-child { fill: #1D3D58; } html[data-theme="dark"] .p-arm { stroke: #1D3D58; } html[data-theme="dark"] .p-lamp { fill: #FFD9A8; }
html[data-theme="dark"] .p-crest { fill: #2B5D80; }
html[data-theme="dark"] .p-st1 { stop-color: #9FC0D6; stop-opacity: .45; } html[data-theme="dark"] .p-st2 { stop-color: #7FA6C0; stop-opacity: .22; } html[data-theme="dark"] .p-st3 { stop-color: #7FA6C0; stop-opacity: 0; }

@media (max-width: 960px) {
  .hs-pier { inset: auto 0 0 0; height: 580px; }
}

/* ---------- Dark mode: whole site ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --foam: #0E2335;
  --sand: #0B1D2C;
  --sand-2: #10283C;
  --text: #E8EEF1;
  --text-strong: #EEF2F4;
  --muted: #A9B9C3;
  --line: rgba(238, 242, 244, .14);
  --accent-deep: #FFA37D;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
}
html[data-theme="dark"] .feature:hover { background: #12293D; }
html[data-theme="dark"] .form { background: #10283C; }
html[data-theme="dark"] input[type="text"], html[data-theme="dark"] input[type="tel"], html[data-theme="dark"] input[type="email"], html[data-theme="dark"] textarea,
html[data-theme="dark"] .chip span { background: #0B1D2C; border-color: #45607A; }
html[data-theme="dark"] .chip input:checked + span { background: #EEF2F4; color: #0B1D2C; border-color: #EEF2F4; }
/* Form feedback colours per theme (WCAG 1.4.3: #FFB4AB and #8FD6A5 are 8.9:1 on the dark form) */
html[data-theme="dark"] .field-error, html[data-theme="dark"] .form-status.is-error { color: #FFB4AB; }
html[data-theme="dark"] .form-status.is-ok { color: #8FD6A5; }
html[data-theme="dark"] [aria-invalid="true"] { border-color: #FFB4AB !important; }
html[data-theme="dark"] .btn-light { --bg: #F4EEE4; --fg: #0B2230; }
html[data-theme="dark"] .browser { box-shadow: 0 0 0 1px rgba(238, 242, 244, .08), var(--shadow); }

/* Light/dark switch (header) */
.theme-toggle, .header-icon { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: 10px; border-radius: 50%; border: 1.5px solid rgba(244, 238, 228, .3); background: transparent; color: var(--on-dark); cursor: pointer; position: relative; z-index: 2; transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.theme-toggle:hover, .header-icon:hover { border-color: var(--on-dark); background: rgba(244, 238, 228, .08); }
.theme-toggle svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: currentColor; transition: transform .45s var(--ease-out), opacity .3s; }
.theme-toggle .tt-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
html[data-theme="dark"] .theme-toggle .tt-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
html[data-theme="dark"] .theme-toggle .tt-sun { opacity: 1; transform: none; }
@media (max-width: 960px) { .theme-toggle { margin-left: 0; margin-right: 8px; } .motion-icon { display: none; } }

/* Back to top */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--on-dark); box-shadow: 0 12px 28px -10px rgba(3, 14, 24, .55), inset 0 0 0 1px rgba(244, 238, 228, .14); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s linear .25s, background-color .15s; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--ink-3); }
.to-top svg { width: 22px; height: 22px; transition: transform .2s var(--ease-out); }
.to-top:hover svg { transform: translateY(-2px); }
html[data-theme="dark"] .to-top { background: #F4EEE4; color: #0B2230; }
html[data-theme="dark"] .to-top:hover { background: #fff; }
.js .to-top { display: grid; }
html:not(.js) .to-top { opacity: 1; visibility: visible; transform: none; }

/* Pause animations (WCAG 2.2.2): one control in the hero, one in the footer */
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px 6px 11px; border-radius: 999px; border: 1px solid rgba(11, 34, 48, .25); background: rgba(244, 238, 228, .85); color: var(--text-strong); font: 600 .8rem var(--font-body); cursor: pointer; transition: background-color .15s, border-color .15s; }
.motion-toggle:hover { background: #fff; border-color: rgba(11, 34, 48, .5); }
.motion-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.motion-toggle .mt-play, .motion-toggle[data-off="true"] .mt-pause { display: none; }
.motion-toggle[data-off="true"] .mt-play { display: inline; }
.motion-toggle--footer { margin-top: 12px; background: transparent; color: var(--on-dark-muted); border-color: var(--line-dark); }
.motion-toggle--footer:hover { background: rgba(244, 238, 228, .08); color: var(--on-dark); border-color: var(--on-dark-muted); }
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation-play-state: paused !important; }
/* Paused = final readable state (same as reduced motion), never a frozen first frame.
   Entrances finish instantly instead of being frozen at opacity 0; turning motion back on does not replay them. */
html.motion-off .hero-in, html.hero-done .hero-in { animation: none !important; opacity: 1 !important; transform: none !important; }   /* no animation involved: can't stick on frame 0 (e.g. after Back) */
html.motion-off { scroll-behavior: auto; }
html.motion-off [data-reveal] { opacity: 1; transform: none; transition: none; }
/* Live pause preserves the painted parallax position. */
.build.is-js.is-static:not(.no-pin) { height: auto; }
.build.is-js.is-static:not(.no-pin) .build-stage { position: static; }   /* Saved-paused visits keep their compact layout even after Play. */
.build.is-js.no-pin { height: auto; }
.build.is-js.no-pin .build-stage { position: static; height: auto; padding: var(--section-y) 0; }
.is-static .build-scene .b, .is-static .build-scene .pole, .no-pin .build-scene .b, .no-pin .build-scene .pole { transform: none !important; opacity: 1 !important; }
.is-static .build-scene .rail, .no-pin .build-scene .rail { stroke-dashoffset: 0 !important; }
.build.is-js.is-static .build-list li, .build.is-js.no-pin .build-list li { opacity: 1; }
/* .no-pin = the section can't fit on one screen (200% zoom, short landscape): no pinning, finished wall in normal flow */
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }


/* Pause/play in the header (desktop): always on screen. Phones get it in the menu and the footer. */
.motion-icon svg { width: 14px; height: 14px; fill: currentColor; }
.motion-icon .mt-play, .motion-icon[data-off="true"] .mt-pause { display: none; }
.motion-icon[data-off="true"] .mt-play { display: inline; }
.motion-icon::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); white-space: nowrap; padding: 5px 10px; border-radius: 8px; background: #0B2230; color: #F4EEE4; font: 600 .75rem var(--font-body); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.motion-icon:hover::after, .motion-icon:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.nav-motion-item { display: none; }
@media (max-width: 960px) {
  .nav-motion-item { display: block; margin-top: 10px; }
  .motion-toggle--menu { background: transparent; color: var(--on-dark-muted); border-color: var(--line-dark); min-height: 44px; }
  .motion-toggle--menu:hover { background: rgba(244, 238, 228, .08); }
}

/* ---------- Fit to screen ---------- */
:root { --banner-h: 0px; --sea-h: clamp(110px, min(17vw, 19vh), 210px); }
html[data-draft] { --banner-h: 33px; }
.hero-sea { height: var(--sea-h); }
@media (min-width: 961px) {
  /* The first screen holds the whole hero: headline, buttons, points and phone */
  .hero { min-height: calc(100svh - var(--banner-h)); display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--header-h) + clamp(14px, 3.5vh, 48px)) 0 clamp(14px, 3vh, 32px); }
  .hero-copy { padding-bottom: calc(var(--sea-h) - clamp(14px, 3vh, 32px)); }
  .hero-title { font-size: clamp(2.3rem, min(1.2rem + 3.8vw, 8.6vh), 4.4rem); }
  .hero-lede { font-size: clamp(1rem, min(1rem + .35vw, 2.7vh), 1.25rem); margin-bottom: clamp(1rem, 3.2vh, 2rem); }
  .hero-actions { margin-bottom: clamp(.9rem, 3.2vh, 2.2rem); }
  .phone { width: clamp(180px, calc((100svh - var(--banner-h) - var(--header-h) - 7vh - 44px) / 2.16), 262px); }

  /* Section heads: headline left, intro right, so the content starts sooner */
  .section-head:not(.sticky-head) { max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: clamp(32px, 5vw, 80px); align-items: end; }
  .section-head:not(.sticky-head) > * { grid-column: 1; }
  .section-head:not(.sticky-head) > h2 { margin-bottom: 0; }
  .section-head:not(.sticky-head) > .section-lede { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; }

  /* What you get */
  .feature { padding: clamp(20px, min(2.4vw, 3.6vh), 36px); }
  .feature-num { margin-bottom: 10px; }

  /* Options & pricing */
  .plan { padding: clamp(22px, min(2.4vw, 3.6vh), 34px); }
  .plan h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }
  .plan-price { font-size: clamp(2.1rem, min(1.8rem + 1.4vw, 6vh), 3rem); margin: .3em 0 .45em; }
  .plan-list { gap: 8px; padding-top: 16px; margin-bottom: 20px; font-size: .93rem; }
  .plans-note { margin-top: 18px; }

  /* Examples */
  .demo { --view-h: clamp(220px, 36vh, 320px); }
  .demo figcaption { padding-top: 12px; }
  .demos-hint { margin-top: 16px; }

  /* How it works */
  .steps { gap: clamp(18px, 3.4vh, 48px); }
  .step h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.7rem); }

  /* FAQ: headline left (stays put), questions right */
  .faq-wrap { max-width: var(--container); display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); column-gap: clamp(32px, 6vw, 90px); align-items: start; }
  .faq-wrap > .section-head { display: block; }
  .faq summary { padding: clamp(14px, 2.2vh, 22px) 0; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); }

  /* Contact form */
  .form { padding: clamp(20px, min(3vw, 4vh), 40px); }
  .field { margin-bottom: 14px; }
  textarea { min-height: 76px; }
  .field-row--top .field { margin-bottom: 14px; }
  .chip span { min-height: 40px; padding: 6px 13px; font-size: .88rem; }
  .plan-desc { font-size: .93rem; }
  .plan-list { gap: 6px; padding-top: 12px; }
  .plans-note { font-size: .82rem; }
  .feature p { font-size: .95rem; line-height: 1.55; }
  .feature h3 { margin-bottom: .35em; }
}
@media (min-width: 961px) and (max-height: 820px) {
  /* Laptop screens: a little tighter still */
  :root { --section-y: clamp(48px, 8vh, 96px); }
  .section-head { margin-bottom: clamp(22px, 4vh, 40px); }
}

/* ---------- Signature: breakwater builds itself as you scroll ----------
   Scroll-linked (JS sets each block's transform), sticky stage, no scroll-jacking.
   Default (no JS / reduced motion) = finished wall with the lamp on and no looping motion. */
.build { position: relative; background: radial-gradient(90% 70% at 30% 100%, var(--ink) 0%, var(--abyss) 70%); color: var(--on-dark); }
.build.is-js { height: 260vh; }
.build-stage { padding: var(--section-y) 0; }
.build.is-js .build-stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); padding: clamp(20px, 4vh, 48px) 0; display: flex; align-items: center; overflow: hidden; }
.build-inner { display: grid; gap: clamp(14px, 2.4vh, 28px); }
.build.is-js .build-inner { flex: none; min-width: 0; }  /* keep the .container width; growing would go full-bleed */
.build-head { max-width: 760px; }
.build-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); margin-bottom: .25em; }
.build-head h2 em { color: var(--accent-text); }
.build-head .section-lede { color: var(--on-dark-muted); margin: 0; }
.build-scene { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 560; max-height: min(50svh, var(--scene-fit, 50svh)); max-width: var(--scene-w, none); border-radius: var(--radius); }   /* --scene-fit: set by main.js so the pinned stage fits short screens */
.build-scene .b { transform-box: fill-box; transform-origin: 50% 100%; }
.build-scene .pole { transform-box: fill-box; transform-origin: 50% 100%; }
.build-scene .rail { stroke-dasharray: 1; stroke-dashoffset: 0; }
.build-scene .lamp-glow { transition: opacity .8s var(--ease-out); }
.build-scene .breaker, .build-scene .spray circle { opacity: 0; }
.build-scene .sea-a { animation: sea-drift 22s linear infinite; }
.build-scene .sea-b { animation: sea-drift 15s linear infinite reverse; }
@keyframes sea-drift { to { transform: translateX(-600px); } }
.build.is-paused .build-scene * { animation-play-state: paused !important; }

/* Lit: a wave rolls in, breaks on the seaward steps and throws spray; the lamp breathes */
.build.is-lit .breaker { animation: breaker 5.5s var(--ease-in-out) infinite; }
.build.is-lit .spray circle { transform-box: fill-box; transform-origin: center; animation: spray 5.5s var(--ease-out) infinite; animation-delay: calc(var(--sd) + 0s); }
.build.is-lit .lamp-glow { animation: lamp 5.5s ease-in-out infinite; }
@keyframes breaker {
  0% { transform: translate(-260px, 392px) scale(1); opacity: 0; }
  10% { opacity: 1; }
  42% { transform: translate(-11px, 344px) scale(1.8); opacity: 1; }
  50% { transform: translate(10px, 422px) scale(2, .5); opacity: 0; }
  100% { transform: translate(10px, 422px) scale(2, .5); opacity: 0; }
}
@keyframes spray {
  0%, 46% { transform: translate(0, 0) scale(.4); opacity: 0; }
  50% { opacity: .95; }
  70% { transform: translate(var(--sx), var(--sy)) scale(1); opacity: .7; }
  82%, 100% { transform: translate(calc(var(--sx) * 1.2), calc(var(--sy) * .8 + 30px)) scale(.6); opacity: 0; }
}
@keyframes lamp { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }

.build-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: none; }
.build-list li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-dark); background: rgba(244, 238, 228, .03); transition: border-color .5s var(--ease-out), background-color .5s var(--ease-out), opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.build-list .bl-num { font-size: .75rem; font-weight: 800; letter-spacing: .12em; color: var(--accent-text); }
.build-list strong { font-family: var(--font-display); font-size: 1.02rem; }
.build-list li > span:last-child { font-size: .86rem; color: var(--on-dark-muted); line-height: 1.35; }
.build.is-js .build-list li { opacity: .42; }
.build.is-js .build-list li.is-on { opacity: 1; border-color: rgba(255, 163, 125, .55); background: rgba(255, 163, 125, .08); }

@media (max-width: 960px) {
  .build.is-js { height: 230vh; }
  .build-list { grid-template-columns: 1fr 1fr; }
  .build-list li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .build-scene { aspect-ratio: 1.3; max-height: min(38svh, var(--scene-fit, 38svh)); }
  .build:not(.no-pin) .build-head .section-lede { display: none; }   /* keep the sticky stage within one phone screen; shown again when not pinned (zoom) */
  .build-list { grid-template-columns: 1fr; gap: 6px; }
  .build-list li { grid-template-columns: auto auto 1fr; align-items: baseline; gap: 10px; padding: 8px 12px; }
  .build-list li:last-child { grid-column: auto; }
  .build-list li > span:last-child { font-size: .8rem; }
}
@media (max-height: 700px) and (min-width: 601px) {
  .build:not(.no-pin) .build-head .section-lede { display: none; }
  .build:not(.no-pin) .build-head h2 { font-size: clamp(1.8rem, 7vh, 3.4rem); }   /* short laptop screens: smaller heading leaves the wall and 01-05 room to breathe */
}
/* Short, wide screens (set by main.js): the 01-05 list sits beside the wall so the wall isn't squashed */
.build.is-side .build-inner { grid-template-columns: minmax(0, 1fr) clamp(240px, 24vw, 310px); column-gap: clamp(16px, 2vw, 28px); align-items: center; }
.build.is-side .build-head { grid-column: 1 / -1; }
.build.is-side .build-list { grid-template-columns: 1fr; gap: clamp(5px, 1vh, 8px); }
.build.is-side .build-list li { grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; padding: clamp(6px, 1.2vh, 9px) 14px; }
.build.is-side .build-list li:last-child { grid-column: auto; }
.build.is-side .build-list li > span:last-child { grid-column: 1 / -1; }

/* ---------- Reduced motion: final readable state, no looping motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .hero-in, .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .wave, .ticker-track, .phone, .mini-btn--pulse, .phone-scroll .mini, .phone-shadow, .p-spray-a, .p-spray-b { animation: none !important; }
  .to-top, .to-top svg, .theme-toggle svg { transition: none; }
  [data-depth] { translate: none !important; }
  .ticker-track { flex-wrap: wrap; width: auto; }
  .ticker ul + ul { display: none; }
  .ticker ul { flex-wrap: wrap; justify-content: center; }
  .demo:hover .mock, .demo:focus-within .mock, .demo:hover .shot, .demo:focus-within .shot { transform: none; }
  .js .steps::after { --progress: 1 !important; }
  .build.is-js { height: auto; }
  .build.is-js .build-stage { position: static; height: auto; padding: var(--section-y) 0; }
  .build-scene .b, .build-scene .pole { transform: none !important; opacity: 1 !important; }
  .build-scene .rail { stroke-dashoffset: 0 !important; }
  .build.is-js .build-list li { opacity: 1; }
}

@media print {
  .site-header, .hero-sea, .ticker, .draft-banner, .form, .to-top, .motion-toggle { display: none; }
  .js [data-reveal], .js .hero-in { opacity: 1; transform: none; }
}
