/* Tor Nyman — casting director. One stylesheet, no framework.
   Dark like a screening room; the newsletter is the one paper-coloured band. */

@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('../fonts/inter-tight-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0c0b;
  --bg-raised: #191714;
  --fg: #f2ece2;
  --fg-muted: #b3aca1;
  --fg-faint: #8f887e;
  --line: rgb(242 236 226 / 0.14);
  --accent: #ff5135; /* the camera's tally light */
  --paper: #efe8dc;
  --ink: #15130f;
  --ink-muted: #5b544b;

  --serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 92rem;
  --section: clamp(5rem, 12vw, 10rem);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  /* The page never scrolls or bounces sideways, even when a swipe runs off the end of a strip that does. Set on
     <html>, so it applies to the page itself; clip (where supported) clips without making a scroll container. */
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
@supports (overflow-x: clip) {
  html,
  body { overflow-x: clip; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-x: none;
}

/* Film grain over everything, very faint. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  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");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
em, i { font-style: italic; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ——— Header ——— */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  padding-top: max(1rem, env(safe-area-inset-top));
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgb(13 12 11 / 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.5vw, 2rem);
}
.nav a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--fg); }
.nav .nav__cta {
  color: var(--fg);
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.nav .nav__cta:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

@media (max-width: 30rem) {
  .nav li:nth-child(1),
  .nav li:nth-child(2) { display: none; }
}

/* ——— Hero: a wall of the posters, through a viewfinder ——— */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__wall {
  position: absolute;
  inset: -12vh -4vw;
  z-index: -3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1.2vw, 1rem);
  transform: rotate(-4deg);
}
.wall__col:nth-child(n + 4) { display: none; }
@media (min-width: 44rem) {
  .hero__wall { grid-template-columns: repeat(4, 1fr); }
  .wall__col:nth-child(4) { display: block; }
}
@media (min-width: 69rem) {
  .hero__wall { grid-template-columns: repeat(6, 1fr); }
  .wall__col:nth-child(n) { display: block; }
}

.wall__track {
  animation: wall-scroll 140s linear infinite;
}
.wall__col:nth-child(even) .wall__track {
  animation-direction: reverse;
  animation-duration: 170s;
}
.wall__col:nth-child(even) { margin-top: -18%; }
.wall__track img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  margin-bottom: clamp(0.5rem, 1.2vw, 1rem); /* margins, not gap, so half the strip is exactly one loop */
  border-radius: 2px;
  background: var(--bg-raised);
  filter: grayscale(0.45) contrast(1.05) brightness(0.8);
}
@keyframes wall-scroll {
  to { transform: translateY(-50%); }
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 30% 70%, rgb(13 12 11 / 0.55), transparent 70%),
    linear-gradient(to bottom, rgb(13 12 11 / 0.7) 0%, rgb(13 12 11 / 0.45) 35%, rgb(13 12 11 / 0.75) 75%, var(--bg) 100%);
}
@media (max-width: 44rem) {
  /* Posters are bigger relative to the screen on a phone: hold them further back. */
  .hero__shade { background-color: rgb(13 12 11 / 0.3); }
}

/* Viewfinder frame lines in the corners. */
.hero__frame {
  position: absolute;
  inset: clamp(4.5rem, 9vh, 6rem) var(--gutter) clamp(1rem, 3vh, 2rem);
  z-index: -1;
  pointer-events: none;
}
.hero__frame i {
  position: absolute;
  width: clamp(1.25rem, 3vw, 2.25rem);
  aspect-ratio: 1;
  border: 0 solid rgb(242 236 226 / 0.55);
}
.hero__frame i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hero__frame i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hero__frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.hero__frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.hero__content {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 calc(var(--gutter) + clamp(0.75rem, 2vw, 1.75rem)) clamp(3.5rem, 9vh, 6rem);
}

.hero__kicker {
  color: var(--fg);
  margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4.5rem, 19vw, 19rem);
  line-height: 0.82;
  letter-spacing: -0.025em;
  margin-left: -0.04em;
  text-wrap: balance;
}
.hero__title em { color: var(--fg); }

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: clamp(1.25rem, 3vh, 2.25rem);
}
.hero__lede {
  max-width: 26rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.45;
  color: var(--fg);
}
.hero__cue {
  color: var(--fg);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}
.hero__cue:hover { border-color: var(--fg); }

.hero__rec {
  position: absolute;
  top: calc(clamp(4.5rem, 9vh, 6rem) + 0.9rem);
  right: calc(var(--gutter) + 1rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.rec-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.75rem var(--accent);
  animation: rec-blink 1.2s steps(1, end) infinite;
}
@keyframes rec-blink {
  50% { opacity: 0.15; }
}

/* ——— Sections ——— */

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }

.section__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section__label { color: var(--fg-muted); }
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.section__note { color: var(--fg-muted); }

@media (min-width: 56rem) {
  .section__head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .section__head .section__label { grid-column: 1 / -1; }
}

/* ——— About ——— */

.about .section__label { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }

.about__lead {
  max-width: 22ch;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5.6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.about__grid {
  display: grid;
  gap: 3rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 56rem) {
  .about__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(3rem, 8vw, 8rem);
  }
}

.about__text {
  display: grid;
  gap: 1.1em;
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--fg-muted);
}
.about__text i { color: var(--fg); }

.facts { border-top: 1px solid var(--line); align-self: start; }
.facts > div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding-top: 0.2rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
}
@media (max-width: 40rem) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .stat:last-child { grid-column: 1 / -1; } /* the year range needs the full width */
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--fg);
}
.stat__value {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 8vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}
.stat__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ——— Selected work ——— */

.features {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 22rem);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 1.5rem;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.feature { scroll-snap-align: start; }

@media (min-width: 56rem) {
  .features {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(3rem, 5vw, 5rem) clamp(1.25rem, 2.5vw, 2.5rem);
    overflow: visible;
    margin-inline: 0;
    padding: 0;
  }
  .feature:nth-child(3n + 2) { margin-top: 5rem; }
  .feature:nth-child(3n + 3) { margin-top: 10rem; }
}

.feature__link {
  position: relative; /* holds its screen-reader text: otherwise, inside the scrolling strip, it widens the page */
  display: block;
  text-decoration: none;
}
.feature__poster {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-raised);
  margin-bottom: 1.25rem;
}
.feature__poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.9);
}
.feature__link:hover .feature__poster img,
.feature__link:focus-visible .feature__poster img {
  transform: scale(1.04);
  filter: saturate(1.05);
}
.feature__index {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.5rem;
  background: rgb(13 12 11 / 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.feature__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.feature__title em {
  display: block;
  margin-top: 0.15em;
  font-size: 0.6em;
  color: var(--fg-muted);
}
.feature__meta {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.feature__by,
.feature__cast {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--fg-muted);
}
.feature__by { margin-top: 0.75rem; color: var(--fg); }
.feature__cast span { color: var(--fg-faint); }
.feature__note {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--fg);
}
.feature__note::before {
  content: '';
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.38em;
  border-radius: 50%;
  background: var(--accent);
}

/* ——— Filmography ——— */

.toolbar {
  display: none; /* filtering needs the script; without it the full list simply shows */
}
.js .toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.filter button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: none;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.filter button:hover { border-color: var(--fg-muted); }
.filter button[aria-pressed='true'] {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
@media (max-width: 40rem) {
  /* On a phone each group is one row you can swipe, instead of chips wrapping over six lines. */
  .js .toolbar,
  .filters { gap: 0.6rem; }
  .filters { width: 100%; }
  .filter {
    flex-wrap: nowrap;
    overscroll-behavior-x: contain;
    width: calc(100% + 2 * var(--gutter));
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .filter::-webkit-scrollbar { display: none; }
  .filter button { flex: none; }
}
.filter__n {
  font-family: var(--mono);
  font-size: 0.68rem;
  opacity: 0.6;
}

.filmography__count {
  margin-bottom: 1.5rem;
  min-height: 1.4em;
}
.filmography__empty {
  padding: 3rem 0;
  color: var(--fg-muted);
}

/* Poster grid (default) */
.credits[data-view='grid'] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 45%), 1fr));
  gap: 2.25rem clamp(0.75rem, 1.5vw, 1.25rem);
}
.credit[hidden] { display: none; }

.credit__link {
  position: relative;
  display: block;
  text-decoration: none;
  height: 100%;
}
.credit__poster {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-raised);
}
.credit__poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.4s;
}
.credit__year,
.credit__format,
.credit__role {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.credit__title { display: block; }
.credit__name {
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.3;
}
.credit__alt {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--fg-muted);
}
.credit__info { display: none; }
.credit__go {
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s, transform 0.3s var(--ease);
}

.credits[data-view='grid'] .credit__year { margin: 0.85rem 0 0.3rem; }
.credits[data-view='grid'] .credit__alt { display: block; }
.credits[data-view='grid'] .credit__format { display: none; }
.credits[data-view='grid'] .credit__role { margin-top: 0.4rem; color: var(--fg-muted); }
.credits[data-view='grid'] .credit__go { display: none; }
.credits[data-view='grid'] .credit__link:hover .credit__poster img,
.credits[data-view='grid'] .credit__link:focus-visible .credit__poster img {
  transform: scale(1.05);
}
.credits[data-view='grid'] .credit__link:hover .credit__name { text-decoration: underline; }

/* List */
.credits[data-view='list'] { border-bottom: 1px solid var(--line); }
.credits[data-view='list'] .credit__link {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  grid-template-areas:
    'poster title'
    'poster meta';
  column-gap: 1rem;
  row-gap: 0.25rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  transition: background-color 0.2s;
}
.credits[data-view='list'] .credit__poster { grid-area: poster; width: 3.25rem; }
.credits[data-view='list'] .credit__title { grid-area: title; align-self: end; }
.credits[data-view='list'] .credit__year,
.credits[data-view='list'] .credit__format,
.credits[data-view='list'] .credit__role {
  grid-area: meta;
  align-self: start;
}
.credits[data-view='list'] .credit__format,
.credits[data-view='list'] .credit__role { display: none; }
.credits[data-view='list'] .credit__year::after {
  content: ' · ' attr(data-role-label);
}
.credits[data-view='list'] .credit__go { display: none; }

@media (min-width: 56rem) {
  .credits[data-view='list'] .credit__link {
    grid-template-columns: 3.5rem 6.5rem minmax(0, 1fr) 9rem 11rem 1.5rem;
    grid-template-areas:
      'poster year title format role go'
      'poster year info format role go';
    column-gap: 1.5rem;
    padding: 0.75rem 0.75rem 0.75rem 0;
  }
  .credits[data-view='list'] .credit__poster { width: 3.5rem; }
  .credits[data-view='list'] .credit__year { grid-area: year; align-self: center; }
  .credits[data-view='list'] .credit__year::after { content: none; }
  .credits[data-view='list'] .credit__info {
    grid-area: info;
    align-self: start;
    display: block;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--fg-faint);
  }
  .credits[data-view='list'] .credit__format { display: block; grid-area: format; align-self: center; }
  .credits[data-view='list'] .credit__role { display: block; grid-area: role; align-self: center; color: var(--fg-muted); }
  .credits[data-view='list'] .credit__go { display: block; grid-area: go; justify-self: end; }
  .credits[data-view='list'] .credit__link:hover { background: var(--bg-raised); }
  .credits[data-view='list'] .credit__link:hover .credit__go,
  .credits[data-view='list'] .credit__link:focus-visible .credit__go {
    opacity: 1;
    transform: translate(2px, -2px);
  }
}
.credits[data-view='list'] .credit__title { display: block; }
.credits[data-view='list'] .credit__alt { margin-left: 0.35rem; }

/* ——— Contact ——— */

.contact__title {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--fg-muted);
}
.contact__email {
  display: inline-block;
  margin-top: 0.5rem;
  max-width: 100%;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 9.5vw, 8.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease), color 0.3s;
}
.contact__email:hover,
.contact__email:focus-visible {
  background-size: 100% 1px;
}

.contact__grid {
  display: grid;
  gap: 3rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}
@media (min-width: 56rem) {
  .contact__grid { grid-template-columns: 1fr 1fr; }
}
.contact__details { border-top: 1px solid var(--line); }
.contact__details > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}
.contact__details dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding-top: 0.3rem;
}
.contact__details a { text-decoration: none; }
.contact__details a:hover { text-decoration: underline; }
.contact__subtitle { font-weight: 400; margin-bottom: 0.75rem; }

.socials { border-top: 1px solid var(--line); }
.socials a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.1;
  text-decoration: none;
  transition: padding 0.4s var(--ease), color 0.2s;
}
.socials a span {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.socials a:hover { padding-left: 0.75rem; }
.socials a:hover span { transform: translate(2px, -2px); }

/* ——— Newsletter: the one light band ——— */

.newsletter {
  background: var(--paper);
  color: var(--ink);
  padding-block: clamp(4.5rem, 10vw, 8rem);
  color-scheme: light;
}
.newsletter ::selection { background: var(--ink); color: var(--paper); }
.newsletter :focus-visible { outline-color: var(--ink); }
.newsletter .label { color: var(--ink-muted); }

.newsletter__inner {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 56rem) {
  .newsletter__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: end;
  }
}
.newsletter__copy { display: grid; gap: 1rem; max-width: 34rem; }
.newsletter__copy p:last-child { font-size: 1.1rem; color: var(--ink-muted); }
.newsletter__title {
  text-wrap: balance;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.newsletter__form {
  display: grid;
  gap: 1.25rem;
}
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field__optional { text-transform: none; letter-spacing: 0; }
.field input {
  width: 100%;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1.35rem/1.3 var(--sans);
  transition: border-color 0.2s;
}
.field input:focus { outline: none; border-bottom-width: 2px; padding-bottom: calc(0.65rem - 1px); }
.field input[aria-invalid='true'] { border-bottom-color: #b3261e; }
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.button span { transition: transform 0.3s var(--ease); }
.button:hover span { transform: translateX(3px); }
.button:active { transform: scale(0.98); }
.button[disabled] { opacity: 0.6; cursor: progress; }

.newsletter__status {
  margin-top: -0.5rem;
  font-size: 0.98rem;
}
.newsletter__status:empty { display: none; }
.newsletter__status[data-tone='error'] { color: #b3261e; }
.newsletter__status[data-tone='ok'] { color: var(--ink); font-weight: 500; }
.newsletter__privacy { font-size: 0.85rem; color: var(--ink-muted); }

/* ——— Footer ——— */

.site-footer {
  padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--fg-faint);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.site-footer a { color: var(--fg-muted); }
.site-footer .label { text-decoration: none; }

/* ——— Reveal on scroll (only when the script runs) ——— */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall__track,
  .rec-dot { animation: none; }
  .js [data-reveal] { transform: none; transition: opacity 0.4s linear; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; }
}
