/* ==========================================================================
   siddharthsharma.net
   Design system — warm editorial (light)
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
img, picture, svg, video { display: block; max-width: 100%; }
/* Intrinsic width/height attributes reserve layout space; height must stay fluid. */
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }

/* ---------- Tokens ----------
   Warm paper palette. The photography carries the colour, so the page
   itself stays quiet: cream ground, warm near-black ink, marigold accent. */
:root {
  /* Surfaces */
  --bg:          #FDFBF6;
  --bg-raised:   #FFFFFF;
  --bg-card:     #FFFFFF;
  --bg-inset:    #F6F1E6;

  /* Ink */
  --ink:         #1C1A17;
  --ink-soft:    #4A443C;
  --ink-dim:     #6B645A;
  --ink-faint:   #756D60;

  /* Accent — marigold.
     --accent is used for text and must clear WCAG AA on --bg:
     #A15A09 clears 4.5:1 on every surface it appears on —
     page 5.10:1, cream inset 4.68:1, white card 5.27:1 — and
     white-on-accent is 5.27:1 for the primary button.
     --accent-soft is decorative only (glows, washes) and is not
     used for text anywhere. */
  --accent:      #A15A09;
  --accent-soft: #F2A93B;
  --accent-dim:  rgba(242, 169, 59, 0.18);

  /* Lines */
  --line:        rgba(28, 26, 23, 0.11);
  --line-strong: rgba(28, 26, 23, 0.22);

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Rhythm */
  --gutter:  clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4.5rem, 11vw, 9rem);
  --maxw:    1240px;
  --prose:   68ch;

  --radius:  4px;
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fine paper grain — keeps large flat fields from looking sterile */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.016;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent-dim); color: var(--ink); }

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

.skip-link {
  position: absolute; left: 0; top: 0;
  transform: translateY(-120%);
  background: var(--accent); color: #FFFFFF;
  padding: 0.7rem 1.2rem; font-weight: 600; font-size: 0.85rem;
  z-index: 10000; transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- Type scale ---------- */
.display-xl, .display-l, .display-m, .display-s {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-variation-settings: "opsz" 100, "SOFT" 0, "WONK" 0;
}
.display-xl { font-size: clamp(2.9rem, 9.2vw, 7rem); }
.display-l  { font-size: clamp(2.4rem, 6.5vw, 4.75rem); line-height: 1.04; }
.display-m  { font-size: clamp(1.9rem, 4.2vw, 3.1rem);  line-height: 1.08; }
.display-s  { font-size: clamp(1.4rem, 2.6vw, 1.95rem); line-height: 1.18; letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--muted { color: var(--ink-dim); }

.lede {
  font-size: clamp(1.08rem, 1.9vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 350;
  max-width: 56ch;
}
.muted { color: var(--ink-dim); }
.small { font-size: 0.86rem; }

/* Section heading block */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  flex-wrap: wrap;
}
.sec-head__title { flex: 1 1 auto; }
.sec-head__aside { color: var(--ink-dim); font-size: 0.86rem; }

/* ---------- Links ---------- */
.link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: border-color 0.25s, color 0.25s;
}
.link:hover { color: var(--accent); border-color: var(--accent); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.25s, gap 0.25s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--accent); gap: 0.85em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85rem 1.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
}
.btn--primary:hover { background: #834906; border-color: #834906; }
.btn--ghost:hover { border-color: var(--ink-soft); background: rgba(28,26,23,0.035); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(253, 251, 246, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(253, 251, 246, 0.93);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.brand {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  position: relative;
  font-size: 0.88rem;
  font-weight: 450;
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.4rem;
  transition: color 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -10px; }
.nav-toggle__bars { position: relative; width: 22px; height: 12px; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { bottom: 5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.75rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s, transform 0.28s var(--ease), visibility 0.28s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__link {
    font-size: 1.15rem;
    font-family: var(--display);
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--accent); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.hero::after {
  /* warm pool of light behind the portrait */
  content: "";
  position: absolute;
  top: 50%; right: 8%;
  width: 55vw; height: 55vw;
  max-width: 760px; max-height: 760px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(242,169,59,0.20) 0%, transparent 64%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
}
.hero__name { margin-bottom: 1.25rem; }

/* Hero entrance.
   Deliberately NOT tied to the scroll observer: this content is above the
   fold, so it animates from first paint rather than waiting to be observed.
   If animation is unavailable the content is simply visible. */
.hero-in {
  animation: hero-rise 0.85s var(--ease) both;
}
.hero-in-d1 { animation-delay: 0.06s; }
.hero-in-d2 { animation-delay: 0.13s; }
.hero-in-d3 { animation-delay: 0.20s; }
.hero-in-d4 { animation-delay: 0.27s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-in { animation: none; }
}
.hero__name em {
  display: block;
  font-style: normal;
  color: var(--accent);
}
.hero__role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-bottom: 1.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero__role span { display: inline-flex; align-items: center; gap: 1rem; }
.hero__role span:not(:last-child)::after {
  content: ""; width: 22px; height: 1px; background: var(--line-strong);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.85rem; }

.hero__portrait {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 460px;
}
.hero__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 2px;
}
.hero__portrait::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto auto;
  width: 46%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.hero__portrait::after {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 1px; height: 34%;
  background: linear-gradient(180deg, var(--accent), transparent);
}

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero__portrait { order: -1; justify-self: start; max-width: 260px; }
  .hero::after { right: -20%; }
  /* Stacked roles read as a list; the connecting rules only make sense inline. */
  .hero__role { gap: 0.45rem 1rem; }
  .hero__role span:not(:last-child)::after { display: none; }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.25rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint);
}
.scroll-cue__line { width: 1px; height: 42px; background: linear-gradient(180deg, var(--line-strong), transparent); }
@media (max-width: 900px) { .scroll-cue { display: none; } }

/* ==========================================================================
   Metrics strip
   ========================================================================== */
.metrics {
  border-block: 1px solid var(--line);
  background: var(--bg-inset);
}
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.metric {
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 2.5vw, 2rem);
  border-right: 1px solid var(--line);
}
.metric:last-child { border-right: 0; }
.metric__value {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 3.05rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.metric__value sup { font-size: 0.42em; color: var(--accent); vertical-align: super; margin-left: 0.15em; }
.metric__label {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}
@media (max-width: 780px) {
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   Work index (numbered contents-page style)
   ========================================================================== */
.work-list { border-top: 1px solid var(--line); }

.work-item {
  position: relative;
  display: grid;
  grid-template-columns: 5rem 1fr minmax(0, 22rem) 3rem;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding-block: clamp(1.75rem, 3.5vw, 2.6rem);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.4s var(--ease);
}
.work-item::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.5);
  background: linear-gradient(90deg, var(--accent-dim), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.work-item:hover::before { opacity: 1; }

.work-item__num {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  transition: color 0.35s;
}
.work-item:hover .work-item__num { color: var(--accent); }

.work-item__title {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.9vw, 2.1rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  transition: color 0.35s;
}
.work-item:hover .work-item__title { color: var(--accent); }
.work-item__meta {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.work-item__desc { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.6; }
.work-item__go {
  justify-self: end;
  font-size: 1.1rem;
  color: var(--ink-faint);
  transition: transform 0.35s var(--ease), color 0.35s;
}
.work-item:hover .work-item__go { transform: translateX(6px); color: var(--accent); }

@media (max-width: 900px) {
  .work-item { grid-template-columns: 2.5rem 1fr; row-gap: 0.85rem; }
  .work-item__desc { grid-column: 2; }
  .work-item__go { display: none; }
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
a.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-inset); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
a.card:hover .card__media img { transform: scale(1.045); }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card__kicker { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.card__title { font-family: var(--display); font-size: 1.22rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.card__text { font-size: 0.9rem; color: var(--ink-dim); line-height: 1.6; }

/* ==========================================================================
   Writing / column list
   ========================================================================== */
.column-list { border-top: 1px solid var(--line); }
.column-item {
  display: grid;
  grid-template-columns: 9rem 1fr minmax(0, 12rem);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: baseline;
  padding-block: clamp(1.5rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left 0.4s var(--ease);
}
.column-item:hover { padding-left: 0.75rem; }
.column-item__date {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.column-item__kicker {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.column-item__title {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.column-item:hover .column-item__title { color: var(--accent); }
.column-item__pub { font-size: 0.8rem; color: var(--ink-faint); justify-self: end; text-align: right; }
@media (max-width: 820px) {
  .column-item { grid-template-columns: 1fr; row-gap: 0.5rem; }
  .column-item__pub { justify-self: start; text-align: left; }
}

/* ==========================================================================
   Prose (long-form project narratives)
   ========================================================================== */
.prose { max-width: var(--prose); font-size: 1.06rem; line-height: 1.78; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.35em; }
.prose p { font-weight: 350; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--ink); font-style: italic; }
.prose h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 600; line-height: 1.14; letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 2.6em; margin-bottom: 0.15em;
}
.prose h3 {
  font-family: var(--display);
  font-size: 1.25rem; font-weight: 600; color: var(--ink);
  margin-top: 2em; letter-spacing: -0.02em;
}
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-dim); transition: border-color 0.25s; }
.prose a:hover { border-color: var(--accent); }
.prose ul { margin-top: 1.35em; display: grid; gap: 0.7em; }
.prose ul li { position: relative; padding-left: 1.5em; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 6px; height: 1px; background: var(--accent);
}
/* Opening line of a narrative */
.prose .lead-line {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pull-quote {
  margin-block: 2.75em;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  border-left: 2px solid var(--accent);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pull-quote cite { display: block; margin-top: 0.9rem; font-family: var(--sans); font-size: 0.82rem; font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }

/* ==========================================================================
   Project page furniture
   ========================================================================== */
.page-head { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem); }
.page-head__eyebrow { margin-bottom: 1.25rem; }
.page-head__lede { margin-top: 1.75rem; }

.breadcrumb {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--ink-faint); text-decoration: none;
  margin-bottom: 2rem; transition: color 0.25s;
}
.breadcrumb:hover { color: var(--accent); }

.fact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: clamp(2rem, 5vw, 3.5rem);
}
.fact {
  background: var(--bg-card);
  padding: 1.5rem 1.35rem;
}
.fact__label {
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 0.6rem;
}
.fact__value {
  font-family: var(--display); font-size: 1.32rem; font-weight: 600;
  line-height: 1.2; letter-spacing: -0.02em;
}
.fact__value--accent { color: var(--accent); }

.figure { margin-block: clamp(2.5rem, 6vw, 4rem); }
.figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.55;
  max-width: 60ch;
}
.figure--wide { max-width: none; }

.figure-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-block: clamp(2.5rem, 6vw, 4rem);
}
.figure-pair figure { margin: 0; }

/* Endorsement / backing list */
.backing { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.backing__item { background: var(--bg-card); padding: 1.35rem 1.5rem; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: baseline; }
.backing__name { font-weight: 550; font-size: 0.98rem; }
.backing__role { font-size: 0.84rem; color: var(--ink-dim); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(0.5rem, 1.2vw, 0.85rem);
}
.gallery__item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--tall { aspect-ratio: 3 / 4; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(253, 251, 246, 0.97);
  backdrop-filter: blur(8px);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 2px; }
.lightbox__close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  width: 44px; height: 44px; font-size: 1.6rem; line-height: 1;
  color: var(--ink-soft); transition: color 0.25s;
}
.lightbox__close:hover { color: var(--accent); }
.lightbox__caption {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-size: 0.85rem; color: var(--ink-dim); text-align: center;
  max-width: 60ch; padding-inline: 1rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.78rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-dim); }
.field input, .field textarea {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.25s, background 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--bg-card); }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.form__note { font-size: 0.8rem; color: var(--ink-faint); }
.form__status { font-size: 0.9rem; padding: 0.85rem 1rem; border-radius: var(--radius); display: none; }
.form__status.is-visible { display: block; }
.form__status--ok { background: rgba(46, 125, 74, 0.10); border: 1px solid rgba(46,125,74,0.32); color: #2E7D4A; }
.form__status--err { background: rgba(178, 48, 48, 0.08); border: 1px solid rgba(178,48,48,0.30); color: #B23030; }

.contact-list { display: grid; gap: 1.5rem; }
.contact-list__item { display: grid; gap: 0.3rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.contact-list__label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.contact-list__value { font-size: 1.02rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  border-top: 1px solid var(--line);
  background: var(--bg-inset);
  text-align: center;
}
.cta-band .wrap { padding-block: clamp(4rem, 9vw, 7rem); }
.cta-band__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.site-footer__col { display: grid; gap: 0.75rem; }
.site-footer__head { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.25rem; }
.site-footer__link { font-size: 0.9rem; color: var(--ink-soft); text-decoration: none; transition: color 0.25s; }
.site-footer__link:hover { color: var(--accent); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--ink-faint);
}
.socials { display: flex; gap: 0.5rem; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink-soft);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

/* ==========================================================================
   Reveal on scroll
   Content is visible by default; JS opts in to animation.
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js .reveal-d1.is-in { transition-delay: 0.07s; }
.js .reveal-d2.is-in { transition-delay: 0.14s; }
.js .reveal-d3.is-in { transition-delay: 0.21s; }

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

/* ---------- Utilities ---------- */
.stack-sm > * + * { margin-top: 0.75rem; }
.stack > * + * { margin-top: 1.5rem; }
.stack-lg > * + * { margin-top: 2.5rem; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
