/* ═══════════════════════════════════════════════════
   Kasra Farahani — Production Designer
   Grayscale only. Swiss UI type; the name is
   set in Zen Kurenaido (self-hosted, SIL OFL 1.1).
   ═══════════════════════════════════════════════════ */

@font-face {
  font-family: 'Zen Kurenaido';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/zen-kurenaido-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Zen Kurenaido';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/zen-kurenaido-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0b0b0c;
  --ink: #e9e8e4;
  --ink-dim: #8f8e8a;
  --accent: #b8b7b3;            /* neutral grey — the orange accent was removed at his request */
  --font: -apple-system, "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  --font-name: 'Zen Kurenaido', var(--font);   /* the name, section page titles, project titles */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body.splash { height: 100%; overflow: hidden; }
html:has(body.splash) { height: 100%; overflow: hidden; }

/* ── Image field ─────────────────────────────────── */

.field-wrap {
  position: fixed;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.field-wrap.grabbing { cursor: grabbing; }

.field {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  will-change: transform;
}

/* infinite grid: columns with independent eased scroll */
.gcol {
  position: absolute;
  top: 0;
  will-change: transform;
}

.tile.cell {
  position: absolute;
  left: 0;
  width: 100%;
  display: block;
  overflow: hidden;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.9s ease;
  transform: scale(var(--vscale, 1));   /* shrinks with grid velocity */
}

.tile.in { opacity: 1; }

.tile.cell img, .tile.cell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;    /* fill the 16:9 cell exactly; uniform margins */
  transition: transform 0.5s ease;
  -webkit-user-drag: none;
}

.tile:hover img,
.tile:focus-visible img,
.tile:hover video,
.tile:focus-visible video {
  transform: scale(1.04);
}

.tile:hover { z-index: 40; }

/* caption */
.tile .cap {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
  pointer-events: none;
}

.tile .cap {
  text-shadow: 0 1px 8px rgba(0,0,0,.9);
}

.tile .cap::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease 0.15s;
}

.tile .cap .yr { color: var(--ink-dim); margin-left: 0.9em; letter-spacing: 0.1em; }

.tile:hover .cap,
.tile:focus-visible .cap { opacity: 1; transform: translateY(0); }
.tile:hover .cap::before,
.tile:focus-visible .cap::before { transform: scaleX(1); }

/* ── Scrim behind lockup ─────────────────────────── */

.scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 34% 24% at 50% 50%,
              rgba(11, 11, 12, 0.78) 0%,
              rgba(11, 11, 12, 0.42) 55%,
              rgba(11, 11, 12, 0) 100%);
}

/* ── Lockup ──────────────────────────────────────── */

.lockup {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 60;
}

.name {
  font-family: var(--font-name);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 400;    /* Zen Kurenaido ships 400 only — 500 fakes a bold */
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-indent: 0.22em; /* optically recenter tracked type; match tracking */
}

.role {
  margin-top: 0.85rem;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-indent: 0.3em;
  color: var(--ink-dim);
}

.nav {
  margin-top: 2.6rem;
  display: flex;
  gap: 2.4rem;
  pointer-events: auto;
}

.nav a {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 5px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }

/* ── Hint ────────────────────────────────────────── */

.hint {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  z-index: 60;
  transition: opacity 1.2s ease;
}

.hint.gone { opacity: 0; }

/* ── Motion preferences ──────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .tile, .tile img, .tile .cap, .nav a::after { transition: none; }
}

/* ═══════════════════════════════════════════════════
   Interior pages
   ═══════════════════════════════════════════════════ */

body.page { min-height: 100%; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 26px 4vw 18px;
  background: linear-gradient(to bottom, #0b0b0c 74%, rgba(11,11,12,0));
}

.wordmark {
  font-family: var(--font-name);
  font-size: 13px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-weight: 400;    /* Zen Kurenaido ships 400 only — 500 fakes a bold */
}

.site-nav { display: flex; gap: 1.9rem; }

.site-nav a {
  position: relative;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  padding-bottom: 4px;
  transition: color .3s ease;
}

.site-nav a:hover, .site-nav a.here { color: var(--ink); }

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.site-nav a:hover::after, .site-nav a.here::after { transform: scaleX(1); }

.page-body { padding: 4vh 4vw 0; }

.page-title {
  font-family: var(--font-name);   /* the name's face, his call 26 Sep */
  font-size: clamp(1.4rem, 3.2vw, 2.3rem);
  font-weight: 400;    /* Zen Kurenaido ships 400 only — 500 fakes a bold */
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 6vh 0 1.2rem;
}

.page-sub {
  color: var(--ink-dim);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 7vh;
}

/* ── Work index ──────────────────────────────────── */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 3.2vw;
  margin-bottom: 10vh;
}

@media (max-width: 700px) { .work-grid { grid-template-columns: 1fr; } }

.work-card { text-decoration: none; color: var(--ink); display: block; }

.work-card .frame { overflow: hidden; background: #131314; }

.work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .9s ease;
}

.work-card:hover img { transform: scale(1.035); }

.work-card .meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 2px 0;
}

.work-card .t {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.work-card .y { font-size: 11px; color: var(--ink-dim); letter-spacing: 0.14em; }

.work-card .cs-tag {
  display: inline-block;
  margin-left: 0.9em;
  color: var(--accent);
  font-size: 9.5px;
  letter-spacing: 0.22em;
}

.section-rule {
  border: 0;
  border-top: 1px solid #232324;
  margin: 9vh 0 7vh;
}

.archive-note { max-width: 560px; color: var(--ink-dim); font-size: 13.5px; line-height: 1.7; margin-bottom: 5vh; }

/* ── Project page ────────────────────────────────── */



.gallery { display: flex; flex-direction: column; gap: 3.5vh; padding-bottom: 10vh; }

.gallery .row { display: grid; gap: 3.5vh; }
.gallery .row.two { grid-template-columns: 1fr 1fr; gap: 2.4vw; }
@media (max-width: 700px) { .gallery .row.two { grid-template-columns: 1fr; } }

.gallery img { display: block; width: 100%; height: auto; background: #131314; }

/* ── Case study (long-form essay) ────────────────── */

.essay-hero { position: relative; margin: 2vh -4vw 0; }
.essay-hero img { display: block; width: 100%; max-height: 78vh; object-fit: cover; opacity: .92; }
.essay-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,11,12,1), rgba(11,11,12,0) 45%);
}

.essay-head { max-width: 820px; margin: -14vh auto 0; position: relative; z-index: 2; text-align: center; padding: 0 4vw; }

.essay-head .eyebrow {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.3rem;
}

.essay-head h1 {
  font-family: var(--font-name);   /* the name's face, his call 26 Sep */
  font-size: clamp(1.6rem, 4vw, 2.9rem);
  font-weight: 400;    /* Zen Kurenaido ships 400 only */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.25;
}

.essay-head .byline { margin-top: 1.4rem; color: var(--ink-dim); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; }

.essay { max-width: 680px; margin: 9vh auto 0; padding: 0 4vw; }

.essay h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 9vh 0 2.4rem;
  color: var(--ink);
}

.essay h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--accent);
  margin-top: 1rem;
}

.essay p { font-size: 15.5px; line-height: 1.85; color: #c9c8c4; margin-bottom: 1.6em; font-weight: 300; }

.essay .lede::first-letter { color: var(--ink); }

blockquote.pull {
  margin: 7vh 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 1.6rem;
  letter-spacing: 0.01em;
}

.essay-figs { margin: 7vh -14vw; display: grid; gap: 3vh; }
.essay-figs.two { grid-template-columns: 1fr 1fr; gap: 2vw; }
@media (max-width: 900px) { .essay-figs { margin: 6vh -4vw; } .essay-figs.two { grid-template-columns: 1fr; } }

.essay-figs img { display: block; width: 100%; height: auto; background: #131314; }

figure figcaption {
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--ink-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.essay-next {
  max-width: 680px;
  margin: 12vh auto 0;
  padding: 6vh 4vw 12vh;
  border-top: 1px solid #232324;
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.essay-next a { color: var(--ink); text-decoration: none; }
.essay-next a:hover { color: var(--accent); }
.essay-next .lbl { color: var(--ink-dim); display: block; margin-bottom: 0.8em; font-size: 9.5px; }

/* ── About / Press / CV / Contact ────────────────── */

.prose { max-width: 640px; }
.prose p { font-size: 15px; line-height: 1.85; color: #c9c8c4; margin-bottom: 1.5em; font-weight: 300; }

.about-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 5vw; margin-bottom: 12vh; }
@media (max-width: 900px) { .about-wrap { grid-template-columns: 1fr; } }
.about-wrap img { width: 100%; height: auto; }

.plist { list-style: none; max-width: 780px; margin-bottom: 12vh; }
.plist li { border-bottom: 1px solid #1e1e20; }
.plist a {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: baseline;
  padding: 1.35rem 2px;
  text-decoration: none;
  transition: padding-left .3s ease;
}
.plist a:hover { padding-left: 12px; }
.plist .pub { color: var(--accent); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; }
.plist .ttl { color: var(--ink); font-size: 14.5px; font-weight: 300; flex: 1; }

.cv-table { width: 100%; max-width: 880px; border-collapse: collapse; margin-bottom: 6vh; }
.cv-table td {
  padding: 1rem 2rem 1rem 0;
  border-bottom: 1px solid #1e1e20;
  font-size: 13.5px;
  font-weight: 300;
  color: #c9c8c4;
  vertical-align: baseline;
}
.cv-table td.yr { color: var(--ink-dim); font-size: 12px; letter-spacing: 0.1em; width: 70px; }
.cv-table td.ti { color: var(--ink); letter-spacing: 0.04em; }
.cv-table td.di { color: var(--ink-dim); }
.cv-section {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 8vh 0 1rem;
}
.cv-section::after { content: ""; display: block; width: 34px; height: 2px; background: var(--accent); margin-top: 0.9rem; }

.contact-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4vw; max-width: 880px; margin-bottom: 14vh; }
.contact-cols h3 { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 1.4rem; font-weight: 500; }
.contact-cols p, .contact-cols a { font-size: 14px; font-weight: 300; color: #c9c8c4; line-height: 1.9; text-decoration: none; }
.contact-cols a:hover { color: var(--accent); }

.site-foot {
  padding: 5vh 4vw 6vh;
  border-top: 1px solid #1e1e20;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.site-foot a { color: var(--ink-dim); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* header wrap on narrow viewports */
.site-head { flex-wrap: wrap; row-gap: 10px; }
.wordmark { margin-right: 2.2rem; }
@media (max-width: 860px) {
  .site-nav { gap: 1.1rem; flex-wrap: wrap; row-gap: 8px; }
}

/* ── Lightbox ────────────────────────────────────── */
img.lb-src { cursor: zoom-in; }
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 8, 9, 0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  cursor: zoom-out;
}
.lb.on { opacity: 1; pointer-events: auto; }
.lb img { max-width: none; max-height: none; box-shadow: 0 20px 80px rgba(0,0,0,.6); }   /* sized by js/lightbox.js: one height for all */
/* chevrons + close: same thin marks as the case-study title card */
.lb-btn { position: absolute; background: none; border: 0; padding: 18px; color: #e9e8e4;
  cursor: pointer; opacity: .43; transition: opacity .25s ease; }
.lb-btn:hover { opacity: .95; }
.lb-prev { left: 1.6vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.6vw; top: 50%; transform: translateY(-50%); }
.lb-close { right: 1.6vw; top: 1.6vh; }
@media (max-width: 700px) {
  .lb-prev svg, .lb-next svg { width: 36px; height: 72px; }   /* phones: swipe is the main gesture */
  .lb-btn { padding: 10px; }
  .lb-prev { left: 0; } .lb-next { right: 0; }
}
.lb-n {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .25em; color: var(--ink-dim);
}
body.lb-open { overflow: hidden; }

/* ── Case study: chapter TOC, stats, credits, related ── */

.toc {
  max-width: 680px;
  margin: 7vh auto 0;
  padding: 0 4vw;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.toc a {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}

.toc a span { color: var(--accent); margin-right: 0.6em; font-size: 9.5px; }
.toc a:hover { color: var(--ink); border-color: var(--accent); }

.essay h2 .cnum {
  color: var(--accent);
  margin-right: 1.1em;
  font-size: 11px;
  letter-spacing: 0.2em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 2rem;
  margin: 7vh 0;
  padding: 4vh 0;
  border-top: 1px solid #232324;
  border-bottom: 1px solid #232324;
}

.stats b {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.stats span {
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
  display: block;
}

.credits {
  max-width: 680px;
  margin: 10vh auto 0;
  padding: 6vh 4vw 0;
  border-top: 1px solid #232324;
}

.credits .eyebrow {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3vh;
}

.credits dl { display: grid; gap: 0.9rem; }
.credits dl > div { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .credits dl > div { grid-template-columns: 1fr; gap: 0.2rem; } }
.credits dt { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); padding-top: 2px; }
.credits dd { font-size: 13.5px; font-weight: 300; color: #c9c8c4; line-height: 1.7; }
.credits-note { margin-top: 3vh; font-size: 10px; color: var(--ink-dim); letter-spacing: 0.1em; }

.related { padding-top: 8vh; padding-bottom: 4vh; }

/* ── Chapter rail (left edge) + share row ────────── */

.chap-rail {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 1100px) { .chap-rail { display: none; } }

.chap-rail a {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-decoration: none;
  padding-left: 12px;
  position: relative;
  transition: color .3s ease;
  line-height: 1;
}

.chap-rail a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0.4);
  width: 2px;
  height: 14px;
  background: #333;
  transition: background .3s ease, transform .3s ease;
}

.chap-rail a:hover { color: var(--ink); }

.chap-rail a.on { color: var(--ink); }
.chap-rail a.on::before { background: var(--accent); transform: translateY(-50%) scaleY(1); }

.share {
  max-width: 680px;
  margin: 9vh auto 0;
  padding: 4vh 4vw 0;
  border-top: 1px solid #232324;
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  align-items: baseline;
}

.share-lbl {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.share a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}

.share a:hover { color: var(--ink); border-color: var(--accent); }



/* chapter links land below the sticky header */
.essay h2 { scroll-margin-top: 110px; }

/* medium images: halfway between the old side-by-side size and LARGE */
.essay-figs.mid figure { width: 74%; margin: 0 auto; }
.gallery .row { width: min(100%, calc((680px + 20vw) * .74)); margin: 0 auto; }
@media (max-width: 900px) { .essay-figs.mid figure { width: 100%; } }



/* ── Contact: direct message form ── */
.contact-direct { max-width: 560px; margin: -6vh 0 14vh; }
.contact-direct h3 { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 1.4rem; font-weight: 500; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-form label span { display: block; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: #8a8985; margin-bottom: .35rem; }
.contact-form input, .contact-form textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid #3a3a3d; border-radius: 0;
  color: var(--ink); font: 300 15px/1.6 inherit; font-family: inherit; padding: .45rem 0; outline: none; resize: vertical; transition: border-color .3s; }
.contact-form input:focus, .contact-form textarea:focus { border-bottom-color: #b8b7b3; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-submit { align-self: flex-start; margin-top: .4rem; background: transparent; border: 1px solid #56565a; color: var(--ink); font: inherit;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; padding: .7rem 1.8rem; cursor: pointer; transition: background .3s, border-color .3s; }
.form-submit:hover { background: rgba(255,255,255,.06); border-color: #b8b7b3; }
.form-submit:disabled { opacity: .5; cursor: default; }
.form-note { font-size: 14px; font-weight: 300; color: #c9c8c4; margin-top: 1rem; min-height: 1.4em; }

/* ── About: awards list ── */
.cv-table.awards td.ti .cat { display: block; color: var(--ink-dim); font-size: 12.5px; letter-spacing: 0.02em; margin-top: .2em; }
.cv-table.awards td.di { width: 36%; }
@media (max-width: 700px) { .cv-table.awards td.di { width: auto; } }

/* ── Work menu (26 Sep, his design): Work drops the three categories; each
   opens its project list beside it, to the left because Work sits near the
   right edge. js/nav.js adds hover intent (.open); without JS, plain hover. */
.site-nav { position: relative; }
.nav-drop { position: relative; display: flex; }   /* flex: no stray line box, Work sits level */
.nav-drop .drop, .nav-drop .fly {
  background: rgba(11, 11, 12, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid #262628;
}
.nav-drop .drop {
  position: absolute; top: 100%; left: -20px; margin-top: 8px; z-index: 95;
  display: none; flex-direction: column; padding: 10px 0; min-width: 210px;
}
.nav-drop .drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-drop:hover .drop, .nav-drop:focus-within .drop { display: flex; }
.drop-item { position: relative; }
.site-nav .drop a { display: block; text-transform: none; white-space: nowrap; }
.site-nav .drop a::after { display: none; }
.site-nav .drop a.drop-cat {
  display: flex; align-items: center; gap: 12px; padding: 8px 20px;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-dim);
}
/* a small chevron pointing to where the list opens */
.site-nav .drop a.drop-cat::before {
  content: ""; width: 4px; height: 4px; flex: none;
  border-left: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg); opacity: .7;
}
.site-nav .drop a.drop-cat.here { color: var(--ink); }
.nav-drop .fly {
  position: absolute; top: -11px; right: 100%; margin-right: -1px;
  display: none; padding: 10px 0; min-width: 250px;
}
.nav-drop:not(.js) .drop-item:hover > .fly,
.drop-item.open > .fly, .drop-item:focus-within > .fly { display: block; }
.drop-item.open > a.drop-cat, .nav-drop:not(.js) .drop-item:hover > a.drop-cat { color: var(--ink); }
.site-nav .fly a { font-size: 12.5px; letter-spacing: .01em; color: var(--ink-dim); padding: 4px 22px; }
.site-nav .fly a:hover, .site-nav .fly a[aria-current="page"] { color: var(--ink); }
@media (max-width: 860px) { .nav-drop .drop { display: none !important; } }

/* ── Project pages (26 Sep, his layout): the name across the top on one
   line; role, credits and logline in a column LEFT of the pictures, held in
   place while they scroll. Two voices only: the name's face for the title,
   the sans for the rest; credits and logline share one quiet value, the
   logline italic. */
.proj-title {
  font-family: var(--font-name);
  font-weight: 400;    /* Zen Kurenaido ships 400 only */
  text-transform: uppercase; letter-spacing: 0.16em; line-height: 1.2;
  color: var(--ink);
  /* fitted to the title's length so it holds one line; capped */
  font-size: max(1.35rem, min(2.6rem, calc(88vw / (var(--n) * 0.86))));
  white-space: nowrap;
  margin: 4vh 0 5vh;
}
.proj-side .role-line {
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: #cfcecb; margin: 0 0 2.2rem;
}
.proj-side .proj-credits, .proj-side .logline {
  font-size: 13px; line-height: 1.7; letter-spacing: .01em; color: #7c7b77; margin: 0;
}
.proj-side .logline { font-style: italic; margin-top: 1.1rem; }

.proj-page { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); column-gap: 4vw; align-items: start; }
.proj-page .proj-title { grid-column: 1 / -1; }
.proj-page .proj-side { position: sticky; top: 110px; }
.proj-page .gallery .row { width: min(100%, calc((680px + 20vw) * .74)); margin: 0; }


@media (max-width: 900px) {
  .proj-page { grid-template-columns: 1fr; }
  .proj-page .proj-side { position: static; margin-bottom: 5vh; }
  .proj-title { white-space: normal; }
}

/* ── Case-study title card (26 Sep, his idea): the hero carries name, role,
   credits and logline on its dark lower edge, in the same type as the
   project pages. The faint chevron on the right turns it into a slideshow of
   every picture in the case study, with a film strip (js/case.js). ── */
.case-hero {
  position: relative; margin: 0; height: 88vh; min-height: 540px;   /* case <main> has no side padding: full width, no bleed */
  overflow: hidden; background: #0b0b0c;
}
.case-hero .ch-img {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  object-fit: cover; transition: opacity .35s ease;
}
.case-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(11,11,12,1) 0%, rgba(11,11,12,.84) 26%, rgba(11,11,12,0) 60%);
  transition: opacity .5s ease;
}
.ch-card { position: absolute; left: 4vw; right: 12vw; bottom: 7vh; z-index: 2; transition: opacity .4s ease; }
.ch-card .proj-title { margin: 0 0 1.5rem; font-size: max(1.35rem, min(2.8rem, calc(80vw / (var(--n) * 0.86)))); }
.ch-card .role-line { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: #cfcecb; margin: 0 0 1.8rem; }
.ch-card .proj-credits, .ch-card .logline { font-size: 13px; line-height: 1.7; letter-spacing: .01em; color: #7c7b77; margin: 0; }   /* same value as the project pages */
.ch-card .logline { font-style: italic; margin-top: .9rem; max-width: 58ch; }
.ch-next, .ch-prev, .ch-close {
  position: absolute; z-index: 4; background: none; border: 0; padding: 18px;
  color: #e9e8e4; cursor: pointer; opacity: .43; transition: opacity .25s ease;   /* .48 less 10%, his note 27 Sep */
}
.ch-next:hover, .ch-prev:hover, .ch-close:hover { opacity: .95; }
.ch-next { right: 1.6vw; top: 50%; transform: translateY(-50%); }
.ch-prev { left: 1.6vw; top: 50%; transform: translateY(-50%); display: none; }
.ch-close { right: 1.6vw; top: 1.6vh; display: none; }
.ch-count { position: absolute; left: 4vw; top: 2.6vh; z-index: 4; display: none;
  font-size: 11px; letter-spacing: .24em; color: #8a8985; }
.ch-strip {
  position: absolute; left: 0; right: 0; bottom: 0; height: 96px; z-index: 3;
  display: none; gap: 6px; padding: 16px 4vw; overflow-x: auto; scrollbar-width: none;
  background: #0b0b0c;
}
.ch-strip::-webkit-scrollbar { display: none; }
.ch-strip img { flex: none; height: 64px; width: auto; opacity: .4; cursor: pointer; transition: opacity .2s; }
.ch-strip img:hover { opacity: .8; }
.ch-strip img.on { opacity: 1; }
/* slideshow: the gradient and card fade, whole frames on black, strip below */
.case-hero.show::after { opacity: 0; }
.case-hero.show .ch-card { opacity: 0; pointer-events: none; }
.case-hero.show .ch-img { object-fit: contain; height: calc(100% - 96px); cursor: pointer; }
.case-hero.show .ch-prev, .case-hero.show .ch-close, .case-hero.show .ch-count { display: block; }
.case-hero.show .ch-strip { display: flex; }
.case-hero + .toc { margin-top: 6vh; }
@media (max-width: 700px) {
  .case-hero { height: 78vh; min-height: 480px; }
  .ch-card { right: 4vw; bottom: 4vh; }
  .ch-card .proj-title { white-space: normal; }
  .ch-next { right: 0; }
  /* phones: the desktop 82x164 chevrons were too big (his note 27 Sep);
     same size as the enlarged-image viewer's phone chevrons */
  .ch-next svg, .ch-prev svg { width: 36px; height: 72px; }
  .ch-next, .ch-prev, .ch-close { padding: 10px; }
  .ch-prev { left: 0; }
}
/* the chapter rail waits until the title card has scrolled away */
.chap-rail { transition: opacity .4s ease; }
.chap-rail.under-hero { opacity: 0; pointer-events: none; }


/* rights line under each project's pictures (studio holds the images): the
   same legal voice as the footer's copyright, exactly. ".essay p.rights" so
   the essay's body-text rule can't restyle it on the case studies. */
.rights, .essay p.rights {
  font-size: 10px; font-weight: 400; line-height: 1.6;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim);
  margin: 0 0 10vh;
}
.proj-page .rights { grid-column: 2; margin-top: -4vh; }
.essay p.rights { margin: 8vh 0 0; }
@media (max-width: 900px) { .proj-page .rights { grid-column: 1; } }

/* ── Case-study chapters: "B with A's opening" (his pick, 28 Sep) ──────────
   Each chapter opens on a full-width image with its number and title set on
   it; then each paragraph stays pinned on the left while the images it
   describes scroll past on the right. Rows of images share one height (each
   figure's flex follows its shape, --ar). Built by essay_page + _cs_rows. */
article.cs { margin-top: 9vh; }
.cs-chap { margin-top: 16vh; scroll-margin-top: 70px; }
.cs-open { position: relative; }
.cs-open .cs-fig { margin: 0; }
.cs-open img { display: block; width: 100%; aspect-ratio: var(--ar); max-height: 86vh; object-fit: cover; background: #131314; }
.cs-open::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #0b0b0c00 50%, #0b0b0cdd 100%); }
.cs-open-t { position: absolute; left: 4vw; right: 4vw; bottom: 6vh; z-index: 2; pointer-events: none; }
.cs-open .cnum, .cs-open.no-img .cnum { font-size: 11px; letter-spacing: .3em; color: var(--accent); }
.cs-open h2 { font-family: var(--font-name); font-weight: 400; font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.02; margin-top: 1rem; color: var(--ink); letter-spacing: .005em; }
.cs-open figcaption { position: absolute; right: 4vw; bottom: 2.2vh; z-index: 3; margin: 0; }
.cs-open.no-img { max-width: 1480px; margin: 0 auto; padding: 0 4vw; }
.cs-open.no-img::after { display: none; }
.cs-open.no-img .cs-open-t { position: static; }

.cs-scene { max-width: 1480px; margin: 12vh auto 0; padding: 0 4vw;
  display: grid; grid-template-columns: minmax(260px, 33%) 1fr; gap: 5vw; }
.cs-scene.solo { grid-template-columns: minmax(260px, 33%) 1fr; }
.cs-scene.no-txt { grid-template-columns: 1fr; }
.cs-txt { position: sticky; top: 16vh; align-self: start; }
.cs-txt::before { content: ""; display: block; width: 34px; height: 2px; background: var(--accent); margin-bottom: 1.6rem; }
.cs-txt p { font-size: 15.5px; line-height: 1.85; color: #c9c8c4; font-weight: 300; }
.cs-txt p + p, .cs-txt p + .cs-pull, .cs-txt .cs-pull + p { margin-top: 1.6em; }
/* the title face is set in capitals everywhere (his call 28 Sep: he doesn't
   like its lowercase); caps set larger, so the quote is a step smaller */
.cs-pull { font-family: var(--font-name); font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.55;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }

.cs-imgs { display: grid; gap: 1.4vw; align-content: start; }
.cs-row { display: flex; gap: 1.4vw; align-items: flex-start; }
.cs-row .cs-fig { flex: var(--ar) 1 0; min-width: 0; margin: 0; }
.cs-row.solo.tall { justify-content: center; }
.cs-row.solo.tall .cs-fig { flex: 0 1 auto; width: min(100%, calc(76vh * var(--ar))); }
.cs-fig img { display: block; width: 100%; height: auto; background: #131314; cursor: zoom-in; }
.cs-cap { font-size: 10.5px; color: var(--ink-dim); letter-spacing: .16em; text-transform: uppercase; line-height: 1.5; margin-top: calc(10px - 1.4vw); }

.cs-bleed { margin: 12vh 0 0; }
.cs-bleed img { display: block; width: 100%; max-height: 92vh; object-fit: cover; background: #131314; cursor: zoom-in; }
.cs-bleed figcaption { padding: 0 4vw; }

@media (max-width: 900px) {
  .cs-chap { margin-top: 10vh; }
  .cs-open img { max-height: 70vh; }
  .cs-open-t { bottom: 3vh; }
  .cs-open figcaption { position: static; padding: 0 4vw; margin-top: 10px; }
  .cs-scene, .cs-scene.solo { grid-template-columns: 1fr; gap: 3.5vh; margin-top: 7vh; }
  .cs-txt { position: static; }
  .cs-imgs, .cs-row { gap: 10px; }
  .cs-row.wide { flex-direction: column; }
  .cs-row.wide .cs-fig { flex: none; width: 100%; }
  .cs-cap { margin-top: 0; }
  .cs-bleed { margin-top: 7vh; }
}
/* the fixed chapter rail (left: 18px, shown above 1100px) must not touch the pinned text */
@media (min-width: 1101px) {
  .cs-scene, .cs-open.no-img { padding-left: max(4vw, 76px); }
  .cs-open-t { left: max(4vw, 76px); }
}
/* phones: the opening image is short, so the chapter title sits under it */
@media (max-width: 900px) {
  .cs-open::after { display: none; }
  .cs-open-t { position: static; padding: 3vh 4vw 0; }
}
/* chapter titles: all caps, two-thirds the size of the page title at the top
   (same length-fitted measure as .ch-card .proj-title), his note 28 Sep */
.cs-open h2 { text-transform: uppercase; letter-spacing: .04em;
  font-size: calc(max(1.35rem, min(2.8rem, calc(80vw / (var(--n) * 0.86)))) * 2 / 3); }

/* captions in the slideshow and the lightbox: the page's own caption voice,
   under the picture, on its left edge (his note 29 Sep); placed by js */
.ch-cap, .lb-cap { position: absolute; z-index: 4; display: none; pointer-events: none;
  font-size: 10.5px; color: var(--ink-dim); letter-spacing: .16em; text-transform: uppercase; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-hero.show .ch-cap, .lb.on .lb-cap { display: block; }
@media (max-width: 700px) { .ch-cap, .lb-cap { white-space: normal; font-size: 10px; } }

/* commercials: the film plays in the picture column (30 Sep) */
.proj-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
