/* =====================================================================
   HOLM & YOSHIDA — Stylesheet
   Built on the Sanity-derived dark editorial design system.
   ===================================================================== */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Color — surface */
  --bg:               #0b0b0b;
  --bg-pure:          #000000;
  --surface:          #141414;
  --surface-2:        #1a1a1a;
  --surface-3:        #212121;
  --border-subtle:    #212121;
  --border:           #353535;
  --border-strong:    #4a4a4a;
  --inverted:         #ededed;

  /* Color — text */
  --fg:               #ffffff;
  --fg-muted:         #b9b9b9;
  --fg-dim:           #797979;
  --fg-faint:         #4f4f4f;

  /* Color — accents (RESERVED) */
  --accent-cta:       #f36458;  /* coral-red — appears EXACTLY ONCE per page */
  --accent-blue:      #0052ef;  /* electric blue — universal hover */

  /* Type */
  --font-display:     'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body:        'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono:        'IBM Plex Mono', ui-monospace, monospace;
  --font-italic:      'Fraunces', Georgia, serif;

  /* Type scale (display-led) */
  --t-display:        clamp(3.25rem, 1rem + 9vw, 7rem);   /* 52 → 112 */
  --t-display-sm:     clamp(2.75rem, 1rem + 6.5vw, 5.5rem);
  --t-h1:             clamp(2.5rem, 1rem + 4.5vw, 4.5rem); /* 40 → 72 */
  --t-h2:             clamp(2rem, 1rem + 3.4vw, 3.5rem);   /* 32 → 56 */
  --t-h3:             clamp(1.5rem, 1rem + 1vw, 2rem);     /* 24 → 32 */
  --t-h4:             1.25rem;
  --t-lede:           clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  --t-body:           1rem;
  --t-small:          0.875rem;
  --t-kicker:         0.75rem;     /* 12px */
  --t-kicker-sm:      0.6875rem;   /* 11px */

  /* Tracking */
  --track-display:    -0.04em;
  --track-h1:         -0.035em;
  --track-h2:         -0.03em;
  --track-h3:         -0.018em;
  --track-kicker:     0.14em;
  --track-kicker-tight:0.08em;

  /* Spacing scale (8px base) */
  --s-1:  1px;
  --s-2:  2px;
  --s-3:  4px;
  --s-4:  6px;
  --s-5:  8px;
  --s-6:  12px;
  --s-7:  16px;
  --s-8:  24px;
  --s-9:  32px;
  --s-10: 48px;
  --s-11: 64px;
  --s-12: 96px;
  --s-13: 120px;
  --s-14: 160px;

  /* Layout */
  --container:        1440px;
  --gutter:           clamp(20px, 4vw, 56px);

  /* Radius */
  --r-xs: 3px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 12px;
  --r-pill: 99999px;

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

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-feature-settings: "ss01", "ss03", "cv11";
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button, input, textarea, select {
  font: inherit; color: inherit; background: none; border: none; outline: none;
}
ul, ol { list-style: none; }

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

/* ---------- KICKERS / METADATA TYPE ---------- */
.kicker, .kicker-dim {
  font-family: var(--font-mono);
  font-size: var(--t-kicker);
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
}
.kicker { color: var(--fg-muted); }
.kicker-dim { color: var(--fg-dim); }

/* ---------- BUTTONS / LINKS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  font-weight: 500;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn .arrow {
  display: inline-block;
  transition: transform .25s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* The ONE coral CTA — used exactly twice in source: hero + contact submit.
   Per design.md: "primary CTA pill, coral-red, white text, hovers to electric blue" */
.btn-primary {
  background: var(--accent-cta);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-blue);
  color: #fff;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--t-kicker);
  text-transform: uppercase;
  letter-spacing: var(--track-kicker);
  color: var(--fg-muted);
  border-top: 1px solid var(--border-subtle);
  padding: 22px 0 0;
  margin-top: var(--s-10);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.link-arrow:hover { color: var(--accent-blue); border-color: var(--accent-blue); }
.link-arrow .arrow { transition: transform .25s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(6px); }

.link-arrow-sm {
  border-top: none;
  padding: 0;
  margin-top: var(--s-8);
}

/* ---------- DISPLAY TYPE ---------- */
.display {
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: var(--track-display);
  color: var(--fg);
}
.display-em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.h-section {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: var(--track-h1);
  color: var(--fg);
}
.lede-large {
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--fg);
  letter-spacing: -0.012em;
}

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: sticky; top: 0;
  z-index: 50;
  background: rgba(11, 11, 11, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.nav.is-scrolled {
  background: rgba(11, 11, 11, 0.86);
  border-bottom-color: var(--border-subtle);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-9);
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--fg);
}
.nav-mark {
  width: 50px; height: 18px;
  color: var(--fg);
}
.nav-wordmark {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
}
.nav-links {
  display: flex; justify-content: center; gap: var(--s-9);
}
.nav-links a {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  letter-spacing: -0.005em;
}
.nav-links a:hover { color: var(--accent-blue); }
.nav-meta { justify-self: end; }

@media (max-width: 880px) {
  .nav-inner { grid-template-columns: auto auto; }
  .nav-links { display: none; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  padding: var(--s-13) var(--gutter) var(--s-12);
  max-width: var(--container);
  margin: 0 auto;
  border-bottom: 1px solid var(--border-subtle);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: var(--s-12);
}

.hero-eyebrow {
  grid-column: 1 / -1;
  display: flex; gap: var(--s-9);
  flex-wrap: wrap;
  margin-bottom: var(--s-10);
}

.hero .display {
  grid-column: 1 / 2;
  max-width: 14ch;
  margin-bottom: var(--s-12);
}

.hero-foot {
  grid-column: 1 / 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-9);
  max-width: 56ch;
}
.hero-lede {
  font-size: var(--t-lede);
  color: var(--fg-muted);
  line-height: 1.55;
  letter-spacing: -0.012em;
}
.hero-cta-row {
  display: flex; align-items: center; gap: var(--s-9);
  flex-wrap: wrap;
}

.hero-rail {
  grid-column: 2 / 3;
  grid-row: 2 / span 2;
  align-self: end;
  display: flex; flex-direction: column;
  gap: 14px;
  border-left: 1px solid var(--border-subtle);
  padding-left: var(--s-8);
  margin-bottom: 6px;
}
.rail-row {
  display: flex; flex-direction: column; gap: 6px;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-rail {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-left: 0;
    padding-top: var(--s-8);
    margin-top: var(--s-8);
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--s-9);
  }
}
@media (max-width: 600px) {
  .hero { padding-top: var(--s-11); padding-bottom: var(--s-11); }
  .hero-eyebrow { flex-direction: column; gap: 12px; margin-bottom: var(--s-9); }
  .hero .display { margin-bottom: var(--s-10); max-width: none; }
}

/* =====================================================================
   RUNNER / MARQUEE
   ===================================================================== */
.runner {
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  background: var(--bg);
}
.runner-track {
  display: flex; align-items: center;
  width: max-content;
  padding: 18px 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: var(--track-kicker);
  color: var(--fg-dim);
  animation: marquee 60s linear infinite;
  will-change: transform;
}
.runner-half { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.runner-dot { color: var(--fg-faint); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .runner-track { animation: none; }
}

/* =====================================================================
   SECTION HEAD (shared)
   ===================================================================== */
.section-head {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: var(--s-10);
  align-items: end;
  padding: var(--s-13) var(--gutter) var(--s-10);
  max-width: var(--container);
  margin: 0 auto;
}
.section-head-left { display: flex; flex-direction: column; gap: var(--s-8); }
.section-head-right p {
  font-size: var(--t-lede);
  color: var(--fg-muted);
  max-width: 48ch;
  letter-spacing: -0.012em;
}
.section-head-right .kicker-dim { display: block; margin-bottom: 12px; }
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: var(--s-9); padding-top: var(--s-12); }
}

/* =====================================================================
   WORK
   ===================================================================== */
.work {
  border-bottom: 1px solid var(--border-subtle);
}
.projects {
  display: flex;
  flex-direction: column;
  gap: var(--s-13);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--s-12);
}

/* Each project is its own 12-col subgrid — scoped grid-rows
   prevent collisions across projects. */
.project {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-9) var(--s-9);
}

.project-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-meta {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.project-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 0.98;
  letter-spacing: var(--track-h2);
  margin: 18px 0 14px;
  color: var(--fg);
}
.project-body {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 44ch;
}

/* Project image placeholders — pure CSS treatments */
.project-image {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
  isolation: isolate;
}
.project-image::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  filter: grayscale(0.35) contrast(1.05) brightness(0.78) saturate(0.7);
  transition: transform .8s var(--ease), filter .6s var(--ease);
  z-index: 0;
}
.project-image::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,11,0) 35%, rgba(11,11,11,0.6) 100%),
    linear-gradient(120deg, rgba(11,11,11,0.25) 0%, rgba(11,11,11,0) 60%);
  z-index: 1;
}
.project-image:hover::before { transform: scale(1.04); filter: grayscale(0.2) contrast(1.05) brightness(0.85) saturate(0.8); }
.project-image .image-tag,
.project-image .image-credit {
  position: absolute; z-index: 2;
}
.project-image .image-tag {
  top: 16px; left: 16px;
  color: var(--fg);
  background: rgba(11,11,11,0.55);
  padding: 6px 9px;
  border-radius: var(--r-xs);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.project-image .image-credit { bottom: 16px; right: 16px; color: var(--fg-muted); }

/* per-project background images via Unsplash (stable photo IDs) */
.project-image-01 { --img: url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=2000&q=80&auto=format&fit=crop"); }
.project-image-02 { --img: url("https://images.unsplash.com/photo-1518780664697-55e3ad937233?w=2000&q=80&auto=format&fit=crop"); }
.project-image-03 { --img: url("https://images.unsplash.com/photo-1582268611958-ebfd161ef9cf?w=2000&q=80&auto=format&fit=crop"); }
.project-image-04 { --img: url("https://images.unsplash.com/photo-1493809842364-78817add7ffb?w=2000&q=80&auto=format&fit=crop"); }
.project-image-05 { --img: url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?w=2000&q=80&auto=format&fit=crop"); }

/* ---- Project layouts: editorial 12-col grid, asymmetric ----
   Each project is its own grid; rows are local. */

/* 01 — Carroll Gardens: text 1-5 (rows stack), image 6-12 spans rows 1-3 */
.project-01 .project-meta   { grid-column: 1 / span 5; grid-row: 1; }
.project-01 .project-title  { grid-column: 1 / span 5; grid-row: 2; }
.project-01 .project-body   { grid-column: 1 / span 5; grid-row: 3; align-self: start; }
.project-01 .project-image  { grid-column: 6 / span 7; grid-row: 1 / span 3; aspect-ratio: 5 / 4; }

/* 02 — Pavilion: full-bleed wide image (row 1), text caption row 2 cols 7-12 */
.project-02 .project-image  { grid-column: 1 / span 12; grid-row: 1; aspect-ratio: 16 / 7; }
.project-02 .project-text   { grid-column: 7 / span 6; grid-row: 2; }
.project-02 .project-text .project-title { margin-top: 0; }

/* 03 — Maruya: tall image 1-5, text 7-12 aligned to bottom */
.project-03 .project-image  { grid-column: 1 / span 5; grid-row: 1; aspect-ratio: 4 / 5; }
.project-03 .project-text   { grid-column: 7 / span 5; grid-row: 1; align-self: end; }
.project-03 .project-text .project-title { margin-top: 0; }

/* 04 — House on the Hudson: meta+title left, body right, image full-width below */
.project-04 .project-meta   { grid-column: 1 / span 4; grid-row: 1; }
.project-04 .project-title  { grid-column: 1 / span 7; grid-row: 2; }
.project-04 .project-body   { grid-column: 8 / span 5; grid-row: 2; align-self: end; }
.project-04 .project-image  { grid-column: 1 / span 12; grid-row: 3; aspect-ratio: 16 / 7; }

/* 05 — Quiet Library: image 7-12, text 1-5 aligned to bottom */
.project-05 .project-image  { grid-column: 7 / span 6; grid-row: 1; aspect-ratio: 5 / 4; }
.project-05 .project-text   { grid-column: 1 / span 5; grid-row: 1; align-self: end; }
.project-05 .project-text .project-title { margin-top: 0; }

@media (max-width: 980px) {
  .projects { gap: var(--s-12); }
  .project { grid-template-columns: 1fr; gap: var(--s-7); }
  .project > * { grid-column: 1 / -1 !important; grid-row: auto !important; aspect-ratio: auto !important; }
  .project-image { aspect-ratio: 4 / 3 !important; }
  .project-02 .project-image,
  .project-04 .project-image { aspect-ratio: 16 / 9 !important; }
  /* Image-first projects keep image above text on mobile */
  .project-02, .project-03, .project-05 { grid-template-areas: "img" "text"; }
  .project-02 .project-image,
  .project-03 .project-image,
  .project-05 .project-image { grid-area: img; }
  .project-02 .project-text,
  .project-03 .project-text,
  .project-05 .project-text { grid-area: text; }
  /* Re-add a small breath between text rows on mobile */
  .project-title { margin: 8px 0 6px; }
}

.work .link-arrow {
  display: inline-flex;
  border-top: none;
  padding-top: 0;
  margin: var(--s-10) var(--gutter) var(--s-13);
}

/* =====================================================================
   PRACTICE
   ===================================================================== */
.practice {
  border-bottom: 1px solid var(--border-subtle);
}
.practice-body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-10) var(--s-9);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--s-13);
}
.practice-col { grid-column: 1 / span 6; grid-row: 1; display: flex; flex-direction: column; gap: var(--s-8); color: var(--fg-muted); }
.practice-col p { font-size: 1rem; line-height: 1.7; }
.practice-col p em { font-style: italic; font-family: var(--font-italic); color: var(--fg); }
.practice-col-right { grid-column: 7 / span 6; grid-row: 1; align-self: end; }

.pullquote {
  grid-column: 1 / -1;
  grid-row: 2;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--s-12) 0;
  margin: var(--s-10) 0 var(--s-9);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-9);
  text-align: left;
}
.pullquote blockquote p {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--fg);
  max-width: 22ch;
}
.pullquote blockquote p::before { content: "\201C"; margin-right: 0.05em; color: var(--fg-dim); }
.pullquote blockquote p::after  { content: "\201D"; margin-left: 0.02em; color: var(--fg-dim); }
.pullquote figcaption { display: flex; flex-direction: column; gap: 8px; }

.founders-line {
  font-size: var(--t-lede);
  color: var(--fg);
  line-height: 1.6;
  margin-top: 12px;
}

.capacities {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-7);
  margin-top: var(--s-9);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--s-9);
}
.capacities li {
  display: flex; flex-direction: column; gap: 12px;
  padding-right: var(--s-7);
}
.capacities li span:last-child {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

@media (max-width: 980px) {
  .practice-body { display: flex; flex-direction: column; gap: var(--s-10); }
  .practice-col, .practice-col-right, .pullquote, .capacities { grid-column: auto; grid-row: auto; }
  .pullquote { margin: 0; }
  .capacities { grid-template-columns: 1fr 1fr; margin-top: 0; }
}
@media (max-width: 600px) {
  .capacities { grid-template-columns: 1fr; gap: var(--s-8); }
}

/* =====================================================================
   AWARDS
   ===================================================================== */
.awards {
  border-bottom: 1px solid var(--border-subtle);
}
.award-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--s-13);
}
.award {
  display: grid;
  grid-template-columns: 80px 1fr 130px;
  align-items: center;
  gap: var(--s-9);
  padding: var(--s-8) 0;
  border-top: 1px solid var(--border-subtle);
  transition: background .25s var(--ease);
}
.award:last-child { border-bottom: 1px solid var(--border-subtle); }
.award:hover { background: linear-gradient(90deg, rgba(255,255,255,0.018), rgba(255,255,255,0)); }
.award-year { color: var(--fg); }
.award-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--fg);
}
.award-body p { margin-top: 8px; }
.award-cat { justify-self: end; color: var(--fg-dim); }

@media (max-width: 720px) {
  .award { grid-template-columns: 60px 1fr; gap: var(--s-7); }
  .award-cat { display: none; }
}

/* =====================================================================
   JOURNAL
   ===================================================================== */
.journal {
  border-bottom: 1px solid var(--border-subtle);
}
.essays {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-9);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--s-13);
}
.essay {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.essay:hover { border-color: var(--border); transform: translateY(-2px); }
.essay-link {
  display: flex; flex-direction: column;
  height: 100%;
  color: inherit;
}
.essay-link:hover .essay-title { color: var(--accent-blue); }
.essay-link:hover .link-arrow-sm { color: var(--accent-blue); }
.essay-link:hover .link-arrow-sm .arrow { transform: translateX(4px); }
.essay-title { transition: color .25s var(--ease); }
.link-arrow-sm { transition: color .25s var(--ease); }
.link-arrow-sm .arrow { transition: transform .25s var(--ease); }
.essay-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
  overflow: hidden;
  isolation: isolate;
}
.essay-image::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--img);
  background-size: cover; background-position: center;
  filter: grayscale(0.35) contrast(1.05) brightness(0.8);
  transition: transform .8s var(--ease), filter .6s var(--ease);
  z-index: 0;
}
.essay-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0) 50%, rgba(11,11,11,0.55) 100%);
  z-index: 1;
}
.essay:hover .essay-image::before { transform: scale(1.03); filter: grayscale(0.2) contrast(1.05) brightness(0.88); }
.essay-image .image-tag {
  position: absolute; z-index: 2;
  top: 14px; left: 14px;
  color: var(--fg);
  background: rgba(11,11,11,0.55);
  padding: 5px 8px;
  border-radius: var(--r-xs);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.essay-image-01 { --img: url("https://images.unsplash.com/photo-1505691938895-1758d7feb511?w=1200&q=80&auto=format&fit=crop"); }
.essay-image-02 { --img: url("https://images.unsplash.com/photo-1497366216548-37526070297c?w=1200&q=80&auto=format&fit=crop"); }
.essay-image-03 { --img: url("https://images.unsplash.com/photo-1483058712412-4245e9b90334?w=1200&q=80&auto=format&fit=crop"); }

.essay-body {
  display: flex; flex-direction: column; gap: var(--s-7);
  padding: var(--s-8);
}
.essay-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.18;
  color: var(--fg);
}
.essay-body p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fg-muted);
}

@media (max-width: 980px) { .essays { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .essays { grid-template-columns: 1fr; } }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact {
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--s-13) var(--gutter) var(--s-13);
}
.contact-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: var(--s-12);
  max-width: var(--container);
  margin: 0 auto;
  align-items: start;
}
.contact-left { display: flex; flex-direction: column; gap: var(--s-8); }
.display-contact { max-width: 9ch; }
.contact-lede {
  font-size: var(--t-lede);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 44ch;
  margin-top: var(--s-7);
}
.contact-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  margin-top: var(--s-9);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--s-9);
}
.contact-meta li {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 0.9375rem;
  color: var(--fg);
  line-height: 1.5;
}
.contact-meta a:hover { color: var(--accent-blue); }

/* form */
.contact-form {
  display: flex; flex-direction: column;
  gap: var(--s-7);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-10);
  position: sticky; top: 96px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
}
.field {
  display: flex; flex-direction: column; gap: 8px;
}
.field-full { grid-column: 1 / -1; }
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xs);
  padding: 12px 14px;
  color: var(--fg);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-dim) 50%), linear-gradient(135deg, var(--fg-dim) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }

.form-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-8);
  margin-top: var(--s-7);
  padding-top: var(--s-8);
  border-top: 1px solid var(--border-subtle);
}
.form-foot .kicker-dim {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--fg-dim);
  max-width: 32ch;
}

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-11); }
  .contact-form { position: static; padding: var(--s-9); }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-meta { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { justify-content: center; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  background: var(--bg);
  padding: var(--s-13) var(--gutter) var(--s-9);
  max-width: var(--container);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--s-10);
  padding-bottom: var(--s-11);
  border-bottom: 1px solid var(--border-subtle);
}
.footer-logo { display: inline-flex; align-items: baseline; gap: 16px; }
.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(3rem, 1.5rem + 4vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--fg);
}
.footer-wordmark {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: var(--track-kicker);
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.footer-tag {
  font-size: var(--t-lede);
  color: var(--fg-muted);
  max-width: 48ch;
  align-self: end;
  line-height: 1.5;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-9);
  padding: var(--s-11) 0;
}
.footer-col { display: flex; flex-direction: column; gap: var(--s-7); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.5;
}
.footer-col a:hover { color: var(--accent-blue); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-8);
  justify-content: space-between;
  padding-top: var(--s-8);
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr; gap: var(--s-9); }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: var(--s-9); }
}
@media (max-width: 600px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

/* =====================================================================
   ARTICLE — long-form reading view (journal/<slug>.html)
   ===================================================================== */
.article {
  padding: var(--s-12) var(--gutter) var(--s-13);
  max-width: var(--container);
  margin: 0 auto;
}

.article-back {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--t-kicker);
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: var(--s-10);
  transition: color .25s var(--ease);
}
.article-back:hover { color: var(--accent-blue); }
.article-back .arrow {
  display: inline-block;
  transform: rotate(180deg);
  transition: transform .25s var(--ease);
}
.article-back:hover .arrow { transform: rotate(180deg) translateX(4px); }

.article-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: var(--s-12);
  align-items: end;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--s-11);
  margin-bottom: var(--s-11);
}
.article-head-main {
  display: flex; flex-direction: column;
  gap: var(--s-9);
  max-width: 22ch;
}
.article-meta-row {
  display: flex; flex-wrap: wrap; gap: var(--s-8);
  margin-bottom: var(--s-7);
}
.article-title {
  font-family: var(--font-display);
  font-size: var(--t-display-sm);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: var(--track-display);
  color: var(--fg);
  max-width: 18ch;
}
.article-dek {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--fg-muted);
  max-width: 32ch;
}
.article-rail {
  display: flex; flex-direction: column;
  gap: 14px;
  border-left: 1px solid var(--border-subtle);
  padding-left: var(--s-8);
  align-self: end;
  margin-bottom: 6px;
}
.article-rail .rail-row { display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 980px) {
  .article-head { grid-template-columns: 1fr; gap: var(--s-9); align-items: start; }
  .article-rail {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-left: 0;
    padding-top: var(--s-8);
    margin-top: var(--s-7);
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--s-9);
  }
  .article-head-main { max-width: none; }
}

.article-hero {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-3);
  margin-bottom: var(--s-12);
  isolation: isolate;
}
.article-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  filter: grayscale(0.3) contrast(1.05) brightness(0.82) saturate(0.78);
  z-index: 0;
}
.article-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,11,0) 55%, rgba(11,11,11,0.55) 100%),
    linear-gradient(120deg, rgba(11,11,11,0.2) 0%, rgba(11,11,11,0) 60%);
  z-index: 1;
}
.article-hero .image-credit {
  position: absolute; z-index: 2;
  bottom: 16px; right: 16px;
  color: var(--fg-muted);
}

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 68ch) minmax(0, 1fr);
  gap: var(--s-12);
  align-items: start;
}
.article-prose {
  color: var(--fg-muted);
  font-size: 1.0625rem;
  line-height: 1.72;
  letter-spacing: -0.005em;
}
.article-prose > * + * { margin-top: 1.4em; }
.article-prose p { color: var(--fg-muted); }
.article-prose p:first-child::first-letter {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  font-size: 4.4em;
  float: left;
  line-height: 0.92;
  margin: 0.04em 0.12em 0 -0.04em;
  color: var(--fg);
}
.article-prose em { font-style: italic; font-family: var(--font-italic); color: var(--fg); }
.article-prose strong { color: var(--fg); font-weight: 500; }
.article-prose a { color: var(--fg); border-bottom: 1px solid var(--border); }
.article-prose a:hover { color: var(--accent-blue); border-color: var(--accent-blue); }

.article-prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1rem + 1vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: var(--track-h3);
  color: var(--fg);
  margin-top: 2.4em;
}
.article-prose h2 + p { margin-top: 0.8em; }
.article-prose h2 .kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--fg-dim);
}

.article-prose blockquote {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--s-10) 0;
  margin: var(--s-11) 0;
}
.article-prose blockquote p {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.125rem);
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--fg);
  max-width: 22ch;
}
.article-prose blockquote p::before { content: "\201C"; margin-right: 0.05em; color: var(--fg-dim); }
.article-prose blockquote p::after  { content: "\201D"; margin-left: 0.02em; color: var(--fg-dim); }

.article-figure {
  margin: var(--s-11) 0;
}
.article-figure-image {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
  isolation: isolate;
}
.article-figure-image::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  filter: grayscale(0.3) contrast(1.05) brightness(0.82) saturate(0.78);
  z-index: 0;
}
.article-figure-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0) 60%, rgba(11,11,11,0.4) 100%);
  z-index: 1;
}
.article-figure figcaption {
  font-family: var(--font-mono);
  font-size: var(--t-kicker);
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 14px;
  line-height: 1.5;
}

.article-aside {
  position: sticky;
  top: 96px;
  display: flex; flex-direction: column;
  gap: var(--s-8);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--s-7);
}
.article-aside-block {
  display: flex; flex-direction: column;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.55;
}
.article-aside-block .kicker { color: var(--fg-dim); }

.article-foot {
  margin-top: var(--s-13);
  padding-top: var(--s-10);
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
}
.article-foot-left {
  display: flex; flex-direction: column; gap: 12px;
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.55;
  max-width: 44ch;
}
.article-foot-right {
  justify-self: end;
  align-self: end;
}

.next-essays {
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--s-13);
  padding-top: var(--s-10);
}
.next-essays-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: var(--s-8);
  margin-bottom: var(--s-9);
}
.next-essays-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 1;
  letter-spacing: var(--track-h2);
  color: var(--fg);
}

@media (max-width: 980px) {
  .article-body { grid-template-columns: 1fr; gap: var(--s-10); }
  .article-aside { position: static; }
  .article-foot { grid-template-columns: 1fr; }
  .article-foot-right { justify-self: start; }
}
@media (max-width: 600px) {
  .article { padding-top: var(--s-10); }
  .article-prose { font-size: 1rem; line-height: 1.7; }
  .article-prose p:first-child::first-letter { font-size: 3.6em; }
}

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
