/* Peninsula Sync — cinematic 3D homepage */
:root {
  --navy: #0C2340;
  --navy-deep: #071628;
  --navy-soft: #163556;
  --teal: #2DD4BF;
  --teal-deep: #0F766E;
  --teal-muted: #99F6E4;
  --sand: #F7F4EF;
  --sand-deep: #EDE8E0;
  --ink: #1A2332;
  --ink-muted: #5B6575;
  --white: #FFFFFF;
  --line: rgba(12, 35, 64, 0.1);
  --shadow: 0 12px 40px rgba(12, 35, 64, 0.08);
  --shadow-lift: 0 24px 60px rgba(12, 35, 64, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-padding-top: calc(var(--header-h) + 12px); scroll-behavior: auto; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--navy-deep);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.container { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }

/* Loader */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: var(--navy-deep);
  transition: opacity 0.6s ease, visibility 0.6s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; color: var(--white); }
.loader-mark { margin: 0 auto 1rem; filter: drop-shadow(0 0 18px rgba(45,212,191,0.45)); animation: pulse 1.6s ease-in-out infinite; }
.loader-brand { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 1.5rem; letter-spacing: 0.04em; }
.loader-bar { width: 180px; height: 3px; margin: 0 auto 0.75rem; background: rgba(255,255,255,0.12); border-radius: 99px; overflow: hidden; }
.loader-fill { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--teal-deep), var(--teal)); transition: width 0.25s ease; }
.loader-status { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin: 0; }
@keyframes pulse { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.06); } }

/* Progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 999;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal));
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  transition: background 0.35s, backdrop-filter 0.35s, box-shadow 0.35s;
}
.site-header.is-scrolled {
  background: rgba(7, 22, 40, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.site-header.is-light {
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-light .brand-name,
.site-header.is-light .nav-list a { color: var(--navy); }
.site-header.is-light .nav-toggle span { background: var(--navy); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--white); }
.brand-mark { width: 40px; height: auto; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em; }
.nav-list { display: flex; align-items: center; gap: 1.05rem; }
.nav-list a { color: rgba(255,255,255,0.78); font-size: 0.88rem; font-weight: 500; transition: color 0.2s; white-space: nowrap; }
.nav-list a:hover { color: var(--teal); }
.nav-cta {
  padding: 0.55rem 1rem !important;
  border-radius: 999px;
  background: var(--teal);
  color: var(--navy) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--teal-muted) !important; color: var(--navy) !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.mobile-nav {
  background: rgba(7,22,40,0.96); backdrop-filter: blur(12px);
  padding: 0.5rem 1.25rem 1.25rem;
}
.mobile-nav a {
  display: block; padding: 0.85rem 0;
  color: #fff; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 500;
}
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
}

/* WebGL */
#webgl {
  image-rendering: auto;
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background: var(--navy-deep);
}
#webgl.is-hidden { opacity: 0; transition: opacity 0.5s; }
.no-webgl { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.no-webgl-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(45,212,191,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 70%, rgba(15,118,110,0.25), transparent 55%),
    var(--navy-deep);
}

/* Story / cinematic pin */
.story {
  position: relative; z-index: 1;
  height: 650vh; /* scroll runway */
}
.story-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  display: grid; place-items: center;
  overflow: hidden;
}
.story-stage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  opacity: 0; pointer-events: none;
  transform: translateY(18px);
  transition: none;
  color: var(--white);
}
.story-stage.is-active {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
.stage-eyebrow {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin: 0 0 1rem;
}
.stage-line {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2rem, 6.5vw, 4.6rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 14ch;
  text-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
.stage-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  max-width: 36rem; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; align-items: center;
}
.scroll-hint {
  position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin: 0;
  transition: opacity 0.4s;
}
.scroll-hint span {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: drip 1.6s ease-in-out infinite;
}
@keyframes drip { 0%,100%{ opacity: 0.3; transform: scaleY(0.7); } 50%{ opacity: 1; transform: scaleY(1); } }
.story.is-past .scroll-hint { opacity: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.85rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: var(--teal-muted); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.section-light .btn-ghost,
.section-sand .btn-ghost { border-color: rgba(12,35,64,0.2); color: var(--navy); }
.btn-block { width: 100%; }

/* Light sections */
.section {
  position: relative; z-index: 2;
  padding: 6rem 0;
}
.section-light { background: var(--white); color: var(--ink); }
.section-sand { background: var(--sand); color: var(--ink); }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); color: var(--navy); }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal-deep); font-weight: 700; margin: 0 0 0.75rem;
}
.section-intro, .lead { color: var(--ink-muted); font-size: 1.05rem; }
.services-grid, .packages-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.section-sand .card { background: var(--white); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: 0.35rem; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(45,212,191,0.15); color: var(--teal-deep);
  margin-bottom: 1rem;
}
.card-icon.muted { background: rgba(12,35,64,0.06); color: var(--navy-soft); }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-deep); margin: 0 0 0.75rem;
}
.tag-secondary { color: var(--ink-muted); }
.card p { color: var(--ink-muted); font-size: 0.95rem; }
.card ul { margin-top: 1rem; }
.card li {
  position: relative; padding-left: 1.1rem; margin-bottom: 0.4rem;
  font-size: 0.9rem; color: var(--ink);
}
.card li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}
.card-secondary { border-style: dashed; }

.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  list-style: none; counter-reset: none; padding: 0; margin: 0;
}
.process-card {
  background: var(--white); border-radius: var(--radius); padding: 1.4rem;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.step-num {
  display: block; font-family: var(--font-sans); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.12em; color: var(--teal-deep);
  margin-bottom: 0.75rem;
}
.process-card h3 { font-size: 1.1rem; color: var(--navy); }
.process-card p { color: var(--ink-muted); font-size: 0.92rem; margin: 0; }

.why-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: start; }
.why-list { margin: 1.5rem 0 0; }
.why-list li {
  display: grid; gap: 0.2rem; padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.why-list strong { color: var(--navy); }
.why-list span { color: var(--ink-muted); font-size: 0.95rem; }
.why-panel {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-lift);
}
.why-panel h3 { color: #fff; margin-bottom: 1rem; }
.why-panel ul { margin: 0 0 1.5rem; }
.why-panel li {
  padding: 0.55rem 0 0.55rem 1.1rem; position: relative;
  color: rgba(255,255,255,0.85); font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.why-panel li::before {
  content: ""; position: absolute; left: 0; top: 1em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}

.package { position: relative; }
.package .price { min-height: 2rem; margin: 0.5rem 0 1rem; }
.package.highlight {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow-lift);
}
.badge,
.card .badge,
.package .badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--teal); color: #071628 !important;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 999px;
  margin: 0;
}
.todo-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  background: #FEF3C7; color: #92400E; padding: 0.2rem 0.5rem; border-radius: 6px;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; }
.contact-details { margin-top: 1.5rem; }
.contact-details div { padding: 0.85rem 0; border-top: 1px solid var(--line); }
.contact-details dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; }
.contact-details dd { margin: 0.25rem 0 0; color: var(--navy); font-weight: 500; }

.contact-email, .contact-phone, .footer-email, .footer-phone, .footer-contact a {
  color: var(--teal-deep);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(15, 118, 110, 0.35);
  transition: color 0.2s, border-color 0.2s;
}
.contact-email:hover, .contact-phone:hover, .footer-email:hover, .footer-phone:hover, .footer-contact a:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}
.footer-contact {
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  align-items: center;
}
.footer-sep { color: var(--ink-muted); opacity: 0.7; }

.contact-form {
  background: var(--sand); border-radius: var(--radius); padding: 1.6rem;
  border: 1px solid var(--line);
}
.form-note { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 1rem; }
.form-row { margin-bottom: 0.9rem; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.75rem 0.9rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(12,35,64,0.18); background: #fff;
  font: inherit; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent;
}
.form-status { margin-top: 0.75rem; font-size: 0.9rem; color: var(--teal-deep); }

/* Footer */
.site-footer {
  position: relative; z-index: 2;
  background: var(--navy-deep); color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand .brand { color: #fff; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.95rem; max-width: 28ch; }
.footer-signup {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; max-width: 360px;
}
.footer-signup input {
  flex: 1 1 180px; padding: 0.7rem 0.9rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06);
  color: #fff; font: inherit;
}
.footer-signup input::placeholder { color: rgba(255,255,255,0.4); }
.footer-signup .btn { padding: 0.7rem 1.1rem; }
.signup-note { width: 100%; font-size: 0.82rem; color: var(--teal-muted); margin: 0.35rem 0 0; }
.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--teal); }
.footer-meta { grid-column: 1 / -1; font-size: 0.8rem; color: rgba(255,255,255,0.72); margin: 0; text-align: right; }

/* Reduced motion / fallback — static poster + stacked headlines, no WebGL scrub */
body.reduce-motion .story { height: auto; }
body.reduce-motion .story-pin { position: relative; height: auto; padding: 6rem 1.5rem 4rem; display: block; }
body.reduce-motion .story-stage {
  position: relative; opacity: 1 !important; transform: none !important;
  pointer-events: auto; padding: 2rem 0; inset: auto;
  max-width: 40rem; margin-inline: auto; text-align: center;
}
body.reduce-motion .scroll-hint { display: none; }
body.reduce-motion #webgl,
body.reduce-motion #webgl.is-ready,
body.reduce-motion #webgl.is-pending {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body.reduce-motion #hero-poster,
body.reduce-motion #hero-poster.is-hidden {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none;
}
body.reduce-motion .no-webgl { display: none; }

@media (max-width: 960px) {
  .services-grid, .packages-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
  .stage-line { max-width: 12ch; }
}

/* Stage text readability over busy scene textures (desk + phone) */
.story-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 44%, rgba(7, 22, 40, 0.42) 0%, rgba(7, 22, 40, 0.18) 48%, transparent 74%),
    linear-gradient(180deg, rgba(7, 22, 40, 0.28) 0%, transparent 40%, transparent 58%, rgba(7, 22, 40, 0.22) 100%);
}
.story-stage > * { position: relative; z-index: 1; }
.stage-eyebrow {
  text-shadow: 0 1px 12px rgba(7, 22, 40, 0.75), 0 0 20px rgba(7, 22, 40, 0.4);
}
.stage-line {
  text-shadow: 0 2px 18px rgba(7, 22, 40, 0.65), 0 8px 40px rgba(0, 0, 0, 0.4);
}
.stage-sub {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 14px rgba(7, 22, 40, 0.8), 0 0 18px rgba(7, 22, 40, 0.45);
}
@media (max-width: 860px) {
  .story-stage::before {
    background:
      radial-gradient(ellipse 95% 70% at 50% 42%, rgba(7, 22, 40, 0.58) 0%, rgba(7, 22, 40, 0.3) 45%, transparent 72%),
      linear-gradient(180deg, rgba(7, 22, 40, 0.48) 0%, rgba(7, 22, 40, 0.2) 28%, transparent 52%, rgba(7, 22, 40, 0.38) 100%);
  }
  .stage-sub { color: rgba(255, 255, 255, 0.9); }
}


.mobile-nav-contact {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 0.5rem;
}
.mobile-nav-contact a {
  color: var(--teal, #5eead4);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.mobile-nav-contact a:hover { color: #fff; }


.price-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.price-amount {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.price-note {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: -0.35rem 0 1rem;
  line-height: 1.4;
}

.footer-area { color: var(--ink-muted); font-weight: 500; }
.mobile-nav-area {
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---- Round 2: a11y, form success, mobile polish ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10001;
  background: var(--teal);
  color: var(--navy);
  padding: 0.65rem 1rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
.form-row input:focus-visible,
.form-row select:focus-visible,
.form-row textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.hidden-honeypot {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.form-success {
  text-align: center;
  padding: 1.25rem 0.5rem 0.5rem;
}
.form-success:focus { outline: none; }
.form-success-icon {
  width: 52px; height: 52px; margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(45, 212, 191, 0.18);
  color: var(--teal-deep);
  font-size: 1.5rem; font-weight: 700;
}
.form-success h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}
.form-success p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.form-success a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.form-status.is-error { color: #b42318; }

/* Footer contrast (navy bg) */
.site-footer .footer-email,
.site-footer .footer-phone {
  color: var(--teal-muted) !important;
  font-weight: 600;
}
.site-footer .footer-email:hover,
.site-footer .footer-phone:hover { color: #fff !important; }
.site-footer .footer-area {
  color: rgba(255, 255, 255, 0.72) !important;
}
.site-footer .footer-sep { color: rgba(255, 255, 255, 0.35); }
.footer-cta-line { margin: 1.25rem 0 0; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-hint span { animation: none; }
  .loader-mark { animation: none; }
}

/* Mobile polish — touch targets, spacing; desktop unchanged above 860 */
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .container { width: min(1120px, calc(100% - 1.5rem)); }
  .section { padding: 3.5rem 0; }
  .btn {
    min-height: 44px;
    padding: 0.8rem 1.15rem;
  }
  .nav-toggle {
    min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center;
  }
  .contact-form { padding: 1.25rem; }
  .form-row input, .form-row select, .form-row textarea {
    font-size: 16px; /* avoid iOS zoom */
    min-height: 44px;
  }
  .stage-sub .btn { width: 100%; max-width: 280px; }
  .footer-grid { gap: 1.5rem; }
  .price-amount { font-size: 1.65rem; }
  .card, .package { padding: 1.25rem; }
}

/* ---- Round 3: LCP poster + canvas handoff ---- */
.hero-poster {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--navy-deep);
  transition: opacity 0.55s ease, visibility 0.55s;
}
.hero-poster picture,
.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-poster.is-hidden {
  opacity: 0;
  visibility: hidden;
}
#webgl.is-pending {
  opacity: 0;
}
#webgl.is-ready {
  opacity: 1;
  transition: opacity 0.65s ease;
}
/* When content fades canvas later, keep transition */
#webgl.is-hidden {
  opacity: 0 !important;
  transition: opacity 0.5s ease;
}

/* Slightly stronger story text readability over poster before GL */
.story-stage.is-active .stage-line {
  text-shadow: 0 2px 18px rgba(7, 22, 40, 0.75), 0 8px 40px rgba(0, 0, 0, 0.45);
}
.story-stage.is-active .stage-sub {
  text-shadow: 0 1px 14px rgba(7, 22, 40, 0.85);
}

/* Mobile menu keyboard focus */
.mobile-nav a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Avoid horizontal overflow on narrow phones */
@media (max-width: 860px) {
  .stage-line { max-width: 11ch; }
  .packages-grid .badge { max-width: 11rem; text-align: center; line-height: 1.25; }
  .contact-details dd { overflow-wrap: anywhere; }
}

.loader.is-soft {
  background: rgba(7, 22, 40, 0.55);
  backdrop-filter: blur(2px);
}

/* R3: anchor targets clear fixed header */
.section,
#story,
#services,
#process,
#packages,
#contact {
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.loader.is-done {
  transition: opacity 0.35s ease, visibility 0.35s;
}
.loader.is-soft .loader-inner {
  opacity: 0.85;
}
.hidden-honeypot label {
  max-width: 1px !important;
  display: inline-block;
  overflow: hidden;
}

/* ---- Round 4: work, FAQ, process-3, sticky CTA ---- */
.section-cta {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 2.5rem; align-items: center;
}
.section-light .section-cta .btn-ghost,
.section-sand .section-cta .btn-ghost {
  border-color: rgba(12,35,64,0.2); color: var(--navy);
}

.work-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.25rem;
  align-items: stretch;
}
.work-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.work-shot {
  position: relative;
  display: block;
  background: var(--navy-deep);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.work-shot img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform 0.45s ease;
}
.work-card:hover .work-shot img { transform: scale(1.03); }
.work-shot-label {
  position: absolute; right: 0.85rem; bottom: 0.85rem;
  background: rgba(7,22,40,0.82); color: #fff;
  font-size: 0.8rem; font-weight: 600;
  padding: 0.4rem 0.75rem; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.work-body { padding: 1.35rem 1.5rem 1.5rem; }
.work-body h3 { color: var(--navy); margin: 0 0 0.5rem; }
.work-body p { color: var(--ink-muted); font-size: 0.95rem; }
.work-meta { margin-top: 0.85rem; }
.work-meta a {
  color: var(--teal-deep); font-weight: 600; font-size: 0.9rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.work-card-cta {
  background: var(--navy-deep);
  color: #fff;
  border: 1px solid rgba(45, 212, 191, 0.22);
  justify-content: center;
  box-shadow: var(--shadow);
}
.work-cta-inner { padding: 1.85rem 1.65rem; }
.work-card-cta .tag { color: var(--teal); }
.work-card-cta h3 { color: #fff; font-size: 1.45rem; margin: 0 0 0.75rem; }
.work-card-cta p { color: rgba(255,255,255,0.9); margin: 0 0 1.25rem; }
.work-card-cta .btn-primary {
  background: var(--teal);
  color: var(--navy);
  border: none;
  font-weight: 700;
}
.work-card-cta .btn-primary:hover { background: var(--teal-muted); color: var(--navy); }
.work-card-cta .btn-ghost {
  border-color: rgba(255,255,255,0.55); color: #fff; margin-left: 0.5rem;
}
.work-card-cta .btn-ghost:hover {
  border-color: #fff; background: rgba(255,255,255,0.08); color: #fff;
}
.work-card-cta .btn { margin-top: 0.35rem; }

/* Phone: taller crop so Raphael phone screenshot shows title + CTAs, not just flowers */
@media (max-width: 699px) {
  .work-shot { aspect-ratio: 4 / 5; }
  .work-shot img {
    object-fit: cover;
    object-position: top center;
  }
}

.process-grid-3 { grid-template-columns: repeat(3, 1fr); }

.faq-list { display: grid; gap: 0.75rem; max-width: 46rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0; box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 1.05rem 1.25rem;
  font-weight: 650; color: var(--navy);
  position: relative; padding-right: 2.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 1.15rem; top: 50%; transform: translateY(-50%);
  font-size: 1.25rem; color: var(--teal-deep); font-weight: 500;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0; padding: 0 1.25rem 1.15rem;
  color: var(--ink-muted); font-size: 0.95rem;
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}

/* Sticky mobile call / contact — clears content via body padding */
.mobile-sticky-cta {
  display: none;
}
@media (max-width: 860px) {
  .mobile-sticky-cta {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 0.5rem;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 950;
    padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,0.94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
    box-shadow: 0 -8px 28px rgba(12,35,64,0.12);
  }
  .mobile-sticky-call,
  .mobile-sticky-contact {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; border-radius: 999px;
    font-weight: 700; font-size: 0.95rem; text-decoration: none;
  }
  .mobile-sticky-call {
    background: transparent; color: var(--navy);
    border: 1.5px solid rgba(12,35,64,0.22);
  }
  .mobile-sticky-contact {
    background: var(--teal); color: var(--navy);
  }
  body:has(.mobile-sticky-cta) {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }
  /* Hide sticky when near contact form to avoid stacking with keyboard/content */
  body.is-near-contact .mobile-sticky-cta {
    opacity: 0; pointer-events: none; transform: translateY(110%);
    transition: opacity 0.25s, transform 0.25s;
  }
  .mobile-sticky-cta {
    transition: opacity 0.25s, transform 0.25s;
  }
  .work-grid { grid-template-columns: 1fr; }
  .process-grid-3 { grid-template-columns: 1fr; }
  .work-card-cta .btn-ghost { margin-left: 0; }
  .nav-list { gap: 0.65rem; }
  .nav-list a { font-size: 0.88rem; }
}

@media (max-width: 1100px) and (min-width: 861px) {
  .nav-list { gap: 0.85rem; }
  .nav-list a { font-size: 0.9rem; }
  .work-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) and (min-width: 861px) {
  .nav-optional { display: none; }
}


/* —— R5/R11 static pages (branded heroes + content) —— */
.page-shell { min-height: 100vh; background: var(--sand); color: var(--ink); }
.page-shell .site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(7, 22, 40, 0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}
.page-shell .site-header.is-light {
  /* R11 dark heroes: keep navy header even if markup still has is-light */
  background: rgba(7, 22, 40, 0.92);
  box-shadow: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.page-shell .site-header .brand,
.page-shell .site-header .brand-name { color: #fff; }
.page-shell .site-header .nav-list a { color: rgba(255,255,255,0.86); }
.page-shell .site-header .nav-list a:hover { color: var(--teal); }
.page-shell .site-header .nav-cta {
  color: var(--navy) !important;
  background: var(--teal);
}
.page-shell .site-header.is-light .brand-name,
.page-shell .site-header.is-light .nav-list a { color: rgba(255,255,255,0.86); }
.page-shell .site-header.is-light .nav-toggle span { background: #fff; }
.page-shell .nav-toggle span { background: #fff; }

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(280px, 42vw, 420px);
  padding: calc(var(--header-h) + 2.4rem) 0 3.25rem;
  background:
    linear-gradient(135deg, #071628 0%, #0C2340 48%, #0a3a3a 100%);
  color: #fff;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(45,212,191,0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(15,118,110,0.28), transparent 50%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-deep), var(--teal) 55%, transparent);
  opacity: 0.9;
  z-index: 3;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page-hero-bg picture,
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.page-hero--photo::before {
  background:
    linear-gradient(105deg, rgba(7,22,40,0.94) 0%, rgba(7,22,40,0.82) 38%, rgba(7,22,40,0.62) 68%, rgba(7,22,40,0.72) 100%),
    linear-gradient(180deg, rgba(7,22,40,0.25) 0%, rgba(7,22,40,0.45) 100%);
}
.page-hero--network {
  background:
    linear-gradient(135deg, #071628 0%, #0C2340 55%, #0d3d3a 100%);
}
.page-hero--network .page-hero-bg {
  opacity: 0.55;
  mix-blend-mode: soft-light;
}
.page-hero .container,
.page-hero-inner {
  position: relative;
  z-index: 2;
}
.page-hero .eyebrow {
  margin-bottom: 0.7rem;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  color: #fff;
  margin: 0 0 0.9rem;
  line-height: 1.12;
  max-width: 18ch;
  text-wrap: balance;
}
.page-hero .lede {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.88);
  max-width: 38rem;
  margin: 0;
  line-height: 1.6;
}
.page-hero .lede a {
  color: var(--teal-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  padding: 0.2em 0;
  min-height: 24px;
  line-height: 1.5;
}

.page-content {
  padding: 3.25rem 0 1.75rem;
}
.page-content > .container {
  max-width: min(1120px, calc(100% - 2.5rem));
}
.page-content .prose {
  max-width: 42rem;
}
.page-content .prose h2,
.page-block h2,
.page-card h2,
.page-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.4rem;
  margin: 0 0 0.65rem;
}
.page-content .prose h2 { margin: 2rem 0 0.65rem; }
.page-content .prose h2:first-child { margin-top: 0; }
.page-content .prose p,
.page-block p,
.page-card p {
  color: var(--ink-muted);
  margin: 0 0 1rem;
  line-height: 1.65;
}
.page-content .prose ul,
.page-content .prose ol,
.page-card ul,
.page-card ol {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  list-style: disc;
}
.page-content .prose ol,
.page-card ol { list-style: decimal; }
.page-content .prose li,
.page-card li { margin: 0.4rem 0; line-height: 1.55; }
.page-content .prose a,
.page-card a,
.page-block a {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-intro {
  max-width: 42rem;
  margin-bottom: 1.75rem;
}
.page-intro p:last-child { margin-bottom: 0; }

.page-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 0 0 1.75rem;
}
.page-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.2rem;
  box-shadow: var(--shadow);
}
.page-card ul { margin-bottom: 0; }
.page-card--wide { grid-column: 1 / -1; }

.page-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 0 0 1.75rem;
}
.page-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.2rem;
  box-shadow: var(--shadow);
}
.page-panel ol { margin: 0; padding-left: 1.15rem; color: var(--ink-muted); list-style: decimal; }
.page-panel li { margin: 0.45rem 0; line-height: 1.55; }
.page-panel ul { margin: 0; padding-left: 1.15rem; color: var(--ink-muted); list-style: disc; }

.page-cta-band {
  padding: 0.5rem 0 3.5rem;
}
.page-cta-box {
  margin-top: 0;
  padding: 1.75rem 1.6rem;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #0a3a3a 100%);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.page-cta-box h2 {
  color: #fff !important;
  margin: 0 0 0.5rem !important;
  font-size: 1.4rem !important;
  font-family: var(--font-display);
}
.page-cta-box p {
  color: rgba(255,255,255,0.95) !important;
  margin: 0 0 1.1rem !important;
}
.page-cta-box .btn {
  margin-right: 0.55rem;
  margin-top: 0.35rem;
  display: inline-flex;
}
/* A11y: solid secondary on dark CTA (fixes prior ghost contrast) */
.page-cta-box .btn-ghost {
  background: #fff;
  border: 2px solid #fff;
  color: var(--navy-deep);
  font-weight: 600;
}
.page-cta-box .btn-ghost:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--navy-deep);
}
.page-cta-box .btn-primary {
  background: var(--teal);
  color: var(--navy-deep);
  border: 2px solid var(--teal);
  font-weight: 700;
}
.page-cta-box a:not(.btn) {
  color: var(--teal-muted);
  font-weight: 600;
  display: inline-block;
  padding: 0.25em 0;
  min-height: 24px;
  line-height: 1.5;
}

.area-links {
  display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 0.35rem 0 0;
}
.area-links a {
  display: inline-flex; align-items: center;
  padding: 0.5rem 0.95rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--navy); font-size: 0.9rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 4px 14px rgba(12,35,64,0.05);
}
.area-links a:hover { border-color: var(--teal); color: var(--teal-deep); }
.page-nearby {
  margin-top: 1.75rem;
  padding-top: 0.25rem;
}
.page-nearby .eyebrow {
  color: var(--teal-deep);
  margin-bottom: 0.75rem;
}

.page-shell .site-footer { margin-top: 0; }
.footer-nav-group { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav-label {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.72); margin-bottom: 0.15rem;
}
@media (max-width: 860px) {
  .page-hero { padding: calc(var(--header-h) + 1.5rem) 0 2.5rem; }
  .page-card-grid,
  .page-split { grid-template-columns: 1fr; }
  .page-content { padding-top: 2.5rem; }
}
@media (max-width: 480px) {
  .page-hero h1 { font-size: clamp(1.65rem, 8vw, 2.15rem); max-width: none; }
  .page-hero { padding-bottom: 2.15rem; }
  .page-cta-box { padding: 1.4rem 1.15rem; }
  .page-cta-box .btn { width: 100%; justify-content: center; margin-right: 0; }
  .page-cta-box .btn + .btn { margin-top: 0.55rem; }
}



/* Round 8: a11y contrast + focus order polish */
.footer-nav-label { color: rgba(255, 255, 255, 0.88); }
.price-note { color: rgba(7, 22, 40, 0.72); }
.section-light .price-note { color: rgba(7, 22, 40, 0.72); }
.package-desc { color: rgba(7, 22, 40, 0.82); }
.tag, .tag-secondary { color: rgba(7, 22, 40, 0.75); }
.section-sand .tag { color: rgba(7, 22, 40, 0.78); }
details.faq-item summary { cursor: pointer; }
.contact-details a { text-decoration: underline; text-underline-offset: 2px; }
.contact-details a:hover { color: var(--teal-deep, #0a6b6b); }
.js-package-cta:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  body { scroll-behavior: auto; }
  .reveal-section, .card, .work-card { opacity: 1 !important; transform: none !important; }
}


/* ---- Round 9: case study + device sweep (tablet / narrow / landscape) ---- */
.work-title-link {
  color: inherit;
  text-decoration: none;
}
.work-title-link:hover { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }

.case-study .case-shot {
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-deep);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.case-study .case-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.case-study .case-shot figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}
.case-shot-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin: 1.75rem 0 2rem;
}
.case-shot-phone img {
  max-height: 640px;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
  object-position: top;
  background: #071628;
}
.case-shot-phone {
  background: transparent;
  border: none;
  box-shadow: none;
}
.case-shot-phone picture {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--navy-deep);
}
.case-shot-phone figcaption {
  border: none;
  background: transparent;
  text-align: center;
}

/* Prevent horizontal overflow on tiny phones */
html, body { overflow-x: clip; }
.container { max-width: 100%; }
.stage-line {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
.packages-grid .price-amount { font-variant-numeric: tabular-nums; }
.contact-form, .card, .work-card, .page-cta-box { max-width: 100%; }
.btn { max-width: 100%; }

/* Tablet portrait: single-column work + readable packages before full desktop */
@media (max-width: 1024px) and (min-width: 701px) {
  .work-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .packages-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
  .package .btn-block { font-size: 0.9rem; padding-inline: 0.75rem; }
  .process-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
  .stage-line { font-size: clamp(2rem, 5.5vw, 3.4rem); }
  .story-stage { padding-inline: 1.25rem; }
}

@media (max-width: 900px) {
  .case-shot-pair { grid-template-columns: 1fr; }
  .case-shot-phone img { max-height: 520px; }
}

/* Tiny phones (320–360) */
@media (max-width: 360px) {
  .container { width: min(1120px, calc(100% - 1rem)); }
  .stage-line { font-size: clamp(1.65rem, 9vw, 2.25rem); max-width: 14ch; }
  .stage-sub { font-size: 0.95rem; }
  .btn { padding-inline: 0.9rem; }
  .section-head h2 { font-size: clamp(1.45rem, 7vw, 1.85rem); }
  .package .price-amount { font-size: 1.55rem; }
  .nav-cta { padding-inline: 0.75rem; }
}

/* Phone landscape: keep sticky CTA usable, avoid crushing story text */
@media (max-height: 480px) and (orientation: landscape) {
  .story { min-height: auto; }
  .story-pin { min-height: 100vh; }
  .stage-line { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .stage-sub { font-size: 0.9rem; max-width: 42ch; }
  .scroll-hint { display: none; }
  .mobile-sticky-cta { padding: 0.4rem 0.65rem; }
  .loader-inner { transform: scale(0.9); }
}

/* Area/case phone rules folded into R11 page-shell block above */


/* Round 10: service card deep links */
.card-more {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.card-more a {
  color: var(--teal-deep);
  text-decoration: none;
}
.card-more a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Round 12: breadcrumbs, sticky a11y, form prefill ---- */
.breadcrumbs {
  margin: 0 0 0.85rem;
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255,255,255,0.62);
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  margin-left: 0.1rem;
}
.breadcrumbs a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
.breadcrumbs [aria-current="page"] {
  color: #fff;
}

.mobile-sticky-call:focus-visible,
.mobile-sticky-contact:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.form-prefill-note {
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: var(--radius-sm, 8px);
  padding: 0.65rem 0.85rem;
  color: var(--navy);
  font-size: 0.88rem;
  margin: 0 0 1rem;
}
.form-prefill-note[hidden] { display: none !important; }

.page-cta-box .btn:focus-visible,
.page-hero a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

@media (max-width: 390px) {
  .breadcrumbs ol { font-size: 0.72rem; }
  .page-content .container,
  .page-cta-band .container { overflow-wrap: anywhere; }
}


/* ---- Round 12 home polish: navy band, cards, footer, reveal ---- */
.section-navy {
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 55%, #0a3540 100%);
  color: rgba(255, 255, 255, 0.92);
}
.section-navy .section-head h2 { color: #fff; }
.section-navy .eyebrow { color: var(--teal); }
.section-navy .section-intro,
.section-navy .lead { color: rgba(255, 255, 255, 0.82); }
.section-navy .process-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(45, 212, 191, 0.22);
  box-shadow: none;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.section-navy .process-card:hover,
.section-navy .process-card:focus-within {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.section-navy .process-card h3 { color: #fff; }
.section-navy .process-card p { color: rgba(255, 255, 255, 0.78); }
.section-navy .step-num { color: var(--teal); }
.section-navy .section-cta .btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.section-navy .section-cta .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.section-navy .section-cta .btn-primary:focus-visible,
.section-navy .section-cta .btn-ghost:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(45, 212, 191, 0.45);
}
.card:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.28), var(--shadow-lift);
}
.card a:focus-visible,
.work-card a:focus-visible,
.faq-item summary:focus-visible,
.footer-nav a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.work-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(45, 212, 191, 0.35);
}
.work-card:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.28), var(--shadow-lift);
}
.faq-item {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover,
.faq-item[open] {
  border-color: rgba(45, 212, 191, 0.4);
}
.faq-item:focus-within {
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25);
}

.reveal-ready .reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-ready .reveal-item.is-inview {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal-item,
  .reveal-ready .reveal-item.is-inview {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .card:hover,
  .work-card:hover,
  .section-navy .process-card:hover {
    transform: none;
  }
}

.site-footer {
  padding: 4rem 0 2.25rem;
  background:
    linear-gradient(180deg, rgba(7, 22, 40, 0.92) 0%, rgba(7, 22, 40, 0.97) 40%, #071628 100%),
    radial-gradient(ellipse at 12% 0%, rgba(45, 212, 191, 0.14), transparent 42%),
    var(--navy-deep);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(45, 212, 191, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 35% at 95% 70%, rgba(15, 118, 110, 0.1), transparent 60%);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: 1.35fr 0.75fr 0.85fr 1.05fr;
  gap: 2rem 1.75rem;
}
.footer-brand > .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: #fff;
}
.footer-brand > .brand .brand-name { color: #fff; }
.footer-brand p { max-width: 34ch; }
.footer-nav-group { gap: 0.45rem; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  text-align: left;
}
.footer-meta-note { color: rgba(255, 255, 255, 0.55); font-size: 0.78rem; }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer::before { opacity: 0.12; background-size: 280px auto; }
}


/* ---- Round 13: scene→content handoff + footer lockup + consistency ---- */
/* html already has scroll-padding-top; don't also stack scroll-margin on
   #services or the sticky-header gap doubles and the fixed scene peeks. */
#services {
  scroll-margin-top: 0;
}
/* Designed curtain between #story (dark/WebGL) and #services (white).
   Lives in normal flow above Services so it scrolls away when #services
   is parked under the header — parked state is light-header → white. */
.scene-handoff {
  position: relative;
  z-index: 3;
  height: clamp(3.5rem, 9vw, 5rem);
  margin: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7, 22, 40, 0.2) 0%,
    var(--navy-deep) 24%,
    var(--navy-deep) 40%,
    #0c2340 55%,
    var(--sand) 80%,
    var(--white) 100%
  );
}
#services.section-light {
  isolation: isolate;
  overflow: visible;
}
/* Cover the small scroll-padding slack under the sticky header so the
   fixed WebGL never peeks as a hairline/strip when Services is parked. */
#services.section-light::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -20px;
  height: 20px;
  background: var(--white);
  z-index: 0;
  pointer-events: none;
}
#services.section-light > .container {
  position: relative;
  z-index: 1;
}
@media (max-width: 860px) {
  .scene-handoff { height: 4rem; }
  #services.section-light { padding-top: 3rem; }
  #services.section-light::before {
    top: -16px;
    height: 16px;
  }
}

/* Consistency: page-shell rhythm */
.page-shell .page-hero {
  padding-bottom: 3rem;
}
.page-shell .page-content {
  padding-top: 2.75rem;
  padding-bottom: 1rem;
}
.page-shell .page-content h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.45rem);
  color: var(--navy);
  margin: 0 0 0.65rem;
}
.page-shell .page-intro {
  margin-bottom: 1.75rem;
}
.page-shell .btn {
  min-height: 44px;
}
.page-shell .site-header .nav-cta {
  background: var(--teal);
  color: var(--navy-deep) !important;
  font-weight: 700;
}
.page-shell .site-header .nav-cta:hover {
  background: var(--teal-muted);
  color: var(--navy-deep) !important;
}

/* Home light-header over content: keep CTA readable */
.site-header.is-light .nav-cta {
  background: var(--teal);
  color: var(--navy) !important;
}


/* ---- Round 13: contact field validation + motion notes ---- */
.form-row .req {
  color: var(--teal-deep, #0f766e);
  font-weight: 700;
  margin-left: 0.15rem;
}
.form-row .field-error {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #9b1c1c;
}
.form-row .field-error[hidden] { display: none !important; }
.form-row input.is-invalid,
.form-row select.is-invalid,
.form-row textarea.is-invalid {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.18);
}
.form-row input.is-invalid:focus,
.form-row input.is-invalid:focus-visible {
  outline-color: #b91c1c;
  border-color: #b91c1c;
}
.form-status.is-error { color: #9b1c1c; }

/* Reduced-motion: skip loader pulse / sticky bar motion leftovers */
@media (prefers-reduced-motion: reduce) {
  .loader-fill,
  .scroll-progress span {
    transition: none !important;
  }
  .mobile-sticky-cta {
    transition: none !important;
  }
  .page-hero-bg img,
  .page-hero-bg picture {
    transition: none !important;
  }
}
