/* =========================================================================
   Arctic Eagle Consulting — site styles
   Mobile-first · no framework · dark theme only (see CHANGES.md)
   ========================================================================= */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk.woff") format("woff");
  font-weight: 300 700;
  font-display: optional; /* no late swap: keeps the h1 (LCP) stable */
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff") format("woff");
  font-weight: 200 800;
  font-display: optional; /* no late swap: keeps the h1 (LCP) stable */
}

/* Metric-matched local fallbacks (computed from the font files with fontTools):
   if a web font misses its short "optional" window, text renders in these
   with almost the same width and line height, so nothing shifts. */
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Neue Bold"), local("Arial");
  font-weight: 700;
  size-adjust: 101.2%; ascent-override: 97.2%; descent-override: 28.8%; line-gap-override: 0%;
}
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica Neue");
  font-weight: 300 600;
  size-adjust: 101.2%; ascent-override: 97.2%; descent-override: 28.8%; line-gap-override: 0%;
}
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica Neue");
  size-adjust: 103%; ascent-override: 103.5%; descent-override: 29.1%; line-gap-override: 0%;
}

/* ---------- Design tokens ---------- */
:root {
  color-scheme: dark;

  /* colour (contrast ratios vs --bg #0c1324 documented in CHANGES.md) */
  --bg: #0c1324;
  --bg-alt: #0f1730;
  --bg-deep: #070d1f;
  --surface: #131c35;
  --surface-2: #19233f;
  --border: #26324f;
  --border-strong: #3a4868;
  --field-border: #64759b; /* 4.0:1 vs field bg, 3.7:1 vs card: meets WCAG 1.4.11 */
  --text: #e8eef5;
  --text-muted: #b4c0cc;
  --heading: #ffffff;
  --accent: #4cd6fb;
  --accent-soft: #cff7ff;
  --accent-tint: rgba(76, 214, 251, 0.12);
  --on-accent: #06101f;
  --error: #ffb4b4;
  --success: #8ff0b4;

  /* fluid type scale (≈1.2 → 1.25 ratio, 360px → 1280px) */
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.08rem + 0.25vw, 1.25rem);
  --step-2: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-3: clamp(1.6rem, 1.35rem + 1.1vw, 2.25rem);
  --step-4: clamp(2rem, 1.55rem + 2vw, 3.1rem);
  --step-5: clamp(2.3rem, 1.6rem + 3.2vw, 4rem);

  /* spacing rhythm (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: clamp(4rem, 3rem + 4vw, 6.5rem);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-pill: 999px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  --shadow-lift: 0 18px 40px rgba(0, 0, 0, 0.38);

  --font-head: "Space Grotesk", "Space Grotesk Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", "Manrope Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1160px;
  --gutter: clamp(1.25rem, 0.9rem + 1.5vw, 2rem);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.is-locked, html.is-locked body { overflow: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-soft); }
h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

/* inline 24px icons share one stroke style */
.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Focus ---------- */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 4px; border-radius: var(--radius-pill); }

.skip-link {
  position: absolute; left: var(--space-3); top: -80px; z-index: 200;
  background: var(--accent); color: var(--on-accent); font-weight: 700;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill); border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: var(--step-0); line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 20px rgba(76, 214, 251, .22); }
.btn-primary:hover { background: var(--accent-soft); color: var(--on-accent); box-shadow: 0 8px 26px rgba(76, 214, 251, .32); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent-tint); color: var(--accent-soft); border-color: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--field-border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--heading); }
.btn-sm { min-height: 44px; padding: var(--space-2) var(--space-4); font-size: var(--step--1); }
.btn-block { width: 100%; }
.btn[disabled] { cursor: progress; opacity: .85; }
.btn .spinner {
  width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite; display: none;
}
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.text-link { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; min-height: 44px; }

/* ---------- Badges / labels ---------- */
.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: .12em; color: var(--accent);
  margin-bottom: var(--space-3);
}
.tag {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: .03em; line-height: 1.4;
  color: var(--accent-soft); background: var(--accent-tint);
  border: 1px solid rgba(76, 214, 251, .32); border-radius: var(--radius-pill);
  padding: 2px var(--space-3); margin: 0 0 var(--space-3);
}

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 19, 36, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(12, 19, 36, .8); backdrop-filter: saturate(140%) blur(12px); }
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--heading); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--heading); }
.brand-mark { width: 36px; height: 36px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.brand-sub { color: var(--text-muted); font-weight: 500; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-width: 48px; min-height: 48px; padding: 0 var(--space-3);
  background: transparent; color: var(--heading);
  border: 1px solid var(--field-border); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent); }
.burger { position: relative; width: 20px; height: 14px; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* mobile panel */
.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  background: var(--bg); border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px rgba(0, 0, 0, .45);
  padding: var(--space-4) var(--gutter) var(--space-6);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.site-nav.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s;
}
.site-nav ul { list-style: none; }
.site-nav li a {
  display: flex; align-items: center; min-height: 52px; padding: var(--space-2) var(--space-1);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--step-1);
  border-bottom: 1px solid var(--border);
}
.site-nav li a:hover, .site-nav li a.is-current { color: var(--accent); }
.nav-actions { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.nav-phone {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px;
  color: var(--text); font-weight: 700; text-decoration: none;
}
.nav-phone:hover { color: var(--accent); }
.nav-backdrop {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: -1;
  background: rgba(3, 7, 18, .6); opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility 0s linear .25s;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }

/* no-JS: show nav inline so links remain usable */
.no-js .nav-toggle { display: none; }
.no-js .header-inner { flex-wrap: wrap; }
.no-js .site-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 var(--space-4); flex-basis: 100%; max-height: none; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: var(--space-8) 0 var(--space-9); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-bg::after { /* faint grid, masked to fade out */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(76, 214, 251, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 214, 251, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.blob {
  position: absolute; border-radius: 50%; will-change: transform;
  animation: drift 22s var(--ease) infinite alternate;
}
.blob-1 { width: 60vmax; height: 60vmax; left: 40%; top: -35vmax; background: radial-gradient(circle, rgba(76, 214, 251, .22), transparent 62%); }
.blob-2 { width: 50vmax; height: 50vmax; left: -20vmax; top: 10%; background: radial-gradient(circle, rgba(0, 178, 214, .14), transparent 62%); animation-duration: 28s; animation-delay: -6s; }
.blob-3 { width: 40vmax; height: 40vmax; right: -15vmax; bottom: -25vmax; background: radial-gradient(circle, rgba(123, 140, 255, .12), transparent 62%); animation-duration: 32s; animation-delay: -12s; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
  100% { transform: translate3d(-4vmax, 6vmax, 0) scale(.95); }
}
.hero.is-paused .blob { animation-play-state: paused; }
/* with JS, the drift only starts after load + idle (main.js adds .is-live), so it never competes with first paint */
.js .hero:not(.is-live) .blob { animation-play-state: paused; }

.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
.hero h1 { max-width: 16ch; }
.hero h1 .accent { color: var(--accent); }
.lead { font-size: var(--step-1); color: var(--text-muted); max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-6); color: var(--text-muted); font-size: var(--step--1); }
.hero-points li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-points .i { color: var(--accent); }

.hero-card {
  background: linear-gradient(180deg, rgba(25, 35, 63, .92), rgba(19, 28, 53, .92));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-6); box-shadow: var(--shadow);
}
.hero-card h2 { font-size: var(--step-2); }
.hero-card p { color: var(--text-muted); }

.check-list { list-style: none; display: grid; gap: var(--space-3); margin: var(--space-5) 0; }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.check-list .i { color: var(--accent); margin-top: .2em; }

/* ---------- Sections ---------- */
.section { padding: var(--space-9) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 46rem; margin-bottom: var(--space-7); }
.section-intro { color: var(--text-muted); font-size: var(--step-1); margin: 0; }
.subhead { font-size: var(--step-2); margin: var(--space-8) 0 var(--space-5); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--border-strong); }

/* ---------- Services ---------- */
.service-grid { display: grid; gap: var(--space-5); }
.service {
  padding: var(--space-6); display: flex; flex-direction: column; align-items: flex-start;
  --rx: 0deg; --ry: 0deg; --lift: 0px;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
}
.service p { color: var(--text-muted); }
.service .tag { margin-bottom: var(--space-3); }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent); margin-bottom: var(--space-5);
  font-size: 1.25rem;
}
.bullets { list-style: none; display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.bullets li { position: relative; padding-left: var(--space-5); }
.bullets li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.disclosure {
  margin-top: auto; display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: var(--space-2) 0; background: none; border: 0; cursor: pointer;
  color: var(--accent); font-family: var(--font-head); font-weight: 600; font-size: var(--step-0);
}
.disclosure:hover { color: var(--accent-soft); }
.disclosure .i { transition: transform .25s var(--ease); }
.disclosure[aria-expanded="true"] .i { transform: rotate(180deg); }
.details-panel { width: 100%; border-top: 1px solid var(--border); padding-top: var(--space-4); margin-top: var(--space-2); }
.details-panel p, .details-panel li { color: var(--text-muted); }
.details-panel ul { list-style: none; display: grid; gap: var(--space-2); }
.details-panel li { padding-left: var(--space-5); position: relative; }
.details-panel li::before { content: ""; position: absolute; left: 4px; top: .8em; width: 8px; height: 2px; border-radius: 2px; background: var(--accent); }
.details-panel.is-anim { animation: panel-in .3s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.band {
  margin-top: var(--space-7); padding: var(--space-6);
  border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(76, 214, 251, .12), rgba(25, 35, 63, .9) 55%);
  display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start;
}
.band p { margin: 0; font-size: var(--step-1); color: var(--text); }
.band strong { color: var(--heading); }

/* ---------- Work ---------- */
.work-grid { display: grid; gap: var(--space-5); }
.work { overflow: hidden; display: flex; flex-direction: column; }
.work:hover { box-shadow: var(--shadow-lift); }
.work-shot { overflow: hidden; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.work-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.work:hover .work-shot img { transform: scale(1.03); }
.work-body { padding: var(--space-5) var(--space-6) var(--space-6); display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.work-body p { color: var(--text-muted); }
.work-body .text-link, .work-body .btn { margin-top: auto; }

.app-head { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-6) var(--space-6) 0; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; border: 1px solid var(--border); flex-shrink: 0; }
.app-head .tag { margin-bottom: var(--space-2); }
.app-head h3 { margin: 0; font-size: var(--step-2); }
.app-name { color: var(--heading); text-decoration: none; }
.app-name:hover { color: var(--accent); text-decoration: underline; }
.app-sub { margin: var(--space-1) 0 0; color: var(--text-muted); font-size: var(--step--1); }

.shots {
  margin-top: var(--space-5); padding: var(--space-1) var(--space-6) var(--space-3);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--space-6);
  overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.shots:focus-visible { outline-offset: -3px; border-radius: 0; }
.shots ul { list-style: none; display: flex; gap: var(--space-3); }
.shots li { flex: 0 0 132px; scroll-snap-align: start; }
.shots img { width: 100%; aspect-ratio: 240 / 519; border-radius: 16px; border: 1px solid var(--border); background: #000; }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; gap: var(--space-5); counter-reset: step; }
.step { padding: var(--space-6); }
.step p { color: var(--text-muted); margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-head); font-weight: 700; margin-bottom: var(--space-4);
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: var(--space-3); max-width: 52rem; }
.faq-item { padding: 0; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 56px; padding: var(--space-4) var(--space-5);
  font-family: var(--font-head); font-weight: 600; font-size: var(--step-1); color: var(--heading);
  border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: inherit; margin: 0; }
.faq-item summary .i { color: var(--accent); transition: transform .25s var(--ease); }
.faq-item[open] summary .i { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent-soft); }
.faq-answer { padding: 0 var(--space-5) var(--space-5); color: var(--text-muted); }
.faq-answer p { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-7); }
.contact-list { list-style: none; display: grid; gap: var(--space-4); margin: var(--space-6) 0 var(--space-2); }
.contact-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-list .i { color: var(--accent); margin-top: .35em; }
.contact-list .label { display: block; font-size: var(--step--1); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { font-weight: 700; font-size: var(--step-1); word-break: break-word; display: inline-block; min-height: 44px; padding-top: var(--space-1); }

.form-card { padding: var(--space-6) var(--space-5); }
.form-card h3 { margin-bottom: var(--space-5); }
.contact-form { display: grid; gap: var(--space-5); }
.field label { display: block; font-weight: 700; color: var(--heading); margin-bottom: var(--space-2); }
.req { color: var(--accent); }
.optional { font-weight: 500; color: var(--text-muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--field-border); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4); min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: var(--space-7); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #8191b5; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); border-radius: var(--radius-sm);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--error); font-size: var(--step--1); font-weight: 600; margin: var(--space-2) 0 0; }
.field-error[hidden] { display: none; }

.error-summary {
  border: 2px solid var(--error); border-radius: var(--radius-sm);
  background: rgba(255, 180, 180, .08); padding: var(--space-4) var(--space-5);
}
.error-summary h4 { font-family: var(--font-head); color: var(--heading); margin: 0 0 var(--space-2); font-size: var(--step-1); }
.error-summary ul { padding-left: var(--space-5); }
.error-summary a { color: var(--error); font-weight: 700; }
.error-summary:focus-visible { outline-offset: 3px; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--step--1); color: var(--text-muted); margin: 0; }
.form-status { margin: 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-error a { color: var(--error); }

.form-success { text-align: left; }
.form-success .success-icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(143, 240, 180, .14); color: var(--success); margin-bottom: var(--space-4); font-size: 1.5rem;
}
.form-success h3:focus { outline: none; }
.form-success p { color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { padding: var(--space-8) 0 var(--space-5); border-top: 1px solid var(--border); background: var(--bg-deep); }
.footer-grid { display: grid; gap: var(--space-6); }
.footer-tag { color: var(--text-muted); margin-top: var(--space-3); max-width: 28rem; }
.footer-title { font-family: var(--font-head); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin: 0 0 var(--space-3); font-weight: 600; }
.footer-links { list-style: none; display: grid; gap: var(--space-1); align-content: start; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.footer-bottom p { margin: 0; color: var(--text-muted); font-size: var(--step--1); }

/* ---------- Simple content pages (privacy, 404, thanks) ---------- */
.page { padding: var(--space-8) 0 var(--space-9); }
.page .container { max-width: 50rem; }
.page h1 { font-size: var(--step-4); }
.page h2 { font-size: var(--step-2); margin-top: var(--space-7); }
.page p, .page li { color: var(--text-muted); }
.page ul { padding-left: var(--space-5); margin-bottom: var(--space-4); display: grid; gap: var(--space-2); }
.page .cta-row { margin-top: var(--space-5); }
.draft-note {
  border: 2px dashed #ffd27a; color: #ffe2a8; background: rgba(255, 210, 122, .08);
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); font-weight: 700;
}
.big-code { font-family: var(--font-head); font-size: clamp(4rem, 3rem + 6vw, 7rem); line-height: 1; color: var(--accent); margin: 0 0 var(--space-4); font-weight: 700; }

/* ---------- Scroll reveal (only when JS has enabled it) ---------- */
.reveal-ready .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
/* services keep their own (tilt) transform once revealed */
.reveal-ready .service.reveal.is-visible {
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transition: opacity .6s var(--ease), transform .25s var(--ease), border-color .25s, box-shadow .25s;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .service-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .band { flex-direction: row; align-items: center; justify-content: space-between; }
  .form-card { padding: var(--space-7) var(--space-6); }
  .footer-grid { grid-template-columns: 2fr 1fr 1.3fr; }
  .shots li { flex-basis: calc((100% - 3 * var(--space-3)) / 4); min-width: 104px; }
}
@media (min-width: 960px) {
  .nav-toggle, .nav-backdrop { display: none; }
  .site-nav, .no-js .site-nav {
    position: static; display: flex; align-items: center; gap: var(--space-5);
    opacity: 1; visibility: visible; transform: none; transition: none;
    background: none; border: 0; box-shadow: none; padding: 0; max-height: none; overflow: visible;
    flex-basis: auto;
  }
  .no-js .header-inner { flex-wrap: nowrap; }
  .site-nav ul { display: flex; gap: var(--space-1); }
  .site-nav li a {
    min-height: 44px; padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-sm);
    font-size: var(--step--1); font-size: 0.975rem; position: relative;
  }
  .site-nav li a::after {
    content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: 6px; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
  }
  .site-nav li a:hover::after, .site-nav li a.is-current::after { transform: scaleX(1); }
  .nav-actions { display: flex; align-items: center; gap: var(--space-4); margin: 0; }
  .hero { padding: var(--space-9) 0 calc(var(--space-9) + var(--space-4)); }
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: var(--space-8); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: var(--space-8); align-items: start; }
}
@media (hover: hover) and (pointer: fine) {
  .service:hover { --lift: -4px; box-shadow: var(--shadow-lift); border-color: rgba(76, 214, 251, .45); }
}

/* ---------- Reduced motion: switch everything off ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .blob { animation: none !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .service, .service:hover { --rx: 0deg !important; --ry: 0deg !important; --lift: 0px !important; }
  .work:hover .work-shot img { transform: none; }
}

.nowrap { white-space: nowrap; }

/* ---------- WhatsApp ---------- */
.nav-wa {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px;
  color: var(--text); font-weight: 700; text-decoration: none;
}
.nav-wa:hover { color: var(--accent); }
.footer-links a.footer-wa { gap: var(--space-2); }
@media (min-width: 960px) {
  /* desktop: compact 44px icon button */
  .nav-wa {
    justify-content: center; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--field-border); color: var(--accent);
    transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
  }
  .nav-wa:hover { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-soft); }
  .nav-wa:focus-visible { border-radius: 50%; }
  .nav-wa-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* floating button: mobile/tablet only, JS-enhanced (hidden over the form + footer, and while the menu is open) */
.wa-fab {
  position: fixed; z-index: 90;
  right: max(var(--space-4), env(safe-area-inset-right));
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  font-size: 1.4rem;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear 0s;
}
.wa-fab:hover { background: var(--accent-soft); color: var(--on-accent); }
.wa-fab:focus-visible { border-radius: 50%; outline-offset: 4px; }
.wa-fab.is-hidden, html.is-locked .wa-fab {
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.no-js .wa-fab { display: none; }
@media (max-width: 959px) {
  /* reserve room so the floating button can never sit over the end of the page */
  .site-footer { padding-bottom: calc(var(--space-5) + 72px + env(safe-area-inset-bottom)); }
}
@media (min-width: 960px) { .wa-fab { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-fab, .wa-fab.is-hidden { transform: none; } }

/* ---------- Service groups ---------- */
.service-group + .service-group { margin-top: var(--space-7); }
.group-title { font-size: var(--step-2); margin-bottom: var(--space-5); color: var(--heading); }
.service h4 {
  font-family: var(--font-head); color: var(--heading); font-size: var(--step-2);
  line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 var(--space-4); text-wrap: balance;
}
.service-area { margin: var(--space-4) 0 0; color: var(--text-muted); font-size: var(--step--1); }
@media (min-width: 640px) and (max-width: 959px) {
  .service-grid-3 > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .service-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* booking hint under the main booking buttons */
.cta-hint { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-3) 0 0; color: var(--text-muted); font-size: var(--step--1); }
.cta-hint .i { color: var(--accent); }
