/* ==========================================================================
   afterform studios
   Light, image-led, typography-first. Thin grotesque type, generous space.

   Fonts: "Good Sans" is a commercial face (Good Type Foundry) — if you license
   it, drop goodsans-light.woff2 / goodsans-thin.woff2 into /fonts and uncomment
   the @font-face rules below. Until then Hanken Grotesk (free, loaded in the
   HTML) stands in at the same weights.
   ========================================================================== */

/*
@font-face {
  font-family: "Good Sans";
  src: url("../fonts/goodsans-light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Good Sans";
  src: url("../fonts/goodsans-thin.woff2") format("woff2");
  font-weight: 200; font-style: normal; font-display: swap;
}
*/

:root {
  --bg: #ffffff;
  --bg-soft: #f5f3ef;
  --ink: #2e2a2b;
  --ink-deep: #1d1d20;
  --ink-dim: #807c74;
  --ink-faint: #afab9f;
  --accent: #f97247;
  --line: rgba(46, 42, 43, 0.16);
  --font: "Good Sans", "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.75;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* not `hidden` — that would disable position:sticky descendants */
}

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

img, svg.art { display: block; width: 100%; height: 100%; }
img.art { object-fit: cover; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; }

.container { padding-left: var(--pad); padding-right: var(--pad); max-width: 1680px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   Custom cursor — small white circle (difference blend keeps it visible
   on white pages while reading white over imagery)
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  body, a, button, input, textarea, .chip { cursor: none; }
  .cursor-dot {
    position: fixed; top: 0; left: 0; z-index: 9999;
    width: 12px; height: 12px; border-radius: 50%;
    background: #fff; mix-blend-mode: difference;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.3s;
  }
  .cursor-dot.is-link { width: 38px; height: 38px; }
  .cursor-dot.is-hidden { opacity: 0; }
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: transform 0.45s var(--ease), background 0.3s, backdrop-filter 0.3s;
}
.site-header.scrolled { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header.hidden { transform: translateY(-100%); }

.logo { display: flex; align-items: center; }
.logo img { display: block; height: 26px; width: auto; }

.nav-desktop { display: flex; gap: 34px; }
.nav-desktop a {
  font-size: 14px; letter-spacing: 0.04em; color: var(--ink-dim);
  position: relative; padding: 4px 0; transition: color 0.25s;
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--ink); }
.nav-desktop a:hover::after, .nav-desktop a.active::after { transform: scaleX(1); transform-origin: left; }

.menu-btn {
  display: none; background: none; border: none; color: var(--ink);
  font-family: var(--font); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  z-index: 102;
}

.nav-overlay {
  position: fixed; inset: 0; z-index: 101; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.6s var(--ease);
  visibility: hidden;
}
.nav-overlay.open { clip-path: inset(0 0 0 0); visibility: visible; }
.nav-overlay a {
  font-size: clamp(36px, 9vw, 64px); font-weight: 200; padding: 6px 0;
  color: var(--ink-faint); transition: color 0.25s, padding-left 0.3s var(--ease);
  opacity: 0; transform: translateY(24px);
}
.nav-overlay.open a { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.25s, padding-left 0.3s; }
.nav-overlay a:hover { color: var(--ink); padding-left: 14px; }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-btn { display: block; }
}

/* --------------------------------------------------------------------------
   Animated hero (first content = animation)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; height: 92vh; min-height: 540px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: relative; z-index: 2; padding: 0 var(--pad) 8vh; }
.hero-kicker {
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 6.5vw, 104px); font-weight: 200; max-width: 18ch;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.14s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-sub {
  margin-top: 28px; max-width: 54ch; color: var(--ink-dim); font-size: clamp(16px, 1.4vw, 19px);
  opacity: 0; animation: fadeUp 1s var(--ease) 0.6s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Showreel — full-bleed autoplaying film under the hero
   -------------------------------------------------------------------------- */
.showreel { position: relative; }
.showreel video { display: block; width: 100%; height: auto; min-height: 50vh; object-fit: cover; background: var(--ink-deep); }
.showreel-tag {
  position: absolute; left: clamp(20px, 3vw, 44px); bottom: clamp(18px, 3vw, 32px);
  color: #fff; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  mix-blend-mode: difference;
}

/* --------------------------------------------------------------------------
   Section scaffolding & reveals
   -------------------------------------------------------------------------- */
.section { padding-top: clamp(64px, 10vh, 150px); padding-bottom: clamp(64px, 10vh, 150px); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(32px, 5vh, 70px); flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(28px, 4vw, 54px); font-weight: 200; }
.section-head .count { color: var(--ink-faint); font-size: 14px; letter-spacing: 0.06em; }

.statement {
  font-size: clamp(24px, 3.2vw, 46px); font-weight: 200; line-height: 1.3; max-width: 30ch;
}
.statement em { font-style: normal; color: var(--ink-faint); }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

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

/* --------------------------------------------------------------------------
   Project reel (homepage) — full-bleed stacked images.
   Hover: image zooms OUT slightly; title pinned bottom-left; two-word label
   fades up into the top-right and stays pinned (sticky) while you scroll
   down the image. Text colour follows image tone.
   -------------------------------------------------------------------------- */
.reel { display: flex; flex-direction: column; gap: clamp(28px, 5vh, 80px); }

.reel-item {
  /* no overflow:hidden here — it would break the sticky label;
     .reel-media does the clipping for the zoom effect */
  position: relative; display: block;
  height: clamp(420px, 105vh, 1000px);
}
.reel-media { position: absolute; inset: 0; overflow: hidden; }
.reel-media .art {
  height: 100%; width: 100%; object-fit: cover;
  transform: scale(1.07);
  transition: transform 1.1s var(--ease);
}
.reel-item:hover .reel-media .art { transform: scale(1.0); }  /* zoom out */

.reel-title {
  position: absolute; left: clamp(20px, 3vw, 44px); bottom: clamp(18px, 3vw, 36px); z-index: 3;
  font-size: clamp(24px, 3vw, 44px); font-weight: 300; letter-spacing: -0.01em;
}
.reel-location {
  position: absolute; left: clamp(20px, 3vw, 44px); bottom: clamp(72px, 8vw, 96px); z-index: 3;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7;
}

/* sticky label track: follows the scroll within the image bounds */
.reel-label-track {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-end;
}
.reel-label {
  position: sticky; top: clamp(72px, 10vh, 110px);
  margin-right: clamp(20px, 3vw, 44px); padding-top: clamp(18px, 3vw, 36px);
  font-size: clamp(14px, 1.2vw, 18px); letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reel-item:hover .reel-label { opacity: 1; transform: translateY(0); }

.reel-item[data-tone="dark"] .reel-title,
.reel-item[data-tone="dark"] .reel-location,
.reel-item[data-tone="dark"] .reel-label { color: #ffffff; }
.reel-item[data-tone="light"] .reel-title,
.reel-item[data-tone="light"] .reel-location,
.reel-item[data-tone="light"] .reel-label { color: var(--ink-deep); }

/* --------------------------------------------------------------------------
   Project grid (work page) — large two-up thumbs, generous whitespace
   -------------------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 64px); }
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; } }

.card { display: block; }
.card .thumb { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: var(--bg-soft); }
.card .thumb .art { transform: scale(1.07); transition: transform 1s var(--ease); }
.card:hover .thumb .art { transform: scale(1.0); }   /* zoom out, matching reel */
.card .thumb .card-label {
  position: absolute; top: 20px; right: 22px; z-index: 2;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.card:hover .thumb .card-label { opacity: 1; transform: none; }
.card .thumb .card-name {
  position: absolute; left: 22px; bottom: 18px; z-index: 2;
  font-size: clamp(19px, 1.8vw, 26px); font-weight: 300;
}
.card[data-tone="dark"] .card-label, .card[data-tone="dark"] .card-name { color: #fff; }
.card[data-tone="light"] .card-label, .card[data-tone="light"] .card-name { color: var(--ink-deep); }

.card .meta { padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card .meta .loc { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.card .meta .tags { font-size: 13px; color: var(--ink-dim); }

.card.is-hiding { opacity: 0; transform: scale(0.97); transition: opacity 0.3s, transform 0.3s; }
.card.is-entering { opacity: 0; transform: translateY(20px); }
.card.is-shown { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }

/* --------------------------------------------------------------------------
   Filter bar
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center;
  padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: clamp(32px, 5vh, 56px); position: sticky; top: 0; background: var(--bg); z-index: 50;
}
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-group .label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); margin-right: 8px; }
.chip {
  border: 1px solid var(--line); background: none; color: var(--ink-dim); border-radius: 999px;
  font-size: 13px; font-weight: 300; padding: 7px 16px; font-family: var(--font);
  transition: all 0.25s;
}
.chip:hover { border-color: var(--ink-dim); color: var(--ink); }
.chip.active { background: var(--ink-deep); color: #fff; border-color: var(--ink-deep); }

.search-box { margin-left: auto; }
.search-box input {
  background: none; border: none; border-bottom: 1px solid var(--line); color: var(--ink);
  font-family: var(--font); font-weight: 300; font-size: 14px; padding: 8px 2px; width: 180px;
  transition: border-color 0.3s, width 0.4s var(--ease); outline: none;
}
.search-box input:focus { border-color: var(--ink); width: 240px; }
.search-box input::placeholder { color: var(--ink-faint); }
@media (max-width: 900px) { .search-box { margin-left: 0; width: 100%; } .search-box input, .search-box input:focus { width: 100%; } }

.no-results { color: var(--ink-dim); padding: 60px 0; text-align: center; display: none; }

/* --------------------------------------------------------------------------
   Big CTA link
   -------------------------------------------------------------------------- */
.big-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(36px, 6vh, 72px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: clamp(26px, 4.5vw, 64px); font-weight: 200; letter-spacing: -0.01em;
  transition: padding-left 0.5s var(--ease), color 0.3s;
}
.big-link .arrow { font-size: 0.8em; transition: transform 0.5s var(--ease); }
.big-link:hover { padding-left: 24px; color: var(--ink-faint); }
.big-link:hover .arrow { transform: translateX(16px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Services / values rows
   -------------------------------------------------------------------------- */
.row-list { border-top: 1px solid var(--line); }
.row-item {
  display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 24px; align-items: baseline;
  padding: clamp(24px, 4vh, 48px) 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.row-item:hover { padding-left: 16px; }
.row-item .num { color: var(--ink-faint); font-size: 14px; }
.row-item h3 { font-size: clamp(22px, 2.6vw, 36px); font-weight: 200; }
.row-item p { color: var(--ink-dim); max-width: 58ch; font-size: 1rem; }
.row-item .sub { display: block; margin-top: 10px; font-size: 13px; letter-spacing: 0.06em; color: var(--ink-faint); }
@media (max-width: 800px) { .row-item { grid-template-columns: 48px 1fr; } .row-item p { grid-column: 2; } }

/* --------------------------------------------------------------------------
   Dark band (INK-style near-black panel)
   -------------------------------------------------------------------------- */
.dark-band { background: var(--ink-deep); color: #f5f3ef; }
.dark-band .statement em { color: var(--ink-faint); }
.dark-band .row-list, .dark-band .row-item { border-color: rgba(245, 243, 239, 0.16); }
.dark-band .row-item p { color: #b9b5ac; }
.dark-band .row-item .num, .dark-band .row-item .sub { color: #807c74; }

/* --------------------------------------------------------------------------
   People
   -------------------------------------------------------------------------- */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
@media (max-width: 800px) { .people-grid { grid-template-columns: 1fr; } }
.person .portrait {
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.person .portrait .initials {
  font-size: clamp(40px, 5vw, 64px); font-weight: 200; color: var(--ink);
  transition: transform 0.5s var(--ease);
}
.person:hover .portrait .initials { transform: scale(1.12); }
.person h3 { font-size: 19px; font-weight: 400; margin-top: 16px; }
.person .role { color: var(--ink-dim); font-size: 14px; }

.person.pending .portrait { background: var(--bg-soft); }

/* --------------------------------------------------------------------------
   Loading panel — reusable animated indeterminate bar in the house style.
   Used for pending people, in-progress projects (competition entries) and
   pending news articles. Fills its (positioned, sized) parent.
   -------------------------------------------------------------------------- */
.loading-panel {
  width: 100%; height: 100%; min-height: 220px;
  background: var(--bg-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 32px clamp(24px, 12%, 120px);
}
.loading-panel .loading-bar {
  position: relative; display: block; width: 100%; max-width: 340px; height: 2px;
  background: rgba(46, 42, 43, 0.12); overflow: hidden;
}
.loading-panel .loading-bar > span {
  position: absolute; top: 0; height: 100%; width: 38%; left: -38%;
  background: var(--ink);
  animation: loadingSlide 1.9s var(--ease) infinite;
}
.loading-panel .loading-label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint);
  text-align: center;
}
@keyframes loadingSlide {
  0%   { left: -40%; width: 38%; }
  50%  { width: 52%; }
  100% { left: 100%; width: 38%; }
}
@media (prefers-reduced-motion: reduce) {
  .loading-panel .loading-bar > span { animation: none; left: 0; width: 45%; }
}

/* Article (news) loading panel sits in a wide banner slot */
.article-media { aspect-ratio: 16 / 7; min-height: 240px; overflow: hidden; margin-bottom: clamp(8px, 2vw, 24px); }

/* --------------------------------------------------------------------------
   News
   -------------------------------------------------------------------------- */
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line); transition: padding-left 0.35s var(--ease);
}
.news-item:hover { padding-left: 14px; }
.news-item .date { color: var(--ink-faint); font-size: 13px; letter-spacing: 0.08em; }
.news-item h3 { font-size: clamp(19px, 2.2vw, 26px); font-weight: 300; transition: color 0.25s; }
.news-item:hover h3 { color: var(--ink-faint); }
.news-item p { color: var(--ink-dim); font-size: 15px; margin-top: 6px; max-width: 70ch; }
.news-item .arrow { color: var(--ink-faint); font-size: 20px; transition: transform 0.35s var(--ease); }
.news-item:hover .arrow { transform: translateX(8px) rotate(-45deg); }
@media (max-width: 700px) { .news-item { grid-template-columns: 1fr auto; } .news-item .date { grid-column: 1 / -1; } }

/* --------------------------------------------------------------------------
   Jobs
   -------------------------------------------------------------------------- */
.jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .jobs-grid { grid-template-columns: 1fr; } }
.job-card {
  border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 14px; transition: border-color 0.3s, transform 0.4s var(--ease);
}
.job-card:hover { border-color: var(--ink-dim); transform: translateY(-6px); }
.job-card .type { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); }
.job-card h3 { font-size: 23px; font-weight: 300; }
.job-card p { color: var(--ink-dim); font-size: 15px; flex: 1; }
.job-card .apply { font-size: 14px; border-bottom: 1px solid var(--ink); align-self: flex-start; padding-bottom: 2px; }

/* --------------------------------------------------------------------------
   Contact / forms
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 100px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info .line-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info .line-item .label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.contact-info .line-item a, .contact-info .line-item span { font-size: clamp(17px, 2vw, 22px); font-weight: 300; transition: color 0.25s; }
.contact-info .line-item a:hover { color: var(--ink-faint); }

.field { margin-bottom: 28px; }
.field input, .field textarea {
  width: 100%; background: none; border: none; border-bottom: 1px solid var(--line);
  color: var(--ink); font-family: var(--font); font-weight: 300; font-size: 16px; padding: 12px 2px;
  outline: none; transition: border-color 0.3s; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field label { display: block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 2px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink-deep); color: #fff; border: none; border-radius: 999px;
  font-family: var(--font); font-weight: 300; font-size: 15px; padding: 16px 34px;
  transition: background 0.3s, transform 0.25s var(--ease), gap 0.3s;
}
.btn:hover { background: var(--ink); gap: 18px; transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }

.form-success { display: none; color: var(--ink); font-weight: 400; font-size: 18px; padding: 16px 0; }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero { padding-top: clamp(140px, 22vh, 240px); padding-bottom: clamp(40px, 7vh, 90px); }
.page-hero .kicker { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 22px; }
.page-hero h1 { font-size: clamp(38px, 6.5vw, 96px); font-weight: 200; max-width: 18ch; }
.page-hero .lede { margin-top: 28px; max-width: 58ch; color: var(--ink-dim); font-size: clamp(16px, 1.4vw, 19px); }

/* --------------------------------------------------------------------------
   Prose (articles, policy pages)
   -------------------------------------------------------------------------- */
.prose { max-width: 68ch; color: var(--ink-dim); font-size: clamp(16px, 1.4vw, 19px); }
.prose > p + p { margin-top: 1.3em; }
.prose h2 { color: var(--ink); font-size: clamp(22px, 2.6vw, 32px); font-weight: 300; margin: 1.8em 0 0.6em; }
.prose h3 { color: var(--ink); font-size: clamp(18px, 2vw, 22px); font-weight: 400; margin: 1.4em 0 0.4em; }
.prose ul { margin: 0.8em 0 0; padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--line); transition: border-color 0.25s; }
.prose a:hover { border-color: var(--ink); }
.prose .updated { font-size: 13px; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 2em; }

/* --------------------------------------------------------------------------
   Project detail
   -------------------------------------------------------------------------- */
/* Hero sits to the screen — capped at viewport height, never a long letterbox */
.project-hero-art { height: clamp(360px, 78vh, 880px); min-height: 320px; overflow: hidden; }
.project-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 800px) { .project-meta { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.project-meta .label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.project-body { max-width: 70ch; font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-dim); }
.project-body p + p { margin-top: 1.2em; }
.project-nav { display: flex; justify-content: space-between; gap: 24px; }

/* Video sits to the screen like the stills: landscape fills the width, portrait
   is capped on its vertical side (max-height) and centred rather than stretched. */
.project-video { margin-bottom: clamp(28px, 4vw, 64px); text-align: center; }
.project-video video {
  display: block; margin: 0 auto;
  width: auto; height: auto; max-width: 100%; max-height: 86vh;
  background: var(--ink-deep);
}
@media (max-width: 640px) { .project-video video { max-height: none; width: 100%; } }

/* Orientation-aware gallery: every image keeps its natural shape and is capped
   to the viewport so it "sits to the screen". Landscape images run full width;
   portraits pair up two-across instead of being stretched wide. Orientation
   classes (is-portrait / is-landscape) are set in project.html on image load. */
.gallery { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 48px); justify-content: center; align-items: flex-start; }
.gallery-item { margin: 0; flex: 1 1 100%; }
.gallery-item img { display: block; width: auto; height: auto; max-width: 100%; max-height: 82vh; margin: 0 auto; }
.gallery-item.is-portrait { flex: 1 1 calc(50% - clamp(20px, 3vw, 48px)); max-width: calc(50% - clamp(20px, 3vw, 48px)); }
@media (max-width: 700px) {
  .gallery-item, .gallery-item.is-portrait { flex-basis: 100%; max-width: 100%; }
  .gallery-item img { max-height: none; }
}

/* --------------------------------------------------------------------------
   Footer (dark panel, INK-style)
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink-deep); color: #f5f3ef; margin-top: clamp(60px, 10vh, 140px); }
.footer-cta { padding: clamp(56px, 10vh, 120px) var(--pad) clamp(40px, 6vh, 70px); }
.footer-cta h2 { font-size: clamp(34px, 5.5vw, 88px); font-weight: 200; max-width: 16ch; }
.footer-cta h2 a {
  background-image: linear-gradient(#f5f3ef, #f5f3ef); background-size: 0% 1px;
  background-repeat: no-repeat; background-position: left bottom;
  transition: background-size 0.5s var(--ease), color 0.3s;
}
.footer-cta h2 a:hover { color: var(--ink-faint); background-size: 100% 1px; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding: 0 var(--pad) clamp(40px, 6vh, 80px); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: #807c74; margin-bottom: 18px; font-weight: 400; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #b9b5ac; font-size: 14.5px; transition: color 0.25s; }
.footer-grid a:hover { color: #fff; }
.footer-grid address { font-style: normal; color: #b9b5ac; font-size: 14.5px; line-height: 1.8; }

.newsletter p { color: #b9b5ac; font-size: 14.5px; margin-bottom: 16px; }
.newsletter form { display: flex; border-bottom: 1px solid rgba(245,243,239,0.25); }
.newsletter input {
  flex: 1; background: none; border: none; color: #f5f3ef; padding: 10px 2px;
  font-family: var(--font); font-weight: 300; font-size: 14px; outline: none;
}
.newsletter input::placeholder { color: #807c74; }
.newsletter button { background: none; border: none; color: #f5f3ef; font-size: 18px; transition: transform 0.3s var(--ease); padding: 0 6px; }
.newsletter button:hover { transform: translateX(6px); }
.newsletter .form-success { color: #f5f3ef; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 24px var(--pad); border-top: 1px solid rgba(245,243,239,0.14);
  font-size: 12.5px; color: #807c74;
}
.footer-bottom .footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-bottom .footer-logo { height: 18px; width: auto; filter: invert(1); opacity: 0.85; }
.footer-bottom .socials { display: flex; gap: 20px; }
.footer-bottom .socials a { color: #807c74; transition: color 0.25s; }
.footer-bottom .socials a:hover { color: #fff; }

/* Back-to-top */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,0.85); backdrop-filter: blur(8px); color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity 0.4s, transform 0.3s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); border-color: var(--ink-dim); }

/* --------------------------------------------------------------------------
   Touch devices — there is no hover, so reveal the hover-only states by
   default (project labels + names) and drop the zoom that can't be triggered.
   -------------------------------------------------------------------------- */
@media (hover: none), (pointer: coarse) {
  .reel-media .art,
  .card .thumb .art { transform: scale(1); }
  .reel-label { opacity: 1; transform: none; }
  .card .thumb .card-label { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Mobile layout (≤640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }

  .hero { height: 88vh; min-height: 460px; }
  .hero-copy { padding-bottom: 12vh; }

  .showreel video { min-height: 38vh; }

  /* Reel: shorter, tighter stack so each project is a comfortable card */
  .reel { gap: 12px; }
  .reel-item { height: clamp(380px, 64vh, 560px); }
  .reel-location { bottom: clamp(58px, 14vw, 72px); }

  /* Stack the project meta into a clean two-column grid already handled,
     but cap the hero height tighter */
  .project-hero-art { height: clamp(280px, 56vh, 520px); }

  /* Section rhythm */
  .section { padding-top: clamp(48px, 8vh, 80px); padding-bottom: clamp(48px, 8vh, 80px); }

  /* Stack the prev/next nav on project + article pages */
  .project-nav { flex-direction: column; }
  .project-nav .big-link { padding-top: 28px; padding-bottom: 28px; }

  /* People single column already; give portraits a touch more presence */
  .people-grid { gap: 28px; }

  /* Footer credit stacks above the socials */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom .footer-brand { align-items: flex-start; }

  /* Filter bar scrolls horizontally rather than wrapping into a tall block */
  .filter-bar { gap: 16px; }
}
