/* ---------------------------------------------------------
   KB Consulting — restrained, warm, editorial-minimal
--------------------------------------------------------- */

:root {
  --bone: #F1ECE1;
  --paper: #F8F4EC;
  --concrete: #EBEBE7;
  --ink: #1A1712;
  --ink-soft: #5B5445;
  --ink-faint: #6B6355;
  --accent: #9C5A28;
  --accent-soft: #9C5A2814;
  --accent-bright: #CB7534;
  --line: rgba(26, 23, 18, 0.12);
  --line-strong: rgba(26, 23, 18, 0.22);
  --scrim-dark: rgba(10, 8, 6, 0.72);

  --font: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-accent: "Fraunces", Georgia, "Times New Roman", serif;

  --container: 1180px;
  --gutter: clamp(24px, 6vw, 96px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.accent-word {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.005em;
}

/* ---------- shutter-word: per-character kinetic reveal for headline accent words ---------- */

.shutter-char {
  position: relative;
  display: inline-block;
}

.shutter-main {
  display: inline-block;
  opacity: 0;
}

.shutter-band {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.shutter-band-top { color: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); }
.shutter-band-mid { color: var(--ink); clip-path: polygon(0 35%, 100% 35%, 100% 65%, 0 65%); }
.shutter-band-bottom { color: var(--accent); clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); }

@keyframes shutterMain {
  from { opacity: 0; filter: blur(6px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes shutterBandLR {
  0% { transform: translateX(-100%); opacity: 0; }
  45%, 55% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

@keyframes shutterBandRL {
  0% { transform: translateX(100%); opacity: 0; }
  45%, 55% { opacity: 1; }
  100% { transform: translateX(-100%); opacity: 0; }
}

.shutter-ready .shutter-main {
  animation: shutterMain 0.6s var(--ease) forwards;
  animation-delay: calc(var(--shutter-i, 0) * 45ms + 0.15s);
}

.shutter-ready .shutter-band-top {
  animation: shutterBandLR 0.55s ease-in-out forwards;
  animation-delay: calc(var(--shutter-i, 0) * 45ms);
}

.shutter-ready .shutter-band-mid {
  animation: shutterBandRL 0.55s ease-in-out forwards;
  animation-delay: calc(var(--shutter-i, 0) * 45ms + 0.06s);
}

.shutter-ready .shutter-band-bottom {
  animation: shutterBandLR 0.55s ease-in-out forwards;
  animation-delay: calc(var(--shutter-i, 0) * 45ms + 0.12s);
}

.wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ---------- reveal-on-scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- headline / eyebrow: clip-path wipe (overrides the generic fade above) ----------
   The clip-path lives on an inner .clip-inner span, never on the [data-reveal] element
   itself -- some engines factor an element's own clip-path into its IntersectionObserver
   ratio, which would zero out the observed area and permanently block detection. ---------- */

.eyebrow[data-reveal],
.section-headline[data-reveal] {
  opacity: 1;
  transform: none;
}

.eyebrow[data-reveal] .clip-inner,
.section-headline[data-reveal] .clip-inner {
  display: block;
  clip-path: inset(-10% 100% -25% 0);
  transition: clip-path 0.9s var(--ease);
}

.eyebrow[data-reveal] .clip-inner {
  transition-duration: 0.55s;
}

.eyebrow[data-reveal].is-visible .clip-inner,
.section-headline[data-reveal].is-visible .clip-inner {
  clip-path: inset(-10% 0 -25% 0);
}

/* ---------- section hairline draw-in ---------- */

[data-border-reveal] {
  position: relative;
}

[data-border-reveal]::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 1.1s var(--ease);
  pointer-events: none;
}

[data-border-reveal].is-visible::before {
  width: 100%;
}

/* ---------- hero load choreography (distinct from scroll-reveal: fires once on load) ---------- */

[data-hero-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.is-loaded [data-hero-reveal="1"] { transition-delay: 0.05s; }
.is-loaded [data-hero-reveal="2"] { transition-delay: 0.2s; }
.is-loaded [data-hero-reveal="3"] { transition-delay: 0.38s; }
.is-loaded [data-hero-reveal="4"] { transition-delay: 0.58s; }
.is-loaded [data-hero-reveal="5"] { transition-delay: 0.74s; }

.is-loaded [data-hero-reveal] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- cursor glow (desktop only, whisper-level) ---------- */

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  margin-top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 53, 36, 0.07) 0%, rgba(122, 53, 36, 0) 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}

.cursor-glow.is-active { opacity: 1; }

@media (hover: none) {
  .cursor-glow { display: none; }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  background: none;
  mix-blend-mode: difference;
  transition: transform 0.5s var(--ease), opacity 0.4s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.site-header .wordmark {
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  font-size: 14px;
}

.site-nav a {
  position: relative;
  color: #fff;
  opacity: 0.72;
  transition: opacity 0.3s ease;
}

.site-nav a:hover { opacity: 1; }

.nav-cta {
  color: #fff !important;
  opacity: 1;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

.nav-cta:hover {
  border-color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.35s var(--ease), opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle-bar:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 26px;
  padding: 0 32px;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-panel a {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(34px, 9vw, 46px);
  color: var(--paper);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.nav-panel.is-open a:nth-child(1) { transition-delay: 0.08s; }
.nav-panel.is-open a:nth-child(2) { transition-delay: 0.15s; }
.nav-panel.is-open a:nth-child(3) { transition-delay: 0.22s; }

.nav-panel.is-open a {
  opacity: 1;
  transform: translateY(0);
}

.site-header.is-nav-open {
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ---------- shared layout ---------- */

main > section {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 160px) var(--gutter);
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

.section-headline {
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
}

.section-headline .accent-word {
  font-size: 1em;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(90px, 14vw, 140px) !important;
  padding-bottom: clamp(48px, 8vw, 80px) !important;
}

.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.6) 0%, rgba(10, 8, 6, 0.68) 55%, rgba(10, 8, 6, 0.84) 100%);
  pointer-events: none;
}

.has-bg .eyebrow {
  color: rgba(248, 244, 236, 0.92);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}

.hero.has-bg .hero-body,
.hero.has-bg .hero-scroll {
  position: relative;
  z-index: 1;
}

.hero.has-bg .hero-headline { color: var(--paper); }
.hero.has-bg .hero-sub { color: rgba(248, 244, 236, 0.82); }
.hero.has-bg .hero-scroll { color: rgba(248, 244, 236, 0.82); }
.hero.has-bg .hero-scroll::after { background: rgba(248, 244, 236, 0.4); }
.hero.has-bg .hero-scroll:hover::after { background: var(--accent); }

.hero.has-bg .btn-primary {
  background: var(--accent);
  color: var(--paper);
}

.hero.has-bg .btn-dot {
  background: var(--paper);
}

.hero.has-bg .btn-label-hover {
  color: var(--ink);
}

/* ---------- section-banner: full-bleed photo band behind a section's eyebrow + headline ---------- */

.section-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: clamp(64px, 11vw, 120px) var(--gutter) clamp(48px, 8vw, 88px);
  margin-bottom: clamp(48px, 7vw, 80px);
}

.section-banner .eyebrow,
.section-banner .section-headline {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.section-banner .section-headline { color: var(--paper); }

.work-head.section-banner {
  padding: clamp(64px, 11vw, 120px) var(--gutter) clamp(48px, 8vw, 88px);
}

.hero-body {
  max-width: 100%;
}

.hero-headline {
  font-size: clamp(52px, 10.5vw, 140px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  max-width: 20ch;
}

.hero-headline .accent-word {
  font-size: 0.86em;
}

.hero-scroll {
  display: none;
}

@media (min-width: 900px) {
  .hero-scroll {
    display: flex;
    align-items: center;
    gap: 14px;
    position: absolute;
    right: var(--gutter);
    bottom: clamp(48px, 8vw, 80px);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--ink-soft);
  }

  .hero-scroll span {
    writing-mode: vertical-rl;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.3s ease;
  }

  .hero-scroll::after {
    content: "";
    display: block;
    width: 1px;
    height: 46px;
    background: var(--line-strong);
    transition: background 0.3s ease, height 0.3s ease;
  }

  .hero-scroll:hover span { color: var(--accent); }
  .hero-scroll:hover::after { background: var(--accent); height: 58px; }
}

.hero-sub {
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 44px;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 16px 34px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease);
}

.btn-dot {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%) scale(1);
  transition: transform 0.55s var(--ease), width 0.55s var(--ease), height 0.55s var(--ease), left 0.55s var(--ease), border-radius 0.4s ease;
  z-index: 0;
}

.btn:hover .btn-dot {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: translateY(0);
  border-radius: 0;
}

.btn-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.4s var(--ease), opacity 0.35s ease;
}

.btn-label-default {
  transform: translateX(0);
  opacity: 1;
}

.btn-label-hover {
  position: absolute;
  inset: 0;
  justify-content: center;
  transform: translateX(18px);
  opacity: 0;
}

.btn:hover .btn-label-default {
  transform: translateX(-18px);
  opacity: 0;
}

.btn:hover .btn-label-hover {
  transform: translateX(0);
  opacity: 1;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary .btn-label-hover {
  color: var(--paper);
}

.magnetic {
  will-change: transform;
}

/* ---------- trust strip ---------- */

.trust-strip {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) var(--gutter);
  text-align: center;
}

.trust-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 28px;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 64px);
}

.trust-logo {
  height: 42px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity 0.35s ease;
}

.trust-logo:hover {
  opacity: 0.85;
}

@media (max-width: 720px) {
  .trust-logos {
    gap: 28px;
  }

  .trust-logo {
    height: 20px;
  }
}

/* ---------- approach / lenses ---------- */

.approach {
  border-top: 1px solid var(--line);
}

.lens-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 40px;
}

.lens-panel {
  background: var(--paper);
  padding: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 48px);
}

.lens-panel.has-photo {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--line);
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) brightness(0.96);
  transition: filter 0.65s var(--ease), transform 0.9s var(--ease);
}

.lens-panel.has-photo:hover .about-photo img,
.lens-panel.has-photo:focus-within .about-photo img {
  filter: none;
  transform: scale(1.015);
}

.lens-panel-body {
  padding: clamp(28px, 3.6vw, 44px) clamp(28px, 4vw, 48px) clamp(32px, 4vw, 56px);
}

.about-name {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 30px);
  color: var(--accent);
  margin-bottom: 14px;
}

.lens-index {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.lens-title {
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 500;
  margin: 0 0 16px;
}

.lens-copy {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  max-width: 42ch;
}

.lens-summary {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.005em;
  max-width: 34ch;
}

/* ---------- engagement ---------- */

.engagement {
  border-top: 1px solid var(--line);
}

.engagement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.engagement-copy {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 28px;
}

.engagement-kicker {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 28ch;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.scrub {
  color: rgba(26, 23, 18, 0.32);
  transition: color 0.5s ease;
}

.scrub.is-lit {
  color: var(--ink-soft);
}

.no-js .scrub,
.reduced-motion .scrub {
  color: var(--ink-soft);
}

.engagement-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: clamp(28px, 5vw, 40px);
}

.stack-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
}

.stack-card-3 {
  background: var(--bone);
}

.stack-label {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  color: var(--ink);
}

.stack-card-3 .stack-label {
  color: var(--accent);
}

.stack-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .engagement-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .engagement-stack {
    display: block;
    position: relative;
    width: 260px;
    height: 300px;
    justify-self: center;
    perspective: 1000px;
    margin-top: 0;
  }

  .stack-card {
    position: absolute;
    inset: 0;
    justify-content: flex-end;
    transition: transform 0.35s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
  }

  .stack-card-1 { transform: translate(0px, 0px) rotate(-3deg) scale(0.93); z-index: 1; }
  .stack-card-2 { transform: translate(10px, 12px) rotate(1.5deg) scale(0.965); z-index: 2; }
  .stack-card-3 { transform: translate(20px, 24px) rotate(-1deg) scale(1); z-index: 3; }
}

/* ---------- process ---------- */

.process {
  border-top: 1px solid var(--line);
}

.process-list {
  border-top: 1px solid var(--line);
}

.process-row {
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease;
}

.process-row-featured {
  background: var(--accent-soft);
  margin: 0 clamp(-16px, -2.4vw, -24px);
  border-bottom-color: var(--accent-soft);
}

.process-row-featured .process-index {
  color: var(--accent);
}

.process-row-featured .process-title {
  color: var(--accent);
}

.process-row-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(22px, 3.4vw, 32px) 0;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.process-row-featured .process-row-trigger {
  padding-left: clamp(16px, 2.4vw, 24px);
  padding-right: clamp(16px, 2.4vw, 24px);
}

.process-row-trigger:hover {
  background: color-mix(in srgb, var(--paper) 70%, transparent);
}

.process-index {
  flex: 0 0 auto;
  width: 42px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  transition: color 0.4s ease;
}

.process-row-trigger:hover .process-index {
  color: var(--accent);
}

.process-body {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: clamp(16px, 3vw, 40px);
  row-gap: 4px;
}

.process-title {
  flex: 0 0 auto;
  width: clamp(140px, 18vw, 220px);
  font-size: clamp(18px, 1.9vw, 21px);
  font-weight: 600;
  margin: 0;
}

.process-copy {
  flex: 1 1 260px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.process-arrow {
  flex: 0 0 auto;
  font-size: 16px;
  color: var(--ink-soft);
  transition: transform 0.4s var(--ease), color 0.4s ease;
}

.process-row-trigger:hover .process-arrow {
  color: var(--accent);
}

.process-row.is-open .process-arrow {
  color: var(--accent);
  transform: rotate(90deg);
}

.process-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-left: calc(42px + clamp(20px, 4vw, 40px));
  transition: max-height 0.45s var(--ease), opacity 0.35s ease;
}

.process-row-featured .process-detail {
  padding-left: calc(16px + 42px + clamp(20px, 4vw, 40px));
  padding-right: clamp(16px, 2.4vw, 24px);
}

.process-row.is-open .process-detail {
  opacity: 1;
}

.process-detail p {
  max-width: 640px;
  margin: 0 0 clamp(18px, 3vw, 28px);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .process-row-trigger {
    align-items: flex-start;
  }

  .process-body {
    flex-direction: column;
    row-gap: 8px;
  }

  .process-title {
    width: auto;
  }

  .process-copy {
    flex-basis: auto;
  }

  .process-detail {
    padding-left: 0;
  }

  .process-row-featured .process-detail {
    padding-left: 0;
  }
}

/* ---------- work / gallery ---------- */

.work {
  border-top: 1px solid var(--line);
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.work-head {
  padding: 0 var(--gutter);
}

.gallery-wrap {
  margin-top: 12px;
}

.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 8px var(--gutter) 28px;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
}

.gallery.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.gallery::-webkit-scrollbar { display: none; }

.case-card {
  flex: 0 0 auto;
  width: min(78vw, 360px);
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 22px 26px;
}

.case-index {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.case-visual {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 20px;
  border: 1px dashed var(--line-strong);
}

.case-visual-a { background: linear-gradient(155deg, #E9DECC 0%, #D8C6AC 100%); }
.case-visual-b { background: linear-gradient(155deg, var(--paper) 0%, #E3D6C2 100%); }
.case-visual-c { background: linear-gradient(155deg, #EFE7D7 0%, #C9B79C 100%); }
.case-visual-d { background: linear-gradient(155deg, #E4D8C4 0%, #F2ECDF 100%); }

.case-scrim { display: none; }

.case-logo {
  display: block;
  height: 20px;
  width: auto;
  margin: 0 0 14px;
  opacity: 0.85;
}

.case-quote {
  font-size: 16px;
  line-height: 1.55;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 12px;
}

.case-attr {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
}

/* ---------- desktop: expanding panel gallery (replaces drag-scroll above 900px) ---------- */

@media (min-width: 900px) {
  .gallery {
    overflow: visible;
    cursor: default;
    padding: 8px var(--gutter) 8px;
  }

  .case-card {
    position: relative;
    overflow: hidden;
    width: auto;
    height: 460px;
    flex: 1 1 0%;
    padding: 0;
    border-color: var(--line);
    background: var(--paper);
    cursor: pointer;
    transition: flex 0.65s var(--ease);
    outline: none;
  }

  .case-card.is-active {
    flex: 6 1 0%;
  }

  .case-card:focus-visible {
    box-shadow: inset 0 0 0 2px var(--accent);
  }

  .case-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border: none;
    filter: grayscale(0.15) brightness(0.94);
    transform: scale(1.02);
    transition: filter 0.65s var(--ease), transform 0.9s var(--ease);
  }

  .case-card.is-active .case-visual {
    filter: none;
    transform: scale(1);
  }

  .case-index {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    margin: 0;
    padding: 5px 10px;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    color: var(--ink);
  }

  .case-scrim {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(26, 23, 18, 0.82), rgba(26, 23, 18, 0));
    pointer-events: none;
  }

  .case-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 24px 26px 28px;
    white-space: nowrap;
  }

  .case-card:not(.is-active) .case-text {
    overflow: hidden;
  }

  .case-logo,
  .case-quote,
  .case-attr {
    white-space: normal;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }

  .case-card.is-active .case-logo { opacity: 0.95; transform: translateY(0); transition-delay: 0.08s; }
  .case-card.is-active .case-quote { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }
  .case-card.is-active .case-attr { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }

  .case-logo {
    height: 24px;
    filter: brightness(0) invert(1);
  }
  .case-quote { color: var(--paper); }
  .case-attr { color: rgba(248, 244, 236, 0.6); }
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
}

.gallery-progress {
  flex: 1;
  height: 1px;
  background: var(--line);
  margin-right: 28px;
  position: relative;
}

.gallery-progress-bar {
  position: absolute;
  top: -1px;
  left: 0;
  height: 3px;
  width: 25%;
  background: var(--accent);
  transition: width 0.3s var(--ease), transform 0.3s var(--ease);
}

.gallery-arrows {
  display: flex;
  gap: 10px;
}

.gallery-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.gallery-arrow:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- stat card ---------- */

.stat-card {
  margin-top: clamp(56px, 9vw, 96px);
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  background: var(--ink);
  color: var(--paper);
}

.growth-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 16px;
}

.stat-kicker {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--paper);
  max-width: 34ch;
  margin: 0 0 clamp(32px, 5vw, 56px);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.stat-cell {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  border-top: 1px solid rgba(248, 244, 236, 0.2);
}

.stat-number {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.stat-caption {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(248, 244, 236, 0.6);
}

.industries-line {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid rgba(248, 244, 236, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.industries-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.industries-list {
  font-size: 14px;
  color: rgba(248, 244, 236, 0.6);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
}

/* ---------- inquire ---------- */

.inquire {
  border-top: 1px solid var(--line);
}

.inquire-sub {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 0 48px;
}

.form-frame {
  position: relative;
  max-width: 560px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  overflow: hidden;
}

.form-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 72%);
  opacity: 0;
  filter: blur(28px);
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
  pointer-events: none;
  will-change: transform, opacity;
}

.form-frame.is-glowing .form-glow {
  opacity: 0.18;
}

.inquiry-form {
  position: relative;
  z-index: 1;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.inquiry-form.is-submitting {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.inquiry-form[hidden] {
  display: none;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.form-row input,
.form-row textarea {
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 2px;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.inquiry-form .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.inquiry-confirm {
  max-width: 560px;
  padding: 28px 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.inquiry-confirm.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.confirm-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.confirm-message {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  max-width: 32ch;
  margin: 0;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter) 48px;
}

.footer-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.footer-location {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-faint);
}

.footer-bottom a {
  color: var(--ink-soft);
  transition: color 0.3s ease;
}

.footer-bottom a:hover { color: var(--accent); }

/* ---------- mobile: designed, not shrunk ---------- */

@media (max-width: 720px) {
  .break-desktop {
    display: none;
  }

  .site-header {
    padding: 18px 20px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .site-nav {
    gap: 12px;
  }

  .nav-cta {
    padding: 8px 14px;
  }

  .nav-toggle {
    display: flex;
  }

  main > section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .work-head { padding: 0 20px; }
  .gallery { padding: 8px 20px 24px; }
  .gallery-controls { padding: 0 20px; }

  .hero {
    padding-top: 132px !important;
    padding-bottom: 72px !important;
  }

  .hero-headline {
    font-size: 16.5vw;
    line-height: 0.96;
    max-width: 100%;
  }

  .hero-sub {
    font-size: 16px;
    max-width: 100%;
  }

  .btn {
    width: 100%;
  }

  .lens-grid {
    grid-template-columns: 1fr;
  }

  .lens-copy { max-width: 100%; }

  .case-card {
    width: 82vw;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
