/* =================================================================
   Stepan Turchenko - personal site. MAJOR RESTYLE.
   Swiss + grunge, warm editorial, trilingual. Light/dark blocks.
   Palette + layout per SCENARIO_V2.md.
   ================================================================= */

/* ---------------------------------------------------- TOKENS */
:root {
  /* light (cream editorial) */
  --cream-bg: #f4ede2;
  --cream-bg-2: #ede3d4;
  --ink: #241b14;
  --ink-soft: #5a4a3c;
  --hairline-light: #c9b8a2;

  /* dark (warm grunge) */
  --coffee-bg: #1c1410;
  --coffee-bg-2: #261b14;
  --paper: #f2e9db;
  --paper-soft: #b7a793;
  --hairline-dark: #4a382c;

  /* accents (identical across themes) */
  --terracotta: #c8552b;
  --terracotta-deep: #9e3e1c;
  --clay: #e0a24e;

  /* fonts */
  --font-display: "Wix Madefor Display", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Lora", "Noto Serif SC", Georgia, serif;
  --font-mono: "JetBrains Mono", "Noto Sans SC", ui-monospace, monospace;

  /* layout */
  --maxw: 1400px;
  --gutter: clamp(20px, 5vw, 80px);
  --nav-h: 68px;

  /* easing (emil: punchy custom curves) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* per-section theme vars (set by .section--light / --dark) */
  --bg: var(--coffee-bg);
  --bg-2: var(--coffee-bg-2);
  --fg: var(--paper);
  --fg-soft: var(--paper-soft);
  --hairline: var(--hairline-dark);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--coffee-bg);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--terracotta); color: var(--paper); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--terracotta);
  color: var(--paper);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* ---------------------------------------------------- THEME BLOCKS */
.section--dark {
  --bg: var(--coffee-bg);
  --bg-2: var(--coffee-bg-2);
  --fg: var(--paper);
  --fg-soft: var(--paper-soft);
  --hairline: var(--hairline-dark);
  background: var(--coffee-bg);
  color: var(--paper);
}
.section--light {
  --bg: var(--cream-bg);
  --bg-2: var(--cream-bg-2);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --hairline: var(--hairline-light);
  background: var(--cream-bg);
  color: var(--ink);
}

.section {
  position: relative;
  overflow: hidden;
}
.section__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 168px) var(--gutter);
}

/* grunge seam between blocks (hard edge, not gradient) */
.section + .section::before,
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--terracotta) 0 22px,
    transparent 22px 44px
  );
  opacity: 0.32;
  z-index: 3;
}

/* ---------------------------------------------------- STOCK BACKGROUNDS + DUOTONE */
.section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  mix-blend-mode: multiply;
}
.section__bg-duotone {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  background: var(--coffee-bg);
  opacity: 0.5;
}
/* hero: heavier-handed warm duotone over stock */
.hero__bg {
  background-image: url("../assets/stock/warm-abstract-waves-01.jpg");
  opacity: 0.62;
}
.hero__bg .section__bg-duotone {
  background:
    radial-gradient(120% 120% at 18% 12%, rgba(200, 85, 43, 0.34), transparent 55%),
    linear-gradient(180deg, rgba(28, 20, 16, 0.62), rgba(28, 20, 16, 0.92));
  opacity: 1;
  mix-blend-mode: normal;
}
/* APPROACH - dark poster with a muted sage-green accent + diagonal slashes */
#approach {
  overflow-x: clip;
}
#approach .section__bg {
  background-image: url("../assets/stock/sage-green-waves-01.jpg");
  opacity: 0.34;
  background-position: right center;
  mix-blend-mode: screen;
}
#approach .section__bg-duotone {
  background:
    linear-gradient(135deg, rgba(28, 20, 16, 0.5) 0%, rgba(28, 20, 16, 0.9) 70%),
    radial-gradient(90% 120% at 88% 8%, rgba(120, 138, 110, 0.28), transparent 55%);
  opacity: 1;
  mix-blend-mode: normal;
}
/* diagonal-slash overlay, drawn inside the approach bg layer only */
#approach .section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -52deg,
    transparent 0 38px,
    rgba(200, 85, 43, 0.1) 38px 40px
  );
}

/* ABOUT - soft warm radial behind a full-color editorial side image */
#about .section__bg { background-image: url("../assets/stock/warm-radial-gradient-01.jpg"); opacity: 0.26; }

/* CONTACT - terracotta clay, lighter, screen blend for a different feel */
#contact .section__bg {
  background-image: url("../assets/stock/terracotta-clay-01.jpg");
  opacity: 0.3;
  mix-blend-mode: screen;
}

.section--light::after {
  /* faint paper texture on cream blocks */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("../assets/stock/cream-paper-01.jpg");
  background-size: cover;
  opacity: 0.16;
  mix-blend-mode: multiply;
}

/* ---------------------------------------------------- TYPE PRIMITIVES */
.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 clamp(18px, 2.4vw, 32px);
}
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7.6vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
  word-break: normal;
  overflow-wrap: break-word;
}
.accent-word,
.approach__hl-mark,
.contact__hl-mark,
.proof__lead-mark { color: var(--terracotta); }
/* the accent word reads as a softer voice: weight contrast, not a font swap */
.accent-word { font-weight: 500; }
.hero__accent--second { color: var(--clay); }
.hero__accent[data-rn="underline"].rn-plain {
  text-decoration: none;
  background-image:
    linear-gradient(var(--terracotta), var(--terracotta)),
    linear-gradient(var(--terracotta), var(--terracotta));
  background-size: 100% 2px, 92% 2px;
  background-position: 0 100%, 0 calc(100% + 5px);
  background-repeat: no-repeat;
}
.hero__accent[data-rn="circle"].rn-plain {
  text-decoration: none;
  outline: 1.5px solid var(--clay);
  outline-offset: 3px;
  border-radius: 999px;
}

.lead-body {
  font-family: var(--font-body);
  color: var(--fg-soft);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  max-width: 62ch;
  margin: 0;
}

/* clickable project title: subtle terracotta-tinted editorial underline */
.project-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(200, 85, 43, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease, text-underline-offset 0.2s var(--ease-out);
}
.project-link:hover,
.project-link:focus-visible {
  color: var(--terracotta);
  text-decoration-color: var(--terracotta);
  text-underline-offset: 0.22em;
}

/* oversized faint section index in the margin rail */
.section-index {
  position: absolute;
  top: clamp(40px, 6vw, 96px);
  right: var(--gutter);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 16vw, 15rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  z-index: 1;
  pointer-events: none;
  /* native background-clip:text texture fill */
  background-image: url("../assets/stock/terracotta-clay-01.jpg");
  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.5;
}
.section--dark .section-index { opacity: 0.42; }

/* ---------------------------------------------------- BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary {
  background: var(--terracotta);
  color: var(--paper);
  border-color: var(--terracotta);
}
.btn--primary:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); }
.btn--primary:active { transform: scale(0.97); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--hairline);
}
.btn--ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn--ghost:active { transform: scale(0.97); }

/* ---------------------------------------------------- TAGS / CHIPS */
.tag,
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-soft);
  border: 1px solid var(--hairline);
  padding: 5px 11px;
  border-radius: 0; /* sharp corners */
  background: transparent;
}
.chip { font-size: 13px; padding: 7px 13px; color: var(--fg); }

/* ---------------------------------------------------- NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 80;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav[data-theme="dark"] { color: var(--paper); }
.nav[data-theme="light"] { color: var(--ink); }
.nav[data-scrolled="true"][data-theme="dark"] {
  background: rgba(28, 20, 16, 0.86);
  border-bottom-color: var(--hairline-dark);
  backdrop-filter: blur(10px);
}
.nav[data-scrolled="true"][data-theme="light"] {
  background: rgba(244, 237, 226, 0.88);
  border-bottom-color: var(--hairline-light);
  backdrop-filter: blur(10px);
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(15px, 1.7vw, 19px);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--muted);
  opacity: 0.72;
  max-width: 220px;
}
.nav__links {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  margin-left: auto;
  margin-right: 8px;
}
.nav__link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.82;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.nav__link:hover { opacity: 1; color: var(--terracotta); }
.nav__right { display: flex; align-items: center; gap: 14px; }

.lang {
  display: inline-flex;
  border: 1px solid var(--hairline);
}
.lang__btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  background: transparent;
  color: inherit;
  border: none;
  padding: 7px 11px;
  cursor: pointer;
  opacity: 0.66;
  transition: opacity 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.lang__btn + .lang__btn { border-left: 1px solid var(--hairline); }
.lang__btn:hover { opacity: 1; }
.lang__btn.is-active {
  background: var(--terracotta);
  color: var(--paper);
  opacity: 1;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--hairline);
  cursor: pointer;
}
.nav__burger-bar {
  width: 18px;
  height: 1.5px;
  background: currentColor;
  display: block;
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: var(--coffee-bg);
  color: var(--paper);
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}
.mobile-menu[data-open="true"] { transform: translateY(0); visibility: visible; }
.mobile-menu__panel {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 40px;
  text-align: left;
}
.mobile-menu__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 3.4rem);
  letter-spacing: -0.02em;
}
.mobile-menu__link:hover { color: var(--terracotta); }
.mobile-menu__cta { align-self: flex-start; margin-top: 8px; }
.mobile-menu__langs { display: flex; gap: 8px; margin-top: 18px; }
.mobile-menu__langs .lang__btn { border: 1px solid var(--hairline-dark); }

/* ---------------------------------------------------- HERO */
.hero { min-height: 100svh; display: flex; }
.hero__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-content: start;
  flex: 1;
  width: 100%;
  padding-top: calc(var(--nav-h) + clamp(40px, 8vh, 120px));
  padding-bottom: clamp(56px, 9vh, 120px);
}
.hero__eyebrow { grid-column: 1 / -1; min-height: 1.5em; }
.hero__headline {
  position: relative;
  grid-column: 1 / span 10;
  font-size: clamp(2.7rem, 9vw, 7rem);
}
.hero__headline-measure {
  visibility: hidden;
  display: block;
  pointer-events: none;
  user-select: none;
}
.hero__headline-live {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.hero__headline-measure,
.hero__headline-live {
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}
.hero__headline-measure .accent-word,
.hero__headline-live .accent-word {
  font-weight: inherit;
  display: inline;
  padding: 0;
  margin: 0;
  vertical-align: baseline;
  line-height: inherit;
  letter-spacing: inherit;
}
.hero__headline-live .hero__accent {
  position: relative;
  box-sizing: content-box;
}
.hero__headline-live .hero__accent svg {
  overflow: visible;
  pointer-events: none;
}
.hero__headline-live .hero__accent[data-rn="underline"] svg {
  position: absolute;
  left: 0;
  top: 0;
}
.hero__headline-live .hero__accent[data-rn="circle"] svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.hero__headline-live [hidden] {
  display: none !important;
}
.hero__headline-morph {
  display: block;
}
.hero__headline.is-morphing {
  overflow: hidden;
}
.hero__subtext {
  grid-column: 1 / span 7;
  margin-top: clamp(22px, 3vw, 38px);
  color: var(--paper-soft);
  min-height: calc(2 * 1.6 * clamp(1rem, 1.5vw, 1.18rem));
}
.hero__ctas {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 46px);
}
.hero__marker {
  position: absolute;
  bottom: clamp(20px, 4vh, 48px);
  right: var(--gutter);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--paper);
  opacity: 0.12;
}

/* hero entrance sequence: eyebrow -> headline -> subtext -> CTAs */
.js .hero__seq {
  opacity: 0;
  transform: translateY(14px);
}
.js .hero__seq.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

/* ---------------------------------------------------- PROOF STRIP */
.proof__inner {
  padding-top: clamp(24px, 4vh, 40px);
  padding-bottom: clamp(24px, 4vh, 40px);
  min-height: clamp(140px, 28vh, 33vh);
  max-height: 33vh;
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}
.proof__lead {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  max-width: 12ch;
  margin: 0;
  line-height: 1;
}
.proof__band {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr 2fr;
  border-top: 1px solid var(--hairline-light);
  align-self: stretch;
  align-items: center;
}
.proof__item {
  padding: clamp(10px, 1.4vw, 16px) clamp(12px, 1.4vw, 18px) clamp(10px, 1.4vw, 16px) 0;
  border-right: 1px solid var(--hairline-light);
}
.proof__item:last-child { border-right: none; }
.proof__item:not(:first-child) { padding-left: clamp(12px, 1.4vw, 18px); }
.proof__line {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
  max-width: 28ch;
}

/* ---------------------------------------------------- AI INTEGRATION (approach) */
.approach__inner { padding-top: clamp(88px, 12vw, 180px); }
.approach__headline {
  max-width: 22ch;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.approach__hl-mark { color: var(--clay); }
.approach__hl-mark.rn-plain { color: var(--clay); }
.approach__lead {
  color: var(--paper);
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
}
/* lead text + full-color sculptural side image */
.approach__intro {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(28px, 4vw, 48px);
  overflow: visible;
}
.approach__figure {
  margin: 0;
  margin-right: calc(-1 * var(--gutter) - max(0px, (100vw - var(--maxw)) / 2));
  justify-self: end;
  width: 110%;
  max-width: none;
  transform: translateX(10%);
  border: 1px solid var(--terracotta);
  border-left-width: 4px;
  padding: clamp(8px, 1vw, 14px);
  background: var(--coffee-bg-2);
}
.approach__img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

/* shared block scaffolding (ladder / examples / pillars) */
.ai-block { margin-top: clamp(56px, 8vw, 110px); }
.ai-block__head { max-width: 64ch; }
.ai-block__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--paper);
}
.ai-block__caption {
  font-family: var(--font-body);
  color: var(--paper-soft);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: 58ch;
}

/* --- unified light panel: ladder + decorative seam + agent swaps --- */
.approach-light-panel {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: clamp(32px, 5vw, 56px);
  background: var(--cream-bg);
  color: var(--ink);
  border-top: 1px solid var(--hairline-light);
  border-bottom: 1px solid var(--hairline-light);
  overflow: hidden;
}
.approach-light-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("../assets/stock/cream-paper-01.jpg");
  background-size: cover;
  opacity: 0.14;
  mix-blend-mode: multiply;
}
.approach-light-panel > * {
  position: relative;
  z-index: 1;
}
.approach-light-panel__seam {
  width: 100%;
  height: clamp(12px, 1.8vh, 18px);
  margin: 0;
  border-top: 1px solid rgba(28, 20, 16, 0.1);
  border-bottom: 1px solid rgba(28, 20, 16, 0.06);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 14px,
      rgba(200, 85, 43, 0.42) 14px 16px,
      transparent 16px 30px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 7px,
      rgba(28, 20, 16, 0.05) 7px 8px,
      transparent 8px 22px
    );
  opacity: 0.85;
}

/* --- compact 5-level maturity scale (horizontal light strip) --- */
.ladder-strip {
  width: auto;
  margin: 0;
  background: transparent;
  color: inherit;
  border: none;
  max-height: 33vh;
  min-height: clamp(168px, 28vh, 33vh);
}
.ladder-strip__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(14px, 2.2vh, 24px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(132px, 0.3fr) 1fr;
  gap: clamp(12px, 2vw, 28px);
  align-items: center;
  height: 100%;
  max-height: 33vh;
}
.ladder-strip__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ladder-strip__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  max-width: 16ch;
}
.ladder-strip__caption {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 26ch;
}
.ladder-strip__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-self: stretch;
  align-items: stretch;
  border-left: 1px solid var(--hairline-light);
  min-height: 0;
}
.ladder-strip__step {
  display: grid;
  grid-template-rows: clamp(48px, 10vh, 64px) auto auto;
  gap: 5px;
  align-content: start;
  min-height: 0;
  padding: 0 clamp(5px, 0.8vw, 10px);
  border-right: 1px solid var(--hairline-light);
}
.ladder-strip__meter {
  display: flex;
  align-items: flex-end;
  height: clamp(48px, 10vh, 64px);
  box-sizing: border-box;
  border-bottom: 2px solid rgba(28, 20, 16, 0.12);
}
.ladder-strip__fill {
  width: 100%;
  background: var(--clay);
  border-radius: 2px 2px 0 0;
  flex-shrink: 0;
}
.ladder-strip__step[data-level="1"] .ladder-strip__fill { height: 20%; }
.ladder-strip__step[data-level="2"] .ladder-strip__fill { height: 40%; }
.ladder-strip__step[data-level="3"] .ladder-strip__fill { height: 60%; }
.ladder-strip__step[data-level="4"] .ladder-strip__fill { height: 80%; }
.ladder-strip__step[data-level="5"] .ladder-strip__fill { height: 100%; }
.ladder-strip__step.is-peak .ladder-strip__fill {
  background: var(--terracotta);
}
.ladder-strip__num {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.ladder-strip__step.is-peak .ladder-strip__num { color: var(--terracotta); }
.ladder-strip__label {
  font-family: var(--font-body);
  font-size: clamp(9px, 0.85vw, 11px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ladder-strip__step.is-peak .ladder-strip__label {
  color: var(--ink);
  font-weight: 600;
}

/* --- agent swap examples: full-width light strip, 4 hairline columns --- */
.ai-swap-strip {
  width: auto;
  margin: 0;
  background: transparent;
  color: inherit;
  border: none;
}
.ai-swap-strip__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(18px, 2.8vh, 30px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(148px, 0.24fr) 1fr;
  gap: clamp(14px, 2.2vw, 28px);
  align-items: start;
}
.ai-swap-strip__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}
.ai-swap-strip__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  max-width: 14ch;
}
.ai-swap-strip__caption {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 24ch;
}
.ai-swap-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline-light);
  border-left: 1px solid var(--hairline-light);
}
.ai-swap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 100%;
  padding: clamp(12px, 1.4vw, 16px) clamp(10px, 1.1vw, 14px) clamp(12px, 1.4vw, 14px);
  border-right: 1px solid var(--hairline-light);
  border-bottom: 1px solid var(--hairline-light);
  background: var(--cream-bg-2);
}
.ai-swap:nth-child(even) { background: rgba(200, 85, 43, 0.03); }
.ai-swap__stamp {
  position: absolute;
  top: 7px;
  right: 8px;
  z-index: 1;
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--terracotta);
  opacity: 0.72;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(5deg);
  transform-origin: top right;
}
.ai-swap--2 .ai-swap__stamp { transform: rotate(-4deg); top: 10px; }
.ai-swap--3 .ai-swap__stamp { transform: rotate(3deg); }
.ai-swap--4 .ai-swap__stamp { transform: rotate(-6deg); top: 11px; right: 10px; }
.ai-swap__top {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-right: 36px;
}
.ai-swap__num {
  font-size: 10px;
  color: var(--clay);
  letter-spacing: 0.06em;
}
.ai-swap__area {
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.ai-swap__before {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(10px, 0.82vw, 11px);
  line-height: 1.42;
  color: var(--ink-soft);
}
.ai-swap__before::before {
  content: "— ";
  opacity: 0.55;
}
.ai-swap__after {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(11px, 0.92vw, 12px);
  line-height: 1.42;
  color: var(--ink);
}
.ai-swap__after::before {
  content: "\2192 ";
  color: var(--terracotta);
  font-weight: 700;
}
.ai-swap__more {
  margin: auto 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--hairline-light);
  font-size: 9px;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* --- 3 pillars: gbrain, automation + memory, unified layer --- */
.ai-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline-dark);
  border-left: 1px solid var(--hairline-dark);
  margin-top: clamp(24px, 3vw, 40px);
}
.ai-pillar {
  position: relative;
  border-right: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
  padding: clamp(20px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-pillar__corner-icon {
  position: absolute;
  top: clamp(14px, 1.8vw, 20px);
  right: clamp(14px, 1.8vw, 20px);
  pointer-events: none;
}
.ai-pillar__corner-icon--graph {
  width: clamp(46px, 5.2vw, 58px);
  height: auto;
  color: var(--paper-soft);
  opacity: 0.62;
}
.ai-pillar__corner-icon--workflow {
  width: clamp(54px, 6.2vw, 72px);
  height: auto;
  color: var(--terracotta);
  opacity: 0.88;
}
.ai-pillar__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  letter-spacing: -0.01em;
  margin: 0;
  padding-right: clamp(42px, 5vw, 64px);
  color: var(--paper);
}
.ai-pillar__body {
  font-family: var(--font-body);
  color: var(--paper-soft);
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0;
}

/* ---------------------------------------------------- WORK - one unified compact project grid */
.cases__inner .headline { margin-top: 6px; max-width: 18ch; }
.cases__lead { margin-top: 12px; max-width: 52ch; }
/* headline + full-color still-life poster image, slight editorial tilt */
.cases__intro {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}
.cases__photo-wrap {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 340px;
  min-height: clamp(240px, 34vw, 320px);
}
.cases__photo-note {
  position: absolute;
  left: clamp(-72px, -14%, -28px);
  bottom: 22%;
  z-index: 2;
  margin: 0;
  max-width: 12ch;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--terracotta);
  transform: rotate(-5deg);
}
.cases__photo-arrow {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.65s var(--ease-out);
}
.cases__photo-wrap.is-arrow-drawn .cases__photo-arrow {
  opacity: 1;
}
.cases__figure {
  position: relative;
  z-index: 0;
  margin: 0 0 6px;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  background: #fff;
  padding: clamp(8px, 1vw, 14px);
  border: 1px solid var(--hairline-light);
  box-shadow: 0 18px 50px -26px rgba(36, 27, 20, 0.5);
  transform: rotate(1.6deg);
}
.cases__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
/* tiny star legend */
.cases__legends {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 28px);
  margin-top: clamp(22px, 3vw, 34px);
}
.cases__legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.cases__legend .work-cell__stars {
  position: static;
  pointer-events: auto;
}
.cases__legend .work-cell__star {
  width: 11px;
  height: 11px;
}

/* compact 3-column flat grid: hairline-divided cells, small type */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline-light);
  border-left: 1px solid var(--hairline-light);
  margin-top: clamp(16px, 2vw, 24px);
}
.work-cell {
  position: relative;
  border-right: 1px solid var(--hairline-light);
  border-bottom: 1px solid var(--hairline-light);
  padding: clamp(15px, 1.5vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--cream-bg-2);
  transition: background-color 0.2s ease;
}
.work-cell:hover { background: var(--cream-bg); }
.work-cell--major { background: rgba(200, 85, 43, 0.04); }
.work-cell--medium { background: rgba(200, 85, 43, 0.02); }
.work-cell__top { display: flex; align-items: baseline; gap: 8px; }
.work-cell__num { font-size: 11px; color: var(--clay); }
.work-cell__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
/* three terracotta sparks marking a major project */
.work-cell__stars {
  position: absolute;
  top: clamp(10px, 1.1vw, 14px);
  right: clamp(10px, 1.1vw, 14px);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--terracotta);
  pointer-events: none;
}
.work-cell__star {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.work-cell__role {
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.work-cell__oneline { color: var(--ink-soft); font-size: 0.82rem; line-height: 1.45; }
.work-cell__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 6px; }
.work-cell__tags .tag { font-size: 11px; padding: 3px 8px; }

.credential {
  position: relative;
  overflow: hidden;
  margin-top: clamp(36px, 4vw, 60px);
  border: 1px solid var(--terracotta);
  border-left-width: 4px;
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  flex-wrap: wrap;
  background: var(--coffee-bg-2);
}
/* high-contrast b/w moment: clasped-hands photo, desaturated, behind the text */
.credential::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../assets/stock/hands-clasped-bw-01.jpg");
  background-size: cover;
  background-position: right center;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.16;
  mix-blend-mode: screen;
}
.credential > * { position: relative; z-index: 1; }
.credential__badge {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  border: 1px solid var(--clay);
  padding: 7px 14px;
  white-space: nowrap;
}
.credential__text {
  margin: 0;
  font-family: var(--font-body);
  color: var(--paper);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 70ch;
}

/* ---------------------------------------------------- STACK */
.stack__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 3vw, 54px);
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--hairline-light);
  padding-top: clamp(32px, 4vw, 56px);
}
.stack__cluster { grid-column: span 4; }
.stack__cluster--emph { grid-column: span 6; }
.stack__cluster--emph .stack__cluster-title { color: var(--terracotta); }
.stack__cluster--emph .stack__cluster-title[data-rn="box"].rn-plain {
  display: inline-block;
  box-shadow: inset 0 0 0 2px var(--terracotta);
  padding: 2px 8px;
}
.stack__cluster--emph .chip { border-color: var(--terracotta); }
.stack__cluster-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
}
.stack__chips { display: flex; flex-wrap: wrap; gap: 9px; }
.stack__cert {
  margin-top: clamp(32px, 4vw, 52px);
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.stack__note {
  position: absolute;
  bottom: clamp(32px, 4vw, 56px);
  right: var(--gutter);
  margin: 0;
  max-width: min(60vw, 340px);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  text-align: right;
}
.stack__note::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--terracotta);
}
.stack__mgmt {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--hairline-light);
}
.stack__mgmt-title { margin-bottom: 16px; }
.stack__mgmt-body {
  margin: 0;
  max-width: 64ch;
  color: var(--ink-soft);
}

/* ---------------------------------------------------- ABOUT */
.about__inner { padding-bottom: clamp(88px, 12vw, 180px); }
.about__headline {
  margin-bottom: clamp(30px, 4vw, 56px);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.about__tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 320px;
}
.about__tile {
  margin: 0;
}
.about__tile--lead {
  grid-column: 1 / -1;
}
.about__tile-frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--hairline-dark);
  padding: 6px;
  background: var(--coffee-bg-2);
}
.about__tile--lead .about__tile-frame {
  aspect-ratio: 4 / 5;
}
.about__tile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about__tile-cap {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-soft);
  margin-top: 8px;
}
.about__col {
  max-width: 62ch;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about__body { color: var(--paper); font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.66; }
.about__facts { font-size: 13px; color: var(--paper-soft); letter-spacing: 0.04em; line-height: 1.8; }

/* ---------------------------------------------------- CONTACT */
.contact__inner { padding-bottom: clamp(80px, 10vw, 150px); }
.contact__headline {
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  max-width: 16ch;
}
.contact__hl-mark { color: var(--terracotta); }
.contact__subline { margin-top: clamp(20px, 3vw, 34px); color: var(--paper-soft); max-width: 50ch; }
.contact__channels {
  list-style: none;
  margin: clamp(36px, 5vw, 60px) 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline-dark);
  max-width: 760px;
}
.contact__channel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-dark);
}
.contact__ch-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--paper-soft);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.contact__ch-value {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  color: var(--paper);
  text-align: right;
  word-break: break-word;
  transition: color 0.2s ease;
}
.contact__ch-value:hover { color: var(--terracotta); }
.contact__cta { margin-top: clamp(30px, 4vw, 48px); }

/* ---------------------------------------------------- FOOTER */
.footer { position: relative; background: var(--coffee-bg); color: var(--paper); }
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__name { font-size: 13px; color: var(--paper-soft); letter-spacing: 0.06em; }
.footer__back { font-size: 13px; color: var(--paper); letter-spacing: 0.06em; }
.footer__back:hover { color: var(--terracotta); }

/* ---------------------------------------------------- GRAIN OVERLAY */
#grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
/* grained.js fills this absolute inner; absolute keeps grained from clobbering the fixed wrapper */
#grain-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------------------------------------------------- MOTION: reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }
/* gentle stagger inside grids */
.js .proof__item:nth-child(2).is-in,
.js .ai-swap:nth-child(2).is-in,
.js .work-cell:nth-child(2).is-in { transition-delay: 0.05s; }
.js .work-cell:nth-child(3).is-in { transition-delay: 0.1s; }

/* ---------------------------------------------------- MOTION: Splitting headline */
.js [data-splitting] .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.32em);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: calc(var(--char-index, 0) * 18ms);
}
.js [data-splitting].is-revealed .char { opacity: 1; transform: none; }
[data-splitting] .whitespace { white-space: pre; }

/* ---------------------------------------------------- REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js [data-splitting] .char { opacity: 1; transform: none; transition: none; }
  .js .hero__seq { opacity: 1; transform: none; transition: none; }
  .work-cell,
  .btn { transition: none; }
  .cases__figure { transform: none; }
  .cases__photo-wrap {
    justify-self: start;
    max-width: 280px;
    min-height: 0;
  }
  .cases__photo-note {
    position: static;
    transform: none;
    margin-bottom: 10px;
    max-width: none;
  }
  .cases__photo-arrow { display: none; }
}

/* ---------------------------------------------------- RESPONSIVE */
@media (max-width: 1024px) {
  .proof__band { grid-template-columns: 1fr 1fr; }
  .proof__inner {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: 0;
    gap: clamp(12px, 3vw, 20px);
  }
  .proof__lead { max-width: none; }
  .proof__item { border-bottom: 1px solid var(--hairline-light); }
  .proof__item:nth-child(2n) { border-right: none; }
  .cases__grid { grid-template-columns: repeat(2, 1fr); }
  .ai-swap-strip__inner { grid-template-columns: 1fr; }
  .ai-swap-strip__grid { grid-template-columns: 1fr 1fr; }
  .ai-pillars__grid { grid-template-columns: 1fr; }
  .stack__cluster,
  .stack__cluster--emph { grid-column: span 6; }
  .approach__intro { grid-template-columns: 1fr; }
  .approach__figure {
    width: 100%;
    margin-right: 0;
    transform: none;
    justify-self: stretch;
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav .lang { display: none; }
  .nav__burger { display: flex; }
  .nav__right { gap: 0; }

  .hero__inner { display: block; }
  .hero__headline,
  .hero__subtext { width: 100%; }
  .hero__subtext {
    min-height: calc(2 * 1.6 * clamp(1rem, 1.5vw, 1.18rem));
  }
  .hero__marker { display: none; }

  .proof__band { grid-template-columns: 1fr; }
  .proof__inner {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: 0;
  }
  .proof__item,
  .proof__item:nth-child(2n) { border-right: none; }

  .ladder-strip {
    max-height: none;
    min-height: 0;
  }
  .ladder-strip__inner {
    grid-template-columns: 1fr;
    max-height: none;
    padding-block: clamp(16px, 3vh, 22px);
  }
  .ladder-strip__steps {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    -webkit-overflow-scrolling: touch;
  }
  .ai-swap-strip__grid { grid-template-columns: 1fr; }

  .cases__grid { grid-template-columns: 1fr; }
  .work-cell { border-right: none; }

  .stack__cluster,
  .stack__cluster--emph { grid-column: span 12; }

  .stack__note {
    position: static;
    max-width: none;
    margin-top: clamp(28px, 6vw, 44px);
    text-align: left;
  }

  .about__grid,
  .cases__intro { grid-template-columns: 1fr; }
  .cases__photo-wrap {
    justify-self: start;
    width: 100%;
    max-width: min(100%, 280px);
    min-height: 0;
  }
  .cases__photo-note {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 0 0 10px;
    max-width: none;
  }
  .cases__photo-arrow { display: none; }
  .cases__figure { max-width: 100%; transform: none; }
  .about__tiles { max-width: min(100%, 360px); margin-inline: auto; }
  .about__col { order: 1; }
  .about__tiles { order: 2; }

  .section-index { font-size: clamp(4rem, 22vw, 8rem); top: clamp(28px, 8vw, 60px); }

  .contact__channel { flex-direction: column; align-items: flex-start; gap: 6px; }
  .contact__ch-value { text-align: left; }
}

/* ====================================================================
   HAND-DRAWN VISUAL-KIT ILLUSTRATIONS
   One base class + size modifiers. Color is driven by `color` on the
   container so the inlined SVG (stroke="currentColor") follows the
   section: paper on dark sections, ink on light ones. Terracotta/clay
   accents are baked into the source assets.
   ==================================================================== */
.kit-illu {
  display: block;
  height: auto;
  pointer-events: none;
}
.kit-illu svg {
  display: block;
  width: 100%;
  height: auto;
}
.kit-illu--sm { width: 23px; }
.kit-illu--md { width: 76px; }
.kit-illu--hero { width: clamp(120px, 12vw, 150px); }
.kit-illu--divider { width: 100%; }
.kit-illu--divider svg { height: 26px; }

/* 1. Hero - coffee cup, paper, top-right corner of the hero inner. */
.hero__inner { position: relative; }
.hero__illu {
  position: absolute;
  top: calc(var(--nav-h) + clamp(8px, 3vh, 40px));
  right: var(--gutter);
  color: var(--paper);
  opacity: 0.9;
  z-index: 1;
}

/* 2. Approach pillars head - laptop, paper-soft. */
.ai-block__head { position: relative; }
.ai-block__illu {
  color: var(--paper-soft);
  opacity: 0.7;
  margin-bottom: 14px;
}

/* 3. Approach light panel (examples head) - node fan, ink. */
.ai-swap-strip__head { position: relative; }
.ai-swap-strip__illu {
  width: 70px;
  color: var(--ink);
  opacity: 0.5;
  margin-bottom: 10px;
}

/* 4. Stack note - terminal, ink, small leading icon. */
.stack__note { display: inline-flex; align-items: center; gap: 9px; }
.stack__note-icon {
  width: 23px;
  flex: 0 0 auto;
  color: var(--ink);
}

/* 5. Stack DevOps/infra cluster title - gear, ink-soft. */
.stack__cluster-title { position: relative; }
.stack__cluster-icon {
  width: 22px;
  display: inline-block;
  vertical-align: -0.32em;
  margin-right: 9px;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* 6. Cases intro - storefront, ink. */
.cases__intro-illu {
  color: var(--ink);
  width: 88px;
  margin-bottom: 18px;
}

/* 7. About headline - mountain flag, paper. */
.about__headline-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
}
.about__headline-row .about__headline { margin: 0; }
.about__headline-illu {
  width: 80px;
  flex: 0 0 auto;
  color: var(--paper);
}

/* 8. About tiles - eucalyptus, paper-soft, quiet decor. */
.about__tiles { position: relative; }
.about__tiles-plant {
  position: absolute;
  top: -40px;
  right: -8px;
  width: clamp(90px, 8vw, 110px);
  color: var(--paper-soft);
  opacity: 0.55;
  z-index: 0;
}

/* 9. Stack -> About seam - wave divider, muted terracotta. */
.stack__divider {
  margin-top: clamp(36px, 6vh, 64px);
  color: var(--terracotta);
  opacity: 0.3;
}

/* 10. Contact headline - chat bubbles, paper. */
.contact__illu {
  width: 88px;
  color: var(--paper);
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .hero__illu { width: 96px; top: calc(var(--nav-h) + 6px); opacity: 0.8; }
  .about__tiles-plant { width: 72px; top: -28px; }
  .about__headline-illu { width: 60px; }
}
