/* ============================================================
   BHUMAN — Design System (v4 — boutique studio, elevated)
   Cream paper, warm charcoal, tangerine + deep teal accents.
   Bricolage Grotesque (display) + Inter (body) + JetBrains Mono (mono).
   Noise texture, custom SVG marks, editorial layouts.
   ============================================================ */

:root {
  /* Ink (warm charcoals) */
  --ink:        #1A1714;
  --ink-2:      #2A2520;
  --ink-3:      #5A5550;
  --ink-4:      #8A8580;
  --ink-5:      #B5AFA5;

  /* Surfaces */
  --paper:      #FAF7F2;
  --paper-pure: #FFFFFF;
  --paper-2:    #F3EEE3;   /* slightly darker cream for contrast */
  --line:       #E8E2D8;
  --line-2:     #F0EBE2;

  /* Primary accent — tangerine */
  --accent:     #FF651B;
  --accent-2:   #D95617;
  --accent-soft:#FFD8C6;
  --accent-ink: #4C1E08;
  --highlight:  #FFEAD9;

  /* SECONDARY accent — deep teal (new in v4) */
  --teal:       #1F4D5C;
  --teal-2:     #133842;
  --teal-soft:  #D3E3E8;
  --teal-ink:   #0C2A33;

  /* Status */
  --warn:       #B91C1C;
  --ok:         #15803D;

  /* Type */
  --font-display: 'Bricolage Grotesque', 'Inter', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Scale */
  --t-xs:    0.75rem;
  --t-sm:    0.875rem;
  --t-base:  1rem;
  --t-md:    1.0625rem;
  --t-lg:    1.25rem;
  --t-xl:    1.5rem;
  --t-2xl:   2rem;
  --t-3xl:   clamp(2.25rem, 4vw, 3.25rem);
  --t-4xl:   clamp(2.75rem, 5.5vw, 4.5rem);
  --t-hero:  clamp(3rem, 8.5vw, 8rem);
  --t-giant: clamp(4rem, 12vw, 11rem);

  /* Spacing */
  --sp-1:  0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5:  1.25rem; --sp-6: 1.5rem; --sp-7: 2rem; --sp-8: 2.5rem;
  --sp-9:  3rem;  --sp-10: 4rem;  --sp-11: 5rem;
  --sp-12: 6rem;  --sp-13: 8rem;  --sp-14: 10rem;

  /* Layout */
  --container-narrow: 720px;
  --container:        1180px;
  --container-wide:   1340px;
  --container-edge:   1480px;
  --radius:    6px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --t: 240ms cubic-bezier(0.32, 0.72, 0.16, 1);
  --t-slow: 600ms cubic-bezier(0.32, 0.72, 0.16, 1);

  /* Noise SVG — subtle paper grain layered over surfaces */
  --noise: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1, 0 0 0 0 0.09, 0 0 0 0 0.08, 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  background-image: var(--noise);
  background-attachment: fixed;
  background-size: 200px 200px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 1, "cv11" 1, "cv02" 1;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; padding: 0; }

::selection {
  background: var(--accent);
  color: var(--paper);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide); }
.container--edge   { max-width: var(--container-edge); }

/* Type utilities */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px; height: 1.5px;
  background: var(--accent);
}
.eyebrow--accent { color: var(--accent-2); }
.eyebrow--teal   { color: var(--teal); }
.eyebrow--teal::before { background: var(--teal); }
.eyebrow--light { color: rgba(250, 247, 242, 0.65); }
.eyebrow--light::before { background: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 32;
}
.h1, h1 { font-size: var(--t-4xl); line-height: 1.02; letter-spacing: -0.035em; font-variation-settings: "opsz" 96; }
.h2, h2 { font-size: var(--t-3xl); line-height: 1.06; letter-spacing: -0.03em; font-variation-settings: "opsz" 64; }
.h3, h3 { font-size: var(--t-2xl); line-height: 1.18; letter-spacing: -0.02em; font-weight: 600; font-variation-settings: "opsz" 32; }
.h4, h4 { font-size: var(--t-xl);  line-height: 1.3;  letter-spacing: -0.015em; font-weight: 600; font-variation-settings: "opsz" 24; }

.lede {
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--ink-3);
}
.muted { color: var(--ink-4); }

.highlight {
  background: linear-gradient(transparent 60%, var(--highlight) 60%);
  padding: 0 0.12em;
}
.accent-text { color: var(--accent-2); }
.teal-text { color: var(--teal); }

/* Drop cap — for editorial prose */
.drop-cap::first-letter {
  font-family: var(--font-display);
  font-size: 4em;
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  float: left;
  line-height: 0.9;
  padding: 0.05em 0.1em 0 0;
  color: var(--accent-2);
  letter-spacing: -0.04em;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-4);
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: var(--t-xl);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-variation-settings: "opsz" 24;
  line-height: 1;
}
.nav__logo-text { display: inline-block; }
.nav__logo-mark {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  transition: transform var(--t);
  transform-origin: center;
}
.nav__logo:hover .nav__logo-mark {
  transform: rotate(-8deg) scale(1.08);
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-7);
  list-style: none;
  padding: 0;
}
.nav__link {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-3);
  transition: color var(--t);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__cta {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-pill);
  transition: background var(--t), transform var(--t);
  position: relative;
  overflow: hidden;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav__toggle {
  display: none;
  width: 28px;
  height: 28px;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 4px; right: 4px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--t), opacity var(--t);
}
.nav__toggle span:nth-child(1) { top: 8px; }
.nav__toggle span:nth-child(2) { top: 13px; }
.nav__toggle span:nth-child(3) { top: 18px; }
@media (max-width: 840px) {
  .nav__menu {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-4) var(--sp-5) var(--sp-5);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t), opacity var(--t);
  }
  .nav__menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__menu li { padding-block: var(--sp-3); border-bottom: 1px solid var(--line-2); }
  .nav__menu li:last-child { border-bottom: 0; }
  .nav__toggle { display: block; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-sm);
  font-weight: 600;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-pill);
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  border: 1px solid transparent;
  position: relative;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(255, 101, 27,0.45);
}
.btn--accent {
  background: var(--accent);
  color: var(--paper);
}
.btn--accent:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(192,78,3,0.45);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn--lg {
  padding: var(--sp-4) var(--sp-7);
  font-size: var(--t-base);
}
.btn--xl {
  padding: var(--sp-5) var(--sp-8);
  font-size: var(--t-md);
}
.btn--arrow::after { content: "→"; transition: transform var(--t); display: inline-block; }
.btn--arrow:hover::after { transform: translateX(5px); }
.btn--magnetic { transition: transform 0.15s cubic-bezier(0.2, 0.7, 0.2, 1); will-change: transform; }

/* ----- Hero ----- */
.hero {
  position: relative;
  padding-block: var(--sp-13) var(--sp-12);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  top: -25%; right: -15%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  opacity: 0.65;
  z-index: -1;
  pointer-events: none;
  animation: heroBlobOne 18s ease-in-out infinite alternate;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--teal-soft) 0%, transparent 65%);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  animation: heroBlobTwo 22s ease-in-out infinite alternate;
}
@keyframes heroBlobOne {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 40px) scale(1.1); }
}
@keyframes heroBlobTwo {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -50px) scale(1.15); }
}
.hero__content {
  position: relative;
  z-index: 1;
}
.hero__eyebrow { margin-bottom: var(--sp-7); }
.hero__heading {
  font-size: var(--t-hero);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-variation-settings: "opsz" 96;
  margin-bottom: var(--sp-7);
  max-width: 17ch;
}
.hero__heading .accent {
  color: var(--accent-2);
  font-style: italic;
  font-weight: 600;
}
.hero__heading .teal {
  color: var(--teal);
}
.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--t-lg);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 56ch;
  margin-bottom: var(--sp-9);
}
.hero__ctas {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* Decorative SVG mark in hero */
.hero__mark {
  position: absolute;
  top: 50%; right: var(--sp-7);
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  pointer-events: none;
  opacity: 0.85;
  animation: spinSlow 60s linear infinite;
}
@keyframes spinSlow {
  to { transform: translateY(-50%) rotate(360deg); }
}
@media (max-width: 1080px) {
  .hero__mark { display: none; }
}

/* Section interlude — static editorial banner between hero and "What we do" */
.interlude {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--sp-10);
  background-image: var(--noise);
  background-size: 200px 200px;
  border-block: 1px solid var(--ink-2);
}
.interlude__text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.75rem);
  font-weight: 500;
  font-variation-settings: "opsz" 48;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--paper);
  max-width: 68ch;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-4) var(--sp-5);
}
.interlude__sep {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .interlude__text { gap: var(--sp-2) var(--sp-3); }
  .interlude__sep { width: 5px; height: 5px; }
}

/* ----- Sections ----- */
.section { padding-block: var(--sp-12); position: relative; }
.section--tight { padding-block: var(--sp-10); }
.section--dark {
  background: var(--ink);
  color: var(--paper);
  background-image: var(--noise);
  background-size: 200px 200px;
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--paper); }
.section--dark .lede { color: rgba(250, 247, 242, 0.7); }
.section--cream { background: var(--paper-2); }
.section--accent-soft { background: var(--accent-soft); }
.section--teal-soft { background: var(--teal-soft); }

.section-header {
  max-width: 760px;
  margin-bottom: var(--sp-10);
}
.section-header--center {
  margin-inline: auto;
  text-align: center;
}
.section-header .eyebrow { margin-bottom: var(--sp-5); }
.section-header h2 { margin-bottom: var(--sp-5); }

/* Section divider — small SVG mark between sections */
.section-divider {
  display: flex;
  justify-content: center;
  padding-block: var(--sp-9);
}
.section-divider svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
  transition: opacity var(--t), transform var(--t);
}
.section-divider:hover svg {
  opacity: 0.8;
  transform: rotate(45deg);
}

/* ----- Service grid ----- */
.service-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 720px) {
  .service-grid { grid-template-columns: 1fr; }
}
.service {
  position: relative;
  padding: var(--sp-8) var(--sp-7) var(--sp-9);
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service > p { margin-bottom: var(--sp-3); }
.service__closer {
  margin-top: auto;
  padding-top: var(--sp-5);
}
.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--t);
  z-index: -1;
}
.service:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 24px 48px -12px rgba(26, 23, 20, 0.12);
}
.service:hover::before { opacity: 0.4; }
.service__mark {
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-6);
  color: var(--accent-2);
}
.service__num {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
}
.service h3 {
  margin-bottom: var(--sp-3);
  font-size: var(--t-xl);
  font-variation-settings: "opsz" 28;
}
.service p { color: var(--ink-3); font-size: var(--t-base); line-height: 1.65; }

/* Service variant with teal */
.service--teal .service__mark { color: var(--teal); }
.service--teal .service__num { color: var(--teal); }
.service--teal:hover { border-color: var(--teal); }
.service--teal::before { background: linear-gradient(135deg, var(--teal-soft) 0%, transparent 50%); }

/* ----- Editorial principle list ----- */
.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.principle {
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-7);
  align-items: start;
  transition: padding-left var(--t);
}
.principle:last-child { border-bottom: 0; }
.principle:hover { padding-left: var(--sp-3); }
.principle__num {
  font-family: var(--font-display);
  font-size: var(--t-3xl);
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  color: var(--accent-2);
  letter-spacing: -0.02em;
  line-height: 0.9;
}
.principle--teal .principle__num { color: var(--teal); }
.principle h3 {
  font-size: var(--t-xl);
  margin-bottom: var(--sp-3);
  font-variation-settings: "opsz" 28;
}
.principle p {
  color: var(--ink-3);
  font-size: var(--t-base);
  line-height: 1.7;
  max-width: 64ch;
}

/* ----- Editorial work tiles ----- */
.work-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
}
.work {
  padding: var(--sp-9) var(--sp-8);
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  position: relative;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.work:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 20px 40px -12px rgba(26, 23, 20, 0.1);
}
.work__category {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: var(--sp-2);
}
.work h3 {
  font-size: var(--t-xl);
  font-variation-settings: "opsz" 32;
  margin-bottom: var(--sp-1);
  max-width: 32ch;
}
.work p {
  color: var(--ink-3);
  font-size: var(--t-base);
  line-height: 1.7;
  max-width: 60ch;
}
.work--teal .work__category { color: var(--teal); }

/* ----- FAQ block ----- */
.faq {
  display: flex;
  flex-direction: column;
}
.faq__item {
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--line);
}
.faq__item:last-child { border-bottom: 0; }
.faq__q {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.faq__q-mark {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 700;
  font-variation-settings: "opsz" 32;
  color: var(--accent-2);
  line-height: 1;
  flex-shrink: 0;
}
.faq__q-text {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  font-variation-settings: "opsz" 32;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.3;
}
.faq__a {
  color: var(--ink-3);
  font-size: var(--t-md);
  line-height: 1.7;
  padding-left: calc(var(--sp-4) + 1.6rem);
  max-width: 68ch;
}

/* ----- CTA strip ----- */
.cta-strip {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--sp-13);
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: var(--noise);
  background-size: 200px 200px;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 101, 27,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 {
  color: var(--paper);
  margin-bottom: var(--sp-5);
  font-size: var(--t-3xl);
  font-variation-settings: "opsz" 72;
}
.cta-strip p {
  color: rgba(250, 247, 242, 0.75);
  margin-bottom: var(--sp-8);
  font-size: var(--t-lg);
  max-width: 56ch;
  margin-inline: auto;
}

/* ----- Form ----- */
.form-card {
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-9);
  box-shadow: 0 1px 0 var(--paper-2);
}
.form-section + .form-section { margin-top: var(--sp-8); padding-top: var(--sp-8); border-top: 1px solid var(--line); }
.field { margin-bottom: var(--sp-5); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}
.field label .required { color: var(--accent-2); margin-left: 2px; }
.field label .optional { color: var(--ink-4); font-weight: 400; font-size: var(--t-xs); margin-left: var(--sp-2); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font: inherit;
  font-size: var(--t-base);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper-pure);
  box-shadow: 0 0 0 4px rgba(255, 101, 27, 0.12);
}
.field input.is-error, .field select.is-error, .field textarea.is-error {
  border-color: var(--warn);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-hint { font-size: var(--t-xs); color: var(--ink-4); margin-top: var(--sp-2); }
.field-error { font-size: var(--t-xs); color: var(--warn); margin-top: var(--sp-2); display: none; }
.field-error.is-visible { display: block; }

.checkbox-list, .radio-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-3);
}
.checkbox-item, .radio-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  font-size: var(--t-sm);
}
.checkbox-item:hover, .radio-item:hover { border-color: var(--ink); background: var(--paper-pure); }
.checkbox-item input, .radio-item input { width: auto; margin: 0; accent-color: var(--accent); }
.checkbox-item input:checked + span,
.radio-item input:checked + span { font-weight: 600; }

/* Progress */
.progress { margin-bottom: var(--sp-8); }
.progress__steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.progress__step-label {
  font-size: var(--t-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  transition: color var(--t);
  flex: 1;
  text-align: center;
}
.progress__step-label.is-active { color: var(--ink); font-weight: 600; }
.progress__step-label.is-done { color: var(--accent-2); }
.progress__bar {
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.32, 0.72, 0.16, 1);
}
.form-step {
  display: none;
  animation: fadeSlide 0.35s ease forwards;
}
.form-step.is-active { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}
.form-step__header { margin-bottom: var(--sp-7); }
.form-step__title { font-size: var(--t-2xl); margin-bottom: var(--sp-2); font-variation-settings: "opsz" 48; }
.form-step__sub { color: var(--ink-3); font-size: var(--t-base); }
.form-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: rgba(250, 247, 242, 0.62);
  padding-block: var(--sp-12) var(--sp-7);
  position: relative;
  overflow: hidden;
  background-image: var(--noise);
  background-size: 200px 200px;
}
.site-footer a { color: var(--paper); transition: color var(--t); }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-9);
  margin-bottom: var(--sp-10);
}
.footer-brand .nav__logo,
.footer-brand .nav__logo-text { color: var(--paper); }
.footer-brand p { margin-top: var(--sp-4); font-size: var(--t-sm); line-height: 1.6; max-width: 36ch; }
.footer-col h4 {
  font-size: var(--t-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.45);
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); font-size: var(--t-sm); }
.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-5);
  font-size: var(--t-xs);
  color: rgba(250, 247, 242, 0.45);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.footer-disclaimer {
  background: rgba(250, 247, 242, 0.04);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin-bottom: var(--sp-7);
  font-size: var(--t-xs);
  line-height: 1.55;
  color: rgba(250, 247, 242, 0.55);
}
.footer-disclaimer strong { color: rgba(250, 247, 242, 0.85); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Page hero (inner pages) */
.page-hero {
  padding-block: var(--sp-12) var(--sp-10);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: var(--t-4xl);
  margin-bottom: var(--sp-5);
  max-width: 24ch;
  font-variation-settings: "opsz" 96;
}
.page-hero .eyebrow { margin-bottom: var(--sp-5); }
.page-hero .lede { max-width: 60ch; }

/* Prose */
.prose {
  max-width: 720px;
  font-size: var(--t-md);
  line-height: 1.75;
  color: var(--ink-3);
}
.prose > p:first-of-type:not(:has(strong)) { /* drop-cap on first paragraph if desired */ }
.prose h2 {
  font-size: var(--t-2xl);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-5);
  color: var(--ink);
  font-variation-settings: "opsz" 48;
}
.prose h3 {
  font-size: var(--t-xl);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  color: var(--ink);
}
.prose p + p { margin-top: var(--sp-4); }
.prose ul, .prose ol { margin-block: var(--sp-4); padding-left: var(--sp-6); }
.prose li { margin-bottom: var(--sp-2); }
.prose li::marker { color: var(--accent-2); font-weight: 700; }
.prose a {
  color: var(--accent-2);
  border-bottom: 1.5px solid var(--accent-soft);
  transition: border-color var(--t), color var(--t);
}
.prose a:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--sp-2) var(--sp-6);
  margin-block: var(--sp-7);
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-style: italic;
  font-variation-settings: "opsz" 24;
  color: var(--ink);
  line-height: 1.5;
}

/* Reveal animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s cubic-bezier(0.32, 0.72, 0.16, 1) forwards;
}
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }
.fade-in:nth-child(5) { animation-delay: 0.4s; }
@keyframes fadeIn { to { opacity: 1; transform: none; } }

/* Scroll-driven reveals (where supported) */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.32, 0.72, 0.16, 1), transform 0.7s cubic-bezier(0.32, 0.72, 0.16, 1);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: none;
}

/* Mobile */
@media (max-width: 640px) {
  .form-card { padding: var(--sp-6); }
  .field--row { grid-template-columns: 1fr; }
  .form-nav { flex-direction: column-reverse; }
  .form-nav .btn { width: 100%; justify-content: center; }
  .principle { grid-template-columns: 56px 1fr; gap: var(--sp-4); }
  .principle__num { font-size: var(--t-2xl); }
  .hero__meta { gap: var(--sp-5); }
}
