/* ==========================================================================
   Tom Hardy · hardymusic.co.uk
   Light "paper" for research, dark "stage" for music.
   ========================================================================== */

:root {
  --paper: #f4f0e8;
  --paper-2: #ece6da;
  --card: #faf8f3;
  --ink: #15171a;
  --ink-2: #3a3e42;
  --muted: #6c706f;
  --rule: #d9d1c1;

  --night: #0d0f13;
  --night-2: #14171d;
  --on-night: #ece7dc;
  --on-night-2: #c3c0b8;
  --on-night-muted: #8f949a;
  --rule-night: #272c34;

  --science: #0d7a5b;       /* [O III] 5007 green, darkened for paper */
  --science-glow: #5fd6ae;  /* the same green on dark backgrounds */
  --brass: #e2ac56;
  --brass-ink: #8a5a14;     /* brass, darkened for paper */

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  --frame: clamp(1px, 0.2vw, 4px) solid #000;  /* black print border on photos */
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }

a { color: inherit; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.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 {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 4px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section { padding-block: clamp(72px, 10vw, 140px); }

.kicker, .eyebrow, .subhead {
  font: italic 400 1.3rem/1.2 var(--serif);
}
.kicker { color: var(--muted); margin-bottom: 1rem; }
.kicker__num { font-style: normal; color: var(--science); margin-right: 0.3em; }

/* photos: square corners, black print border */
.about__photo img, .research__photo img, .directing__photo img, .gallery__item, .lightbox img {
  border: var(--frame);
  border-radius: 0;
}
/* on dark backgrounds a faint hairline keeps the black frame visible */
.music .directing__photo img, .music .gallery__item {
  box-shadow: 0 0 0 1px rgb(255 255 255 / .12);
}

.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__head h2 {
  font: 400 clamp(3.5rem, 9vw, 7.5rem)/0.88 var(--serif);
  letter-spacing: -0.015em;
}

.subhead { color: var(--muted); margin-bottom: 0.9rem; }

.lead {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink);
}

.link {
  color: var(--science);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.link:hover { text-decoration-thickness: 2px; }

/* ---------- nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  color: var(--on-night);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgb(13 15 19 / .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: rgb(255 255 255 / .07);
}

.nav__name {
  font: 400 1.5rem/1 var(--serif);
  text-decoration: none;
  opacity: 0;
  transition: opacity .3s;
}
.nav.is-solid .nav__name { opacity: 1; }

.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav__links a {
  font: 400 0.975rem/1 var(--sans);
  text-decoration: none;
  color: var(--on-night-2);
  padding-block: 8px;
  transition: color .2s;
}
.nav__links a:hover, .nav__links a[aria-current="true"] { color: #fff; }
.nav__links .nav__cv {
  border: 1px solid rgb(255 255 255 / .3);
  padding: 8px 14px;
}
.nav__links .nav__cv:hover { border-color: #fff; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block; width: 22px; height: 1.5px; margin-inline: auto;
  background: currentColor; transition: transform .25s, opacity .25s;
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -7px; }
.nav__bars::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: rgb(13 15 19 / .96);
    border-bottom: 1px solid rgb(255 255 255 / .07);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { background: rgb(13 15 19 / .96); }
  .nav.is-open .nav__name { opacity: 1; }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding-block: 14px; font-size: 1.05rem; border-bottom: 1px solid var(--rule-night); }
  .nav__links .nav__cv { border: 0; padding: 14px 0; }
}

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

.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: var(--on-night);
}

/* the same photo, stretched and heavily blurred, continues the scene to the right */
.hero__wash {
  position: absolute; inset: -80px;
  z-index: -2;
  background: url("../img/hero-blur.webp") center / 100% 100% no-repeat;
  filter: blur(38px) saturate(1.2) brightness(.92);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(13 15 19 / 0) 30%, rgb(13 15 19 / .36) 55%, rgb(13 15 19 / .58) 100%),
    linear-gradient(180deg, rgb(13 15 19 / .35) 0, rgb(13 15 19 / 0) 18%, rgb(13 15 19 / 0) 70%, rgb(13 15 19 / .55) 100%);
}

.hero__photo img {
  position: absolute; top: 0; left: 0; z-index: -1;
  height: 100%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 48%, transparent 97%);
  mask-image: linear-gradient(90deg, #000 48%, transparent 97%);
}

.hero__content {
  position: absolute; top: 0; bottom: 0; right: 0;
  left: max(70vh, 52vw);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--nav-h) clamp(24px, 6vw, 96px) 48px 0;
}

.eyebrow { color: var(--on-night-2); margin-bottom: 1.25rem; font-size: 1.4rem; }
.eyebrow__sep { color: var(--brass); margin-inline: 0.15em; }

.hero__name {
  font: 400 clamp(4rem, 9.5vw, 10rem)/0.86 var(--serif);
  letter-spacing: -0.02em;
  color: #fff;
  margin-left: -0.04em;
}

.hero__spectrum {
  width: min(100%, 560px);
  margin-top: 1.5rem;
}
.hero__spectrum .spectrum__svg { height: clamp(44px, 5.5vw, 68px); }
.hero__spectrum .spectrum__labels {
  height: 1rem;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: rgb(255 255 255 / .55);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__spectrum .spectrum__svg {
    clip-path: inset(0 100% 0 0);
    animation: draw 2.4s .35s cubic-bezier(.65, 0, .25, 1) forwards;
  }
  .hero__spectrum .spectrum__labels { opacity: 0; animation: fade-in .8s 2.2s forwards; }
}
@keyframes draw { to { clip-path: inset(0 0 0 0); } }
@keyframes fade-in { to { opacity: 1; } }

.hero__lede {
  max-width: 34ch;
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--on-night-2);
}

.hero__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.25rem; }

.pill {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.75em 1.25em;
  border: 1px solid rgb(255 255 255 / .32);
  font: 500 0.975rem/1 var(--sans);
  text-decoration: none; color: #fff;
  background: rgb(13 15 19 / .2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .2s, border-color .2s, color .2s;
}
.pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 10px var(--dot);
}
.pill--science { --dot: var(--science-glow); }
.pill--music { --dot: var(--brass); }
.pill:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* portrait screens: photo on top, blur running downward */
@media (max-aspect-ratio: 5/4) {
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  .hero__wash { background-size: cover; background-position: center 30%; }
  .hero::after {
    background: linear-gradient(180deg, rgb(13 15 19 / .3) 0, rgb(13 15 19 / 0) 14%, rgb(13 15 19 / 0) 40%, rgb(13 15 19 / .62) 72%, rgb(13 15 19 / .8) 100%);
  }
  .hero__photo img {
    position: relative;
    width: 100%; height: 66svh; min-height: 380px;
    object-fit: cover; object-position: 50% 22%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
  }
  .hero__content {
    position: relative; inset: auto;
    margin-top: -13svh;
    padding: 0 var(--gutter) 72px;
  }
  .hero__name { font-size: clamp(3.75rem, 19vw, 7rem); }
  .hero__spectrum { margin-top: 1rem; }
  .hero__lede { margin-top: 1.1rem; }
  .hero__links { margin-top: 1.5rem; }
  .eyebrow { margin-bottom: 1rem; }
}

/* ---------- about ---------- */

.about__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.about__photo { position: sticky; top: calc(var(--nav-h) + 32px); }

.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 50%;
}

.about__statement {
  font: 400 clamp(2rem, 3.6vw, 3.1rem)/1.08 var(--serif);
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.about__statement em { color: var(--brass-ink); }

.bio > p:not(.about__statement) { color: var(--ink-2); max-width: 62ch; }
.bio > p + p { margin-top: 1rem; }
.bio:not([hidden]) { animation: bio-in .35s ease; }
.bio:focus-visible { outline-offset: 8px; }
@keyframes bio-in { from { opacity: 0; transform: translateY(6px); } }

.bio-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 1.75rem;
}
.bio-bar .kicker { margin: 0; }

.bio-tabs { display: inline-flex; align-items: baseline; gap: 1.1rem; }
.bio-tabs button {
  padding: 4px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font: italic 400 1.3rem/1.1 var(--serif);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.bio-tabs button:hover { color: var(--ink); }
.bio-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--tab, var(--ink)); }
.about[data-bio-mode="astro"] { --tab: var(--science); }
.about[data-bio-mode="music"] { --tab: var(--brass-ink); }

.bio-copy {
  margin-top: 1.25rem;
  padding: 0;
  border: 0;
  background: none;
  font: 400 0.95rem/1.4 var(--sans);
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.bio-copy:hover { color: var(--ink); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.facts dt {
  font: italic 400 1.15rem/1.2 var(--serif);
  color: var(--science);
  margin-bottom: 0.2rem;
}
.facts dd { font-size: 0.975rem; line-height: 1.45; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { position: static; max-width: 420px; }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tags li { display: block; white-space: normal; }
  .tags li + li::before { content: none; }
}

/* ---------- research ---------- */

.research { background: var(--paper-2); }

.now {
  padding: clamp(28px, 4vw, 44px);
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--science);
  margin-bottom: clamp(56px, 8vw, 96px);
}
.now__label {
  display: flex; align-items: center; gap: 10px;
  font: italic 400 1.3rem/1.2 var(--serif);
  color: var(--science);
  margin-bottom: 0.75rem;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--science);
  box-shadow: 0 0 0 0 rgb(13 122 91 / .45);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(13 122 91 / .45); }
  70%, 100% { box-shadow: 0 0 0 10px rgb(13 122 91 / 0); }
}
.now__title {
  font: 400 clamp(1.9rem, 3.6vw, 3rem)/1.05 var(--serif);
  letter-spacing: -0.01em;
  max-width: 24ch;
}
.now__meta { margin-top: 1rem; color: var(--muted); font-size: 0.975rem; max-width: 80ch; }

.tags {
  list-style: none; padding: 1.25rem 0 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font: italic 400 1.25rem/1.5 var(--serif);
  color: var(--ink-2);
}
.tags li { display: inline; white-space: nowrap; }
.tags li + li::before { content: "·"; margin-inline: 0.55em; color: var(--science); font-style: normal; }

.research__grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.research__photo {
  position: sticky; top: calc(var(--nav-h) + 32px);
}
.research__photo img { width: 100%; }
.research__photo figcaption {
  margin-top: 0.6rem;
  font: italic 400 1.05rem/1.4 var(--serif);
  color: var(--muted);
}

.research__body .lead { margin-bottom: 3rem; }

.timeline { list-style: none; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 16px;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline__when {
  font: 400 1.25rem/1.3 var(--serif);
  color: var(--science);
}
.timeline__where {
  font: italic 400 1.1rem/1.3 var(--serif);
  color: var(--muted);
}
.timeline__what {
  font: 400 1.5rem/1.15 var(--serif);
  margin-top: 0.4rem;
}
.timeline__note {
  margin-top: 0.6rem;
  font-size: 0.95rem; line-height: 1.6;
  color: var(--ink-2);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(56px, 8vw, 104px);
}
.card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 1rem;
  font-size: 0.95rem;
}
.card__title {
  font: italic 400 1.45rem/1.2 var(--serif);
  color: var(--ink);
}
.card__big {
  font: 400 5.5rem/0.8 var(--serif);
  color: var(--science);
}

.list { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.list li { line-height: 1.5; }
.list em { font-style: normal; color: var(--muted); }
.list__when {
  display: block;
  font: 400 1.1rem/1.4 var(--serif);
  color: var(--science);
}

.durham {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.975rem;
}

@media (max-width: 960px) {
  .research__grid { grid-template-columns: 1fr; }
  .research__photo { position: static; max-width: 380px; }
  .cards, .durham { grid-template-columns: 1fr; }
}

/* ---------- spectrum divider ---------- */

.spectrum {
  position: relative;
  background: var(--night);
  padding: clamp(56px, 8vw, 104px) var(--gutter) 0;
}
.spectrum__svg {
  display: block;
  width: 100%;
  height: clamp(70px, 11vw, 150px);
  overflow: visible;
  filter: drop-shadow(0 0 6px rgb(95 214 174 / .35));
}
.spectrum__labels {
  position: relative;
  height: 1.5rem;
  margin-top: 0.5rem;
  font: 400 0.95rem/1 var(--serif);
  color: var(--on-night-muted);
}
.spectrum__labels span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }

@media (max-width: 560px) {
  .spectrum > .spectrum__labels span:first-child,
  .spectrum > .spectrum__labels span:last-child { display: none; }
}

/* ---------- music ---------- */

.music {
  background: var(--night);
  color: var(--on-night);
  padding-top: clamp(40px, 6vw, 72px);
}
.music .kicker { color: var(--on-night-muted); }
.music .kicker__num { color: var(--brass); }
.music .subhead { color: var(--brass); }
.music .lead { color: var(--on-night); }

.music__banner {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex; align-items: flex-end;
  margin-bottom: clamp(56px, 8vw, 104px);
  overflow: hidden;
  isolation: isolate;
}
.music__banner > img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 40%;
}
.music__banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--night) 0, rgb(13 15 19 / 0) 22%, rgb(13 15 19 / 0) 50%, var(--night) 100%),
    linear-gradient(90deg, rgb(13 15 19 / .78) 0, rgb(13 15 19 / .2) 55%, rgb(13 15 19 / 0) 100%);
}
.music__banner-text { padding-bottom: clamp(24px, 4vw, 48px); }
.music__banner .section__head { margin-bottom: 2rem; }
.music__banner .kicker { color: var(--on-night-2); text-shadow: 0 1px 14px rgb(0 0 0 / .8); }

.press p {
  font: 400 clamp(1.75rem, 3.4vw, 3rem)/1.1 var(--serif);
  max-width: 18ch;
  color: #fff;
}
.press em { color: var(--brass); }
.press footer {
  margin-top: 1rem;
  font: italic 400 1.25rem/1.2 var(--serif);
  color: var(--on-night-muted);
}
.press footer::before { content: "— "; }

.music__intro {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.music__intro p:not(.lead) { color: var(--on-night-2); }

.music__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px);
  margin-top: clamp(56px, 8vw, 96px);
}

.plain { list-style: none; padding: 0; }
.plain li {
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--rule-night);
  font: 400 1.35rem/1.25 var(--serif);
}
.plain li:first-child { border-top: 1px solid var(--rule-night); }
.plain--dated li { font: 400 1rem/1.4 var(--sans); color: var(--on-night-2); }
.plain--dated span {
  display: block;
  font: 400 1.1rem/1.4 var(--serif);
  color: var(--brass);
}

.directing {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-top: clamp(72px, 10vw, 128px);
}
.directing__photo img { width: 100%; }
.directing__text p { color: var(--on-night-2); }
.directing__text p + p { margin-top: 1rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 19vw, 240px);
  grid-auto-flow: dense;
  gap: 10px;
  margin-top: clamp(72px, 10vw, 128px);
}
.gallery__item {
  padding: 0; background: #000;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s;
  filter: saturate(.92);
}
.gallery__item:hover img { transform: scale(1.035); filter: saturate(1.05); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

@media (max-width: 860px) {
  .music__intro, .music__cols, .directing { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
}
@media (max-aspect-ratio: 5/4) {
  .music__banner { min-height: 82svh; }
  .music__banner > img { object-position: 64% 30%; }
  .music__banner::after {
    background: linear-gradient(180deg, var(--night) 0, rgb(13 15 19 / 0) 18%, rgb(13 15 19 / .1) 45%, rgb(13 15 19 / .85) 78%, var(--night) 100%);
  }
}

/* ---------- contact & footer ---------- */

.contact {
  background: var(--night-2);
  color: var(--on-night);
}
.contact .kicker { color: var(--on-night-muted); }
.contact__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.contact__title { font: 400 clamp(3rem, 7vw, 5.5rem)/0.92 var(--serif); }
.contact__sub { margin-top: 1rem; color: var(--on-night-2); }

.contact__links { list-style: none; padding: 0; }
.contact__links a {
  display: flex; align-items: baseline; gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule-night);
  text-decoration: none;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  overflow-wrap: anywhere;
  transition: color .2s, padding-left .3s;
}
.contact__links li:first-child a { border-top: 1px solid var(--rule-night); }
.contact__links a::after { content: "→"; margin-left: auto; color: var(--on-night-muted); transition: transform .3s, color .2s; }
.contact__links a:hover { color: #fff; padding-left: 6px; }
.contact__links a:hover::after { transform: translateX(4px); color: var(--brass); }
.contact__links span {
  flex: 0 0 5.5rem;
  font: italic 400 1.15rem/1 var(--serif);
  color: var(--on-night-muted);
}

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}

.footer {
  background: var(--night-2);
  color: var(--on-night-muted);
  border-top: 1px solid var(--rule-night);
}
.footer__inner {
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 28px;
  font: 400 0.9rem/1.2 var(--sans);
}
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---------- lightbox ---------- */

.lightbox {
  padding: 0; border: 0; background: transparent;
  max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh;
  display: none; place-items: center;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgb(5 6 8 / .92); }
.lightbox img {
  max-width: min(94vw, 1600px);
  max-height: 90vh;
  width: auto; height: auto;
  object-fit: contain;
}
.lightbox__close {
  position: absolute; top: 12px; right: 12px;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgb(255 255 255 / .08); color: #fff;
  font: 300 2rem/1 var(--sans);
  cursor: pointer;
}
.lightbox__close:hover { background: rgb(255 255 255 / .18); }

/* ---------- motion ---------- */

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