/* =========================================================
   Marut Shukla — personal site
   Palette: warm charcoal base, off-white text, warm gold accent
   Type: Cormorant Garamond (display serif) + IBM Plex Sans (body)
   ========================================================= */

:root {
  --bg:       #15130f;
  --bg-2:     #1c1a15;        /* one-step elevation */
  --bg-3:     #25221c;        /* card / elevated */
  --rule:     rgba(232, 227, 216, 0.12);
  --rule-2:   rgba(232, 227, 216, 0.06);
  --ink:      #e8e3d8;        /* primary text */
  --ink-2:    rgba(232, 227, 216, 0.72);  /* secondary */
  --ink-3:    rgba(232, 227, 216, 0.5);   /* tertiary / labels */
  --ink-4:    rgba(232, 227, 216, 0.32);  /* faintest */
  --gold:     #d4a24c;        /* accent */
  --gold-dim: #b8893a;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 56px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 350;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--gold); color: var(--bg); }

/* ── Type ─────────────────────────────────────────── */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

/* ── Layout helpers ──────────────────────────────── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section {
  padding: clamp(72px, 11vw, 140px) 0;
  border-top: 1px solid var(--rule-2);
  position: relative;
}
section:first-of-type { border-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 {
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.0;
}
.section-head .lede {
  max-width: 560px;
  color: var(--ink-2);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
}

/* ── Top nav ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  pointer-events: none;
}
.nav__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  background: linear-gradient(to bottom, rgba(21,19,15,0.85), rgba(21,19,15,0));
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  transition: background .3s var(--ease), border-color .3s var(--ease);
  pointer-events: auto;
  z-index: 2;
}
.nav.is-scrolled .nav__bar {
  background: rgba(21,19,15,0.92);
  border-bottom: 1px solid var(--rule-2);
}
.nav__brand {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.005em;
}
.nav__brand .ms {
  color: var(--gold);
  margin-right: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  vertical-align: middle;
  transform: translateY(-2px);
  display: inline-block;
}
.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__links a {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.nav__toggle span {
  position: relative;
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--ink);
  transition: transform .25s var(--ease), top .2s var(--ease);
}
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after  { top:  5px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after  { top: 0; transform: rotate(-45deg); }

.nav__sheet {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  transform: translateY(-100%);
  transition: transform .45s var(--ease);
  z-index: 1;
  pointer-events: none;
}
.nav.is-open .nav__sheet { pointer-events: auto; }
.nav.is-open .nav__sheet { transform: translateY(0); }
.nav__sheet ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nav__sheet li {
  font-family: var(--serif);
  font-size: clamp(36px, 9vw, 56px);
  line-height: 1.05;
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.nav__sheet li .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
}
.nav__sheet a { display: inline-block; padding: 4px 0; }
.nav__sheet a:hover { color: var(--gold); }

/* ── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 0;
  border: 0;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Placeholder photograph — striped gradient, replace with real image */
.hero__media .placeholder {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(21,19,15,0) 30%, rgba(21,19,15,0.85) 100%),
    linear-gradient(90deg, rgba(21,19,15,0.55) 0%, rgba(21,19,15,0) 50%),
    repeating-linear-gradient(
      135deg,
      #2a2620 0 2px,
      #221f19 2px 14px
    ),
    radial-gradient(ellipse at 70% 30%, #4a3a26 0%, #1f1c16 60%);
}
.hero__media .placeholder::after {
  content: "REPLACE: hero-bg-photo (drone / landscape)";
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  border: 1px solid var(--rule-2);
  padding: 6px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}
.hero__vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,9,7,0.95) 0%, rgba(10,9,7,0.65) 30%, rgba(10,9,7,0.15) 60%, rgba(10,9,7,0.3) 100%),
    linear-gradient(to right, rgba(10,9,7,0.6) 0%, rgba(10,9,7,0) 55%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(96px, 14vh, 140px) var(--gutter) clamp(48px, 8vh, 80px);
}
.hero__meta-top {
  align-self: start;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__meta-top .gold { color: var(--gold); }
.hero__bottom {
  align-self: end;
  display: grid;
  gap: clamp(24px, 4vh, 40px);
  max-width: 880px;
}
.hero h1 {
  font-size: clamp(54px, 9.5vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.018em;
}
.hero h1 .em {
  font-style: italic;
  color: var(--gold);
}
.hero__sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.5;
}
.hero__sub .pipe { color: var(--ink-4); margin: 0 10px; }
.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  margin-top: 8px;
}
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  z-index: 2;
}
.hero__scroll .line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); }
  60%  { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Quiet text link */
.qlink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
  transition: color .25s var(--ease), border-color .25s var(--ease), gap .25s var(--ease);
}
.qlink .arrow { color: var(--gold); transition: transform .35s var(--ease); }
.qlink:hover { color: var(--gold); border-color: var(--gold); gap: 16px; }
.qlink:hover .arrow { transform: translateX(4px); }

/* ── ABOUT ──────────────────────────────────────── */
#about {
  background: var(--bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.about-prose {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 350;
  max-width: 62ch;
}
.about-prose p + p { margin-top: 1.5em; }
.about-prose .lead-cap::first-letter {
  font-family: var(--serif);
  font-size: 4em;
  line-height: 0.85;
  float: left;
  padding: 6px 14px 0 0;
  color: var(--gold);
  font-weight: 500;
}
.portrait {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-3);
  overflow: hidden;
  border-radius: 2px;
}
.portrait .placeholder {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(21,19,15,0.0) 50%, rgba(21,19,15,0.6) 100%),
    repeating-linear-gradient(45deg, #2e2a22 0 2px, #25221c 2px 12px);
}
.portrait .placeholder::after {
  content: "REPLACE: portrait";
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.portrait__caption {
  position: absolute;
  left: 0; right: 0;
  bottom: -28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* ── WORK / Leadership ──────────────────────────── */
#work .section-head h2 .em { font-style: italic; color: var(--gold); }

.work-essay {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(28px, 5vw, 80px);
  max-width: 1040px;
}
.work-essay__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  padding-top: 0.55em;
  border-top: 1px solid var(--rule);
  align-self: start;
}
.work-essay__body {
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.6;
  color: var(--ink);
  border-top: 1px solid var(--rule);
  padding-top: 1.4em;
}
.work-essay + .work-essay { margin-top: clamp(40px, 6vw, 80px); }

/* ── PHOTOGRAPHY (Through the Lens) ─────────────── */
#photography .section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}
.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cats .cat {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid var(--rule-2);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.cats .cat:hover { color: var(--ink); border-color: var(--rule); }
.cats .cat.is-active {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}
.shot.is-hidden { display: none; }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.shot { position: relative; overflow: hidden; cursor: zoom-in; background: var(--bg-3); }
.shot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.shot__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease);
  display: block;
}
.shot:hover .shot__img img { transform: scale(1.04); }
.shot__cap {
  position: absolute;
  left: 16px; bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(21,19,15,0.55);
  padding: 6px 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.shot:hover .shot__cap { opacity: 1; transform: translateY(0); }
.shot__num {
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

/* Asymmetric layout — based on actual image orientations
   hampi-tree: portrait 0.8 → shot--a portrait slot
   niest-point: portrait 0.8 → shot--b portrait slot
   maravanthe-aerial: landscape 1.33 → shot--c landscape
   glenfinnan-viaduct: wide 1.78 → shot--d wide slot
   flamingos: landscape 1.51 → shot--e landscape
   baps-temple: landscape 1.33 → shot--f landscape
   aerial-fishing-boat: landscape 1.33 → shot--g landscape
   scotland-glen-river: landscape 1.33 → shot--h landscape
*/
.shot--a { grid-column: span 5; aspect-ratio: 4/5; }   /* hampi-tree portrait */
.shot--b { grid-column: span 7; aspect-ratio: 4/3; }   /* niest-point — crop to landscape, more impactful */
.shot--c { grid-column: span 6; aspect-ratio: 4/3; }   /* maravanthe-aerial landscape */
.shot--d { grid-column: span 6; aspect-ratio: 16/9; }  /* glenfinnan wide */
.shot--e { grid-column: span 4; aspect-ratio: 3/2; }   /* flamingos landscape */
.shot--f { grid-column: span 8; aspect-ratio: 4/3; }   /* baps-temple landscape */
.shot--g { grid-column: span 6; aspect-ratio: 4/3; }   /* aerial-fishing-boat landscape */
.shot--h { grid-column: span 6; aspect-ratio: 4/3; }   /* scotland-glen-river landscape */

/* Photograph placeholder colorways — different tonal stripes per slot */
.tone-1 { background:
  linear-gradient(180deg, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.45)),
  linear-gradient(135deg, #4a3a26 0%, #1f1c16 70%),
  repeating-linear-gradient(50deg, #2c281f 0 3px, #25221c 3px 16px);
  background-blend-mode: normal, normal, overlay;
}
.tone-2 { background:
  linear-gradient(180deg, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.5)),
  linear-gradient(180deg, #324050 0%, #14181d 100%),
  repeating-linear-gradient(60deg, #2a3340 0 2px, #1d242c 2px 14px);
  background-blend-mode: normal, normal, overlay;
}
.tone-3 { background:
  linear-gradient(180deg, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.45)),
  linear-gradient(160deg, #6b4a2a 0%, #2a1d12 100%),
  repeating-linear-gradient(40deg, #3a2818 0 2px, #2a1d13 2px 14px);
  background-blend-mode: normal, normal, overlay;
}
.tone-4 { background:
  linear-gradient(180deg, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.4)),
  linear-gradient(180deg, #1e2a25 0%, #0f1410 100%),
  repeating-linear-gradient(70deg, #243430 0 2px, #18211d 2px 16px);
  background-blend-mode: normal, normal, overlay;
}
.tone-5 { background:
  linear-gradient(180deg, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.5)),
  linear-gradient(135deg, #514336 0%, #1a1612 100%),
  repeating-linear-gradient(20deg, #2e261d 0 3px, #25201a 3px 18px);
  background-blend-mode: normal, normal, overlay;
}
.tone-6 { background:
  linear-gradient(180deg, rgba(0,0,0,0.0) 55%, rgba(0,0,0,0.45)),
  linear-gradient(170deg, #2c2620 0%, #14110d 100%),
  repeating-linear-gradient(80deg, #36302a 0 2px, #221d18 2px 14px);
  background-blend-mode: normal, normal, overlay;
}
.tone-7 { background:
  linear-gradient(180deg, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.5)),
  linear-gradient(120deg, #3e3322 0%, #1a1610 100%),
  repeating-linear-gradient(35deg, #44382a 0 3px, #2c2418 3px 16px);
  background-blend-mode: normal, normal, overlay;
}
.tone-8 { background:
  linear-gradient(180deg, rgba(0,0,0,0.0) 55%, rgba(0,0,0,0.4)),
  linear-gradient(150deg, #2a2a32 0%, #11121a 100%),
  repeating-linear-gradient(45deg, #2f3140 0 2px, #1b1c25 2px 14px);
  background-blend-mode: normal, normal, overlay;
}

.gallery-foot {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex;
  justify-content: flex-end;
}

/* ── Lightbox ───────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8, 7, 6, 0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
  padding: 40px;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__frame {
  position: relative;
  width: min(92vw, 1200px);
  max-height: 85vh;
  background: var(--bg-3);
  transform: scale(0.97);
  transition: transform .4s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox__frame img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}
.lightbox.is-open .lightbox__frame { transform: scale(1); }
.lightbox__cap {
  position: absolute;
  bottom: -34px;
  left: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
}
.lightbox__close:hover { border-color: var(--gold); color: var(--gold); }

/* ── MAKING (Things I've Built) ─────────────────── */
.making-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
.build-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--rule-2);
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-rows: 220px auto;
  gap: clamp(20px, 2.5vw, 32px);
  transition: border-color .35s var(--ease), transform .4s var(--ease), background .35s var(--ease);
}
.build-card:hover {
  border-color: var(--gold);
  background: var(--bg-3);
  transform: translateY(-4px);
}
.build-card__media {
  position: relative;
  background: var(--bg-3);
  overflow: hidden;
}
.build-card__media .placeholder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(232,227,216,0.04) 0 1px, transparent 1px 12px);
}
.build-card__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
}
.build-card:hover .build-card__icon { color: var(--gold); }
.build-card__icon svg { width: 64px; height: 64px; transition: color .35s var(--ease); }
.build-card__media--video { display: block; cursor: pointer; }
.build-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(21,19,15,0.55);
  border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.build-card__play svg { width: 16px; height: 16px; margin-left: 2px; }
.build-card:hover .build-card__play { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.build-card:hover .build-card__icon { opacity: 0.25; }

/* Build card image support */
.build-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Video modal */
.video-modal {
  position: fixed; inset: 0;
  background: rgba(8,7,6,0.94);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.video-modal.is-open { opacity: 1; pointer-events: auto; }
.video-modal__inner {
  position: relative;
  width: min(90vw, 1100px);
  aspect-ratio: 16/9;
  background: #000;
  transform: scale(0.96);
  transition: transform .4s var(--ease);
}
.video-modal.is-open .video-modal__inner { transform: scale(1); }
.video-modal__inner iframe {
  width: 100%; height: 100%;
  border: 0;
}
.video-modal__close {
  position: absolute;
  top: -52px; right: 0;
  width: 44px; height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  background: none;
}
.video-modal__close:hover { border-color: var(--gold); color: var(--gold); }
.build-card__num {
  position: absolute;
  top: 12px; left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.build-card__year {
  position: absolute;
  bottom: 12px; right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.build-card__body { display: grid; gap: 10px; }
.build-card h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.1;
}
.build-card p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}

/* ── FILMS ──────────────────────────────────────── */
.films-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
.films-grid--2x2 {
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}
.film__thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.film__thumb--wide { aspect-ratio: 16/10; }
.film__thumb--portrait {
  aspect-ratio: 9/16;
  max-width: 320px;
  margin: 0 auto;
}
.film--short .film__meta { justify-content: center; text-align: center; }
.film {
  position: relative;
  cursor: pointer;
  display: grid;
  gap: 14px;
}
.film__thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-3);
}
.film__thumb .placeholder {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(21,19,15,0.0) 40%, rgba(21,19,15,0.7) 100%);
  transition: transform 1s var(--ease);
}
.film:hover .film__thumb .placeholder { transform: scale(1.05); }
.film__play {
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%);
  background: rgba(21,19,15,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.film:hover .film__play {
  background: var(--gold);
  border-color: var(--gold);
  transform: translate(-50%, -50%) scale(1.05);
}
.film__play svg { width: 18px; height: 18px; color: var(--ink); margin-left: 3px; }
.film:hover .film__play svg { color: var(--bg); }
.film__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.film h3 {
  font-size: clamp(22px, 2.4vw, 28px);
}
.film__loc {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.film--soon .film__thumb .placeholder {
  background:
    repeating-linear-gradient(45deg, rgba(232,227,216,0.04) 0 1px, transparent 1px 18px);
}
.film--soon .film__play {
  border-style: dashed;
  border-color: var(--rule);
  background: transparent;
}
.film--soon h3 { color: var(--ink-3); }

/* ── Films opening line ─────────────────────────── */
.films-lede {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-style: italic;
  color: var(--ink-2);
  max-width: 600px;
  line-height: 1.4;
}

/* ── FOOTER (Contact) ───────────────────────────── */
.footer {
  border-top: 1px solid var(--rule-2);
  padding: clamp(72px, 10vw, 120px) 0 48px;
}
.footer__line {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-style: italic;
}
.footer__line .gold { color: var(--gold); font-style: normal; }
.footer__row {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.footer__icons {
  display: flex;
  gap: 28px;
}
.footer__icons a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.footer__icons a:hover { color: var(--gold); border-color: var(--gold); }
.footer__icons svg { width: 14px; height: 14px; }

.footer__base {
  margin-top: clamp(72px, 12vw, 140px);
  padding-top: 28px;
  border-top: 1px solid var(--rule-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.footer__base a { color: var(--ink-2); }
.footer__base a:hover { color: var(--gold); }

/* ── /now and /writing shared "page" wrap ───────── */
.page {
  min-height: 100vh;
  padding-top: 100px;
}
#now .section-head .meta {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.page-head {
  padding: clamp(60px, 10vw, 120px) 0 clamp(48px, 6vw, 80px);
}
.page-head h1 {
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.page-head h1 .em { font-style: italic; color: var(--gold); }
.page-head .meta {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* /now sections */
.now-block {
  padding: clamp(48px, 7vw, 80px) 0;
  border-top: 1px solid var(--rule-2);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(28px, 5vw, 80px);
}
.now-block__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  padding-top: 0.4em;
}
.now-block__list {
  display: grid;
  gap: 18px;
}
.now-block__list p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 60ch;
}
.now-block__list p::before {
  content: "—";
  color: var(--gold);
  margin-right: 14px;
  font-style: normal;
}

/* /writing */
.writing-empty {
  padding: clamp(60px, 12vw, 160px) 0;
  display: grid;
  gap: 32px;
  max-width: 640px;
}
.writing-empty .frame {
  position: relative;
  height: 280px;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(232,227,216,0.025) 0 1px, transparent 1px 14px);
}
.writing-empty .frame__hatch {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.writing-empty p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--ink-2);
  line-height: 1.45;
}
.writing-list { display: grid; }
.writing-row {
  display: grid;
  grid-template-columns: 120px 1fr 200px;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--rule-2);
  transition: padding .25s var(--ease);
}
.writing-row:last-child { border-bottom: 1px solid var(--rule-2); }
.writing-row:hover { padding-left: 16px; }
.writing-row:hover h3 { color: var(--gold); }
.writing-row__date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.writing-row h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  transition: color .25s var(--ease);
}
.writing-row p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

/* ── Scroll reveal ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

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

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .portrait { aspect-ratio: 4/5; max-width: 320px; }

  .work-essay { grid-template-columns: 1fr; gap: 20px; }
  .work-essay__num { padding-top: 0; border-top: 0; }
  .work-essay__body { padding-top: 0; border-top: 0; }
  .work-essay + .work-essay { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--rule-2); }

  #photography .section-head { grid-template-columns: 1fr; }

  /* Asymmetric → 2-up on tablet, 1-up on phone */
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .shot--a { grid-column: span 6; }
  .shot--b { grid-column: span 3; aspect-ratio: 3/4; }
  .shot--c { grid-column: span 3; aspect-ratio: 3/4; }
  .shot--d { grid-column: span 6; }
  .shot--e { grid-column: span 3; aspect-ratio: 3/4; }
  .shot--f { grid-column: span 3; aspect-ratio: 3/4; }
  .shot--g { grid-column: span 6; aspect-ratio: 4/3; }
  .shot--h { grid-column: span 6; }

  .making-grid { grid-template-columns: 1fr; }
  .films-grid, .films-grid--2x2 { grid-template-columns: 1fr; }
  .film__thumb--portrait { max-width: 280px; }

  .now-block { grid-template-columns: 1fr; gap: 18px; }
  .writing-row { grid-template-columns: 1fr; gap: 6px; }
  .writing-row__date { order: -1; }
}

@media (max-width: 540px) {
  .gallery { grid-template-columns: 1fr; }
  .shot { grid-column: span 1 !important; aspect-ratio: 4/3 !important; }
  .shot--a { aspect-ratio: 4/5 !important; } /* keep portrait photos as portrait on mobile */

  .hero h1 { font-size: clamp(38px, 11vw, 64px); }
  .hero__sub .pipe { display: block; margin: 8px 0; height: 0; }
  .hero__sub .pipe::before { content: ""; }

  .footer__line { font-size: clamp(34px, 11vw, 48px); }
}

/* Portrait image */
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── YouTube Facade (thumbnail → player on click) ─── */
.yt-facade {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #000;
  overflow: hidden;
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s var(--ease), opacity .3s var(--ease);
  opacity: 0.88;
}
.yt-facade:hover img { transform: scale(1.03); opacity: 0.72; }
.yt-facade__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  border: 2px solid rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  cursor: pointer;
}
.yt-facade__play svg { width: 22px; height: 22px; margin-left: 3px; }
.yt-facade:hover .yt-facade__play {
  background: #ff0000;
  border-color: #ff0000;
  transform: translate(-50%, -50%) scale(1.08);
}
.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Facade fixes ─────────────────────────────────── */
/* Ensure facade always has height even if image fails */
.film__thumb--portrait .yt-facade {
  min-height: 300px;
}
/* Build card facade — ensure num/year labels show above image */
.build-card__media .yt-facade {
  cursor: pointer;
}
.build-card__media .yt-facade .build-card__num,
.build-card__media .yt-facade .build-card__year {
  position: absolute;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14px;
  color: var(--ink-3);
}
.build-card__media .yt-facade .build-card__num { top: 12px; left: 14px; }
.build-card__media .yt-facade .build-card__year { bottom: 12px; right: 14px; }
