/* ============================================================
   ALINEA · DIGITAL MEDIA MARKETING
   Editorial dark aesthetic for electronic music
   ============================================================ */

/* ──────────────── 0. RESET & ROOT ──────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ──────────────── 1. DESIGN TOKENS ──────────────── */
:root {
  /* Type */
  --font-sans: 'Satoshi', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Fluid scale */
  --text-xs:    clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --text-sm:    clamp(0.85rem, 0.82rem + 0.15vw, 0.94rem);
  --text-base:  clamp(0.97rem, 0.93rem + 0.22vw, 1.06rem);
  --text-lg:    clamp(1.10rem, 1.04rem + 0.30vw, 1.22rem);
  --text-xl:    clamp(1.45rem, 1.30rem + 0.80vw, 1.85rem);
  --text-2xl:   clamp(2.0rem,  1.70rem + 1.50vw, 2.85rem);
  --text-3xl:   clamp(2.6rem,  2.10rem + 2.50vw, 4.00rem);
  --text-hero:  clamp(3.0rem,  2.20rem + 4.50vw, 6.20rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-8:  3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;
  --space-20: 9rem;
  --space-24: 12rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 9vw, 9rem);

  /* Brand accents (constant across themes) */
  --accent-cyan:    #4cf3d6;
  --accent-magenta: #ff3da8;
  --accent-amber:   #f7c948;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* DARK (default) */
:root,
[data-theme='dark'] {
  --bg:          #0a0a0b;
  --bg-2:        #101013;
  --bg-3:        #16161b;
  --surface:     #15151a;
  --surface-2:   #1c1c22;
  --line:        rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text:        #f3f1ec;
  --text-muted:  rgba(243, 241, 236, 0.60);
  --text-faint:  rgba(243, 241, 236, 0.38);
  --inverse-bg:  #f3f1ec;
  --inverse-text:#0a0a0b;
  --shadow-lg:   0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --hero-grad:   radial-gradient(60% 60% at 80% 20%, rgba(76, 243, 214, 0.10), transparent 60%),
                 radial-gradient(50% 50% at 15% 80%, rgba(255, 61, 168, 0.10), transparent 60%);
  color-scheme: dark;
}

/* LIGHT */
[data-theme='light'] {
  --bg:          #f6f5f1;
  --bg-2:        #efede7;
  --bg-3:        #e9e7e0;
  --surface:     #ffffff;
  --surface-2:   #f1efe9;
  --line:        rgba(10, 10, 11, 0.10);
  --line-strong: rgba(10, 10, 11, 0.20);
  --text:        #0d0d10;
  --text-muted:  rgba(13, 13, 16, 0.62);
  --text-faint:  rgba(13, 13, 16, 0.42);
  --inverse-bg:  #0a0a0b;
  --inverse-text:#f3f1ec;
  --shadow-lg:   0 30px 60px -28px rgba(20, 18, 12, 0.18);
  --hero-grad:   radial-gradient(60% 60% at 80% 20%, rgba(76, 180, 160, 0.18), transparent 60%),
                 radial-gradient(50% 50% at 15% 80%, rgba(225, 60, 150, 0.10), transparent 60%);
  color-scheme: light;
}

/* ──────────────── 2. BASE ──────────────── */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--text); color: var(--bg); padding: var(--space-3) var(--space-4);
  z-index: 100; border-radius: var(--radius-sm); font-size: var(--text-sm);
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

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

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ──────────────── 3. TYPOGRAPHY ──────────────── */
.display {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-hero);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--text);
}
.display__line { display: block; }
.display__em {
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.03em;
}

/* Mono display variant
   Used on the hero so the headline matches the ALINEA wordmark voice:
   monospace, uppercase, wide tracking, sized to flow horizontally. */
.display--mono {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  /* Sized to flow on as few lines as possible at the active viewport. */
  font-size: clamp(1.25rem, 0.85rem + 1.85vw, 2.35rem);
  line-height: 1.25;
  max-width: none;
}
.display--mono .display__em {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-3xl);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.section__title--muted {
  color: var(--text-muted);
  font-weight: 500;
}

/* Eyebrow — the editorial tag from the deck:
   ───  ◆  02  INTRODUCTION                       */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow__rule {
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--text-faint);
}
.eyebrow__dot {
  width: 8px; height: 8px;
  transform: rotate(45deg);
  background: var(--accent-cyan);
  display: inline-block;
}
.eyebrow__dot--cyan    { background: var(--accent-cyan); }
.eyebrow__dot--magenta { background: var(--accent-magenta); }
.eyebrow__dot--amber   { background: var(--accent-amber); }
.eyebrow__num   { color: var(--text); font-weight: 500; }
.eyebrow__label { color: var(--text); }

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

/* ──────────────── 4. NAV ──────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-4) var(--gutter);
  transition: background 0.4s var(--ease-soft),
              border-color 0.4s var(--ease-soft),
              padding 0.3s var(--ease-soft),
              transform 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}
.nav.is-hidden { transform: translateY(-110%); }

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text);
}

/* Brandmark uses the actual Alinea logo (raster).
   Theme variants are swapped via the [data-theme] attribute by toggling display.  */
.brandmark {
  display: inline-block;
  height: 30px;
  width: auto;
  flex-shrink: 0;
  line-height: 0;
}
.brandmark__img {
  display: block;
  height: 100%;
  width: auto;
}
/* Show the correct version for the active theme, regardless of system preference */
[data-theme='dark'] .brandmark img { content: url("assets/alinea-mark-dark.png"); }
[data-theme='light'] .brandmark img { content: url("assets/alinea-mark-light.png"); }

.brandmark--lg { height: 56px; }

.brand__wordmark {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.30em;
  text-transform: uppercase;
  font-weight: 500;
  /* The raster logo speaks for the brand; keep the wordmark for screen readers */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav__links {
  display: none;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.nav__links a {
  position: relative;
  padding: var(--space-2) 0;
  transition: color 0.2s var(--ease-soft);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

@media (min-width: 880px) {
  .nav__links { display: inline-flex; }
}

.nav__actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  position: relative;
  transition: border-color 0.2s, background 0.2s, transform 0.4s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--line-strong); transform: rotate(20deg); }
.theme-toggle .icon {
  width: 16px; height: 16px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
  position: absolute;
  transition: opacity 0.3s, transform 0.3s;
}
[data-theme='dark']  .icon--sun  { opacity: 0; transform: rotate(-30deg) scale(0.6); }
[data-theme='dark']  .icon--moon { opacity: 1; }
[data-theme='light'] .icon--sun  { opacity: 1; }
[data-theme='light'] .icon--moon { opacity: 0; transform: rotate(30deg) scale(0.6); }
.icon--moon { fill: currentColor; stroke: none; color: var(--text); }

.nav__cta { display: none; }
@media (min-width: 720px) { .nav__cta { display: inline-flex; } }

/* ──────────────── 5. BUTTONS ──────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.85rem 1.4rem;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform 0.4s var(--ease-out),
              background 0.25s var(--ease-soft),
              color 0.25s var(--ease-soft),
              border-color 0.25s var(--ease-soft);
}
.btn:active { transform: scale(0.98); }
.btn__arrow { transition: transform 0.4s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--inverse-bg);
  color: var(--inverse-text);
  border: 1px solid var(--inverse-bg);
}
.btn--primary:hover { background: var(--accent-cyan); color: #0a0a0b; border-color: var(--accent-cyan); }

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

.btn--link {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--text-faint);
  border-radius: 0;
  color: var(--text);
}
.btn--link:hover { border-bottom-color: var(--text); }

/* ──────────────── 6. HERO ──────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--space-20) + 4rem) 0 var(--space-16);
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: var(--hero-grad);
  z-index: -2;
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(80% 60% at 50% 40%, black, transparent 80%);
  opacity: 0.5;
}
.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
  animation: orbDrift 18s ease-in-out infinite;
}
.orb--cyan    { width: 480px; height: 480px; top: -10%;  right: -5%;  background: var(--accent-cyan); animation-delay: -2s; }
.orb--magenta { width: 380px; height: 380px; bottom: -8%; left: -6%;  background: var(--accent-magenta); animation-delay: -8s; opacity: 0.30; }
.orb--amber   { width: 280px; height: 280px; top: 40%;   left: 60%;   background: var(--accent-amber); opacity: 0.18; animation-delay: -14s; }
[data-theme='light'] .orb { opacity: 0.18; }
[data-theme='light'] .orb--magenta { opacity: 0.14; }
[data-theme='light'] .orb--amber { opacity: 0.10; }

@keyframes orbDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-30px, 20px, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 1180px;
}
.hero__lede {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 56ch;
  font-weight: 400;
}
.hero__etym {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 60ch;
  margin-top: calc(var(--space-2) * -1);
  padding-top: var(--space-3);
  padding-left: var(--space-4);
  border-left: 1px solid var(--line);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-faint);
  font-style: italic;
}
.hero__etym .mono {
  font-family: var(--font-mono);
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--text-muted);
}
.hero__etym em {
  color: var(--text-muted);
}
.hero__etym-mark {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 1.1em;
  line-height: 1;
  color: var(--accent-cyan, #4cf3d6);
  flex: 0 0 auto;
  transform: translateY(0.05em);
}
.hero__etym-text { display: inline; }
@media (max-width: 540px) {
  .hero__etym {
    font-size: var(--text-xs);
    padding-left: var(--space-3);
    gap: var(--space-2);
  }
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.hero__scrollcue {
  position: absolute;
  bottom: var(--space-6);
  left: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero__scrollcue span {
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.hero__scrollcue span::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--text);
  transform: translateX(-100%);
  animation: scrollLine 2.6s var(--ease-out) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* ──────────────── 7. SECTION SHELL ──────────────── */
.section {
  position: relative;
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}
.section__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 60ch;
  margin-bottom: var(--space-12);
}

/* ──────────────── 8. STATS ──────────────── */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px)  { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  padding: var(--space-8) var(--space-5);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.4s var(--ease-soft);
}
@media (min-width: 720px) {
  .stat:nth-child(odd)  { border-right: 1px solid var(--line); }
}
@media (min-width: 1080px) {
  .stat { border-bottom: 0; border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
}
.stat:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.stat__num {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-feature-settings: 'lnum', 'tnum';
}
.stat__plus, .stat__times {
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.05em;
}
.stat__label {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 26ch;
  line-height: 1.45;
}

/* ──────────────── 9. TRACK RECORD CASES ──────────────── */
.cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 720px)  { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cases { grid-template-columns: repeat(4, 1fr); } }

.case {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform 0.5s var(--ease-out),
              background 0.4s var(--ease-soft),
              border-color 0.4s var(--ease-soft);
}
.case:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
  border-color: var(--line-strong);
}
.case__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.case__name {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.case__growth {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-top: var(--space-2);
  font-feature-settings: 'lnum', 'tnum';
}
.case__from {
  font-size: var(--text-lg);
  color: var(--text-faint);
  font-weight: 500;
}
.case__to {
  font-size: var(--text-2xl);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.case__arrow {
  color: var(--text-muted);
  font-size: var(--text-base);
}
.case__pill {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--text-muted);
  border: 1px solid var(--line);
}
.case__pill--strong {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.case__copy {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
}

/* ──────────────── 10. SERVICES ──────────────── */
.services {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 880px) {
  .services { grid-template-columns: 1fr 1fr; }
}
.service {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  padding: var(--space-8) var(--space-2);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.4s var(--ease-soft);
}
@media (min-width: 880px) {
  .service:nth-child(odd)  { padding-right: var(--space-8); border-right: 1px solid var(--line); }
  .service:nth-child(even) { padding-left:  var(--space-8); }
  .service:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .service:last-child { border-bottom: 0; }
}
.service:hover { background: color-mix(in srgb, var(--text) 2%, transparent); }
.service__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.16em;
  padding-top: 0.55rem;
}
.service__title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-3);
}
.service__copy {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.6;
}

/* ──────────────── 11. ENGAGEMENT ──────────────── */
.engagement {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}
@media (min-width: 980px) {
  .engagement { grid-template-columns: 1fr 1.1fr; gap: var(--space-16); }
}
.engagement__lede { display: flex; flex-direction: column; gap: var(--space-5); }
.engagement__copy {
  font-size: var(--text-base);
  color: var(--text);
  max-width: 50ch;
  line-height: 1.65;
}
.engagement__copy--muted { color: var(--text-muted); }

.tiers {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  background: var(--surface);
}
.tiers__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-2);
}
.tier {
  padding: var(--space-5) var(--space-3);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: var(--space-2);
  position: relative;
  padding-left: var(--space-5);
}
.tier:last-of-type { border-bottom: 0; }
.tier::before {
  content: '';
  position: absolute;
  left: 0; top: var(--space-5);
  width: 3px; height: 1.4em;
  background: var(--accent-magenta);
}
.tier:nth-of-type(1)::before { background: var(--accent-cyan); }
.tier:nth-of-type(3)::before { background: var(--accent-amber); }
.tier__name {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tier__copy {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 50ch;
}

/* ──────────────── 12. CONTACT FORM ──────────────── */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}
@media (min-width: 980px) {
  .contact { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-16); align-items: start; }
}
.contact__intro { display: flex; flex-direction: column; gap: var(--space-5); }
.contact__title { font-size: var(--text-3xl); }
.contact__title em.display__em { font-style: normal; }
.contact__copy {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.6;
}
.contact__direct {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.contact__direct li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-4);
  align-items: baseline;
}
.contact__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact__direct a {
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s;
}
.contact__direct a:hover { border-bottom-color: var(--text); }

/* form */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: var(--shadow-lg);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 0.85rem 0;
  font-size: var(--text-base);
  color: var(--text);
  border-radius: 0;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--text); }

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%238a8a8a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5l5 5 5-5'/></svg>");
  background-position: right 2px center;
  background-size: 12px 8px;
  background-repeat: no-repeat;
  padding-right: 24px;
  cursor: pointer;
}
.field select option { background: var(--surface); color: var(--text); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }

.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-2);
}
.form__legal { font-size: var(--text-xs); color: var(--text-faint); max-width: 38ch; }
.form__submit { padding: 1rem 1.6rem; }
.form__status { font-size: var(--text-sm); min-height: 1.2em; }
.form__status.is-success { color: var(--accent-cyan); }
.form__status.is-error   { color: var(--accent-magenta); }

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-bottom-color: var(--accent-magenta);
}

/* ──────────────── 13. FOOTER ──────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-top: var(--space-12);
  padding-bottom: var(--space-6);
  margin-top: var(--space-8);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
}
@media (min-width: 880px) {
  .footer__inner { grid-template-columns: 1.2fr 2fr; }
}
.footer__brand { display: flex; flex-direction: column; gap: var(--space-4); }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 540px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
.footer__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-3);
}
.footer__cols ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer__cols a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__cols a:hover { color: var(--text); }
.footer__etym {
  margin-top: var(--space-8);
  margin-bottom: var(--space-6);
}
.footer__etym-line {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-faint);
  font-style: italic;
  max-width: 78ch;
}
.footer__etym-mark {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 1.15em;
  line-height: 1;
  color: var(--accent-cyan, #4cf3d6);
  transform: translateY(0.1em);
}
.footer__etym-word {
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: var(--text-xs);
}
.footer__etym-sep {
  color: var(--text-faint);
  opacity: 0.6;
  font-style: normal;
}
.footer__etym-body { flex: 1 1 280px; }
.footer__etym-body em { color: var(--text-muted); }
@media (max-width: 540px) {
  .footer__etym-line { font-size: var(--text-xs); }
}
.footer__rule { height: 1px; background: var(--line); }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  gap: var(--space-3);
}
.footer__legal,
.footer__copyright {
  color: var(--text-faint);
  font-size: var(--text-xs);
}
.footer__sep { margin: 0 var(--space-3); color: var(--text-faint); }

/* ──────────────── 14. SCROLL REVEALS ──────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out),
              transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ──────────────── 15. FOCUS ──────────────── */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.btn:focus-visible { outline-offset: 4px; }
