/* ==========================================================================
   layout.css  |  chapters
   ========================================================================== */

main { position: relative; z-index: 1; }

.shell,
.craft, .honors, .creed, .contact__inner {
  padding-inline: var(--gutter);
  padding-left: max(var(--gutter), var(--rail-w));
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(5rem, 11vh, 8rem) var(--gutter) clamp(4.5rem, 11vh, 7.5rem);
  text-align: center;
  overflow: hidden;
}

.hero__stage {
  position: relative;
  width: min(100%, 54rem);
  --p: 0;
  transform: translate3d(0, calc(var(--p) * -6vh), 0) scale(calc(1 + var(--p) * 0.06));
  opacity: calc(1 - var(--p) * 0.85);
  will-change: transform, opacity;
}

.cut--hero .cut__img { max-height: min(50svh, 30rem); object-fit: contain; }
.cut--hero .cut__aura { width: 132%; height: 138%; filter: blur(52px) saturate(130%); }

.hero__type {
  position: relative;
  z-index: 4;
  width: 100%;
  /* Pulls the name up into the fade at the base of the subject */
  margin-top: clamp(-3.6rem, -4.4vh, -1.4rem);
}

/* Quiets whatever sits behind the letters without touching the photograph */
.hero__type::before {
  content: "";
  position: absolute;
  inset: -46% -14% -80%;
  z-index: -1;
  background: radial-gradient(56% 58% at 50% 44%,
    rgba(6, 6, 7, 0.80) 0%,
    rgba(6, 6, 7, 0.44) 46%,
    transparent 76%);
}

.hero__name {
  font-size: var(--fs-hero);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.034em;
  line-height: 0.9;
}

.hero__role {
  margin-top: clamp(1rem, 2.4vh, 1.7rem);
  font-size: clamp(0.62rem, 1.4vw, 0.74rem);
  font-weight: 400;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.3em;
  color: var(--gold);
}

/* Editorial corners */
.hero__corner {
  position: absolute;
  bottom: clamp(4.5rem, 11vh, 7.5rem);
  display: none;
  gap: 0.2rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-22);
  line-height: 1.9;
}
.hero__corner span { display: block; }
.hero__corner--l { left: max(var(--gutter), var(--rail-w)); text-align: left; }
.hero__corner--r { right: var(--gutter); text-align: right; }

@media (min-width: 64rem) { .hero__corner { display: grid; } }

/* Scroll cue */
.cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.1rem, 3vh, 2.2rem);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  opacity: 0;
  transition: opacity var(--t-3) ease 700ms;
  z-index: 4;
}
.hero.is-ready .cue { opacity: 1; }

.cue__rule {
  width: 1px;
  height: clamp(2.2rem, 5vh, 3.4rem);
  background: linear-gradient(to bottom, transparent, var(--gold-40) 45%, transparent);
  animation: cue-pulse 3400ms var(--ease-soft) infinite;
}
.cue__word {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-22);
  transition: color var(--t-1) ease;
}
.cue:hover .cue__word { color: var(--gold); }

/* --------------------------------------------------------------------------
   01 Film
   -------------------------------------------------------------------------- */

.film {
  position: relative;
  height: 210vh;
}

.film__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.9rem, 2.2vh, 1.6rem);
  /* Symmetric padding so the frame lands on the true centre of the viewport */
  padding: clamp(4.2rem, 9.5vh, 6.5rem) var(--gutter) clamp(3rem, 7vh, 4.5rem);
}

/* Labels ride the page grid, the frame is centred in the field */
.film__chapter,
.film__caption {
  justify-self: start;
  margin-left: calc(max(var(--gutter), var(--rail-w)) - var(--gutter));
}

.film__frame {
  position: relative;
  justify-self: center;
  height: 100%;
  width: auto;
  aspect-ratio: 9 / 16;
  max-width: min(94vw, 32rem);
  overflow: hidden;
  background: var(--ink-800);
  --p: 1;
  transform: scale(calc(0.93 + 0.07 * var(--p)));
  clip-path: inset(calc((1 - var(--p)) * 47%) 0 calc((1 - var(--p)) * 47%) 0);
  will-change: transform, clip-path;
}

/* Aura around the frame, breathing like the cutouts do */
.film__glow {
  position: absolute;
  inset: -14%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(50% 46% at 50% 50%, rgba(201, 168, 106, 0.20) 0%, transparent 72%);
  filter: blur(46px);
  animation: aura-still 14s var(--ease-soft) infinite;
}

.film__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.96);
}

/* Hairline plus the faintest gold bloom, no chunky border */
.film__edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(244, 241, 236, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(201, 168, 106, 0.08),
    0 40px 120px rgba(0, 0, 0, 0.8),
    0 0 110px rgba(201, 168, 106, 0.07);
}

.sound {
  position: absolute;
  left: 50%;
  bottom: clamp(1.1rem, 3vh, 1.8rem);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 1.25rem;
  border: 1px solid rgba(244, 241, 236, 0.18);
  background: rgba(6, 6, 7, 0.44);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color var(--t-1) ease, background-color var(--t-1) ease, transform var(--t-1) var(--ease-out);
}
.sound:hover { border-color: var(--gold-40); background: rgba(6, 6, 7, 0.66); }
.sound:active { transform: translateX(-50%) scale(0.97); }

.sound__wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}
.sound__wave i {
  width: 2px;
  height: 30%;
  background: var(--gold);
  animation: wave 1500ms var(--ease-soft) infinite;
}
.sound__wave i:nth-child(2) { animation-delay: 180ms; }
.sound__wave i:nth-child(3) { animation-delay: 360ms; }
.sound__wave i:nth-child(4) { animation-delay: 540ms; }
.sound[aria-pressed="true"] .sound__wave i { animation-play-state: paused; height: 22%; opacity: 0.45; }

.film__caption {
  font-size: var(--fs-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--paper-38);
}

/* --------------------------------------------------------------------------
   02 The Craft
   -------------------------------------------------------------------------- */

.craft { padding-block: var(--shelf); }

.craft__head { max-width: 44rem; margin-bottom: clamp(3rem, 8vw, 6rem); }
.craft__title {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  font-size: var(--fs-display);
  font-variation-settings: "opsz" 144;
}

.craft__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.craft__stage { position: relative; }
.cut--craft .cut__aura { width: 128%; height: 132%; }

.craft__body { max-width: var(--measure); }
.craft__body > p {
  color: var(--paper-58);
  line-height: 1.94;
  margin-bottom: 1.7em;
  text-wrap: pretty;
}
.craft__body > p:last-child { margin-bottom: 0; }

.craft__lede {
  font-family: var(--serif);
  font-size: var(--fs-lead);
  font-variation-settings: "opsz" 40;
  line-height: 1.56;
  letter-spacing: -0.008em;
  color: var(--paper) !important;
}
.craft__lede::first-letter {
  float: left;
  font-size: 3.1em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--gold);
}

/* Kept at the photograph's own 4:5 so nothing important is cropped away */
.plate--inset {
  position: relative;
  margin: clamp(2.4rem, 6vw, 3.6rem) 0;
  width: min(100%, 26rem);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.plate--inset img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: contrast(1.06) saturate(0.9) brightness(0.94);
}

@media (min-width: 62rem) {
  .craft__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .craft__stage { position: sticky; top: 22vh; }
}

/* --------------------------------------------------------------------------
   03 Honors
   -------------------------------------------------------------------------- */

.honors { padding-block: var(--shelf); }
.honors__head { max-width: 44rem; margin-bottom: clamp(3rem, 7vw, 5rem); }
.honors__title {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  font-size: var(--fs-display);
  font-variation-settings: "opsz" 144;
  font-variant-numeric: lining-nums;
}
.honors__lede {
  margin-top: 1.6rem;
  max-width: 44ch;
  color: var(--paper-58);
}

/* Each championship is its own campaign block */
.campaign { margin-bottom: clamp(3.5rem, 8vw, 6rem); }

.campaign__head {
  display: grid;
  gap: 0.5rem;
  padding-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.campaign__place {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.campaign__place span {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.02em;
}
.campaign__place i {
  font-style: normal;
  font-size: var(--fs-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--paper-38);
}
.campaign__event {
  font-size: clamp(0.94rem, 1.5vw, 1.06rem);
  color: var(--paper-80);
}
.campaign__date {
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-22);
}
.campaign__date em {
  font-style: normal;
  color: var(--gold);
}
.campaign__date em::before { content: "\2009\00b7\2009"; color: var(--paper-22); }

.honor {
  position: relative;
  display: grid;
  gap: 0.9rem 2.5rem;
  padding-block: clamp(1.9rem, 4vw, 3rem);
  transition: background-color var(--t-2) ease;
}

.honor__rule {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1500ms var(--ease-out);
}
.honor.is-visible .honor__rule { transform: scaleX(1); }

.honor__index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.24rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.72;
  transition: opacity var(--t-2) ease, transform var(--t-2) var(--ease-out);
}

.honor__rank {
  font-size: var(--fs-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.honor__name {
  font-size: var(--fs-title);
  font-variation-settings: "opsz" 96;
}
.honor--lead .honor__name { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }

.honor__where {
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-38);
  margin-bottom: 1rem;
}
.honor__where em {
  font-style: normal;
  color: var(--paper-58);
}
.honor__where em::before { content: "\2009\00b7\2009"; color: var(--paper-22); }

.honor__note {
  max-width: 40ch;
  font-size: 0.94rem;
  line-height: 1.82;
  color: var(--paper-58);
}

@media (hover: hover) {
  .honor:hover { background: linear-gradient(90deg, var(--gold-08), transparent 62%); }
  .honor:hover .honor__index { opacity: 1; transform: translateY(-2px); }
}

/* The list closes with a rule of its own, so it reads as a set */
.honors__list { border-bottom: 1px solid var(--line); }

@media (min-width: 56rem) {
  .honor {
    grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* Sits on the same left grid line as the lists above it, not floating mid-page */
.honors__plate {
  position: relative;
  margin: clamp(2rem, 5vw, 4rem) 0 0;
  display: grid;
  justify-items: start;
  gap: 1.5rem;
}
.cut--medal { width: min(100%, 21rem); }
.honors__plate figcaption {
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-38);
}

/* Explicit column so the caption cannot collapse into a ragged sliver */
@media (min-width: 56rem) {
  .honors__plate {
    grid-template-columns: 21rem minmax(12rem, 22rem);
    align-items: end;
    gap: 3rem;
  }
  .honors__plate figcaption { padding-bottom: 1.6rem; }
}

/* --------------------------------------------------------------------------
   04 Moments, a pinned filmstrip on desktop
   -------------------------------------------------------------------------- */

.strip { position: relative; }

.strip__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(1.2rem, 3vh, 2.2rem);
  padding: clamp(4.5rem, 10vh, 7rem) 0 clamp(2rem, 5vh, 3.2rem);
  overflow: hidden;
}

.strip__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding-inline: var(--gutter);
  padding-left: max(var(--gutter), var(--rail-w));
}
.strip__counter {
  display: flex;
  gap: 0.45rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
  color: var(--paper-38);
  font-variant-numeric: tabular-nums;
}
.strip__counter i { font-style: normal; color: var(--paper-22); }
.strip__counter span:last-of-type { color: var(--paper-22); }

.strip__viewport { position: relative; overflow: hidden; }

/* Frames dissolve at both edges instead of colliding with the rail */
.strip__viewport::before,
.strip__viewport::after {
  content: "";
  position: absolute;
  top: -1px; bottom: -1px;
  width: clamp(2rem, 9vw, 9rem);
  z-index: 3;
  pointer-events: none;
}
.strip__viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--ink-900) 12%, rgba(6,6,7,0.7) 46%, transparent 100%);
}
.strip__viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--ink-900) 6%, rgba(6,6,7,0.55) 42%, transparent 100%);
}

.strip__track {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2.2vw, 2rem);
  height: 100%;
  padding-inline: max(var(--gutter), var(--rail-w));
  will-change: transform;
}

.plate {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.95rem;
  width: clamp(13rem, 24vw, 21rem);
  transition: opacity 900ms var(--ease-soft), transform 1100ms var(--ease-out);
}

/* The frame nearest the centre of the field takes the light */
.strip.is-pinned .plate { opacity: 0.42; transform: scale(0.965); }
.strip.is-pinned .plate.is-focus { opacity: 1; transform: none; }

/* Each frame uncovers itself from the bottom as it arrives */
.plate__wipe {
  position: absolute;
  inset: -1px;
  z-index: 3;
  pointer-events: none;
  background: var(--ink-900);
  transform-origin: bottom center;
  transform: scaleY(1);
  transition: transform 1400ms var(--ease-out);
}
.plate.is-visible .plate__wipe,
.plate--inset.is-visible .plate__wipe { transform: scaleY(0); }

.plate__hit {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--line-soft);
}
.plate__hit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6,6,7,0.55) 100%);
  opacity: 0.9;
  transition: opacity var(--t-2) ease;
}
.plate__hit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.07) saturate(0.88) brightness(0.9);
  transform: scale(1.02);
  transition: transform 1400ms var(--ease-out), filter 1400ms ease;
}

@media (hover: hover) {
  .plate__hit:hover img { transform: scale(1.07); filter: contrast(1.05) saturate(1) brightness(1); }
  .plate__hit:hover::after { opacity: 0.5; }
}
.plate__hit:active img { transform: scale(1.03); }

.plate figcaption {
  display: flex;
  gap: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--paper-38);
  transition: color var(--t-2) ease;
}
.plate figcaption i {
  font-style: normal;
  color: var(--gold);
  opacity: 0.65;
  font-variant-numeric: tabular-nums;
}
.plate:hover figcaption { color: var(--paper-80); }

.strip__hint {
  padding-inline: var(--gutter);
  padding-left: max(var(--gutter), var(--rail-w));
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-22);
  transition: opacity var(--t-2) ease;
}
.strip.is-ending .strip__hint { opacity: 0; }

/* Touch and narrow: a snapping carousel instead of a pin */
@media (max-width: 61.99rem), (hover: none) {
  .strip { height: auto !important; }
  .strip__pin {
    position: static;
    height: auto;
    padding-block: var(--shelf) clamp(2rem, 5vh, 3.2rem);
  }
  .strip__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .strip__viewport::-webkit-scrollbar { display: none; }
  .strip__viewport::before,
  .strip__viewport::after { display: none; }
  .strip__track {
    transform: none !important;
    height: auto;
  }
  .plate {
    width: clamp(15rem, 82vw, 24rem);
    scroll-snap-align: center;
    grid-template-rows: auto auto;
  }
  .plate__hit { height: auto; }
  .plate__hit img { aspect-ratio: 4 / 5; }
  .strip__hint { display: none; }
}

/* --------------------------------------------------------------------------
   Philosophy
   -------------------------------------------------------------------------- */

.creed {
  position: relative;
  padding-block: clamp(8rem, 24vh, 17rem);
  text-align: center;
  overflow: hidden;
}
.creed::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(64% 56% at 50% 50%, rgba(11, 58, 48, 0.34) 0%, transparent 70%),
    linear-gradient(180deg, transparent, rgba(32, 24, 46, 0.40) 50%, transparent);
  z-index: -1;
}

/* The embrace sits behind the line about connection, barely there */
.creed__figure {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* Sized in viewport units, since a percentage height cannot resolve against a
   content-sized grid area */
.creed__aura {
  position: absolute;
  left: 50%; top: 50%;
  width: min(80vw, 46rem);
  height: min(52vh, 30rem);
  transform: translate(-50%, -52%);
  background:
    radial-gradient(40% 36% at 46% 44%, rgba(201, 168, 106, 0.20) 0%, transparent 74%),
    radial-gradient(46% 42% at 56% 58%, rgba(18, 108, 88, 0.22) 0%, transparent 76%);
  filter: blur(52px);
  animation: aura 16s var(--ease-soft) infinite;
}

.creed__figure img {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  width: auto;
  height: min(52vh, 30rem);
  object-fit: contain;
  opacity: 0.17;
  filter: grayscale(0.7) contrast(1.1) brightness(0.8) blur(1px);
  -webkit-mask-image: radial-gradient(62% 58% at 50% 50%, #000 32%, transparent 78%);
          mask-image: radial-gradient(62% 58% at 50% 50%, #000 32%, transparent 78%);
}

.creed__quote { position: relative; margin: 0; }
.creed__quote p {
  position: relative;
  max-width: 20ch;
  margin-inline: auto;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 6.4vw, 4.8rem);
  font-variation-settings: "opsz" 144;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

/* A band of light crossing the quote. Kept as its own layer so the text stays
   ordinary text, which background-clip would have made invisible. */
.creed__quote::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -30%;
  width: 28%;
  background: linear-gradient(100deg, transparent, rgba(226, 202, 160, 0.14) 50%, transparent);
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: creed-sweep 11s var(--ease-soft) infinite;
}

@keyframes creed-sweep {
  0%, 14% { transform: translateX(0); opacity: 0; }
  22% { opacity: 0.7; }
  66% { opacity: 0.7; }
  76%, 100% { transform: translateX(565%); opacity: 0; }
}
.creed__quote cite {
  display: block;
  margin-top: clamp(2rem, 5vh, 3.2rem);
  font-style: normal;
  font-size: var(--fs-micro);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   05 Contact
   -------------------------------------------------------------------------- */

.contact {
  position: relative;
  overflow: hidden;
}

/* A band across the top of the chapter only. The form never sits on a photo. */
.contact__bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(58vh, 32rem);
  z-index: -1;
}
/* A soft photographic band, not a full bleed. It fades in under the quote and
   out again before the form, so nothing competes with the fields. */
.contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: grayscale(0.5) contrast(1.18) brightness(0.4) saturate(0.66);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 56%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 56%, transparent 100%);
}
.contact__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent          0%,
    rgba(6, 6, 7, 0.30) 26%,
    rgba(6, 6, 7, 0.58) 58%,
    rgba(6, 6, 7, 0.86) 88%,
    var(--ink-900)     100%);
}

.contact__inner {
  padding-block: clamp(4rem, 9vh, 7rem) var(--shelf);
  max-width: 72rem;
}

.contact__head { max-width: 40rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.contact__title {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  font-size: var(--fs-display);
  font-variation-settings: "opsz" 144;
}
.contact__lede {
  margin-top: 1.6rem;
  max-width: 38ch;
  color: var(--paper-58);
}

.form {
  display: grid;
  gap: clamp(1.6rem, 3.4vw, 2.4rem);
  max-width: 46rem;
}

.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  padding: 1.5rem 0 0.7rem;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--paper);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
}
.field input:focus,
.field textarea:focus { outline: none; }

.field label {
  position: absolute;
  left: 0; top: 1.4rem;
  font-size: 0.9rem;
  color: var(--paper-38);
  pointer-events: none;
  transform-origin: left top;
  transition: transform var(--t-1) var(--ease-out), color var(--t-1) ease;
}
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.35rem) scale(0.72);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.field__rule {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.field__rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-3) var(--ease-out);
}
.field:focus-within .field__rule::after { transform: none; }
.field:focus-within { box-shadow: 0 22px 40px -34px rgba(201,168,106,0.55); }

.field input:user-invalid ~ .field__rule,
.field textarea:user-invalid ~ .field__rule { background: rgba(198, 92, 72, 0.5); }

.form .btn { justify-self: start; }
.form__status {
  font-size: var(--fs-small);
  color: var(--gold);
  min-height: 1.4em;
}

@media (min-width: 46rem) {
  .form { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 4vw, 3.5rem); }
  .field--wide, .form .btn, .form__status { grid-column: 1 / -1; }
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 4vw, 3.2rem);
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-soft);
}
.contact__links a {
  position: relative;
  display: block;
  overflow: hidden;
  font-size: var(--fs-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--paper-58);
  transition: color var(--t-1) ease;
}
.contact__links a span { display: block; transition: transform var(--t-2) var(--ease-out); }
.contact__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-2) var(--ease-out);
}
.contact__links a:hover { color: var(--paper); }
.contact__links a:hover::after { transform: none; }
.contact__links a:active span { transform: scale(0.97); }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
  place-items: center;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.2rem, 8vw, 6rem);
  background: rgba(4, 4, 5, 0.84);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  opacity: 0;
  transition: opacity var(--t-2) ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 1.3rem;
  transform: scale(0.97);
  transition: transform var(--t-2) var(--ease-out);
}
.lightbox.is-open .lightbox__figure { transform: none; }

.lightbox__figure img {
  max-width: min(90vw, 58rem);
  max-height: 74svh;
  object-fit: contain;
  border: 1px solid var(--line-soft);
}
.lightbox__figure figcaption {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-38);
}
.lightbox__figure figcaption i {
  font-style: normal;
  color: var(--paper-22);
  font-variant-numeric: tabular-nums;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--paper-58);
  transition: color var(--t-1) ease, border-color var(--t-1) ease, transform var(--t-1) var(--ease-out);
}
.lightbox__close:hover,
.lightbox__nav:hover { color: var(--gold); border-color: var(--gold-40); }
.lightbox__close:active,
.lightbox__nav:active { transform: scale(0.94); }

.lightbox__close { top: clamp(1.2rem, 3vw, 2.2rem); right: clamp(1.2rem, 3vw, 2.2rem); }
.lightbox__close::before,
.lightbox__close::after {
  content: "";
  position: absolute;
  width: 13px; height: 1px;
  background: currentColor;
}
.lightbox__close::before { transform: rotate(45deg); }
.lightbox__close::after { transform: rotate(-45deg); }

.lightbox__nav { top: 50%; margin-top: -1.5rem; }
.lightbox__nav--prev { left: clamp(0.6rem, 2.4vw, 2.2rem); }
.lightbox__nav--next { right: clamp(0.6rem, 2.4vw, 2.2rem); }
.lightbox__nav::before {
  content: "";
  width: 8px; height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}
.lightbox__nav--prev::before { transform: rotate(-135deg) translate(-1px, -1px); }
.lightbox__nav--next::before { transform: rotate(45deg) translate(-1px, -1px); }

@media (max-width: 34rem) {
  .lightbox__nav { display: none; }
}

/* --------------------------------------------------------------------------
   Phone rhythm
   The chapters are built for a wide field. On a tall narrow screen the same
   padding reads as dead space, so it is pulled in and the subjects grow.
   -------------------------------------------------------------------------- */

@media (max-width: 40rem) {
  :root { --shelf: clamp(4.5rem, 11vh, 7rem); }

  /* A landscape group shot can only ever be so tall on a narrow screen, so the
     hero is shortened to match the content instead of padding out to a full
     viewport and leaving a hole. The sliver of the next chapter invites scroll. */
  .hero {
    min-height: 88svh;
    padding: clamp(4.6rem, 11vh, 6.5rem) 0.65rem clamp(3.4rem, 8vh, 4.6rem);
  }
  .hero__stage { width: 100%; }
  .cut--hero .cut__img { max-height: 40svh; }
  .hero__name { font-size: clamp(3.2rem, 17vw, 5rem); }
  .hero__role { font-size: 0.6rem; letter-spacing: 0.24em; }
  .hero__type { margin-top: clamp(-2.4rem, -3.4vh, -1rem); }
  .cue { bottom: clamp(0.7rem, 2vh, 1.4rem); }
  .cue__rule { height: clamp(1.7rem, 4vh, 2.4rem); }

  .film { height: 190vh; }
  .film__pin {
    padding: clamp(3.6rem, 8vh, 5rem) 0.9rem clamp(1.6rem, 4vh, 2.4rem);
    gap: 0.85rem;
  }
  .film__frame { max-width: 94vw; }

  .craft__grid { gap: clamp(2rem, 5vw, 3rem); }
  .plate--inset { width: 100%; }

  .creed { padding-block: clamp(5.5rem, 16vh, 9rem); }
  .contact__bg { height: min(46vh, 24rem); }
}
