/* ==========================================================================
   Tavo Automation — stylesheet
   Editorial-modern redesign. Near-black base, single amber accent,
   grotesk display + mono technical labels. No framework, no build.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ------------------------------------------ */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Variable.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Regular.woff2") format("woff2"),
       url("../fonts/Satoshi-Regular.ttf") format("truetype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Bold.woff2") format("woff2"),
       url("../fonts/Satoshi-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ------------------------------------------------- */
:root {
  --bg: #080806;
  --bg-raise: #0e0e0b;
  --bg-raise-2: #131310;

  --ink: #f4f2ea;
  --ink-2: #b8b5aa;
  --ink-3: #85826f;

  --line: rgba(244, 242, 234, 0.09);
  --line-strong: rgba(244, 242, 234, 0.2);

  --accent: #ffb224;
  --accent-bright: #ffc85c;
  --accent-dim: rgba(255, 178, 36, 0.12);
  --accent-line: rgba(255, 178, 36, 0.35);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Satoshi", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 10px;
  --radius-sm: 6px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
p { margin: 0; }
ul { margin: 0; }
button { font-family: inherit; }

::selection { background: var(--accent); color: #0a0a08; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout helpers ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  border-top: 1px solid var(--line);
}
.section-pad { padding: clamp(88px, 12vw, 140px) 0; }

/* Section heading: mono index + label riding the top rule, editorial h2 */
.sec-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.sec-meta {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sec-meta .idx { color: var(--accent); }
.sec-meta .lbl { color: var(--ink-3); }
/* Hairline rule running from the label to the right edge */
.sec-meta::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  margin-left: 10px;
}
.sec-head h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 26ch;
}
.sec-head h2 .dim { color: rgba(244, 242, 234, 0.38); }

/* Mono micro-label utility */
.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 0;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
}
.btn .arr { font-family: var(--font-mono); transition: transform 0.25s var(--ease-out); }
.btn:hover .arr { transform: translate(2px, -2px); }

.btn-primary {
  background: var(--accent);
  color: #0a0a08;
  padding: 18px 28px;
  box-shadow: 0 0 0 0 rgba(255, 178, 36, 0);
}
.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 6px 32px -6px rgba(255, 178, 36, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  padding: 17px 26px;
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--accent-line);
  background: var(--accent-dim);
}

/* Compact variant used in the nav */
.btn-sm { padding: 12px 18px; font-size: 12px; }

/* ---------- Navbar ------------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background-color: rgba(8, 8, 6, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.nav-brand { display: inline-flex; align-items: center; position: relative; z-index: 130; }
.nav-brand img { width: 118px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.25s ease;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
/* CTA inside the collapsible menu is for mobile only */
.nav-links .btn { display: none; }

.nav-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 8px;
  position: relative;
  z-index: 130;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-top: 0;
  padding: 140px 0 0;
  overflow: hidden;
}
.hero > .container { width: 100%; }

/* Generative canvas layer + graceful fallback gradient underneath */
.hero-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 82% 12%, rgba(255, 178, 36, 0.13), transparent 55%),
    radial-gradient(90% 70% at 12% 85%, rgba(255, 178, 36, 0.05), transparent 60%),
    var(--bg);
}
.hero-field canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Faint survey grid over the field — reads as instrument, not decoration */
.hero-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 242, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 242, 234, 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(120% 100% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 100% at 70% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
/* Legibility veil over the canvas, under the copy */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(8, 8, 6, 0.25) 0%,
    rgba(8, 8, 6, 0.05) 40%,
    rgba(8, 8, 6, 0.55) 82%,
    var(--bg) 100%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding-bottom: clamp(56px, 9vh, 110px);
}

/* Load-in sequence: kicker → headline → sub → CTA → meta */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero-kicker { animation: hero-in 0.8s var(--ease-out) 0.05s both; }
.hero h1 { animation: hero-in 0.9s var(--ease-out) 0.14s both; }
.hero-sub { animation: hero-in 0.9s var(--ease-out) 0.26s both; }
.hero-cta { animation: hero-in 0.9s var(--ease-out) 0.38s both; }
.hero-meta-inner { animation: hero-in 1s var(--ease-out) 0.55s both; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }

.hero-sub {
  color: var(--ink-2);
  max-width: 46ch;
  font-size: clamp(17px, 1.6vw, 20px);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Bottom meta strip: scroll cue + coordinates */
.hero-meta {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  margin-top: clamp(24px, 4vh, 48px);
}
.hero-meta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-meta .scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
}
.scroll-cue .tick {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--accent);
  animation: cue-drop 2.2s var(--ease-out) infinite;
}
@keyframes cue-drop {
  0%   { transform: translateY(-4px); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(6px); opacity: 0; }
}

/* ---------- About ------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.about-copy .sec-head { margin-bottom: 4px; align-self: stretch; }
.about-copy p {
  color: var(--ink-2);
  max-width: 56ch;
}
.about-copy .btn { margin-top: 10px; }

/* Rocket presented as a technical figure */
.about-visual { position: relative; }
.figure-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 1px 1px, rgba(244, 242, 234, 0.07) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--bg-raise);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.figure-panel img {
  width: 100%;
  max-width: 240px;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6));
  animation: rocket-drift 19s ease-in-out infinite;
}
/* Slow wandering micro-drift: uneven waypoints so it never reads as a loop */
@keyframes rocket-drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  13%  { transform: translate(3px, -5px) rotate(0.6deg); }
  27%  { transform: translate(-2px, -8px) rotate(-0.4deg); }
  41%  { transform: translate(-5px, -3px) rotate(0.3deg); }
  56%  { transform: translate(2px, -6px) rotate(0.8deg); }
  71%  { transform: translate(5px, -1px) rotate(-0.5deg); }
  86%  { transform: translate(-3px, -4px) rotate(0.2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
/* Corner ticks */
.corner-ticks { position: relative; }
.corner-ticks::before,
.corner-ticks::after {
  content: "+";
  position: absolute;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  line-height: 1;
}
.corner-ticks::before { top: 10px; left: 12px; }
.corner-ticks::after { bottom: 10px; right: 12px; }

/* ---------- Case studies (carousel: one card at a time) ------------------ */
.case-carousel { position: relative; }
.case-viewport { overflow: hidden; }
.case-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.55s var(--ease-out);
}
.case-card {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3.5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
}
.case-card:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.case-card:nth-child(even) .case-video { order: -1; }

/* Side arrows */
.case-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-raise-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.case-arrow:hover {
  border-color: var(--accent-line);
  background: var(--accent-dim);
  color: var(--accent-bright);
}
.case-arrow.prev { left: -24px; }
.case-arrow.next { right: -24px; }
.case-arrow[hidden] { display: none; }

/* Numbered pager */
.case-pager {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 28px;
}
.pager-num {
  background: none;
  border: 0;
  padding: 6px 2px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.pager-num:hover { color: var(--ink); }
.pager-num[aria-current="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.case-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}
.case-text h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.case-text p { color: var(--ink-2); }
.case-tools {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.case-tools .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
}
.tool-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 178, 36, 0.04);
}

.case-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.case-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Services ---------------------------------------------------- */
/* Hairline-divided grid: 1px gaps filled by the line colour */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: clamp(28px, 3vw, 40px);
  background: var(--bg);
  transition: background-color 0.35s ease;
}
.service-card:hover { background: var(--bg-raise); }
.service-idx {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  transition: color 0.35s ease;
}
.service-card:hover .service-idx { color: var(--accent); }
.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.service-icon img {
  width: 40px;
  height: 40px;
  transition: transform 0.35s var(--ease-out);
}
.service-card:hover .service-icon img { transform: translateY(-3px); }
.service-card h3 { font-size: 20px; letter-spacing: -0.01em; }
.service-card p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- Testimonials ------------------------------------------------ */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.5vw, 32px);
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
}
.stars {
  display: flex;
  gap: 5px;
  color: var(--accent);
}
.stars svg { width: 16px; height: 16px; }
.review-text {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.7;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.review-author img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.review-author .name { font-family: var(--font-display); font-weight: 500; font-size: 16px; }
.review-author .role {
  font-family: var(--font-mono);
  color: var(--ink-3);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  margin-top: 3px;
}

/* ---------- Team / Bio -------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.team-portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  width: min(100%, 340px);
}
.team-portrait img {
  width: 100%;
  aspect-ratio: 7 / 8;
  object-fit: cover;
}
.team-card .name { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.team-card .role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.team-bio {
  color: var(--ink-2);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.7;
}

/* ---------- FAQ --------------------------------------------------------- */
.faq-list {
  max-width: 860px;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  transition: color 0.25s ease;
}
.faq-q:hover { color: var(--accent-bright); }
.faq-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  flex: 0 0 auto;
  transition: color 0.25s ease;
}
.faq-item.open .faq-num,
.faq-q:hover .faq-num { color: var(--accent); }
.faq-q .q-text { flex: 1; }
.faq-icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink-2);
  transition: transform 0.35s var(--ease-out), opacity 0.3s ease, background-color 0.3s ease;
}
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 1.5px; }
.faq-icon::after { left: 7px; top: 0; width: 1.5px; height: 16px; }
.faq-item.open .faq-icon::before { background: var(--accent); }
.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.faq-a p {
  padding: 0 40px 28px 4px;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 68ch;
}

/* ---------- Contact ----------------------------------------------------- */
.contact-head {
  margin-bottom: 0;
  align-items: center;
  text-align: center;
}
/* Centered variant of the meta row: label sits between two hairlines */
.contact-head .sec-meta::before {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  margin-right: 10px;
}
.contact-head .btn { margin-top: 22px; }
.btn-lg { padding: 21px 40px; font-size: 14px; }

/* ---------- Footer ------------------------------------------------------ */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 88px) 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: clamp(40px, 5vw, 64px);
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-brand img { width: 128px; margin-bottom: 10px; }
.footer-brand .body-text {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 13px;
}
.footer-brand a.body-text:hover { color: var(--accent); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--ink-2); font-size: 15px; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-col .pending { color: var(--ink-3); cursor: default; font-size: 15px; }
.footer-divider { height: 1px; background: var(--line); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Reveal-on-scroll -------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Privacy page ------------------------------------------------ */
.legal { padding: 170px 0 110px; }
.legal-inner { max-width: 780px; }
.legal h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -0.03em; margin-bottom: 14px; }
.legal .updated {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 52px;
}
.legal h2 {
  font-size: 24px;
  margin: 48px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.legal p { color: var(--ink-2); margin-bottom: 14px; }
.legal ul { color: var(--ink-2); padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.back-home:hover { color: var(--accent); }

/* ---------- Responsive -------------------------------------------------- */
@media screen and (max-width: 991px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; max-width: 420px; }
  .team-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 767px) {
  body { font-size: 16px; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }

  /* Full-screen editorial overlay menu */
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 96px var(--gutter) 48px;
    background: rgba(8, 8, 6, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links .nav-link {
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--ink);
    counter-increment: menu;
    display: flex;
    align-items: baseline;
    gap: 16px;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.45s var(--ease-out), opacity 0.45s ease;
  }
  .nav-links { counter-reset: menu; }
  .nav-links .nav-link::before {
    content: "0" counter(menu);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--accent);
  }
  .nav-links .nav-link::after { display: none; }
  .nav-links.open .nav-link {
    transform: none;
    opacity: 1;
  }
  .nav-links.open .nav-link:nth-child(1) { transition-delay: 0.06s; }
  .nav-links.open .nav-link:nth-child(2) { transition-delay: 0.12s; }
  .nav-links.open .nav-link:nth-child(3) { transition-delay: 0.18s; }
  .nav-links .btn {
    display: inline-flex;
    margin-top: 32px;
    opacity: 0;
    transform: translateY(12px);
    transition: transform 0.45s var(--ease-out) 0.24s, opacity 0.45s ease 0.24s,
                background-color 0.25s ease;
  }
  .nav-links.open .btn { opacity: 1; transform: none; }

  .hero { padding-top: 110px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .hero-meta-inner { flex-wrap: wrap; gap: 10px 20px; }
  .hero-coords .coords { display: none; }

  .case-card,
  .case-card:nth-child(even) { grid-template-columns: 1fr; }
  .case-card .case-video,
  .case-card:nth-child(even) .case-video { order: -1; }
  .case-arrow { width: 40px; height: 40px; font-size: 16px; }
  .case-arrow.prev { left: 6px; }
  .case-arrow.next { right: 6px; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .faq-a p { padding-right: 8px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scroll-cue .tick { animation: none; opacity: 1; }
}
