/* ============ TOKENS ============ */
:root {
  /* dark — default */
  --bg: oklch(0.13 0.006 70);
  --bg-2: oklch(0.155 0.007 70);
  --surface: oklch(0.185 0.008 70);
  --surface-2: oklch(0.225 0.009 70);
  --border: oklch(0.28 0.01 70);
  --border-soft: oklch(0.22 0.008 70);
  --text: oklch(0.97 0.005 80);
  --text-2: oklch(0.78 0.008 75);
  --text-3: oklch(0.58 0.009 75);
  --on-accent: oklch(0.16 0.012 70);

  --accent: oklch(0.78 0.16 55);
  --accent-2: oklch(0.68 0.18 35);
  --accent-soft: oklch(0.78 0.16 55 / 0.14);

  --font-sans: "Geist", "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --max: 1440px;
  --pad: clamp(24px, 4vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* light mode — applied via [data-mode="light"] on sections */
[data-mode="light"] {
  --bg: oklch(0.97 0.006 80);
  --bg-2: oklch(0.95 0.008 80);
  --surface: oklch(0.93 0.008 80);
  --surface-2: oklch(0.90 0.009 80);
  --border: oklch(0.82 0.008 75);
  --border-soft: oklch(0.88 0.008 80);
  --text: oklch(0.18 0.012 70);
  --text-2: oklch(0.40 0.014 70);
  --text-3: oklch(0.55 0.012 70);
  --on-accent: oklch(0.15 0.012 70);
  background: var(--bg);
  color: var(--text);
}

/* ============ ACCESSIBILITY ============ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ============ LAYOUT ============ */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
section { position: relative; background: var(--bg); color: var(--text); transition: background .4s var(--ease); }

/* subtle per-section ambience — visible separation between same-mode sections */
#work {
  background:
    radial-gradient(80% 60% at 100% 0%, oklch(0.78 0.16 55 / 0.04), transparent 55%),
    radial-gradient(60% 50% at 0% 100%, oklch(0.55 0.18 290 / 0.05), transparent 60%),
    var(--bg);
}
#process {
  background:
    radial-gradient(70% 50% at 0% 0%, oklch(0.78 0.16 55 / 0.05), transparent 55%),
    var(--bg);
  border-top: 1px solid var(--border-soft);
}
#contact {
  background:
    radial-gradient(60% 50% at 50% 0%, oklch(0.78 0.16 55 / 0.07), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border-soft);
}
#services {
  background:
    radial-gradient(80% 60% at 100% 0%, oklch(0.78 0.16 55 / 0.03), transparent 55%),
    var(--bg);
}
.trust {
  background:
    radial-gradient(60% 50% at 0% 100%, oklch(0.78 0.16 55 / 0.03), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border-soft);
}
#about {
  background:
    radial-gradient(70% 50% at 100% 0%, oklch(0.78 0.16 55 / 0.025), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border-soft);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* ============ TYPE — italic out, accent-color in ============ */
.h-display {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}
.h-section {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.tx-accent { color: var(--accent); font-weight: inherit; font-style: normal; }
.tx-thin { font-weight: 300; color: var(--text-2); font-style: normal; }
.tx-bold { font-weight: 700; font-style: normal; }
.tx-accent-thin { color: var(--accent); font-weight: 300; font-style: normal; }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-2);
  line-height: 1.55;
  letter-spacing: -0.005em;
  max-width: 56ch;
  text-wrap: pretty;
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: oklch(0.13 0.006 70 / 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: oklch(0.25 0.01 70 / 0.6);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: -0.015em;
  color: oklch(0.97 0.005 80);
}
.brand-role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.72 0.008 75);
  padding: 5px 10px;
  border: 1px solid oklch(0.32 0.01 70);
  border-radius: 999px;
}
@media (max-width: 720px) { .brand-role { display: none; } }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  background: oklch(0.18 0.008 70 / 0.6);
  border: 1px solid oklch(0.25 0.01 70 / 0.7);
  border-radius: 999px;
  padding: 5px;
  backdrop-filter: blur(10px);
}
.nav-links a {
  padding: 8px 16px;
  font-size: 13.5px;
  color: oklch(0.78 0.008 75);
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
  letter-spacing: -0.005em;
}
.nav-links a:hover { color: oklch(0.97 0.005 80); background: oklch(0.25 0.009 70 / 0.6); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px 10px 18px;
  font-size: 13.5px;
  background: var(--accent);
  color: oklch(0.15 0.012 70);
  border-radius: 999px;
  font-weight: 500;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 0 0 0 var(--accent);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -6px var(--accent); }
.nav-cta .arr { width: 14px; height: 14px; }

@media (max-width: 820px) { .nav-links { display: none; } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: oklch(0.15 0.012 70);
  box-shadow: 0 0 0 0 var(--accent);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -8px var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--text-3); }
.btn .arr { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translate(2px, -2px); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px var(--pad) 0;
  position: relative;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg::before {
  content: "";
  position: absolute; inset: -20%;
  background:
    radial-gradient(50% 40% at 22% 35%, oklch(0.78 0.16 55 / 0.10), transparent 60%),
    radial-gradient(40% 35% at 80% 70%, oklch(0.68 0.18 35 / 0.08), transparent 60%),
    radial-gradient(60% 50% at 50% 100%, oklch(0.55 0.12 280 / 0.06), transparent 65%);
  filter: blur(40px);
  animation: drift 32s ease-in-out infinite alternate;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
}
.hero-noise {
  position: absolute; inset: 0;
  opacity: .35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1, 0 0 0 0 1, 0 0 0 0 1, 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  50%  { transform: translate3d(2%, 1%, 0) scale(1.04); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1); }
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max); width: 100%; margin: 0 auto;
  display: flex;
  align-items: center;
  flex: 1;
  padding-bottom: 64px;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 980px;
}

/* ============ HERO ORB — animated abstract form ============ */
.hero-orb {
  position: absolute;
  top: 50%; right: -8%;
  transform: translateY(-50%);
  width: clamp(520px, 56vw, 980px);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: orbFade 1.6s var(--ease-out) .3s forwards;
  mix-blend-mode: screen;
}
[data-mode="light"] .hero-orb { mix-blend-mode: multiply; opacity: .6; }
.hero-orb svg { width: 100%; height: 100%; display: block; }
.hero-orb .orb {
  transform-origin: 400px 400px;
  animation: orbDrift 28s ease-in-out infinite;
}
.hero-orb .orb.a { animation-duration: 22s; }
.hero-orb .orb.b { animation-duration: 28s; animation-delay: -7s; }
.hero-orb .orb.c { animation-duration: 19s; animation-delay: -3s; }
.hero-orb .rings { transform-origin: 400px 400px; animation: spin 80s linear infinite; }
.hero-orb .dots .dot {
  transform-origin: 400px 400px;
  animation: spin 60s linear infinite;
}
.hero-orb .dots .d2 { animation: spin 90s linear infinite reverse; }
.hero-orb .dots .d3 { animation: spin 110s linear infinite; }

@keyframes orbFade { to { opacity: .68; } }
@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.08); }
  66%  { transform: translate(-30px, 40px) scale(0.94); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero-orb { right: -30%; opacity: .65; width: clamp(420px, 90vw, 700px); }
}
.hero-status {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 7px 14px 7px 10px;
  margin-top: 28px;
  border: 1px solid oklch(0.25 0.01 70 / 0.7);
  background: oklch(0.18 0.008 70 / 0.5);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-2);
  width: fit-content;
  opacity: 0;
  animation: fade .9s var(--ease-out) .6s forwards;
}
.hero-status .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(0.78 0.18 145);
  box-shadow: 0 0 0 0 oklch(0.78 0.18 145 / 0.6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.78 0.18 145 / 0.5); }
  100% { box-shadow: 0 0 0 14px oklch(0.78 0.18 145 / 0); }
}

.hero-signature {
  display: block;
  width: auto;
  height: clamp(80px, 9vw, 120px);
  margin-bottom: 8px;
  opacity: 0.96;
  filter: drop-shadow(0 6px 30px oklch(0 0 0 / 0.5));
  animation: fade 1.1s var(--ease-out) .2s both;
}

.hero h1 { margin-top: 32px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 4px; }
.hero h1 .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) forwards;
}
.hero h1 .line:nth-child(2) span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-sub {
  margin-top: 36px;
  font-size: clamp(17px, 1.35vw, 21px);
  color: var(--text-2);
  max-width: 56ch; line-height: 1.55;
  opacity: 0; animation: fade .9s var(--ease-out) .5s forwards;
}
@keyframes fade { to { opacity: 1; } }

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 44px;
  opacity: 0; animation: fade .9s var(--ease-out) .7s forwards;
}

.hero-meta {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--border-soft);
  padding: 32px 0 48px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
  opacity: 0; animation: fade .9s var(--ease-out) 1s forwards;
  pointer-events: none;
}
.hero-meta__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px;
  pointer-events: auto;
}
.hero-meta .stats { display: grid; grid-template-columns: repeat(3, 200px); gap: 100px; }
.hero-meta .stat {
  position: relative;
  cursor: default;
}
.hero-meta .stat b {
  display: block;
  font-family: var(--font-sans);
  font-size: 22px; font-weight: 400; color: var(--text);
  letter-spacing: -0.02em; text-transform: none; margin-bottom: 6px;
  line-height: 1.1;
  transition: color .3s var(--ease), transform .4s var(--ease-out);
}
.hero-meta .stat:hover b { color: var(--accent); transform: translateY(-2px); }
.hero-meta .scroll { display: flex; align-items: center; gap: 10px; }
.hero-meta .scroll .line {
  display: block; width: 28px; height: 1px;
  background: var(--text-3); position: relative; overflow: hidden;
}
.hero-meta .scroll .line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--text); animation: slide 2.6s ease-in-out infinite;
}
@keyframes slide {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@media (max-width: 720px) {
  .hero-status { white-space: nowrap; }
  .hero-meta { padding: 28px 0 40px; }
  .hero-meta__inner { flex-direction: column; align-items: flex-start; }
  .hero-meta .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-meta .stat b { font-size: 16px; }
}

/* ============ SECTIONS ============ */
.section-pad { padding: clamp(80px, 11vw, 160px) 0; }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: end;
  margin-bottom: 80px;
}
.section-head .meta { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
}

/* ============ TRUST / LOGO GRID ============ */
.trust { padding: clamp(64px, 8vw, 110px) 0; }
.trust-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 64px;
}
.trust-head .h-section { font-size: clamp(28px, 3.2vw, 44px); }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.logo-cell {
  background: var(--bg);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 32px;
  transition: background .25s var(--ease);
  position: relative;
}
.logo-cell:hover { background: var(--bg-2); }
.logo-cell img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  filter: brightness(0) opacity(0.55);
  transition: filter .3s var(--ease), transform .3s var(--ease);
}
.logo-cell:hover img { filter: brightness(0) opacity(1); }
/* per-logo optical balance — wordmark logos slightly wider, square logos slightly smaller */
.logo-cell[data-size="xs"] img { max-height: 38%; max-width: 70%; }
.logo-cell[data-size="sm"] img { max-height: 48%; max-width: 85%; }
.logo-cell[data-size="md"] img { max-height: 60%; max-width: 95%; }
.logo-cell[data-size="lg"] img { max-height: 72%; max-width: 90%; }
.logo-cell[data-size="xl"] img { max-height: 82%; max-width: 78%; }

@media (max-width: 1100px) {
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-cell { height: 90px; }
}

/* ============ DEVICE MOCKUPS — MONOCHROME OUTLINE ============ */
.mock-browser {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 30px 80px -28px oklch(0 0 0 / 0.5);
}
.mock-browser__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.mock-browser__dots { display: flex; gap: 6px; }
.mock-browser__dots i {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--text-3);
  background: transparent;
}
.mock-browser__url {
  flex: 1;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.02em;
  background: transparent;
  display: flex; align-items: center; gap: 8px;
}
.mock-browser__url::before {
  content: "";
  width: 9px; height: 9px;
  border: 1px solid var(--text-3);
  border-radius: 2px;
  flex-shrink: 0;
}
.mock-browser__view {
  position: relative;
  width: 100%;
  background: white;
  overflow: hidden;
}
.mock-browser__view img {
  width: 100%;
  height: auto;
  display: block;
  object-position: top;
  object-fit: cover;
}

/* ============ BROWSER SLIDER ============ */
.mock-browser__view.is-slider {
  position: relative;
  overflow: hidden;
}
.mock-browser .slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.mock-browser .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  pointer-events: none;
}
.mock-browser .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.mock-browser .slide.active {
  opacity: 1;
  pointer-events: auto;
}
.slider-nav {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: oklch(0.12 0.005 70 / 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 999px;
  padding: 6px 10px;
  z-index: 5;
}
.slider-nav button.s-arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid oklch(1 0 0 / 0.22);
  color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.slider-nav button.s-arrow:hover {
  background: oklch(1 0 0 / 0.12);
  border-color: oklch(1 0 0 / 0.5);
}
.slider-nav button.s-arrow svg { width: 11px; height: 11px; }
.slider-nav .dots { display: flex; gap: 6px; align-items: center; }
.slider-nav .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.3);
  cursor: pointer; padding: 0; border: none;
  transition: background .25s var(--ease), width .25s var(--ease);
}
.slider-nav .dot.active {
  background: var(--accent);
  width: 20px;
}

.mock-phone {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 38px;
  padding: 8px;
  background: var(--bg-2);
  box-shadow: 0 30px 80px -28px oklch(0 0 0 / 0.55);
  aspect-ratio: 9 / 19.5;
}
.mock-phone__notch {
  position: absolute;
  top: 14px;
  left: 50%; transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border: 1px solid var(--text-3);
  border-radius: 50%;
  z-index: 2;
}
.mock-phone__view {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: white;
}
.mock-phone__view img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ============ WORK / CASE STUDIES ============ */
.work-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 120px;
}
@media (max-width: 900px) {
  .work-intro { grid-template-columns: 1fr; gap: 24px; margin-bottom: 80px; }
}

.case {
  position: relative;
  padding: 0;
  margin-bottom: clamp(80px, 12vw, 180px);
}
.case-meta {
  display: grid; grid-template-columns: 100px 1fr 1fr;
  gap: 40px; margin-bottom: 40px; align-items: start;
  font-size: 13.5px; color: var(--text-2);
}
.case-meta .index {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--text-3); padding-top: 4px;
}
.case-meta h3 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.05;
  color: var(--text);
}
.case-meta .tag {
  display: inline-block; margin-top: 14px;
  padding: 5px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2);
}
.case-meta .summary { color: var(--text-2); line-height: 1.55; text-wrap: pretty; }

@media (max-width: 820px) {
  .case-meta { grid-template-columns: 1fr; gap: 16px; }
}

.case-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  margin-bottom: 80px;
  aspect-ratio: 16/9;
  transition: transform .6s var(--ease-out), border-color .4s var(--ease), box-shadow .6s var(--ease-out);
  will-change: transform;
}
.case-hero:hover {
  border-color: oklch(0.78 0.16 55 / 0.4);
  box-shadow:
    0 40px 100px -30px oklch(0 0 0 / 0.6),
    0 0 0 1px oklch(0.78 0.16 55 / 0.15);
  transform: translateY(-4px);
}
.case-hero .mock-browser,
.case-hero .econome-stage .mock-phone {
  transition: transform .6s var(--ease-out);
}
.case-hero:hover .mock-browser { transform: translateY(-3px) scale(1.012); }
.case-hero:hover .econome-stage .mock-phone { transform: translateY(-3px) scale(1.015); }
.case-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(60% 60% at 50% 30%, var(--surface-2) 0%, transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
}
.case-stage::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(40% 40% at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 70%);
  transition: background .2s var(--ease);
  pointer-events: none;
}
.case-tags {
  position: absolute; top: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 10;
}
.case-tags .pill {
  padding: 6px 12px;
  background: oklch(0.18 0.008 70 / 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid oklch(0.32 0.01 70 / 0.6);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: oklch(0.92 0.005 80);
}
[data-mode="light"] .case-tags .pill {
  background: oklch(1 0 0 / 0.7);
  border-color: oklch(0.80 0.008 75);
  color: var(--text);
}

.case-body {
  display: grid; grid-template-columns: 100px 1fr 1fr;
  gap: 40px; margin-bottom: 64px;
}
.case-body .label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); padding-top: 6px;
}
.case-body h4 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.2;
}
.case-body p {
  margin: 0 0 14px;
  color: var(--text-2);
  font-size: 15.5px; line-height: 1.65;
  text-wrap: pretty; max-width: 56ch;
}
.case-body .col { display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 820px) {
  .case-body { grid-template-columns: 1fr; gap: 16px; }
  .case-body .label { padding-top: 0; }
}

.case-impact {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 40px; margin-bottom: 64px;
}
.case-impact .impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.case-impact .stat {
  background: var(--bg);
  padding: 28px 26px;
  transition: background .3s var(--ease);
  position: relative;
}
.case-impact .stat::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease-out);
}
.case-impact .stat:hover { background: var(--bg-2); }
.case-impact .stat:hover::before { transform: scaleY(1); }
.case-impact .stat b {
  display: block;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 400; letter-spacing: -0.035em; line-height: 1;
  margin-bottom: 10px;
  color: var(--accent);
  transition: transform .4s var(--ease-out);
}
.case-impact .stat:hover b { transform: translateX(4px); }
.case-impact .stat span {
  font-size: 12.5px; color: var(--text-2); line-height: 1.4;
}
@media (max-width: 820px) {
  .case-impact { grid-template-columns: 1fr; gap: 16px; }
}

.case-gallery { display: grid; grid-template-columns: 100px 1fr; gap: 40px; }
.case-gallery .gallery-content { width: 100%; }
@media (max-width: 820px) {
  .case-gallery { grid-template-columns: 1fr; gap: 16px; }
}

.shot {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shot .caption {
  position: absolute;
  bottom: 14px; left: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: oklch(0.92 0.005 70);
  background: oklch(0.12 0.005 70 / 0.7);
  padding: 5px 10px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

/* ============ CASE 01 — OPTIMAL DX (paper stack) ============ */
.odx-stage {
  position: relative;
  width: 100%; height: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3%;
  padding: 5%;
  background: linear-gradient(180deg, oklch(0.24 0.012 70), oklch(0.16 0.008 70));
}
[data-mode="light"] .odx-stage {
  background: linear-gradient(180deg, oklch(0.96 0.006 80), oklch(0.90 0.008 75));
}
.odx-stage .browser-side {
  display: flex; align-items: center;
}
.odx-stage .browser-side .mock-browser { width: 100%; }
.odx-stage .stack-side {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  perspective: 1400px;
}

.paper-stack {
  position: relative;
  width: 78%;
  aspect-ratio: 8.5/11;
}
.paper-stack .sheet {
  position: absolute;
  inset: 0;
  background: white;
  border-radius: 6px;
  box-shadow:
    0 30px 60px -20px oklch(0 0 0 / 0.45),
    0 0 0 1px oklch(0 0 0 / 0.06);
  overflow: hidden;
  transform-origin: center center;
  animation: paperCycle 20s cubic-bezier(.65, 0, .35, 1) infinite;
  opacity: 0;
}
.paper-stack .sheet img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}
.paper-stack .sheet:nth-child(1) { animation-delay: 0s; }
.paper-stack .sheet:nth-child(2) { animation-delay: -4s; }
.paper-stack .sheet:nth-child(3) { animation-delay: -8s; }
.paper-stack .sheet:nth-child(4) { animation-delay: -12s; }
.paper-stack .sheet:nth-child(5) { animation-delay: -16s; }

@keyframes paperCycle {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; z-index: 5; }
  18%  { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; z-index: 5; }
  22%  { transform: translate(-120%, -20%) rotate(-14deg) scale(0.94); opacity: 0; z-index: 6; }
  23%  { transform: translate(8%, 10%) rotate(3deg) scale(0.92); opacity: 0; z-index: 1; }
  92%  { transform: translate(8%, 10%) rotate(3deg) scale(0.92); opacity: 0; z-index: 1; }
  96%  { transform: translate(4%, 5%) rotate(1.5deg) scale(0.96); opacity: 0.6; z-index: 2; }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; z-index: 5; }
}

.paper-meta {
  position: absolute;
  bottom: 20px; left: 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.85 0.005 70);
  background: oklch(0.12 0.005 70 / 0.7);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 6px;
  display: flex; align-items: center; gap: 8px;
}
.paper-meta .pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
[data-mode="light"] .paper-meta { background: oklch(1 0 0 / 0.85); color: var(--text); border: 1px solid var(--border-soft); }

@media (max-width: 820px) {
  .odx-stage { grid-template-columns: 1fr; }
  .odx-stage .stack-side { padding: 40px 0; }
}

/* ============ CASE 02 — GOV (browser) ============ */
.gov-stage {
  position: relative; width: 100%; height: 100%;
  background: linear-gradient(180deg, oklch(0.22 0.012 70), oklch(0.15 0.008 70));
  display: flex; align-items: center; justify-content: center;
  padding: 6%;
}
[data-mode="light"] .gov-stage {
  background: linear-gradient(180deg, oklch(0.95 0.006 80), oklch(0.88 0.008 75));
}
.gov-stage .mock-browser { width: min(86%, 1040px); }
.gov-stage .mock-browser__view { aspect-ratio: 16/10; }

/* ============ CASE 03 — ECONOME ============ */
.econome-stage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4%;
  width: 100%; height: 100%;
  padding: 5%;
  background: linear-gradient(135deg, oklch(0.22 0.04 290), oklch(0.14 0.02 290));
}
[data-mode="light"] .econome-stage {
  background: linear-gradient(135deg, oklch(0.95 0.018 290), oklch(0.88 0.022 290));
}
.econome-stage .desk { display: flex; align-items: center; }
.econome-stage .desk .mock-browser { width: 100%; }
.econome-stage .mob { display: flex; align-items: center; justify-content: center; }
.econome-stage .mob .mock-phone { width: 100%; max-width: 240px; }

/* econome mobile must show top of screen */
.econome-stage .mob .mock-phone__view img {
  object-position: top;
  object-fit: cover;
  height: 100%;
}

/* ============ CASE 04 — CHILLI BEANS ============ */
.chilli-stage {
  position: relative; width: 100%; height: 100%;
  background: linear-gradient(180deg, oklch(0.20 0.009 70), oklch(0.13 0.007 70));
  display: flex; align-items: center; justify-content: center;
  padding: 6%;
}
[data-mode="light"] .chilli-stage {
  background: linear-gradient(180deg, oklch(0.93 0.008 80), oklch(0.85 0.01 75));
}
.chilli-stage .mock-browser { width: min(82%, 880px); }
.chilli-stage .mock-browser__view { aspect-ratio: 16/9; }

/* ============ CASE 05 — NOTE QUEST ============ */
.note-stage {
  position: relative; width: 100%; height: 100%;
  background: linear-gradient(180deg, oklch(0.20 0.009 70), oklch(0.13 0.007 70));
  display: flex; align-items: center; justify-content: center;
  gap: 5%;
  padding: 4%;
}
[data-mode="light"] .note-stage {
  background: linear-gradient(180deg, oklch(0.93 0.008 80), oklch(0.85 0.01 75));
}
.note-stage .mock-phone { width: 22%; min-width: 200px; }
.note-stage .mock-phone.p1 { transform: rotate(-5deg) translate3d(0, -2%, 0); }
.note-stage .mock-phone.p2 { transform: rotate(4deg) translate3d(0, 2%, 0); }
.note-stage .mock-phone .mock-phone__view img {
  object-fit: cover; object-position: top;
}

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service {
  background: var(--bg);
  padding: 44px 38px 38px;
  display: flex; flex-direction: column;
  min-height: 380px;
  position: relative; overflow: hidden;
  transition: background .4s var(--ease), transform .5s var(--ease-out);
}
.service::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: translateX(-30%);
  transition: opacity .5s var(--ease), transform .8s var(--ease-out);
}
.service::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.service:hover { background: var(--bg-2); }
.service:hover::before { opacity: 1; transform: translateX(0); }
.service:hover::after { opacity: 1; }
.service:hover .num { color: var(--text); }
.service .num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 28px;
  transition: color .35s var(--ease);
  position: relative; z-index: 1;
}
.service h4, .service p, .service .list { position: relative; z-index: 1; }
.service h4 {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.1;
  margin: 0 0 16px;
}
.service p { color: var(--text-2); font-size: 15px; line-height: 1.6; margin: 0; }
.service .list {
  margin-top: auto;
  padding-top: 32px;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px dashed var(--border-soft);
}
.service .list i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--text-2);
  display: flex; align-items: center; gap: 10px;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.service .list i::before {
  content: "→";
  color: var(--accent);
  transition: transform .3s var(--ease-out);
}
.service:hover .list i { color: var(--text); }
.service:hover .list i:nth-child(1)::before { transform: translateX(3px); transition-delay: 0s; }
.service:hover .list i:nth-child(2)::before { transform: translateX(3px); transition-delay: .05s; }
.service:hover .list i:nth-child(3)::before { transform: translateX(3px); transition-delay: .1s; }
.service:hover .list i:nth-child(4)::before { transform: translateX(3px); transition-delay: .15s; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============ PROCESS ============ */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-soft);
  position: relative;
}
.process-grid::after {
  content: "";
  position: absolute; top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  width: 0;
  transition: width 1.4s var(--ease-out);
  box-shadow: 0 0 12px var(--accent);
}
.process-grid.lit::after { width: 100%; }
.process-step {
  padding: 44px 32px 38px 0;
  position: relative;
  border-right: 1px solid var(--border-soft);
  transition: background .35s var(--ease);
}
.process-step::after {
  content: "";
  position: absolute; top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
  box-shadow: 0 0 12px var(--accent);
}
.process-step:hover::after { transform: scaleX(1); }
.process-step:hover .num { color: var(--text); }
.process-step:last-child { border-right: none; padding-right: 0; }
.process-step .num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 20px;
  transition: color .25s var(--ease);
}
.process-step h4 {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 500; letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 14px;
  text-wrap: balance;
}
.process-step p {
  color: var(--text-2); font-size: 14.5px; line-height: 1.6;
  margin: 0 0 20px; max-width: 32ch;
}
.process-step .deliv { display: flex; flex-direction: column; gap: 6px; }
.process-step .deliv i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--text-3);
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: none; padding-right: 0; }
  .process-step { padding-right: 32px; padding-left: 0; }
}
@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: none; padding-right: 0; }
}

/* ============ ABOUT ============ */
.about {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.about-text h2 { margin-bottom: 36px; }
.about-text p {
  color: var(--text-2);
  font-size: 17px; line-height: 1.6;
  margin: 0 0 18px;
  max-width: 56ch;
}

.about-side { display: flex; flex-direction: column; gap: 40px; }
.about-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-2);
}
.about-card .label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 18px;
}
.about-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.about-card li {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-soft);
}
.about-card li:last-child { border-bottom: none; padding-bottom: 0; }
.about-card li span:first-child { color: var(--text-2); }
.about-card li span:last-child {
  color: var(--text); font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
}

/* ============ ABOUT LAYOUT — two-column ============ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-col { display: flex; flex-direction: column; }
.about-col--left .eyebrow { margin-bottom: 18px; }
.about-col--left .h-section { margin-bottom: 40px; }
.about-col--right .about-portrait--hero {
  width: 240px;
  margin: 0 0 48px;
}

/* ============ ABOUT META — Capabilities / Industries ============ */
.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding-top: 40px;
  border-top: 1px dashed var(--border-soft);
}
.about-block__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 22px;
}
.about-block__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-block__list li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  line-height: 1.5;
  position: relative;
  padding-left: 18px;
}
.about-block__list li::before {
  content: "·";
  color: var(--accent);
  position: absolute;
  left: 4px;
  top: -1px;
  font-size: 16px;
  line-height: 1;
}
@media (max-width: 900px) {
  /* Switch to flex so display:contents lets us reorder individual children */
  .about-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  /* Make columns transparent so their children become direct flex items */
  .about-col--left,
  .about-col--right {
    display: contents;
  }
  /* Reorder: eyebrow → title → portrait → text → meta */
  .about-col--left .eyebrow       { order: 1; margin-bottom: 18px; }
  .about-col--left .h-section     { order: 2; margin-bottom: 32px; }
  .about-col--right .about-portrait--hero { order: 3; margin-bottom: 40px; }
  .about-col--left .about-text    { order: 4; margin-bottom: 56px; }
  .about-col--right .about-meta   { order: 5; }
  /* Portrait: fixed square size to prevent oval deformation */
  .about-col--right .about-portrait--hero {
    width: 160px;
    height: 160px;
    align-self: flex-start;
  }
}
@media (max-width: 600px) {
  .about-meta { grid-template-columns: 1fr; gap: 40px; }
}

/* ============ ABOUT PORTRAIT ============ */
.about-portrait {
  margin: 0 0 32px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--bg-2);
  box-shadow:
    0 0 0 1px var(--border-soft),
    0 0 0 6px oklch(0.93 0.04 80 / 0.5),
    0 0 0 7px var(--border-soft),
    0 18px 40px -16px oklch(0 0 0 / 0.25);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.about-portrait::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, oklch(1 0 0 / 0.08), transparent 40%);
  pointer-events: none;
}
.about-portrait img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
}
.about-portrait:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 0 6px oklch(0.93 0.04 80 / 0.5),
    0 0 0 7px var(--border-soft),
    0 24px 50px -18px oklch(0 0 0 / 0.35);
}
[data-mode="light"] .about-portrait {
  box-shadow:
    0 0 0 1px oklch(0.85 0.008 75),
    0 0 0 6px oklch(0.97 0.006 80),
    0 0 0 7px oklch(0.85 0.008 75),
    0 18px 40px -16px oklch(0 0 0 / 0.18);
}
@media (max-width: 720px) {
  .about-portrait { width: 112px; height: 112px; margin-bottom: 24px; }
}

/* Hero-position portrait (next to the section title) */
#about .section-head {
  align-items: center;
}
#about .section-head .meta { gap: 22px; }
.about-portrait--hero {
  width: 65%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-width: 280px;
  margin: 0 auto;
  justify-self: center;
  align-self: center;
  /* Prevent oval deformation: force img to fill the square container */
  overflow: hidden;
}
@media (max-width: 820px) {
  #about .section-head { align-items: start; }
  .about-portrait--hero {
    width: 140px;
    height: 140px;
    aspect-ratio: 1 / 1;
    margin: 0;
    justify-self: start;
    order: -1;
  }
}

/* ============ CONTACT ============ */
.contact { padding-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(56px, 7vw, 96px); }
.contact-top { text-align: center; max-width: 920px; margin: 0 auto 80px; }
.contact-top .h-display { font-size: clamp(40px, 6vw, 88px); }

/* ============ CONTACT LINKS — editorial ============ */
.contact-links {
  max-width: 880px;
  margin: 0 auto;
}
.contact-links__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.contact-list {
  list-style: none;
  margin: 0; padding: 0;
}
.contact-item {
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.contact-item__cta {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px 8px 28px 0;
  text-decoration: none;
  color: var(--text);
  transition: padding-left .35s var(--ease-out), color .25s var(--ease);
  position: relative;
}
.contact-item__cta::before {
  content: "";
  position: absolute;
  left: -16px; right: -16px;
  top: 0; bottom: 0;
  background: var(--bg-2, rgba(255,255,255,0.02));
  opacity: 0;
  transition: opacity .3s var(--ease);
  border-radius: 2px;
  z-index: 0;
  pointer-events: none;
}
.contact-item__cta:hover { padding-left: 12px; }
.contact-item__cta:hover::before { opacity: 1; }
.contact-item__cta > * { position: relative; z-index: 1; }

.contact-item__icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item__icon .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
}
.contact-item__cta:hover .contact-item__icon {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-item__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.contact-item__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.contact-item__hint {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}
.contact-item__value {
  color: var(--text);
  font-size: clamp(20px, 1.9vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  transition: color .25s var(--ease);
}
.contact-item__cta:hover .contact-item__value { color: var(--accent); }
.contact-item__arrow {
  width: 16px; height: 16px;
  color: var(--text-3);
  opacity: 0.7;
  transition: transform .35s var(--ease-out), opacity .25s var(--ease), color .25s var(--ease);
}
.contact-item__cta:hover .contact-item__arrow {
  opacity: 1;
  color: var(--accent);
  transform: translate(4px, -4px);
}

/* WhatsApp emphasis */
.contact-item--featured .contact-item__icon {
  background: rgba(255,255,255,0.02);
  color: var(--accent);
  border-color: rgba(217, 119, 87, 0.4);
}
.contact-item--featured .contact-item__value {
  color: var(--accent);
  font-weight: 500;
}
.contact-item--featured::before {
  content: "";
  position: absolute;
  left: -28px; top: 50%;
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%);
  box-shadow: 0 0 14px var(--accent);
}

/* Personal note */
.contact-note {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px dashed var(--border-soft);
  max-width: 56ch;
}
.contact-note p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.contact-note__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-soft);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.contact-note__link svg { width: 12px; height: 12px; transition: transform .3s var(--ease-out); }
.contact-note__link:hover { color: var(--accent); border-color: var(--accent); }
.contact-note__link:hover svg { transform: translate(3px, -3px); }

@media (max-width: 720px) {
  .contact-item__cta {
    grid-template-columns: 40px 1fr auto;
    gap: 18px;
    padding: 22px 0;
  }
  .contact-item__icon { width: 40px; height: 40px; }
  .contact-item__icon svg { width: 18px; height: 18px; }
  .contact-item__icon .material-symbols-outlined { font-size: 20px; }
  .contact-item--featured::before { display: none; }
  .contact-item__value { font-size: 18px; }
  .contact-note { margin-top: 56px; }
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 48px 0 36px;
}
.footer-mark { margin-bottom: 40px; }
.footer-mark img { height: 110px; width: auto; opacity: 0.95; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 80px;
}
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 18px; font-weight: 400;
}
.footer-grid a {
  display: block;
  color: var(--text-2);
  font-size: 14px; padding: 4px 0;
  transition: color .2s var(--ease);
}
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-mark img { height: 72px; }
}

/* ============ FEATURED WORK FEED ============ */
.work-feed { padding-top: clamp(80px, 10vw, 130px); padding-bottom: clamp(80px, 10vw, 130px); }
.work-feed .work-intro { margin-bottom: clamp(64px, 8vw, 110px); }

.feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.feed .card { grid-column: span 1; }
.feed .card.feature { grid-column: 1 / -1; }

.card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: border-color .35s var(--ease), transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  isolation: isolate;
}
.card:hover {
  border-color: oklch(0.78 0.16 55 / 0.35);
  transform: translateY(-4px);
  box-shadow:
    0 40px 80px -32px oklch(0 0 0 / 0.55),
    0 0 0 1px oklch(0.78 0.16 55 / 0.12);
}
.card.feature {
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "media head"
    "media body";
  align-items: stretch;
}
.card.feature .card-media { grid-area: media; }
.card.feature .card-head  { grid-area: head; align-self: end; }
.card.feature .card-body  { grid-area: body; align-self: start; }
@media (max-width: 900px) {
  .feed { grid-template-columns: 1fr; }
  .card.feature, .feed .card { grid-template-columns: 1fr; }
  .card.feature { grid-template-areas: none; grid-template-rows: auto; }
  .card.feature .card-head,
  .card.feature .card-media,
  .card.feature .card-body { grid-area: auto; align-self: auto; }
  .odx-mini { grid-template-columns: 1fr !important; align-content: center; }
  .odx-mini .mini-stack { display: none; }
  .odx-mini .mini-browser { width: min(88%, 480px); margin: 0 auto; }
  .tone-mint .mini-phone { min-width: 110px; }
  .mini-phone.tilt-l { transform: rotate(-3deg) translateY(-2%); }
  .mini-phone.tilt-r { transform: rotate(2deg) translateY(2%); }
}

/* card media */
.card-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
}
.card.feature .card-media { aspect-ratio: 4/3; }
@media (min-width: 901px) {
  .card.feature .card-media { aspect-ratio: auto; min-height: 480px; }
}

.card-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 6%;
  background:
    radial-gradient(70% 60% at 50% 0%, oklch(0.78 0.16 55 / 0.10), transparent 65%),
    linear-gradient(180deg, oklch(0.22 0.012 70), oklch(0.14 0.008 70));
  transition: transform .8s var(--ease-out);
}
.card:hover .card-stage { transform: scale(1.025); }

.card-stage.tone-cool {
  background:
    radial-gradient(70% 60% at 50% 0%, oklch(0.65 0.16 220 / 0.10), transparent 65%),
    linear-gradient(180deg, oklch(0.20 0.014 230), oklch(0.13 0.010 230));
}
.card-stage.tone-violet {
  background:
    radial-gradient(70% 60% at 50% 0%, oklch(0.65 0.18 290 / 0.14), transparent 65%),
    linear-gradient(135deg, oklch(0.22 0.04 290), oklch(0.13 0.02 290));
}
.card-stage.tone-warm {
  background:
    radial-gradient(70% 60% at 50% 0%, oklch(0.78 0.16 55 / 0.14), transparent 65%),
    linear-gradient(180deg, oklch(0.20 0.012 50), oklch(0.13 0.008 60));
}
.card-stage.tone-mint {
  background:
    radial-gradient(70% 60% at 50% 0%, oklch(0.78 0.14 165 / 0.10), transparent 65%),
    linear-gradient(180deg, oklch(0.20 0.014 175), oklch(0.13 0.010 175));
}
.card-stage.tone-graphite {
  background:
    radial-gradient(70% 60% at 50% 0%, oklch(0.75 0.05 80 / 0.06), transparent 65%),
    linear-gradient(180deg, oklch(0.20 0.006 70), oklch(0.12 0.005 70));
}

.card-watermark {
  position: absolute;
  bottom: 16px; left: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.45);
  z-index: 3;
  line-height: 1;
}
@media (min-width: 901px) {
  .card-watermark { top: 18px; bottom: auto; }
}

/* mini-browser inside card */
.mini-browser {
  position: relative;
  width: min(80%, 520px);
  border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 30px 60px -28px oklch(0 0 0 / 0.6);
  transition: transform .8s var(--ease-out);
}
.mini-browser.wide { width: min(92%, 720px); }
.mini-browser.narrow { width: min(68%, 460px); }
.mini-browser .mini-bar {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 10px;
  background: oklch(0.14 0.008 70 / 0.95);
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
}
.mini-browser .mini-bar i {
  width: 6px; height: 6px; border-radius: 50%;
  border: 1px solid oklch(1 0 0 / 0.25);
}
.mini-browser img {
  display: block; width: 100%; height: auto;
  object-fit: cover; object-position: top;
  aspect-ratio: 16/10;
}
.card:hover .mini-browser { transform: translateY(-4px); }

/* mini-phone */
.mini-phone {
  width: 28%; min-width: 130px; max-width: 190px;
  aspect-ratio: 9/19.5;
  border: 1px solid oklch(1 0 0 / 0.15);
  border-radius: 24px;
  padding: 5px;
  background: oklch(0.14 0.008 70);
  box-shadow: 0 30px 60px -28px oklch(0 0 0 / 0.6);
  overflow: hidden;
  transition: transform .8s var(--ease-out);
}
.mini-phone img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  border-radius: 18px;
}
.mini-phone.tilt-l { transform: rotate(-6deg) translateY(-2%); }
.mini-phone.tilt-r { transform: rotate(5deg) translateY(2%); }
.card:hover .mini-phone.tilt-l { transform: rotate(-4deg) translateY(-3%); }
.card:hover .mini-phone.tilt-r { transform: rotate(3deg) translateY(1%); }

/* econome two-piece composition */
.tone-violet .mini-browser {
  position: absolute; left: 6%; top: 50%;
  transform: translateY(-50%);
  width: min(64%, 460px);
}
.tone-violet .mini-phone {
  position: absolute; right: 10%; top: 50%;
  transform: translateY(-50%);
}
.card:hover .tone-violet .mini-browser { transform: translateY(calc(-50% - 4px)); }
.card:hover .tone-violet .mini-phone { transform: translateY(calc(-50% - 4px)); }

/* note quest mini-stage (two phones) */
.tone-mint { gap: 4%; }
.tone-mint .mini-phone { position: static; }

/* odx mini composition (feature card) */
.odx-mini {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4%;
  padding: 6% 6%;
}
.odx-mini .mini-browser { width: 100%; }
.odx-mini .mini-stack {
  position: relative;
  aspect-ratio: 8.5/11;
  perspective: 1200px;
}
.odx-mini .sheet {
  position: absolute; inset: 0;
  background: white;
  border-radius: 6px;
  box-shadow:
    0 30px 50px -22px oklch(0 0 0 / 0.55),
    0 0 0 1px oklch(0 0 0 / 0.08);
  overflow: hidden;
  transition: transform .6s var(--ease-out);
}
.odx-mini .sheet.s1 { transform: translate(-14%, 8%) rotate(-6deg); }
.odx-mini .sheet.s2 { transform: translate(-4%, 4%) rotate(-2deg); }
.odx-mini .sheet.s3 { transform: translate(0, 0) rotate(0deg); }
.odx-mini .sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card:hover .odx-mini .sheet.s1 { transform: translate(-18%, 6%) rotate(-9deg); }
.card:hover .odx-mini .sheet.s2 { transform: translate(-7%, 2%) rotate(-3deg); }
.card:hover .odx-mini .sheet.s3 { transform: translate(2%, -2%) rotate(1deg); }

/* card head — eyebrow + title, always above media */
.card-head {
  padding: 28px 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card.feature .card-head { padding: 44px 44px 20px; }

/* card body — description, tags, CTA — sits below media */
.card-body {
  padding: 20px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card.feature .card-body {
  padding: 16px 44px 40px;
  justify-content: flex-start;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card-meta .card-num { color: var(--accent); white-space: nowrap; }
.card-meta .card-pos { color: var(--text-3); }
.card h3 {
  margin: 4px 0 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.028em;
  line-height: 1.05;
  color: var(--text);
}
.card.feature h3 { font-size: clamp(34px, 3.6vw, 52px); }
.card p {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.card.feature p { font-size: 16.5px; max-width: 64ch; }
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.card-tags span {
  padding: 5px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.card:hover .card-tags span { border-color: oklch(0.32 0.01 70); color: var(--text); }
.card-cta {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.card-cta svg { width: 13px; height: 13px; transition: transform .35s var(--ease-out); }
.card:hover .card-cta { color: var(--accent); gap: 14px; }
.card:hover .card-cta svg { transform: translate(2px, -2px); }

@media (max-width: 720px) {
  .card-head { padding: 20px 20px 16px; }
  .card.feature .card-head { padding: 20px 20px 16px; }
  .card-body { padding: 16px 20px 20px; }
  .card.feature .card-body { padding: 16px 20px 20px; }
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

/* ============ TWEAKS PANEL ============ */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  background: oklch(0.15 0.008 70 / 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid oklch(0.30 0.01 70);
  border-radius: 14px;
  padding: 16px;
  min-width: 240px;
  color: oklch(0.97 0.005 80);
  font-size: 12px;
  box-shadow: 0 20px 60px -20px oklch(0 0 0 / 0.6);
  display: none;
}
.tweaks.open { display: block; }
.tweaks h6 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: oklch(0.58 0.009 75); font-weight: 400;
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks h6 button {
  background: none; border: none;
  color: oklch(0.58 0.009 75); cursor: pointer;
  font-family: var(--font-mono); padding: 4px;
}
.tweaks h6 button:hover { color: oklch(0.97 0.005 80); }
.tweaks .group { margin-bottom: 14px; }
.tweaks .group:last-child { margin-bottom: 0; }
.tweaks .group .lbl {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: oklch(0.58 0.009 75); margin-bottom: 8px; display: block;
}
.tweaks .swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tweaks .swatch {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid oklch(0.30 0.01 70);
  cursor: pointer;
  position: relative;
  transition: transform .2s var(--ease);
}
.tweaks .swatch:hover { transform: scale(1.08); }
.tweaks .swatch.active::after {
  content: ""; position: absolute; inset: -3px;
  border: 1px solid oklch(0.97 0.005 80); border-radius: 10px;
}

/* ============ WORK — ARCHIVE TEASER ============ */
.work-archive {
  margin-top: 56px;
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.work-archive::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 80% 50%, oklch(0.78 0.16 55 / 0.06), transparent 65%);
  pointer-events: none;
}
.work-archive__lbl {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  position: relative; z-index: 1;
}
.work-archive a {
  display: flex;
  align-items: center; justify-content: space-between;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
  color: inherit;
  transition: padding .35s var(--ease-out), color .25s var(--ease);
  position: relative; z-index: 1;
}
.work-archive a::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.work-archive a:hover::before { transform: scaleX(1); }
.work-archive a:hover { padding-left: 12px; }
.work-archive h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
  transition: color .25s var(--ease);
}
.work-archive a:hover h3 { color: var(--accent); }
.work-archive .arr-big {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease-out);
}
.work-archive a:hover .arr-big {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: rotate(45deg);
}
.work-archive .arr-big svg { width: 22px; height: 22px; }

@media (max-width: 720px) {
  .work-archive { margin-top: 40px; }
  .work-archive h3 { font-size: clamp(28px, 7vw, 44px); }
  .work-archive .arr-big { width: 44px; height: 44px; }
}

/* ============ EXTENDED ARCHIVE ============ */
.archive-sec { padding: clamp(72px, 9vw, 130px) 0; }
.archive-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.archive-title {
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  font-weight: 400;
  margin: 18px 0 0;
  color: var(--text-2);
  max-width: 60ch;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  overflow: hidden;
}
.archive-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 18px;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: background .25s var(--ease);
  position: relative;
}
.archive-item:hover { background: var(--bg-2); }
.archive-thumb {
  display: block;
  aspect-ratio: 4/3;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
}
.archive-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      transparent 0,
      transparent 6px,
      oklch(0 0 0 / 0.04) 6px,
      oklch(0 0 0 / 0.04) 7px);
}
.archive-thumb.tone-1 { background: oklch(0.92 0.012 80); }
.archive-thumb.tone-2 { background: oklch(0.88 0.018 230); }
.archive-thumb.tone-3 { background: oklch(0.90 0.020 145); }
.archive-thumb.tone-4 { background: oklch(0.91 0.022 55); }
.archive-thumb.tone-5 { background: oklch(0.89 0.025 25); }
.archive-thumb.tone-6 { background: oklch(0.91 0.018 290); }
.archive-thumb.tone-7 { background: oklch(0.93 0.014 80); }
.archive-thumb.tone-8 { background: oklch(0.89 0.022 200); }
.archive-thumb.tone-9 { background: oklch(0.90 0.020 110); }
.archive-thumb.tone-10 { background: oklch(0.90 0.022 320); }

.archive-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.archive-cat {
  font-size: 13.5px;
  letter-spacing: -0.005em;
  color: var(--text);
  font-weight: 500;
}
.archive-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.archive-foot {
  margin: 40px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
}
.archive-foot a {
  color: var(--text);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}
.archive-foot a:hover { color: var(--accent, oklch(0.68 0.18 45)); }

@media (max-width: 1100px) {
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-item { padding: 18px 16px 14px; }
}
