/* =========================================================
   SELF-HOSTED FONTS — Px Grotesk / Px Grotesk Mono
   These are commercial fonts and are NOT included in this project.
   To use them: buy/obtain your license (Pangram Pangram Foundry), then
   drop the .woff2 files into assets/fonts/ using these exact filenames
   (or edit the src paths below to match whatever you were given):
     assets/fonts/PxGrotesk-Regular.woff2   (weight 400)
     assets/fonts/PxGrotesk-Medium.woff2    (weight 500)
     assets/fonts/PxGrotesk-Bold.woff2      (weight 700)
     assets/fonts/PxGroteskMono-Regular.woff2 (weight 400)
     assets/fonts/PxGroteskMono-Medium.woff2  (weight 500)
   Until those files exist, the browser silently falls through to the
   fallback stack in tokens.css — nothing breaks either way.
   ========================================================= */
@font-face {
  font-family: "Px Grotesk";
  src: url("../assets/fonts/PxGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Px Grotesk";
  src: url("../assets/fonts/PxGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Px Grotesk";
  src: url("../assets/fonts/PxGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Px Grotesk Mono";
  src: url("../assets/fonts/PxGroteskMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Px Grotesk Mono";
  src: url("../assets/fonts/PxGroteskMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   BASE / RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
}

p, blockquote { margin: 0; color: var(--text); }

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

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

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

ul { margin: 0; padding: 0; list-style: none; }

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

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

/* Data/eyebrow label — the site's recurring "log line" motif */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* =========================================================
   SCROLL REVEAL
   Applied via JS (initScrollReveal). Elements start hidden/offset
   and animate to their resting state once scrolled into view.
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(64px) scale(0.96);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  will-change: opacity, transform, filter;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.reveal-pop {
  opacity: 0;
  transform: translateY(36px) scale(0.8);
  filter: blur(4px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease), filter 0.75s var(--ease);
  will-change: opacity, transform, filter;
}
.reveal-pop.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-pop {
    opacity: 1; transform: none; filter: none; transition: none;
  }
}

/* =========================================================
   ICON CHIP  — small circular icon badge used across cards
   ========================================================= */
.icon-chip {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(217,138,84,0.16), rgba(217,138,84,0.04));
  border: 1px solid rgba(217,138,84,0.28);
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.icon-chip .icon { width: 20px; height: 20px; }
.icon { width: 18px; height: 18px; }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 {
  font-size: var(--step-3);
  margin-top: 0.6em;
}
.section-head p {
  margin-top: 1em;
  color: var(--text-dim);
  font-size: var(--step-1);
}

section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  position: relative;
  /* keeps the section's top clear of the fixed nav when jumped to via #anchor links */
  scroll-margin-top: 84px;
}
section + section {
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.7em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: #0A0D12;
  font-weight: 600;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(217,138,84,0.55);
}

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

/* Transparent, colored-border-only variant — used for the consultation
   form's submit button per the client's request (no fill, border colored). */
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: rgba(217,138,84,0.08);
  box-shadow: 0 0 0 3px rgba(217,138,84,0.12);
  transform: translateY(-1px);
}
.btn-outline:disabled { opacity: 0.6; cursor: default; transform: none; }

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

/* =========================================================
   LIGHT SECTIONS
   About and Team sit on a light background, everything else stays
   on the dark theme. Re-declaring the same custom properties here
   means every component (cards, icon chips, dividers, text colors)
   automatically adapts without needing separate light/dark variants.
   ========================================================= */
#about, #team {
  background: #F3F0E8;
  --text: #171B22;
  --text-dim: #565F6E;
  --text-faint: #8A93A1;
  --line: rgba(23, 27, 34, 0.1);
  --line-strong: rgba(23, 27, 34, 0.18);
  --panel: #FFFFFF;
  --panel-alt: #ECE7DA;
  --panel-raised: #FFFFFF;
}

/* Form fields stay left-aligned regardless of the section-wide centering
   above — centered labels/inputs would hurt usability. */
.field { text-align: left; }
.field input, .field select, .field textarea { text-align: left; }
