/* ==========================================================================
   Motoranza — main stylesheet
   1. Fonts (self-hosted, see fonts/README.txt)
   2. Design tokens: change colors, fonts and spacing here
   3. Base
   4. Layout helpers and shared components
   5. Sections, in page order
   6. Legal pages
   7. Motion and reduced-motion
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Design tokens -------------------------------------------------------- */
:root {
  /* Colors: amber and navy come from the logo mark */
  --bg: #06080d;
  --bg-raised: #0b0f18;
  --bg-card: #0e131e;
  --line: rgba(236, 238, 243, 0.08);
  --line-strong: rgba(236, 238, 243, 0.16);
  --text: #eceef3;
  --text-muted: #9098aa;
  --text-faint: #5d6477;
  --amber: #f4a340;
  --amber-hover: #f7b665;
  --amber-soft: rgba(244, 163, 64, 0.12);
  --navy: #173a86;

  /* Type */
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-space: clamp(5.5rem, 12vw, 9.5rem);
  --header-h: 68px;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 3. Base ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--amber); color: #1a1206; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--amber);
  color: #1a1206;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }

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

/* 4. Layout helpers and shared components ---------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-space); position: relative; }
.section--line { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  gap: 1.25rem 4rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.2fr 1fr; align-items: end; }
}

.section-title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 46ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber); color: #1a1206; }
.btn--primary:hover { background: var(--amber-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: rgba(236, 238, 243, 0.35); background: rgba(255, 255, 255, 0.05); }
.btn--small { min-height: 38px; padding: 0.45rem 1rem; font-size: 0.9rem; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tag--pro { color: var(--amber); border-color: rgba(244, 163, 64, 0.35); }

/* Image placeholders: replace each .ph with an <img> (see comments in index.html) */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(23, 58, 134, 0.35), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, rgba(244, 163, 64, 0.1), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--line);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  color: var(--text-faint);
  white-space: nowrap;
}
.ph img, .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ph img { position: relative; z-index: 1; }

/* 5. Sections ------------------------------------------------------------- */

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(6, 8, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 450;
  letter-spacing: -0.01em;
}
.brand img { width: 30px; height: 30px; }

.nav-list { display: flex; align-items: center; gap: 0.25rem; }
.nav-list a:not(.btn) {
  display: block;
  padding: 0.45rem 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: color 0.2s var(--ease);
}
.nav-list a:not(.btn):hover { color: var(--text); }
.nav-list a[aria-current="true"] { color: var(--text); }
.nav-cta { margin-left: 0.75rem; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  position: relative;
}
.menu-toggle span,
.menu-toggle span::before {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.25s var(--ease);
  content: "";
}
.menu-toggle span { top: 18px; }
.menu-toggle span::before { top: 6px; }
.site-header.is-open .menu-toggle span { transform: translateX(-50%) translateY(3px) rotate(45deg); }
.site-header.is-open .menu-toggle span::before { transform: translateX(-50%) translateY(-6px) rotate(-90deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    background: rgba(6, 8, 13, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    display: none;
  }
  .site-header.is-open .site-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a:not(.btn) { padding: 0.9rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { margin: 1.25rem 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
  --gx: 70%;
  --gy: 30%;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent);
}
/* Fine engineering grid, fading out toward the edges */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(236, 238, 243, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 238, 243, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%);
}
/* Soft glow that drifts toward the pointer */
.hero-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(38% 42% at var(--gx) var(--gy), rgba(244, 163, 64, 0.16), transparent 70%),
    radial-gradient(50% 55% at calc(100% - var(--gx)) 20%, rgba(23, 58, 134, 0.5), transparent 70%);
  filter: blur(40px);
  transition: background-position 0.6s var(--ease);
}
.hero-horizon {
  position: absolute;
  left: 50%;
  bottom: -62vw;
  width: 140vw;
  height: 80vw;
  transform: translateX(-50%);
  border-radius: 50%;
  border-top: 1px solid rgba(244, 163, 64, 0.35);
  background: radial-gradient(ellipse at 50% 0%, rgba(23, 58, 134, 0.35), transparent 55%);
  box-shadow: 0 -30px 120px -20px rgba(244, 163, 64, 0.18);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(3rem, 8.2vw, 7.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > span { display: block; }

.hero-bottom {
  display: grid;
  gap: 3rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
}
@media (min-width: 960px) {
  .hero-bottom { grid-template-columns: 1fr minmax(380px, 460px); gap: 4rem; }
}
.hero-lede {
  color: var(--text-muted);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  max-width: 44ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
}

/* Build log terminal */
.terminal {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 26, 40, 0.8), rgba(11, 15, 24, 0.9));
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}
.terminal::before {
  /* Lit top edge */
  content: "";
  position: absolute;
  inset: 0 10% auto 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 163, 64, 0.7), transparent);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}
.terminal-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(236, 238, 243, 0.14);
}
.terminal-bar span { margin-left: auto; font-size: 0.78rem; color: var(--text-faint); }
.terminal-body {
  padding: 1.1rem 1.2rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--text-muted);
  min-height: 13.5em;
}
.terminal-body li { white-space: pre-wrap; }
.terminal-body .cmd { color: var(--text); }
.terminal-body .cmd::before { content: "$ "; color: var(--amber); }
.terminal-body .ok { color: var(--text); }
.terminal-body .dim { color: var(--text-faint); }
.terminal-body .hl { color: #4ade80; }
.terminal-body .accent { color: var(--amber); }
.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--amber);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--bg);
  isolation: isolate;
  --mx: 50%;
  --my: 50%;
}
.service::before {
  /* Spotlight following the pointer */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(244, 163, 64, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.service:hover::before { opacity: 1; }
.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  color: var(--amber);
  margin-bottom: 2.25rem;
  background: rgba(255, 255, 255, 0.02);
}
.service-icon svg { width: 22px; height: 22px; }
.service h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.service p { color: var(--text-muted); font-size: 1rem; max-width: 36ch; }

/* Process */
.process-steps {
  display: grid;
  gap: 2.5rem;
  position: relative;
  counter-reset: step;
}
@media (min-width: 900px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .process-steps::before,
  .process-steps::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line-strong);
  }
  .process-steps::after {
    background: linear-gradient(90deg, var(--amber), rgba(244, 163, 64, 0.4));
    transform-origin: left;
    transform: scaleX(var(--progress, 0));
    box-shadow: 0 0 12px rgba(244, 163, 64, 0.5);
  }
}
.step { position: relative; padding-left: 2rem; }
@media (min-width: 900px) { .step { padding-left: 0; padding-top: 2.75rem; } }
.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  z-index: 1;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
@media (min-width: 900px) { .step::before { top: 0; } }
.step.is-active::before {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(244, 163, 64, 0.15);
}
.step-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--amber);
  margin-bottom: 0.5rem;
  display: block;
}
.step h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 1rem; max-width: 34ch; }
.step-time { display: block; margin-top: 1rem; font-size: 0.85rem; color: var(--text-faint); }

/* Projects */
.projects-grid { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem) 2rem; }
@media (min-width: 900px) {
  .projects-grid { grid-template-columns: repeat(12, 1fr); }
  .project:nth-child(4n + 1) { grid-column: span 7; }
  .project:nth-child(4n + 2) { grid-column: span 5; }
  .project:nth-child(4n + 3) { grid-column: span 5; }
  .project:nth-child(4n + 4) { grid-column: span 7; }
}
.project { display: block; text-decoration: none; }
.project .ph { aspect-ratio: 16 / 11; transition: border-color 0.3s var(--ease); }
.project .ph > * { transition: transform 0.6s var(--ease); }
.project:hover .ph { border-color: var(--line-strong); }
@media (min-width: 900px) {
  .project .ph { aspect-ratio: auto; height: clamp(300px, 32vw, 460px); }
}
.project:hover .ph img { transform: scale(1.03); }
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.25rem;
}
.project h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: -0.015em;
}
.project-year { color: var(--text-faint); font-size: 0.9rem; }
.project p { color: var(--text-muted); margin: 0.4rem 0 1rem; max-width: 52ch; }

/* Tech stack */
.marquee {
  --gap: 3rem;
  display: flex;
  overflow: hidden;
  gap: var(--gap);
  padding-block: 0.25rem;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  margin-bottom: 0.75rem;
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: var(--gap);
  min-width: 100%;
  justify-content: space-around;
  animation: marquee 48s linear infinite;
}
.marquee--reverse .marquee-track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 350;
  letter-spacing: -0.02em;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.marquee-track li:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }

.stack-groups {
  display: grid;
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) { .stack-groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stack-groups { grid-template-columns: repeat(4, 1fr); } }
.stack-groups h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.9rem; }
.stack-groups ul { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Testimonials */
.testimonials { display: grid; gap: 1.25rem; }
@media (min-width: 960px) {
  .testimonials { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
  .quote--featured { grid-row: span 2; }
}
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-raised);
  overflow: hidden;
}
.quote--featured {
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(23, 58, 134, 0.45), transparent 70%),
    radial-gradient(60% 50% at 100% 100%, rgba(244, 163, 64, 0.1), transparent 70%),
    var(--bg-raised);
  border-color: var(--line-strong);
}
.quote blockquote p {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: 1.3rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.quote--featured blockquote p { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.25; }
.quote figcaption { display: flex; align-items: center; gap: 0.85rem; }
.quote figcaption .ph { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.quote figcaption .ph::after { content: none; }
.quote cite { font-style: normal; font-weight: 600; display: block; }
.quote figcaption span { color: var(--text-muted); font-size: 0.92rem; }

/* Team */
.team-grid { display: grid; gap: 2.5rem 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 960px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }
.member .ph { aspect-ratio: 4 / 5; margin-bottom: 1.1rem; }
.member h3 { font-size: 1.1rem; font-weight: 600; }
.member p { color: var(--text-muted); font-size: 0.95rem; }

/* FAQ */
.faq-layout { display: grid; gap: 3rem; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 1fr 1.5fr; gap: 5rem; } }
.faq-aside .section-intro { margin-top: 1.25rem; }
.faq-aside a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #fff; }
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--text-muted);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item[open] .faq-icon { border-color: var(--amber); }
.faq-answer { overflow: hidden; }
.faq-answer p { color: var(--text-muted); padding-bottom: 1.5rem; max-width: 60ch; }

/* Contact */
.contact-card {
  position: relative;
  display: grid;
  gap: 3rem;
  padding: clamp(1.75rem, 5vw, 4rem);
  border-radius: calc(var(--radius-lg) + 6px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(60% 70% at 0% 0%, rgba(23, 58, 134, 0.4), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, rgba(244, 163, 64, 0.08), transparent 70%),
    var(--bg-raised);
  overflow: hidden;
}
@media (min-width: 960px) { .contact-card { grid-template-columns: 1fr 1.15fr; gap: 4.5rem; } }
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 15% auto 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 163, 64, 0.6), transparent);
}
.contact-info .section-intro { margin-top: 1.25rem; }
.offices { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 560px) and (max-width: 959px) { .offices { grid-template-columns: 1fr 1fr; } }
.office {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.office h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-bottom: 0.5rem; }
.office address { font-style: normal; color: var(--text-muted); font-size: 0.975rem; }
.office a { color: var(--text-muted); text-decoration: none; }
.office a:hover { color: var(--text); }
.office-links { display: grid; margin-top: 0.4rem; font-size: 0.975rem; }

/* Form */
.contact-form { display: grid; gap: 1.1rem; align-content: start; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field label .optional { color: var(--text-faint); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(6, 8, 13, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239098aa' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(244, 163, 64, 0.18);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #f87171; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.4rem; }
.form-consent { font-size: 0.85rem; color: var(--text-faint); max-width: 38ch; }
.form-consent a { color: var(--text-muted); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status {
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  display: none;
}
.form-status.is-success { display: block; background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.3); color: #bbf7d0; }
.form-status.is-error { display: block; background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.3); color: #fecaca; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.footer-top { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 1rem; max-width: 30ch; }
.footer-col h3 { color: var(--text); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.9rem; }
.footer-col ul { display: grid; gap: 0.5rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--text-faint);
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }
.footer-legal { display: flex; gap: 1.5rem; }

/* 6. Legal pages ----------------------------------------------------------- */
.legal-page .site-header { background: rgba(6, 8, 13, 0.72); border-bottom-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.legal {
  max-width: 72ch;
  margin-inline: auto;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 4rem) var(--gutter) 6rem;
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.legal .updated { color: var(--text-faint); margin-top: 1rem; font-size: 0.95rem; }
.legal-notice-banner {
  margin: 2rem 0 3rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(244, 163, 64, 0.35);
  background: var(--amber-soft);
  color: #f9d9ae;
  font-size: 0.95rem;
}
.legal h2 { font-size: 1.3rem; font-weight: 600; margin: 2.75rem 0 0.75rem; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-muted); }
.legal p + p { margin-top: 1rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.4rem; margin-top: 0.75rem; }
.legal a { color: var(--amber); text-underline-offset: 3px; }
.legal address { font-style: normal; color: var(--text-muted); margin-top: 0.75rem; }

/* 7. Motion --------------------------------------------------------------- */
/* Scroll reveals only apply when JavaScript is running */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Hero load sequence */
.js .hero-title .line > span { transform: translateY(105%); }
.js .hero-fade { opacity: 0; transform: translateY(12px); }
.js .is-loaded .hero-title .line > span {
  transform: none;
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.09s + 0.1s);
}
.js .is-loaded .hero-fade {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0.5s);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .hero-fade, .js .hero-title .line > span { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: flex-start; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee[aria-hidden="true"] { display: none; }
  .caret { animation: none; }
}

.brand { gap: 0.15rem; }
.brand img { width: 32px; height: 32px; }