/* Jesse Nasamu portfolio
   Palette: deep ink-teal and brass carried over from the previous site, set against a cool paper tone.
   Type: Schibsted Grotesk, self-hosted. */

@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #0e1b22;
  --ink-2: #172a33;
  --ink-line: #2b4049;
  --paper: #eef1f0;
  --paper-2: #e3e8e7;
  --line: #c6d0cf;
  --text: #13222a;
  --muted: #4b5c63;
  --on-ink: #e6eef0;
  --on-ink-muted: #9fb2b8;
  --brass: #dda971;      /* on dark */
  --brass-deep: #87561f; /* on light, 5.1:1 on paper */
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: clamp(4.5rem, 10vw, 8rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--paper); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 var(--s2); }
ul, ol { margin: 0; padding: 0; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .contact :focus-visible, .featured :focus-visible, .site-header :focus-visible, .cs-hero :focus-visible, .lightbox :focus-visible { outline-color: var(--brass); }
.i { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sprite { display: none; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--brass); color: var(--ink); padding: .6rem 1rem; font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- Buttons and links */
.btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .75rem 1.35rem; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 1rem/1.2 var(--font); text-decoration: none; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); transition-duration: .05s; }
.btn { transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn-ghost { background: transparent; color: inherit; }
.btn-small { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }
.hero .btn, .contact .btn, .featured .btn, .site-header .btn { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.hero .btn:hover, .contact .btn:hover, .featured .btn:hover, .site-header .btn:hover { background: #e9bd8c; border-color: #e9bd8c; }
.hero .btn-ghost { background: transparent; color: var(--on-ink); border-color: var(--ink-line); }
.hero .btn-ghost:hover { border-color: var(--brass); background: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--s3); }
.text-link { color: var(--brass-deep); font-weight: 600; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
.inline-links { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.inline-links a { text-underline-offset: .25em; text-decoration-thickness: 1px; }
.inline-links a:hover { color: var(--brass); }

/* ---------- Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--on-ink); transition: background .3s, box-shadow .3s; }
.site-header.is-solid { background: rgba(14, 27, 34, .94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--ink-line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.mark { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 700; }
.mark-nj { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1.5px solid var(--brass); font-weight: 800; font-size: .85rem; letter-spacing: .02em; color: var(--brass); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { list-style: none; display: flex; gap: 1.75rem; }
.nav ul a { text-decoration: none; font-weight: 500; font-size: .975rem; padding: .5rem 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .25s var(--ease); }
.nav ul a:hover, .nav ul a[aria-current="true"] { background-size: 100% 1.5px; }
.menu-btn { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; place-items: center; cursor: pointer; }

/* ---------- Hero */
.hero { background: var(--ink); color: var(--on-ink); padding: 8rem 0 0; overflow: hidden; }
.hero-grid { display: block; }
.hero-text { max-width: 62rem; }
.hero-name { font-size: clamp(3.4rem, 11vw, 8.75rem); font-weight: 800; line-height: .9; letter-spacing: -0.045em; color: #fff; margin-bottom: var(--s4); }
.hero-name span { display: block; }
.hero-name span:last-child { color: var(--brass); padding-left: .55em; }
.hero-statement { font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.35; font-weight: 500; max-width: 30ch; color: #fff; letter-spacing: -0.01em; }
.hero-sub { color: var(--on-ink-muted); max-width: 52ch; }
.hero-links { margin-top: var(--s4); color: var(--on-ink-muted); font-size: .9375rem; }
.disciplines { display: flex; flex-wrap: wrap; margin-top: var(--s5); border-top: 1px solid var(--ink-line); padding-top: 1.1rem; padding-bottom: 1.4rem; gap: .5rem 0; font-size: .95rem; color: var(--on-ink-muted); }
.disciplines span { padding-right: 1.25rem; margin-right: 1.25rem; border-right: 1px solid var(--ink-line); }
.disciplines span:last-child { border: 0; }

/* single orchestrated load sequence */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-name span { animation: rise .9s var(--ease) both; }
  .js .hero-name span:last-child { animation-delay: .12s; }
  .js .hero-statement, .js .hero-sub, .js .hero .actions, .js .hero-links { animation: fade .8s .45s var(--ease) both; }
  .js }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Sections */
.section { padding-block: var(--s6); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s3) var(--s5); align-items: end; margin-bottom: var(--s5); }
.section-head h2, .about h2, .quotes h2 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; }
.section-head p { color: var(--muted); max-width: 52ch; margin: 0; }
.h-sub { font-size: 1.375rem; margin-bottom: var(--s3); }
.small-h { font-size: 1rem; font-weight: 700; margin: var(--s4) 0 var(--s2); }
.kicker { font-size: .9375rem; color: var(--brass); font-weight: 500; margin-bottom: var(--s2); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { border: 1px solid currentColor; border-radius: 999px; padding: .2rem .75rem; font-size: .875rem; opacity: .9; }
.plain { list-style: none; }
.plain li { padding: .55rem 0; border-bottom: 1px solid var(--line); }

/* ---------- Featured project */
.featured { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s5); background: var(--ink); color: var(--on-ink); padding: clamp(1.75rem, 5vw, 4rem); margin-bottom: var(--s5); }
.featured h3 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; margin-bottom: var(--s3); }
.featured h3 a { text-decoration: none; }
.featured h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.featured-text > p:not(.kicker) { color: var(--on-ink-muted); max-width: 46ch; }
.featured .tags { margin: var(--s3) 0; color: var(--on-ink); }

/* pipeline (sequence of build stages) */
.pipeline { list-style: none; counter-reset: p; display: grid; gap: 0; position: relative; }
.pipeline li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--ink-line); align-items: baseline; }
.pipeline li:last-child { border-bottom: 1px solid var(--ink-line); }
.pipeline strong { color: #fff; font-weight: 700; }
.pipeline li > span:last-child { grid-column: 2; color: var(--on-ink-muted); font-size: .9375rem; }
.pipe-n { grid-row: span 2; font-weight: 800; color: var(--brass); font-size: 1.1rem; }
.cs-hero .pipeline { grid-template-columns: repeat(6, 1fr); margin-top: var(--s5); border-top: 1px solid var(--ink-line); }
.cs-hero .pipeline li { display: block; border: 0; padding: 1.1rem 1.2rem 0 0; position: relative; }
.cs-hero .pipeline li::before { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 3px; background: var(--brass); }
.cs-hero .pipe-n { display: block; margin-bottom: .4rem; }
.cs-hero .pipeline strong { display: block; margin-bottom: .2rem; }
.cs-hero .pipeline li > span:last-child { display: block; }

/* ---------- Work list */
.work-list { list-style: none; border-top: 1.5px solid var(--text); }
.work-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 14rem) 3.5rem 1.5rem; gap: 1.25rem; align-items: center; padding: 1.15rem 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s var(--ease), background .3s; }
.row-thumb { width: 4.5rem; height: 3.25rem; object-fit: cover; background: var(--paper-2); }
.row-thumb-empty { display: block; background: repeating-linear-gradient(135deg, var(--paper-2) 0 6px, var(--line) 6px 7px); }
.row-title { font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; }
.row-disc, .row-year { color: var(--muted); font-size: .9375rem; }
.row-year { text-align: right; }
.work-row .i { color: var(--brass-deep); transition: transform .3s var(--ease); }
.work-row:hover .i, .work-row:focus-visible .i { transform: translateX(4px); }
.work-row:hover .row-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
@media (pointer: fine) and (min-width: 900px) {
  .work-row { grid-template-columns: minmax(0, 1fr) minmax(0, 16rem) 3.5rem 1.5rem; }
  .work-row .row-thumb { display: none; }
}
.cursor-preview { position: fixed; left: 0; top: 0; width: 22rem; aspect-ratio: 4 / 3; object-fit: cover; pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .25s, transform .25s var(--ease); box-shadow: 0 30px 60px -20px rgba(14, 27, 34, .45); }
.cursor-preview.is-on { opacity: 1; }
@media (pointer: coarse), (max-width: 899px), (prefers-reduced-motion: reduce) { .cursor-preview { display: none; } }

/* ---------- Gallery */
.gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin: var(--s6) 0 var(--s3); }
.gallery-head h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.gallery-head p { color: var(--muted); margin: 0; }
.gallery { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; }
.gallery li { scroll-snap-align: start; }
.g-item { all: unset; display: block; cursor: zoom-in; width: 100%; }
.g-item img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: filter .3s; }
.g-item:hover img { filter: brightness(.92); }
.g-item span { display: block; margin-top: .5rem; font-size: .875rem; color: var(--muted); }
.g-item:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 3px; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(9, 18, 23, .94); display: grid; place-items: center; padding: 4rem 1.25rem 2rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; }
.lightbox figcaption { color: var(--on-ink); text-align: center; margin-top: .75rem; }
.lightbox figcaption a { color: var(--brass); margin-left: .75rem; text-underline-offset: .2em; }
.lb-close { position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 1px solid var(--ink-line); color: #fff; border-radius: 50%; cursor: pointer; }

/* ---------- About + skills */
.about { background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s5); }
.about-body { max-width: 44rem; }
.lead { font-size: clamp(1.3rem, 2.3vw, 1.65rem); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; margin-bottom: var(--s4); }
.questions { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: var(--s4); }
.questions li { border-top: 3px solid var(--brass-deep); padding-top: .9rem; }
.questions strong { display: block; font-size: 1.05rem; margin-bottom: .35rem; }
.questions span { color: var(--muted); font-size: .9375rem; line-height: 1.5; display: block; }
.skills { margin-top: var(--s6); }
.skill-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1.5px solid var(--text); }
.skill-col { padding: 1.25rem 1.25rem 0 0; }
.skill-col + .skill-col { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.skill-col h3 { font-size: 1.05rem; margin-bottom: .9rem; }
.skill-col ul { list-style: none; }
.skill-col li { padding: .3rem 0; color: var(--muted); font-size: .9688rem; }

/* ---------- Timeline */
.tl-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s5); }
.timeline { list-style: none; border-left: 1.5px solid var(--line); }
.tl-item { position: relative; padding: 0 0 var(--s4) 1.75rem; display: grid; gap: .25rem; }
.tl-item::before { content: ""; position: absolute; left: -6px; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brass-deep); }
.tl-when { margin: 0; font-size: .9rem; color: var(--brass-deep); font-weight: 600; }
.tl-item h4 { font-size: 1.2rem; }
.tl-org { color: var(--muted); margin: .2rem 0 .6rem; }
.tl-item ul { padding-left: 1.1rem; color: var(--text); }
.tl-item li { margin-bottom: .35rem; max-width: 62ch; }

/* ---------- Services */
.services { background: var(--paper-2); }
.svc-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--text); margin-bottom: var(--s4); }
.svc-list li { padding: 1.5rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--line); }
.svc-list li:not(:nth-child(3n + 1)) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.svc-list h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.svc-list p { color: var(--muted); margin: 0; max-width: 36ch; }

/* ---------- Testimonials */
.quotes h2 { margin-bottom: var(--s5); }
.quote-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s5); }
.quote-grid figure { margin: 0; }
.quote-grid blockquote { margin: 0 0 1.25rem; font-size: 1.125rem; line-height: 1.55; max-width: 56ch; }
.quote-grid blockquote p { margin: 0; }
.quote-grid blockquote p::before { content: "\201C"; }
.quote-grid blockquote p::after { content: "\201D"; }
.quote-grid figcaption { display: flex; gap: .85rem; align-items: center; font-size: .9375rem; color: var(--muted); }
.quote-grid figcaption strong { display: block; color: var(--text); }
.initials { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--brass); font-weight: 700; font-size: .9rem; flex: none; }

/* ---------- Contact */
.contact { background: var(--ink); color: var(--on-ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s5); }
.contact h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; color: #fff; margin-bottom: var(--s3); max-width: 14ch; }
.contact-intro > p { color: var(--on-ink-muted); max-width: 42ch; }
.contact-list { margin: var(--s4) 0 0; display: grid; gap: 1rem; }
.contact-list div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; border-top: 1px solid var(--ink-line); padding-top: 1rem; }
.contact-list dt { color: var(--on-ink-muted); font-size: .9375rem; }
.contact-list dd { margin: 0; }
.contact-list a { text-underline-offset: .25em; }
.contact-form { display: grid; gap: 1.25rem; align-content: start; }
.field { display: grid; gap: .45rem; border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-weight: 500; font-size: .9688rem; padding: 0; }
.field legend { margin-bottom: .45rem; }
.field input[type="text"], .field input[type="email"], .field textarea { width: 100%; font: inherit; color: #fff; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 4px; padding: .8rem .9rem; min-height: 48px; transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover, .field textarea:hover { border-color: #46606b; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
.field [aria-invalid="true"] { border-color: #f08a7e; }
.field-error { color: #f6a89f; font-size: .9rem; margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice-row label { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--ink-line); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; font-weight: 400; min-height: 44px; }
.choice-row label:has(input:checked) { border-color: var(--brass); color: #fff; }
.choice-row input { accent-color: var(--brass); }
.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 0; min-height: 1.6em; }
.form-status.is-ok { color: #9fe0b4; }
.form-status.is-err { color: #f6a89f; }

/* ---------- Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); border-top: 1px solid var(--ink-line); font-size: .9375rem; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.75rem; }
.footer-in p { margin: 0; }

/* ---------- Project pages */
.project .site-header { background: rgba(14, 27, 34, .97); }
.p-head { padding-top: 8rem; padding-bottom: var(--s5); }
.back { display: inline-block; margin-bottom: var(--s4); font-size: .9375rem; }
.p-head h1, .cs-hero h1 { font-size: clamp(2.4rem, 6vw, 4.75rem); font-weight: 800; letter-spacing: -0.04em; max-width: 18ch; margin-bottom: var(--s3); }
.p-summary { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; max-width: 44ch; color: var(--muted); }
.p-meta { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: var(--s4) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line); }
.p-meta dt { font-size: .875rem; color: var(--muted); }
.p-meta dd { margin: .2rem 0 0; font-weight: 600; }
.p-lead { margin-block: 0 var(--s5); }
.p-lead img { width: 100%; }
.story { display: grid; gap: 0; margin-bottom: var(--s5); }
.story-block, .cs-block { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: var(--s2) var(--s5); padding-block: var(--s4); border-top: 1px solid var(--line); }
.story-block h2, .cs-block h2 { font-size: 1.35rem; letter-spacing: -0.02em; }
.story-block p, .cs-block p { max-width: 62ch; }
.steps { padding-left: 1.3rem; display: grid; gap: .55rem; max-width: 62ch; }
.steps li::marker { color: var(--brass-deep); font-weight: 700; }
.shots { display: grid; gap: var(--s5); padding-bottom: var(--s5); }
.shot { margin: 0; }
.shot img { width: 100%; background: var(--paper-2); }
.shot figcaption { color: var(--muted); font-size: .9375rem; margin-top: .65rem; }
.next-project { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding-block: var(--s5); border-top: 1.5px solid var(--text); flex-wrap: wrap; }
.next-link { display: grid; grid-template-columns: auto auto; gap: .2rem 1rem; text-decoration: none; text-align: right; align-items: end; }
.next-link span { grid-column: 1; color: var(--muted); font-size: .9375rem; }
.next-link strong { grid-column: 1; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: -0.025em; }
.next-link .i { grid-column: 2; grid-row: 1 / span 2; width: 28px; height: 28px; color: var(--brass-deep); transition: transform .3s var(--ease); }
.next-link:hover .i { transform: translateX(5px); }
.next-link:hover strong { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 2px; }

/* case study */
.cs-hero { background: var(--ink); color: var(--on-ink); padding: 8rem 0 var(--s5); }
.cs-hero h1 { color: #fff; max-width: 16ch; }
.cs-hero .back { color: var(--brass); }
.cs-hero .p-summary { color: var(--on-ink-muted); }
.cs-hero .p-meta { border-color: var(--ink-line); }
.cs-hero .p-meta dt { color: var(--on-ink-muted); }
.cs-hero .btn { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.cs-hero .btn-ghost { background: transparent; color: var(--on-ink); border-color: var(--ink-line); }
.cs-hero .btn-ghost:hover { border-color: var(--brass); background: transparent; }
.cs-layout { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: var(--s5); padding-block: var(--s5); }
.cs-toc { position: sticky; top: 6rem; align-self: start; font-size: .9375rem; }
.cs-toc ul { list-style: none; border-left: 1px solid var(--line); }
.cs-toc a { display: block; padding: .3rem 0 .3rem 1rem; margin-left: -1px; text-decoration: none; color: var(--muted); border-left: 2px solid transparent; }
.cs-toc a:hover { color: var(--text); }
.cs-toc a[aria-current="true"] { color: var(--text); border-left-color: var(--brass-deep); font-weight: 600; }
.cs-block { grid-template-columns: minmax(0, 2.5fr) minmax(0, 7fr); }
.cs-block:first-child { border-top: 0; padding-top: 0; }
.cs-wide { grid-template-columns: 1fr; }
.contrib, .impl { list-style: none; display: grid; gap: 1.25rem; counter-reset: c; }
.contrib li { counter-increment: c; display: grid; grid-template-columns: 2.25rem 1fr; }
.contrib li::before { content: counter(c); grid-row: span 2; font-weight: 800; color: var(--brass-deep); }
.contrib h3, .impl h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.contrib p, .impl p { margin: 0; color: var(--muted); }
.impl li { border-left: 3px solid var(--brass-deep); padding-left: 1rem; }
.findings { padding-left: 1.2rem; display: grid; gap: .6rem; }
.cs-body .tags { color: var(--text); }

.nf { padding-top: 10rem; padding-bottom: 8rem; min-height: 70vh; }
.nf h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; }

/* ---------- Responsive */
@media (max-width: 1080px) {
  .skill-grid { grid-template-columns: repeat(3, 1fr); row-gap: var(--s4); }
  .skill-col:nth-child(4) { border-left: 0; padding-left: 0; }
  .cs-hero .pipeline { grid-template-columns: repeat(3, 1fr); row-gap: 1.5rem; }
}
@media (max-width: 899px) {
  .menu-btn { display: grid; }
  .nav { position: fixed; inset: 4.5rem 0 auto; background: var(--ink); flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--gutter) 1.75rem; border-bottom: 1px solid var(--ink-line); transform: translateY(-120%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
  .nav.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .8rem 0; font-size: 1.125rem; border-bottom: 1px solid var(--ink-line); background: none; }
  .nav .btn { justify-content: center; }
  .site-header { background: rgba(14, 27, 34, .97); }
  .hero { padding-top: 6.5rem; }
  .hero-grid { grid-template-columns: 1fr; }
        .hero-name span:last-child { padding-left: 0; }
  .section-head, .featured, .about-grid, .tl-grid, .contact-grid, .story-block, .cs-block { grid-template-columns: 1fr; }
  .work-row { grid-template-columns: 4.5rem minmax(0, 1fr) 1.25rem; gap: .25rem 1rem; }
  .row-thumb { grid-row: span 2; }
  .row-title { grid-column: 2; }
  .row-disc { grid-column: 2; grid-row: 2; }
  .row-year { display: none; }
  .work-row .i { grid-column: 3; grid-row: 1 / span 2; }
  .questions { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .skill-col, .skill-col + .skill-col { padding-left: 0; border-left: 0; }
  .svc-list { grid-template-columns: 1fr; }
  .svc-list li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .quote-grid { grid-template-columns: 1fr; }
  .cs-layout { grid-template-columns: 1fr; }
  .cs-toc { display: none; }
  .cs-hero .pipeline { grid-template-columns: 1fr 1fr; }
  .next-link { text-align: left; }
}
@media (max-width: 520px) {
  .skill-grid { grid-template-columns: 1fr; }
  .contact-list div { grid-template-columns: 1fr; gap: .2rem; }
  .cs-hero .pipeline { grid-template-columns: 1fr; }
  .disciplines span { border: 0; margin-right: 0; padding-right: 1rem; }
  .hero-name { font-size: clamp(3rem, 17vw, 4.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .site-header, .contact-form, .gallery, .cursor-preview, .lightbox { display: none !important; }
  .hero, .contact, .featured, .cs-hero, .site-footer { background: #fff; color: #000; }
}

/* ---------- v2 additions */
.featured { align-items: center; }
.featured-headline { font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.3; font-weight: 700; color: var(--brass); letter-spacing: -0.015em; max-width: 24ch; margin-bottom: var(--s2); }
.featured-visual { display: block; text-decoration: none; transition: transform .35s var(--ease); }
.featured-visual:hover { transform: translateY(-2px); }
.window { display: block; background: #0a141a; border: 1px solid var(--ink-line); border-radius: 10px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.window-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--ink-line); }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-line); }
.window img { width: 100%; transition: transform .6s var(--ease); }
.featured-visual:hover .window img { transform: scale(1.02); }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s3); }
.filters button { font: 500 .9375rem/1 var(--font); color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1.1rem; min-height: 44px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.filters button:hover { border-color: var(--text); transform: translateY(-1px); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.work-list li[hidden] { display: none; }

.g-item { overflow: hidden; }
.g-item img { transition: transform .5s var(--ease), filter .3s; }
.g-item:hover img { transform: scale(1.03); }

.about-side { display: grid; align-content: start; gap: var(--s4); }
.about-photo img { width: 100%; max-width: 20rem; aspect-ratio: 4 / 5; object-fit: cover; }
.plain.cols { columns: 2; column-gap: 2rem; }
.plain.cols li { break-inside: avoid; }
.interests { margin-top: var(--s3); color: var(--muted); }

.cs-shot { margin: var(--s5) 0 0; }
.cs-shot img { width: 100%; }
.muted { color: var(--muted); }
.ds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin: 0 0 var(--s3); }
.ds div { border-top: 1px solid var(--line); padding-top: .6rem; }
.ds dt { font-size: .875rem; color: var(--muted); }
.ds dd { margin: .15rem 0 0; font-weight: 500; }
.cs-intro { max-width: 62ch; color: var(--muted); }
.pages { list-style: none; counter-reset: pg; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 2rem; margin: var(--s3) 0 var(--s4); border-top: 1.5px solid var(--text); }
.pages li { counter-increment: pg; padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .2rem; }
.pages strong::before { content: counter(pg) "  "; color: var(--brass-deep); font-weight: 800; white-space: pre; }
.pages span { color: var(--muted); font-size: .9375rem; }
.shot.model { max-width: 900px; }
.cs-spacer { display: block; }

.cs-moment { background: var(--ink); color: var(--on-ink); padding-block: var(--s6); margin-block: var(--s4); }
.cs-moment h2 { font-size: clamp(2.2rem, 5.5vw, 4.25rem); font-weight: 800; letter-spacing: -0.04em; color: #fff; max-width: 16ch; margin-bottom: var(--s3); }
.moment-lede { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--on-ink-muted); max-width: 50ch; margin-bottom: var(--s5); }
.moment-foot { color: var(--on-ink-muted); max-width: 64ch; margin: var(--s4) 0 0; font-size: .9688rem; }
.rb { display: grid; gap: 1rem; }
.rb-key { display: flex; gap: 1.5rem; font-size: .9375rem; margin-left: 6.5rem; }
.rb-key span::before { content: ""; display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; margin-right: .5rem; vertical-align: -1px; }
.k-b::before { background: #6fcf97; } .k-l::before { background: #f2c94c; } .k-i::before { background: #eb6f6f; }
.rb-row { display: grid; grid-template-columns: 5rem minmax(0, 1fr) 8.5rem; gap: 1.5rem; align-items: center; }
.rb-label { font-weight: 700; font-size: 1.15rem; color: #fff; }
.rb-n { color: var(--on-ink-muted); font-size: .9375rem; }
.rb-bar { display: flex; gap: 3px; height: 3.25rem; }
.rb-seg { flex: 0 0 calc(var(--w) * 1%); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #0e1b22; border-radius: 3px; font-size: .95rem; }
.rb-b { background: #6fcf97; } .rb-l { background: #f2c94c; } .rb-i { background: #eb6f6f; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-bars] .rb-seg { flex-basis: 0; color: transparent; transition: flex-basis 1.1s var(--ease), color .3s .9s; }
  .js [data-bars] .rb-row:nth-of-type(3) .rb-seg { transition-delay: .12s, 1s; }
  .js [data-bars] .rb-row:nth-of-type(4) .rb-seg { transition-delay: .24s, 1.1s; }
  .js [data-bars].is-in .rb-seg { flex-basis: calc(var(--w) * 1%); color: #0e1b22; }
}
.table-wrap { overflow-x: auto; margin-top: var(--s3); }
.ftable { width: 100%; border-collapse: collapse; font-size: .9688rem; min-width: 36rem; }
.ftable th, .ftable td { text-align: left; vertical-align: top; padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--line); }
.ftable thead th { font-size: .875rem; color: var(--muted); font-weight: 500; border-bottom: 1.5px solid var(--text); }
.ftable tbody th { font-weight: 700; width: 24%; }
.ftable td:last-child { color: var(--muted); }
.callout { margin-top: var(--s4); padding: 1.25rem 1.5rem; border-left: 3px solid var(--brass-deep); background: var(--paper-2); max-width: 68ch; }
.findings-list { padding-left: 1.2rem; display: grid; gap: .6rem; max-width: 62ch; }
.findings-list li::marker { color: var(--brass-deep); }
.cs-hero[data-enter] h1, .cs-hero[data-enter] .p-summary { animation: fade .8s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .cs-hero[data-enter] h1, .cs-hero[data-enter] .p-summary { animation: none; } }
@media (max-width: 899px) {
  .about-photo img { max-width: 16rem; }
  .plain.cols { columns: 1; }
  .ds { grid-template-columns: 1fr; }
  .cs-spacer { display: none; }
  .rb-row { grid-template-columns: 1fr; gap: .4rem; }
  .rb-key { margin-left: 0; flex-wrap: wrap; }
  .rb-bar { height: 2.75rem; }
  .rb-seg { font-size: .8rem; }
}
@media (max-width: 699px) {
  .ftable { min-width: 0; }
  .ftable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ftable tr { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .ftable th, .ftable td { display: block; border: 0; padding: .1rem 0; }
  .ftable tbody th { width: auto; }
}
