/* =============================================================
   Ideas Eléctricas — styles
   Archetype: Editorial Light (white base, deep green / blue accents)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg:      #FFFFFF;   /* white base */
  --bg-2:    #F4F8F6;   /* soft section tint */
  --bg-3:    #FFFFFF;   /* card */
  --navy:    #F1F6FB;   /* business section, cool tint */
  --navy-2:  #E7F0F9;
  --forest:  #E2F5EB;

  --ink:     #0C1B21;   /* text on light, never pure black */
  --ink-2:   #3D545E;
  --ink-3:   #66798A;   /* metadata */

  --accent:   #0A8A5C;  /* deep electric green — readable on white */
  --accent-2: #07704A;
  --accent-ink: #FFFFFF;
  --glow:     #42E29E;  /* bright green, decorative only */
  --sky:      #2A72B5;  /* secondary cool blue */

  --line:    rgba(12, 27, 33, .1);
  --line-2:  rgba(12, 27, 33, .18);

  /* channel tokens so translucent effects follow the section theme */
  --bg-rgb:     255, 255, 255;
  --surface:    #FFFFFF;
  --ink-rgb:    12, 27, 33;
  --accent-rgb: 10, 138, 92;
  --sky-rgb:    42, 114, 181;
  --grain-blend: multiply;
  /* logo palette (the rainbow bulb) for small brand accents */
  --brand-spectrum: linear-gradient(90deg, #E5322D, #F28C28, #F7C51E, #42E29E, #3D8BEA);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1240px;
  --radius: 22px;
  --nav-h: 72px;
  --bar-h: 0px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark sections: charcoal from the logo's black badge, warm-neutral ink to sit
   with the warm-lit project photos. Tokens cascade, so every component inside
   re-themes itself. */
.theme-dark,
.js .nav:not(.is-solid) {
  --bg:      #0F1012;
  --bg-rgb:  15, 16, 18;
  --bg-2:    #16181B;
  --bg-3:    #1C1F23;
  --surface: #1C1F23;
  --navy:    #101318;
  --navy-2:  #141A21;
  --forest:  #0F1D16;

  --ink:     #F3F1EC;
  --ink-rgb: 243, 241, 236;
  --ink-2:   #C4C0B8;
  --ink-3:   #8E8A83;

  --accent:     #42E29E;
  --accent-rgb: 66, 226, 158;
  --accent-2:   #1FA474;
  --accent-ink: #06140E;
  --sky:        #7DB8F0;
  --sky-rgb:    125, 184, 240;

  --line:   rgba(243, 241, 236, .12);
  --line-2: rgba(243, 241, 236, .2);
  --grain-blend: overlay;
  color: var(--ink);
}
html:not(.js) .nav { background: rgba(255, 255, 255, .95); border-bottom-color: var(--line); }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  padding-bottom: var(--bar-h);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-weight: 400; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.section-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 350;
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  max-width: 16ch;
}
.section-title em, .hero-title em, .path-card h3 em, .svc-end h3 em {
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--accent);
}
.lede { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--ink-2); max-width: 52ch; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: -.005em;
  transform: translate3d(var(--bx), var(--by), 0);
  transition: transform .5s var(--ease-out), background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .4s var(--ease-out);
  white-space: nowrap;
}
.btn .ico { width: 1.15em; height: 1.15em; transition: transform .45s var(--ease-out); }
.btn:hover .ico:last-child { transform: translateX(3px); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0), 0 10px 26px -10px rgba(var(--accent-rgb), .55);
}
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .12), 0 16px 36px -12px rgba(var(--accent-rgb), .6); }
.theme-dark .btn-primary:hover, .js .nav:not(.is-solid) .btn-primary:hover { background: #5BF0B0; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), .06); }
.btn-small { min-height: 40px; padding: .5rem 1rem; font-size: .88rem; }
.btn-lg { min-height: 56px; padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* Placeholder frames for future photos */
.ph {
  position: relative;
  display: grid; place-items: center; align-content: center; gap: .6rem;
  overflow: hidden;
  color: var(--ink-3);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; text-align: center;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(66, 226, 158, .10), transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(116, 185, 240, .10), transparent 55%),
    repeating-linear-gradient(135deg, rgba(233, 242, 236, .035) 0 1px, transparent 1px 14px),
    var(--bg-2);
  border: 1px dashed rgba(233, 242, 236, .16);
  border-radius: calc(var(--radius) - 6px);
}
.ph .ico { width: 30px; height: 30px; stroke-width: 1.3; color: var(--ink-3); opacity: .8; }
.ph figcaption, .ph > span { padding-inline: 1rem; }
.ph::after { /* slow scanning light */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(233, 242, 236, .06) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: phScan 6s var(--ease-soft) infinite;
}
@keyframes phScan { 60%, 100% { transform: translateX(100%); } }

/* Frames once a photo is in place */
.ph.has-img { display: block; border: 1px solid var(--line); background: var(--bg-2); }
.ph.has-img::after { display: none; }
.ph.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.footer-credits a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-credits a:hover { color: var(--accent); }

/* Photo credits page */
.page-credits main { max-width: 860px; margin: 0 auto; padding: 7rem 1.25rem 4rem; }
.page-credits h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.02em; margin-bottom: 1rem; }
.page-credits .lede { color: var(--ink-2); margin-bottom: 2.4rem; }
.page-credits a { color: var(--accent); }
.credits-back { position: fixed; top: 1.2rem; left: 1.25rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.credits-list { list-style: none; padding: 0; display: grid; gap: .8rem; }
.credits-list li { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); font-size: .9rem; color: var(--ink-2); }
.credits-list img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.credits-list strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: .2rem; }

.chip {
  display: inline-flex; align-items: center;
  padding: .2rem .6rem; border-radius: 999px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sky); border: 1px solid rgba(var(--sky-rgb), .35);
}

/* Shared tilt + halo */
[data-tilt] {
  --rx: 0deg; --ry: 0deg; --hx: 50%; --hy: 50%;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease-out), border-color .4s var(--ease-out), background-color .4s var(--ease-out);
  transform-style: preserve-3d;
}
[data-tilt].is-tilting { transition: transform .12s linear, border-color .4s var(--ease-out); }
.svc-halo, .path-halo {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--hx) var(--hy), rgba(66, 226, 158, .14), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
[data-tilt]:hover .svc-halo, [data-tilt]:hover .path-halo { opacity: 1; }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .7s var(--ease-out), clip-path .9s var(--ease-out), visibility 0s .9s;
  clip-path: inset(0 0 0 0);
  animation: splashSafety .01s 3s forwards;   /* safety net if JS fails */
}
.splash.is-out { opacity: 0; clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; clip-path: inset(0 0 100% 0); pointer-events: none; visibility: hidden; } }
.splash-inner { display: grid; justify-items: center; gap: 1rem; }
.splash-bolt { width: 56px; height: 56px; fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linejoin: round; }
.splash-bolt path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1s var(--ease-out) forwards, boltFill .4s .8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes boltFill { to { fill: var(--accent); } }
.splash-word { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .02em; color: var(--ink-2); opacity: 0; animation: fadeUp .8s .3s var(--ease-out) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-solid { background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav-inner {
  height: var(--nav-h);
  max-width: calc(var(--maxw) + 120px); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 20px -6px rgba(10, 138, 92, .55);
}
.brand-mark svg { width: 20px; height: 20px; fill: var(--accent-ink); }
.brand-logo img { height: 46px; width: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45); }
.brand-logo-lg img { height: 72px; border-radius: 14px; }
.brand-word { font-family: var(--serif); font-size: 1.18rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.brand-word em { color: var(--accent); font-variation-settings: "SOFT" 100; }
.nav-links { display: none; gap: 1.8rem; margin-left: auto; font-size: .92rem; color: var(--ink-2); }
.nav-links a { position: relative; padding-block: .3rem; transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.nav-call, .nav-quote { display: none; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
}
.lang-btn {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
  min-width: 38px; min-height: 32px; padding: 0 .6rem; border-radius: 999px; color: var(--ink-3);
  transition: background-color .3s, color .3s;
}
.lang-btn.is-active { background: var(--ink); color: var(--bg); }
.nav-current { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.nav-current span {
  display: block; height: 100%; width: 100%;
  transform-origin: left; transform: scaleX(var(--p, 0));
  background: var(--brand-spectrum);
  box-shadow: 0 0 10px rgba(247, 197, 30, .45);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 6rem;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(55% 45% at 88% 8%, rgba(245, 165, 36, .14), transparent 70%),  /* warm light, like the project photos */
    radial-gradient(130% 80% at 50% 120%, var(--forest) 0%, transparent 60%),
    var(--bg);
}
/* Background photo: the technician in the branded shirt, faded under a veil
   so the headline keeps full contrast */
.hero-photo {
  position: absolute; inset: 0; z-index: -5;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 28% 70%;   /* keep the shirt logo in frame */
  opacity: .8;
  filter: brightness(1.6) saturate(.9) contrast(1.05);
}
.hero-veil {
  position: absolute; inset: 0; z-index: -4; pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 45%, rgba(var(--bg-rgb), .6), rgba(var(--bg-rgb), .25) 70%, rgba(var(--bg-rgb), .1)),
    linear-gradient(180deg, rgba(var(--bg-rgb), .55) 0%, transparent 30%, transparent 65%, rgba(var(--bg-rgb), .85) 100%);
}
@media (min-width: 960px) {
  .hero-photo { object-position: 50% 68%; }
  .hero-veil {
    background:
      radial-gradient(45% 50% at 50% 48%, rgba(var(--bg-rgb), .62), rgba(var(--bg-rgb), .2) 75%, transparent),
      linear-gradient(180deg, rgba(var(--bg-rgb), .55) 0%, transparent 30%, transparent 65%, rgba(var(--bg-rgb), .85) 100%);
  }
}
.hero-mesh {
  position: absolute; inset: -20%; z-index: -3;
  background:
    conic-gradient(from var(--mesh-angle) at 30% 40%, rgba(31, 164, 116, .5), transparent 25%, rgba(61, 139, 234, .35) 45%, transparent 65%, rgba(31, 164, 116, .5)),
    radial-gradient(40% 40% at 75% 65%, rgba(245, 165, 36, .18), transparent 70%);
  filter: blur(80px) saturate(120%);
  opacity: .45;
  animation: meshSpin 28s linear infinite;
}
@keyframes meshSpin { to { --mesh-angle: 360deg; } }
.hero-glow {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 40%), rgba(66, 226, 158, .12), transparent 60%);
}
.hero-circuit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-circuit .traces path { fill: none; stroke: rgba(var(--ink-rgb), .08); stroke-width: 1.4; }
.hero-circuit .pulses path {
  fill: none; stroke: var(--glow); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 70 930; stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 5px rgba(66, 226, 158, .7));
  animation: pulse var(--t, 7s) var(--d, 0s) linear infinite;
}
@keyframes pulse { to { stroke-dashoffset: -70; } }
.hero-circuit .nodes circle { fill: var(--bg); stroke: rgba(var(--accent-rgb), .55); stroke-width: 1.5; }
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .06; mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after { /* bottom fade into next section */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-inner { position: relative; display: grid; justify-items: center; text-align: center; max-width: 980px; }
.hero-inner::before { /* contrast halo behind text */
  content: ""; position: absolute; inset: -10% -12%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(var(--bg-rgb), .85) 0%, rgba(var(--bg-rgb), .5) 50%, transparent 75%);
  filter: blur(10px);
}
.hero-meta {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .95rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(var(--bg-rgb), .65);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .5); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); } }
.hero-glyph { display: flex; align-items: center; gap: 1.1rem; margin-block: 2rem 1.4rem; color: var(--accent); opacity: .9; }
.hero-glyph svg { height: 22px; width: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.hero-glyph svg + svg { padding-left: 1.1rem; border-left: 1px solid var(--line-2); box-sizing: content-box; }
.hero-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 330;
  font-size: clamp(2.6rem, 8.2vw, 7rem);
  line-height: .98;
  letter-spacing: -.028em;
  max-width: 14ch;
}
.hero-title .line { display: block; overflow: clip; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; }
.hero-title .line + .line { color: var(--ink-2); font-size: .62em; letter-spacing: -.012em; margin-top: .15em; }
.hero-sub { margin-top: 1.6rem; max-width: 56ch; color: var(--ink-2); font-size: clamp(1rem, 1.35vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.2rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto); gap: 0; margin-top: 3rem;
  border: 1px solid var(--line); border-radius: 18px; background: rgba(var(--bg-rgb), .7);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .3);
}
.hero-stats > div { padding: .9rem 1.2rem; text-align: left; }
.hero-stats > div + div { border-left: 1px solid var(--line); }
.hero-stats dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.hero-stats dd { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); line-height: 1.3; }
.hero-stats dd.mono { font-family: var(--mono); font-size: 1.05rem; color: var(--accent); line-height: 1.6; }
.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 20px; border: 1px solid var(--line-2);
  display: none;
}
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--accent); animation: scrollDot 2s var(--ease-out) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Hero intro (only when JS is running; content is visible without JS) */
.js .hero-title .line > span { transform: translateY(105%); }
.js .hero-meta, .js .hero-glyph, .js .hero-sub, .js .hero-actions, .js .hero-stats { opacity: 0; transform: translateY(16px); }
.js.is-loaded .hero-title .line > span { transform: none; transition: transform 1.2s var(--ease-out); }
.js.is-loaded .hero-title .line + .line > span { transition-delay: .12s; }
.js.is-loaded .hero-meta, .js.is-loaded .hero-glyph, .js.is-loaded .hero-sub, .js.is-loaded .hero-actions, .js.is-loaded .hero-stats {
  opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.js.is-loaded .hero-glyph { transition-delay: .1s; }
.js.is-loaded .hero-sub { transition-delay: .35s; }
.js.is-loaded .hero-actions { transition-delay: .45s; }
.js.is-loaded .hero-stats { transition-delay: .6s; }

/* ---------- Generic section spacing ---------- */
.paths, .business, .why, .work, .reviews, .quote { position: relative; padding-block: clamp(5rem, 11vw, 9rem); }

/* ---------- Paths ---------- */
.paths { padding-top: clamp(3rem, 7vw, 5rem); }
.paths-grid { display: grid; gap: 1rem; margin-top: 2.6rem; }
.path-card {
  position: relative; display: grid; align-content: start; gap: .9rem;
  min-height: 300px; padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--radius); border: 1px solid var(--line);
  overflow: hidden;
}
.path-home { background: linear-gradient(160deg, rgba(66, 226, 158, .22), rgba(226, 245, 235, .6) 50%, var(--bg-2)); }
.path-biz  { background: linear-gradient(160deg, rgba(116, 185, 240, .24), rgba(231, 240, 249, .7) 50%, var(--bg-2)); }
.path-card:hover { border-color: rgba(10, 138, 92, .45); }
.path-biz:hover { border-color: rgba(42, 114, 181, .5); }
.path-biz .path-halo { background: radial-gradient(420px circle at var(--hx) var(--hy), rgba(116, 185, 240, .18), transparent 60%); }
.path-num { font-size: .78rem; color: var(--ink-3); }
.path-ico { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-top: auto; }
.path-biz .path-ico, .path-biz h3 em { color: var(--sky); stroke: var(--sky); }
.path-card h3 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 350; }
.path-card p { color: var(--ink-2); max-width: 40ch; }
.path-go { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; color: var(--ink); }
.path-go .ico { transition: transform .5s var(--ease-out); }
.path-card:hover .path-go .ico { transform: translateX(6px); }

/* ---------- Home showcase (pinned horizontal on desktop) ---------- */
.showcase {
  position: relative;
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(66, 226, 158, .14), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #F1F9F5 100%);
  border-top: 1px solid var(--line);
}
.showcase-pin { padding-block: clamp(4.5rem, 9vw, 7rem); }
.showcase-head { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: 1.2rem; }
.showcase-hint { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.showcase-viewport { margin-top: 2.6rem; }
.showcase-track {
  display: flex; gap: 1rem;
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding: 1rem var(--gutter) 2rem;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.showcase-track::-webkit-scrollbar { display: none; }
.svc-card {
  position: relative; flex: 0 0 min(82vw, 340px);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-3);
  box-shadow: 0 18px 40px -28px rgba(12, 27, 33, .3);
  overflow: hidden;
}
.svc-card:hover { border-color: rgba(10, 138, 92, .4); }
.ph-card { aspect-ratio: 4 / 3; margin: .6rem .6rem 0; }
.svc-body { position: relative; display: grid; gap: .55rem; padding: 1.3rem 1.4rem 1.6rem; }
.svc-num { font-size: .72rem; color: var(--ink-3); }
.svc-ico { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3, .biz-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; letter-spacing: -.015em; }
.svc-card p, .biz-card p { color: var(--ink-2); font-size: .95rem; }
.svc-urgent { border-color: rgba(201, 122, 0, .35); }
.svc-urgent .svc-ico { stroke: #C47A00; }
.svc-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: .4rem; color: #A65F00; font-weight: 600; }
.svc-end {
  justify-content: center; gap: 1.2rem; padding: 2rem;
  background: radial-gradient(90% 70% at 50% 0%, rgba(66, 226, 158, .22), transparent 70%), var(--bg-2);
  border-style: dashed;
}
.svc-end h3 { font-size: 2rem; }
.svc-end .btn { align-self: flex-start; }

/* ---------- Business ---------- */
.business { background: radial-gradient(50% 40% at 100% 0%, rgba(61, 139, 234, .12), transparent 70%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); overflow: clip; border-top: 1px solid rgba(var(--sky-rgb), .15); }
.business .kicker, .business .section-title em { color: var(--sky); }
.business-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(var(--sky-rgb), .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--sky-rgb), .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 20%, #000, transparent 75%);
          mask-image: radial-gradient(70% 60% at 70% 20%, #000, transparent 75%);
}
.business-head { position: relative; display: grid; gap: 1.6rem; align-items: end; margin-bottom: 3rem; }
.business-head .lede { margin-bottom: 1.4rem; }
.biz-grid { position: relative; display: grid; gap: 1rem; }
.biz-card {
  position: relative; display: grid; gap: .6rem; align-content: start;
  padding: 1.7rem 1.6rem 1.9rem; border-radius: var(--radius);
  border: 1px solid rgba(var(--sky-rgb), .18);
  background: var(--surface);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .4);
  overflow: hidden;
}
.biz-card .svc-halo { background: radial-gradient(380px circle at var(--hx) var(--hy), rgba(116, 185, 240, .18), transparent 60%); }
.biz-card .svc-ico { stroke: var(--sky); margin-block: .4rem .3rem; }
.biz-card:hover { border-color: rgba(var(--sky-rgb), .45); }
.biz-num { font-size: .72rem; color: var(--ink-3); }

/* ---------- Why (flip strip) ---------- */
.why { background: var(--bg); }
.why-head { margin-bottom: 2.6rem; }
.ph-wide { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.why-hint { display: flex; align-items: center; gap: .5rem; margin: 2.6rem 0 1.2rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.flip-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.flip { perspective: 1000px; height: 210px; cursor: pointer; outline-offset: 4px; border-radius: 18px; }
.flip-inner {
  position: relative; height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0s);
}
.flip-face {
  position: absolute; inset: 0; border-radius: 18px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  display: grid; padding: 1.2rem;
  border: 1px solid var(--line);
}
.flip-front {
  align-content: space-between;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  box-shadow: 0 14px 30px -24px rgba(12, 27, 33, .35);
}
.flip-front h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.flip-ico { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.flip-tag { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.flip-back {
  transform: rotateY(180deg);
  align-content: center;
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  color: var(--accent-ink); border-color: transparent;
  font-size: .95rem; line-height: 1.5; font-weight: 500;
}
.flip-back strong { font-weight: 600; }
.flip:hover .flip-inner, .flip:focus-visible .flip-inner, .flip.is-flipped .flip-inner { transform: rotateY(180deg); }
@media (hover: none) { .flip:hover .flip-inner { transform: none; } .flip.is-flipped .flip-inner { transform: rotateY(180deg); } }

/* ---------- Work ---------- */
.work { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); border-top: 1px solid var(--line); }
.work-head { margin-bottom: 2.6rem; }
.work-grid { display: grid; gap: 1.6rem 1rem; }
.work-item { display: grid; gap: .8rem; }
.ph-photo { aspect-ratio: 4 / 3; transition: transform .8s var(--ease-out), border-color .4s; }
.work-item:hover .ph-photo { transform: scale(1.02); border-color: rgba(var(--accent-rgb), .4); }
.work { background: radial-gradient(60% 40% at 0% 100%, rgba(245, 165, 36, .08), transparent 70%), linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.work-item figcaption { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .95rem; color: var(--ink); }
.work-item figcaption .mono { font-size: .8rem; color: var(--ink-3); }

/* ---------- Reviews ---------- */
.reviews { background: var(--bg-2); }
.reviews-head { margin-bottom: 2.6rem; }
.reviews-grid { display: grid; gap: 1rem; }
.review {
  position: relative; display: grid; gap: 1.2rem; align-content: start;
  padding: 1.8rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-3); overflow: hidden;
  box-shadow: 0 18px 40px -30px rgba(12, 27, 33, .3);
}
.review::before {
  content: "“"; position: absolute; right: 1.2rem; top: .4rem;
  font-family: var(--serif); font-size: 7rem; line-height: .8; color: rgba(10, 138, 92, .12); pointer-events: none;
}
.review-top { display: flex; align-items: center; justify-content: space-between; }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 16px; height: 16px; fill: var(--accent); stroke: none; }
.review p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; font-weight: 350; }
.review footer { display: grid; gap: .1rem; font-size: .88rem; color: var(--ink-3); }
.review footer strong { color: var(--ink); font-weight: 600; }

/* ---------- Process ---------- */
.process { padding-block: 3rem; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; gap: 1.6rem; counter-reset: s; }
.step { position: relative; display: grid; gap: .3rem; padding-left: 3.4rem; }
.step-num { position: absolute; left: 0; top: .1rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid rgba(10, 138, 92, .45); color: var(--accent); font-size: .78rem; background: #fff; }
.step h3 { font-family: var(--serif); font-size: 1.35rem; }
.step p { color: var(--ink-2); font-size: .95rem; }

/* ---------- Quote ---------- */
.quote { background: var(--bg); overflow: clip; }
.quote-mesh {
  position: absolute; inset: 10% -20% -20% 30%; pointer-events: none;
  background: radial-gradient(45% 45% at 50% 50%, rgba(66, 226, 158, .2), transparent 70%), radial-gradient(35% 35% at 80% 20%, rgba(116, 185, 240, .16), transparent 70%);
  filter: blur(40px);
}
.quote-grid { position: relative; display: grid; gap: 3rem; }
.quote-phone {
  display: inline-flex; align-items: center; gap: .8rem; margin-block: 2rem 1.6rem;
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 350; letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--ink), var(--ink)) left bottom / 0 1px no-repeat;
  transition: background-size .6s var(--ease-out), color .3s;
}
.quote-phone .ico { width: .7em; height: .7em; color: var(--accent); }
.quote-phone:hover { background-size: 100% 1px; color: var(--accent); }
.contact-list { display: grid; gap: .8rem; color: var(--ink-2); }
.contact-list li { display: flex; align-items: flex-start; gap: .8rem; }
.contact-list .ico { margin-top: .25rem; color: var(--accent); }
.contact-list a { border-bottom: 1px solid var(--line-2); transition: color .3s, border-color .3s; word-break: break-word; }
.contact-list a:hover { color: var(--accent); border-color: var(--accent); }
.areas { margin-top: 2.2rem; }
.areas-title { display: flex; align-items: center; gap: .5rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .85rem; color: var(--ink-2); }

.quote-form {
  position: relative; align-self: start;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 40px 80px -40px rgba(12, 27, 33, .35);
  overflow: hidden;
}
@supports (backdrop-filter: blur(10px)) {
  .quote-form { background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
}
.form-body { display: grid; gap: 1rem; padding: clamp(1.3rem, 3vw, 2.2rem); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.seg { border: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.seg legend { grid-column: 1 / -1; font-size: .82rem; color: var(--ink-3); margin-bottom: .5rem; padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label > span {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; border-radius: 14px; border: 1px solid var(--line-2);
  font-weight: 600; color: var(--ink-2); transition: all .3s var(--ease-out);
}
.seg input:checked + span { border-color: var(--accent); background: rgba(10, 138, 92, .08); color: var(--accent-2); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field-row { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; font-size: .82rem; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  border-radius: 14px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font-size: 1rem;
  transition: border-color .3s, box-shadow .3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.6rem; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 138, 92, .12); }
.field.is-invalid input { border-color: #D64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, .1); }
.form-note { font-size: .86rem; color: var(--ink-3); text-align: center; }
.form-note a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.form-note a:hover { color: var(--accent); }

.form-done {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem;
  padding: 2rem; text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity .6s var(--ease-out), transform .7s var(--ease-out), visibility 0s .6s;
}
.form-done h3 { font-family: var(--serif); font-size: 2.2rem; }
.form-done p { color: var(--ink-2); max-width: 34ch; }
.done-check { width: 84px; height: 84px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done-check circle, .done-check path { stroke-dasharray: 100; stroke-dashoffset: 100; }
.quote-form.is-done .form-body { opacity: 0; transform: scale(.97); pointer-events: none; }
.quote-form.is-done .form-done { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .15s, 0s; }
.quote-form.is-done .done-check circle { animation: draw .9s .3s var(--ease-out) forwards; }
.quote-form.is-done .done-check path { animation: draw .6s .9s var(--ease-out) forwards; }

/* ---------- Footer ---------- */
.footer { position: relative; padding-block: 4rem 2rem; background: var(--bg); border-top: 1px solid var(--line); }
.footer::before { /* thin logo-colour rule */
  content: ""; position: absolute; inset: -1px 0 auto 0; height: 2px; background: var(--brand-spectrum); opacity: .85;
}
.footer-grid { display: grid; gap: 2rem; }
.footer-claim { margin-top: 1rem; color: var(--ink-3); max-width: 32ch; }
.footer-meta { display: grid; gap: .5rem; font-size: .82rem; color: var(--ink-2); }
.footer-meta a:hover, .footer-nav a:hover { color: var(--accent); }
.footer-nav { display: grid; gap: .5rem; color: var(--ink-2); font-size: .95rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-3); }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: .5rem; padding: .6rem .7rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line-2);
}
@supports (backdrop-filter: blur(10px)) {
  .action-bar { background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 50px; border-radius: 14px; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--line-2); color: var(--ink);
}
.action-bar .ab-wa { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.action-bar .ab-quote { border-color: rgba(42, 114, 181, .45); color: var(--sky); }
.action-bar .ico { width: 1.2em; height: 1.2em; }
:root { --bar-h: calc(70px + env(safe-area-inset-bottom)); }

/* =============================================================
   7. Effects — scroll reveals
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.js .flip.reveal { transition-delay: calc(var(--i, 0) * 70ms); }
.js .flip.reveal.is-visible .flip-inner { transition-delay: 0s; }
.js [data-tilt].reveal { transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), border-color .4s; }
.js [data-tilt].reveal.is-visible { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.js [data-tilt].reveal.is-visible.is-tilting { transition: transform .12s linear, border-color .4s, opacity 1s; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .flip-strip { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 539px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); text-align: center; }
  .hero-stats > div:last-child dd { display: inline; margin-left: .5rem; }
  .hero-stats > div:last-child dt { display: inline; }
  .hero-actions .btn { width: 100%; }
  .flip { height: 200px; }
  .flip-face { padding: 1rem; }
  .flip-front h3 { font-size: 1.12rem; hyphens: auto; overflow-wrap: anywhere; }
  .flip-back { font-size: .86rem; }
  .hero-meta { letter-spacing: .06em; font-size: .68rem; }
}
@media (min-width: 720px) {
  .paths-grid { grid-template-columns: 1fr 1fr; }
  .path-card { min-height: 380px; }
  .biz-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 960px) {
  :root { --bar-h: 0px; }
  .action-bar { display: none; }
  .nav-links { display: flex; }
  .nav-actions { margin-left: 1.4rem; }
  .nav-quote { display: inline-flex; }
  .hero-scroll { display: block; }
  .business-head { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .biz-grid { grid-template-columns: repeat(3, 1fr); }
  .biz-card { min-height: 270px; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .review:nth-child(2) { transform: translateY(2.5rem); }
  .js .review.reveal:nth-child(2).is-visible { transform: perspective(900px) translateY(2.5rem) rotateX(var(--rx)) rotateY(var(--ry)); }
  .reviews { padding-bottom: clamp(7rem, 13vw, 11rem); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .work-item:nth-child(3n+2) { margin-top: 3rem; }
  .flip-strip { grid-template-columns: repeat(6, 1fr); }
  .flip { height: 250px; }
  .why-head { display: grid; grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: start; }

  /* Pinned horizontal showcase (JS adds .is-pinned when GSAP is available) */
  .showcase.is-pinned .showcase-pin { height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; padding-block: calc(var(--nav-h) + 1.5rem) 2rem; overflow: hidden; }
  .showcase.is-pinned .showcase-head { grid-template-columns: 1.2fr 1fr; align-items: end; column-gap: 4rem; }
  .showcase.is-pinned .showcase-head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
  .showcase.is-pinned .showcase-hint { grid-column: 2; }
  .showcase.is-pinned .showcase-head { width: 100%; }
  .showcase.is-pinned .showcase-viewport { margin-top: 2rem; overflow: visible; min-width: 0; }
  .showcase.is-pinned .showcase-track { overflow: visible; scroll-snap-type: none; padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); width: max-content; will-change: transform; }
  .showcase.is-pinned .svc-card { flex-basis: 330px; }
  .showcase.is-pinned .section-title { font-size: clamp(2.2rem, 4.2vw, 3.8rem); }
  .showcase.is-pinned .ph-card { aspect-ratio: 16 / 10; }
}
@media (min-width: 960px) and (max-height: 760px) {
  .showcase.is-pinned .ph-card { display: none; }
}
@media (min-width: 1280px) {
  .nav-call { display: inline-flex; }
  .flip { height: 270px; }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-circuit .pulses path { animation-duration: calc(var(--t, 7s) * 2); }
  .dot { animation: none; }
  .ph::after { animation: none; display: none; }
  .hero-scroll span { animation: none; opacity: 1; }
}
