/* Naeza — design tokens & global styles */

:root {
  /* Palette */
  --bg:           #F5F2EB;
  --bg-card:      #FFFFFF;
  --bg-dark:      #1A1A1A;
  --ink:          #1A1A1A;
  --ink-muted:    #6B645C;
  --ink-faint:    #9B948A;
  --border:       #E5DFD3;
  --border-soft:  #EFEAE0;
  --accent:       #1A1A1A;
  --accent-ink:   #FFFFFF;

  /* Type */
  --font-sans: "Geist", "GeistFallback", "Inter", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "Geist Mono", "GeistMonoFallback", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Radii */
  --r-card: 14px;
  --r-pill: 999px;

  /* Layout */
  --gutter: clamp(20px, 4vw, 56px);
  --col-max: 1440px;

  /* Easings */
  --e-out: cubic-bezier(.22,.61,.36,1);
  --e-soft: cubic-bezier(.4,.0,.2,1);
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.4;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }

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

/* ── Layout primitives ─────────────────────────────────────── */
.shell { width: 100%; padding-inline: var(--gutter); margin: 0 auto; max-width: var(--col-max); }
.row { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
@media (max-width: 480px) {
  :root { --gutter: 18px; }
}

/* ── Top bar ───────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  padding-inline: var(--gutter);
  max-width: var(--col-max);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 18px; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display:inline-block; }
.nav { display: flex; gap: 28px; font-size: 13.5px; color: var(--ink-muted); align-items: center; }
.nav a { transition: color .2s var(--e-out); }
.nav a:hover { color: var(--ink); }
.nav .meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--ink-faint); text-transform: uppercase; }
.nav-back {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-muted);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s var(--e-out), color .2s var(--e-out), border-color .2s var(--e-out);
  flex-shrink: 0;
}
.nav-back svg { transform: rotate(180deg); }
.nav-back:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nav-cta {
  display: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  padding: 10px 14px; border-radius: var(--r-pill);
  align-items: center; gap: 8px;
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav-cta { display: inline-flex; }
  .topbar-inner { height: 56px; }
}

/* Section frame */
section { position: relative; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; align-items: center; gap: 12px;
}
.section-tag::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  padding: clamp(28px, 6vw, 80px) 0 clamp(40px, 8vw, 96px);
  border-bottom: 1px solid var(--border-soft);
}
.hero-grid {
  display: grid;
  grid-template-columns: 56px 1fr 280px;
  gap: clamp(16px, 3vw, 40px) clamp(20px, 4vw, 56px);
  align-items: end;
}
.hero-rail {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: start;
  padding-top: 12px;
  white-space: nowrap;
}
.hero-headline {
  font-size: clamp(56px, 9.2vw, 152px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 0;
}
.hero-headline .em { font-style: italic; font-weight: 400; }
.hero-headline .accent { color: var(--accent); }
.hero-side {
  display: flex; flex-direction: column; gap: 24px;
  padding-bottom: 8px;
}
.hero-side-block { display: flex; flex-direction: column; gap: 8px; }
.hero-tabulator {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.hero-side-text { font-size: 14.5px; color: var(--ink-muted); max-width: 32ch; line-height: 1.5; }
.hero-cta-row {
  margin-top: clamp(28px, 5vw, 56px);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-left: calc(56px + clamp(20px, 4vw, 56px));
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 28px 1fr; }
  .hero-side { grid-column: 2; }
  .hero-cta-row { padding-left: calc(28px + clamp(20px, 4vw, 56px)); }
}
@media (max-width: 640px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-grid > * { grid-column: auto !important; }
  .hero-rail { display: none; }
  .hero-cta-row { padding-left: 0; }
}

/* CTA Button */
.btn {
  appearance: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 12px;
  white-space: nowrap;
  transition: transform .18s var(--e-out), background .2s var(--e-out), color .2s var(--e-out);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn .arrow {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s var(--e-out);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  appearance: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
  transition: background .2s var(--e-out), border-color .2s var(--e-out);
}
.btn-ghost:hover { background: var(--bg-card); border-color: var(--ink); }

/* Hero scroll marquee */
.hero-marquee {
  margin-top: clamp(36px, 6vw, 72px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 16px 0;
  display: flex;
  gap: 56px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero-marquee-track {
  display: flex; gap: 56px;
  animation: marquee 38s linear infinite;
  flex-shrink: 0;
}
.hero-marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.hero-marquee-track .sep { color: var(--ink-faint); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ── Sections frame ────────────────────────────────────────── */
.section {
  padding-block: clamp(64px, 9vw, 132px);
  border-bottom: 1px solid var(--border-soft);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 64px);
  align-items: end;
}
.section-eyebrow { display: flex; flex-direction: column; gap: 18px; }
.section-title {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0;
  max-width: 14ch;
}
.section-title .em { font-style: italic; font-weight: 400; }
.section-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-muted);
  max-width: 46ch;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Services bento ────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 12px;
}
.bento .b {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .35s var(--e-out), border-color .25s var(--e-out), box-shadow .35s var(--e-out);
  cursor: pointer;
}
.b-link {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.bento .b::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in oklch, var(--accent) 8%, transparent), transparent 60%);
  opacity: 0; transition: opacity .35s var(--e-out);
  pointer-events: none;
}
.bento .b:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 24px 48px -28px color-mix(in oklch, var(--ink) 30%, transparent);
}
.bento .b:hover::before { opacity: 1; }

.bento .b-lg { grid-column: span 4; grid-row: span 2; }
.bento .b-md { grid-column: span 3; grid-row: span 2; }
.bento .b-sm { grid-column: span 2; grid-row: span 2; }
.bento .b-w { grid-column: span 4; grid-row: span 1; }
.bento .b-h { grid-column: span 2; grid-row: span 3; }

.b-num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-faint); text-transform: uppercase;
}
.b-title {
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 16px 0 0;
  max-width: 16ch;
}
.b-desc {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 38ch;
  margin: 14px 0 0;
}
.b-arrow {
  position: absolute;
  top: 24px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted);
  transition: transform .3s var(--e-out), background .3s var(--e-out), color .3s var(--e-out), border-color .3s var(--e-out);
}
.bento .b:hover .b-arrow {
  transform: rotate(-45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.b-glyph {
  margin-top: 18px;
  height: 64px;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-faint);
}
.b-glyph svg { width: 100%; height: 100%; max-width: 280px; }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento .b-lg { grid-column: span 4; grid-row: span 2; }
  .bento .b-md { grid-column: span 2; grid-row: span 2; }
  .bento .b-sm { grid-column: span 2; grid-row: span 2; }
  .bento .b-w { grid-column: span 4; }
  .bento .b-h { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento .b { grid-column: 1 / -1 !important; grid-row: auto !important; min-height: 220px; }
}

/* ── Sticky services ───────────────────────────────────────── */
.sticky-services {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 80px);
  align-items: start;
}
.sticky-left {
  position: sticky; top: 84px;
  align-self: start;
}
.sticky-current-num {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-faint); text-transform: uppercase;
  margin-bottom: 14px;
}
.sticky-current-title {
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.0; letter-spacing: -0.035em;
  font-weight: 500; margin: 0 0 18px;
  min-height: 1.0em;
}
.sticky-progress {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.sticky-progress .item {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: color .2s var(--e-out);
}
.sticky-progress .item:hover { color: var(--ink); }
.sticky-progress .item.active { color: var(--ink); }
.sticky-progress .item.active .dot { background: var(--accent); }
.sticky-progress .item .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border);
  align-self: center;
  transition: background .25s var(--e-out);
}
.sticky-progress .item:last-child { border-bottom: 1px solid var(--border); }

.sticky-right { display: flex; flex-direction: column; gap: clamp(48px, 8vw, 96px); }
.svc-card {
  display: flex; flex-direction: column;
  gap: 24px;
  scroll-margin-top: 84px;
}
.svc-num { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.svc-name {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1; letter-spacing: -0.025em;
  margin: 0; font-weight: 500;
}
.svc-desc { font-size: 16px; color: var(--ink-muted); line-height: 1.6; max-width: 56ch; }
.svc-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px;
  padding: 0; margin: 0; list-style: none;
}
.svc-list li {
  font-size: 14px;
  color: var(--ink);
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  display: flex; align-items: baseline; gap: 12px;
}
.svc-list li::before {
  content: "→";
  color: var(--accent);
  font-size: 12px;
}
.svc-cases {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.svc-case {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--r-card);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s var(--e-out), transform .2s var(--e-out);
}
.svc-case:hover { border-color: var(--ink); transform: translateY(-2px); }
.svc-case-cover {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.svc-case-meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.svc-case-title { font-size: 15px; line-height: 1.3; margin: 0; font-weight: 500; }

/* Mobile tab strip — hidden on desktop */
.sticky-mobile-tabs { display: none; }

@media (max-width: 900px) {
  .sticky-services {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sticky-left { display: none; }

  .sticky-mobile-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .sticky-mobile-tabs::-webkit-scrollbar { display: none; }
  .sticky-mobile-tab {
    appearance: none;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--ink-muted);
    padding: 11px 16px;
    border-radius: var(--r-pill);
    font-family: var(--font-mono);
    font-size: 11.5px; letter-spacing: 0.06em;
    text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer;
    transition: all .18s var(--e-out);
    scroll-margin: 0 var(--gutter);
  }
  .sticky-mobile-tab .n { color: var(--ink-faint); }
  .sticky-mobile-tab.active {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
  }
  .sticky-mobile-tab.active .n { color: currentColor; opacity: .6; }

  .sticky-right {
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .sticky-right::-webkit-scrollbar { display: none; }
  .svc-card {
    flex-shrink: 0;
    width: min(88vw, 440px);
    scroll-snap-align: center;
    scroll-margin-inline: var(--gutter);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 22px 22px 24px;
    gap: 16px;
  }
  .svc-name { font-size: 24px; }
  .svc-desc { font-size: 15px; }
  .svc-list { grid-template-columns: 1fr; gap: 0; }
  .svc-cases { grid-template-columns: 1fr 1fr; gap: 10px; }
  .svc-case { padding: 10px; gap: 8px; }
  .svc-case-cover { aspect-ratio: 4 / 3; }
  .svc-case-title { font-size: 13px; }
}

/* ── Cases bento masonry ───────────────────────────────────── */
.case-filters {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 28px;
  align-items: center;
}
.case-filter {
  appearance: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all .18s var(--e-out);
  display: inline-flex; align-items: center; gap: 8px;
}
.case-filter:hover { color: var(--ink); border-color: var(--ink); }
.case-filter.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.case-filter .count { color: currentColor; opacity: .55; font-variant-numeric: tabular-nums; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case-card {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform .35s var(--e-out), box-shadow .35s var(--e-out), opacity .25s var(--e-out);
  cursor: pointer;
  display: flex; flex-direction: column;
}
.case-card.hidden {
  opacity: 0; pointer-events: none;
  position: absolute; visibility: hidden;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -28px color-mix(in oklch, var(--ink) 30%, transparent);
}
.case-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.case-cover .ph-canvas { width: 100%; height: 100%; }
.case-cover-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: absolute; inset: 0;
}
.case-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  z-index: 2;
  opacity: .85;
  transition: opacity .2s var(--e-out), transform .2s var(--e-out);
  pointer-events: none;
}
.case-card:hover .case-play { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
.svc-page-list {
  margin: 0; padding: 0 0 0 20px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--ink);
}
.svc-page-list li::marker { color: var(--accent); }
.case-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #3B5BDB;
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.case-gallery-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--r-card);
  min-height: 200px;
}
.case-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
  opacity: 0; transition: opacity .35s var(--e-out);
}
.case-card:hover .case-cover::after { opacity: 1; }
.case-meta {
  padding: 18px 20px 20px;
  background: var(--bg-card);
  display: flex; flex-direction: column; gap: 8px;
}
.case-tags {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-faint);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.case-name {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.018em;
  margin: 0;
  font-weight: 500;
}
.case-line { font-size: 13.5px; color: var(--ink-muted); line-height: 1.4; }

@media (max-width: 1024px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .case-grid { grid-template-columns: 1fr; }
}

.case-cta-link {
  margin-top: 32px;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding-top: 18px;
  width: 100%;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case-cta-link:hover { color: var(--accent); }
.case-cta-link .arrow { transition: transform .25s var(--e-out); }
.case-cta-link:hover .arrow { transform: translateX(4px); }

/* ── Process ───────────────────────────────────────────────── */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.process-step {
  padding: 32px 0 32px;
  padding-right: 24px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  transition: background .35s var(--e-out);
}
.process-step:last-child { border-right: 0; }
.process-step:first-child { padding-left: 0; }
.process-step:not(:first-child) { padding-left: 24px; }
.process-step:hover { background: color-mix(in oklch, var(--accent) 5%, transparent); }
.proc-num {
  font-size: clamp(64px, 7vw, 112px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.proc-num .slash { color: var(--accent); }
.proc-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.proc-desc { font-size: 14.5px; color: var(--ink-muted); line-height: 1.55; }

@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .process-step { border-right: 0 !important; border-bottom: 1px solid var(--border); padding-left: 0 !important; padding-right: 0; }
  .process-step:last-child { border-bottom: 0; }
}

/* ── Form (dark contrast section) ──────────────────────────── */
.contact {
  background: var(--bg-dark);
  color: var(--bg);
  padding-block: clamp(72px, 10vw, 140px);
  border-bottom: 0;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 80% 0%, color-mix(in oklch, var(--accent) 22%, transparent), transparent 60%);
  pointer-events: none;
  opacity: .4;
}
.contact .section-eyebrow { color: var(--bg); }
.contact .section-tag { color: rgba(245,242,235,.55); }
.contact .section-tag::before { background: var(--bg); }
.contact .section-title { color: var(--bg); }
.contact .section-lead { color: rgba(245,242,235,.7); }

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.contact-aside {
  display: flex; flex-direction: column;
  gap: 28px;
  font-size: 14.5px;
  color: rgba(245,242,235,.7);
  line-height: 1.55;
}
.contact-aside .label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,242,235,.45);
  margin-bottom: 6px;
}
.contact-aside a {
  color: var(--bg);
  border-bottom: 1px solid rgba(245,242,235,.25);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.contact-aside a:hover { border-color: var(--bg); }

.contact-form {
  display: flex; flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.field {
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,242,235,.55);
  display: flex; justify-content: space-between;
}
.field input, .field textarea {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245,242,235,.25);
  color: var(--bg);
  font-family: inherit;
  font-size: clamp(18px, 1.6vw, 22px);
  padding: 14px 0 14px;
  outline: none;
  transition: border-color .2s var(--e-out);
  letter-spacing: -0.01em;
  resize: none;
}
.field textarea { min-height: 90px; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder { color: rgba(245,242,235,.35); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--bg); }
.field.error input, .field.error textarea { border-bottom-color: #ff6b6b; }
.field .err-msg {
  position: absolute; bottom: -18px; left: 0;
  font-family: var(--font-mono);
  font-size: 10.5px; color: #ff8a8a;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.contact-form .submit-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
  gap: 16px; flex-wrap: wrap;
}
.contact-form .btn {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.contact-form .btn:hover { background: transparent; color: var(--bg); }
.contact-disclaimer {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245,242,235,.4);
  max-width: 34ch;
}

.contact-success {
  padding: 32px;
  border: 1px solid rgba(245,242,235,.2);
  border-radius: var(--r-card);
  display: flex; flex-direction: column; gap: 14px;
  text-align: left;
  background: rgba(245,242,235,.04);
}
.contact-success .ok {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #7be39c;
  display: inline-flex; align-items: center; gap: 8px;
}
.contact-success .ok::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7be39c;
}
.contact-success h3 { margin: 0; font-size: clamp(24px, 2.5vw, 36px); font-weight: 500; letter-spacing: -0.025em; }
.contact-success p { margin: 0; color: rgba(245,242,235,.7); line-height: 1.5; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > :first-child { order: 2; }
  .contact-grid > :last-child { order: 1; }
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  color: rgba(245,242,235,.55);
  padding: 40px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 32px;
  align-items: end;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-brand {
  display: flex; flex-direction: column; gap: 4px;
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: -0.01em;
  text-transform: none;
}
.footer-brand .lg {
  font-size: clamp(60px, 12vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 500;
  margin: 0;
}
.footer-brand .lg .slash { color: var(--accent); }
.footer-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.footer-meta span, .footer-meta a { overflow-wrap: anywhere; }
.footer-meta a { color: rgba(245,242,235,.55); }
.footer-meta a:hover { color: var(--bg); }
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Reveal animation ──────────────────────────────────────── */
/* Defaults to fully visible so content is never hidden if JS or animations
   are paused (e.g. in some preview environments where transitions don't tick).
   On real browsers, .reveal starts at opacity 0 and JS adds .in to play it. */
.reveal { opacity: 1; transform: none; }
.reveal[data-reveal-init="1"]:not(.in) {
  opacity: 0;
  transform: translateY(28px);
}
.reveal[data-reveal-init="1"].in {
  opacity: 1;
  transform: translateY(0);
  transition-property: opacity, transform;
  transition-duration: .9s, .9s;
  transition-timing-function: cubic-bezier(.22,.61,.36,1), cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--rd, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-marquee-track { animation: none; }
}

/* ── Placeholder tiles ─────────────────────────────────────── */
.ph {
  width: 100%; height: 100%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ph .ph-label {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  z-index: 2;
  display: flex; align-items: center; gap: 8px;
}
.ph .ph-label::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor;
}
.ph .ph-corner {
  position: absolute;
  bottom: 14px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.06em;
  color: rgba(255,255,255,.6);
  z-index: 2;
}
.ph .ph-title {
  position: absolute;
  bottom: 36px; left: 16px;
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: -0.025em;
  color: #fff;
  font-weight: 500;
  line-height: 1.1;
  max-width: 80%;
  z-index: 2;
}

/* ── Sub-page (case) ───────────────────────────────────────── */
.case-hero {
  padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--border-soft);
}
.case-back {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.case-back:hover { color: var(--ink); }
.case-back .arrow { transform: rotate(180deg); }

.case-hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
.case-hero-title {
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0;
  max-width: 14ch;
}
.case-hero-meta { display: flex; flex-direction: column; gap: 24px; padding-bottom: 12px; }
.case-hero-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.case-hero-tags .tg {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 7px 11px;
  border-radius: var(--r-pill);
  color: var(--ink-muted);
}
.case-hero-summary {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: 38ch;
}
.case-hero-cover {
  margin-top: clamp(40px, 5vw, 64px);
  height: clamp(320px, 50vw, 560px);
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
}
.case-hero-cover .case-cover-img,
.case-hero-cover .case-cover-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #1A1A1A;
}
@media (max-width: 800px) {
  .case-hero-grid { grid-template-columns: 1fr; gap: 24px; }
}

.case-body {
  padding-block: clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--border-soft);
}
.case-body-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(28px, 4vw, 80px);
  margin-bottom: clamp(56px, 7vw, 88px);
}
.case-body-grid:last-child { margin-bottom: 0; }
.case-body .reveal + .reveal .case-body-grid {
  padding-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--border-soft);
}
.case-body-grid h3 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-faint);
  margin: 0;
  position: sticky; top: 84px;
  align-self: start;
}
.case-body-content {
  display: flex; flex-direction: column; gap: 16px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  max-width: 60ch;
}
.case-result-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0; margin: 0; list-style: none; }
.case-result-list li {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--r-card);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.case-result-list .v {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.case-result-list .l { font-size: 13.5px; color: var(--ink-muted); line-height: 1.4; }

.case-tech {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.case-tech .t {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  color: var(--ink-muted);
}
.case-gallery {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 16px;
}
.case-gallery > * {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.case-gallery > .wide { grid-column: span 2; aspect-ratio: 12 / 5; }

@media (max-width: 800px) {
  .case-body-grid { grid-template-columns: 1fr; }
  .case-body-grid h3 { position: relative; top: 0; }
  .case-result-list { grid-template-columns: 1fr; }
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery > .wide { grid-column: span 1; aspect-ratio: 12 / 7; }
}

/* CTA strip */
.cta-strip {
  background: var(--bg-dark);
  color: var(--bg);
  padding-block: clamp(64px, 10vw, 140px);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.cta-strip h2 {
  font-size: clamp(40px, 6vw, 96px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-weight: 500;
  margin: 0 0 36px;
  max-width: 14ch;
}
.cta-strip h2 .em { font-style: italic; font-weight: 400; }
.cta-strip .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cta-strip .btn:hover { background: transparent; color: var(--bg); }

/* Other cases */
.related {
  padding-block: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--border-soft);
}
.related-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 800px) { .related-grid { grid-template-columns: 1fr; } }

/* Cases index page */
.cases-index-header {
  padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 4vw, 56px);
  border-bottom: 1px solid var(--border-soft);
}
.cases-index-grid {
  padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 120px);
}

/* ── Mobile-specific overrides ─────────────────────────────── */
@media (max-width: 640px) {
  /* Hero — tighten and stack */
  .hero { padding-block: 24px 56px; }
  .hero-headline { font-size: clamp(48px, 13vw, 80px); letter-spacing: -0.04em; }
  .hero-cta-row { padding-left: 0; gap: 12px; margin-top: 28px; }
  .hero-cta-row .btn,
  .hero-cta-row .btn-ghost { flex: 1; justify-content: center; }
  .hero-marquee { margin-top: 36px; padding: 12px 0; font-size: 11px; }
  .hero-marquee-track { gap: 32px; animation-duration: 22s; }
  .hero-marquee-track span { gap: 32px; }

  /* Section heads */
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 28px; gap: 16px; }
  .section-title { font-size: clamp(30px, 8vw, 44px); }

  /* Process — keep big numbers but tighten */
  .proc-num { font-size: clamp(56px, 14vw, 72px); }
  .process-step { padding-block: 28px; gap: 12px; }
  .proc-title { font-size: 19px; }

  /* Sticky services — mobile is a horizontal scroll-snap carousel (see main rules) */
  .svc-name { font-size: 22px; }

  /* Case grid covers — shorter on mobile */
  .case-card .case-cover { min-height: 240px !important; }
  .case-meta { padding: 16px 18px 18px; }
  .case-name { font-size: 17px; }

  /* Bento cards */
  .bento { gap: 10px; }
  .bento .b { min-height: 200px; }
  .b-link { padding: 24px; }
  .b-title { font-size: 22px; }
  .b-glyph { height: 48px; margin-top: 14px; }

  /* Case detail page */
  .case-hero-title { font-size: clamp(36px, 9vw, 56px); }
  .case-hero-cover { height: 280px; margin-top: 28px; }
  .case-body-content { font-size: 16px; }
  .case-result-list .v { font-size: 36px; }

  /* CTA strip */
  .cta-strip h2 { font-size: clamp(32px, 9vw, 48px); margin-bottom: 24px; }

  /* Contact form */
  .contact { padding-block: 64px; }
  .field input, .field textarea { font-size: 18px; padding: 12px 0; }
  .contact-form .submit-row { flex-direction: column; align-items: stretch; }
  .contact-form .submit-row .btn { justify-content: center; }
  .contact-disclaimer { max-width: 100%; }

  /* Footer */
  .footer-brand .lg { font-size: clamp(48px, 18vw, 90px); }
  .footer { padding: 32px 0 28px; }

  /* Case filters */
  .case-filters { gap: 6px; }
  .case-filter { padding: 12px 14px; font-size: 11.5px; min-height: 40px; }
  .nav-cta { padding: 11px 14px; min-height: 38px; }
}

/* Touch devices — :active instead of :hover */
@media (hover: none) {
  .bento .b:hover { transform: none; border-color: var(--border); box-shadow: none; }
  .bento .b:hover::before { opacity: 0; }
  .bento .b:hover .b-arrow { transform: none; background: transparent; border-color: var(--border); color: var(--ink-muted); }
  .bento .b:active { transform: scale(0.98); border-color: var(--ink); }
  .bento .b:active::before { opacity: 1; }
  .bento .b:active .b-arrow { transform: rotate(-45deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

  .case-card:hover { transform: none; box-shadow: none; }
  .case-card:active { transform: scale(0.98); }

  .btn:hover { background: var(--accent); color: var(--accent-ink); }
  .btn:active { background: transparent; color: var(--ink); }

  .btn-ghost:hover { background: transparent; border-color: var(--border); }
  .btn-ghost:active { background: var(--bg-card); border-color: var(--ink); }
}

@media (max-width: 380px) {
  .hero-headline { font-size: clamp(40px, 14vw, 64px); }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn,
  .hero-cta-row .btn-ghost { width: 100%; }
  .topbar-inner { height: 52px; }
  .nav-cta { padding: 8px 12px; font-size: 10.5px; }
}
