/* Westgar Sound Company
   Built from the WSC mark: charcoal, tall condensed letters, and the volcano whose base
   becomes a sine wave, here drawn as a horizon across the hero like a scope trace. */

@font-face { font-family: "Bebas Neue"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Anybody"; font-weight: 100 900; font-stretch: 50% 150%; font-style: normal; font-display: swap; src: url("/fonts/anybody-latin-variable.woff2") format("woff2-variations"), url("/fonts/anybody-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/fonts/fraunces-latin-variable.woff2") format("woff2-variations"), url("/fonts/fraunces-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 100 900; font-style: italic; font-display: swap; src: url("/fonts/fraunces-latin-variable-italic.woff2") format("woff2-variations"), url("/fonts/fraunces-latin-variable-italic.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #232427;
  --panel: #2B2C30;
  --charcoal: #4D4E50;
  --ink: #EDEDE8;
  --muted: #A6A8AC;
  --dim: #74767B;
  --line: rgba(237, 237, 232, 0.14);
  --line-strong: rgba(237, 237, 232, 0.34);
  --danger: #F08A7E;

  --display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { top: 12px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { font-family: var(--display); font-size: 34px; line-height: 1; letter-spacing: 0.03em; text-decoration: none; color: var(--ink); padding-top: 4px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; color: var(--ink); }
.nav-cta { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; }
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; text-decoration: none !important; }
.lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang[hidden] { display: none; }
.lang-btn { font: 600 12px/1 var(--sans); background: none; border: 0; color: var(--muted); padding: 6px 9px; border-radius: 999px; cursor: pointer; }
.lang-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Hero: the name over the volcano-waveform horizon */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 132px) 0 clamp(150px, 19vw, 260px); }
.horizon { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(170px, 24vw, 330px); }
.horizon .h-fill { fill: #2C2D30; }
.horizon .h-line { fill: none; stroke: rgba(237, 237, 232, 0.55); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.horizon .h-base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .horizon .h-line { stroke-dasharray: 100; animation: trace 2200ms cubic-bezier(.4,0,.2,1) 200ms both; }
  .horizon .h-fill { animation: rise 1600ms ease 900ms both; }
}
/* The moon: rising behind the volcano's right flank, faint enough to find rather than see */
.moon {
  position: absolute; z-index: 0; pointer-events: none;
  width: clamp(72px, 8.5vw, 124px); aspect-ratio: 1; border-radius: 50%;
  left: calc(79% - clamp(36px, 4.25vw, 62px)); bottom: calc(clamp(170px, 24vw, 330px) * 0.42);
  background: radial-gradient(circle at 38% 36%, rgba(237,237,232,.13), rgba(237,237,232,.06) 62%, rgba(237,237,232,.04));
  box-shadow: inset 0 0 0 1px rgba(237,237,232,.16);
}
.moon i { position: absolute; border-radius: 50%; background: rgba(237,237,232,.05); }
.moon i:nth-child(1) { width: 22%; height: 22%; left: 24%; top: 30%; }
.moon i:nth-child(2) { width: 14%; height: 14%; left: 58%; top: 22%; }
.moon i:nth-child(3) { width: 18%; height: 18%; left: 52%; top: 58%; }
@media (prefers-reduced-motion: no-preference) {
  .moon { animation: moonrise 2600ms cubic-bezier(.2,.7,.2,1) 700ms both; }
}
@keyframes moonrise { from { opacity: 0; transform: translateY(18%); } to { opacity: 1; transform: none; } }
.horizon { z-index: 1; }

/* Playhead (scope style only) */
.playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; z-index: 1; pointer-events: none; background: rgba(237,237,232,.32); opacity: 0; transition: opacity 200ms ease; }
.playhead.is-on { opacity: 1; }
.playhead .tc { position: absolute; top: 14px; left: 8px; font-size: 12px; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
html:not([data-hero="scope"]) .playhead { display: none; }

/* Both new styles: the name gets the full width, the line and buttons sit underneath */
html[data-hero="fader"] .hero-inner, html[data-hero="scope"] .hero-inner { grid-template-columns: 1fr; gap: 28px; }
html[data-hero="fader"] .hero-side, html[data-hero="scope"] .hero-side {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-bottom: 0;
}
html[data-hero="fader"] .hero-actions, html[data-hero="scope"] .hero-actions { margin-top: 0; }

/* ---------- Hero style: fader (Anybody, letters swell like a level meter) ---------- */
html[data-hero="fader"] .name-line { display: block; white-space: nowrap; }
html[data-hero="fader"] .hero-name {
  font-family: "Anybody", var(--sans); text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(38px, 6.4vw, 96px); line-height: 0.98;
}
html[data-hero="fader"] .hero-name .ch { font-variation-settings: "wdth" var(--w, 100), "wght" var(--g, 500); }
html[data-hero="fader"] .brand,
html[data-hero="fader"] .block-title,
html[data-hero="fader"] .service h3,
html[data-hero="fader"] .feat-title {
  font-family: "Anybody", var(--sans); font-variation-settings: "wdth" 128, "wght" 760; letter-spacing: -0.01em;
}
html[data-hero="fader"] .brand { font-size: 24px; padding-top: 0; }
html[data-hero="fader"] .block-title { font-size: clamp(34px, 4.4vw, 58px); line-height: 1; }
html[data-hero="fader"] .service h3 { font-size: 18px; line-height: 1.15; }
html[data-hero="fader"] .feat-title { font-size: 20px; line-height: 1.15; }

/* ---------- Hero style: scope (Fraunces, a playhead scrubs the title and the wave) ---------- */
html[data-hero="scope"] .name-line { display: block; white-space: nowrap; }
html[data-hero="scope"] .hero-name {
  font-family: "Fraunces", Georgia, serif; text-transform: none; letter-spacing: -0.025em;
  font-size: clamp(54px, 8.6vw, 128px); line-height: 0.96;
}
html[data-hero="scope"] .hero-name .ch { font-variation-settings: "opsz" 144, "wght" var(--g, 300), "SOFT" var(--s, 100), "WONK" 0; transition: font-variation-settings 160ms linear; }
html[data-hero="scope"] .brand,
html[data-hero="scope"] .block-title,
html[data-hero="scope"] .service h3,
html[data-hero="scope"] .feat-title {
  font-family: "Fraunces", Georgia, serif; text-transform: none; letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144, "wght" 340, "SOFT" 100, "WONK" 0;
}
html[data-hero="scope"] .brand { font-style: italic; font-size: 26px; padding-top: 0; }
html[data-hero="scope"] .block-title { font-size: clamp(42px, 5.2vw, 68px); line-height: 1; }
html[data-hero="scope"] .service h3 { font-size: 23px; line-height: 1.15; }
html[data-hero="scope"] .feat-title { font-size: 26px; line-height: 1.1; }

@keyframes trace { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; }
.hero-name {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, 10.5vw, 150px); line-height: 0.88; letter-spacing: 0.01em;
}
.hero-side { padding-bottom: 10px; }
.hero-line { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink);
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-solid:hover { background: #FFFFFF; color: var(--bg); }

/* Sections */
.block { padding-top: clamp(56px, 7vw, 88px); padding-bottom: 8px; scroll-margin-top: 12px; }
.block[hidden] { display: none; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.block-title { margin: 0 0 28px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(48px, 6vw, 80px); line-height: 0.95; letter-spacing: 0.01em; }
.block-intro { margin: 0 0 28px; color: var(--muted); font-size: 16px; max-width: 46ch; }
.sub-title { margin: 56px 0 8px; font-weight: 500; font-size: 15px; color: var(--muted); letter-spacing: 0.02em; }

/* Services: four columns separated by hairlines */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.service { padding: 22px 22px 8px 0; }
.service + .service { padding-left: 22px; border-left: 1px solid var(--line); }
.service h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.service p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Reel */
.reel { position: relative; aspect-ratio: 16 / 9; background: var(--panel); border-radius: 4px; overflow: hidden; }
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Featured credits */
.featured { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.feat-poster { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; background: var(--panel); }
.feat-title { margin: 16px 0 2px; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.feat-meta { margin: 0; color: var(--dim); font-size: 14px; }
.feat-role { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.laurels { display: flex; gap: 10px; margin-top: 12px; }
.laurels img { height: 40px; width: auto; filter: brightness(0) invert(0.88); opacity: .9; }

/* Credits table */
.credits-wrap { overflow-x: auto; }
.credits { width: 100%; border-collapse: collapse; font-size: 15px; }
.credits th { text-align: left; font-weight: 500; color: var(--dim); font-size: 13px; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line-strong); }
.credits td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits td:first-child { color: var(--dim); font-variant-numeric: tabular-nums; width: 64px; }
.credits td:nth-child(2) { font-weight: 500; }
.credits td:nth-child(3) { color: var(--muted); white-space: nowrap; }
.credits td:last-child { color: var(--muted); }
.credits tr.is-hidden { display: none; }
.more { margin-top: 20px; }
.more[hidden] { display: none; }

/* Clients */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.clients li { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(18px, 1.7vw, 22px); }

/* Form */
.form { max-width: 880px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field .opt { color: var(--dim); font-size: 13px; }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 3px; padding: 11px 12px; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.checks { border: 0; margin: 0; padding: 0; }
.checks legend { padding: 0; margin-bottom: 8px; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); cursor: pointer; padding: 6px 0; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }
.err { color: var(--danger); font-size: 13px; }
.form-error { margin: 0 0 16px; color: var(--danger); font-size: 15px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.sent { margin: 0; color: var(--muted); font-size: 15px; max-width: 46ch; }

/* Footer */
.foot { margin-top: clamp(72px, 9vw, 112px); border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.foot-inner { padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; }
.foot-inner p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.foot a { color: var(--muted); }
.westgar-link { display: inline-flex; line-height: 0; }
.westgar-link img { height: 15px; width: auto; filter: brightness(0) invert(0.75); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 14px; }
  .featured { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .feat-title { font-size: 24px; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .top-inner { min-height: 60px; }
  .nav { gap: 14px; font-size: 14px; }
  .nav a[href="#services"], .nav a[href="#clients"] { display: none; }
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 18px 0 10px; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); margin-top: 0; }
  .featured { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .horizon { width: 190%; left: -70%; right: auto; height: 150px; }
  .moon { width: 58px; left: calc(74% + 2px); bottom: 62px; }
  .hero { padding-bottom: 150px; }
  .featured li { scroll-snap-align: start; }
  .credits th:nth-child(3), .credits td:nth-child(3) { display: none; }
  .credits td:first-child { width: 48px; }
  .clients { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: 1; }
  .check-grid { grid-template-columns: 1fr; }
}
