/* ================================================================
   MARCUS FRIEDLANDER — COLOURIST
   Poster-editorial shell, gallery-dark viewing rooms.
   ================================================================ */

/* ---- self-hosted fonts (no swap flash) -------------------------- */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../assets/fonts/anton.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url("../assets/fonts/archivo-var.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../assets/fonts/plexmono.woff2") format("woff2");
}

:root {
  --ink: #0D0C0A;
  --ink-2: #131210;
  --bone: #EAE5DB;
  --dim: #8E897E;
  --line: rgba(234, 229, 219, 0.14);
  --signal: #E8380C;
  --signal-deep: #B72A06;

  --pad: clamp(20px, 4vw, 56px);
  --gutter: clamp(12px, 1.6vw, 24px);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.83, 0, 0.17, 1);
}

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

html { scroll-behavior: auto; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

::selection { background: var(--signal); color: var(--ink); }

img { display: block; max-width: 100%; }

/* a still that fails to load: hide the broken-image icon + alt text and
   let the container's dark tile show through instead */
img.img-failed {
  opacity: 0;
  color: transparent;
  font-size: 0;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---- type utilities ------------------------------------------- */

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

.mono--dim { color: var(--dim); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
}

/* ---- grain overlay --------------------------------------------- */

.grain {
  position: fixed;
  inset: -100px;
  z-index: 200;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- custom cursor ---------------------------------------------- */

/* the red dot IS the cursor — hide the native one when active */
.has-cursor,
.has-cursor * { cursor: none !important; }

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  pointer-events: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--signal);
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              background-color 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.cursor__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.cursor.is-label {
  width: 64px; height: 64px;
  background: var(--signal);
}

.cursor.is-label .cursor__label { opacity: 1; }

.cursor.is-hidden { opacity: 0; }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ---- preloader --------------------------------------------------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 340; /* under the arrival cover so red always wins mid-transition */
  background: var(--ink);
  display: flex;
  align-items: flex-end;
  padding: var(--pad);
}

/* the intro only ever plays once per session — after that the loader
   must never paint, not even for a frame */
html.no-intro .loader { display: none; }

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
}

.loader__row {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.loader__name {
  font-size: clamp(40px, 9vw, 130px);
  overflow: hidden;
}

.loader__name span {
  display: block;
  transform: translateY(110%);
}

.loader__count {
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 22px);
  color: var(--signal);
  min-width: 4ch;
  text-align: right;
}

/* ---- page transition wipe ----------------------------------------- */

.wipe {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: var(--signal);
  transform: translateY(101%);
  pointer-events: none;
}

/* arrival cover: painted by CSS from the very first frame (an inline
   head script sets .arriving before paint), so the incoming page can
   never flash its content before the red panel is up */
html.arriving::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 360;
  background: var(--signal);
  transform: translateY(0);
  pointer-events: none;
}

html.arriving.departing::before {
  transform: translateY(-101%);
  transition: transform 620ms cubic-bezier(0.83, 0, 0.17, 1);
}

/* ---- header --------------------------------------------------------- */

.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px var(--pad);
  transition: background-color 0.4s, backdrop-filter 0.4s;
}

.site-head.is-scrolled {
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-head__mark {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-head__mark sup { color: var(--signal); font-size: 9px; }

.site-head__mark-short { display: none; }

@media (max-width: 560px) {
  .site-head__mark-full { display: none; }
  .site-head__mark-short { display: inline; }
}

.site-head__nav {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
}

.site-head__nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.25s;
  position: relative;
}

.site-head__nav a:hover { color: var(--bone); }

.site-head__nav a.is-active { color: var(--signal); }

/* ---- hero ------------------------------------------------------------ */

.hero {
  position: relative;
  padding: calc(80px + 6vh) var(--pad) 0;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__meta-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  margin-bottom: auto;
  padding-bottom: 5vh;
}

.hero__meta-top .mono:nth-child(2) { text-align: center; }
.hero__meta-top .mono:nth-child(3) { text-align: right; }

.hero__title {
  position: relative;
  z-index: 3;
}

.hero__line {
  overflow: hidden;
  display: block;
}

.hero__line span {
  display: block;
  transform: translateY(112%);
  transition: transform 1.1s var(--ease-out);
}

.hero__line span.is-in { transform: none; }

[data-hero-fade] {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out);
}

[data-hero-fade].is-in {
  opacity: 1;
  translate: 0 0;
}

.hero__line--1 span { font-size: clamp(38px, 9.6vw, 150px); }
.hero__line--2 span {
  font-size: clamp(72px, 18.4vw, 288px);
  color: var(--signal);
}

.hero__tagline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 2.5vh 0 4vh;
}

.hero__role {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(18px, 3.2vw, 44px);
  color: var(--signal);
  letter-spacing: 0.02em;
}

.hero__band {
  position: relative;
  z-index: 1;
  margin: 0 calc(var(--pad) * -1);
  height: 42vh;
  overflow: hidden;
  background: var(--ink-2);
}

.hero__band figure {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero__band figure.is-on { opacity: 1; }

.hero__band img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

/* the drift runs only while a figure is active (or fading out) and is far
   longer than its time on screen, so the zoom never loops or snaps back */
.hero__band figure.is-on img,
.hero__band figure.was-on img {
  animation: bandDrift 12s linear forwards;
}

@keyframes bandDrift {
  from { transform: scale(1.02); }
  to   { transform: scale(1.12); }
}

.hero__band-caption {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 12px;
  color: var(--bone);
  mix-blend-mode: difference;
}

/* ---- marquee ----------------------------------------------------------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
  display: flex;
}

.marquee__track {
  display: flex;
  flex-shrink: 0;
  gap: 0;
  animation: marquee 28s linear infinite;
}

.marquee__track span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  padding-right: 12px;
}

.marquee__track span i {
  font-style: normal;
  color: var(--signal);
  padding-right: 12px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ---- page-title entrance ---------------------------------------------------- */

.clip { overflow: hidden; }

[data-entrance] {
  display: block;
  transform: translateY(112%);
  transition: transform 1s var(--ease-out);
}

[data-entrance].is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-entrance] { transform: none; transition: none; }
}

/* ---- sections ------------------------------------------------------------ */

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--line);
}

/* ---- featured works --------------------------------------------------------- */

.works {
  padding: 0 var(--pad) clamp(60px, 10vh, 140px);
}

.work-card {
  position: relative;
  display: block;
  margin-top: clamp(56px, 12vh, 160px);
}

.work-card__media {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}

.work-card--full .work-card__media { aspect-ratio: 21 / 9; }
.work-card--half .work-card__media { aspect-ratio: 4 / 3; }

.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
  will-change: transform;
}

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

.work-card__loop {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.work-card__loop.is-on { opacity: 1; }

.work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.6s;
}

.work-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 2px 12px;
}

.work-card__num { color: var(--signal); }

.work-card__title {
  font-size: clamp(34px, 6.4vw, 104px);
  margin-top: clamp(10px, 1.6vw, 22px);
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  flex-wrap: wrap;
  transition: color 0.3s;
}

.work-card__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(13px, 1.4vw, 20px);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--dim);
  transition: color 0.3s;
}

.work-card:hover .work-card__title { color: var(--signal); }

.work-card--half .work-card__title { font-size: clamp(26px, 4.2vw, 64px); }

/* reveal state */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* quiet fade for viewing-room stills — the clip reveal is reserved
   for the top media only */
.reveal-soft {
  opacity: 0;
  transition: opacity 1.1s ease;
}

.reveal-soft.is-in { opacity: 1; }

.reveal-media { overflow: hidden; }

.reveal-media .work-card__media,
.reveal-media.room-video,
.reveal-media.room-still {
  clip-path: inset(6% 4% 6% 4%);
  transition: clip-path 1.2s var(--ease-out);
}

.reveal-media.is-in .work-card__media,
.reveal-media.is-in.room-video,
.reveal-media.is-in.room-still {
  clip-path: inset(0 0 0 0);
}

/* two-up layout */
.works__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: start;
}

.works__row .work-card:nth-child(2) {
  margin-top: clamp(120px, 24vh, 300px);
}

/* ---- red index panel ------------------------------------------------------ */

.index-panel {
  display: block;
  background: var(--signal);
  color: var(--ink);
  padding: clamp(48px, 10vh, 120px) var(--pad);
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s;
}

.index-panel:hover { background: #F3430F; }

.index-panel__label { color: rgba(13, 12, 10, 0.65); }

.index-panel__title {
  font-size: clamp(56px, 13vw, 220px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.index-panel__arrow {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 120px);
  transition: transform 0.5s var(--ease-out);
  display: inline-block;
}

.index-panel:hover .index-panel__arrow { transform: translateX(18px); }

.index-panel__foot {
  margin-top: clamp(24px, 5vh, 56px);
  display: flex;
  justify-content: space-between;
  color: rgba(13, 12, 10, 0.65);
}

/* ---- footer ------------------------------------------------------------------ */

.site-foot {
  padding: clamp(64px, 14vh, 160px) var(--pad) 28px;
  border-top: 1px solid var(--line);
}

.site-foot__contact {
  display: block;
  font-size: clamp(44px, 10vw, 170px);
  transition: color 0.3s;
}

.site-foot__contact:hover { color: var(--signal); }

.site-foot__grid {
  margin-top: clamp(40px, 8vh, 90px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-foot__grid a { transition: color 0.25s; }
.site-foot__grid a:hover { color: var(--signal); }

/* ================================================================
   INDEX OF WORKS (archive.html)
   ================================================================ */

.archive-head {
  padding: calc(90px + 8vh) var(--pad) 4vh;
}

.archive-head__title {
  font-size: clamp(52px, 13vw, 220px);
}

.archive-head__title em {
  font-style: normal;
  color: var(--signal);
}

.archive-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 32px;
  padding: 16px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
}

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.archive-views {
  display: flex;
  gap: 18px;
  flex-shrink: 0;
}

.archive-views button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.25s;
}

.archive-views button:hover { color: var(--bone); }
.archive-views button.is-active { color: var(--signal); }

.archive-filters button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.25s;
  padding: 4px 0;
}

.archive-filters button:hover { color: var(--bone); }

.archive-filters button.is-active { color: var(--signal); }

.archive-filters button sup { font-size: 8px; margin-left: 3px; }

.archive-list { padding-bottom: 12vh; }

.archive-list.is-hidden,
.archive-grid.is-hidden,
.grid-card.is-hidden { display: none; }

/* ---- grid view --------------------------------------------------------- */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px) var(--gutter);
  padding: clamp(28px, 5vh, 64px) var(--pad) 12vh;
}

.grid-card { display: block; }

.grid-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink-2);
}

.grid-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.1s var(--ease-out);
  will-change: transform;
}

.grid-card:hover .grid-card__media img { transform: scale(1); }

.grid-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 2px 6px;
}

.grid-card__meta .num { color: var(--signal); }

.grid-card__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(19px, 1.9vw, 27px);
  line-height: 1;
  transition: color 0.3s;
  display: flex;
  align-items: baseline;
  gap: 0.45em;
  flex-wrap: wrap;
}

.grid-card:hover .grid-card__name { color: var(--signal); }

.grid-card__name small {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--dim);
}

@media (max-width: 1100px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .archive-grid { grid-template-columns: 1fr; gap: 40px var(--gutter); }
}

.archive-row {
  display: grid;
  grid-template-columns: 5ch 1.2fr 1fr 0.6fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color 0.25s, color 0.25s;
}

.archive-row:first-child { border-top: 1px solid var(--line); }

.archive-row__num { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }

.archive-row__client {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1;
}

.archive-row__title {
  font-weight: 300;
  font-size: clamp(13px, 1.3vw, 17px);
  color: var(--dim);
  transition: color 0.25s;
}

.archive-row__cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: right;
  transition: color 0.25s;
}

.archive-row:hover {
  background: var(--signal);
  color: var(--ink);
}

.archive-row:hover .archive-row__num,
.archive-row:hover .archive-row__title,
.archive-row:hover .archive-row__cat { color: var(--ink); }

.archive-row.is-hidden { display: none; }

/* floating preview */
.archive-preview {
  position: fixed;
  z-index: 90;
  width: min(340px, 26vw);
  aspect-ratio: 16 / 10;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}

.archive-preview.is-on { opacity: 1; transform: scale(1); }

.archive-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
}

@media (hover: none) { .archive-preview { display: none; } }

/* ================================================================
   VIEWING ROOM (work.html)
   ================================================================ */

.room-head {
  padding: calc(90px + 7vh) var(--pad) 5vh;
}

.room-head__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3vh;
}

.room-head__client {
  font-size: clamp(44px, 10.5vw, 190px);
  overflow: hidden;
}

.room-head__client span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}

.room-head__client span.is-in { transform: none; }

.room-head__title {
  margin-top: 2vh;
  font-weight: 300;
  font-size: clamp(16px, 2.2vw, 28px);
  color: var(--dim);
}

.room-media {
  padding: 0 var(--pad);
}

.room-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.room-video img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.5s, transform 1.2s var(--ease-out);
}

.room-video:hover img { opacity: 0.55; transform: scale(1.02); }

.room-video iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.room-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  width: 100%;
}

.room-video__ring {
  width: clamp(72px, 8vw, 110px);
  height: clamp(72px, 8vw, 110px);
  border: 1px solid var(--bone);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.35s, border-color 0.35s, transform 0.35s var(--ease-out);
}

.room-video__ring svg { display: block; margin-left: 3px; }
.room-video__ring svg path { fill: var(--bone); transition: fill 0.35s; }

.room-video__play:hover .room-video__ring {
  background: var(--signal);
  border-color: var(--signal);
  transform: scale(1.08);
}

.room-video__play:hover .room-video__ring svg path { fill: var(--ink); }

/* stills */
.room-stills {
  padding: clamp(40px, 8vh, 100px) var(--pad) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.room-still {
  overflow: hidden;
  background: var(--ink-2);
}

.room-still img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* repeating 4-still pattern: full / half+half / two-thirds+third */
.room-still:nth-child(6n + 1) { grid-column: span 12; }
.room-still:nth-child(6n + 2) { grid-column: span 6; }
.room-still:nth-child(6n + 3) { grid-column: span 6; margin-top: clamp(32px, 8vh, 96px); }
.room-still:nth-child(6n + 4) { grid-column: 2 / span 7; }
.room-still:nth-child(6n + 5) { grid-column: 9 / span 4; align-self: end; }
.room-still:nth-child(6n + 6) { grid-column: 4 / span 6; }

/* credits */
.room-credits {
  margin-top: clamp(56px, 12vh, 150px);
  padding: 0 var(--pad);
}

.room-credits__grid {
  border-top: 1px solid var(--line);
  margin-top: 14px;
}

.credit-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}

.credit-row .role { color: var(--dim); }

/* prev / next */
.room-nav {
  margin-top: clamp(64px, 14vh, 170px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.room-nav a {
  padding: clamp(32px, 6vh, 64px) var(--pad);
  transition: background-color 0.3s, color 0.3s;
}

.room-nav a + a { border-left: 1px solid var(--line); text-align: right; }

.room-nav a:hover { background: var(--signal); color: var(--ink); }

.room-nav a:hover .mono--dim { color: var(--ink); }

.room-nav__name {
  display: block;
  margin-top: 10px;
  font-size: clamp(24px, 4.4vw, 64px);
}

/* ================================================================
   ABOUT (about.html)
   ================================================================ */

.about-head {
  padding: calc(90px + 8vh) var(--pad) 0;
}

.about-head__title { font-size: clamp(52px, 13vw, 220px); }
.about-head__title em { font-style: normal; color: var(--signal); }

.about-body {
  padding: clamp(40px, 9vh, 110px) var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 72px);
}

.about-body__lead {
  grid-column: 1 / -1;
  font-weight: 300;
  font-size: clamp(22px, 3.1vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.about-body__lead em { font-style: normal; color: var(--signal); }

.about-body p:not(.about-body__lead) {
  font-weight: 300;
  font-size: clamp(14px, 1.25vw, 17px);
  color: var(--dim);
  max-width: 46ch;
}

.about-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.about-strip__cell {
  padding: 22px var(--pad);
}

.about-strip__cell + .about-strip__cell { border-left: 1px solid var(--line); }

.about-strip__cell b {
  display: block;
  font-weight: 500;
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.clients-wall {
  padding: clamp(48px, 10vh, 120px) var(--pad);
}

.clients-wall__grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.clients-wall__grid figure {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12% 13% 19%;
}

.clients-wall__grid img {
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}

.clients-wall__grid figure:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* client name on hover */
.clients-wall__grid figure::after {
  content: attr(data-name);
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  pointer-events: none;
}

.clients-wall__grid figure:hover::after {
  opacity: 1;
  transform: none;
}

/* ================================================================
   CONTACT (contact.html)
   ================================================================ */

.contact-head {
  padding: calc(90px + 8vh) var(--pad) 4vh;
}

.contact-head__title { font-size: clamp(52px, 13vw, 220px); }
.contact-head__title em { font-style: normal; color: var(--signal); }

.contact-body {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 6vw, 100px);
  padding: clamp(32px, 7vh, 80px) var(--pad) clamp(60px, 12vh, 140px);
  border-top: 1px solid var(--line);
  align-items: start;
}

.contact-col-title {
  display: block;
  color: var(--bone);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.contact-col-title em {
  font-style: normal;
  color: var(--signal);
  margin-right: 10px;
}

.contact-form-wrap {
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: clamp(22px, 3vw, 42px);
}

.contact-form-wrap .contact-col-title { border-bottom: 0; padding-bottom: 6px; margin-bottom: 0; }

.contact-form-intro {
  font-weight: 300;
  color: var(--dim);
  font-size: 15px;
  margin-bottom: 28px;
}

.contact-info__block {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-info__big {
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: 0.01em;
  transition: color 0.25s;
  overflow-wrap: anywhere;
}

a.contact-info__big:hover { color: var(--signal); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px clamp(20px, 2.5vw, 40px);
  align-content: start;
}

.contact-form .hp { display: none; }

.field-opt { color: var(--dim); text-transform: none; letter-spacing: 0; }

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field--full { grid-column: 1 / -1; }

.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  padding: 8px 0 12px;
  border-radius: 0;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238E897E'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

.field select option { background: var(--ink-2); color: var(--bone); }

.field textarea { resize: vertical; min-height: 96px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--signal);
}

.contact-form__send {
  grid-column: 1 / -1;
  justify-self: start;
  display: flex;
  align-items: baseline;
  gap: 18px;
  background: var(--signal);
  color: var(--ink);
  padding: 14px 30px 16px;
  transition: background-color 0.3s, transform 0.4s var(--ease-out);
}

.contact-form__send .display { font-size: clamp(22px, 2.4vw, 32px); }

.contact-form__send:hover { background: #F3430F; transform: translateX(6px); }

.contact-form__send:disabled { opacity: 0.6; }

.contact-form__note { grid-column: 1 / -1; min-height: 1em; }

/* ================================================================
   TERMS (terms.html) — standalone info page, same editorial shell
   ================================================================ */

.terms-head {
  padding: calc(78px + 5vh) var(--pad) 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(22px, 4vh, 36px);
  text-align: center;
}

.terms-head__title {
  font-size: clamp(26px, 3.3vw, 44px);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-top: 12px;
}
.terms-head__title em { font-style: normal; color: var(--signal); }

.terms-wrap {
  padding: clamp(28px, 5vh, 56px) var(--pad) clamp(60px, 12vh, 130px);
  display: grid;
  grid-template-columns: minmax(0, 660px);
  justify-content: center;
  text-align: center;
}

.terms-block + .terms-block { margin-top: clamp(34px, 6vh, 60px); }

.terms-block__label {
  display: block;
  font-size: 11px;
  padding-bottom: 12px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
}

.terms-block__label em { font-style: normal; color: var(--signal); margin-right: 10px; }

.terms-list { list-style: none; }

.terms-list li {
  font-weight: 300;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  color: color-mix(in srgb, var(--bone) 90%, var(--ink));
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.terms-foot-note {
  margin: clamp(34px, 6vh, 60px) auto 0;
  max-width: 52ch;
  color: var(--dim);
  font-weight: 300;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.7;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 760px) {
  .works__row { grid-template-columns: 1fr; }
  .works__row .work-card:nth-child(2) { margin-top: clamp(56px, 12vh, 160px); }
  .work-card--half .work-card__media { aspect-ratio: 16 / 10; }

  .archive-row { grid-template-columns: 4ch 1fr auto; }
  .archive-row__title { display: none; }

  .room-still:nth-child(6n + 2),
  .room-still:nth-child(6n + 3),
  .room-still:nth-child(6n + 4),
  .room-still:nth-child(6n + 5),
  .room-still:nth-child(6n + 6) {
    grid-column: span 12;
    margin-top: 0;
  }

  .room-nav { grid-template-columns: 1fr; }
  .room-nav a + a { border-left: 0; border-top: 1px solid var(--line); text-align: left; }

  .contact-body { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }

  .about-body { grid-template-columns: 1fr; }
  .about-strip { grid-template-columns: 1fr; }
  .about-strip__cell + .about-strip__cell { border-left: 0; border-top: 1px solid var(--line); }

  .hero { min-height: 78vh; }
  .hero__band { height: 30vh; }
  .hero__meta-top { flex-wrap: wrap; }
  .hero__meta-top .mono:nth-child(2) { display: none; }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .hero__band img { animation: none; }
  .reveal, .reveal-soft, .reveal-media .work-card__media, .reveal-media.room-video, .reveal-media.room-still {
    opacity: 1; transform: none; clip-path: none;
    transition: none;
  }
  .hero__line span, .room-head__client span { transform: none; transition: none; }
  [data-hero-fade] { opacity: 1; translate: none; transition: none; }
  .cursor { display: none; }
}
