/* ==========================================================================
   SEOUL OF BERLIN — a personal film archive discovered in the future.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 400;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #111210;
  --fg: #E8E5DA;
  --fg-dim: rgb(232 229 218 / 0.56);
  --line: rgb(232 229 218 / 0.18);
  --accent: #B8693A;        /* contact arrow; pending markers on legal drafts */
  --accent-text: #DC9468;   /* accent lightened for text contrast */
  --ph: #1A1B18;            /* placeholder surface */

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: clamp(16px, 3.2vw, 48px);
  --gap: clamp(12px, 1.6vw, 24px);
  --hero-size: clamp(54px, 13.4vw, 260px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-inline: var(--pad);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }

:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.mono {
  font-family: var(--mono);
  font-stretch: normal;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.label { font-weight: 400; color: var(--fg); }

.skip {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--fg);
  color: var(--bg);
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-block: clamp(18px, 2.4vw, 32px);
  position: relative;
  z-index: 3;
}

.brand { display: grid; gap: 6px; }

.brand__name {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand__sub { font-size: 10px; color: var(--fg-dim); }

.site-nav { display: flex; flex-wrap: wrap; gap: 4px clamp(16px, 2.4vw, 40px); }

.site-nav a, .back { color: var(--fg-dim); transition: color 0.3s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"], .back:hover { color: var(--fg); }

/* ---------- Hero ---------- */

.hero { position: relative; }

.hero__title {
  position: relative;
  z-index: 2;
  font-size: var(--hero-size);
  font-weight: 100;
  font-stretch: 125%;
  line-height: 0.8;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-left: -0.05em;
  padding-top: clamp(4px, 1vw, 16px);
}

.hero__media {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--hero-size) * -0.62);
  margin-inline: calc(var(--pad) * -1);
  aspect-ratio: 21 / 8;
  overflow: hidden;
  background: var(--ph);
}

/* Crop: keep the skyline and TV Tower below the title. The interference canvas
   reads object-position, so its fragments line up with the crop. */
.hero__img { object-position: 50% 10%; }

/* Restrained grade for a bright, warm daylight photo. Applied to the
   interference canvas too, so its pixel fragments match the image. */
.hero__img,
.hero__media .interference-layer { filter: saturate(0.8) contrast(1.05) brightness(0.86); }

/* Darkens the sky under the title and lets the image settle into the page. */
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgb(17 18 16 / 0.62) 0%,
    rgb(17 18 16 / 0.3) 34%,
    rgb(17 18 16 / 0.12) 60%,
    rgb(17 18 16 / 0.4) 100%);
}

.hero__foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  font-size: 10px;
}

.hero__reel { color: var(--fg-dim); text-align: right; }

/* ---------- Media & placeholders ---------- */

.media {
  position: relative;
  overflow: hidden;
  background: var(--ph);
}

.media--placeholder {
  background-color: var(--ph);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0L100 100M100 0L0 100' stroke='%23E8E5DA' stroke-opacity='.07' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #1F201C, #141512);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* Static film grain on placeholders only — real photographs carry their own. */
.media--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ph-tag, .ph-spec {
  position: absolute;
  left: 12px;
  z-index: 1;
  font-size: 9px;
  color: var(--fg-dim);
}
.ph-tag { top: 10px; }
.ph-spec { bottom: 10px; }


.interference-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.media iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Play mark: small and in the corner on cards, centred on the project film. */
.play {
  position: absolute;
  left: 14px;
  bottom: 30px;
  z-index: 1;
  width: 9px;
  height: 11px;
  background: var(--fg);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------- Selected work ---------- */

.work { padding-top: clamp(48px, 6vw, 96px); }
.work .label { margin-bottom: 14px; }

/* Masonry-style grid: 1 column on phones, 2 on tablets, 4 on desktop.
   Tablet: cards span one column; a landscape feature spans two.
   Desktop: portrait/square span one, landscape two, landscape feature three
   (a 9:16 card in one column and a 16:9 card across three come out at
   almost the same height). masonry.js
   (.is-masonry) sets each card's row span from its height, so cards of any
   shape stack without forced equal heights. `dense` lets later cards fill
   space left beside a tall one. */
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-flow: dense;
  column-gap: var(--gap);
  align-items: start;
}
.work-grid.is-masonry { grid-auto-rows: 4px; }

@media (min-width: 600px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--landscape.card--feature { grid-column: span 2; }
  .card--landscape.card--tablet-wide { grid-column: span 2; } /* same as a landscape card from 900px */
}
@media (min-width: 900px) {
  .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card--landscape { grid-column: span 2; }
  .card--landscape.card--feature { grid-column: span 3; }
}

.card { position: relative; }

/* The vertical gap between cards; masonry.js includes it in each card's span. */
.card a { display: block; margin-bottom: clamp(28px, 3vw, 48px); }

.card .media > :is(img, video) { transition: opacity 0.6s var(--ease); opacity: 0.88; }
.card a:hover .media > :is(img, video) { opacity: 1; }

.card__index {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  font-size: 9px;
  color: var(--fg-dim);
}

.card__title {
  margin-top: 12px;
  font-family: var(--mono);
  font-stretch: normal;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.card a:hover .card__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.card__meta { margin-top: 2px; font-size: 10px; color: var(--fg-dim); }

/* ---------- Footer / CTA ---------- */

.site-footer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px var(--gap);
  margin-top: clamp(64px, 8vw, 120px);
  padding-block: clamp(28px, 3vw, 44px) clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.about {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  text-transform: none;
}

.cta { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .about { grid-column: 1 / span 5; }
  .cta   { grid-column: 7 / -1; justify-self: end; }
}

.cta__line {
  font-size: clamp(24px, 2.9vw, 46px);
  font-weight: 150;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  max-width: 16ch;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  font-size: 10px;
}

.arrow {
  position: relative;
  width: 40px;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}
.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: rotate(45deg);
  transform-origin: center;
}
.cta-link:hover .arrow { width: 56px; }

.about__more { margin-top: 10px; }
.about__more a, .film-note a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 10px;
  color: var(--fg-dim);
}
.footer-legal__links { display: flex; gap: 24px; }
.footer-legal a { transition: color 0.3s var(--ease); }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--fg); }

.page-project .site-footer { margin-top: 0; }

/* ---------- Homepage services ---------- */

.offer { padding-top: clamp(32px, 4vw, 64px); }
.offer__lead { margin-top: 14px; max-width: 30ch; }
.offer__list {
  display: grid;
  gap: 4px var(--gap);
  margin-top: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.offer__list li { padding-bottom: 20px; }
.offer__text {
  margin-top: 6px;
  max-width: 38ch;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--fg-dim);
}
@media (min-width: 600px) { .offer__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .offer__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Text pages: about, contact, legal ---------- */

.page { padding-top: clamp(32px, 6vw, 88px); }

.page-title {
  font-size: clamp(44px, 9.6vw, 180px);
  font-weight: 100;
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-left: -0.04em;
}
/* Sized so the longest word ("SOMETHING.") fits one line down to 320px. */
.page-title--contact { font-size: clamp(36px, 11.2vw, 220px); }
.page-title--legal { font-size: clamp(36px, 6vw, 96px); font-weight: 150; }

.page-lead {
  margin-top: clamp(32px, 5vw, 72px);
  max-width: 24ch;
  font-size: clamp(24px, 3.2vw, 48px);
  font-weight: 200;
  line-height: 1.12;
}

.prose {
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  text-transform: none;
}
.prose p + p { margin-top: 1em; }
.prose a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--fg-dim); }

.page-columns { margin-top: clamp(32px, 5vw, 72px); }

.page-image {
  position: relative;
  max-width: 720px;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ph);
}

/* About: lead, portrait, text on phones; text beside the portrait on desktop. */
.about-layout {
  display: grid;
  grid-template-areas: "lead" "image" "body";
  gap: clamp(28px, 4vw, 48px);
  margin-top: clamp(32px, 5vw, 72px);
}
.about-layout .page-lead { grid-area: lead; margin-top: 0; }
.about-layout .page-image { grid-area: image; }
.about-layout .prose { grid-area: body; }

@media (min-width: 900px) {
  .about-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    grid-template-areas: "lead image" "body image";
    column-gap: clamp(32px, 5vw, 80px);
    align-items: start;
  }
  .about-layout .page-image { max-width: none; }
}

.page-cta { margin-top: clamp(56px, 8vw, 120px); }

/* Contact */
.contact-list { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); max-width: 720px; }
.contact-list > div {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) 3fr;
  align-items: baseline;
  gap: var(--gap);
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.contact-list dt { font-size: 10px; color: var(--fg-dim); }
.contact-list dd { font-size: 14px; letter-spacing: 0.02em; text-transform: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Contact: booking and enquiry, stacked in source order on phones. From 900px they
   sit side by side with their buttons level: each note hangs below its button, so
   the wrapping of one note can't move a button out of line. */
.contact-columns { display: grid; gap: clamp(56px, 10vw, 72px); margin-top: clamp(32px, 5vw, 72px); }
.booking .prose, .enquiry .prose { margin-top: 12px; }
.booking .button { margin-top: 20px; }
.contact-columns .contact-form, .contact-columns .contact-form__success { max-width: none; margin-top: clamp(28px, 3vw, 40px); }
@media (min-width: 900px) {
  .page--contact { padding-top: clamp(20px, 1.7vw, 32px); }
  .contact-columns {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(48px, 7vw, 112px);
    margin-top: clamp(32px, 2.5vw, 40px);
    padding-bottom: 44px;
  }
  .booking { display: flex; flex-direction: column; align-items: flex-start; }
  .booking .prose { margin-bottom: 20px; }
  .booking .button { margin-top: auto; }
  .booking__meta, .contact-columns .contact-form .button-note { height: 0; }
  .contact-columns .contact-form .button-note { margin-bottom: -10px; } /* cancels its top margin in the column height */
  .contact-columns .contact-form,
  .contact-columns .contact-form__success { margin-top: 24px; }
  .contact-columns .contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(20px, 2.4vw, 32px); }
  .contact-columns .contact-form > * { grid-column: 1 / -1; }
  .contact-columns .contact-form__field:has(input) { grid-column: auto; }
  .contact-columns .contact-form textarea { height: 70px; }
}

/* Contact details: a row above the legal links, on this page's footer only. */
.site-footer--contact { padding-top: 0; }
.site-footer--contact .contact-list { grid-column: 1 / -1; margin-top: 0; max-width: none; border-top: 0; }
@media (min-width: 900px) {
  .site-footer--contact .contact-list {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(48px, 7vw, 112px);
  }
}

.booking__status:not(:empty) { margin-top: 12px; font-size: 11px; letter-spacing: 0.04em; text-transform: none; }
.booking__status a { white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Contact form */
.contact-form { display: grid; gap: 28px; max-width: 720px; margin-top: clamp(32px, 5vw, 72px); }
.contact-form[hidden] { display: none; }
.contact-form__trap { position: absolute; left: -9999px; }
.contact-form__field label { display: block; margin-bottom: 4px; font-size: 10px; color: var(--fg-dim); }
.contact-form__field :is(input, textarea) {
  display: block;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 16px; /* keeps iOS from zooming in on focus */
  letter-spacing: 0.02em;
  text-transform: none;
  resize: vertical;
  transition: border-color 0.3s var(--ease);
}
.contact-form__field :is(input, textarea):focus { border-bottom-color: var(--fg); }
.contact-form__field :is(input, textarea):focus-visible { outline-offset: 0; }
.contact-form__field [aria-invalid="true"] { border-bottom-color: var(--accent-text); }
.contact-form__error { margin-top: 8px; font-size: 11px; letter-spacing: 0.04em; text-transform: none; color: var(--accent-text); }
.contact-form__error a, .button-note a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contact-form .button { margin-top: 0; background: none; color: inherit; cursor: pointer; }
.contact-form .button:hover { background: var(--fg); color: var(--bg); }
.contact-form .button:disabled { border-color: var(--line); background: none; color: var(--fg-dim); cursor: wait; }
.contact-form__success { max-width: 720px; margin-top: clamp(32px, 5vw, 72px); }

.button {
  display: inline-block;
  margin-top: clamp(28px, 3.4vw, 44px);
  padding: 16px 28px;
  border: 1px solid var(--fg);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.button:hover { background: var(--fg); color: var(--bg); }
.button[aria-disabled="true"] { border-color: var(--line); color: var(--fg-dim); background: none; cursor: not-allowed; }
.button-note { display: block; margin-top: 10px; font-size: 10px; color: var(--fg-dim); }

/* Legal */
.legal-draft {
  max-width: 62ch;
  margin-top: clamp(24px, 3vw, 40px);
  padding: 16px 18px;
  border: 1px solid var(--accent);
  font-size: 12px;
}
.legal-draft strong { font-weight: 400; color: var(--accent-text); }
.legal-section { margin-top: clamp(32px, 4vw, 52px); scroll-margin-top: 16px; }
.legal-section h2 { margin-bottom: 10px; font-size: 11px; font-weight: 400; }

/* Privacy Policy: editorial reading column with an "On this page" contents list.
   Phones and tablets: the list is a collapsible <details>. From 1100px it becomes a
   sticky left column and the summary is hidden, so it reads as a plain list. */
.page--privacy .prose { max-width: none; font-size: 14px; line-height: 1.85; letter-spacing: 0.01em; margin-top: clamp(8px, 2vw, 24px); }
.page--privacy .legal-section {
  margin-top: 0;
  padding-top: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.page--privacy .toc + .prose .legal-section:first-child { border-top: 0; }
.page--privacy .legal-section + .legal-section { margin-top: clamp(40px, 5vw, 64px); }
.page--privacy .legal-section h2 {
  margin-bottom: clamp(18px, 2vw, 28px);
  font-family: var(--display);
  font-stretch: 125%;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}
.page--privacy .legal-num { margin-right: 0.3em; color: var(--fg-dim); }
.page--privacy .legal-section p { max-width: 68ch; }
.page--privacy .legal-section p + p { margin-top: 1.15em; }
.page--privacy .prose a:focus-visible { outline-offset: 2px; }

.page--privacy .toc { margin-top: clamp(28px, 5vw, 56px); border-block: 1px solid var(--line); font-size: 10px; }
.page--privacy .toc__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
}
.page--privacy .toc__summary::-webkit-details-marker { display: none; }
.page--privacy .toc__summary::after { content: "+"; content: "+" / ""; font-size: 14px; line-height: 1; } /* decorative: not read aloud */
.page--privacy .toc__details[open] > .toc__summary::after { content: "\2212"; content: "\2212" / ""; }
.page--privacy .toc__label { display: none; color: var(--fg-dim); }
.page--privacy .toc__list { padding-bottom: 16px; }
.page--privacy .toc__list a {
  display: block;
  padding-block: 7px;
  color: var(--fg-dim);
  transition: color 0.3s var(--ease);
}
.page--privacy .toc__list a:hover, .page--privacy .toc__list a[aria-current] { color: var(--fg); }
.page--privacy .toc__list a:focus-visible { outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  html:has(.page--privacy) { scroll-behavior: smooth; }
}

@media (min-width: 1100px) {
  .page--privacy {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .page--privacy .page-title { grid-column: 1 / -1; }
  .page--privacy .toc {
    grid-column: 1 / span 3;
    position: sticky;
    top: 32px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    margin-top: clamp(56px, 6vw, 96px);
    padding-top: clamp(36px, 5vw, 64px);
    border: 0;
    border-top: 1px solid var(--line);
  }
  .page--privacy .prose { grid-column: 5 / -1; margin-top: clamp(56px, 6vw, 96px); }
  .page--privacy .toc + .prose .legal-section:first-child { border-top: 1px solid var(--line); }
  .page--privacy .toc__label { display: block; margin-bottom: 14px; }
  .page--privacy .toc__list a { position: relative; transition: color 0.3s var(--ease), padding-left 0.3s var(--ease); }
  .page--privacy .toc__list a[aria-current] { padding-left: 24px; }
  .page--privacy .toc__list a[aria-current]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 1px;
    background: var(--fg);
  }
  @supports selector(::details-content) {
    .page--privacy .toc__summary { display: none; }
    .page--privacy .toc__details::details-content { content-visibility: visible; display: block; }
  }
}
.todo { padding: 1px 4px; background: rgb(184 105 58 / 0.24); color: var(--fg); }

/* ---------- Photo story: an editorial series instead of a grid ---------- */

/* `story` entries in data.js choose a place below: a cover beside the title, a
   staggered left/right pair, a full-width break, a wide image, and a closing
   image with the same place and size as the cover. Any order and number work. */
:where(.story) figure { margin: 0; }

.story-back { padding-top: clamp(24px, 4vw, 56px); }

.story {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-top: clamp(24px, 4vw, 56px);
}

.story-title { grid-column: 1 / span 5; align-self: end; }
.story-title .page-title { font-size: clamp(64px, 12vw, 220px); }
.story-title p { font-size: 10px; color: var(--fg-dim); }
.story-index { margin-bottom: 6px; }
.story-title .page-title + p { margin-top: 12px; }

.story__cover { grid-column: 6 / span 6; }
.story__left  { grid-column: 1 / span 5; margin-top: clamp(72px, 11vw, 180px); }
.story__right { grid-column: 7 / span 5; margin-top: clamp(150px, 22vw, 360px); }
.story__break { grid-column: 1 / -1; margin: clamp(72px, 11vw, 180px) calc(var(--pad) * -1) 0; }
.story__wide  { grid-column: 1 / span 8; margin-top: clamp(72px, 11vw, 180px); }
.story__last  { grid-column: 6 / span 6; margin-top: clamp(72px, 11vw, 180px); }
.story .facts { grid-column: 1 / -1; margin-top: clamp(48px, 6vw, 88px); }

@media (max-width: 767px) {
  .story-title, .story__cover, .story__break, .story__last { grid-column: 1 / -1; }
  .story-title { padding-bottom: 20px; }
  .story__cover, .story__last { margin-inline: calc(var(--pad) * -1); }
  .story__left  { grid-column: 1 / span 9; margin-top: 64px; }
  .story__right { grid-column: 4 / -1; margin-top: 28px; }
  .story__wide  { grid-column: 1 / span 11; margin-top: 64px; }
  .story__last  { margin-top: 64px; }
}

/* ---------- Project page ---------- */

.project, .page-project .next { max-width: 1240px; }

.project-head { padding-top: clamp(24px, 4vw, 56px); }

.back { display: inline-block; font-size: 10px; }

.project-index { margin-top: clamp(28px, 4vw, 52px); font-size: 10px; color: var(--fg-dim); }

.project-title {
  margin-top: 6px;
  font-size: clamp(40px, 7.4vw, 120px);
  font-weight: 150;
  font-stretch: 125%;
  line-height: 0.95;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.project-subtitle {
  margin-top: 10px;
  font-size: clamp(12px, 1.2vw, 15px);
  letter-spacing: 0.06em;
  text-transform: none;
}

.project-hero { margin-top: clamp(20px, 2.4vw, 32px); }

.project-hero .play {
  left: 50%;
  top: 50%;
  bottom: auto;
  width: 22px;
  height: 26px;
  transform: translate(-35%, -50%);
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: clamp(56px, 6vw, 76px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(17 18 16 / 0.62);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.play-button:hover { background: rgb(17 18 16 / 0.85); border-color: var(--fg-dim); }
.play-button .play { width: 16px; height: 19px; }
/* Posters with a centred logo: the button covers the whole poster, and its
   visible circle sits in the upper-right corner, clear of the logo. */
.play-button--corner {
  --size: clamp(56px, 6vw, 76px);
  --inset: clamp(12px, 1.6vw, 20px);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: none;
  transform: none;
}
.play-button--corner:hover { background: none; }
.play-button--corner:focus-visible { outline-offset: -3px; }
.play-button--corner::before {
  content: "";
  position: absolute;
  top: var(--inset);
  right: var(--inset);
  width: var(--size);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(17 18 16 / 0.62);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.play-button--corner:hover::before { background: rgb(17 18 16 / 0.85); border-color: var(--fg-dim); }
.play-button--corner .play {
  left: calc(100% - var(--inset) - var(--size) / 2);
  top: calc(var(--inset) + var(--size) / 2);
}

.film-note { margin-top: 8px; font-size: 9px; color: var(--fg-dim); }

/* Vertical film on its project page: native 9:16, centred, max 420px wide,
   never taller than the viewport. */
.project-hero--portrait .media { width: min(100%, 420px, (100vh - 120px) * 9 / 16); margin-inline: auto; }
.project-hero--portrait .film-note { text-align: center; }

/* Projects with four facts (currently Authentic Eros) — one row on wider screens. */
@media (min-width: 600px) {
  .facts.facts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(14px, 1.6vw, 22px);
  border-block: 1px solid var(--line);
}

.facts > div { padding: 16px 16px 18px 0; }
.facts > div + div { padding-left: clamp(12px, 2vw, 32px); border-left: 1px solid var(--line); }
.facts dt { font-size: 9px; color: var(--fg-dim); }
.facts dd { margin-top: 4px; }

/* Project notes: continues the three columns and divider of the facts row above. */
.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.notes__label {
  padding: 16px 16px 18px 0;
  font-size: 9px;
  color: var(--fg-dim);
}
.project-text {
  grid-column: 2 / -1;
  padding: 16px 0 18px clamp(12px, 2vw, 32px);
  border-left: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  text-transform: none;
}
.project-text p { max-width: 62ch; }
.project-text p + p { margin-top: 1em; }

.cuts { margin-top: clamp(48px, 6vw, 88px); }
.cuts .label { margin-bottom: 14px; }

.cuts__list {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.cuts__list li { grid-column: span 6; }

@media (min-width: 900px) {
  .cuts__list li:nth-child(odd)  { grid-column: 2 / span 4; }
  .cuts__list li:nth-child(even) { grid-column: span 4; }
}

.cuts__caption { margin-top: 12px; font-size: 10px; color: var(--fg-dim); }

@media (min-width: 900px) {
  .cuts__caption { margin-left: calc((100% - 11 * var(--gap)) / 12 + var(--gap)); }
}

.next {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: clamp(64px, 8vw, 120px);
  padding-block: clamp(20px, 2.4vw, 32px) clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.next__link { display: grid; gap: 4px; }
.next .label { font-size: 10px; }

.next__title {
  font-size: clamp(28px, 3.8vw, 60px);
  font-weight: 150;
  line-height: 1;
  text-transform: uppercase;
}
.next__title span { display: inline-block; font-weight: 200; transition: transform 0.4s var(--ease); }
.next__link:hover .next__title span { transform: translateX(8px); }

.next .cta-link { margin-top: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 599px) {
  .site-header { flex-direction: column; gap: 14px; }
  .hero__media { aspect-ratio: 4 / 5; margin-top: calc(var(--hero-size) * -0.45); }
  .hero__img { object-position: 32% 50%; } /* centres the TV Tower in the narrow crop */
  .hero__foot { flex-direction: column; gap: 4px; }
  .hero__reel { text-align: left; }
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .notes { display: block; }
  .notes__label { padding: 16px 0 0; }
  .project-text { padding: 8px 0 18px; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
