/* ---------------------------------------------------------------
   Putra Nasution — portfolio
   System: Cekat-style product console, Signal Desk green palette.
   Tokens first; nothing below invents a colour or a size.
--------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* Colour — warm cream canvas, green ink, Chatwoot's tint drawer */
  --bg: #FAF3EA;
  --surface: #FFFFFF;
  --surface-subtle: #F4EBE0;
  --surface-soft: #FCF8F2;
  --ink: #191410;
  --ink-soft: #2E2721;
  --muted: #574D43;
  --subtle: #6A5E51;
  --border: #EADFD1;
  --border-strong: #D6C6B3;
  --accent: #0B6E4F;
  --accent-hover: #095C42;
  --accent-soft: #E4F1E9;
  --accent-line: rgba(11, 110, 79, 0.22);
  --ink-bg: #121815;
  --ink-bg-soft: #1A2320;
  --on-dark: #EDF2EE;
  --on-dark-muted: #AAB8B0;
  --on-accent-muted: rgba(255, 255, 255, 0.82);

  /* Tints + pops — sticker colours, decoration and accents only */
  --tint-sand: #F7E9D6;
  --tint-sun: #FFE9A6;
  --tint-mint: #D8F0E1;
  --tint-sky: #DEE9FB;
  --tint-lilac: #E9E2FB;
  --tint-rose: #FBDEE5;
  --pop-coral: #E0562F;
  --pop-violet: #5B44C9;
  --pop-sun: #D99A00;

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.6875rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.4vw, 1.25rem);
  --fs-h3: clamp(1rem, 1.3vw, 1.125rem);
  --fs-h2: clamp(1.75rem, 3.2vw, 2.375rem);
  --fs-h1: clamp(2.4rem, 5.2vw, 3.75rem);

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --rail-pad: clamp(20px, 4.2vw, 56px);
  --rail-max: 1240px;

  /* Shape */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-hair: 0 1px 2px rgba(16, 26, 21, 0.04);
  --shadow-lift: 0 1px 2px rgba(16, 26, 21, 0.05), 0 16px 36px -20px rgba(16, 26, 21, 0.28);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 140ms;
  --t-base: 220ms;
  --t-layout: 340ms;
}

/* ---------------------------------------------------------------
   Base
--------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
}

h1, h2, h3, h4, p, ol, ul, dl, dd, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

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

.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;
}

.skip {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: top var(--t-fast) var(--ease-out);
}
.skip:focus { top: 10px; }

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.micro {
  font-size: var(--fs-xs);
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--subtle);
}

/* ---------------------------------------------------------------
   Shell: the bordered content column Cekat uses on every section
--------------------------------------------------------------- */

.rail {
  width: 100%;
  max-width: var(--rail-max);
  margin-inline: auto;
  background: var(--surface);
  border-inline: 1px solid var(--border);
  border-top: 1px solid var(--border);
  padding-inline: var(--rail-pad);
  padding-block: clamp(48px, 6vw, 80px);
}

.hero { border-top: 0; }

@supports (max-width: 1px) {
  .rail { border-inline-color: var(--border); }
}

/* ---------------------------------------------------------------
   Type helpers
--------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: var(--s-10);
  align-items: end;
  margin-bottom: clamp(28px, 3.6vw, 44px);
}
.section-head h2 { margin-top: var(--s-4); max-width: 22ch; }
.section-note {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted);
  max-width: 34ch;
  padding-bottom: 4px;
}
.section-note a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.section-note a:hover { color: var(--accent-hover); }

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
}
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(11, 110, 79, 0.28);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hair);
}
.btn-ghost:hover { background: var(--surface-subtle); border-color: #B4C0B9; }

.btn-sm {
  min-height: 36px;
  height: 36px;
  padding: 0 14px;
  font-size: var(--fs-sm);
  border-radius: 9px;
}

.btn-invert {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 2px rgba(6, 40, 29, 0.25);
}
.btn-invert:hover { background: #EAF4EE; transform: translateY(-1px); }

.btn-outline-invert {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline-invert:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.7); }

.btn-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--t-fast) var(--ease-out);
}
.btn:hover .btn-icon { transform: translateX(2px); }

/* ---------------------------------------------------------------
   Header
--------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-rail {
  max-width: var(--rail-max);
  margin-inline: auto;
  padding-inline: var(--rail-pad);
  border-inline: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9063rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 34% 34%, #fff 0 2px, transparent 2.4px),
    var(--accent);
  flex: none;
}
.wordmark-text { line-height: 1; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.nav a:hover { background: var(--surface-subtle); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: var(--s-3); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  place-items: center;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast);
}
.menu-toggle span:first-child { transform: translate(-50%, -4px); }
.menu-toggle span:last-child { transform: translate(-50%, 4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translate(-50%, 0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translate(-50%, 0) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: var(--s-4) var(--rail-pad) var(--s-5);
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu nav a:not(.btn) {
  padding: 13px 4px;
  font-size: var(--fs-md);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: var(--s-4); width: 100%; }
.mobile-menu-foot {
  margin-top: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--subtle);
}

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(44px, 6.4vw, 84px) clamp(36px, 5vw, 64px);
  background: linear-gradient(180deg, #FBFCFA 0%, var(--surface) 58%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(16, 26, 21, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 26, 21, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 78% -10%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 70% at 78% -10%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.14);
  flex: none;
}

.hero h1 {
  margin-top: var(--s-6);
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 600;
  max-width: 16ch;
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lede {
  margin-top: var(--s-6);
  max-width: 46ch;
  font-size: var(--fs-md);
  line-height: 1.62;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-8);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-4);
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 52ch;
}
.hero-meta strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
}
.hero-meta-sep {
  width: 1px;
  height: 12px;
  background: var(--border-strong);
}

.hero-scroll {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 44px);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--subtle);
}
.hero-scroll-line {
  width: 36px;
  height: 1px;
  background: var(--border-strong);
}

/* Working brief card */

.brief {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.brief-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 14px var(--s-5);
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}
.brief-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brief-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  padding: 3px 9px;
}

.brief-rows { padding: 4px var(--s-5) 0; }
.brief-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.brief-row:last-child { border-bottom: 0; }
.brief-row dt { color: var(--subtle); font-size: var(--fs-xs); letter-spacing: 0.02em; }
.brief-row dd { color: var(--ink); font-weight: 500; }
.brief-dim { color: var(--subtle); font-weight: 400; }

.brief-cover {
  margin: 0 var(--s-5);
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-subtle);
}
.brief-cover-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
}
.brief-count { font-size: var(--fs-xs); color: var(--accent); font-weight: 600; }
.dot-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  margin-top: 10px;
}
.dot-grid li {
  height: 20px;
  border-radius: 4px;
  background: var(--accent);
  opacity: 0.22;
}
.dot-grid li:nth-child(-n+3) { opacity: 0.85; }
.dot-grid li:nth-child(4) { opacity: 0.6; }
.dot-grid li:nth-child(5) { opacity: 0.45; }
.brief-note {
  margin-top: 9px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--subtle);
}

.brief-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding: 14px var(--s-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  transition: background var(--t-fast) var(--ease-out);
}
.brief-foot:hover { background: var(--surface-subtle); }
.brief-arrow { transition: transform var(--t-base) var(--ease-out); }
.brief-foot:hover .brief-arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------
   Logo strip
--------------------------------------------------------------- */

.logos {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding-block: 20px;
}
.logos-label {
  flex: none;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
  font-weight: 600;
  white-space: nowrap;
}
.brand-list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  min-width: 0;
}
.brand-list li {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--subtle);
  white-space: nowrap;
  display: flex;
  align-items: center;
}
/* Logos are height-normalised and width-auto so each keeps its own aspect
   ratio. Every source was trimmed of surrounding padding first, so the optical
   size across the row is even even though the files differ wildly in shape. */
.brand-list img {
  height: 24px;
  width: auto;
  max-width: 170px;
  display: block;
  opacity: 0.92;
  transition: opacity var(--t-base) var(--ease-out);
}
.brand-list li:hover img { opacity: 1; }

/* ---------------------------------------------------------------
   Stats
--------------------------------------------------------------- */

.stats { padding-block: 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stats-grid li {
  padding: clamp(22px, 3vw, 32px) clamp(16px, 2.4vw, 28px);
  border-left: 1px solid var(--border);
}
.stats-grid li:first-child { padding-left: 0; border-left: 0; }
.stat-num {
  display: block;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}
.stat-suffix { color: var(--accent); }
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--muted);
  max-width: 24ch;
}

/* ---------------------------------------------------------------
   Work showcase (Cekat industry strip)
--------------------------------------------------------------- */

.showcase-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: var(--s-10);
  align-items: start;
  margin-bottom: var(--s-8);
}
.showcase-head h2 {
  font-size: clamp(1.85rem, 3.3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 19ch;
}
.showcase-intro p {
  font-size: var(--fs-sm);
  line-height: 1.62;
  color: var(--muted);
  max-width: 46ch;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease-out);
}
.text-link:hover { border-bottom-color: var(--accent); }
.text-link span { transition: transform var(--t-fast) var(--ease-out); }
.text-link:hover span { transform: translateX(3px); }

/* Strip of cards */

.strip {
  display: flex;
  gap: 8px;
  align-items: stretch;
  height: 340px;
}

.card {
  position: relative;
  flex: 0 1 86px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: #fff;
  background: var(--panel, #12211B);
  transition: flex-grow var(--t-layout) var(--ease-out),
              flex-basis var(--t-layout) var(--ease-out);
}
.card.is-active { flex: 1 1 auto; }

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(120% 80% at 70% 0%, rgba(126, 203, 168, 0.24), transparent 62%);
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(5, 18, 13, 0) 38%, rgba(5, 18, 13, 0.86) 100%);
  pointer-events: none;
}

/* Brand marks — a real logo where one could be sourced, a typographic
   wordmark plate otherwise. Both are white on the dark panel, so all eight
   cards read as a single system. */
.card-mark {
  position: absolute;
  inset: 0 0 62px 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 26px 22px;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}
.card.is-active .card-mark { opacity: 1; }
.card-mark img {
  max-width: 80%;
  max-height: 88px;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
/* the Tsinghua seal is detailed; give it room to resolve */
.card-mark--seal img { max-height: 128px; }
.card-mark--word span {
  font-family: var(--font);
  font-size: clamp(1.15rem, 1.9vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  text-align: center;
  text-wrap: balance;
}

.card-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.card.is-active .card-label { font-size: 1.1875rem; letter-spacing: -0.025em; }

/* Collapsed cards are 86px wide, so horizontal text wraps into a cramped
   block. Run the name vertically instead: it stays scannable and reads as a
   deliberate accordion spine rather than an empty sliver. */
.card:not(.is-active) .card-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  left: 50%;
  right: auto;
  bottom: 14px;
  margin-left: -7px;
  font-size: 11.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
}

.card-index {
  position: absolute;
  top: 11px;
  left: 12px;
  z-index: 3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}
.card.is-active .card-index { opacity: 1; }

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

/* Art (all light sage so grayscale reads well) */

.art-line { fill: none; stroke: #BFE3CF; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.art-fill { fill: #BFE3CF; opacity: 0.14; }
.art-node { fill: #BFE3CF; }
.art-grid path { fill: none; stroke: #BFE3CF; opacity: 0.16; stroke-width: 1; }
.art-cells rect { fill: #BFE3CF; }
.art-arcs path { fill: none; stroke: #BFE3CF; stroke-width: 2; opacity: 0.65; }
.art-rings circle { fill: none; stroke: #BFE3CF; stroke-width: 2; opacity: 0.5; }
.art-bars rect { fill: #BFE3CF; opacity: 0.82; }
.art-target { fill: none; stroke: #BFE3CF; stroke-width: 1.5; stroke-dasharray: 5 5; opacity: 0.45; }
.art-dots circle { fill: #BFE3CF; }
.art-blocks rect { fill: #BFE3CF; opacity: 0.9; }
.art-steps path { fill: #BFE3CF; opacity: 0.85; }

/* Detail row under the strip */

.showcase-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-6);
  align-items: start;
  margin-top: var(--s-6);
}

.project-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  grid-template-areas:
    "text chips"
    "link chips";
  gap: var(--s-3) var(--s-8);
  align-items: start;
  min-height: 120px;
  animation: panel-in var(--t-base) var(--ease-out) both;
}
.project-panel[hidden] { display: none; }

.project-text {
  grid-area: text;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--muted);
  max-width: 48ch;
}
.project-solutions { grid-area: chips; }
.project-panel .text-link { grid-area: link; margin-top: 0; justify-self: start; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chips li {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 5px 11px;
  white-space: nowrap;
}

.showcase-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 2px;
}
.arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arrow:hover { background: var(--surface-subtle); border-color: #B4C0B9; }
.arrow:active { transform: scale(0.96); }

/* ---------------------------------------------------------------
   Approach tabs
--------------------------------------------------------------- */

.tabs {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-hair);
}

.tablist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-2);
  background: var(--surface-subtle);
  border-right: 1px solid var(--border);
}

.tab {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-align: left;
  padding: 13px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}
.tab:hover { background: rgba(16, 26, 21, 0.035); color: var(--ink); }
.tab[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-hair);
}
.tab-num { font-size: 10px; color: var(--subtle); flex: none; }
.tab[aria-selected="true"] .tab-num { color: var(--accent); }
.tab-label { line-height: 1.35; }

.panels { padding: clamp(22px, 3vw, 36px); min-height: 400px; }
.panel { animation: panel-in var(--t-base) var(--ease-out) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.moves { display: grid; gap: 18px; }
.moves li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
}
.check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}
.moves h3 {
  font-size: 0.9063rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.moves p {
  margin-top: 4px;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}

.panel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------
   How I work
--------------------------------------------------------------- */

.operate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}
.operate-grid li {
  padding: var(--s-8) var(--s-6) 0 0;
  border-right: 1px solid var(--border);
}
.operate-grid li:last-child { border-right: 0; padding-right: 0; }
.operate-grid li + li { padding-left: var(--s-6); }
.operate-num {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.operate-grid h3 {
  margin-top: 10px;
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.operate-grid p {
  margin-top: 8px;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted);
  max-width: 32ch;
}
.operate-tag {
  display: inline-block;
  margin-top: var(--s-4);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 2px 9px;
  background: var(--surface-soft);
}

/* ---------------------------------------------------------------
   Path
--------------------------------------------------------------- */

.path-list { border-top: 1px solid var(--border); }
.path-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 120px;
  gap: var(--s-6);
  align-items: baseline;
  padding: 18px 10px;
  border-bottom: 1px solid var(--border);
  transition: background var(--t-base) var(--ease-out), padding-left var(--t-base) var(--ease-out);
}
.path-row:hover {
  background: var(--surface-soft);
  padding-left: 16px;
}
.path-years {
  font-size: 12px;
  color: var(--subtle);
  letter-spacing: 0.01em;
}
.path-body h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.4;
}
.path-at { color: var(--accent); font-weight: 600; }
.path-body p {
  margin-top: 4px;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--muted);
  max-width: 66ch;
}
.path-place {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  text-align: right;
  line-height: 1.45;
  text-wrap: balance;
}

/* ---------------------------------------------------------------
   Recognition (dark band)
--------------------------------------------------------------- */

.rail-dark {
  background: var(--ink-bg);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--on-dark);
}
.rail-dark .eyebrow { color: #86D3AF; }
.rail-dark h2 { color: #fff; }
.rail-dark .section-note { color: var(--on-dark-muted); }

.recognition-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: var(--s-10);
  align-items: end;
}
.recognition-top h2 { margin-top: var(--s-4); max-width: 20ch; }

.recognition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: var(--s-10);
}
.recog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.035);
}
.recog-mark {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #8FD8B6;
  border: 1px solid rgba(143, 216, 182, 0.32);
  border-radius: 6px;
  padding: 3px 7px;
  line-height: 1.4;
}
.recog-card h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: #fff;
}
.recog-card p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--on-dark-muted);
  max-width: 44ch;
}
/* ---------------------------------------------------------------
   About
--------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about-head h2 { margin-top: var(--s-4); max-width: 16ch; }
.about-facts {
  margin-top: var(--s-8);
  border-top: 1px solid var(--border);
}
.about-facts li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.about-facts span { color: var(--subtle); white-space: nowrap; }
.about-facts strong { font-weight: 500; color: var(--ink); text-align: right; }

.about-copy p {
  font-size: var(--fs-base);
  line-height: 1.72;
  color: var(--muted);
}
.about-copy p + p { margin-top: var(--s-4); }
.about-lede {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.about-quote {
  margin-top: var(--s-6);
  padding-left: var(--s-5);
  border-left: 2px solid var(--accent);
}
.about-quote p {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: -0.012em;
}

/* ---------------------------------------------------------------
   Contact (accent band)
--------------------------------------------------------------- */

.rail-accent {
  position: relative;
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  overflow: hidden;
}
.rail-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 100% 100%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 100% at 100% 100%, #000, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.rail-accent .eyebrow { color: #BFE7D5; }
.rail-accent h2 {
  color: #fff;
  margin-top: var(--s-4);
  max-width: 14ch;
}
.contact-lede {
  margin-top: var(--s-4);
  max-width: 44ch;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--on-accent-muted);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-8);
}

.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r-lg);
  background: rgba(6, 48, 35, 0.34);
  backdrop-filter: blur(8px);
  padding: var(--s-5);
}
.contact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.contact-card .micro { color: rgba(255, 255, 255, 0.88); }
.contact-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #CFF3E1;
}
.contact-live .live-dot { background: #7FE3B4; box-shadow: 0 0 0 3px rgba(127, 227, 180, 0.18); }

.contact-email {
  display: inline-block;
  margin-top: var(--s-4);
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 2px;
  overflow-wrap: anywhere;
}
.contact-email:hover { border-bottom-color: #fff; }
.contact-hint {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}
.contact-hint code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
}

.contact-rows {
  margin-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.contact-rows > div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
}
.contact-rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-rows dt { color: rgba(255, 255, 255, 0.86); }
.contact-rows dd { color: #fff; font-weight: 500; text-align: right; }
.contact-rows a { border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.contact-rows a:hover { border-bottom-color: #fff; }

/* ---------------------------------------------------------------
   On camera — video wall (Cekat's proof grid: poster, play, person)
--------------------------------------------------------------- */

.press-head { display: block; }
.press-head h2 { max-width: 20ch; }
.press-head .section-note {
  max-width: 62ch;
  margin-top: var(--s-4);
  padding-bottom: 0;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6) 22px;
}

.press-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.press-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--surface-subtle);
  box-shadow: var(--shadow-hair);
}
.press-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-layout) var(--ease-out);
}
.press-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 20, 15, 0.34), rgba(9, 20, 15, 0) 55%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}

.press-play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 22px -8px rgba(9, 20, 15, 0.6);
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.press-play svg { margin-left: 2px; }

.press-card:hover .press-thumb img,
.press-card:focus-visible .press-thumb img { transform: scale(1.035); }
.press-card:hover .press-thumb::after,
.press-card:focus-visible .press-thumb::after { opacity: 1; }
.press-card:hover .press-play,
.press-card:focus-visible .press-play { transform: scale(1.06); background: #fff; }

.press-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-3);
}
.press-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface-subtle);
}
.press-lines {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.press-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.press-role {
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lightbox: nothing third-party loads until a card is clicked */
.press-lightbox {
  width: min(960px, 92vw);
  max-width: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-dark);
}
.press-lightbox::backdrop { background: rgba(8, 16, 12, 0.8); }
.press-lightbox-body {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-bg);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}
.press-frame { aspect-ratio: 16 / 9; background: #05100C; }
.press-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.press-lightbox-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
}
.press-lightbox-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
}
.press-lightbox-link {
  flex: none;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: #86D3AF;
}
.press-lightbox-link:hover { color: #fff; }
.press-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-pill);
  background: rgba(6, 14, 11, 0.72);
  color: #fff;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out);
}
.press-lightbox-close:hover { background: rgba(6, 14, 11, 0.95); }

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-rail {
  max-width: var(--rail-max);
  margin-inline: auto;
  padding-inline: var(--rail-pad);
  border-inline: 1px solid var(--border);
  padding-block: var(--s-12) var(--s-5);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-8);
  align-items: start;
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--border);
}
.footer-brand p {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted);
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px var(--s-10);
  font-size: var(--fs-sm);
}
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-6);
  padding-top: var(--s-4);
  font-size: 11.5px;
  color: var(--subtle);
}
.footer-note { color: var(--subtle); }

/* ---------------------------------------------------------------
   Reveal + motion budget
--------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .brief { max-width: 520px; }
  .strip { height: 300px; }
  .card { flex-basis: 72px; }
  .card.is-active .card-label { font-size: 1.0625rem; }
  .project-panel { grid-template-columns: minmax(0, 1fr) minmax(200px, 260px); gap: var(--s-3) var(--s-6); }
  .tabs { grid-template-columns: minmax(0, 1fr); }
  .tablist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .tab { align-items: flex-start; }
  .panels { min-height: 0; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header-cta { display: none; }
  .section-head,
  .recognition-top {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-4);
  }
  .section-head h2 { max-width: 24ch; }
  .section-note { max-width: 46ch; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid li { border-top: 1px solid var(--border); }
  .stats-grid li:nth-child(1),
  .stats-grid li:nth-child(2) { border-top: 0; }
  .stats-grid li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .operate-grid { grid-template-columns: minmax(0, 1fr); }
  .operate-grid li {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: var(--s-5) 0;
  }
  .operate-grid li:last-child { border-bottom: 0; }
  .operate-grid li + li { padding-left: 0; }
  .path-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px var(--s-4);
  }
  .path-years { grid-column: 1 / -1; }
  .path-place { grid-column: 2; grid-row: 1; }
  .about-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .recognition-grid { grid-template-columns: minmax(0, 1fr); }
  .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-4); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .rail { padding-block: 44px; }
  .hero { padding-block: 32px 36px; }
  .hero h1 { max-width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 8px; }
  .hero-meta-sep { display: none; }
  .hero-meta-item { width: 100%; }
  .hero-scroll { display: none; }
  .logos { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 16px; }
  .brand-list { gap: 12px 20px; font-size: 0.875rem; }
  .brand-list img { height: 22px; max-width: 150px; }
  .stats-grid li { padding: 18px 14px 18px 0; }
  .stat-label { font-size: 10.5px; }
  .showcase-head { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    height: auto;
  }
  .card { flex: none; height: 132px; }
  .card.is-active { grid-column: 1 / -1; height: 188px; }
  .card.is-active .card-label { font-size: 1.0625rem; }
  .card-label { font-size: 11.5px; }
  .showcase-body { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .project-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "text"
      "chips"
      "link";
    gap: var(--s-4);
    min-height: 0;
  }
  .project-text { max-width: none; }
  .showcase-nav { justify-content: flex-end; padding-top: 0; }
  .moves { gap: 16px; }
  .path-row:hover { padding-left: 10px; }
  .contact-card { padding: var(--s-4); }
  .press-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .press-meta { padding-top: 10px; }
  .press-lightbox-foot { flex-direction: column; align-items: flex-start; gap: var(--s-1); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px var(--s-6); }
  .footer-rail { padding-block: 40px var(--s-4); }
}

@media (max-width: 380px) {
  .wordmark-text { font-size: 0.8438rem; }
  .brief-row { grid-template-columns: 84px minmax(0, 1fr); }
}

/* ---------------------------------------------------------------
   Chatwoot pass — colour bands, tint chips, hand-drawn ornaments
   Layered over the Cekat console. Layout, type scale and spacing
   tokens are untouched; colour and decoration are what changed.
--------------------------------------------------------------- */

/* Eyebrow reads as a sticker chip, Chatwoot's section label */
.eyebrow {
  padding: 5px 12px 5px 11px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  letter-spacing: 0.11em;
}
.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 1;
}
.rail-dark .eyebrow,
.rail-accent .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #EAF6EF;
}
.rail-dark .eyebrow::before { background: #9BE3BF; }

/* Hero: warm wash, soft colour blooms, scribbled underline, sparkles */
.hero {
  background:
    radial-gradient(54% 62% at 96% -6%, rgba(255, 233, 166, 0.62), transparent 66%),
    radial-gradient(48% 56% at -4% 104%, rgba(216, 240, 225, 0.72), transparent 68%),
    linear-gradient(180deg, #FEFAF4 0%, var(--surface) 62%);
}
.hero::before {
  background-image:
    linear-gradient(90deg, rgba(88, 68, 46, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(88, 68, 46, 0.05) 1px, transparent 1px);
}
.hero h1 em {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9.6c41-5.6 80-7.1 119-5.3 34 1.5 69 .3 115-3.6' fill='none' stroke='%23E0562F' stroke-width='3.4' stroke-linecap='round' stroke-opacity='0.9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 0.04em);
  background-size: 100% 0.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.spark {
  width: 0.44em;
  height: 0.44em;
  margin-left: 0.08em;
  vertical-align: 0.34em;
  overflow: visible;
}

/* Logo strip: Chatwoot's tinted partner band */
.logos {
  background: var(--tint-sand);
  border-block-color: #EBD8BF;
}
.logos-label { color: #7A5530; }
.brand-list li { color: var(--ink-soft); }

/* Numbers band: cream ground with a colour tick per stat */
.stats {
  background: var(--surface-soft);
  border-block-color: var(--border);
}
.stats-grid li::before {
  content: "";
  display: block;
  width: 26px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: var(--r-pill);
  background: var(--dot, var(--accent));
}
.stats-grid li:nth-child(2) { --dot: var(--pop-coral); }
.stats-grid li:nth-child(3) { --dot: var(--pop-violet); }
.stats-grid li:nth-child(4) { --dot: var(--pop-sun); }

/* Work: sticker, tinted chips, warmer card art */
.sticker {
  display: inline-block;
  margin-top: var(--s-3);
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--tint-sun);
  color: #4A3703;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  transform: rotate(-1.8deg);
  transform-origin: left center;
}
.chips li {
  background: var(--tint-mint);
  border-color: #BEDFCC;
}
.chips li:nth-child(4n + 2) { background: var(--tint-sun); border-color: #EBD593; }
.chips li:nth-child(4n + 3) { background: var(--tint-sky); border-color: #C4D6F2; }
.chips li:nth-child(4n + 4) { background: var(--tint-rose); border-color: #EFC3D0; }
.card.is-active { box-shadow: 0 18px 34px -22px rgba(25, 20, 16, 0.6); }
.card.is-active .card-label { color: #FFE9A6; }
.arrow:hover { background: var(--tint-sand); border-color: var(--border-strong); }

/* Approach: warm rail, selected tab gets an accent edge */
.tabs { box-shadow: 0 1px 2px rgba(25, 20, 16, 0.04); }
.tablist { background: #F6EEE3; }
.tab:hover { background: rgba(25, 20, 16, 0.045); }
.tab[aria-selected="true"] {
  border-color: var(--border);
  box-shadow: inset 3px 0 0 var(--accent), 0 1px 2px rgba(25, 20, 16, 0.05);
}
.panel-foot {
  border-top: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--tint-mint);
  color: #133526;
}
.panel-foot .text-link { color: var(--accent); }

/* How I work: three tinted cards instead of hairline columns */
.operate-grid {
  border-top: 0;
  gap: var(--s-4);
}
.operate-grid li,
.operate-grid li + li {
  padding: var(--s-6);
  border: 1px solid rgba(25, 20, 16, 0.08);
  border-radius: var(--r-lg);
  background: var(--tint-mint);
}
.operate-grid li + li { padding-left: var(--s-6); }
.operate-grid li:last-child { padding-right: var(--s-6); }
.operate-grid li:nth-child(2) { background: var(--tint-sun); }
.operate-grid li:nth-child(3) { background: var(--tint-lilac); }
.operate-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(25, 20, 16, 0.1);
  font-size: 11px;
  color: var(--ink);
}
.operate-grid h3 { margin-top: var(--s-3); }
.operate-tag {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(25, 20, 16, 0.1);
  color: #4B4034;
}

/* Path: warm hover, coloured years */
.path-row:hover { background: var(--tint-sand); }
.path-years { color: var(--accent); }

/* Recognition: ink band with a dotted ornament and colour-coded marks */
.rail-dark {
  background-color: var(--ink-bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
}
.recog-mark { border-radius: var(--r-pill); }
.recognition-grid li:nth-child(1) .recog-mark {
  color: #9BE3BF;
  border-color: rgba(155, 227, 191, 0.4);
}
.recognition-grid li:nth-child(2) .recog-mark {
  color: #FFE49B;
  border-color: rgba(255, 228, 155, 0.4);
}
.recognition-grid li:nth-child(3) .recog-mark {
  color: #D3C4FF;
  border-color: rgba(211, 196, 255, 0.42);
}
.recognition-grid li:nth-child(4) .recog-mark {
  color: #FFC3D2;
  border-color: rgba(255, 195, 210, 0.42);
}
.recog-card { background: rgba(255, 255, 255, 0.045); }

/* On camera: coral play button, warm thumbnail ring */
.press-play {
  background: var(--pop-coral);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px -12px rgba(224, 86, 47, 0.9);
}
.press-card:hover .press-play,
.press-card:focus-visible .press-play { background: #C74724; }
.press-thumb { box-shadow: inset 0 0 0 1px rgba(25, 20, 16, 0.06); }

/* About: quote becomes a sun sticker */
.about { background: var(--surface-soft); }
.about-quote {
  border-left: 0;
  border-radius: var(--r-lg);
  background: var(--tint-sun);
  padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6);
  color: #3F2F05;
}
.about-quote p, .about-quote cite { color: #3F2F05; }

/* Contact: greener, with a warm bloom in the corner */
.rail-accent {
  background-image: radial-gradient(46% 62% at 100% 0%, rgba(255, 233, 166, 0.26), transparent 70%);
  background-color: #0A6B4C;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.contact-card { background: rgba(6, 42, 31, 0.36); }

/* Footer sits on the cream ground */
.site-footer { background: var(--tint-sand); }

@media (max-width: 900px) {
  .operate-grid { gap: var(--s-3); }
  .operate-grid li,
  .operate-grid li + li {
    padding: var(--s-5);
    border-right: 1px solid rgba(25, 20, 16, 0.08);
  }
  .spark { width: 0.4em; height: 0.4em; }
}

@media (max-width: 640px) {
  .sticker { transform: none; }
}

/* ---------------------------------------------------------------
   Reference pass — tiled ornaments, sticker depth, graded colour

   The structure above stays exactly as it is. This layer adds the
   detail language of the chatwoot.com capture:
   · pixel-tile fields that frame a card and dissolve at the edges
   · tile bands used as section rules, fading out at both ends
   · hard offset "sticker" shadows sitting over soft blurred grounds
   · tonal washes so sections ramp into each other instead of butting
--------------------------------------------------------------- */

:root {
  --tile-field: url("assets/img/tile-field.svg");
  --tile-unit: 288px 48px;
  --sticker-ink: #221B15;
  --shadow-sticker: 3px 3px 0 var(--sticker-ink);
  --shadow-sticker-lg: 5px 6px 0 var(--sticker-ink);
  --shadow-near: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(25, 20, 16, 0.06);
  --shadow-mid: 0 2px 4px rgba(25, 20, 16, 0.05), 0 14px 22px -20px rgba(25, 20, 16, 0.5);
  --shadow-far: 0 2px 6px rgba(25, 20, 16, 0.05), 0 20px 30px -26px rgba(25, 20, 16, 0.45),
    0 54px 70px -58px rgba(25, 20, 16, 0.5);
}

/* ---------- Working brief ---------- */

.brief {
  position: relative;
  z-index: 2;
  border-color: #E7DACA;
  box-shadow:
    var(--shadow-near),
    0 10px 18px -16px rgba(25, 20, 16, 0.5),
    0 38px 54px -40px rgba(25, 20, 16, 0.58);
}

.brief-head {
  justify-content: flex-start;
  gap: 10px;
  background: linear-gradient(180deg, #FFFDFA 0%, var(--surface-soft) 100%);
}

.brief-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--tint-sun);
  color: #6A4A10;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(160, 118, 36, 0.26);
}

.brief-title { margin-right: auto; }
.brief-status { box-shadow: inset 0 0 0 1px rgba(11, 110, 79, 0.14); }

/* ---------- Tile bands as section rules ---------- */

.tile-rule {
  position: relative;
  max-width: var(--rail-max);
  margin-inline: auto;
  height: 30px;
  overflow: hidden;
  border-block: 1px solid var(--border);
  border-inline: 1px solid var(--border);
  background-color: var(--bg);
  background-image: var(--tile-field);
  background-size: var(--tile-unit);
  background-position: center;
}
.tile-rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(250, 243, 234, 0) 0%,
    rgba(250, 243, 234, 0.92) 26%,
    rgba(250, 243, 234, 0.92) 74%,
    rgba(250, 243, 234, 0) 100%
  );
}

/* The band that hands the page over to the dark Recognition rail */
.tile-rule--ink {
  border-color: #23302A;
  background-color: var(--ink-bg);
}
.tile-rule--ink::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--tile-field);
  background-size: var(--tile-unit);
  background-position: center;
  opacity: 0.5;
}
.tile-rule--ink::after {
  background: linear-gradient(
    90deg,
    rgba(18, 24, 21, 0) 0%,
    rgba(18, 24, 21, 0.94) 24%,
    rgba(18, 24, 21, 0.94) 76%,
    rgba(18, 24, 21, 0) 100%
  );
}

/* ---------- Graded colour ---------- */

.hero {
  background:
    radial-gradient(52% 58% at 100% -8%, rgba(255, 219, 138, 0.58), transparent 66%),
    radial-gradient(48% 42% at 50% 106%, rgba(169, 198, 238, 0.4), transparent 74%),
    radial-gradient(50% 58% at -6% 100%, rgba(216, 240, 225, 0.8), transparent 68%),
    linear-gradient(180deg, #FEFAF4 0%, var(--surface) 56%, #F7FBF8 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background:
    linear-gradient(90deg, rgba(169, 198, 238, 0) 0%, rgba(169, 198, 238, 0.16) 38%, rgba(255, 233, 166, 0.2) 74%, rgba(216, 240, 225, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55));
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 92%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 92%);
  pointer-events: none;
  z-index: 0;
}

.hero-scroll-line {
  background: linear-gradient(90deg, var(--border-strong), rgba(214, 198, 179, 0));
}

.logos { background: linear-gradient(180deg, #F9ECDA 0%, var(--tint-sand) 60%, #F7E7D2 100%); }
.stats { background: linear-gradient(180deg, #FCF8F2 0%, #FAF4EC 100%); }
.about { background: linear-gradient(180deg, #FBF6EE 0%, var(--surface-soft) 42%, #F8F1E7 100%); }

/* ---------- Sticker depth on the small parts ---------- */

.sticker {
  border: 1.5px solid var(--sticker-ink);
  box-shadow: var(--shadow-sticker);
}

.pill { box-shadow: var(--shadow-near); }

.chips li {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 2px 4px -2px rgba(25, 20, 16, 0.2);
}

.arrow {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 3px rgba(25, 20, 16, 0.07),
    0 10px 16px -14px rgba(25, 20, 16, 0.5);
}

.card { box-shadow: var(--shadow-mid); }
.card.is-active {
  box-shadow:
    0 2px 6px rgba(25, 20, 16, 0.06),
    0 22px 36px -24px rgba(25, 20, 16, 0.6),
    0 60px 80px -70px rgba(25, 20, 16, 0.6);
}

.tabs { box-shadow: var(--shadow-near), var(--shadow-mid); }

.operate-grid li { box-shadow: var(--shadow-near), var(--shadow-mid); }

.recog-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 40px -34px rgba(0, 0, 0, 0.8); }

.about-quote {
  border: 1.5px solid var(--sticker-ink);
  box-shadow: var(--shadow-sticker-lg);
}

.press-card {
  box-shadow:
    var(--shadow-near),
    0 4px 8px -6px rgba(25, 20, 16, 0.25),
    0 30px 44px -38px rgba(25, 20, 16, 0.6);
}

.press-play {
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.22),
    0 10px 20px -12px rgba(5, 16, 12, 0.75);
}

.contact-card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 30px 60px -42px rgba(0, 0, 0, 0.65),
    0 70px 90px -80px rgba(0, 0, 0, 0.6);
}

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  .tile-rule { height: 26px; }
}

/* ---------------------------------------------------------------
   Hero banner

   The stage photo is the banner: full-bleed behind the whole hero,
   not a strip. A scrim keeps the copy column dark while leaving the
   speaker open on the right, and the brief card becomes frosted
   glass so the photograph reads through it.
--------------------------------------------------------------- */

.hero {
  padding-block: 0;
  overflow: hidden;
  background: #0C1310;
  isolation: isolate;
}

/* The retired canvas ornaments must not sit over the photograph */
.hero::before,
.hero::after { content: none; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: saturate(0.92) contrast(1.03) brightness(0.93);
  transform: scale(1.02);
  transform-origin: 62% 45%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(96deg,
      rgba(9, 14, 11, 0.95) 0%,
      rgba(9, 14, 11, 0.90) 30%,
      rgba(9, 14, 11, 0.76) 44%,
      rgba(9, 14, 11, 0.44) 55%,
      rgba(9, 14, 11, 0.16) 72%,
      rgba(9, 14, 11, 0.42) 100%),
    linear-gradient(180deg,
      rgba(8, 12, 10, 0.55) 0%,
      rgba(8, 12, 10, 0) 20%,
      rgba(8, 12, 10, 0.16) 72%,
      rgba(8, 12, 10, 0.62) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(600px, 86vh, 860px);
  background: transparent;
  border-color: transparent;
  padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 72px);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* ---------- Copy sits on the photograph ---------- */

.hero-copy { max-width: 560px; }

.hero .pill {
  background: rgba(255, 253, 247, 0.94);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.75);
}

.hero h1 {
  max-width: 15ch;
  color: #FFFCF4;
  text-shadow: 0 2px 30px rgba(4, 10, 8, 0.35);
}
.hero h1 em { color: #FFE29A; }

.hero-lede { color: rgba(255, 252, 244, 0.88); }

.hero-meta {
  border-top-color: rgba(255, 255, 255, 0.24);
  color: rgba(255, 252, 244, 0.8);
}
.hero-meta strong { color: #FFFCF4; }
.hero-meta-sep { background: rgba(255, 255, 255, 0.32); }

.hero-scroll { color: rgba(255, 252, 244, 0.7); }
.hero-scroll-line {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
}

/* ---------- Working brief, frosted glass over the photograph ---------- */

.hero .brief {
  justify-self: stretch;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(253, 247, 238, 0.84);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  backdrop-filter: blur(20px) saturate(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 14px 26px -18px rgba(0, 0, 0, 0.7),
    0 46px 62px -46px rgba(0, 0, 0, 0.8);
}

.hero .brief-head {
  border-bottom-color: rgba(120, 96, 72, 0.22);
  background: transparent;
}

.hero .brief-foot {
  border-top-color: rgba(120, 96, 72, 0.22);
  background: rgba(255, 255, 255, 0.42);
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 4vw, 36px);
    align-items: start;
  }
  .hero-copy { max-width: none; }
  .hero .brief { max-width: 520px; }
  .hero-inner {
    min-height: 0;
    padding-block: clamp(210px, 58vw, 300px) clamp(36px, 5vw, 64px);
  }
  .hero-bg-img { object-position: 50% 50%; }
  .hero-veil {
    background:
      linear-gradient(180deg,
        rgba(9, 14, 11, 0.18) 0%,
        rgba(9, 14, 11, 0.4) 14%,
        rgba(9, 14, 11, 0.88) 22%,
        rgba(9, 14, 11, 0.93) 100%),
      linear-gradient(100deg, rgba(6, 10, 8, 0.4) 0%, rgba(6, 10, 8, 0.12) 60%, rgba(6, 10, 8, 0.45) 100%);
  }
}

@media (max-width: 640px) {
  .hero-scroll { display: none; }
}

/* ---------------------------------------------------------------
   Research & publications — the paper shelf
   A warm-off-white band with a tiled spine on the lead card, so the
   academic work reads as a dossier rather than another card grid.
--------------------------------------------------------------- */

.research {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% -10%, rgba(255, 233, 166, 0.55), rgba(255, 233, 166, 0) 46%),
    linear-gradient(180deg, var(--surface) 0%, #FEFBF4 46%, #F9F2E6 100%);
}
.research > * { position: relative; }

.paper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.paper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 26px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-hair);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}
.paper:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lift);
}

.paper-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: var(--s-3);
  align-items: start;
  padding: clamp(24px, 3vw, 36px);
  padding-left: clamp(34px, 3.6vw, 48px);
  position: relative;
  overflow: hidden;
  background: linear-gradient(158deg, #FFFFFF 0%, #FFFDF7 52%, var(--tint-sand) 100%);
  border-color: #E7D6BC;
}
.paper-lead::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 18px;
  background-color: var(--bg);
  background-image: var(--tile-field);
  background-size: 96px 16px;
  background-repeat: repeat-y;
  background-position: center top;
  border-right: 1px solid var(--border);
}
.paper-lead .paper-top { grid-column: 1 / -1; grid-row: 1; }
.paper-lead h3 { grid-column: 1; grid-row: 2; }
.paper-lead .paper-dek { grid-column: 2; grid-row: 2; margin-top: 0; }
.paper-lead .paper-meta { grid-column: 2; grid-row: 3; margin-top: 0; }
.paper-lead .text-link { grid-column: 1; grid-row: 3; align-self: end; }

.paper-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.paper-type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.stage {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.5;
  border: 1px solid transparent;
}
.stage::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.stage-complete { background: var(--tint-mint); border-color: #B7DDC7; color: #0A5A3F; }
.stage-progress { background: var(--tint-sun); border-color: #EAD28C; color: #594300; }
.stage-pending  { background: var(--tint-sky);  border-color: #C2D4F1; color: #2A406E; }
.stage-draft    { background: var(--tint-lilac); border-color: #D5C9F2; color: #3F2D7C; }

.paper h3 {
  font-size: clamp(1.0625rem, 1.55vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.016em;
  color: var(--ink);
  text-wrap: balance;
}
.paper-lead h3 {
  margin-top: var(--s-2);
  font-size: clamp(1.4rem, 2.6vw, 1.875rem);
  line-height: 1.18;
  letter-spacing: -0.028em;
  max-width: 18ch;
}
.paper-dek {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}
.paper-lead .paper-dek {
  font-size: var(--fs-base);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 52ch;
}
.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-10);
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px dashed var(--border-strong);
}
.paper-meta div { display: flex; flex-direction: column; gap: 2px; }
.paper-meta dt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
}
.paper-meta dd { font-size: var(--fs-sm); color: var(--ink-soft); }

.paper-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--subtle);
}
.paper .text-link { align-self: flex-start; margin-top: var(--s-1); font-size: var(--fs-sm); }

.builds {
  display: grid;
  grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
  gap: var(--s-4) var(--s-8);
  align-items: center;
  margin-top: var(--s-5);
  padding: 18px 20px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.builds-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4) var(--s-6);
}
.builds-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
  border-left: 2px solid var(--accent-line);
}
.builds-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--ink);
}
.builds-note { font-size: 12px; line-height: 1.45; color: var(--muted); }

/* ---------------------------------------------------------------
   Thought leadership — an editorial index
--------------------------------------------------------------- */

.writing {
  background: linear-gradient(180deg, var(--surface) 0%, #FFFCF5 100%);
}

.essay-list { border-top: 1px solid var(--border); }
.essay {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 148px;
  gap: var(--s-5) var(--s-6);
  align-items: start;
  padding: 22px 10px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: background var(--t-base) var(--ease-out),
              border-left-color var(--t-base) var(--ease-out),
              padding-left var(--t-base) var(--ease-out);
}
.essay:hover {
  background: var(--surface-soft);
  border-left-color: var(--accent);
  padding-left: 16px;
}
.essay-num {
  font-size: 12px;
  color: var(--subtle);
  padding-top: 3px;
}
.essay-series {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pop-violet);
}
.essay:nth-child(2) .essay-series { color: var(--pop-coral); }
.essay:nth-child(3) .essay-series { color: var(--accent); }
.essay:nth-child(4) .essay-series { color: #2F5AA8; }
.essay:nth-child(5) .essay-series { color: #8A5A00; }

.essay-body h3 {
  margin-top: 5px;
  font-size: clamp(1.0625rem, 1.75vw, 1.25rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
  max-width: 30ch;
  text-wrap: balance;
}
.essay-dek {
  margin-top: 7px;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted);
  max-width: 64ch;
}
.essay-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  padding-top: 2px;
  text-align: right;
}

.writing-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-6) var(--s-10);
  align-items: center;
  margin-top: var(--s-10);
  padding-top: var(--s-8);
  border-top: 1px dashed var(--border-strong);
}
.writing-quote {
  font-size: clamp(1.125rem, 2vw, 1.4375rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.022em;
  max-width: 36ch;
  text-wrap: balance;
}
.writing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-6);
}

/* Nav fits eight links while the desktop header is still shown */
@media (min-width: 901px) and (max-width: 1180px) {
  .nav a { padding-inline: 8px; font-size: 12.5px; }
  .header-cta { padding-inline: 12px; font-size: 12.5px; }
}

@media (max-width: 1080px) {
  .essay { grid-template-columns: 44px minmax(0, 1fr) 132px; }
}

@media (max-width: 900px) {
  .paper-grid { grid-template-columns: minmax(0, 1fr); }
  .paper-lead { grid-template-columns: minmax(0, 1fr); }
  .paper-lead .paper-top,
  .paper-lead h3,
  .paper-lead .paper-dek,
  .paper-lead .paper-meta,
  .paper-lead .text-link {
    grid-column: 1;
    grid-row: auto;
    align-self: auto;
  }
  .builds { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); align-items: start; }
  .builds-list { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .writing-foot { grid-template-columns: minmax(0, 1fr); }
  .writing-quote { max-width: 44ch; }
}

@media (max-width: 640px) {
  .paper-lead { padding-left: 28px; }
  .paper-lead::before { width: 12px; background-size: 72px 12px; }
  .paper-lead h3 { max-width: none; }
  .essay {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 4px var(--s-4);
    padding: 18px 8px;
  }
  .essay:hover { padding-left: 12px; }
  .essay-body h3 { max-width: none; }
  .essay-meta {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: var(--s-3);
    text-align: left;
    padding-top: 4px;
  }
  .writing-actions { flex-direction: column; align-items: stretch; }
  .writing-actions .btn { width: 100%; }
  .paper-meta { gap: var(--s-2) var(--s-6); }
}

/* ---------------------------------------------------------------
   Publications — the published record as a ruled index.
   Deliberately not cards: a paper is a citation, not a tile.
   --------------------------------------------------------------- */
.pub-block { max-width: 960px; margin-bottom: clamp(34px, 4.2vw, 54px); }

.pub-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.pub-block-title {
  margin: 0;
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
  font-weight: 600;
}
.pub-block-note {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}

.pub-list { list-style: none; margin: 0; padding: 0; }

.pub {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 128px;
  gap: clamp(16px, 2.2vw, 34px);
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.pub:last-child { padding-bottom: 20px; }

.pub-side { display: flex; flex-direction: column; gap: 4px; padding-top: 3px; }
.pub-year {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pub-kind {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pub-title {
  margin: 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.32;
  letter-spacing: -0.012em;
  font-weight: 600;
  max-width: 52ch;
  text-wrap: balance;
}
.pub-title a {
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 transparent;
  transition: box-shadow var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.pub:hover .pub-title a,
.pub-title a:focus-visible { color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent-line); }

.pub-authors { margin: 6px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.pub-finding {
  margin: 8px 0 0;
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}

.pub-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  align-self: stretch;
  padding: 2px 0 0 20px;
  border-left: 1px solid var(--border);
}
.pub-action {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 1px;
  white-space: nowrap;
}
.pub-action:hover { border-bottom-color: var(--accent); }

.pub-action-quiet { color: var(--subtle); border-bottom-color: transparent; }
.pub-action-quiet:hover { color: var(--accent); border-bottom-color: var(--accent-line); }

.sub-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding-bottom: var(--s-3);
  margin-bottom: clamp(16px, 2vw, 22px);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 860px) {
  .pub { grid-template-columns: 66px minmax(0, 1fr); }
  .pub-actions {
    grid-column: 2;
    flex-direction: row;
    gap: var(--s-4);
    padding: 12px 0 0;
    border-left: 0;
  }
}
@media (max-width: 560px) {
  .pub { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .pub-action { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 0; }
  .pub-side { flex-direction: row; align-items: baseline; gap: var(--s-3); }
  .pub-actions { grid-column: 1; }
}

/* ---------------------------------------------------------------
   Paper pages — one published paper per page, readable at length
   --------------------------------------------------------------- */
.paper-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.paper-bar-rail {
  max-width: var(--rail-max);
  margin-inline: auto;
  padding: var(--s-4) var(--rail-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.paper-back { margin-top: 0; font-size: var(--fs-sm); }
.paper-main { padding-block: clamp(34px, 5vw, 60px); }

.paper-kicker {
  margin: 0 0 var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.paper-page-title {
  margin: 0 0 var(--s-3);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  max-width: 24ch;
}
.paper-page-authors { margin: 0 0 var(--s-6); font-size: var(--fs-md); color: var(--muted); }

.paper-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-4);
  margin: 0 0 var(--s-6);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.paper-facts dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 3px;
}
.paper-facts dd { margin: 0; font-size: var(--fs-sm); }
.paper-facts dd a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }

.paper-links { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-8); }
.paper-page-h2 { margin: var(--s-8) 0 var(--s-3); font-size: var(--fs-h3); letter-spacing: -0.01em; }
.paper-abstract { margin: 0; max-width: 64ch; font-size: var(--fs-md); line-height: 1.72; color: var(--ink-soft); }
.bibtex {
  margin: 0;
  padding: var(--s-4);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: 0.75rem;
  line-height: 1.65;
}
.bibtex code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.paper-page-note {
  margin: var(--s-8) 0 0;
  padding-top: var(--s-4);
  border-top: 1px dashed var(--border);
  font-size: var(--fs-sm);
  color: var(--subtle);
  max-width: 64ch;
}
.paper-foot-bar { background: var(--surface); border-top: 1px solid var(--border); }
.paper-foot-bar p { margin: 0; font-size: var(--fs-sm); color: var(--subtle); }
