@charset "UTF-8";

/* =========================================================
   Cindy Feng — Digital Portfolio
   Shared design system: every page uses this one template.
   1. Tokens  2. Base  3. Header/Nav  4. Page header
   5. Entries & figures  6. Components  7. Home  8. Footer
   9. Responsive
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --paper-3: #e7dfd2;
  --ink: #151b23;
  --ink-soft: #4b5566;
  --ink-faint: #6f7889;
  --line: #dad2c5;
  --line-soft: #e6dfd3;
  --accent: #2c73d2;
  --accent-deep: #1d4e8f;
  --accent-wash: #e8eff9;
  --dark: #101821;
  --dark-soft: #cfd7e2;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max: 1140px;
  --measure: 68ch;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-s: 0 1px 2px rgba(21, 27, 35, .05), 0 6px 18px -12px rgba(21, 27, 35, .25);
  --shadow-m: 0 2px 4px rgba(21, 27, 35, .05), 0 18px 40px -26px rgba(21, 27, 35, .38);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Faint paper grain so the warm background reads as stock, not flat grey. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: radial-gradient(rgba(21, 27, 35, .035) 1px, transparent 1px);
  background-size: 4px 4px;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.014em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 44px);
  position: relative;
  z-index: 1;
}

.measure { max-width: var(--measure); }

/* ---------- 3. Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(var(--paper-rgb), .92);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  display: grid;
  place-items: center;
  line-height: 1;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.brand__sub {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--paper-2); }
.nav__link[aria-current="page"] {
  color: #fff;
  background: var(--ink);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  margin-inline: auto;
  position: relative;
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- 4. Page header ---------- */
.page-head {
  padding: clamp(44px, 7vw, 88px) 0 clamp(30px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 20px;
}
.eyebrow::after {
  content: "";
  height: 1px;
  width: 46px;
  background: var(--accent);
  opacity: .45;
}
.eyebrow__num {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-faint);
}

.page-title {
  font-size: clamp(2.35rem, 6vw, 4.15rem);
  max-width: 22ch;
}

.page-lede {
  margin-top: 22px;
  font-size: clamp(1.03rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Meta chips carry the required date / grade-year label for every entry. */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.4;
  white-space: nowrap;
}
.chip--accent {
  border-color: var(--accent-line);
  background: var(--accent-wash);
  color: var(--accent-deep);
}
.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

/* ---------- 5. Entries & figures ---------- */
.stack { padding: clamp(38px, 5vw, 64px) 0 0; }

.entry {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding-bottom: clamp(40px, 5vw, 62px);
}
.entry + .entry { border-top: 1px solid var(--line-soft); padding-top: clamp(40px, 5vw, 62px); }

.entry__rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.entry__num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  color: var(--num);
  letter-spacing: -.02em;
}
.entry__year {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  white-space: nowrap;
}

.entry__body { min-width: 0; }

.entry__title {
  font-size: clamp(1.5rem, 2.7vw, 2.05rem);
  margin-bottom: 8px;
  max-width: 26ch;
}
.entry__kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.entry__text {
  color: var(--ink-soft);
  max-width: var(--measure);
}
.entry__text strong { color: var(--ink); }

.fig-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.fig-grid--1 { grid-template-columns: minmax(0, 1fr); }
.fig-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fig-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fig-grid--split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fig-grid--quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }

figure { margin: 0; }

.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper-2);
  cursor: zoom-in;
  box-shadow: var(--shadow-s);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  aspect-ratio: 4 / 3;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.shot:hover img { transform: scale(1.025); }
.shot--contain img { object-fit: contain; background: #fff; }

/* Scans and diagrams: keep the document's own proportions, no cropping. */
.shot--doc {
  aspect-ratio: auto;
  cursor: zoom-in;
}
.shot--doc img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}
.shot--tall { aspect-ratio: 3 / 4; }
.shot--wide { aspect-ratio: 16 / 10; }

figcaption {
  position: relative;
  margin-top: 11px;
  padding-left: 21px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-faint);
}
figcaption::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 12px;
  height: 1px;
  background: var(--accent);
  opacity: .6;
}
figcaption b { color: var(--ink-soft); font-weight: 600; }

/* Placeholder blocks: used only where material is genuinely missing. */
.slot {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(45deg, rgba(21,27,35,.017) 0 8px, transparent 8px 16px),
    var(--card);
  padding: 30px 24px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
  line-height: 1.6;
  display: grid;
  gap: 4px;
  place-content: center;
  min-height: 150px;
}
.slot__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* ---------- 6. Components ---------- */
.panel {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card-2));
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-s);
}
.panel__title {
  font-size: 1.02rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel__title::before {
  content: "";
  width: 4px;
  height: 15px;
  border-radius: 2px;
  background: var(--accent);
}

.phase-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: phase;
  display: grid;
  gap: 0;
}
.phase-list li {
  counter-increment: phase;
  position: relative;
  padding: 14px 0 14px 46px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 15.5px;
}
.phase-list li:last-child { border-bottom: 0; padding-bottom: 2px; }
.phase-list li::before {
  content: "0" counter(phase);
  position: absolute;
  left: 0;
  top: 15px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .04em;
}
.phase-list b { color: var(--ink); font-weight: 600; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 26px;
}
.metric {
  background: var(--card);
  padding: 20px 20px 18px;
}
.metric__value {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--ink);
}
.metric__value span { font-size: .62em; color: var(--accent-deep); margin-left: 2px; }
.metric__label {
  margin-top: 7px;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.pullquote {
  margin: 34px 0 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 46ch;
  letter-spacing: -.008em;
}
.pullquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-style: normal;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 15px 18px;
  border: 1px solid var(--accent-line);
  background: var(--accent-wash);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--accent-deep);
}
.note b { font-weight: 600; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 72px);
  padding: 26px 0 clamp(56px, 8vw, 92px);
}
.pager__link {
  display: grid;
  gap: 4px;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background-color .18s var(--ease);
  max-width: 46%;
}
.pager__link:hover { background: var(--paper-2); }
.pager__link--next { text-align: right; margin-left: auto; }
.pager__dir {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.pager__name { font-family: var(--serif); font-size: 1.05rem; }

/* ---------- 7. Home ---------- */
.hero { padding: clamp(44px, 7vw, 86px) 0 clamp(36px, 5vw, 56px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero__title {
  font-size: clamp(3rem, 8.5vw, 5.6rem);
  letter-spacing: -.03em;
  line-height: 1.26;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
  display: block;
}
.hero__lede {
  margin-top: 24px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.65;
}
.hero__portrait {
  position: relative;
  justify-self: end;
  width: min(340px, 100%);
}
.hero__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 200px 200px 22px 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-m);
  background: var(--paper-2);
}
.hero__portrait::after {
  content: "Cindy Feng · Digital Portfolio";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-faint);
  list-style: none;
  padding-left: 0;
}
.facts li { display: flex; align-items: baseline; gap: 8px; }
.facts b {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.sections-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 18px;
  border-top: 1px solid var(--line);
  margin-top: clamp(30px, 5vw, 54px);
}
.sections-head h2 {
  font-size: 12px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.sections-head span {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: clamp(10px, 2vw, 20px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
  min-height: 178px;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line-strong);
  box-shadow: var(--shadow-m);
  color: var(--ink);
}
.card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.card__num {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-faint);
}
.card__year {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.card__title {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.012em;
}
.card__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-faint);
  margin: 0;
}
.card__more {
  margin-top: auto;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-top: 6px;
}
.card__more::after {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: width .25s var(--ease);
}
.card:hover .card__more::after { width: 26px; }

.card--feature {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 0;
  height: 222px;
}
.card--feature .card__content {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}
.card--feature .card__thumb {
  flex: 0 0 42%;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--paper-2);
}
.card--feature .card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  transition: transform .6s var(--ease);
}
.card--feature:hover .card__thumb img { transform: scale(1.04); }

.statement {
  margin-top: clamp(40px, 6vw, 70px);
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--dark-soft);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  box-shadow: var(--shadow-m);
}
.statement h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  color: #fff;
  max-width: 20ch;
}
.statement p { color: var(--dark-soft); font-size: 15px; margin: 0; }
.statement__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}
.statement__tags li {
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #dbe3ee;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---------- 8. Footer ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--dark);
  color: var(--dark-soft);
  padding: clamp(38px, 5vw, 56px) 0 30px;
  position: relative;
  z-index: 1;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.28rem;
  color: #fff;
  margin: 0 0 8px;
}
.footer-note {
  font-size: 13px;
  color: var(--dark-soft);
  max-width: 42ch;
  margin: 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 520px;
}
.footer-nav a {
  font-size: 12.5px;
  color: var(--dark-soft);
  text-decoration: none;
  letter-spacing: .03em;
}
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dark-faint);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(9, 13, 19, .93);
  backdrop-filter: blur(6px);
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  object-fit: contain;
}
.lightbox__cap {
  color: #c8d3e0;
  font-size: 13px;
  margin-top: 14px;
  text-align: center;
  max-width: 70ch;
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Reveal ---------- */
.js .reveal {
  transform: translateY(12px);
  transition: transform .55s var(--ease);
}
.js .reveal.is-in { transform: none; }

/* ---------- 9. Responsive ---------- */
@media (max-width: 1040px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--feature { grid-column: span 2; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.is-open .nav {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-m);
    padding: 10px clamp(20px, 5vw, 44px) 18px;
  }
  .site-header.is-open .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .site-header.is-open .nav__link {
    padding: 11px 12px;
    border-radius: 8px;
    font-size: 14px;
  }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { justify-self: start; width: min(260px, 70%); }
  .statement { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .entry {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .entry__rail {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
  .entry__num { font-size: 22px; }
  .fig-grid--2, .fig-grid--3, .fig-grid--split, .fig-grid--quad {
    grid-template-columns: 1fr;
  }
  .fig-grid { gap: 22px; }
  .card-grid { grid-template-columns: 1fr; }
  .card--feature { grid-column: span 1; flex-direction: column; padding: 0; }
  .card--feature .card__thumb {
    flex: 0 0 auto;
    order: -1;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .pager { flex-direction: column; }
  .pager__link { max-width: 100%; }
  .pager__link--next { text-align: left; margin-left: 0; }
}

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

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .pager, .lightbox { display: none; }
  body { background: #fff; }
  body::before { display: none; }
  .shot { box-shadow: none; }
}
