/* ==========================================================================
   Theoria Associates — site styles
   ========================================================================== */

:root {
  --bg: #0a0b10;
  --bg-2: #10121a;
  --surface: #161924;
  --surface-2: #1d2130;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f5f8;
  --muted: #a3a8b8;

  --paper: #f4f4f1;
  --paper-2: #ffffff;
  --ink: #0a0b10;
  --ink-muted: #545a6a;
  --ink-line: rgba(10, 11, 16, 0.1);

  --accent: #7516e9;
  --accent-strong: #6210c9;
  --accent-2: #0cabf6;
  --gradient: linear-gradient(120deg, #7516e9 0%, #525cea 50%, #0cabf6 100%);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.gradient-text {
  /* Lighter start than the logo gradient so text stays readable on dark backgrounds */
  background: linear-gradient(120deg, #8f4cf2 0%, #525cea 50%, #0cabf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gradient);
}

.lead {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(117, 22, 233, 0.7);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(10, 11, 16, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-logo {
  height: 40px;
  width: auto;
}

@media (max-width: 480px) {
  .brand-logo {
    height: 34px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-header.is-open .nav-toggle span {
  background: transparent;
}

.site-header.is-open .nav-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px var(--gutter) 28px;
    background: rgba(10, 11, 16, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

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

  .nav-links a {
    padding: 14px 16px;
    font-size: 1.05rem;
  }

}

/* Sections ---------------------------------------------------------------- */

.section {
  padding: clamp(52px, 6.5vw, 84px) 0;
  position: relative;
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.section-light .lead,
.section-light p {
  color: var(--ink-muted);
}

.section-light .gradient-text {
  background-image: linear-gradient(120deg, #7516e9 0%, #3f48d8 50%, #0b7fbf 100%);
}

.section-light .eyebrow {
  color: var(--accent);
}

.section-alt {
  background: var(--bg-2);
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px 64px;
  align-items: end;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  margin: 0;
}

@media (max-width: 860px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(40px, 5.5vw, 72px)) 0 clamp(44px, 5.5vw, 72px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  opacity: 0.6;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  right: -180px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(117, 22, 233, 0.45), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-glow.two {
  width: 520px;
  height: 520px;
  right: 180px;
  top: 220px;
  background: radial-gradient(circle, rgba(12, 171, 246, 0.22), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 28px;
}

.hero .lead {
  margin-bottom: 40px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 320px;
  justify-self: end;
  width: 100%;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

.orbit {
  transform-origin: 50% 50%;
  animation: spin 40s linear infinite;
}

.orbit.reverse {
  animation-duration: 60s;
  animation-direction: reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }
}

/* Page hero (interior pages) */

.page-hero {
  padding: calc(var(--header-h) + clamp(36px, 5vw, 64px)) 0 clamp(32px, 4vw, 52px);
}

.page-hero h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  max-width: 900px;
}

/* Stats ------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--line);
}

.stat {
  padding: 28px 24px 0 0;
}

.stat + .stat {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
    margin-top: 28px;
  }
}

@media (max-width: 480px) {
  .stat {
    padding-right: 12px;
  }

  .stat + .stat {
    padding-left: 12px;
  }

  .stat:nth-child(3) {
    padding-left: 0;
  }

  .stat-value {
    font-size: 1.2rem;
  }
}

@media (max-width: 340px) {
  .stat-value {
    font-size: 1.05rem;
  }
}

/* Landscape / challenges -------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.challenge-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: challenge;
}

.challenge-list li {
  counter-increment: challenge;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--ink-line);
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.35vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.challenge-list li:last-child {
  border-bottom: 1px solid var(--ink-line);
}

.challenge-list li::before {
  content: "0" counter(challenge);
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 6px;
}

.outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--paper-2);
  border: 1px solid var(--ink-line);
  color: var(--ink);
}

.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

/* Pillars & service cards ------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 960px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pillar::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
}

.pillar:hover::after {
  transform: scaleX(1);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(117, 22, 233, 0.14);
  color: #b48cf7;
  margin-bottom: 20px;
}

.pillar-icon svg {
  width: 26px;
  height: 26px;
}

.pillar h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.pillar > p {
  color: var(--muted);
  font-size: 0.98rem;
}

.pillar-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.pillar-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.97rem;
  transition: color 0.2s ease, padding 0.2s ease;
}

.pillar-list a::after {
  content: "→";
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.pillar-list a:hover {
  color: #fff;
}

.pillar-list a:hover::after {
  color: var(--accent-2);
  transform: translateX(4px);
}

/* Why / features ---------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px solid var(--ink-line);
}

.feature-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.feature h3 {
  font-size: 1.12rem;
  color: var(--ink);
}

.feature p {
  margin: 0;
}

/* Process ----------------------------------------------------------------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.process li {
  counter-increment: step;
  position: relative;
  padding: 36px 28px 0 0;
  border-top: 2px solid var(--line);
}

.process li::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--accent);
}

.process li:first-child {
  border-image: var(--gradient) 1;
}

.process-step {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
  display: block;
}

.process h3 {
  font-size: 1.1rem;
}

.process p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0;
}

@media (max-width: 860px) {
  .process {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
}

@media (max-width: 520px) {
  .process {
    grid-template-columns: 1fr;
  }
}

/* CTA --------------------------------------------------------------------- */

.cta {
  padding: clamp(24px, 3vw, 44px) 0 clamp(52px, 6.5vw, 80px);
}

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(32px, 4.5vw, 56px) clamp(22px, 4vw, 52px);
  background: var(--gradient);
  color: #fff;
  isolation: isolate;
}

.cta-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  right: -140px;
  bottom: -300px;
  border-radius: 50%;
  border: 90px solid rgba(255, 255, 255, 0.1);
}

.cta-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  right: 180px;
  top: -140px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.08);
}

.cta-card h2 {
  max-width: 760px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 18px;
}

.cta-card p {
  max-width: 560px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
}

/* Services page ----------------------------------------------------------- */

.service-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgba(244, 244, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-line);
}

.service-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.service-nav ul::-webkit-scrollbar {
  display: none;
}

.service-nav a {
  display: block;
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  border: 1px solid var(--ink-line);
  background: var(--paper-2);
  transition: background 0.2s ease, color 0.2s ease;
}

.service-nav a:hover {
  background: var(--ink);
  color: #fff;
}

.pillar-block {
  padding: clamp(40px, 5vw, 64px) 0 0;
}

.pillar-block:last-child {
  padding-bottom: clamp(52px, 6.5vw, 80px);
}

.pillar-block-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px 64px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ink);
}

.pillar-block-head h2 {
  margin: 0;
}

.pillar-block-head p {
  margin: 0;
}

@media (max-width: 860px) {
  .pillar-block-head {
    grid-template-columns: 1fr;
  }
}

.service {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr;
  gap: 16px 48px;
  padding: 24px 0;
  border-bottom: 1px solid var(--ink-line);
  scroll-margin-top: calc(var(--header-h) + 80px);
}

.service-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
  padding-top: 6px;
}

.service h3 {
  font-size: clamp(1.1rem, 1.45vw, 1.28rem);
  color: var(--ink);
  margin: 0;
}

.service-body p {
  margin-bottom: 18px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tags li {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(117, 22, 233, 0.1);
  color: #5a10b8;
}

@media (max-width: 860px) {
  .service {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-num {
    padding: 0;
  }
}

/* About page -------------------------------------------------------------- */

.statement {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  max-width: 1000px;
  margin: 0;
}

.statement em {
  font-style: normal;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .values {
    grid-template-columns: 1fr;
  }
}

.value {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.value h3 {
  font-size: 1.1rem;
}

.value p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* Contact page ------------------------------------------------------------ */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: clamp(32px, 4vw, 48px);
  max-width: 860px;
}

@media (max-width: 700px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(117, 22, 233, 0.16);
  color: var(--accent-2);
  margin-bottom: 18px;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-card small {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-2);
}

.contact-action svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.contact-card:hover .contact-action svg {
  transform: translateX(4px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-grid h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
}

.contact-grid .contact-cards {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-card {
  padding: clamp(28px, 4vw, 44px);
  border-radius: 24px;
  background: var(--paper-2);
  color: var(--ink);
}

.form-card h2 {
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
}

.form-card > p {
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink-line);
  background: var(--paper);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.consent {
  margin: 24px 0 0;
  padding: 20px;
  border: 1.5px solid var(--ink-line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.consent legend {
  padding: 0 6px;
  font-size: 0.88rem;
  font-weight: 600;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.consent p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 12px 0 0;
}

.consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 16px 0 0;
}

.form-status {
  margin-top: 16px;
  font-weight: 600;
  color: #2f7d4f;
}

.form-status.is-error {
  color: #b42318;
}

.turnstile:not(:empty) {
  margin-top: 20px;
}

/* Honeypot field: hidden from people, visible to naive bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 36px;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 320px;
  margin-top: 18px;
}

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a,
.footer-col li {
  font-size: 0.95rem;
  color: var(--text);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom a {
  margin-left: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* Legal pages -------------------------------------------------------------- */

.prose {
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.section-light .prose p,
.section-light .prose li {
  color: #3a3f4d;
}

.prose h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin: 2.2em 0 0.6em;
  padding-top: 1.4em;
  border-top: 1px solid var(--ink-line);
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h3 {
  font-size: 1.12rem;
  margin: 1.8em 0 0.5em;
  color: var(--ink);
}

.prose strong {
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li::marker {
  color: var(--accent);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 404 --------------------------------------------------------------------- */

.not-found {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
}

.not-found .big {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 12px;
}

.not-found .btn-row {
  justify-content: center;
}

/* Reveal animation -------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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