/* ============================================================
   Leonardo Tavares — Portfolio
   Geist + subtle serif italic · warm white · soft sage accent
   Direction 2 — Product Design + Editorial
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Newsreader:ital,opsz,wght@1,6..72,400&display=swap');

:root {
  /* ---- Color: warm white base ---- */
  --paper:        #F8F7F4;   /* page background */
  --paper-2:      #F2F1EC;   /* alt / sunken band */
  --surface:      #FCFBF9;   /* cards / raised */
  --ink:          #22221E;   /* primary text */
  --ink-2:        #5A5950;   /* secondary text */
  --ink-3:        #94938A;   /* tertiary / meta */
  --line:         #E8E6DF;   /* hairlines */
  --line-2:       #D6D3C9;   /* stronger lines */

  /* ---- Accent: soft sage (used sparingly) ---- */
  --accent:       #5C6B5A;
  --accent-deep:  #47543F;
  --accent-soft:  #E3E6DF;
  --accent-wash:  rgba(92,107,90,0.10);

  /* ---- Type: Geist + subtle Newsreader italic for emphasis ---- */
  --serif: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans:  'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --editorial: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono:  'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---- Spacing scale ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px; --sp-11: 160px;

  /* ---- Radius ---- */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px;

  /* ---- Layout ---- */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #F8F7F4; }

/* ---------------- Typography ---------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow.muted { color: var(--ink-3); }
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.no-rule::before { display: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.022em; line-height: 1.06; margin: 0; }

.display {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.display em { font-family: var(--editorial); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }

.h-lg { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; }
.h-md { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.08; }
.h-sm { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.15; }

.lead {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  max-width: 34ch;
}
.serif-italic { font-style: italic; font-family: var(--serif); }

.meta {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 500;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.btn .ic { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-primary:hover .ic { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-text { padding: 13px 4px; color: var(--ink); border-radius: 0; }
.btn-text:hover { color: var(--accent); }

/* link with underline draw */
.link {
  position: relative; color: var(--ink); font-weight: 500;
}
.link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.link:hover { color: var(--accent); }
.link:hover::after { transform: scaleX(1); }

/* ---------------- Layout helpers ---------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 12vw, 150px); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------------- Tags / chips ---------------- */
.tag {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2);
  background: transparent;
  transition: all 0.25s var(--ease);
}
.tag:hover { border-color: var(--ink); color: var(--ink); }

/* ---------------- Cards ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

/* ---------------- Placeholder visual ---------------- */
/* image-slot empty-state caption/icon use currentColor inside shadow DOM;
   [id] selector (0,1,1) outranks the component's :host (0,1,0) so it goes light on dark */
image-slot[id] { color: rgba(34, 34, 30, 0.42); }
.ph {
  position: relative; overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.ph::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   SITE CHROME — header / footer
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { font-family: var(--serif); font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.brand b { font-weight: 500; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); position: relative; padding: 4px 0; transition: color 0.25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content:""; position:absolute; left:0; right:0; bottom:-2px; height:1.5px; background: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-cta { font-size: 14px; font-weight: 500; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink); transition: all 0.3s var(--ease); white-space: nowrap; }
.nav-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; color: var(--ink); padding: 4px; }
.nav-mobile { display: none; }

@media (max-width: 820px) {
  .nav-links, .nav-right .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { padding: 12px 0; font-size: 18px; font-family: var(--serif); border-bottom: 1px solid var(--line); }
  .site-header.scrolled { background: var(--paper); }
}

/* ---- Footer ---- */
.site-footer { background: var(--paper-2); color: var(--ink); border-top: 1px solid var(--line); }
.footer-cta { padding-block: clamp(72px, 11vw, 140px); }
.footer-cta .eyebrow { color: var(--accent); }
.footer-cta h2 { font-size: clamp(2.6rem, 6vw, 5rem); color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.footer-cta h2 em { font-style: normal; color: var(--accent); }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.footer-bottom, .footer-bottom a { color: var(--ink-3); font-size: 13.5px; }
.footer-bottom a:hover { color: var(--ink); }
.footer-nav { display: flex; gap: 24px; }

/* ============================================================
   HOME
   ============================================================ */
.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 140px var(--gutter) 80px;
}
.hero-portrait { width: 116px; height: 116px; margin-bottom: 34px; background: var(--paper-2); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
#portrait-about { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.hero h1 { font-size: clamp(3.2rem, 8.5vw, 6.4rem); letter-spacing: -0.03em; line-height: 0.98; }
.hero .lead { max-width: 52ch; margin: 28px auto 0; text-align: center; font-size: clamp(1.15rem,2vw,1.4rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.hero-stats { display: flex; gap: clamp(28px, 5vw, 56px); justify-content: center; margin-top: 60px; flex-wrap: wrap; }
.hero-stats .stat { text-align: center; }
.hero-stats .stat .num { font-family: var(--serif); font-size: clamp(1.8rem,3vw,2.4rem); line-height: 1; }
.hero-stats .stat .lbl { margin-top: 8px; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-3); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.scroll-hint .dot { width: 1px; height: 34px; background: linear-gradient(var(--ink-3), transparent); animation: scrolldot 2.2s var(--ease) infinite; }
@keyframes scrolldot { 0%{transform:scaleY(0);transform-origin:top} 40%{transform:scaleY(1);transform-origin:top} 60%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* text-led hero (no portrait) */
.hero-text { min-height: 84svh; }
.hero-text h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); letter-spacing: -0.028em; line-height: 1.08; max-width: 17ch; font-weight: 600; }
.hero-text h1 em { font-family: var(--editorial); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }
.hero-disciplines {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px; margin-top: 56px; max-width: 760px;
}
.hero-disciplines span { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-2); text-transform: uppercase; white-space: nowrap; }
.hero-disciplines i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); display: inline-block; }

/* process band */
.process-band { background: var(--paper-2); }
.process-flow { list-style: none; counter-reset: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 28px); }
.process-step { position: relative; }
.process-step .ps-num { font-family: var(--serif); font-size: 1rem; color: var(--accent); font-weight: 500; }
.process-step h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); margin-top: 8px; }
.process-step p { color: var(--ink-2); margin-top: 10px; font-size: 0.95rem; line-height: 1.5; }
.process-step .ps-art { margin-top: 18px; aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.process-step .ps-art:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(34,34,30,0.10); }
.process-step .ps-art:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.process-step .ps-art img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.process-step:not(:last-child)::after {
  content: ""; position: absolute; top: 7px; right: calc(-1 * clamp(16px,2vw,28px) / 2 - 3px);
  width: 6px; height: 6px; border-top: 1.5px solid var(--line-2); border-right: 1.5px solid var(--line-2);
  transform: rotate(45deg);
}
.method-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(40px,5vw,64px); justify-content: center; }

/* ---- Research-in-practice artefact showcase ---- */
.artefact-showcase { margin-top: clamp(56px, 9vw, 110px); }
.artefact-lead { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.35; letter-spacing: -0.015em; max-width: 32ch; color: var(--ink); font-weight: 500; margin: 0; text-wrap: balance; }
.artefacts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 44px); margin-top: clamp(28px, 4vw, 48px); }
.artefact { margin: 0; }
.art-frame { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: 0 14px 40px rgba(34,34,30,0.07); cursor: zoom-in; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.art-frame:hover { transform: translateY(-4px); box-shadow: 0 22px 56px rgba(34,34,30,0.12); }
.art-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.art-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.art-bar .d { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.art-bar .art-tag { margin-left: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.art-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.art-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.artefact figcaption { margin-top: 18px; }
.artefact figcaption h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.artefact figcaption p { color: var(--ink-2); margin-top: 8px; font-size: 0.98rem; line-height: 1.55; max-width: 48ch; }

/* ---- generic lightbox (shared) ---- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(34,34,30,0.9); display: none; align-items: center; justify-content: center; padding: 40px; backdrop-filter: blur(4px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,0.4); }
.lightbox .lx-cap { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: 76ch; width: calc(100% - 80px); text-align: center; color: rgba(248,247,244,0.9); font-size: 14.5px; line-height: 1.5; }
.lightbox .lx { position: absolute; top: 22px; right: 26px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(248,247,244,0.3); background: transparent; color: #F8F7F4; font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox .lx:hover { background: rgba(248,247,244,0.12); }

/* featured-wide card (single column) */
.featured-wide { display: block; }

/* big editorial statement band */
.statement { padding-block: clamp(80px,13vw,170px); }
.statement p { font-family: var(--serif); font-size: clamp(1.6rem,3.4vw,2.7rem); line-height: 1.26; letter-spacing: -0.02em; max-width: 24ch; margin: 0 auto; text-align: center; text-wrap: balance; font-weight: 500; }
.statement p em { font-family: var(--editorial); font-style: italic; font-weight: 400; color: var(--accent); }

/* section header row */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px,6vw,72px); flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(2rem,4vw,3.2rem); }
.sec-head .sub { color: var(--ink-2); max-width: 40ch; }

/* ============================================================
   PROJECT CARDS / GALLERY
   ============================================================ */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px); }
.proj-grid.featured { grid-template-columns: 1fr; }
.proj-card { display: block; }
.proj-card .thumb {
  position: relative; aspect-ratio: 16/11; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); transition: transform 0.55s var(--ease); background: var(--paper-2);
}
.proj-card .thumb image-slot { width: 100%; height: 100%; }
.proj-card:hover .thumb { transform: translateY(-6px); }
.proj-card .thumb .badge { position: absolute; top: 16px; left: 16px; z-index: 3; background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.proj-meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: 22px; gap: 16px; }
.proj-meta h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.proj-card .cat { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.proj-card .summary { color: var(--ink-2); margin-top: 10px; max-width: 46ch; }
.proj-card .view { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; font-size: 14.5px; color: var(--ink); transition: gap 0.3s var(--ease), color 0.3s var(--ease); }
.proj-card:hover .view { gap: 14px; color: var(--accent); }

/* index-style project list (alt) */
.proj-index { border-top: 1px solid var(--line); }
.proj-row { display: grid; grid-template-columns: 56px 1.4fr 1fr auto; gap: 24px; align-items: center; padding: 30px 8px; border-bottom: 1px solid var(--line); transition: padding 0.4s var(--ease), background 0.4s var(--ease); }
.proj-row:hover { padding-inline: 22px; background: var(--surface); }
.proj-row .idx { font-family: var(--serif); color: var(--ink-3); font-size: 15px; }
.proj-row .ttl { font-family: var(--serif); font-size: clamp(1.5rem,3vw,2.2rem); }
.proj-row .rcat { color: var(--ink-2); font-size: 14px; }
.proj-row .arrow { color: var(--ink-3); transition: transform 0.4s var(--ease), color 0.4s var(--ease); }
.proj-row:hover .arrow { transform: translate(4px,-4px); color: var(--accent); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; }
.timeline::before { content:""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 1px; background: var(--line-2); }
.tl-item { position: relative; padding-left: 56px; padding-block: clamp(22px,3vw,34px); }
.tl-item::before { content:""; position: absolute; left: 5px; top: calc(clamp(22px,3vw,34px) + 6px); width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-2); transition: all 0.4s var(--ease); }
.tl-item.is-accent::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-wash); }
.tl-item .yr { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; }
.tl-item h3 { font-size: clamp(1.4rem,2.6vw,2rem); margin-top: 6px; }
.tl-item .role { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.tl-item p { color: var(--ink-2); margin-top: 12px; max-width: 56ch; }

/* ============================================================
   CASE STUDY
   ============================================================ */
.cs-hero { padding: 150px var(--gutter) clamp(40px,6vw,72px); }
.cs-back { display: block; width: max-content; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 28px; white-space: nowrap; }
.cs-back:hover { color: var(--accent); }
.cs-hero .cat { color: var(--accent); }
.cs-hero h1 { font-size: clamp(2.6rem,7vw,5.2rem); margin-top: 18px; max-width: 16ch; }
.cs-hero .tagline { font-size: clamp(1.2rem,2vw,1.5rem); color: var(--ink-2); max-width: 50ch; margin-top: 24px; }
.cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.cs-facts .fact .k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.cs-facts .fact .v { margin-top: 8px; font-weight: 500; }
.cs-cover { aspect-ratio: 16/8; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); margin-block: clamp(40px,6vw,72px); }
.cs-cover image-slot { width: 100%; height: 100%; }

.cs-block { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px,5vw,80px); padding-block: clamp(28px,4vw,52px); border-top: 1px solid var(--line); align-items: start; }
.cs-block .label { position: sticky; top: 110px; }
.cs-block .label .eyebrow { margin-bottom: 0; }
.cs-block .label .num { font-family: var(--serif); font-size: 2.4rem; color: var(--line-2); display: block; margin-bottom: 10px; }
.cs-block .body > * + * { margin-top: 22px; }
.cs-block .body h3 { font-size: clamp(1.6rem,3vw,2.4rem); max-width: 22ch; }
.cs-block .body p { color: var(--ink-2); font-size: 1.08rem; max-width: 60ch; }
.cs-block .body p strong, .cs-block .body li strong { color: var(--ink); font-weight: 600; }
.cs-block .body ul { padding-left: 0; list-style: none; }
.cs-block .body ul li { position: relative; padding-left: 26px; color: var(--ink-2); margin-top: 14px; }
.cs-block .body ul li::before { content:""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.cs-figure { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.cs-figure image-slot { width: 100%; display: block; }
.cs-figcap { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.cs-screens { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.cs-screens .full { grid-column: 1 / -1; }

.cs-callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-md); padding: clamp(24px,4vw,40px); }
.cs-callout .q { font-family: var(--serif); font-size: clamp(1.4rem,2.6vw,2rem); line-height: 1.25; letter-spacing: -0.01em; }

.metric-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.metric { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.metric .big { font-family: var(--serif); font-size: clamp(2.4rem,4vw,3.4rem); color: var(--accent); line-height: 1; }
.metric .desc { margin-top: 12px; color: var(--ink-2); font-size: 14.5px; }

.cs-next { padding-block: clamp(48px,7vw,90px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cs-next .lbl { color: var(--ink-3); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.cs-next .nm { font-family: var(--serif); font-size: clamp(1.8rem,4vw,3rem); margin-top: 8px; transition: color 0.3s var(--ease); }
.cs-next a:hover .nm { color: var(--accent); }

/* process pathway (inside case study) */
.path { list-style: none; counter-reset: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.path-step { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.path-step:first-child { border-top: 0; }
.path-i { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 14px; color: var(--accent); margin-top: 2px; }
.path-step strong { display: block; font-family: var(--sans); font-weight: 600; font-size: 1.02rem; }
.path-step span { color: var(--ink-2); font-size: 0.98rem; }

/* let's connect block */
.cs-connect { padding-block: clamp(56px,8vw,100px); border-top: 1px solid var(--line); text-align: center; }
.cs-connect .eyebrow { justify-content: center; }
.cs-connect h2 { font-size: clamp(1.8rem,4vw,3rem); margin-top: 18px; max-width: 20ch; margin-inline: auto; text-wrap: balance; }
.cs-connect-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* ============================================================
   CV
   ============================================================ */
.cv-grid { display: grid; grid-template-columns: 230px 1fr; gap: clamp(32px,5vw,72px); align-items: start; }
.cv-section + .cv-section { margin-top: clamp(48px,7vw,80px); }
.cv-section > .eyebrow { margin-bottom: 28px; display: flex; }
.cv-entry { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); }
.cv-entry .when { color: var(--ink-3); font-size: 14px; }
.cv-entry h3 { font-size: 1.3rem; }
.cv-entry .org { color: var(--accent); font-weight: 600; font-size: 14.5px; margin-top: 3px; }
.cv-entry p { color: var(--ink-2); margin-top: 12px; max-width: 60ch; font-size: 1rem; }
.cv-entry ul { margin: 12px 0 0; padding-left: 0; list-style: none; }
.cv-entry ul li { position: relative; padding-left: 22px; color: var(--ink-2); margin-top: 8px; font-size: 1rem; }
.cv-entry ul li::before { content:"—"; position: absolute; left: 0; color: var(--ink-3); }
.skill-cols { display: grid; grid-template-columns: repeat(2,1fr); gap: 36px; }
.skill-group h4 { font-family: var(--sans); font-size: 14px; letter-spacing: 0.04em; color: var(--ink); margin: 0 0 14px; }
.tag-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-aside { position: sticky; top: 110px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-hero { min-height: 70svh; display: flex; flex-direction: column; justify-content: center; padding: 150px var(--gutter) 60px; }
.contact-hero h1 { font-size: clamp(2.8rem,7vw,5.6rem); max-width: 16ch; letter-spacing: -0.03em; }
.contact-hero h1 em { font-family: var(--editorial); font-style: italic; font-weight: 400; color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: clamp(48px,7vw,72px); }
.contact-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: all 0.4s var(--ease); }
.contact-card:hover { border-color: var(--ink); transform: translateY(-4px); }
.contact-card .k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.contact-card .v { font-family: var(--serif); font-size: clamp(1.3rem,2.2vw,1.7rem); margin-top: 14px; }
.contact-card .go { margin-top: 18px; color: var(--accent); font-weight: 600; font-size: 14px; }

/* generic two-col intro */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px,6vw,80px); align-items: start; }

@media (max-width: 860px) {
  .proj-grid { grid-template-columns: 1fr; }
  .process-flow { grid-template-columns: 1fr 1fr; gap: 28px; }
  .process-step:not(:last-child)::after { display: none; }
  .cs-block { grid-template-columns: 1fr; }
  .cs-block .label { position: static; }
  .cs-facts { grid-template-columns: repeat(2,1fr); }
  .cs-screens { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; }
  .cv-grid, .split { grid-template-columns: 1fr; }
  .cv-aside { position: static; }
  .cv-entry { grid-template-columns: 1fr; gap: 6px; }
  .contact-grid { grid-template-columns: 1fr; }
  .proj-row { grid-template-columns: 32px 1fr auto; }
  .proj-row .rcat { display: none; }
  .skill-cols { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .process-flow { grid-template-columns: 1fr; }
  .artefacts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
