/* Kerne.studio — site stylesheet (Variante A — Sobria, level up)
   Editorial direction: serif display + grotesk body, asymmetric grid,
   marginalia, indices, hairline separators, restrained terra. */

:root {
  --dark:    #1a0d07;
  --black:   #1c1917;
  --terra:   #c2410c;
  --terra-2: #9a3409;
  --sand:    #f0e9e1;
  --cream:   #faf7f4;
  --paper:   #f4ede4;
  --mid:     #78716c;
  --light:   #d4c9bf;
  --border:  #e5ddd5;
  --hair:    #ddd2c5;
  --ink:     #1a0d07;

  --fs-display: Georgia, 'Times New Roman', serif;
  --fs-body: 'Inter', system-ui, -apple-system, sans-serif;
  --fs-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --pad-x: clamp(24px, 6vw, 96px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fs-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ======== ANIMATIONS ======== */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes draw-line {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes word-rise {
  from { opacity: 0; transform: translateY(40%); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--rd, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--rd, 0ms);
}
.reveal-line.in > span { transform: translateY(0); }

.hairline {
  display: block;
  height: 1px;
  background: var(--hair);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--rd, 0ms);
}
.hairline.in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-line > span, .hairline { transition: none !important; transform: none !important; opacity: 1 !important; }
  .marquee-track { animation: none !important; }
  .dot { animation: none !important; }
}
a { color: inherit; text-decoration: none; }

/* Subtle paper grain on cream background — adds character without noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(26,13,7,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index: 0;
  opacity: 0.6;
}
body > * { position: relative; z-index: 1; }

/* Selection */
::selection { background: var(--terra); color: var(--cream); }

em.terra, .hero-em {
  color: var(--terra);
  font-style: italic;
  font-family: var(--fs-display);
  font-weight: 400;
}

/* ======== NAV ======== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--pad-x);
  border-bottom: 1px solid var(--hair);
  background: rgba(250, 247, 244, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.wordmark {
  font-family: var(--fs-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}
.wordmark span { color: var(--terra); }
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-link {
  font-size: 13px;
  color: var(--mid);
  font-weight: 400;
  letter-spacing: -0.005em;
  position: relative;
  padding: 4px 0;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--terra);
}
.nav-cta {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: all 0.18s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--cream); }

/* ======== SECTIONS ======== */
section { border-bottom: 1px solid var(--hair); }
.section-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 72px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.section-num {
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 500;
}
.section-aside {
  font-family: var(--fs-display);
  font-style: italic;
  font-size: 14px;
  color: var(--mid);
}

/* ======== HERO ======== */
.hero {
  padding: 80px var(--pad-x) 72px;
  position: relative;
  overflow: hidden;
}
/* Aurora terra background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 920px;
  max-height: 920px;
  right: -18vw;
  top: -22vw;
  background: radial-gradient(closest-side,
    rgba(194, 65, 12, 0.30),
    rgba(194, 65, 12, 0.14) 35%,
    rgba(194, 65, 12, 0.04) 60%,
    transparent 72%);
  border-radius: 50%;
  filter: blur(2px);
  animation: hero-breathe 14s ease-in-out infinite;
}
.hero-orb-2 {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  left: -10vw;
  bottom: -18vw;
  background: radial-gradient(closest-side,
    rgba(154, 52, 9, 0.16),
    rgba(154, 52, 9, 0.04) 50%,
    transparent 75%);
  border-radius: 50%;
  animation: hero-breathe 18s ease-in-out infinite reverse;
}
@keyframes hero-breathe {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 1; }
  50%      { transform: scale(1.08) translate(-2%, 2%); opacity: 0.85; }
}
/* Hero entrance animation — masked line reveals */
.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.18em;
  margin-bottom: -0.12em;
}
.hero-line > span {
  display: inline-block;
  padding-bottom: 0.05em;
  transform: translateY(110%);
  animation: hero-line-up 1s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes hero-line-up {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
.hero-fade {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-fade-up 0.9s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes hero-fade-up {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-line > span, .hero-fade { animation: none !important; transform: none !important; opacity: 1 !important; }
}

.hero > * { position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terra);
  display: inline-block;
  position: relative;
  animation: pulse 2.4s infinite ease-out;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194,65,12,0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(194,65,12,0); }
}
.hero-title {
  font-family: var(--fs-display);
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--ink);
  max-width: 980px;
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--terra); }
.hero-sub {
  font-size: 19px;
  color: var(--mid);
  line-height: 1.55;
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0;
}
.hero-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  align-items: baseline;
}
.hero-footer .meta-col {
  display: flex; flex-direction: row; align-items: baseline; gap: 12px;
}
.cta-primary {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.cta-primary:hover {
  background: var(--terra);
  transform: translateY(-1px);
}
.cta-arrow { color: inherit; font-size: 16px; transition: transform 0.2s ease; }
.cta-primary:hover .cta-arrow { transform: translateX(3px); }

.cta-ghost {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink);
}
.cta-ghost:hover { color: var(--terra); border-color: var(--terra); }

.hero-meta {
  display: flex;
  gap: 56px;
  justify-content: flex-end;
  flex-wrap: wrap;
  border-left: 1px solid var(--hair);
  padding-left: 56px;
}
.meta-col { display: flex; flex-direction: column; gap: 4px; }
.meta-num {
  font-family: var(--fs-display);
  font-size: 44px;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.meta-num sup {
  font-size: 18px;
  color: var(--terra);
  vertical-align: top;
  margin-left: 2px;
}
.meta-lab {
  font-family: var(--fs-mono);
  font-size: 10px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 6px;
}

/* Marquee strip below hero */
.marquee-strip {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
  overflow: hidden;
  padding: 18px 0;
  font-family: var(--fs-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--mid);
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 56px;
  padding-left: 56px;
  animation: scroll 40s linear infinite;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after {
  content: "✕";
  color: var(--terra);
  font-size: 9px;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ======== MANIFESTO ======== */
.manifesto {
  padding: 140px var(--pad-x);
  position: relative;
  overflow: hidden;
}
.manifesto-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(26,13,7,0.16) 1px, transparent 1.4px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 90% 30%, black 25%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 60% at 90% 30%, black 25%, transparent 70%);
  opacity: 0.5;
}
.manifesto > * { position: relative; z-index: 1; }
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  margin-bottom: 140px;
  align-items: flex-start;
}
.manifesto-lead {
  font-family: var(--fs-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 300;
}
.manifesto-lead em {
  font-style: italic;
  color: var(--terra);
}
.manifesto-body {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.65;
  padding-top: 12px;
  max-width: 560px;
}
.manifesto-body p {
  margin: 0 0 24px;
  text-wrap: pretty;
}
.manifesto-body p::first-letter {
  font-family: var(--fs-display);
  font-size: 1.4em;
  font-style: italic;
  color: var(--terra);
}
.marginalia {
  font-family: var(--fs-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mid);
  margin-bottom: 16px;
}

.pillars-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hair);
  margin-top: 60px;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--hair);
  margin: 0 calc(var(--pad-x) * -0.5);
}
.pillar {
  padding: 56px calc(var(--pad-x) * 0.5);
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.4s ease, transform 0.4s ease;
}
.pillar:last-child { border-right: none; }
.pillar { transition: background 0.4s ease, transform 0.4s ease; }
.pillar:hover { background: linear-gradient(180deg, transparent, var(--paper)); }
.pillar:hover .pillar-title { transform: translateX(4px); }
.pillar-title { transition: transform 0.35s cubic-bezier(.2,.7,.2,1); }
.pillar:hover .pillar-arrow { transform: translate(4px, -4px); }
.pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
}
.pillar-lab {
  font-family: var(--fs-mono);
  font-size: 10px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.pillar-arrow {
  color: var(--terra);
  font-size: 20px;
  transition: transform 0.25s ease;
  display: inline-block;
}
.pillar-title {
  font-family: var(--fs-display);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 14px;
  text-wrap: balance;
}
.pillar-sub {
  font-family: var(--fs-display);
  font-style: italic;
  font-size: 20px;
  color: var(--terra);
  margin-bottom: 28px;
  font-weight: 400;
}
.pillar-desc {
  font-size: 14.5px;
  color: var(--mid);
  line-height: 1.65;
  text-wrap: pretty;
}

/* ======== TEAM ======== */
.team {
  padding: 140px var(--pad-x);
  position: relative;
  overflow: hidden;
}
.team-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.team-bg-orb {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  left: -18vw; top: -10vw;
  background: radial-gradient(closest-side,
    rgba(154,52,9,0.14),
    rgba(154,52,9,0.04) 50%,
    transparent 75%);
  border-radius: 50%;
  animation: hero-breathe 18s ease-in-out infinite;
}
.team > * { position: relative; z-index: 1; }
.team-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 96px;
  margin-bottom: 88px;
  align-items: flex-end;
}
.team-title {
  font-family: var(--fs-display);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 300;
}
.team-lead {
  font-size: 17px;
  color: var(--mid);
  line-height: 1.65;
  padding-bottom: 16px;
  max-width: 480px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  margin: 0 calc(var(--pad-x) * -0.5);
}
.team-card {
  padding: 32px calc(var(--pad-x) * 0.5);
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
}
.team-card:last-child { border-right: none; }
.team-card-num {
  font-family: var(--fs-mono);
  font-size: 11px;
  color: var(--mid);
  letter-spacing: 0.16em;
  margin-bottom: 24px;
}
.team-card-num span { color: var(--terra); }
.team-photo {
  width: 100%;
  aspect-ratio: 4/5;
  background:
    repeating-linear-gradient(
      135deg,
      var(--paper),
      var(--paper) 6px,
      var(--sand) 6px,
      var(--sand) 12px
    );
  border: 1px solid var(--hair);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26,13,7,0.05));
}
.team-photo-lab {
  font-family: var(--fs-mono);
  font-size: 10px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: var(--cream);
  padding: 4px 8px;
  position: relative;
  z-index: 1;
}
.team-name {
  font-family: var(--fs-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  line-height: 1.15;
  font-weight: 400;
}
.team-role {
  font-family: var(--fs-mono);
  font-size: 10px;
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.team-bio {
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ======== CONTACT ======== */
.contact {
  padding: 160px var(--pad-x);
  background: var(--ink);
  color: var(--cream);
  border-bottom: none;
}
.contact .section-head { border-color: rgba(244, 237, 228, 0.15); }
.contact .section-num { color: var(--light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 96px;
  align-items: flex-start;
}
.contact-title {
  font-family: var(--fs-display);
  font-size: clamp(56px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--cream);
  font-weight: 300;
}
.contact-title em {
  color: var(--terra);
  font-style: italic;
}
.contact-right { padding-top: 32px; }
.contact-cta {
  font-family: var(--fs-display);
  font-size: 36px;
  color: var(--cream);
  font-style: italic;
  font-weight: 400;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}
.contact-cta:hover { color: var(--terra); border-color: var(--terra); }
.contact-cta .cta-arrow { color: var(--terra); }
.contact-note {
  font-size: 16px;
  color: var(--light);
  line-height: 1.65;
  max-width: 380px;
}

/* ======== FOOTER ======== */
.footer {
  padding: 80px var(--pad-x) 40px;
  background: var(--cream);
  border-bottom: none;
}
.footer-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--hair);
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand .wordmark { font-size: 32px; }
.footer-tagline {
  font-family: var(--fs-display);
  font-style: italic;
  font-size: 18px;
  color: var(--mid);
  max-width: 320px;
  line-height: 1.4;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-lab {
  font-family: var(--fs-mono);
  font-size: 10px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.footer-val { font-size: 14px; color: var(--ink); }
.footer-link { font-size: 14px; color: var(--ink); transition: color 0.15s; }
.footer-link:hover { color: var(--terra); }
.footer-base {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-family: var(--fs-mono);
  font-size: 10px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ======== PAGE HERO (interior pages) ======== */
.page-hero {
  padding: 80px var(--pad-x) 100px;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.page-hero-orb {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 820px; max-height: 820px;
  right: -16vw; top: -18vw;
  background: radial-gradient(closest-side,
    rgba(194,65,12,0.26),
    rgba(194,65,12,0.10) 40%,
    rgba(194,65,12,0.03) 65%,
    transparent 75%);
  border-radius: 50%;
  filter: blur(2px);
  animation: hero-breathe 16s ease-in-out infinite;
}
.page-hero-orb-2 {
  position: absolute;
  width: 40vw; height: 40vw;
  max-width: 520px; max-height: 520px;
  left: -12vw; bottom: -20vw;
  background: radial-gradient(closest-side,
    rgba(154,52,9,0.12),
    rgba(154,52,9,0.03) 55%,
    transparent 78%);
  border-radius: 50%;
  animation: hero-breathe 22s ease-in-out infinite reverse;
}
.page-hero > *:not(.page-hero-bg):not(.page-hero-orbit) { position: relative; z-index: 1; }

/* Process bg — dotgrid (manifesto-style, opposite corner) */
.process { position: relative; overflow: hidden; }
.process-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(26,13,7,0.14) 1px, transparent 1.4px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 8% 80%, black 20%, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 55% at 8% 80%, black 20%, transparent 70%);
  opacity: 0.45;
}
.process > * { position: relative; z-index: 1; }

/* Agents bg — orbital (right side, smaller) */
.agents { position: relative; overflow: hidden; }
.agents-bg {
  position: absolute;
  right: -14vw; top: 50%;
  transform: translateY(-50%);
  width: clamp(420px, 46vw, 720px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.agents-bg svg { width: 100%; height: 100%; display: block; }
.agents > * { position: relative; z-index: 1; }

/* Cases bg — subtle terra orb (team-style) */
.cases { position: relative; overflow: hidden; }
.cases-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.cases-bg-orb {
  position: absolute;
  width: 55vw; height: 55vw;
  max-width: 700px; max-height: 700px;
  right: -16vw; top: 12%;
  background: radial-gradient(closest-side,
    rgba(154,52,9,0.13),
    rgba(154,52,9,0.04) 50%,
    transparent 75%);
  border-radius: 50%;
  animation: hero-breathe 20s ease-in-out infinite;
}
.cases > * { position: relative; z-index: 1; }
.crumb {
  font-family: var(--fs-mono);
  font-size: 10px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: flex;
  gap: 12px;
  margin-bottom: 100px;
}
.crumb a { color: var(--mid); }
.crumb a:hover { color: var(--ink); }
.crumb-sep { color: var(--light); }
.crumb-current { color: var(--ink); }
.page-hero-eyebrow {
  font-family: var(--fs-mono);
  font-size: 11px;
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-hero-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--terra);
  display: inline-block;
}
.page-hero-title {
  font-family: var(--fs-display);
  font-size: clamp(72px, 12vw, 168px);
  font-weight: 300;
  margin: 0 0 40px;
  letter-spacing: -0.04em;
  line-height: 0.92;
}
.page-hero-lead {
  font-family: var(--fs-display);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 300;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 96px;
  max-width: 880px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.page-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 32px;
  border-top: 1px solid var(--hair);
}
.page-meta-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--hair);
  padding: 0 28px;
}
.page-meta-item:first-child { padding-left: 0; }
.page-meta-item:last-child { border-right: none; padding-right: 0; }
.page-meta-lab {
  font-family: var(--fs-mono);
  font-size: 10px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.page-meta-val {
  font-family: var(--fs-display);
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-weight: 400;
}

/* ======== PROCESS ======== */
.process { padding: 140px var(--pad-x); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  position: relative;
  margin: 0 calc(var(--pad-x) * -0.5);
}
.process-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.process-item {
  padding: 40px calc(var(--pad-x) * 0.5);
  border-right: 1px solid var(--hair);
  position: relative;
}
.process-item:last-child { border-right: none; }
.process-num {
  font-family: var(--fs-display);
  font-style: italic;
  font-size: 22px;
  color: var(--terra);
  margin-bottom: 32px;
  font-weight: 400;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.process-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hair);
  margin-bottom: 6px;
}
.process-title {
  font-family: var(--fs-display);
  font-size: 26px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 400;
  text-wrap: balance;
}
.process-desc {
  font-size: 14.5px;
  color: var(--mid);
  line-height: 1.65;
  text-wrap: pretty;
}

/* ======== AGENTS / SERVICE LIST ======== */
.agents { padding: 140px var(--pad-x); }
.agents-list {
  border-top: 1px solid var(--hair);
}
.agent-row {
  display: grid;
  grid-template-columns: 1.3fr 1.5fr 1fr;
  gap: 56px;
  padding: 56px 0;
  border-bottom: 1px solid var(--hair);
  align-items: flex-start;
  position: relative;
  transition: background 0.25s ease;
}
.agent-row:hover { background: linear-gradient(90deg, transparent, var(--paper) 50%, transparent); }
.agent-left { display: flex; gap: 24px; align-items: flex-start; }
.agent-index {
  font-family: var(--fs-mono);
  font-size: 11px;
  color: var(--mid);
  letter-spacing: 0.16em;
  margin-top: 12px;
  flex-shrink: 0;
}
.agent-index span { color: var(--terra); }
.agent-name {
  font-family: var(--fs-display);
  font-size: 38px;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 300;
  text-wrap: balance;
}
.agent-role {
  font-size: 16px;
  color: var(--ink);
  font-style: italic;
  font-family: var(--fs-display);
}
.agent-mid {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.65;
  text-wrap: pretty;
}
.agent-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.agent-lab {
  font-family: var(--fs-mono);
  font-size: 10px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.tag-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--fs-mono);
  font-size: 11px;
  padding: 6px 10px;
  border: 1px solid var(--hair);
  color: var(--ink);
  background: transparent;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* ======== CASE STUDIES ======== */
.cases { padding: 140px var(--pad-x); }
.case-list { border-top: 1px solid var(--hair); }
.case-item {
  display: grid;
  grid-template-columns: 96px 1.2fr 1.8fr 0.9fr 32px;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--hair);
  align-items: flex-start;
  position: relative;
}
.case-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
  z-index: 1;
}
.case-item:hover::after { transform: scaleX(1); }
.case-num {
  font-family: var(--fs-display);
  font-style: italic;
  font-size: 32px;
  color: var(--mid);
  padding-top: 6px;
  font-weight: 400;
  line-height: 1;
  transition: color 0.4s ease, letter-spacing 0.5s cubic-bezier(.2,.7,.2,1);
  letter-spacing: 0;
}
.case-item:hover .case-num {
  color: var(--terra);
  letter-spacing: 0.04em;
}
.case-arrow {
  align-self: center;
  font-family: var(--fs-mono);
  font-size: 20px;
  color: var(--mid);
  text-align: right;
  padding-top: 4px;
  transition: color 0.35s ease, transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.case-item:hover .case-arrow {
  color: var(--terra);
  transform: rotate(-12deg) translate(2px, -2px);
}
.case-headline {
  font-family: var(--fs-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
  background-image: linear-gradient(var(--terra), var(--terra));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.7s cubic-bezier(.2,.7,.2,1);
}
.case-item:hover .case-headline { background-size: 100% 1px; }
.case-cat {
  font-family: var(--fs-mono);
  font-size: 10px;
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.case-cat::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--terra);
}
.case-mid { color: var(--mid); font-size: 14.5px; line-height: 1.65; }
.case-mid ul { margin: 0; padding: 0; list-style: none; }
.case-mid li {
  padding: 10px 0 10px 22px;
  position: relative;
  border-bottom: 1px dashed var(--hair);
  text-wrap: pretty;
}
.case-mid li:last-child { border-bottom: none; }
.case-mid li::before {
  content: "→";
  color: var(--terra);
  position: absolute;
  left: 0;
  top: 10px;
  font-family: var(--fs-mono);
  font-size: 12px;
}
.case-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}
.case-status {
  font-family: var(--fs-mono);
  font-size: 10px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.case-status .live {
  color: var(--terra);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.case-status .live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terra);
  animation: pulse 2.4s infinite ease-out;
}

/* ======== CASES PREVIEW (home) ======== */
.cases-preview {
  padding: 140px var(--pad-x);
  position: relative;
}
.contact { position: relative; overflow: hidden; }

/* Orbital decoration for page-hero (services, casi di studio) */
.page-hero-orbit {
  position: absolute;
  right: -6vw;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(380px, 42vw, 640px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.page-hero-orbit svg { width: 100%; height: 100%; display: block; }
@media (max-width: 900px) {
  .page-hero-orbit { display: none; }
}
.contact-bg {
  position: absolute;
  right: -10vw;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(460px, 52vw, 820px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}
.contact-bg svg { width: 100%; height: 100%; display: block; }
.contact > * { position: relative; z-index: 1; }
.cp-ring { fill: none; stroke: var(--ink); stroke-width: 0.5; opacity: 0.16; }
.cp-ring.t { stroke: var(--terra); opacity: 0.45; }
.cp-core { fill: var(--terra); }
.cp-orbiter {
  fill: var(--ink);
  transform-origin: 50% 50%;
  animation: cp-orbit 18s linear infinite;
}
.cp-orbiter.t { fill: var(--terra); animation-duration: 24s; animation-direction: reverse; }
@keyframes cp-orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.cases-preview > * { position: relative; z-index: 1; }
.cases-pv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  margin: 0 calc(var(--pad-x) * -0.5);
}
.cases-pv-item {
  padding: 48px calc(var(--pad-x) * 0.5);
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
}
.cases-pv-item:last-child { border-right: none; }
.cases-pv-cat {
  font-family: var(--fs-mono);
  font-size: 10px;
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cases-pv-cat::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--terra);
}
.cases-pv-title {
  font-family: var(--fs-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 400;
  text-wrap: balance;
}
.cases-pv-desc {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.6;
  text-wrap: pretty;
}
.cases-cta { margin-top: 56px; }

/* Booking hero orbital background */
.booking-hero { overflow: hidden; }
.booking-hero-orbit {
  position: absolute;
  right: -8vw;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(440px, 50vw, 780px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
}
.booking-hero-orbit svg { width: 100%; height: 100%; display: block; }
.booking-hero > * { position: relative; }
.booking-hero .page-hero-bg { z-index: 0; }
.booking-hero .crumb,
.booking-hero .page-hero-eyebrow,
.booking-hero .page-hero-title,
.booking-hero .page-hero-lead { position: relative; z-index: 1; }

/* ======== BOOKING FORM ======== */
.booking-hero { padding-bottom: 60px; }
.booking { padding: 0 var(--pad-x) 140px; position: relative; }
.booking-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  border-top: 1px solid var(--hair);
  padding-top: 60px;
}
.booking-side { position: sticky; top: 120px; align-self: flex-start; display: flex; flex-direction: column; gap: 32px; }
.booking-step-meta { font-family: var(--fs-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid); }
.booking-step-num em { color: var(--terra); font-style: normal; }
.booking-stepper { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.booking-stepper li {
  display: flex; align-items: center; gap: 14px;
  font-size: 14px; color: var(--mid);
  cursor: default; transition: color 0.2s;
}
.booking-stepper li.is-done { cursor: pointer; color: var(--ink); }
.booking-stepper li.is-done:hover { color: var(--terra); }
.booking-stepper li.is-active { color: var(--ink); font-weight: 500; }
.bk-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--hair); background: transparent; flex: 0 0 auto;
  transition: all 0.3s;
}
.booking-stepper li.is-active .bk-dot { background: var(--terra); border-color: var(--terra); box-shadow: 0 0 0 4px rgba(194,65,12,0.12); }
.booking-stepper li.is-done .bk-dot { background: var(--ink); border-color: var(--ink); }
.booking-promise { padding: 20px; background: rgba(194,65,12,0.04); border: 1px solid var(--hair); }
.booking-promise .bp-lab { font-family: var(--fs-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra); margin-bottom: 10px; }
.booking-promise p { margin: 0; font-size: 13px; color: var(--mid); line-height: 1.55; }

.booking-form { position: relative; min-height: 520px; }
.bk-step { display: none; animation: bk-fade 0.4s ease-out; }
.bk-step.is-active { display: block; }
@keyframes bk-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bk-step-head { margin-bottom: 32px; }
.bk-q-num { font-family: var(--fs-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra); margin-bottom: 14px; }
.bk-q-title { font-family: var(--fs-display); font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 400; }
.bk-q-help { font-size: 15px; color: var(--mid); margin: 0; max-width: 600px; line-height: 1.55; }

.bk-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-options-tight { grid-template-columns: repeat(3, 1fr); }
.bk-option { cursor: pointer; }
.bk-option input { position: absolute; opacity: 0; pointer-events: none; }
.bk-opt-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 24px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--hair);
  transition: all 0.2s;
  height: 100%;
}
.bk-option:hover .bk-opt-card { border-color: var(--ink); background: rgba(255,255,255,0.9); }
.bk-option input:checked + .bk-opt-card { border-color: var(--terra); background: rgba(194,65,12,0.05); box-shadow: inset 0 0 0 1px var(--terra); }
.bk-opt-tag { font-family: var(--fs-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra); }
.bk-opt-title { font-family: var(--fs-display); font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.bk-opt-desc { font-size: 13px; color: var(--mid); line-height: 1.5; }

.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.bk-field { display: flex; flex-direction: column; gap: 8px; }
.bk-field .bk-lab { font-family: var(--fs-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid); }
.bk-field input, .bk-field textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: none; border-bottom: 1px solid var(--hair);
  padding: 12px 0; outline: none; transition: border-color 0.2s;
  resize: vertical;
}
.bk-field input::placeholder, .bk-field textarea::placeholder { color: var(--light); }
.bk-field input:focus, .bk-field textarea:focus { border-bottom-color: var(--terra); }
.bk-field textarea { font-size: 17px; line-height: 1.5; min-height: 140px; padding-top: 8px; }

.bk-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; font-size: 13px; color: var(--mid); cursor: pointer; line-height: 1.5; }
.bk-check input { margin-top: 3px; accent-color: var(--terra); }
.bk-check a { color: var(--ink); border-bottom: 1px solid var(--hair); }
.bk-check a:hover { border-color: var(--terra); color: var(--terra); }

.bk-nav {
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--hair);
  display: flex; align-items: center; gap: 20px;
}
.bk-progress { flex: 1; height: 2px; background: var(--hair); position: relative; overflow: hidden; }
.bk-progress-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--terra); transition: width 0.5s cubic-bezier(.2,.7,.2,1); }
.bk-btn {
  font-family: inherit; font-size: 14px; font-weight: 500;
  padding: 12px 22px; border: 1px solid; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.2s;
  background: transparent;
}
.bk-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.bk-btn-ghost { border-color: var(--hair); color: var(--mid); }
.bk-btn-ghost:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.bk-btn-primary { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.bk-btn-primary:hover { background: var(--terra); border-color: var(--terra); }
.bk-btn .cta-arrow { color: inherit; }
.bk-btn .cta-arrow.back { color: inherit; }

.bk-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--cream);
  padding: 12px 20px; font-size: 13px; letter-spacing: 0.01em;
  opacity: 0; pointer-events: none; transition: all 0.25s cubic-bezier(.2,.7,.2,1);
  z-index: 100;
}
.bk-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ======== THANK YOU ======== */
.thanks {
  padding: 80px var(--pad-x) 140px;
  position: relative; overflow: hidden;
  min-height: calc(100vh - 200px);
}
.thanks-bg {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(700px, 90vw, 1200px);
  aspect-ratio: 1;
  pointer-events: none; z-index: 0;
  opacity: 0.5;
}
.thanks-bg svg { width: 100%; height: 100%; display: block; }
.thanks-inner { position: relative; z-index: 1; max-width: 920px; }
.thanks-mark {
  width: 64px; height: 64px;
  color: var(--terra);
  margin-bottom: 40px;
}
.thanks-mark svg { width: 100%; height: 100%; display: block; }
.thanks-check {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: thanks-draw 1s 0.3s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes thanks-draw {
  to { stroke-dashoffset: 0; }
}
.thanks-eyebrow {
  font-family: var(--fs-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 20px;
}
.thanks-title {
  font-family: var(--fs-display);
  font-size: clamp(56px, 9vw, 128px);
  line-height: 1; letter-spacing: -0.03em;
  margin: 0 0 32px; font-weight: 400;
}
.thanks-title em { color: var(--terra); font-style: italic; }
.thanks-lead {
  font-family: var(--fs-display); font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 80px;
  max-width: 720px; font-weight: 300;
}
.thanks-lead em { color: var(--terra); font-style: italic; }

.thanks-next {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  margin-bottom: 80px;
}
.tn-col { padding: 32px 28px 32px 0; border-right: 1px solid var(--hair); }
.tn-col:last-child { border-right: none; padding-right: 0; }
.tn-num { font-family: var(--fs-display); font-style: italic; font-size: 22px; color: var(--terra); margin-bottom: 16px; }
.tn-title { font-family: var(--fs-display); font-size: 22px; letter-spacing: -0.015em; margin-bottom: 8px; line-height: 1.2; }
.tn-desc { font-size: 14px; color: var(--mid); line-height: 1.5; }

.thanks-meanwhile { padding-top: 40px; border-top: 1px solid var(--hair); }
.tm-lab { font-family: var(--fs-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid); margin-bottom: 20px; }
.tm-links { display: flex; flex-direction: column; }
.tm-link {
  display: grid; grid-template-columns: 220px 1fr auto;
  gap: 32px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--hair);
  transition: padding 0.25s;
}
.tm-link:hover { padding-left: 12px; }
.tm-link:hover .cta-arrow { transform: translateX(4px); color: var(--terra); }
.tm-link .cta-arrow { transition: all 0.25s; }
.tm-link-title { font-family: var(--fs-display); font-size: 22px; letter-spacing: -0.01em; }
.tm-link-desc { font-size: 14px; color: var(--mid); }

/* ======== RESPONSIVE ======== */
@media (max-width: 900px) {
  .booking-shell { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .booking-side { position: static; }
  .bk-options, .bk-options-tight, .bk-grid { grid-template-columns: 1fr; }
  .bk-nav { flex-wrap: wrap; }
  .bk-progress { order: 3; flex-basis: 100%; margin-top: 8px; }
  .thanks { padding: 40px 24px 80px; }
  .thanks-next { grid-template-columns: 1fr; }
  .tn-col { border-right: none; border-bottom: 1px solid var(--hair); padding: 24px 0; }
  .tn-col:last-child { border-bottom: none; }
  .tm-link { grid-template-columns: 1fr auto; gap: 16px; }
  .tm-link-desc { display: none; }
}
@media (max-width: 900px) {
  .nav { padding: 18px 24px; flex-wrap: wrap; gap: 12px; }
  .nav-links { gap: 16px; flex-wrap: wrap; }
  .nav-link { font-size: 12px; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }

  .hero, .manifesto, .team, .contact, .page-hero, .process, .agents, .footer, .cases, .cases-preview {
    padding-left: 24px; padding-right: 24px;
  }
  .hero { padding-top: 80px; padding-bottom: 80px; }
  .manifesto-grid, .team-head, .contact-grid, .hero-footer {
    grid-template-columns: 1fr; gap: 40px;
  }
  .hero-meta { border-left: none; padding-left: 0; gap: 32px; justify-content: flex-start; }

  .pillars-row, .team-grid, .process-grid, .process-grid.cols-3, .cases-pv-grid {
    grid-template-columns: 1fr;
  }
  .pillar, .team-card, .process-item, .cases-pv-item {
    border-right: none;
    border-bottom: 1px solid var(--hair);
    padding: 32px 0;
  }
  .pillar:last-child, .team-card:last-child, .process-item:last-child, .cases-pv-item:last-child {
    border-bottom: none;
  }

  .agent-row, .case-item { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .case-num { padding-top: 0; font-size: 24px; }
  .case-arrow { display: none; }
  .case-headline { font-size: 26px; line-height: 1.18; }
  .case-mid { font-size: 14px; }
  .case-mid li { padding: 8px 0 8px 20px; }
  .cases { padding: 80px 24px 100px; }

  .footer-row { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-base { flex-direction: column; gap: 8px; }

  .page-hero { padding-top: 100px; padding-bottom: 80px; }
  .page-hero-title { font-size: clamp(44px, 12vw, 72px); }
  .page-hero-lead { font-size: 18px; }
  .page-hero-meta { grid-template-columns: 1fr; gap: 0; }
  .page-meta-item {
    border-right: none; border-bottom: 1px solid var(--hair);
    padding: 16px 0;
  }
  .page-meta-item:first-child { padding-top: 16px; }
  .page-meta-item:last-child { border-bottom: none; padding-bottom: 0; }
  .page-meta-val { font-size: 22px; }

  .section-head, .pillars-head { flex-direction: column; gap: 8px; align-items: flex-start; }

  /* Hero CTAs stack and go full-width on phones */
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-ctas .cta-primary, .hero-ctas .cta-ghost { justify-content: center; width: 100%; text-align: center; }

  /* Contact band — tighter on mobile */
  .contact { padding: 80px 24px; }
  .contact-title { font-size: clamp(40px, 11vw, 64px); line-height: 1.05; }
  .contact-cta { font-size: 28px; }

  /* Hero (home) — slightly smaller min */
  .hero-title { font-size: clamp(48px, 13vw, 88px); }
  .hero-lead { font-size: 18px; }

  /* Cases preview cards */
  .cases-pv-item { padding: 28px 0; }

  /* Manifesto/team/process headings */
  .manifesto-title, .team-title { font-size: clamp(44px, 11vw, 72px); }
}

@media (max-width: 540px) {
  .nav { padding: 14px 20px; gap: 8px; }
  .nav-links { gap: 12px; }
  .nav-link { font-size: 11px; }
  .footer-row { grid-template-columns: 1fr; gap: 28px; }
  .hero, .manifesto, .team, .contact, .page-hero, .process, .agents, .footer, .cases, .cases-preview {
    padding-left: 20px; padding-right: 20px;
  }
}
