/* ===========================================================
   Complete digital… — Hero / header styles
   =========================================================== */

:root {
  --theme: #48cae4;
  --theme-deep: #00a8cf;
  --theme-soft: #ade8f4;
  --navy: #0a2540;
  --navy-soft: #41566b;
  --ink-faint: #6b7f93;
  --white: #ffffff;
  --paper: #f6fbfd;
  --line: rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 30px 60px -25px rgba(10, 37, 64, 0.35);
  --shadow-sm: 0 10px 30px -12px rgba(10, 37, 64, 0.25);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  /* clip (not hidden) so the page does NOT become a scroll container —
     position: sticky on the hero keeps working. */
  overflow-x: clip;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===========================================================
   Floating bubble navigation
   =========================================================== */
.nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: center;
  padding: 22px 20px 0;        /* gap that lets the bubble float off the top */
  z-index: 100;
  pointer-events: none;
}

.nav-bubble {
  pointer-events: auto;
  width: min(1080px, 100%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 11px 11px 11px 22px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-130%);
  opacity: 0;
  animation: navDrop 0.9s var(--bounce) 0.15s forwards;
}

@keyframes navDrop {
  to { transform: translateY(0); opacity: 1; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand-mark {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.brand-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--theme);
  animation: dotPulse 1.8s ease-in-out infinite;
}
.brand-dot:nth-child(2) { background: var(--theme-deep); animation-delay: 0.2s; }
.brand-dot:nth-child(3) { background: var(--navy); animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.55); opacity: 0.5; }
}

.brand-ellipsis { color: var(--theme-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-soft);
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover { color: var(--navy); background: rgba(72, 202, 228, 0.12); }
.nav-link.is-active { color: var(--navy); background: rgba(72, 202, 228, 0.18); }
.nav-icon {
  width: 17px; height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 19px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 8px 20px -8px rgba(10, 37, 64, 0.7);
  transition: transform 0.25s var(--ease-out), background 0.25s;
}
.nav-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-cta:hover { transform: translateY(-2px); background: #06182b; }

/* "Get a quote" inside the mobile dropdown — hidden on desktop where the
   standalone .nav-cta button is shown instead. */
.nav-links-cta { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 42px; height: 42px;
  border: none;
  background: rgba(72, 202, 228, 0.14);
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-burger span {
  width: 18px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 180px 24px 90px;
  overflow: hidden;
}

/* ---- Pinned phone showcase ---- */
/* Tall track drives the pinned-scroll; height set by JS = viewport + inner-site scroll. */
.hero-track { position: relative; }
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 86px 24px 38px;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, rgba(72, 202, 228, 0.10), transparent 58%);
}
.stage-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--theme-deep);
  background: rgba(72, 202, 228, 0.12);
  border: 1px solid rgba(72, 202, 228, 0.32);
  padding: 8px 17px;
  border-radius: 999px;
  opacity: 0;
}
.stage.revealed .stage-tag { animation: rise 0.6s var(--ease-out) 0.1s forwards; }

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.blob-1 {
  width: 620px; height: 620px;
  top: -180px; right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--theme-soft), transparent 70%);
  animation: blobFloat 14s ease-in-out infinite;
}
.blob-2 {
  width: 520px; height: 520px;
  bottom: -200px; left: -140px;
  background: radial-gradient(circle at 60% 40%, rgba(72, 202, 228, 0.45), transparent 70%);
  animation: blobFloat 18s ease-in-out infinite reverse;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}

/* ---- Flying tools ---- */
.tools { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tool {
  position: absolute;
  top: var(--rest-top);
  left: var(--rest-left, auto);
  right: var(--rest-right, auto);
  opacity: 0;
  transform: translate(var(--dx), var(--dy)) rotate(var(--dr));
  transition: transform 1.3s var(--ease-out), opacity 0.7s ease;
  transition-delay: var(--delay);
  will-change: transform, opacity;
}
.loaded .tool { opacity: 1; transform: translate(0, 0) rotate(0); }

.tool-art {
  width: 118px;
  filter: drop-shadow(0 14px 18px rgba(10, 37, 64, 0.18));
  animation: toolFloat 6s ease-in-out infinite;
}
.tool-sm .tool-art { width: 78px; }
.tool[data-tool="ruler"] .tool-art { width: 100px; }
.tool[data-tool="bolt"] .tool-art { width: 60px; }
.tool[data-tool="screw"] .tool-art { width: 38px; }
.tool-art svg { width: 100%; height: auto; display: block; }

@keyframes toolFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}
.tool[data-tool="bolt"] .tool-art,
.tool[data-tool="roller"] .tool-art { animation-duration: 5s; }
.tool[data-tool="screw"] .tool-art { animation-duration: 7s; }

.tool-spark { position: relative; }
.tool-spark::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 202, 228, 0.55), transparent 65%);
  animation: zap 2.4s ease-in-out infinite;
}
@keyframes zap {
  0%, 100% { opacity: 0.2; transform: scale(0.85); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

/* ---- Particles ---- */
.particles { position: absolute; inset: 0; }
.spark, .dust {
  position: absolute;
  left: var(--px); top: var(--py);
  opacity: 0;
}
.spark {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--theme);
  box-shadow: 0 0 8px var(--theme);
  animation: sparkFly 2.2s var(--d) ease-in infinite;
}
.dust {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #c79a6b;
  animation: dustFall 3.2s var(--d) ease-in infinite;
}
@keyframes sparkFly {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(26px, 34px) scale(0.2); }
}
@keyframes dustFall {
  0% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: 0.8; }
  100% { opacity: 0; transform: translate(-14px, 46px); }
}

/* ---- Hero copy ---- */
.hero-copy {
  position: relative;
  z-index: 5;
  width: min(800px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s var(--ease-out) forwards;
}
.eyebrow { animation-delay: 0.35s; }
.headline { animation-delay: 0.5s; }
.subhead { animation-delay: 0.65s; }
.hero-actions { animation-delay: 0.8s; }
.hero-trust { animation-delay: 0.95s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  background: rgba(72, 202, 228, 0.14);
  border: 1px solid rgba(72, 202, 228, 0.35);
  color: var(--theme-deep);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--theme-deep);
  box-shadow: 0 0 0 0 rgba(0, 168, 207, 0.5);
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(0, 168, 207, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(0, 168, 207, 0); }
}

.headline {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5.2vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.headline-accent {
  position: relative;
  color: var(--theme-deep);
  background: linear-gradient(120deg, var(--theme-deep), var(--theme));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.headline-accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.42em;
  background: rgba(72, 202, 228, 0.22);
  border-radius: 4px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 0.8s var(--ease-out) 1.2s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

.subhead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--navy-soft);
  max-width: 30em;
  margin-bottom: 30px;
}
.subhead strong { color: var(--navy); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  background: linear-gradient(120deg, var(--theme-deep), var(--theme));
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(0, 168, 207, 0.7);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 38px -12px rgba(0, 168, 207, 0.8); }
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--theme); }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--ink-faint);
}
.hero-trust strong { color: var(--navy); }
.stars { color: #ffb703; letter-spacing: 2px; font-size: 1.05rem; }

/* ===========================================================
   Phone that flies up (entrance triggered when the stage scrolls in)
   =========================================================== */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-glow {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 202, 228, 0.5), transparent 65%);
  filter: blur(50px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.stage.revealed .phone-glow { animation: glowIn 1s ease 0.3s forwards; }
@keyframes glowIn { to { opacity: 1; } }

.phone {
  position: relative;
  width: 264px;
  height: 540px;
  background: linear-gradient(160deg, #16324f, #0a2540);
  border-radius: 42px;
  padding: 13px;
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 0 0 6px #06182b;
  /* Fly-up entrance: rises into place when the stage reveals */
  transform: translateY(110px) scale(0.94);
  opacity: 0;
  z-index: 2;
}
.stage.revealed .phone {
  animation: phoneFlyUp 1.2s var(--ease-out) forwards,
             phoneIdle 7s ease-in-out 1.5s infinite;
}
@keyframes phoneFlyUp {
  0%   { transform: translateY(110px) scale(0.94); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes phoneIdle {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #ffffff, var(--paper));
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Swappable inner website. JS renders it at a real phone viewport width and
   scales it to fit. Interactive by default (you scroll it inside the frame);
   when JS can read/receive its height it adds .is-pinned and drives the
   page-scroll-through effect instead. */
.phone-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;             /* JS sets a fixed reference width and scales to fit */
  height: 100%;            /* JS overrides to the screen-filling / content height */
  transform-origin: top left;
  border: 0;
  display: block;
  background: #fff;
  opacity: 0;
}
/* Pinned mode is page-driven, so the iframe shouldn't capture scroll/touch. */
.phone-frame.is-pinned { pointer-events: none; will-change: transform; }
.stage.revealed .phone-frame { animation: glowIn 0.7s ease 0.55s forwards; }

.phone-shadow {
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  width: 210px; height: 28px;
  background: rgba(10, 37, 64, 0.28);
  filter: blur(18px);
  border-radius: 50%;
  opacity: 0;
}
.stage.revealed .phone-shadow { animation: glowIn 0.8s ease 0.5s forwards; }

/* Scroll-reveal */
.reveal { opacity: 0; }
.reveal.in { animation: rise 0.75s var(--ease-out) forwards; }

/* ===========================================================
   Section 1: "so you can ..." rotating words
   =========================================================== */
.relax {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  background: linear-gradient(180deg, var(--paper) 0%, #fff 100%);
}
.relax-inner { width: min(900px, 100%); }
.relax-h {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.rotator {
  height: 1.2em;
  overflow: hidden;
  margin: 8px auto 36px;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.rotator-list { display: flex; flex-direction: column; animation: rollWords 11s cubic-bezier(0.7, 0, 0.2, 1) infinite; }
.rotator-list span {
  display: block;
  height: 1.2em;
  white-space: nowrap;
  background: linear-gradient(120deg, var(--theme-deep), var(--theme));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes rollWords {
  0%, 13%       { transform: translateY(0%); }
  16.6%, 29.6%  { transform: translateY(-16.667%); }
  33.3%, 46.3%  { transform: translateY(-33.333%); }
  50%, 63%      { transform: translateY(-50%); }
  66.6%, 79.6%  { transform: translateY(-66.667%); }
  83.3%, 100%   { transform: translateY(-83.333%); }
}
.relax-sub {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 14px;
}
.relax-sub strong { color: var(--theme-deep); }
.relax-stat {
  display: inline-block;
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  color: var(--navy-soft);
  background: rgba(72, 202, 228, 0.12);
  border: 1px solid rgba(72, 202, 228, 0.3);
  padding: 10px 20px;
  border-radius: 999px;
}
.relax-stat strong { color: var(--theme-deep); }

/* ===========================================================
   Section 2: white cover + scroll-driven conveyor
   =========================================================== */
/* Overlap the previous section so the white panel rises OVER it. */
.awd { position: relative; z-index: 2; margin-top: -100vh; }
.awd-track { position: relative; }   /* height set by JS */
.awd-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
/* White panel slides up from below to cover the previous section. */
.awd-panel {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  transform: translateY(100%);
  will-change: transform;
  display: flex;
  flex-direction: column;
}
.awd-head {
  flex: 0 0 auto;
  padding: 118px 24px 0;
}
.awd-title {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 12px;
}
.awd-conveyor {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  will-change: opacity;
}
.awd-item {
  position: absolute;
  top: 50%;
  left: clamp(20px, 8vw, 90px);
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 6vw, 3.4rem);
  letter-spacing: -0.02em;
  color: var(--navy);
  white-space: nowrap;
  will-change: transform, opacity;
}
.awd-item.active {
  background: linear-gradient(120deg, var(--theme-deep), var(--theme));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.awd-outro {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}
.awd-outro h2 {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 5rem);
  letter-spacing: -0.03em;
  color: var(--navy);
}

/* Scroll hint inside the pinned awd panel */
.awd-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.45;
  pointer-events: none;
}
.awd-scroll-line {
  width: 1.5px;
  height: 36px;
  background: var(--navy);
  border-radius: 1px;
  animation: scrollPulse 1.6s ease-in-out infinite;
  transform-origin: top center;
}
.awd-scroll-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* "Book now" CTA at the bottom of the leads section */
.leads-cta { margin-top: 36px; }

/* light eyebrow used on dark backgrounds */
.eyebrow.light {
  background: rgba(72, 202, 228, 0.16);
  border-color: rgba(72, 202, 228, 0.4);
  color: var(--theme-soft);
}

/* "Our process" button under the rotator block */
.relax-link { margin-top: 28px; }

/* ===========================================================
   Plain text blocks: Instant quotes + Leads
   =========================================================== */
.block-h {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 5.4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.block-p {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.65;
  color: var(--navy-soft);
}

.quotes {
  padding: clamp(80px, 12vh, 130px) 24px;
  background: #fff;
}
.quotes-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.leads {
  padding: clamp(80px, 12vh, 130px) 24px clamp(90px, 14vh, 150px);
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}
.leads-inner { max-width: 980px; margin: 0 auto; }
.leads-copy { max-width: 640px; }

/* lead-warmth chart */
.warmth {
  margin: 44px 0 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  padding: 22px 22px 16px;
}
.warmth-svg { width: 100%; height: auto; display: block; overflow: visible; }
.warmth-axis { stroke: rgba(10, 37, 64, 0.18); stroke-width: 1.5; }
.warmth-mark { stroke: rgba(10, 37, 64, 0.28); stroke-width: 1.5; stroke-dasharray: 4 5; }
.warmth-mark-label,
.warmth-tick,
.warmth-ylabel {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink-faint);
}
.warmth-line {
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.warmth-line.hot { stroke: #ef4444; }
.warmth-line.cold { stroke: #3b82f6; }
.warmth.in .warmth-line { animation: drawLine 1.6s var(--ease-out) forwards; }
.warmth.in .warmth-line.cold { animation-delay: 0.18s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.warmth-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-soft);
}
.warmth-legend .key { display: inline-flex; align-items: center; gap: 8px; }
.warmth-legend .key::before {
  content: "";
  width: 18px; height: 4px;
  border-radius: 2px;
}
.warmth-legend .key.hot::before { background: #ef4444; }
.warmth-legend .key.cold::before { background: #3b82f6; }

/* monospace event feed — the quiet "we built our own" touch */
.feed {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--navy-soft);
}
.feed span {
  background: rgba(10, 37, 64, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  white-space: nowrap;
}
.feed span::before { content: "› "; color: var(--theme-deep); }

/* ===========================================================
   Contact — closing
   =========================================================== */
.contact {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 110px 24px;
  background: radial-gradient(120% 90% at 50% 0%, #123c5e, var(--navy));
  color: #fff;
  overflow: hidden;
}
.contact-h {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 6.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.contact-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 26em;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}
.contact .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.contact .btn-ghost:hover { border-color: var(--theme); }
.contact-links { margin-top: 16px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); }
.contact-links a { color: var(--theme-soft); border-bottom: 1px solid rgba(173, 232, 244, 0.4); }
.contact-links a:hover { color: #fff; }

/* ===========================================================
   Shared "stages" template (design.html + seo.html)
   Editorial vertical: ghosted numeral behind the text, a thin
   vertical rule running down the page connecting each stage.
   =========================================================== */
.page {
  padding: 150px 24px 110px;
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  min-height: 100vh;
}
.page-inner { max-width: 820px; margin: 0 auto; }
.page-title {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 16px 0 16px;
}
.page-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--navy-soft);
  max-width: 36em;
}

/* stat block (SEO page) */
.statblock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 40px 0 8px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 22px 18px;
}
.stat-num {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--theme-deep), var(--theme));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.92rem; line-height: 1.45; color: var(--navy); margin-top: 6px; }
.stat-src { font-size: 0.72rem; color: var(--ink-faint); margin-top: 8px; }

.stages {
  position: relative;
  margin-top: 56px;
}
.stages::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: clamp(20px, 6vw, 34px);
  width: 2px;
  background: linear-gradient(180deg, var(--theme-deep), rgba(72, 202, 228, 0.12));
}
.stage-row {
  position: relative;
  padding: 0 0 clamp(40px, 7vw, 64px) clamp(58px, 16vw, 92px);
}
.stage-row:last-child { padding-bottom: 0; }
.stage-node {
  position: absolute;
  left: clamp(20px, 6vw, 34px);
  top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--theme-deep);
  box-shadow: 0 0 0 5px rgba(72, 202, 228, 0.18);
  transform: translateX(-50%);
}
.stage-num {
  position: absolute;
  left: clamp(46px, 13vw, 78px);
  top: -0.34em;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(4.5rem, 16vw, 9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(10, 37, 64, 0.06);
  z-index: 0;
  pointer-events: none;
}
.stage-body { position: relative; z-index: 1; padding-top: 6px; }
.stage-title {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.stage-text {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  color: var(--navy-soft);
  max-width: 34em;
}

.page-sources {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-faint);
  line-height: 1.6;
}
.page-sources a { color: var(--theme-deep); }
.page-back { margin-top: 28px; }
.page-back a {
  font-weight: 600;
  color: var(--theme-deep);
  border-bottom: 1px solid rgba(0, 168, 207, 0.4);
  padding-bottom: 1px;
}
.page-back a:hover { color: var(--navy); border-color: var(--navy); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-bubble { padding: 10px 12px; position: relative; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
  }
  .nav-links.is-open { display: flex; }
  .nav-link { justify-content: center; padding: 12px; }

  .nav-links-cta { display: block; margin-top: 2px; }
  .nav-link-cta {
    background: var(--navy);
    color: #fff;
    font-weight: 600;
  }
  .nav-link-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .nav-link-cta:hover, .nav-link-cta.is-active { background: #06182b; color: #fff; }

  .subhead { margin-left: auto; margin-right: auto; }

  /* keep flying tools from crowding text on small screens */
  .tool[data-tool="wrench"], .tool[data-tool="screw"], .tool[data-tool="ruler"] { display: none; }
}

/* shorter viewports (desktop): clamp the phone height so it stays fully in
   view when pinned. */
@media (max-height: 760px) {
  .phone { width: auto; height: min(78vh, 540px); aspect-ratio: 264 / 540; }
}
@media (max-height: 660px) {
  .phone { width: auto; height: min(74vh, 470px); aspect-ratio: 264 / 540; }
  .stage { gap: 16px; padding-top: 72px; }
}

/* Mobile: bigger phone (~85vw, capped at 380px for tablets), aspect ratio
   locked, and also capped by the available height so the whole phone plus
   ~24px breathing stays in view. The inner UI scales (see script.js) rather
   than reflowing. Placed last so it wins over the height rules above on
   phones; the 190px reserves nav clearance + the stage-tag + padding. */
@media (max-width: 560px) {
  .hero { padding-top: 140px; }
  .phone {
    width: min(85vw, 380px, calc((100vh - 190px) * 264 / 540));
    height: auto;
    aspect-ratio: 264 / 540;
  }
  .stage { padding: 92px 16px 24px; }
  .tool-art { width: 84px; }
  .tool[data-tool="roller"] { --rest-right: 2%; }
  .tool[data-tool="wood"] { --rest-left: 2%; }

  /* Centre conveyor items: span the full content width, text centred.
     The JS translateX drift still works — active item (x=0) is centred,
     off-screen items shift left as usual. */
  .awd-item {
    left: 24px;
    right: 24px;
    white-space: normal;
    text-align: center;
    font-size: clamp(1.55rem, 7.5vw, 2.4rem);
  }
}

/* ===========================================================
   We play the system — pinned horizontal scroll (desktop)
   or scroll-snap (mobile)
   =========================================================== */
.tactics { position: relative; }
.tactics-track { position: relative; } /* height set by JS */
.tactics-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.tactics-rail {
  display: flex;
  height: 100vh;
  will-change: transform;
}
.tactic {
  flex: 0 0 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px clamp(24px, 8vw, 100px) 60px;
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}
.tactic-inner {
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.tactic-copy { flex: 1; min-width: 0; }
.tactic-num {
  display: block;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--theme-deep);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.tactic-h {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.tactic-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 600;
  color: var(--navy-soft);
  margin-bottom: 18px;
  max-width: 32em;
}
.tactic-p {
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.65;
  color: var(--navy-soft);
  max-width: 30em;
}
.tactic-diagram {
  flex: 0 0 clamp(150px, 28%, 250px);
  color: var(--navy);
  opacity: 0.72;
}
.tactic-diagram svg { width: 100%; height: auto; display: block; }

.tactics-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}
.tactics-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(10, 37, 64, 0.15);
  transition: background 0.3s, transform 0.3s;
}
.tactics-dot.active {
  background: var(--theme-deep);
  transform: scale(1.5);
}

/* ===========================================================
   Branded gear section
   =========================================================== */
.merch {
  padding: clamp(80px, 12vh, 130px) clamp(24px, 6vw, 80px);
  background: var(--paper);
}
.merch-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
}
.merch-copy { flex: 1; min-width: 0; }
.merch-copy .eyebrow { margin-bottom: 16px; }
.merch-copy .block-h { margin-bottom: 16px; }
.merch-copy .block-p { margin-bottom: 20px; }
.merch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 30px;
}
.merch-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.97rem;
  color: var(--navy-soft);
}
.merch-list li::before {
  content: "";
  flex: 0 0 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--theme-deep);
}
.merch-visual {
  flex: 0 0 clamp(260px, 40%, 440px);
}
.merch-flatlay {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e2f4fa 0%, #cce8f4 100%);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: block;
  padding: 0;
}
.merch-svg { width: 100%; height: 100%; display: block; }

/* ===========================================================
   Contact form
   =========================================================== */
.contact-form {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 10px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label span {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: #fff;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--theme);
  background: rgba(255, 255, 255, 0.12);
}
.contact-form .btn-primary { align-self: flex-start; margin-top: 4px; }
.contact-form .btn-primary[disabled] { opacity: 0.6; pointer-events: none; }

.form-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}
.form-status.ok { color: #6ee7b7; }
.form-status.err { color: #fca5a5; }

/* Dedicated contact page — fill the viewport, clear the floating nav */
.contact-page { min-height: 100vh; padding-top: 150px; }

/* Active state for the Get-a-quote CTA on the contact page */
.nav-cta.is-active { background: #06182b; }

/* Direct contact links below the form */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}
.contact .btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  padding: 11px 18px;
}
.contact .btn-ghost svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.contact .btn-ghost:hover { border-color: var(--theme); color: #fff; }

/* ===========================================================
   Site footer
   =========================================================== */
.site-footer {
  background: #060f1c;
  padding: 26px clamp(24px, 6vw, 80px);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.5);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--theme-soft); }
.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.footer-address span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.28);
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--theme-soft); }

/* Responsive overrides for tactics + merch */
@media (max-width: 900px) {
  /* Keep the pinned horizontal scroll on mobile too: scrolling DOWN slides
     the rail LEFT, one tile per ~screen-width of scroll. Stack each tile's
     copy + diagram vertically and keep it inside one screen height. */
  .tactic { padding: 88px 22px 26px; }
  .tactic-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    max-width: 100%;
  }
  .tactic-sub { margin-bottom: 0; }
  .tactic-diagram {
    flex: 0 0 auto;
    width: min(150px, 40vw);
    align-self: center;
  }
  .tactics-dots { bottom: 16px; }

  /* Merch: stack vertically */
  .merch-inner { flex-direction: column; }
  .merch-visual { flex: 0 0 auto; width: 100%; max-width: 420px; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tactic-h { font-size: clamp(1.6rem, 7.5vw, 2.2rem); }
  .tactic-p { font-size: 0.96rem; line-height: 1.55; }
  .tactic-inner { gap: 13px; }
  .tactic-diagram { width: min(132px, 36vw); }
}

/* ===========================================================
   Reduced motion
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .nav-bubble, .hero-copy > *, .phone-glow, .phone-shadow,
  .reveal, .stage-tag { opacity: 1 !important; transform: none !important; }
  .phone { transform: none !important; opacity: 1 !important; }
  /* keep the scale-to-fit transform; just skip the reveal fade */
  .phone-frame { opacity: 1 !important; }
  .tool { opacity: 1 !important; transform: translate(0, 0) rotate(0) !important; }
  .headline-accent::after { transform: scaleX(1) !important; }
  .warmth-line { stroke-dashoffset: 0 !important; }
}

/* ===========================================================
   Location pages
   =========================================================== */
.loc-body {
  margin: 40px 0 0;
}
.loc-body p {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.72;
  color: var(--navy-soft);
  max-width: 40em;
  margin: 0 0 22px;
}
.loc-body h2 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 44px 0 14px;
}
.loc-body h2:first-child { margin-top: 0; }
.loc-faq {
  margin: 56px 0 0;
}
.loc-faq > h2 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 20px;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  padding: 18px 0;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a {
  font-size: 0.97rem;
  line-height: 1.68;
  color: var(--navy-soft);
  padding: 0 0 18px;
  max-width: 36em;
}
.loc-nearby {
  margin: 44px 0 0;
  padding: 24px 28px;
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid var(--line);
}
.loc-nearby h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
}
.loc-nearby-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.loc-nearby-links a {
  font-size: 0.9rem;
  color: var(--theme-deep);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.loc-nearby-links a:hover { color: var(--navy); }
