/* Waterworks Recording
   Palette pulled from Jim's own graphics: billboard sky, Sharpie on tape-box labels,
   red marker, masking tape on the console, Ampex box grey. */

:root {
  --sky: #2b6fba;  /* sampled from the billboard photo */
  --label: #f1f0eb;
  --paper: #fbfbf8;
  --ink: #151515;
  --ink-soft: #3b3c3f;
  --redpen: #d0261f;
  --tape: #e6dbb4;
  --tape-edge: #cfc293;
  --ampex: #6d7075;
  --rule: #d6d4cc;

  /* Role tokens: genre themes (themes.css) override these instead of the rules below. */
  --on-hero: #fff;
  --on-hero-soft: #e6eefb;
  --hero-accent: var(--tape);
  --dark: var(--ink);
  --on-dark: var(--label);
  --on-dark-soft: #c9c8c2;
  --line: var(--ink);
  --tape-ink: var(--ink);
  --btn-ink: #fff;
  --photo-filter: none;

  --f-display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --f-marker: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Courier Prime", "Courier New", Courier, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
main img, footer img { filter: var(--photo-filter); }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--redpen); }
:focus-visible { outline: 3px solid var(--redpen); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.01em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin: 0; max-width: 62ch; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(56px, 9vw, 120px); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; }

/* ---------- Masking tape: the studio's labeling system ---------- */

.tape {
  display: inline-block;
  font-family: var(--f-marker);
  font-size: 1rem;
  line-height: 1.2;
  color: var(--tape-ink);
  background: var(--tape);
  padding: 0.3em 0.75em 0.25em;
  box-shadow: 0 1px 0 var(--tape-edge), 0 2px 6px rgb(0 0 0 / 0.12);
  clip-path: polygon(0 4%, 3% 0, 97% 3%, 100% 0, 99% 96%, 100% 100%, 2% 97%, 0 100%, 1% 50%);
  transform: rotate(var(--tilt, -1.5deg));
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.tape--red { color: var(--redpen); }

/* ---------- Scribble-strip nav ---------- */

.strip {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--dark);
  color: var(--on-dark);
  border-bottom: 3px solid #000;
}
.strip .wrap { display: flex; align-items: center; gap: 12px 20px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-size: 1.35rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--on-dark); margin-right: auto; }
.brand:hover { color: var(--on-dark); }
.brand img { width: 30px; filter: invert(1); mix-blend-mode: screen; }
.rec { width: 10px; height: 10px; border-radius: 50%; background: var(--redpen); box-shadow: 0 0 8px var(--redpen); animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: 0.25; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .rec { animation: none; } }

.strip nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.strip nav .tape { font-size: 0.9rem; }
.strip nav li:nth-child(2) .tape { --tilt: 1deg; }
.strip nav li:nth-child(3) .tape { --tilt: -0.5deg; }
.strip nav li:nth-child(4) .tape { --tilt: 2deg; }
.strip nav .tape:hover { color: var(--redpen); }

@media (max-width: 640px) {
  .strip { position: static; }
  .strip .wrap { justify-content: center; }
  .brand { margin-right: 0; width: 100%; justify-content: center; }
}

/* ---------- Hero: the billboard ---------- */

.hero {
  background: var(--sky);
  color: var(--on-hero);
  padding-block: clamp(24px, 5vw, 64px) clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.hero figure { margin: 0 auto; max-width: 1100px; }
.hero figure img {
  width: 100%;
  /* fade the billboard's pole into the matching sky */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}
.hero .intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; margin-top: clamp(24px, 4vw, 48px); }
/* sized so WATERWORKS fits its column (Anton caps run ~5.2em for that word) */
.hero h1 { font-size: clamp(3rem, 7.2vw, 6.25rem); }
.hero h1 .small { display: block; font-size: 0.42em; letter-spacing: 0.04em; color: var(--hero-accent); }
.hero .lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.5; }
.hero .lede + .lede { margin-top: 14px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 24px; align-items: center; }

.btn {
  display: inline-block;
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.2rem;
  padding: 12px 20px 10px;
  background: var(--redpen);
  color: var(--btn-ink);
  text-decoration: none;
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { color: var(--btn-ink); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.btn--ghost { background: transparent; color: var(--on-hero); border-color: var(--on-hero); box-shadow: 4px 4px 0 rgb(0 0 0 / 0.35); }
.btn--ghost:hover { color: var(--on-hero); box-shadow: 2px 2px 0 var(--line); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

@media (max-width: 820px) { .hero .intro { grid-template-columns: 1fr; } }

/* ---------- Section heads ---------- */

.head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.head .tape { justify-self: start; }
.head p { color: var(--ink-soft); font-size: 1.15rem; }

/* ---------- The Tapes (clients) ---------- */

.tapes { background: var(--label); }
.tapes .grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.tapes figure { margin: 0; position: sticky; top: 96px; }
@media (max-width: 900px) { .tapes figure { position: static; } }
.tapes figure img { border: 3px solid var(--line); box-shadow: 8px 8px 0 var(--line); }
@media (max-width: 900px) { .tapes .grid { grid-template-columns: 1fr; } }

/* Track sheet */
.sheet { background: var(--paper); border: 2px solid var(--line); font-family: var(--f-mono); font-size: 0.95rem; }
.sheet caption { caption-side: top; text-align: left; padding: 10px 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; background: var(--dark); color: var(--on-dark); }
.sheet-scroll { overflow-x: auto; }
.sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.sheet thead th { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ampex); border-bottom: 2px solid var(--line); }
.sheet td.trk { color: var(--redpen); font-weight: 700; width: 3.2em; border-right: 1px solid var(--rule); }
.sheet .artist { font-family: var(--f-marker); font-size: 1.05rem; line-height: 1.25; }
.sheet td.yr { white-space: nowrap; }
.sheet .role { color: var(--ink-soft); font-size: 0.85rem; }
.sheet tr:last-child td { border-bottom: 0; }
.sheet-note { margin-top: 14px; font-family: var(--f-mono); font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- The Rooms ---------- */

.rooms .mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}
.shot { margin: 0; position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; border: 3px solid var(--line); }
.shot figcaption { position: absolute; left: 12px; bottom: -12px; max-width: calc(100% - 24px); }
.shot figcaption .tape { font-size: 0.85rem; text-transform: none; }
.shot--a { grid-column: span 4; aspect-ratio: 4 / 3; }
.shot--b { grid-column: span 2; aspect-ratio: 3 / 4.5; }
.shot--c { grid-column: span 3; aspect-ratio: 3 / 2; }
.shot--d { grid-column: span 3; aspect-ratio: 3 / 2; }
.shot--e { grid-column: span 6; aspect-ratio: 960 / 315; }
.rooms .mosaic { row-gap: clamp(28px, 3.5vw, 40px); }
@media (max-width: 760px) {
  .rooms .mosaic { grid-template-columns: 1fr; }
  .shot--a, .shot--b, .shot--c, .shot--d, .shot--e { grid-column: auto; }
  .shot--b { aspect-ratio: 3 / 4; }
}

.specs { margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(28px, 4vw, 40px); border-top: 3px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; }
.specs-intro { grid-column: 1 / -1; display: grid; gap: 12px; }
.specs-intro h3 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.specs-intro p { color: var(--ink-soft); font-size: 1.1rem; }
.specs h4 { margin: 0 0 8px; font-family: var(--f-mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--redpen); }
@media (max-width: 680px) { .specs { grid-template-columns: 1fr; } }
.specs ul { margin: 0; padding: 0; list-style: none; font-family: var(--f-mono); font-size: 0.95rem; }
.specs li { padding: 6px 0; border-bottom: 1px dashed var(--rule); }

/* ---------- The Guy ---------- */

.guy { background: var(--dark); color: var(--on-dark); }
.guy .head p { color: var(--on-dark-soft); }
.guy .grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.guy figure { margin: 0; }
.guy .portrait img { border: 3px solid var(--on-dark); transform: rotate(-1.5deg); }
.guy .portrait figcaption { margin-top: 18px; }
.guy .bio { display: grid; gap: 18px; font-size: 1.1rem; }
.guy .bio a { color: var(--hero-accent); }
.guy .bio a:hover { color: #fff; }
.guy .pain { margin: 12px 0 0; max-width: 240px; }
.guy .pain img { border: 2px solid var(--on-dark); transform: rotate(1.5deg); }
@media (max-width: 900px) { .guy .grid { grid-template-columns: 1fr; } .guy .portrait { max-width: 520px; } }

.alsoran { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.alsoran figure { margin: 0; }
.alsoran img { border: 3px solid var(--on-dark); }
.alsoran figcaption { margin-top: 14px; }
@media (max-width: 760px) { .alsoran { grid-template-columns: 1fr; } }

/* ---------- Book it ---------- */

.book { background: var(--sky); color: var(--on-hero); }
.book .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.book figure { margin: 0; }
.book figure img { border: 3px solid var(--line); box-shadow: 8px 8px 0 var(--line); }
.book .head p { color: var(--on-hero-soft); }
.book dl { margin: 0; display: grid; gap: 22px; }
.book dt { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--hero-accent); }
.book dd { margin: 4px 0 0; font-family: var(--f-display); font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.1; text-transform: uppercase; overflow-wrap: anywhere; }
.book dd a { text-decoration: none; }
.book dd a:hover { color: var(--hero-accent); }
.book dd.email { text-transform: none; font-family: var(--f-body); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.6rem); }
@media (max-width: 860px) { .book .grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

footer { background: var(--label); padding-block: 56px 40px; }
footer .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px 40px; align-items: center; }
footer .engraving { width: 150px; transform: rotate(2deg); border: 3px solid var(--line); }
footer .mugline { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; }
footer .mugline em { font-style: normal; color: var(--redpen); }
footer .small { margin-top: 12px; font-family: var(--f-mono); font-size: 0.85rem; color: var(--ink-soft); }
@media (max-width: 560px) { footer .wrap { grid-template-columns: 1fr; } }
