/* ==========================================================================
   Syspro - design system
   Dark & premium. Accent: brand blue #154880. Shape: 16px cards, 12px inputs,
   pill buttons. Sources: docs/company-brief.md
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/SpaceGrotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surfaces */
  --bg: #0a0c10;
  --bg-elev: #0e1116;
  --surface: #12161d;
  --surface-2: #0c0f14;
  --accent: #154880;
  --accent-hi: #2a6cb8;
  --accent-deep: #0f3560;

  /* Ink */
  --text: #e8ebf0;
  --text-dim: #9aa3b0;
  --text-faint: #7d8796;

  /* Accent pairs
     --accent / --accent-hi / --accent-deep: Deep blue. Decorative fills,
     borders, radial hero glow only. Never as text or button text at small size.
     --accent-text: Light blue. Text, links, arrows, focus rings. AA-safe on
     --bg / --surface (>=4.5:1).
     --accent-cta: Button fill that passes AA with near-black text. */
  --accent: #154880;
  --accent-hi: #2a6cb8;
  --accent-deep: #0f3560;
  --accent-text: #5d9cec;
  --accent-cta: #4f96e8;

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Type */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  /* Shape - one scale for the whole page:
     cards & panels 16px, inputs 12px, interactive pill 999px */
  --r-card: 16px;
  --r-input: 12px;
  --r-pill: 999px;

  /* Layout */
  --wrap: 1160px;
  --header-h: 68px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 0.35s;

  /* Layers */
  --z-header: 100;
  --z-nav: 90;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

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

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

/* ==========================================================================
   Type helpers
   ========================================================================== */

.eyebrow,
.hero-label,
.service-tag,
.os-panel-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow {
  color: var(--accent-text);
  margin-bottom: 1rem;
}

.hero-label {
  color: var(--accent-text);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 7rem);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

.body {
  color: var(--text-dim);
  max-width: 62ch;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease),
    color var(--t) var(--ease), transform 0.12s var(--ease);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--accent-cta);
  color: #0b1420;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: #5d9cec;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--text-faint);
  background: rgba(255, 255, 255, 0.04);
}

.text-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-text);
  border-bottom: 1px solid rgba(93, 156, 236, 0.45);
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
  margin-top: 1.25rem;
}

.text-link:hover {
  color: #cfe0f5;
  border-color: #cfe0f5;
}

/* ==========================================================================
   Header & nav
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(9, 11, 14, 0.92);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 26px;
  width: auto;
}

.site-nav {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
}

.site-nav a {
  transition: color var(--t) var(--ease);
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav .nav-cta {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--text);
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  border-color: var(--accent-text);
  color: var(--text);
}

/* Mobile nav toggler */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--r-input);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

/* Mobile menu panel */
@media (max-width: 959px) {
  .site-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: var(--z-nav);
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    padding: 5rem 2rem 2rem;
    background: var(--bg-elev);
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  /* On mobile, drop the header's backdrop-filter: it turns the header
     into a containing block that would trap the fixed nav at header height.
     Without it, the nav's inset:0 fills the real viewport full-screen. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-toggle {
    position: relative;
    z-index: calc(var(--z-nav) + 1);
  }

  .site-nav a {
    padding: 0.65rem 0;
  }

  .site-nav .nav-cta {
    border: none;
    padding: 0.65rem 0;
    color: var(--accent-text);
  }
}

@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: var(--bg);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(125% 100% at 50% 42%, transparent 52%, rgba(5, 7, 10, 0.55) 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  opacity: 0.28;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Signal line: the monitor trace that ties the hero to monitoring/drift. */
.hero-signal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(10vh, 14vh, 16vh);
  height: 90px;
  opacity: 0.7;
  pointer-events: none;
}

.hero-signal svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-signal .trace {
  stroke: var(--accent-text);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Trace draws itself in once on load, then stays solid. */
@supports (offset-distance: 0%) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-signal .trace {
      stroke-dasharray: 1360;
      stroke-dashoffset: 1360;
      animation: trace-draw 1.6s var(--ease) forwards;
    }
  }
}

@keyframes trace-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-signal .scan,
.hero-signal .scan-glow {
  fill: var(--beep, #ff5a52);
  transform-box: fill-box;
}

.hero-signal .scan {
  opacity: 0.9;
}

/* Soft red bloom riding underneath the lead signal dot. */
.hero-signal .scan-glow {
  opacity: 0.32;
  filter: blur(2px);
}

/* Mobile: keep the trace at its native ratio so dots stay round and
   legible instead of getting squashed by full-width stretching.
   SVG is scaled ~0.325x here, so r is inflated in user units to keep
   the dots ~12px (scan) and a ~30px soft bloom (glow) on screen. */
@media (max-width: 599px) {
  .hero-signal {
    opacity: 0.9;
    height: auto;
  }
  .hero-signal svg {
    height: auto;
    aspect-ratio: 1200 / 90;
  }
  .hero-signal .trace {
    stroke-width: 8;
  }
  .hero-signal .scan {
    r: 18px;
  }
  .hero-signal .scan-glow {
    r: 46px;
    opacity: 0.26;
  }
}

@supports (offset-distance: 0%) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-signal .scan-glow {
      animation: scan-glow-run 4.5s var(--ease) infinite;
      animation-delay: 1.6s;
    }
    .hero-signal .scan {
      animation: scan-run 4.5s var(--ease) infinite;
      animation-delay: 1.6s;
    }
    .hero-signal .scan-2 {
      animation-delay: 0.1s;
    }
    .hero-signal .scan-3 {
      animation-delay: -1.4s;
    }
  }
}

@keyframes scan-run {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  6% {
    opacity: 0.9;
  }
  94% {
    opacity: 0.9;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

@keyframes scan-glow-run {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  8% {
    opacity: 0.3;
  }
  92% {
    opacity: 0.3;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

.hero-inner {
  position: relative;
  padding-top: clamp(5rem, 10vh, 7rem);
  padding-bottom: 4rem;
}

.hero-label {
  margin-bottom: 1.4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 14ch;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 1.5rem;
  color: var(--text-dim);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  max-width: 44ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero-label {
  margin-bottom: 1.4rem;
}
.js .hero [data-hero] {
  opacity: 0;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.js .hero [data-hero].is-in {
  animation: hero-in 0.7s var(--ease) both;
  animation-delay: var(--d, 0s);
}

/* ==========================================================================
   Manifesto band
   ========================================================================== */

.manifesto {
  border-block: 1px solid var(--line);
  background: var(--bg-elev);
  padding-block: clamp(4rem, 8vw, 6rem);
  text-align: center;
}

.manifesto-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.manifesto-sub {
  margin: 1.25rem auto 0;
  max-width: 48ch;
  color: var(--text-dim);
}

/* ==========================================================================
   Customers
   ========================================================================== */

.customers-label {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.customer-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  padding: 0;
}

.customer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease),
    transform 0.12s var(--ease);
}

.customer:hover {
  border-color: var(--accent-deep);
  background: var(--bg-elev);
}

.customer:active {
  transform: translateY(1px) scale(0.99);
}

.customer img {
  max-width: 100%;
  max-height: 30px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter var(--t) var(--ease), opacity var(--t) var(--ease);
}

.customer:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.customer .is-mark {
  max-height: 64px;
}

/* Dark-glyph logos: show as a light silhouette so they read on dark,
   return to brand colors on hover. */
.customer img.is-dark {
  filter: brightness(0) invert(0.85);
  opacity: 0.8;
}

.customer:hover img.is-dark {
  filter: brightness(0) invert(0.97);
  opacity: 1;
}

.customer.is-text span {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  text-align: center;
  transition: color var(--t) var(--ease);
}

.customer.is-text:hover span {
  color: var(--text);
}

/* ==========================================================================
   Services
   ========================================================================== */

/* ==========================================================================
   Services - editorial rows
   ========================================================================== */

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.services-list {
  border-top: 1px solid var(--line-strong);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  padding-inline: 1rem;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-input);
  transition: background-color var(--t) var(--ease), transform var(--t) var(--ease);
}

.service-row:hover {
  background: var(--surface-2);
  transform: translateX(4px);
}

.service-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding-top: 0.35rem;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-text);
  margin-bottom: 0.9rem;
}

.service-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.9rem;
  text-wrap: balance;
}

.service-lede {
  color: var(--text-dim);
  max-width: 58ch;
  margin-bottom: 1.5rem;
}

.service-features {
  display: grid;
  gap: 0.7rem;
  max-width: 52ch;
}

.service-features li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  color: var(--text-dim);
}

.service-features li::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 2px;
  background: var(--accent-text);
  transform: translateY(-0.28em);
  border-radius: 2px;
}

.service-note {
  color: var(--text-dim);
  font-size: 0.95rem;
  border-left: 2px solid var(--accent-text);
  padding-left: 1rem;
  max-width: 52ch;
}

.service-arrow {
  display: none;
  align-items: center;
  justify-content: flex-end;
  color: var(--text-faint);
  transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}

.service-row:hover .service-arrow,
.service-arrow:focus-visible {
  color: var(--accent-text);
  transform: translateX(4px);
}

/* Pill list (consulting) */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Tech ticker: full-width scrolling band of the open source products we use.
   Logos are muted to a single tone; hover restores brand color.
   Pure CSS loop (translateX -50% of the double-length track). */
.tech-ticker {
  border-block: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.015),
    rgba(255, 255, 255, 0.008)
  );
  overflow: hidden;
}

.tech-ticker-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.9rem clamp(1rem, 3vw, 1.5rem);
}

.tech-ticker-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}

.ticker-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  list-style: none;
  padding: 0;
  animation: tech-ticker 42s linear infinite;
  will-change: transform;
}

.ticker-viewport:hover .ticker-track,
.ticker-viewport:focus-within .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  color: var(--text-faint);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-right: 2.25rem;
}

.ticker-item img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  filter: grayscale(1) opacity(0.82);
  transition: filter var(--t) var(--ease);
}

.ticker-item:hover img {
  filter: grayscale(0) opacity(1);
}

@keyframes tech-ticker {
  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 960px) {
  .service-row {
    grid-template-columns: 4.5rem minmax(0, 1fr) 3rem;
    align-items: start;
    gap: clamp(1.5rem, 3vw, 3rem);
  }

  .service-title {
    max-width: 24ch;
  }

  .service-arrow {
    display: inline-flex;
  }
}

/* ==========================================================================
   Open source split
   ========================================================================== */

.os {
  background: var(--bg-elev);
  border-block: 1px solid var(--line);
}

.os-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.os-panel {
  background: linear-gradient(160deg, #164a86, var(--accent-deep));
  border-radius: var(--r-card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 60px rgba(21, 72, 128, 0.25);
  padding: clamp(2rem, 4vw, 3rem);
}

.os-panel-tag {
  color: #cfe0f5;
  margin-bottom: 1.5rem;
}

.os-panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #fff;
}

@media (min-width: 960px) {
  .os-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2.5rem, 6vw, 5rem);
  }
}

/* ==========================================================================
   How we work
   ========================================================================== */

.proces .section-title {
  margin-bottom: 2.5rem;
}

.proces-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

.proces-col {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.5rem;
}

.proces-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.proces-text {
  color: var(--text-dim);
  max-width: 46ch;
}

@media (min-width: 960px) {
  .proces-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-wrap {
  max-width: 780px;
}

.faq-wrap .section-title {
  margin-bottom: 2.25rem;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  transition: color var(--t) var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent-text);
  transition: transform 0.3s var(--ease);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  color: var(--text);
}

.faq-item p {
  color: var(--text-dim);
  padding-bottom: 1.35rem;
  max-width: 60ch;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-list {
  margin-top: 2rem;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-row dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}

.contact-row dd {
  font-size: 1.05rem;
  font-weight: 500;
}

.contact-row a {
  transition: color var(--t) var(--ease);
}

.contact-row a:hover {
  color: var(--accent-text);
}

/* Map */
.contact-map {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contact-map img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-2);
}

.map-credit {
  padding: 0.5rem 1.2rem 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-align: right;
}

.map-link {
  display: block;
  padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-align: center;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}

.map-link:hover {
  color: var(--accent-text);
  background: var(--surface-2);
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #07090b;
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.footer-brand p {
  color: var(--text-dim);
  max-width: 34ch;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.footer-col a {
  transition: color var(--t) var(--ease);
  width: fit-content;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-policy-link {
  color: var(--text-faint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.footer-policy-link:hover {
  color: var(--accent-text);
  border-color: rgba(93, 156, 236, 0.5);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3.5rem;
  }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Accessibility: 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;
  }

  .ticker-track {
    animation-duration: 42s !important;
    animation-iteration-count: infinite !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .js .hero [data-hero] {
    opacity: 1;
  }

  .site-nav {
    transition: none;
  }
}