/* Jeff Kossack and the OtherHand / OtherHand Recording
   Brand: black ground, white Optima wordmark, silver and warm-grey secondaries,
   monochrome photography, one HalfLife-red accent. */

@font-face {
  font-family: "Ysabeau Office";
  src: url("assets/fonts/ysabeau-office-wght.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ysabeau Office";
  src: url("assets/fonts/ysabeau-office-wght-italic.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  /* REPLACEABLE IMAGES */
  /* (none: every image on this site is an <img> listed in assets/manifest.json) */

  /* Brand colours (brand.md) */
  --black: #000000;
  --white: #ffffff;
  --silver: #c2c2c2;
  --light-grey: #dddddd;
  --warm-grey: #b6afac;
  --red: #b3261e;          /* HalfLife half-heart */
  --red-dark: #8f1e18;
  --red-light: #e2564c;    /* same hue, lighter for small marks on black */

  /* Neutrals: steps of black */
  --ink-1: #0b0b0b;
  --ink-2: #141414;
  --ink-3: #1d1d1d;
  --line: #2c2c2c;
  --line-strong: #4a4a4a;

  --font: "Optima", "Optima Nova", "Ysabeau Office", "Candara", "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem);
  --step-5: clamp(2.6rem, 1.4rem + 5vw, 5.4rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4rem, 3rem + 4vw, 7rem);

  --wrap: 72rem;
  --radius: 4px;
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--light-grey);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  font-variant-numeric: lining-nums;
}

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

h1, h2, h3 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; }

p { margin: 0 0 var(--space-2); max-width: 66ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--white); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--silver); }
:focus-visible { outline: 2px solid var(--red-light); outline-offset: 3px; }

strong { color: var(--white); }
em, cite { font-style: italic; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  color: var(--black);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Buttons: one CTA vocabulary ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--silver); border-color: var(--silver); color: var(--black); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn-ghost:hover { background: transparent; border-color: var(--white); color: var(--white); }
.btn-sm { min-height: 2.5rem; padding: 0.45rem 0.9rem; font-size: var(--step--1); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.actions .mail { color: var(--silver); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(6px)) {
  .site-header { background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(6px); }
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
  padding-block: 0.6rem;
  flex-wrap: wrap;
}
.wordmark {
  display: flex;
  flex-direction: column;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.05;
  margin-right: auto;
}
.wordmark:hover { color: var(--white); }
.wm-name { font-size: 1.3rem; letter-spacing: 0.005em; }
.wm-band { font-size: 0.9rem; color: var(--silver); font-weight: 600; }
.header-cta { order: 2; }
.nav-toggle {
  order: 3;
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--white); }

.site-nav { order: 4; width: 100%; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--silver);
  text-decoration: none;
  font-weight: 600;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }

/* With JS on small screens the nav folds behind the Menu button */
@media (max-width: 1179.98px) {
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav.is-open ul { flex-direction: column; gap: 0; padding: 0.5rem 0 1rem; }
  .js .site-nav.is-open a { padding: 0.7rem 0; font-size: var(--step-1); }
  .js .site-nav.is-open li + li { border-top: 1px solid var(--line); }
}
@media (max-width: 379.98px) {
  .header-cta { display: none; }
}
@media (min-width: 640px) {
  .wordmark { flex-direction: row; align-items: baseline; gap: 0.35em; }
  .wm-name, .wm-band { font-size: 1.45rem; color: var(--white); font-weight: 700; }
}
@media (min-width: 1180px) {
  .header-inner { flex-wrap: nowrap; gap: 2rem; }
  .wordmark { margin-right: 0; }
  .site-nav { order: 0; width: auto; margin-left: auto; }
  .site-nav ul { padding: 0; flex-wrap: nowrap; gap: 1.5rem; }
  .site-nav a { font-size: 1rem; }
  .nav-toggle { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-6); }
.section + .section { border-top: 1px solid var(--line); }
.section-tint { background: var(--ink-1); }
.section-head { margin-bottom: var(--space-4); max-width: 46rem; }
.section-head p { color: var(--silver); font-size: var(--step-1); }
.lead { font-size: var(--step-1); color: var(--light-grey); }
.muted { color: var(--silver); }
.small { font-size: var(--step--1); }

/* ---------- Home hero ---------- */
.hero { padding-block: var(--space-4) var(--space-5); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.5rem;
  grid-template-areas:
    "tag   img"
    "title img"
    "lead  lead"
    "cta   cta"
    "proof proof";
  grid-template-rows: auto 1fr;
  column-gap: 1rem;
  align-items: start;
}
.hero-portrait { grid-area: img; margin: 0; }
.hero-portrait img { width: 100%; }
.hero-tagline {
  grid-area: tag;
  margin: 0 0 0.75rem;
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.015em;
}
.hero-tagline .dot { color: var(--red-light); }
.hero h1 {
  grid-area: title;
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--light-grey);
  line-height: 1.3;
  margin: 0;
}
.hero-lead { grid-area: lead; margin-top: var(--space-3); }
.hero-lead p { font-size: var(--step-1); }
.hero-actions { grid-area: cta; margin-top: var(--space-3); }
.hero-proof {
  grid-area: proof;
  margin-top: var(--space-3);
  color: var(--warm-grey);
  font-size: var(--step--1);
}

@media (min-width: 560px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 10rem; column-gap: 2rem; }
}
@media (min-width: 900px) {
  .hero { padding-block: var(--space-4) var(--space-6); }
  .hero-grid {
    grid-template-columns: 15rem minmax(0, 1fr);
    grid-template-areas:
      "img tag"
      "img title"
      "img lead"
      "img cta"
      "img proof";
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
  }
  .hero-tagline { margin-top: var(--space-4); }
  .hero h1 { font-size: var(--step-3); color: var(--white); max-width: 22ch; }
}
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: 17.5rem minmax(0, 1fr); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: var(--space-5) var(--space-4); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { max-width: 52ch; }
.page-hero-grid { display: grid; gap: var(--space-4); align-items: center; }
.page-hero-grid figure { margin: 0; }
@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-5); }
}

/* ---------- Split layouts ---------- */
.split { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); }
  .split-wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .split-center { align-items: center; }
}

.photo { margin: 0; }
.photo img { width: 100%; max-width: var(--w, 100%); border-radius: var(--radius); }
.photo figcaption { margin-top: 0.6rem; color: var(--warm-grey); font-size: var(--step--1); }

/* ---------- Services list ---------- */
.service-list { list-style: none; margin: 0; padding: 0; counter-reset: svc; }
.service {
  counter-increment: svc;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0 0.75rem;
  padding-block: var(--space-3);
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service::before {
  content: counter(svc, decimal-leading-zero);
  color: var(--warm-grey);
  font-weight: 700;
  font-size: var(--step--1);
  padding-top: 0.3rem;
}
.service h3 { margin-bottom: 0.35rem; font-size: var(--step-2); grid-column: 2; }
.service p { grid-column: 2; color: var(--light-grey); }

/* ---------- Credits ---------- */
.credit-list { list-style: none; margin: 0; padding: 0; }
.credit-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.15rem;
}
.credit-list li:last-child { border-bottom: 1px solid var(--line); }
.credit-list .who { color: var(--white); font-weight: 700; font-size: var(--step-1); }
.credit-list .what { color: var(--silver); }
.names {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0;
  color: var(--white);
  font-size: var(--step-1);
}
.names li:not(:last-child)::after { content: "·"; color: var(--warm-grey); margin: 0 0.6rem; }

/* ---------- Quote ---------- */
.pull {
  margin: 0;
  padding-left: var(--space-3);
  border-left: 3px solid var(--red);
}
.pull p {
  font-size: var(--step-3);
  color: var(--white);
  font-weight: 600;
  line-height: 1.25;
  max-width: 24ch;
  margin-bottom: 0.75rem;
}
.pull footer { color: var(--warm-grey); font-size: var(--step--1); }

/* ---------- Recognition ---------- */
.honours { display: grid; gap: var(--space-3); }
@media (min-width: 760px) { .honours { grid-template-columns: 1fr 1fr; gap: var(--space-4); } }
.honour { padding: var(--space-3) 0 0; border-top: 2px solid var(--white); }
.honour .figure {
  display: block;
  font-size: var(--step-4);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.honour h3 { font-size: var(--step-1); }
.honour p { color: var(--silver); }

/* ---------- People ---------- */
.people { display: grid; gap: var(--space-4); }
.person { display: grid; grid-template-columns: 6.8rem minmax(0, 1fr); gap: 0 1.25rem; align-items: start; }
.person img { width: 6.8rem; aspect-ratio: 109 / 116; object-fit: contain; background: var(--ink-2); border-radius: var(--radius); }
.person h3 { margin-bottom: 0.2rem; font-size: var(--step-2); }
.person .role { color: var(--warm-grey); font-size: var(--step--1); font-weight: 700; margin-bottom: 0.6rem; }
.person .bio { color: var(--light-grey); }
@media (min-width: 700px) {
  .person { grid-template-columns: 8rem minmax(0, 1fr); gap: 0 2rem; }
  .person img { width: 8rem; }
}

.crew {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: 1.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.crew figure { margin: 0; }
.crew img { width: 100%; max-width: 110px; aspect-ratio: 1 / 1; object-fit: contain; background: var(--ink-2); border-radius: var(--radius); }
.crew figcaption { margin-top: 0.45rem; font-size: var(--step--1); color: var(--silver); line-height: 1.35; }

.mini-crew { display: flex; gap: 0.75rem; margin: var(--space-3) 0; flex-wrap: wrap; }
.mini-crew img { width: 5.5rem; height: auto; border-radius: var(--radius); }

/* ---------- Albums ---------- */
.albums {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-3);
}
@media (min-width: 760px) { .albums { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.album img { width: 100%; max-width: 174px; aspect-ratio: 1 / 1; object-fit: contain; background: var(--ink-2); border-radius: 2px; }
.album h3 { margin: 0.9rem 0 0.15rem; font-size: var(--step-1); }
.album p { color: var(--warm-grey); font-size: var(--step--1); margin: 0; }
.album .btn { margin-top: 0.75rem; }

/* ---------- Link list ---------- */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-top: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 1px solid var(--line); }
.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  text-decoration: none;
  font-weight: 700;
  font-size: var(--step-1);
}
.link-list a span { color: var(--warm-grey); font-weight: 400; font-size: var(--step--1); align-self: center; text-align: right; }
.link-list a:hover span { color: var(--white); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); counter-reset: st; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); } }
.steps li { counter-increment: st; }
.steps li::before {
  content: counter(st);
  display: block;
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.steps h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.steps p { color: var(--silver); }

/* ---------- CTA band ---------- */
.cta-band { padding-block: var(--space-6); border-top: 1px solid var(--line); background: var(--ink-1); }
.cta-band .wrap { display: grid; gap: var(--space-3); }
.cta-band h2 { max-width: 20ch; }
.cta-band p { color: var(--silver); font-size: var(--step-1); }
@media (min-width: 900px) {
  .cta-band .wrap { grid-template-columns: minmax(0, 1.4fr) auto; align-items: end; gap: var(--space-5); }
}

/* ---------- Prose ---------- */
.prose p { max-width: 66ch; }
.prose h2 { margin-top: var(--space-4); }
.prose h2:first-child { margin-top: 0; }
.story {
  padding: var(--space-3);
  background: var(--ink-2);
  border-radius: var(--radius);
  border-left: 3px solid var(--warm-grey);
}
.story h3 { margin-bottom: 0.5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.form { display: grid; gap: 1.1rem; max-width: 36rem; }
.field { display: grid; gap: 0.35rem; }
.field label { color: var(--white); font-weight: 700; }
.field .hint { color: var(--warm-grey); font-size: var(--step--1); }
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: var(--ink-2);
  color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
}
.field textarea { min-height: 11rem; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--red-light); outline-offset: 1px; border-color: var(--white); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--ink-2); }
.form-status.ok { border-color: var(--white); color: var(--white); }
.form-status.err { border-color: var(--red-light); }
.contact-card { padding: var(--space-4) var(--space-3); background: var(--ink-2); border-radius: var(--radius); }
.contact-card h2 { font-size: var(--step-2); }
.contact-card .email { font-size: var(--step-1); font-weight: 700; word-break: break-word; }
.contact-card ul { list-style: none; padding: 0; margin: 0 0 var(--space-2); }
.contact-card li { padding: 0.3rem 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-5) var(--space-3); font-size: var(--step--1); }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-3); } }
.site-footer h2 { font-size: var(--step-0); color: var(--white); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 0.2rem 0; }
.site-footer a { color: var(--silver); }
.site-footer a:hover { color: var(--white); }
.site-footer p { color: var(--silver); }
.footer-brand .wordmark { margin-bottom: 0.75rem; }
.footer-brand .wm-name, .footer-brand .wm-band { font-size: 1.2rem; }
.footer-brand .btn { margin-top: 0.75rem; color: var(--black); }
.footer-brand .btn:hover { color: var(--black); }
.footer-email { font-weight: 700; color: var(--white) !important; word-break: break-word; }
.footer-base {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  color: var(--warm-grey);
}
.footer-base p { margin: 0; color: var(--warm-grey); }
.footer-base a { color: var(--warm-grey); }

/* ---------- 404 ---------- */
.notfound { padding-block: var(--space-6); }
.notfound .big { font-size: var(--step-5); font-weight: 700; color: var(--white); line-height: 1; margin-bottom: var(--space-2); }
