/* =========================================================================
   Jersey Salandanan — editorial portfolio
   Design tokens → base → layout → components → pages
   ========================================================================= */

@font-face { font-family: "Lora"; src: url("fonts/lora.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --bg: #f7f6f2;
  --ink: #171717;
  --tint: #eae8e2;
  --accent: #851927;
  --muted: #57564f;
  --line: rgba(23, 23, 23, 0.16);
  --line-strong: rgba(23, 23, 23, 0.4);

  --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --space-section: clamp(72px, 11vw, 160px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@view-transition { navigation: auto; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "ss01", "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }
::selection { background: var(--accent); color: var(--bg); }
main:focus { outline: none; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; color: var(--bg); }
.hp { position: absolute; left: -9999px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.eyebrow {
  display: flex; gap: 0.9em; align-items: baseline;
  font: 500 0.75rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.4rem;
}
.eyebrow a { text-decoration: none; }
.eyebrow__num { color: var(--accent); font-feature-settings: "tnum"; }
.h-page { font: 400 clamp(2.5rem, 6.2vw, 5.6rem)/1.02 var(--serif); letter-spacing: -0.025em; max-width: 18ch; text-wrap: balance; }
.h-section { font: 400 clamp(2rem, 4.2vw, 3.6rem)/1.06 var(--serif); letter-spacing: -0.02em; text-wrap: balance; max-width: 20ch; }
.h-sub { font: 500 0.8125rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.mini-label { font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.prose p { max-width: 64ch; }
.prose p + p { margin-top: 1.1em; }
.prose--lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; }
em { font-style: italic; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: var(--h); padding: 0 1.4rem;
  font: 500 0.95rem/1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn .icon { transition: transform 0.3s var(--ease); flex: none; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--accent); color: var(--bg); }
.btn--secondary { border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--bg); }
.btn--text { padding: 0; min-height: 44px; border-bottom: 1px solid var(--line-strong); }
.btn--text:hover { border-color: var(--accent); }
.btn--sm { --h: 40px; padding: 0 1rem; font-size: 0.875rem; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-top: 2.2rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; }
.link-arrow .icon { transition: transform 0.3s var(--ease); }
.link-arrow:hover { border-color: var(--accent); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.header.is-scrolled { border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.brand__name { font: 500 1.25rem/1.1 var(--serif); letter-spacing: -0.01em; }
.brand__role { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.8rem; }
.nav ul a { font-size: 0.95rem; text-decoration: none; padding: 0.6rem 0; position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.25rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav ul a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; width: 48px; height: 48px; margin-right: -12px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__close { display: none; }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .header__resume { display: inline-block; }
  .js .nav {
    position: fixed; inset: 72px 0 0 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 2rem; padding: 2rem var(--gutter) 3rem;
    visibility: hidden; opacity: 0; transition: opacity 0.25s var(--ease), visibility 0.25s;
    overflow-y: auto;
  }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav ul a { display: block; font: 400 2.2rem/1.2 var(--serif); padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .js .nav ul a::after { display: none; }
  .js .nav__cta { --h: 56px; font-size: 1rem; }
  .js .header.is-open .nav { visibility: visible; opacity: 1; }
  .js .header.is-open .nav-toggle__open { display: none; }
  .js .header.is-open .nav-toggle__close { display: inline-flex; }
  body.nav-open { overflow: hidden; }
  /* No-JS fallback: wrap the nav under the brand */
  html:not(.js) .header__inner { flex-wrap: wrap; padding-block: 0.8rem; }
  html:not(.js) .nav { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; }
  html:not(.js) .nav ul { gap: 1.1rem; flex-wrap: wrap; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--space-section); }
.section--flush { padding-top: 0; }
.section--tint { background: var(--tint); }
.section__head { margin-bottom: clamp(40px, 6vw, 80px); }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.section__head--row .btn-row, .section__head--row > .btn { margin-top: 0; }
.section__intro { max-width: 52ch; margin-top: 1.4rem; color: var(--muted); font-size: 1.1rem; }
.section__more { margin-top: clamp(40px, 5vw, 64px); }
.split { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .split__aside { position: sticky; top: 112px; align-self: start; }
}
.split__aside p { color: var(--muted); max-width: 44ch; margin-top: 1.4rem; }

/* ---------- hero ---------- */
.hero { display: grid; gap: 2.5rem; padding-top: clamp(32px, 6vw, 88px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero__name { font: 500 0.8rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.6rem; }
.hero__name > span:last-child { color: var(--ink); }
.hero__sep { color: var(--accent); margin-inline: 0.2em; }
.hero__headline { font: 400 clamp(2.9rem, 7.2vw, 7rem)/0.98 var(--serif); letter-spacing: -0.035em; text-wrap: balance; }
.hero__headline em { display: block; color: var(--accent); }
.hero__lede { margin-top: 2rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; max-width: 54ch; }
.hero__portrait { position: relative; }
.hero__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }
.hero__preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.hero__preview a { display: flex; gap: 0.85rem; align-items: center; text-decoration: none; font-size: 0.9rem; line-height: 1.3; }
.hero__preview img { width: 64px; height: 80px; object-fit: contain; background: var(--tint); flex: none; transition: transform 0.5s var(--ease); }
.hero__preview a:hover img { transform: scale(1.04); }
.hero__preview small { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; margin-top: 1.6rem; font-size: 0.88rem; color: var(--muted); }
.hero__facts a { color: var(--ink); }
.header__resume { display: none; font-size: 0.95rem; font-weight: 500; text-decoration: underline; text-underline-offset: 0.25em; padding: 0.75rem 0.5rem; margin-left: auto; }

.availability { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.5rem; font-size: 0.9rem; }
.availability span { width: 8px; height: 8px; border-radius: 50%; background: #2f7d4f; }
@media (min-width: 900px) {
  .hero { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); align-items: end; }
  .hero__text { grid-column: 1 / 9; grid-row: 1; }
  .hero__portrait { grid-column: 9 / 13; grid-row: 1; }
  .hero__preview { grid-column: 1 / 13; }
}
@media (max-width: 899px) {
  .hero__portrait { max-width: 420px; }
  .hero__preview { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand__role { display: none; }
  .hero__headline em { display: inline; }
  .hero .btn-row .btn--primary, .hero .btn-row .btn--secondary { flex: 1 1 100%; }
}

/* ---------- proof strip ---------- */
.proof { border-block: 1px solid var(--line); }
.proof__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof__list li { padding: 1.5rem 1.5rem 1.5rem 0; font-size: 0.95rem; color: var(--muted); line-height: 1.45; }
.proof__list li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.proof__list strong { display: block; font: 400 1.6rem/1.15 var(--serif); color: var(--ink); margin-bottom: 0.25rem; }
.proof__list span { display: block; font-size: 0.8rem; margin-top: 0.3rem; }
@media (max-width: 899px) {
  .proof__list { grid-template-columns: 1fr 1fr; }
  .proof__list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof__list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .proof__list { grid-template-columns: 1fr; }
  .proof__list li, .proof__list li + li { padding: 1.1rem 0; border-left: 0; }
  .proof__list li + li { border-top: 1px solid var(--line); }
}

/* ---------- brands marquee ---------- */
.brands { border-block: 1px solid var(--line); padding-block: 1.6rem 1.8rem; overflow: hidden; }
.brands__title { font: 500 0.72rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.brands__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.brands__track { display: flex; width: max-content; animation: brands-scroll 48s linear infinite; }
.brands:hover .brands__track { animation-play-state: paused; }
.brands__list { display: flex; flex: none; align-items: center; }
.brands__list li { font: 400 clamp(1.3rem, 2.2vw, 1.9rem)/1.2 var(--serif); letter-spacing: -0.01em; white-space: nowrap; padding-inline: clamp(1.2rem, 2.5vw, 2.4rem); display: flex; align-items: center; }
.brands__list li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: clamp(2.4rem, 5vw, 4.8rem); }
@keyframes brands-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .brands__track { animation: none; width: auto; flex-wrap: wrap; padding-inline: var(--gutter); }
  .brands__list[aria-hidden="true"] { display: none; }
  .brands__list { flex-wrap: wrap; gap: 0.6rem 0; }
  .brands__viewport { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- project cards ---------- */
.card { position: relative; }
.card__media { display: block; position: relative; overflow: hidden; background: var(--tint); }
.card__media > img { width: 100%; object-fit: contain; transition: transform 0.9s var(--ease); }
.card:hover .card__media > img { transform: scale(1.015); }
.card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font: 500 0.72rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.card__num { color: var(--accent); margin-right: 0.4rem; }
.card__title { font: 400 clamp(1.45rem, 2.2vw, 2rem)/1.15 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__summary { margin-top: 1rem; color: var(--muted); max-width: 52ch; }
.card__highlight { margin-top: 1rem; padding-left: 0.9rem; border-left: 2px solid var(--accent); font-size: 0.92rem; font-weight: 500; max-width: 52ch; }
.card__facts { display: grid; gap: 0.5rem; margin: 1.4rem 0 1.6rem; font-size: 0.9rem; }
.card__facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.card__facts dt { color: var(--muted); }
.card__facts dd { margin: 0; }

.card--lg { display: grid; gap: 1.75rem; }
.card--lg .card__media > img { aspect-ratio: 4 / 3; object-position: 50% 25%; }
.card__inset { position: absolute; right: 5%; bottom: 7%; width: 26%; box-shadow: 0 0 0 6px var(--bg); }
.card__inset { background: var(--tint); }
.card__inset img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
@media (min-width: 900px) {
  .card--lg { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 4vw, 72px); align-items: end; }
  .card--lg .card__title { font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
  .featured > .card--lg:nth-child(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .featured > .card--lg:nth-child(even) .card__media { order: 2; }
}
.card--md .card__media > img { aspect-ratio: 4 / 5; max-height: 72vh; }
.card--md .card__body, .card--sm .card__body { padding-top: 1.4rem; }
.card--sm .card__media > img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
.card--sm .card__title { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }

.featured { display: grid; gap: clamp(64px, 9vw, 128px); }
.featured__pair { display: grid; gap: clamp(48px, 6vw, 72px); }
@media (min-width: 760px) {
  .featured__pair { grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); }
  .featured__pair > .card:nth-child(2) { margin-top: clamp(48px, 8vw, 120px); }
}
.grid-3 { display: grid; gap: clamp(48px, 5vw, 64px) clamp(24px, 3vw, 40px); }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.work-list { display: grid; gap: clamp(64px, 8vw, 112px); }

/* ---------- on set (dark feature) ---------- */
.section--dark { background: var(--ink); color: var(--bg); }
.section--dark .eyebrow { color: rgba(247, 246, 242, 0.6); }
.section--dark .eyebrow__num { color: #d98a95; }
.section--dark .btn--secondary { border-color: rgba(247, 246, 242, 0.5); color: var(--bg); }
.section--dark .btn--secondary:hover { background: var(--bg); color: var(--ink); }
.section--dark .btn--text { border-color: transparent; border-bottom-color: rgba(247, 246, 242, 0.4); }
.section--dark a:hover { color: #e6a3ac; }
.section--dark :focus-visible { outline-color: var(--bg); }
.onset__grid { display: grid; gap: clamp(40px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .onset__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.onset__text p:not(.eyebrow) { color: rgba(247, 246, 242, 0.78); max-width: 52ch; margin-top: 1.3rem; }
.onset__roles { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.8rem; }
.onset__roles li { font-size: 0.82rem; padding: 0.4rem 0.75rem; border: 1px solid rgba(247, 246, 242, 0.3); }
.onset__media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 16px); }
.onset__media img { width: 100%; height: 100%; object-fit: cover; }
.onset__a { grid-column: 1 / -1; aspect-ratio: 3 / 2; overflow: hidden; }
.onset__b, .onset__c { aspect-ratio: 3 / 2; overflow: hidden; }

/* ---------- capabilities ---------- */
.capabilities { display: grid; gap: 0 clamp(24px, 3vw, 48px); }
@media (min-width: 640px) { .capabilities { grid-template-columns: 1fr 1fr; } }
.capabilities li { padding: 1.6rem 0 2rem; border-top: 1px solid var(--line-strong); }
.capabilities__num { font: 500 0.75rem/1 var(--sans); color: var(--accent); letter-spacing: 0.1em; }
.capabilities h3 { font: 400 1.5rem/1.2 var(--serif); margin: 0.8rem 0 0.6rem; }
.capabilities p { color: var(--muted); font-size: 0.98rem; }

/* ---------- tools ---------- */
.tools { padding-bottom: 0; }
.tools__grid { display: grid; gap: 2rem clamp(24px, 3vw, 48px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
@media (min-width: 1100px) { .tools__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tools__group { border-top: 1px solid var(--line-strong); padding-top: 1.2rem; }
.tags--lg li { font-size: 0.95rem; padding: 0.5rem 0.9rem; background: #fff; }

/* ---------- approach ---------- */
.approach { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); border-top: 1px solid var(--line-strong); }
.approach li { padding: 1.8rem 1.6rem 1.8rem 0; }
.approach li + li { border-left: 1px solid var(--line); padding-left: 1.6rem; }
.approach__num { display: block; font: 400 3rem/1 var(--serif); color: var(--accent); margin-bottom: 1.4rem; }
.approach h3 { font: 500 1rem/1.3 var(--sans); margin-bottom: 0.5rem; }
.approach p { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 1099px) {
  .approach { grid-template-columns: repeat(3, 1fr); }
  .approach li:nth-child(4) { border-left: 0; padding-left: 0; }
  .approach li:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .approach { grid-template-columns: 1fr; }
  .approach li, .approach li + li { border-left: 0; padding: 1.4rem 0; display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 1rem; }
  .approach li + li { border-top: 1px solid var(--line); }
  .approach__num { font-size: 2rem; margin: 0; grid-row: span 2; }
}

/* ---------- experience (home) ---------- */
.exp-list li { padding: 1.6rem 0; border-top: 1px solid var(--line-strong); }
.exp-list__period { font-size: 0.85rem; color: var(--muted); font-feature-settings: "tnum"; margin-bottom: 0.4rem; }
.exp-list h3 { font: 400 1.6rem/1.2 var(--serif); }
.exp-list h3 span { color: var(--muted); }
.exp-list p:last-child { margin-top: 0.5rem; color: var(--muted); }

/* ---------- paths ---------- */
.paths { display: grid; gap: clamp(32px, 4vw, 48px); }
@media (min-width: 900px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.path { border-top: 2px solid var(--ink); padding-top: 1.5rem; display: flex; flex-direction: column; }
.path__who { font: 600 0.72rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.path__title { font: 400 clamp(1.6rem, 2.4vw, 2.1rem)/1.15 var(--serif); margin: 0.8rem 0; letter-spacing: -0.01em; }
.path > p:not(.path__who) { color: var(--muted); }
.path__actions { margin-top: 1.4rem; display: grid; gap: 0.4rem; justify-items: start; }

/* ---------- closing ---------- */
.closing { background: var(--ink); color: var(--bg); }
.closing__inner { padding-block: clamp(80px, 12vw, 168px); }
.closing__title { font: 400 clamp(2.4rem, 6vw, 5.2rem)/1.02 var(--serif); letter-spacing: -0.03em; max-width: 16ch; text-wrap: balance; }
.closing__text { margin-top: 1.6rem; max-width: 46ch; color: rgba(247, 246, 242, 0.72); font-size: 1.1rem; }
.closing .btn--primary { background: var(--bg); color: var(--ink); }
.closing .btn--primary:hover { background: var(--accent); color: var(--bg); }
.closing .btn--secondary { border-color: rgba(247, 246, 242, 0.5); color: var(--bg); }
.closing .btn--secondary:hover { background: var(--bg); color: var(--ink); }
.closing :focus-visible { outline-color: var(--bg); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner { display: grid; gap: 2.5rem; padding-block: clamp(48px, 6vw, 80px) 2rem; }
.footer__big { font: 400 clamp(1.4rem, 2.6vw, 2.2rem)/1.25 var(--serif); max-width: 30ch; }
.footer__big a { color: var(--accent); word-break: break-word; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 1rem 4rem; }
.footer__cols ul { display: grid; gap: 0.3rem; }
.footer__cols a { text-decoration: none; display: inline-block; padding: 0.3rem 0; }
.footer__cols a:hover { text-decoration: underline; }
.footer__legal { font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.4rem; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 2fr 1fr; } .footer__legal { grid-column: 1 / -1; } }

/* ---------- page heads ---------- */
.page-head { padding-top: clamp(40px, 7vw, 104px); padding-bottom: clamp(48px, 7vw, 96px); }
.page-head__lede { margin-top: 1.8rem; max-width: 54ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.filters button { min-height: 44px; padding: 0 1rem; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 0.9rem; transition: background 0.2s, color 0.2s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-empty { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- about ---------- */
.about-head { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 900px) { .about-head { grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); } }
.about-head__portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; }
@media (max-width: 899px) { .about-head__portrait { max-width: 320px; } }
.bring { display: grid; gap: 0 clamp(24px, 3vw, 48px); }
@media (min-width: 640px) { .bring { grid-template-columns: 1fr 1fr; } }
.bring li { border-top: 1px solid var(--line-strong); padding: 1.5rem 0 2rem; }
.bring h3 { font: 400 1.45rem/1.2 var(--serif); margin-bottom: 0.6rem; }
.bring p { color: var(--muted); }

.timeline__item { display: grid; gap: 1rem 3rem; padding: 2.2rem 0 2.6rem; border-top: 1px solid var(--line-strong); }
@media (min-width: 900px) { .timeline__item { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); } }
.timeline__meta { font-size: 0.9rem; color: var(--muted); }
.timeline__period { color: var(--ink); font-weight: 500; font-feature-settings: "tnum"; }
.timeline__body h3 { font: 400 clamp(1.6rem, 2.4vw, 2.1rem)/1.15 var(--serif); }
.timeline__org { font-weight: 500; margin-top: 0.3rem; }
.timeline__summary { color: var(--muted); margin: 0.8rem 0 1.2rem; max-width: 60ch; }
.timeline__reported { margin-top: 1.8rem; }

.list-dash li { position: relative; padding-left: 1.4rem; max-width: 66ch; }
.list-dash li + li { margin-top: 0.55rem; }
.list-dash li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.7rem; height: 1px; background: var(--accent); }

.stats { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; }
.stats li { display: grid; }
.stats__value { font: 400 clamp(2.6rem, 5vw, 4rem)/1 var(--serif); letter-spacing: -0.03em; color: var(--accent); }
.stats__label { font-size: 0.9rem; color: var(--muted); margin-top: 0.4rem; }
.stats--sm .stats__value { font-size: 2.4rem; }
.timeline__reported .stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 1.5rem 2rem; align-items: start; }
.source-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.9rem; max-width: 60ch; }

.skill-groups { display: grid; gap: 2.4rem clamp(24px, 3vw, 48px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.skill-groups > div { border-top: 1px solid var(--line-strong); padding-top: 1.2rem; }
.skill-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; }

.creds__grid { display: grid; gap: 2.5rem clamp(24px, 3vw, 48px); margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) { .creds__grid { grid-template-columns: repeat(3, 1fr); } }
.creds__grid > div { border-top: 1px solid var(--line-strong); padding-top: 1.2rem; }
.creds__grid .mini-label:not(:first-child) { margin-top: 2rem; }
.creds__main { font: 400 1.35rem/1.3 var(--serif); }
.creds__main span { display: block; font: 400 0.92rem/1.5 var(--sans); color: var(--muted); margin-top: 0.4rem; }

/* ---------- case study ---------- */
.cs-head { padding-top: clamp(32px, 6vw, 88px); padding-bottom: clamp(40px, 5vw, 64px); }
.cs-head .h-page { max-width: 20ch; font-size: clamp(2.3rem, 5.4vw, 4.8rem); }
.cs-head__lede { margin-top: 1.6rem; max-width: 60ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.cs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 clamp(20px, 3vw, 40px); margin: 2.6rem 0 1.6rem; font-size: 0.95rem; }
.cs-facts div { border-top: 1px solid var(--line-strong); padding: 0.9rem 0 1.1rem; }
.cs-facts dt { font: 600 0.7rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
.cs-facts dd { margin: 0; }
@media (min-width: 900px) { .cs-facts__wide { grid-column: span 2; } }
.cs-cover { display: flex; justify-content: center; }
.cs-cover img { width: auto; max-width: 100%; max-height: 82vh; object-fit: contain; }
.cs-body { padding-block: clamp(56px, 8vw, 112px); }
.cs-row { display: grid; gap: 1rem 3rem; padding: 2rem 0 2.4rem; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .cs-row { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); } }
.cs-row__label { font: 600 0.75rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); padding-top: 0.35rem; }
.cs-row__body { font-size: 1.08rem; }
.cs-two { display: grid; gap: 2rem; }
@media (min-width: 700px) { .cs-two { grid-template-columns: 3fr 2fr; } }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li { font-size: 0.85rem; padding: 0.4rem 0.75rem; border: 1px solid var(--line-strong); }
.cs-cta { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
.cs-cta h2 { font: 400 clamp(2rem, 4vw, 3.4rem)/1.08 var(--serif); letter-spacing: -0.02em; }
.related { border-top: 1px solid var(--line); }
.related .h-section { margin-bottom: clamp(32px, 4vw, 56px); }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: clamp(56px, 7vw, 96px); }
.gallery > *, .cs-row > *, .split > * { min-width: 0; }
.g-title { font: 400 clamp(1.4rem, 2vw, 1.8rem)/1.2 var(--serif); margin-bottom: 1.4rem; }
.g-caption, .g-full figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; }
.g-full img { width: 100%; }
.g-grid { column-gap: clamp(10px, 1.4vw, 20px); }
.g-grid figure { break-inside: avoid; margin-bottom: clamp(10px, 1.4vw, 20px); background: var(--tint); }
.g-grid img { width: 100%; }
.g-grid--2 { columns: 2; }
.g-grid--3 { columns: 2; }
.g-grid--4 { columns: 2; }
@media (min-width: 760px) { .g-grid--3 { columns: 3; } .g-grid--4 { columns: 3; } }
@media (min-width: 1100px) { .g-grid--4 { columns: 4; } }
@media (max-width: 420px) { .g-grid--2.g-grid--tall { columns: 1; } }
.g-compare { display: grid; gap: clamp(24px, 3vw, 40px); }
@media (min-width: 900px) { .g-compare { grid-template-columns: 1fr 1fr; } }
.g-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1vw, 14px); align-items: start; }
.g-pair img { width: 100%; }
.g-pair figcaption { font: 500 0.72rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.7rem; }
.g-pair figcaption.is-after { color: var(--accent); }
.g-rows { display: grid; gap: clamp(16px, 2vw, 28px); }
.g-row { display: flex; gap: clamp(8px, 1vw, 14px); align-items: flex-start; }
.g-row figure { flex-basis: 0; min-width: 0; }
.g-row img { width: 100%; }
.g-row figcaption { font: 500 0.72rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.7rem; }
.g-row figcaption.is-after { color: var(--accent); }
@media (max-width: 600px) { .g-row:has(> figure:nth-child(4)) { flex-wrap: wrap; } .g-row:has(> figure:nth-child(4)) > figure:first-child { flex-basis: 100%; } }
.metric-group + .metric-group { margin-top: 2rem; }
.cs-links { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.g-video { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
@media (min-width: 760px) { .g-video { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .g-video { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.g-video__poster { position: relative; background: var(--tint); }
.g-video__poster img, .g-video video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.g-video__badge { position: absolute; left: 8px; bottom: 8px; display: inline-flex; gap: 6px; align-items: center; background: var(--bg); color: var(--accent); font-size: 0.7rem; padding: 5px 8px; }
.yt { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: var(--ink); overflow: hidden; aspect-ratio: 9 / 16; }
.yt--wide { aspect-ratio: 16 / 9; }
.yt img.yt__thumb { object-fit: cover; }
.yt__num { position: absolute; left: 10px; top: 10px; font: 500 0.75rem/1 var(--sans); letter-spacing: 0.1em; color: rgba(247, 246, 242, 0.75); }
.g-video--wide { grid-template-columns: 1fr !important; }
.yt-frame.yt-frame--wide { aspect-ratio: 16 / 9; }
.yt img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.3s; }
.yt:hover img { opacity: 0.85; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--bg); color: var(--accent); display: grid; place-items: center; }
.yt__play .icon { margin-left: 3px; }
.yt-frame { width: 100%; aspect-ratio: 9 / 16; border: 0; display: block; background: var(--ink); }
.g-insta { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.g-insta .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; }
.g-insta blockquote.instagram-media:not([style]) { border: 1px solid var(--line-strong); padding: 1.4rem; min-height: 120px; display: flex; align-items: flex-end; background: #fff; }
.g-insta blockquote a { display: inline-flex; gap: 0.5rem; align-items: center; font-weight: 500; text-decoration: none; }
.table-wrap { overflow-x: auto; }
.g-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 480px; }
.g-table th, .g-table td { text-align: left; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.g-table thead th { font: 600 0.7rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line-strong); }
.g-table tbody th { font-weight: 500; }

/* ---------- contact ---------- */
.contact { display: grid; gap: clamp(40px, 6vw, 96px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.contact__direct > p { color: var(--muted); margin-top: 1.4rem; }
.contact__links { margin-top: 1rem; display: grid; }
.contact__links a { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); text-decoration: none; word-break: break-word; }
.contact__links a:hover { color: var(--accent); }
.contact__based { font-size: 0.9rem; }
.form { display: grid; gap: 1.4rem; }
.form__row { display: grid; gap: 1.4rem; align-items: start; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field label span[aria-hidden] { color: var(--accent); }
.field__opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0.8rem 0.95rem;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 0;
  transition: border-color 0.2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.field__hint { font-size: 0.85rem; color: var(--muted); }
.field__error { font-size: 0.85rem; color: var(--accent); font-weight: 500; min-height: 0; }
.field__error:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.form__note { font-size: 0.85rem; color: var(--muted); max-width: 36ch; }
.form__status { padding: 1.1rem 1.2rem; border-left: 3px solid var(--ink); background: var(--tint); }
.form__status--ok { border-color: #2f7d4f; }
.form__status--error { border-color: var(--accent); }
.form__status a { color: var(--accent); }
.resume-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 2.2rem; padding-bottom: clamp(56px, 8vw, 104px); }
.resume-band p { font: 400 1.6rem/1.2 var(--serif); }
.notfound { min-height: 55vh; }

/* ---------- review notes (internal) ---------- */
.review-note { border: 1px dashed var(--accent); background: rgba(133, 25, 39, 0.04); color: var(--accent); padding: 1rem 1.2rem; margin: 0 0 2rem; font-size: 0.88rem; max-width: 760px; }
.review-note__title { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; margin-bottom: 0.5rem; }
.review-note ul { list-style: disc; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.section .review-note { margin-top: 2rem; }

/* ---------- motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
@media print {
  .header, .footer, .closing, .review-note, .nav-toggle { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
