/* Zimmerzounds — warm analog. Tokens first, then base, then components in page order. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --paper: #e8dcc3;
  --paper-deep: #dccdae;
  --paper-lit: #f3e6c4;
  --walnut: #3b2a1e;
  --walnut-deep: #2a1d14;
  --walnut-edge: #55392a;
  --ink: #231a13;
  --ink-soft: #5e4c3c;
  --cream: #efe4cc;
  --cream-soft: rgba(239, 228, 204, 0.72);
  --amber: #d9a441;
  --amber-deep: #b8862c;
  --red: #b5432e;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-text: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --text-sm: 0.9375rem;
  --text-base: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.5rem, 1.3rem + 4vw, 4.75rem);

  --measure: 62ch;
  --container: 76rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --space-section: clamp(5rem, 3.5rem + 6vw, 10rem);
  --space-block: clamp(2rem, 1.5rem + 2vw, 3.5rem);

  --ease-overshoot: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain: one tiny noise tile, very low opacity, above everything but inert. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.11;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.13 0 0 0 0 0.06 0 0 0 1 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  max-width: var(--measure);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--amber);
  color: var(--ink);
  border-radius: 4px;
  z-index: 100;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Walnut panel: hero and contact share the wooden side-cheek look ---------- */

.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.12)),
    repeating-linear-gradient(
      96deg,
      transparent 0 18px,
      rgba(0, 0, 0, 0.07) 18px 21px,
      transparent 21px 47px,
      rgba(255, 255, 255, 0.025) 47px 49px
    ),
    var(--walnut);
  color: var(--cream);
  position: relative;
}
.panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(180deg, var(--walnut-edge), var(--walnut-deep));
}

/* ---------- Header ---------- */

.site-header {
  padding-block: 1.25rem;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
}
.brand svg {
  width: 5.5rem;
  height: 5.5rem;
}
.brand-name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--cream-soft);
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cream);
  border-bottom-color: var(--amber);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3rem, 2rem + 5vw, 7rem) clamp(4rem, 3rem + 5vw, 8rem);
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(18rem, 6fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}
.hero h1 {
  font-size: var(--text-hero);
  color: var(--cream);
  max-width: 14ch;
}
.hero-badge {
  display: flex;
  justify-content: center;
}
.hero-badge .badge {
  width: min(100%, 34rem);
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}
.hero-badge .vu-needle-group {
  transform-box: view-box;
  transform-origin: 200px 232px;
}
.hero-lede {
  margin-top: 1.75rem;
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--cream-soft);
  max-width: 34ch;
}
.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  border-radius: 4px;
  font-family: var(--font-text);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 140ms ease, color 140ms ease;
}
.button:active {
  transform: translateY(1px);
}
.button-primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.button-primary:hover {
  background: #e4b258;
}
.button-quiet {
  color: var(--cream);
  border-color: rgba(239, 228, 204, 0.35);
  background: transparent;
}
.button-quiet:hover {
  border-color: var(--cream);
}

.status {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: var(--cream-soft);
}
.status::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(181, 67, 46, 0.25), 0 0 10px rgba(181, 67, 46, 0.6);
}

/* The meter: a walnut bezel around a backlit face. */
.meter {
  padding: clamp(0.9rem, 2vw, 1.4rem);
  border-radius: 10px;
  background: linear-gradient(160deg, var(--walnut-edge), var(--walnut-deep));
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.meter-face {
  border-radius: 6px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, #f6e6b4 0%, var(--paper-lit) 45%, #e6d3a3 100%);
  box-shadow:
    inset 0 0 0 2px rgba(35, 26, 19, 0.55),
    inset 0 12px 30px rgba(120, 80, 20, 0.22);
}
.vu {
  width: 100%;
  height: auto;
}
.vu-face {
  fill: transparent;
}
.vu-arc {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
}
.vu-arc--red {
  stroke: var(--red);
  stroke-width: 5;
}
.vu-tick {
  stroke: var(--ink);
  stroke-width: 2.5;
}
.vu-tick--red {
  stroke: var(--red);
}
.vu-tick--minor {
  stroke-width: 1.5;
}
.vu-num {
  font-family: var(--font-text);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 14px;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: middle;
}
.vu-num--red {
  fill: var(--red);
}
.vu-label {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 700;
  font-size: 44px;
  fill: var(--ink);
  text-anchor: middle;
}
.vu-brand {
  font-family: var(--font-text);
  font-stretch: 125%;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.32em;
  fill: var(--ink-soft);
  text-anchor: middle;
}
.vu-needle {
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.vu-hub {
  fill: var(--walnut-deep);
  stroke: var(--amber-deep);
  stroke-width: 2;
}
.vu-needle-group {
  transform-box: view-box;
  transform-origin: 200px 270px;
  transform: rotate(-46deg);
  animation: power-on 1.7s var(--ease-overshoot) 0.35s forwards;
  transition: transform 900ms cubic-bezier(0.45, 0.05, 0.35, 1);
}
@keyframes power-on {
  to {
    transform: rotate(12deg);
  }
}

/* ---------- Sections on paper ---------- */

.section {
  padding-block: var(--space-section);
}
.section-head h2 {
  font-size: var(--text-2xl);
}
.section-head p {
  margin-top: 1.25rem;
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}
.split .section-head {
  position: sticky;
  top: 2rem;
}

/* Services: three typeset entries, separated by a walnut rule. */
.service {
  padding-block: var(--space-block);
  border-top: 1px solid rgba(59, 42, 30, 0.28);
}
.service:first-child {
  border-top: 0;
  padding-top: 0;
}
.service h3 {
  font-size: var(--text-xl);
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
}
.service p {
  margin-top: 1rem;
}
.service-facts {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 0.45rem 2rem;
  max-width: 36rem;
}
.service-facts li {
  position: relative;
  padding-left: 1.1rem;
  font-size: var(--text-sm);
  font-stretch: 106%;
  color: var(--ink);
}
.service-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--amber);
  border-radius: 1px;
}

/* The room */
.room {
  background: var(--paper-deep);
}
.room .container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.frame {
  padding: clamp(0.7rem, 1.5vw, 1rem);
  background: linear-gradient(160deg, var(--walnut-edge), var(--walnut-deep));
  border-radius: 8px;
  box-shadow: 0 30px 50px -30px rgba(42, 29, 20, 0.6);
}
.frame img,
.frame .photo-placeholder {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 3px;
}
.photo-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 60% at 50% 40%, rgba(217, 164, 65, 0.25), transparent 70%),
    var(--walnut);
  color: var(--cream-soft);
  font-size: var(--text-sm);
  text-align: center;
  padding: 2rem;
}
.frame figcaption {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  color: var(--cream-soft);
}
.room .section-head p {
  margin-top: 1rem;
  font-size: var(--text-base);
}

/* Slideshow inside the frame: images stacked, one visible, crossfade between them. */
.slides {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  background: var(--walnut-deep);
}
.slides .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1400ms ease-in-out;
}
.slides .slide.is-active {
  opacity: 1;
}

/* Spec sheet: dotted leaders like a printed equipment list. */
.spec {
  margin: 2rem 0 0;
  padding: 0;
}
.spec-group {
  margin-top: 1.5rem;
}
.spec-group:first-child {
  margin-top: 0;
}
.spec-group h3 {
  font-family: var(--font-text);
  font-variation-settings: normal;
  font-stretch: 118%;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.spec-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: var(--text-sm);
  padding-block: 0.28rem;
}
.spec-row dt {
  flex: 0 1 auto;
  color: var(--ink);
}
.spec-row dt::after {
  content: "";
  display: inline-block;
}
.spec-row .leader {
  flex: 1 1 1rem;
  border-bottom: 2px dotted rgba(59, 42, 30, 0.4);
  transform: translateY(-0.3em);
  min-width: 1rem;
}
.spec-row dd {
  margin: 0;
  color: var(--ink-soft);
  text-align: right;
}

/* Credits */
.credits-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: clamp(2rem, 5vw, 5rem);
}
.credits-list li {
  break-inside: avoid;
  padding-block: 0.9rem;
  border-top: 1px solid rgba(59, 42, 30, 0.22);
  display: grid;
  gap: 0.15rem;
}
.credits-list .artist {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 36;
  font-weight: 600;
  font-size: var(--text-lg);
  line-height: 1.15;
}
.credits-list .work {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}
.credits-note {
  margin-top: 2rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */

.contact {
  padding-block: var(--space-section);
}
.contact h2 {
  font-size: var(--text-2xl);
  color: var(--cream);
}
.contact-lede {
  margin-top: 1.25rem;
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--cream-soft);
  max-width: 38ch;
}
.email-block {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.email-link {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 600;
  font-size: clamp(1.75rem, 1rem + 3.4vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--amber);
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 3px solid transparent;
  transition: border-color 160ms ease;
}
.email-link:hover,
.email-link:focus-visible {
  border-bottom-color: var(--amber);
}
.copy-button {
  font-size: var(--text-sm);
  padding: 0.6rem 1rem;
}
.copy-button[data-state="copied"] {
  border-color: var(--amber);
  color: var(--amber);
}
.contact-meta {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem 3rem;
  max-width: 48rem;
}
.contact-meta h3 {
  font-family: var(--font-text);
  font-variation-settings: normal;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--cream);
  margin-bottom: 0.35rem;
}
.contact-meta p {
  font-size: var(--text-sm);
  color: var(--cream-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 2rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 60rem) {
  .hero .container {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-badge .badge {
    width: min(100%, 24rem);
  }
  .split,
  .room .container {
    grid-template-columns: minmax(0, 1fr);
  }
  .split .section-head {
    position: static;
  }
}
@media (max-width: 40rem) {
  .credits-list {
    columns: 1;
  }
  .site-nav ul {
    gap: 1rem;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .vu-needle-group {
    animation: none;
    transition: none;
    transform: rotate(12deg);
  }
  .button,
  .site-nav a,
  .email-link {
    transition: none;
  }
}
