/* ==========================================================================
   Agentic Worklabs · v6 · Bone + Grid
   --------------------------------------------------------------------------
   Design notes for the developer:
   - Paper: LinkedIn Cream (#F4F2EE), one notch lighter than the previous Pale Bone.
   - Surface: 40px blueprint grid dots, masked top-and-bottom. Visible on
     both light and dark.
   - Type: Geist sans + Geist Mono + Instrument Serif italic for punchlines.
   - Logo: bumped to 32px mark + 18px wordmark (the cherokee third slab
     should be legible at nav size).
   - Cherokee discipline: ONE cherokee moment per screen-fold. The logo's
     third slab counts as persistent chrome and does NOT count toward the
     per-screen budget. Italic-serif on words of consequence
     (enforcement, free) is cherokee. Other italic-serif moments are ink.
   - Cantilever-as-architecture: 4-slab proportional rhythm appears as
     the left-gutter ruler (.cantilever-ruler), the EU-block horizontal
     divider (.cantilever-divider), and the hero footer-rail
     (.hero-rail with 3·4·3·2 column spans).
   - No em-dashes anywhere in copy. Periods or commas instead.
   ========================================================================== */


/* ────────────────────────────────────────────────────── 1 · TOKENS */

:root {
  /* Surfaces · light */
  --bg:           #F4F2EE;
  --bg-2:         #ECE9E0;
  --bg-3:         #E2DFD5;
  --line:         #DCD8CC;

  /* Ink */
  --ink:          #1C2024;
  --ink-soft:     #4F565D;
  --ink-mute:     #7A8088;

  /* Cobalt · primary brand voice (~85% of accents) */
  --cobalt:       #1F3D8A;
  --cobalt-soft:  #7D96D1;
  --cobalt-wash:  #CFE0F4;

  /* Cherokee · heritage seal (logo + ONE moment per screen) */
  --cherokee:     #9A3022;
  --cherokee-soft:#C47866;

  /* Background grid dot color (low contrast against bg) */
  --grid-dot:     rgba(28, 32, 36, 0.22);
  --cobalt-wash-alpha: rgba(125, 150, 209, 0.04);

  /* Type */
  --font-sans:    'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  --font-serif:   'Instrument Serif', 'Source Serif Pro', Georgia, serif;

  /* Radii */
  --r-pill:       9999px;
  --r-lg:         32px;
  --r-md:         20px;
  --r-sm:         14px;

  /* Container */
  --page-max:     1280px;
  --page-pad:     48px;

  /* Cherokee-tinted background washes (light) */
  --cherokee-bg-soft: rgba(154, 48, 34, 0.06);
  --cherokee-border:  rgba(154, 48, 34, 0.33);
  --cherokee-glow:    rgba(154, 48, 34, 0.13);
}

[data-theme="dark"] {
  --bg:           #16191D;
  --bg-2:         #1F2429;
  --bg-3:         #2A2F34;
  --line:         #3A3F44;

  --ink:          #ECE8DA;
  --ink-soft:     #A59F93;
  --ink-mute:     #6F6A5F;

  --cobalt:       #7D96D1;
  --cobalt-soft:  #3A5FA8;
  --cobalt-wash:  #CFE0F4;

  --cherokee:     #D97565;
  --cherokee-soft:#9A3022;

  --grid-dot:     rgba(236, 232, 218, 0.10);
  --cobalt-wash-alpha: rgba(125, 150, 209, 0.18);

  --cherokee-bg-soft: rgba(217, 117, 101, 0.07);
  --cherokee-border:  rgba(217, 117, 101, 0.33);
  --cherokee-glow:    rgba(217, 117, 101, 0.15);
}


/* ────────────────────────────────────────────────────── 2 · RESET / BASE */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, textarea, button, select { font-family: inherit; }
a { color: inherit; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light dark;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 200ms ease, color 200ms ease;
}

::selection { background: var(--cobalt); color: var(--bg); }

/* Smooth theme transitions on tokens used by big surfaces */
header, .hero, .practice, .eu-panel, .testimonials, .cases,
.contact-section, footer, .logo-strip {
  transition: background-color 200ms ease, border-color 200ms ease;
}


/* ────────────────────────────────────────────────────── 3 · PAGE BACKGROUNDS */

/* Blueprint grid · sits behind everything, masked top/bottom */
.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0);
  background-size: 40px 40px;
  background-position: -1px -1px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.4) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.4) 100%);
}

/* Cool cobalt wash at top of page */
.cobalt-wash {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 110vw);
  height: 900px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at top, var(--cobalt-wash-alpha), transparent 60%);
  filter: blur(20px);
}

/* Keep everything stacked above the bg layers */
header, section, footer, .logo-strip { position: relative; z-index: 1; }


/* ────────────────────────────────────────────────────── 4 · LAYOUT */

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

@media (max-width: 1100px) {
  :root { --page-pad: 28px; }
}
@media (max-width: 760px) {
  :root { --page-pad: 20px; }
}


/* ────────────────────────────────────────────────────── 5 · HEADER / NAV */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

header .container {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo bumped 22 → 32px mark, 16 → 18px wordmark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo svg { width: 32px; height: 32px; }

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav > a {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}
nav > a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-weight: 500;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--ink-soft); }

/* Theme toggle */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  padding: 0;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-soft); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun  { display: block; }

/* Language dropdown */
.lang-dropdown { position: relative; }
.lang-trigger {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 150ms ease, border-color 150ms ease;
  height: 34px;
}
.lang-trigger:hover { color: var(--ink); border-color: var(--ink-soft); }
.lang-trigger svg { transition: transform 200ms ease; }
.lang-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 32px -12px rgba(0,0,0,0.18);
  z-index: 60;
}
.lang-dropdown.is-open .lang-menu { display: flex; }
.lang-menu a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}
.lang-menu a:hover { background: var(--bg-2); color: var(--ink); }
.lang-menu a.active { color: var(--ink); font-weight: 500; }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  width: 38px;
  height: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  transition: border-color 150ms ease;
}
.hamburger:hover { border-color: var(--ink-soft); }
.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(2.75px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-2.75px) rotate(-45deg);
}

@media (max-width: 900px) {
  nav > a:not(.nav-cta) { display: none; }
  .theme-toggle, .lang-dropdown { display: none; }
  .hamburger { display: inline-flex; }
}

/* Mobile menu panel */
header.is-menu-open {
  background: var(--bg);
}
header.is-menu-open::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  height: 0;
}
.mobile-menu {
  position: fixed;
  top: 67px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 24px var(--page-pad) 32px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 40;
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.18);
}
header.is-menu-open ~ .mobile-menu { display: flex; }
.mobile-menu a {
  padding: 14px 0;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .mobile-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.mobile-menu .mobile-controls .theme-toggle,
.mobile-menu .mobile-controls .lang-dropdown { display: inline-flex; }
.mobile-menu .mobile-controls .lang-menu { right: auto; left: 0; }


/* ────────────────────────────────────────────────────── 6 · HERO */

.hero {
  padding: 120px 0 120px;
}
@media (max-width: 760px) { .hero { padding: 64px 0 80px; } }

.hero .container {
  display: grid;
  grid-template-columns: 88px 1fr 56px;
  gap: 0;
}
@media (max-width: 1100px) {
  .hero .container { grid-template-columns: 1fr; }
}

.hero-main {
  padding: 0 32px;
  min-width: 0;
  grid-column: 2;
}
@media (max-width: 1100px) {
  .hero-main { padding: 0; grid-column: 1; }
}

/* Scarcity pill · THE cherokee moment for the hero screen */
.scarcity-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 8px;
  border: 1px solid var(--cherokee-border);
  border-radius: var(--r-pill);
  background: var(--cherokee-bg-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cherokee);
  letter-spacing: 0.02em;
  margin-bottom: 44px;
  white-space: nowrap;
  max-width: 100%;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.scarcity-pill:hover {
  background: var(--cherokee-border);
  border-color: var(--cherokee);
}
@media (max-width: 760px) { .scarcity-pill { margin-bottom: 32px; } }

.pulse-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cherokee);
  flex: 0 0 14px;
  box-shadow: 0 0 0 4px var(--cherokee-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--cherokee-glow); }
  50%      { box-shadow: 0 0 0 8px rgba(154, 48, 34, 0.04); }
}
[data-theme="dark"] @keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--cherokee-glow); }
  50%      { box-shadow: 0 0 0 8px rgba(217, 117, 101, 0.05); }
}

/* Hero H1 with italic-serif punchline */
.hero h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(48px, 9.5vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0;
  color: var(--ink);
  max-width: 18ch;
  padding-bottom: 0.05em;
}
.hero h1 em.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.hero-sub {
  max-width: 56ch;
  margin: 56px 0 0;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.hero-sub strong { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) { .hero-sub { margin-top: 32px; } }

.hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
@media (max-width: 760px) { .hero-ctas { margin-top: 32px; } }

.btn-primary, .btn-ghost, .btn-cherokee, .form-submit {
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 80ms ease;
}
.btn-primary:active, .btn-ghost:active, .btn-cherokee:active, .form-submit:active {
  transform: translateY(1px);
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-soft); }
.btn-ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-cherokee { background: var(--cherokee); color: #ffffff; }
.btn-cherokee:hover { background: var(--cherokee-soft); }

.hero-meta {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@media (max-width: 760px) { .hero-meta { display: none; } }

/* Cantilever ruler · left gutter, desktop only */
.cantilever-ruler {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  position: sticky;
  top: 120px;
  height: fit-content;
  align-self: start;
}
@media (max-width: 1100px) { .cantilever-ruler { display: none; } }
.cantilever-ruler .slab {
  background: var(--ink);
  opacity: 0.85;
  border-radius: 1px;
}
.cantilever-ruler .slab.s1 { width: 12px; height: 56px; align-self: flex-start; }
.cantilever-ruler .slab.s2 { width: 16px; height: 80px; align-self: flex-start; }
.cantilever-ruler .slab.s3 { width: 14px; height: 64px; background: var(--cherokee); align-self: flex-start; opacity: 1; }
.cantilever-ruler .slab.s4 { width: 15px; height: 72px; align-self: flex-start; }
.cantilever-ruler .label {
  display: none;
}

/* Right gutter tick rhythm */
.tick-rhythm {
  grid-column: 3;
  position: sticky;
  top: 160px;
  width: 1px;
  height: 320px;
  background: linear-gradient(180deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
  margin: 0 auto;
  align-self: start;
}
@media (max-width: 1100px) { .tick-rhythm { display: none; } }
.tick-rhythm .tick {
  position: absolute;
  left: -3px;
  width: 7px;
  background: var(--ink);
  opacity: 0.5;
}
.tick-rhythm .tick.t1 { top: 8px;   height: 8px;  }
.tick-rhythm .tick.t2 { top: 60px;  height: 20px; }
.tick-rhythm .tick.t3 { top: 156px; height: 14px; }
.tick-rhythm .tick.t4 { top: 240px; height: 10px; }

/* Hero footer rail · cantilever proportions baked in */
.hero-rail {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-top: 96px;
}
@media (max-width: 760px) {
  .hero-rail {
    grid-template-columns: 1fr;
    margin-top: 56px;
  }
}
.hero-rail .cell {
  padding: 14px 14px 0 0;
  border-right: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
}
.hero-rail .cell:last-child { border-right: none; }
@media (max-width: 760px) {
  .hero-rail .cell {
    border-right: none;
    border-top: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
    padding: 18px 0 0;
  }
  .hero-rail .cell:first-child { border-top: none; padding-top: 14px; }
}

.hero-rail .cell.c1 { grid-column: span 3; }
.hero-rail .cell.c2 { grid-column: span 4; }
.hero-rail .cell.c3 { grid-column: span 3; }
.hero-rail .cell.c4 { grid-column: span 2; }
@media (max-width: 760px) {
  .hero-rail .cell.c1, .hero-rail .cell.c2,
  .hero-rail .cell.c3, .hero-rail .cell.c4 { grid-column: 1; }
}
.hero-rail .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-rail .v {
  font-size: 15px;
  color: var(--ink);
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: -0.005em;
}


/* ────────────────────────────────────────────────────── 7 · LOGO STRIP */

.logo-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
  overflow: hidden;
}
@media (max-width: 760px) { .logo-strip { padding: 24px 0; } }
.logo-strip .container {
  display: flex;
  align-items: center;
  gap: 56px;
  justify-content: space-between;
}
@media (max-width: 1100px) {
  .logo-strip .container {
    gap: 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .logo-strip .container::-webkit-scrollbar { display: none; }
}
.logo-strip-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-strip-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  opacity: 0.7;
  white-space: nowrap;
  flex-shrink: 0;
}


/* ────────────────────────────────────────────────────── 8 · PRACTICE */

.practice {
  padding: 160px 0 80px;
}
@media (max-width: 760px) { .practice { padding: 80px 0; } }

.practice-header {
  text-align: center;
  margin-bottom: 100px;
}
@media (max-width: 760px) { .practice-header { margin-bottom: 60px; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cobalt);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow-cherokee { color: var(--cherokee); }

.practice h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 980px;
  margin-inline: auto;
  color: var(--ink);
}
.practice h2 em.serif,
.cases h2 em.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}

/* Pillar rows */
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.pillar:first-of-type { border-top: none; }
.pillar:nth-of-type(even) .pillar-content { order: 2; }
.pillar:nth-of-type(even) .pillar-visual  { order: 1; }
@media (max-width: 1100px) {
  .pillar { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .pillar:nth-of-type(even) .pillar-content { order: 1; }
  .pillar:nth-of-type(even) .pillar-visual  { order: 2; }
}

.pillar-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cobalt);
  letter-spacing: 0.16em;
}
.pillar-dash {
  width: 32px;
  height: 1px;
  background: var(--cobalt);
}
.pillar-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pillar h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
}
.pillar-desc {
  margin-top: 24px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 520px;
}
.pillar-bullets {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.pillar-bullets li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
}
.pillar-bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
  flex-shrink: 0;
}

.pillar-visual {
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  border-radius: 28px;
  border: 1px solid var(--line);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 760px) { .pillar-visual { padding: 24px; } }
.pillar-visual svg { width: 100%; height: 100%; }
.pillar-fig {
  position: absolute;
  bottom: 24px;
  left: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


/* ────────────────────────────────────────────────────── 9 · EU AI ACT */

.eu-panel { padding: 0; }
.eu-inner {
  background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg) 70%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 80px 72px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 760px) {
  .eu-inner { padding: 56px 32px; border-radius: var(--r-md); }
}

.eu-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--cherokee-glow), transparent 70%);
  pointer-events: none;
}

.eu-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
  position: relative;
}
@media (max-width: 1100px) {
  .eu-grid { grid-template-columns: 1fr; gap: 40px; }
}

.eu-headline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ink);
}
.eu-headline .cherokee {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cherokee);
  letter-spacing: -0.025em;
}

.countdown-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.countdown-num {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 6px;
}
.countdown-unit { color: var(--ink-mute); margin-right: 8px; }
.countdown-unit:last-child { margin-right: 0; }

.eu-body {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 360px;
}
.eu-body strong { color: var(--ink); font-weight: 500; }

/* Cantilever divider · 4-slab proportional rule */
.cantilever-divider {
  display: grid;
  grid-template-columns: 22% 32% 18% 28%;
  gap: 8px;
  height: 4px;
  margin: 56px 0 48px;
}
.cantilever-divider span {
  background: var(--ink);
  opacity: 0.85;
  border-radius: 1px;
}
.cantilever-divider span:nth-child(3) {
  background: var(--line);
  height: 2px;
  align-self: center;
  opacity: 1;
}

.eu-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
@media (max-width: 760px) {
  .eu-stats { grid-template-columns: 1fr; gap: 32px; }
}
.eu-stat {
  padding: 0 32px 0 0;
  border-right: 1px solid var(--line);
}
.eu-stat + .eu-stat { padding-left: 32px; }
.eu-stat:last-child { border-right: none; }
@media (max-width: 760px) {
  .eu-stat { border-right: none; padding: 24px 0 0; border-top: 1px solid var(--line); }
  .eu-stat + .eu-stat { padding-left: 0; }
  .eu-stat:first-of-type { border-top: none; padding-top: 0; }
}

.eu-stat-num {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(56px, 6.4vw, 96px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.eu-stat-suffix {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 36px;
  color: var(--ink-soft);
  margin-left: 2px;
}
.eu-stat-desc {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 280px;
  line-height: 1.45;
}
.eu-stat-src {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eu-cta { margin-top: 56px; }


/* ────────────────────────────────────────────────────── 10 · TESTIMONIALS */

.testimonials {
  padding: 160px 0 80px;
}
@media (max-width: 760px) { .testimonials { padding: 80px 0; } }

.testimonials-header {
  text-align: center;
  margin-bottom: 80px;
}
@media (max-width: 760px) { .testimonials-header { margin-bottom: 56px; } }

.testimonials h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px)  { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
}
.testimonial-mark {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 32px;
  color: var(--cobalt);
  line-height: 0.5;
}
.testimonial-card blockquote {
  margin: 12px 0 0;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.testimonial-card figcaption {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.testimonial-name { font-weight: 500; font-size: 14px; color: var(--ink); }
.testimonial-role { margin-top: 4px; font-size: 13px; color: var(--ink-soft); }


/* ────────────────────────────────────────────────────── 11 · CASES */

.cases {
  padding: 80px 0 80px;
}
@media (max-width: 760px) { .cases { padding: 80px 0 48px; } }

.cases-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 56px;
}
@media (max-width: 760px) {
  .cases-header { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
}
.cases h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
.cases-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cobalt);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.cases-link:hover { color: var(--ink); }

.cases-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
@media (max-width: 1100px) { .cases-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px)  { .cases-grid { grid-template-columns: 1fr; } }

/* Card flip · click .case-card to toggle .is-flipped on .case-card-inner */
.case-card {
  perspective: 1400px;
  cursor: pointer;
  margin: 0;
}
.case-card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(0.4, 0.2, 0.2, 1);
  min-height: 520px;
}
.case-card.is-flipped .case-card-inner { transform: rotateY(180deg); }

.case-card-front, .case-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms ease;
}
.case-card:hover .case-card-front,
.case-card:hover .case-card-back { border-color: var(--ink-soft); }

.case-card-back {
  transform: rotateY(180deg);
  padding: 32px 28px 24px;
  background: var(--bg-2);
}

.case-hero {
  position: relative;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  flex-shrink: 0;
}
.case-hero-big { height: 360px; }
.case-hero-sm  { height: 240px; }
@media (max-width: 1100px) {
  .case-hero-big { height: 280px; }
}
.case-dots { position: absolute; inset: 0; }
.case-metric {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--cobalt);
  letter-spacing: -0.05em;
  line-height: 1;
  opacity: 0.95;
}
.case-metric-big { font-size: clamp(120px, 14vw, 200px); }
.case-metric-sm  { font-size: clamp(100px, 10vw, 140px); }

.case-tag {
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.case-body-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.case-body h3 {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.case-body h3.big { font-size: 28px; }
.case-body h3.sm  { font-size: 22px; }

.case-body-metric {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cobalt);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Back face */
.case-back-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.case-card-back h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 18px;
}
.case-card-back p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.case-back-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.case-back-stat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.case-back-stat strong {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 28px;
  color: var(--cobalt);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  text-transform: none;
}
.case-back-hint {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


/* ────────────────────────────────────────────────────── 11b · SECURITY */

.security { padding: 40px 0 120px; }
@media (max-width: 760px) { .security { padding: 24px 0 72px; } }
.security-header { text-align: center; margin-bottom: 56px; }
.security-header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 12px 0 0;
}
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (max-width: 760px) { .security-grid { grid-template-columns: 1fr; } }
.security-item {
  background: var(--bg);
  padding: 32px 36px;
}
.security-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  font-weight: 500;
  margin-bottom: 10px;
}
.security-item p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}


/* ────────────────────────────────────────────────────── 12 · CONTACT */

.contact-section {
  padding: 0 0 120px;
}
@media (max-width: 760px) { .contact-section { padding-bottom: 80px; } }

.contact-panel {
  background: linear-gradient(140deg, var(--ink) 0%, #1a1c14 100%);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: 80px 72px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .contact-panel {
  background: linear-gradient(140deg, var(--bg-2) 0%, var(--bg-3) 100%);
  color: var(--ink);
}
@media (max-width: 1100px) {
  .contact-panel { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .contact-panel { padding: 56px 32px; border-radius: var(--r-md); }
}

.contact-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(125, 150, 209, 0.4), transparent 65%);
  pointer-events: none;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cobalt-wash);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.contact-heading {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.045em;
  margin: 0;
}
.contact-heading .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cherokee);
  letter-spacing: -0.025em;
}
.contact-sub {
  margin-top: 28px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
  max-width: 460px;
  color: #cfc9b9;
}
[data-theme="dark"] .contact-sub { color: var(--ink-soft); }

.contact-form-card {
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: 36px;
  position: relative;
}
@media (max-width: 760px) { .contact-form-card { padding: 28px; } }

.form-row {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.form-row:first-of-type { border-top: none; padding-top: 0; }
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--ink);
  font-family: var(--font-sans);
  padding: 0;
  resize: vertical;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-row select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l3 3 3-3' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 20px;
}
.form-row select:invalid { color: var(--ink-mute); }
.form-row select option { color: var(--ink); background: var(--bg); }
.form-row input::placeholder,
.form-row select::placeholder,
.form-row textarea::placeholder { color: var(--ink-mute); }
.form-row input:focus::placeholder,
.form-row textarea:focus::placeholder { opacity: 0; transition: opacity 150ms ease; }

.form-submit {
  margin-top: 22px;
  width: 100%;
  justify-content: center;
  background: var(--ink);
  color: var(--bg);
  border: none;
}
.form-submit:hover { background: var(--ink-soft); }


/* ────────────────────────────────────────────────────── 13 · FOOTER */

footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
}
@media (max-width: 760px) { footer { padding: 48px 0 32px; } }

.footer-mark {
  color: var(--ink);
  margin-bottom: 28px;
  width: 96px;
  height: 96px;
}
@media (max-width: 760px) {
  .footer-mark { width: 72px; height: 72px; }
}

.footer-wordmark {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-mute) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-meta {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-meta a { color: var(--ink-mute); text-decoration: none; }
.footer-meta a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .footer-meta { flex-direction: column; gap: 12px; margin-top: 32px; }
}


/* ────────────────────────────────────────────────────── 14 · UTILS */

.cherokee { color: var(--cherokee); }
.cobalt   { color: var(--cobalt); }
.serif    {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}


/* ────────────────────────────────────────────────────── 15 · SCROLL ANIMATIONS */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* SVG diagram animations */
.pillar-visual svg { overflow: visible; }

.pillar-visual .anim-radar-poly {
  transform-origin: 0px 0px;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
              opacity 0.6s ease 0.3s;
}

.pillar-visual.visible .anim-radar-poly {
  transform: scale(1);
  opacity: 1;
}

.pillar-visual .anim-stack-layer {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pillar-visual.visible .anim-stack-layer:nth-child(1) { transition-delay: 0.15s; opacity: 1; }
.pillar-visual.visible .anim-stack-layer:nth-child(2) { transition-delay: 0.25s; opacity: 1; }
.pillar-visual.visible .anim-stack-layer:nth-child(3) { transition-delay: 0.35s; opacity: 1; }
.pillar-visual.visible .anim-stack-layer:nth-child(4) { transition-delay: 0.45s; opacity: 1; }
.pillar-visual.visible .anim-stack-layer:nth-child(5) { transition-delay: 0.55s; opacity: 1; }

.pillar-visual .anim-curve-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.pillar-visual.visible .anim-curve-line {
  stroke-dashoffset: 0;
}

.pillar-visual .anim-curve-fill {
  opacity: 0;
  transition: opacity 0.8s ease 0.6s;
}

.pillar-visual.visible .anim-curve-fill {
  opacity: 0.1;
}

.pillar-visual .anim-curve-dot {
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1s;
}

.pillar-visual.visible .anim-curve-dot {
  transform: scale(1);
}
