/* Nancy Sharma — Content & Social Media Strategist
   Editorial design system. Two families: Instrument Serif (display) + Inter Tight (text). */

:root {
  --paper: #f3efe7;
  --paper-2: #ebe5d9;
  --card: #fbf9f4;
  --ink: #131211;
  --ink-2: #2a2826;
  --muted: #5b5750;
  --accent: #b4573b;   /* muted terracotta: used sparingly */
  --accent-ink: #9a452c; /* accent for small text on paper (AA) */
  --clay: #cf9c85;     /* soft block that sits behind the portrait */
  --line: rgba(19, 18, 17, 0.2);
  --line-strong: rgba(19, 18, 17, 0.85);

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 82rem;
  --section-y: clamp(2.25rem, 4.5vw, 3.5rem);
  --header-h: 3.75rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ink); color: var(--paper); }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; text-decoration: none;
}
.skip:focus { top: 0.75rem; }

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

/* ---------- Type scale ---------- */
.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.display { font-family: var(--serif); font-weight: 400; line-height: 0.92; letter-spacing: -0.012em; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 5.4vw, 4.25rem); line-height: 1; letter-spacing: -0.01em; }
.h2 em, .display em { font-style: italic; }
.meta { font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0 1.6rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand-mark { font-family: var(--serif); font-size: 1.6rem; line-height: 1; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark i { color: var(--accent); font-style: normal; }
.nav-list { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); flex-wrap: wrap; }
.nav-list a {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 0.5rem 0; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease);
}
.nav-list a:hover, .nav-list a[aria-current="true"] { background-size: 100% 1px; }
.nav-list .nav-cta { border: 1px solid var(--ink); padding: 0.6rem 1.1rem; background-image: none; }
.nav-list .nav-cta:hover { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(1.5rem, 3.5vw, 3rem) 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.hero__kicker { display: flex; align-items: center; gap: 0.75rem; margin-bottom: clamp(0.9rem, 2vw, 1.5rem); }
.hero__kicker::before { content: ""; width: 2.25rem; height: 1px; background: var(--ink); }
.hero h1 { margin: 0; }
.hero__name {
  display: block; font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3.4rem, 10.6vw, 9.25rem); line-height: 0.84; letter-spacing: -0.015em;
}
.hero__role {
  display: block; margin-top: clamp(0.9rem, 2vw, 1.6rem);
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.75rem, 3.7vw, 3.35rem); line-height: 1.02; letter-spacing: -0.005em;
}
.hero__role b { font-weight: 400; font-style: normal; color: var(--accent-ink); }
.hero__lede { max-width: 34rem; margin-top: clamp(1rem, 2vw, 1.5rem); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1.25rem, 2.4vw, 2rem); }

.portrait { position: relative; margin: 0; isolation: isolate; }
.portrait::before { /* accent lives behind the photo, never on it */
  content: ""; position: absolute; z-index: -1; left: -1.5rem; bottom: 2.6rem; width: 62%; height: 74%; background: var(--clay);
}
.portrait__plate { position: relative; aspect-ratio: 4 / 4.7; overflow: hidden; background: #ececea; outline: 1px solid var(--line); outline-offset: -1px; }
.portrait__plate picture { display: block; width: 100%; height: 100%; }
.portrait__plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.portrait figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; }

/* index strip under hero */
.index-strip { margin-top: clamp(1.75rem, 3.5vw, 3rem); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.index-strip ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.index-strip li { padding: 0.9rem 1rem 0.95rem 0; display: flex; gap: 0.7rem; align-items: baseline; }
.index-strip li + li { padding-left: 1rem; border-left: 1px solid var(--line); }
.index-strip .n { font-size: 0.75rem; font-weight: 600; color: var(--accent-ink); letter-spacing: 0.08em; }
.index-strip .t { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.1; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 1rem clamp(1rem, 4vw, 3rem);
  align-items: baseline; border-top: 1px solid var(--line-strong); padding-top: 1rem; margin-bottom: clamp(1.5rem, 3.5vw, 2.75rem);
}
.section-head .eyebrow { color: var(--ink); }
.section-head .aside { margin-top: 0.75rem; max-width: 36rem; color: var(--ink-2); }

/* ---------- Work ---------- */
.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); }
.project--feature { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); padding-top: 1rem; }
.cover {
  position: relative; aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: space-between;
  padding: 1rem 1.1rem; margin-bottom: 1.1rem; overflow: hidden; background: var(--ink); color: var(--paper);
}
.cover--accent { background: var(--clay); color: var(--ink); }
.cover--sand { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.cover::after { content: ""; position: absolute; inset: 0.45rem; border: 1px solid currentColor; opacity: 0.16; pointer-events: none; transition: opacity 0.3s var(--ease); }
.cover__num { transition: transform 0.35s var(--ease); }
.cover__tag { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.cover__num { font-family: var(--serif); font-size: clamp(4.5rem, 9vw, 7.5rem); line-height: 0.8; font-style: italic; align-self: flex-end; opacity: 0.95; }
.project--feature h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.5vw, 2.2rem); line-height: 1.02; margin-bottom: 1rem; letter-spacing: -0.005em; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: auto; }
.facts div { display: grid; grid-template-columns: 6.9rem 1fr; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.4; }
.facts dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 0.2rem; }

.more-label { display: flex; justify-content: space-between; gap: 1rem; margin: clamp(2rem, 4vw, 3rem) 0 0.5rem; }
.rows li { display: grid; grid-template-columns: 3rem minmax(0, 5fr) minmax(0, 4fr) minmax(0, 2fr); gap: 1rem; align-items: baseline; padding: 1rem 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .n { font-size: 0.75rem; font-weight: 600; color: var(--accent-ink); letter-spacing: 0.08em; }
.rows h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.1; }
.rows .ctx { color: var(--ink-2); font-size: 0.9375rem; }
.rows .st { text-align: right; }

/* ---------- Experience ---------- */
.path { display: flex; align-items: stretch; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line-strong); }
.path li { flex: 1 1 0; padding: 0.9rem 1.1rem; position: relative; }
.path li + li { border-left: 1px solid var(--line-strong); }
.path li:last-child { background: var(--ink); color: var(--paper); }
.path li:last-child .meta { color: rgba(243, 239, 231, 0.7); }
.path .t { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.1; display: block; }
.path li:not(:last-child)::after {
  content: "→"; position: absolute; right: -0.7rem; top: 50%; transform: translateY(-50%);
  width: 1.4rem; height: 1.4rem; display: grid; place-items: center; z-index: 2;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 50%; font-size: 0.8rem; line-height: 1;
}

.role { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 1rem clamp(1rem, 4vw, 3rem); padding: clamp(1.25rem, 2.6vw, 2rem) 0; border-top: 1px solid var(--line); }
.role:last-child { border-bottom: 1px solid var(--line); }
.role__when { display: flex; flex-direction: column; gap: 0.35rem; }
.role__step { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); }
.role__date { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.1; }
.role__main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 2rem; align-items: start; }
.role h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -0.01em; }
.role__org { margin-top: 0.6rem; font-weight: 600; }
.role__org span { font-weight: 400; color: var(--muted); }
.role__desc { grid-column: 1 / -1; max-width: 42rem; margin-top: 0.4rem; color: var(--ink-2); }
.role__logo { grid-column: 2; grid-row: 1; justify-self: end; }

/* ---------- Brands ---------- */
.brands-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.brand { display: flex; align-items: center; justify-content: center; min-height: 8.5rem; padding: 1.5rem 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-slot { display: flex; align-items: center; justify-content: center; min-height: 3rem; width: 100%; }
/* natural proportions; size follows each asset's own width, never upscaled much, never filtered */
.logo { display: block; width: calc(var(--w, 160) * 1px * 1.15); max-width: min(100%, 15rem); height: auto; }
.role__logo { width: auto; }
.role__logo .logo { width: calc(var(--w, 140) * 1px * 0.9); max-width: 11rem; }
.wordmark { font-family: var(--serif); font-size: 1.6rem; line-height: 1; text-align: center; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 5vw, 4.5rem); }
.about__lead { font-family: var(--serif); font-size: clamp(1.75rem, 3.2vw, 2.7rem); line-height: 1.08; letter-spacing: -0.005em; }
.about__lead em { color: var(--accent-ink); }
.about__body { margin-top: 1.25rem; max-width: 38rem; color: var(--ink-2); }
.about__body + .about__body { margin-top: 0.9rem; }
.journey { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin-top: 1.75rem; }
.journey li { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.45rem 0.8rem; border: 1px solid var(--ink); }
.journey li:last-child { background: var(--ink); color: var(--paper); }
.journey .sep { border: 0; padding: 0; font-size: 1rem; letter-spacing: 0; }
.skills li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.25rem 0.5rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.skills li:last-child { border-bottom: 1px solid var(--line); }
.skills .n { font-size: 0.75rem; font-weight: 600; color: var(--accent-ink); padding-top: 0.35rem; letter-spacing: 0.08em; }
.skills h3 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.1; }
.skills p { grid-column: 2; font-size: 0.9375rem; color: var(--muted); line-height: 1.4; }

/* ---------- Education ---------- */
.edu { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 1rem clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--line-strong); padding-top: 1rem; align-items: baseline; }
.edu__deg { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.05; }
.edu__deg span { display: block; margin-top: 0.3rem; font-family: var(--sans); font-size: 1rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.contact .h2 { font-size: clamp(2.5rem, 6.4vw, 5.5rem); }
.contact p.lede { margin-top: 1.25rem; max-width: 30rem; color: var(--ink-2); }
.profile { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2rem); padding: clamp(1.25rem, 2.6vw, 2rem); background: var(--card); border: 1px solid var(--ink); box-shadow: 0.5rem 0.5rem 0 var(--clay); }
.profile__photo { flex: none; width: clamp(7rem, 12vw, 9rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--ink); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.profile__id { min-width: 0; }
.profile__name { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1; letter-spacing: -0.01em; }
.profile__role { margin-top: 0.45rem; color: var(--muted); font-size: 1rem; line-height: 1.35; }
.profile__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.1rem; }
.ico, .pill { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease); }
.ico { width: 2.75rem; height: 2.75rem; border-radius: 50%; }
.pill { gap: 0.5rem; height: 2.75rem; padding: 0 1.1rem; border-radius: 2rem; background: var(--ink); color: var(--paper); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.ico:hover { background: var(--ink); color: var(--paper); }
.pill:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); margin-top: var(--section-y); padding-top: clamp(2.5rem, 5vw, 4rem); }
.site-footer a { text-decoration: none; }
.f-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: end; padding-bottom: clamp(2rem, 4vw, 3.25rem); }
.f-kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(243, 239, 231, 0.6); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.f-kicker::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.f-cta { font-family: var(--serif); font-size: clamp(2.6rem, 6.6vw, 5.75rem); line-height: 0.95; letter-spacing: -0.012em; }
.f-cta em { color: var(--clay); }
.site-footer .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); margin-top: 1.75rem; }
.site-footer .btn:hover { background: var(--clay); border-color: var(--clay); color: var(--ink); }
.f-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-bottom: 0.25rem; }
.f-nav h2 { font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(243, 239, 231, 0.6); margin-bottom: 0.6rem; padding-bottom: 0.6rem; border-bottom: 1px solid rgba(243, 239, 231, 0.25); }
.f-nav a { display: inline-flex; align-items: center; min-height: 2.5rem; font-size: 1.0625rem; background: linear-gradient(var(--clay), var(--clay)) left bottom 0.45rem / 0 1px no-repeat; transition: background-size 0.3s var(--ease); }
.f-nav a:hover { background-size: 100% 1px; }
.f-brand { border-top: 1px solid rgba(243, 239, 231, 0.25); padding-top: clamp(1rem, 2vw, 1.5rem); }
.f-wordmark { font-family: var(--serif); font-size: clamp(2.4rem, 9.6vw, 9.5rem); line-height: 0.86; letter-spacing: -0.015em; text-transform: uppercase; white-space: nowrap; }
.f-sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; margin-top: 0.9rem; color: rgba(243, 239, 231, 0.75); }
.f-tag { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--clay); }
.f-legal { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: clamp(1.25rem, 2.5vw, 2rem); padding-block: 0.4rem; border-top: 1px solid rgba(243, 239, 231, 0.25); font-size: 0.8125rem; color: rgba(243, 239, 231, 0.7); }
.f-legal p, .f-legal a { min-height: 2.75rem; display: inline-flex; align-items: center; gap: 0.35em; }
.f-legal a { color: var(--paper); letter-spacing: 0.04em; }
.f-legal a:hover { color: var(--clay); }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta { display: none; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Tablet ---------- */
@media (max-width: 62rem) {
  .featured { grid-template-columns: 1fr; }
  .project--feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 1.5rem; }
  .project--feature .cover { grid-row: 1 / span 2; margin-bottom: 0; aspect-ratio: auto; min-height: 12rem; }
  .project--feature h3 { margin-bottom: 0.75rem; }
  .rows li { grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1fr); }
  .rows .st { grid-column: 3; text-align: left; }
  .rows .ctx { grid-column: 2 / 4; }
  .contact, .about, .f-top { grid-template-columns: 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 47.9375rem) {
  :root { --header-h: 3.5rem; }
  .site-header { position: relative; top: auto; }
  body { font-size: 1rem; }

  .menu-btn {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.9rem;
    border: 1px solid var(--ink); background: transparent; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  }
  .menu-btn .bars { width: 1rem; height: 0.7rem; position: relative; display: inline-block; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.25s var(--ease), top 0.25s var(--ease); }
  .menu-btn .bars::before { top: 0.1rem; } .menu-btn .bars::after { top: 0.5rem; }
  .menu-btn[aria-expanded="true"] .bars::before { top: 0.3rem; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .bars::after { top: 0.3rem; transform: rotate(-45deg); }

  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--ink); padding: 0.5rem var(--gutter) 1.25rem; display: none; }
  .js .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { font-family: var(--serif); font-size: 2.1rem; font-weight: 400; letter-spacing: -0.005em; text-transform: none; padding: 0.55rem 0; border-bottom: 1px solid var(--line); background: none; display: block; }
  .nav-list .nav-cta { border: 0; border-bottom: 1px solid var(--line); padding: 0.55rem 0; }
  .site-nav:not(.is-open) .nav-list { flex-direction: row; gap: 0.9rem; }
  .html:not(.js) .nav-list a { font-size: 0.75rem; }

  .hero { padding-top: 1.5rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .hero__text { display: contents; }
  .hero__head { order: 1; }
  .portrait { order: 3; width: 74%; margin-left: auto; margin-top: 0.75rem; }
  .portrait::before { left: -2.4rem; width: 70%; height: 66%; bottom: 0; }
  .portrait figcaption { display: none; }
  .portrait__plate { aspect-ratio: 1 / 1.02; }
  .hero__body { order: 2; }
  .hero__name { font-size: clamp(3.2rem, 17.5vw, 5.6rem); }
  .hero__role { font-size: clamp(1.7rem, 8.4vw, 2.6rem); }
  .hero__lede { margin-top: 0; font-size: 1.0625rem; }
  .hero__cta { margin-top: 1rem; }
  .hero__cta { flex-wrap: nowrap; }
  .hero__cta .btn { flex: 1 1 0; min-height: 3rem; padding: 0 0.75rem; letter-spacing: 0.1em; white-space: nowrap; }
  .index-strip ul { grid-template-columns: 1fr 1fr; }
  .index-strip li { padding: 0.8rem 0.5rem 0.8rem 0; }
  .index-strip li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .index-strip li:nth-child(even) { padding-left: 0.9rem; }
  .index-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }

  .section-head, .role, .edu { grid-template-columns: 1fr; gap: 0.4rem; }
  .project--feature { display: flex; }
  .project--feature .cover { aspect-ratio: 16 / 6.5; min-height: 0; margin-bottom: 1rem; }
  .cover__num { font-size: 4rem; }
  .facts div { grid-template-columns: 6.9rem 1fr; }
  .rows li { grid-template-columns: 2rem minmax(0, 1fr); gap: 0.25rem 0.5rem; }
  .rows .ctx, .rows .st { grid-column: 2; text-align: left; }

  .path { flex-direction: column; }
  .path li + li { border-left: 0; border-top: 1px solid var(--line-strong); }
  .path li:not(:last-child)::after { content: "↓"; right: 1rem; top: auto; bottom: -0.7rem; transform: none; }
  .role__main { grid-template-columns: 1fr; }
  .role__logo { grid-column: 1; grid-row: auto; justify-self: start; }

  .brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand { min-height: 6.5rem; padding: 1rem 0.9rem; }
  .brand:nth-child(3) { grid-column: 1 / -1; }
  .logo { width: calc(var(--w, 160) * 1px); max-width: 100%; }
  .role__logo .logo { max-width: 9rem; }

  .contact .h2 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .profile { flex-direction: column; text-align: center; gap: 1rem; padding: 1.5rem 1.1rem; box-shadow: 0.375rem 0.375rem 0 var(--clay); margin-right: 0.375rem; }
  .profile__links { justify-content: center; margin-top: 0.9rem; }

  .site-footer { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); margin-top: 2rem; }
  .f-nav { gap: 1rem; }
  .f-wordmark { font-size: 10.2vw; }

  .sticky-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--ink);
  }
  .sticky-cta a {
    flex: 1; min-height: 3.1rem; display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    background: var(--ink); color: var(--paper); text-decoration: none;
    font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  }
  .sticky-cta a:active { background: var(--accent); color: var(--ink); }
}

@media (max-width: 22.5rem) {
  .eyebrow { letter-spacing: 0.08em; font-size: 0.6875rem; }
  .hero__cta .btn { font-size: 0.75rem; letter-spacing: 0.06em; }
  .brands-grid { grid-template-columns: 1fr 1fr; }
  .hero__name { font-size: 3.1rem; }
}

@media print { .site-header, .sticky-cta { display: none; } body { padding: 0; } }


/* Fabrication Arena's asset carries its own navy plate: keep it compact */
.brand:nth-child(3) .logo { max-width: 14rem; }

/* compact project covers: same language as the featured three */
.compact { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 1.8vw, 1.5rem); margin-top: 0.75rem; }
.project--compact { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); padding-top: 0.9rem; }
.project--compact .cover { aspect-ratio: 4 / 3; margin-bottom: 0.9rem; padding: 0.85rem 0.9rem; }
.project--compact .cover__num { font-size: clamp(3.25rem, 5vw, 4.5rem); }
.project--compact h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.9vw, 1.6rem); line-height: 1.05; margin-bottom: 0.5rem; }
.project--compact .ctx { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.4; }
.project--compact .meta { margin-top: auto; padding-top: 0.6rem; }

/* understated interaction (hover, keyboard focus and touch press) */
@media (hover: hover) {
  .project:hover .cover__num { transform: translate(-0.3rem, -0.3rem); }
  .project:hover .cover::after { opacity: 0.45; }
}
.project:active .cover::after { opacity: 0.45; }
@media (max-width: 75rem) { .compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 47.9375rem) {
  .compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.9rem; }
  .project--compact:last-child { grid-column: 1 / -1; }
  .project--compact:last-child .cover { aspect-ratio: 16 / 6.5; }
  .project--compact .cover { aspect-ratio: 1 / 0.9; }
  .project--compact .cover__num { font-size: 3.4rem; }
  .project--compact .cover__tag { font-size: 0.625rem; letter-spacing: 0.12em; line-height: 1.35; }
  .project--compact h3 { font-size: 1.3rem; }
  .project--compact .ctx { font-size: 0.875rem; }
}
