:root {
  --forest: #18392b;
  --forest-deep: #0d241a;
  --olive: #657248;
  --cream: #e6d8b5;
  --parchment: #cbbE91;
  --orange: #c35a2e;
  --mustard: #d19b2a;
  --brown: #33251d;
  --paper: #f2e8cd;
  --ink: #201b16;
}

* { box-sizing: border-box; }

html { background: var(--forest-deep); }

body {
  margin: 0;
  padding: 28px 14px 50px;
  color: var(--ink);
  font: 1rem/1.55 Verdana, Arial, sans-serif;
  background-color: var(--forest);
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.025) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,0,0,.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,0,0,.06) 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
}

a { color: #8f3419; font-weight: bold; }
a:hover, a:focus { color: var(--forest); background: var(--mustard); outline: 2px dotted var(--orange); outline-offset: 2px; }

.top-strip {
  position: fixed;
  inset: 0 0 auto;
  height: 9px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 42px, var(--mustard) 42px 84px, var(--olive) 84px 126px, var(--cream) 126px 168px);
  border-bottom: 2px solid var(--brown);
  z-index: 10;
}

.page-shell {
  width: 860px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--cream);
  border: 5px ridge var(--parchment);
  box-shadow: 10px 12px 0 rgba(0,0,0,.35);
}

.site-header {
  padding: 28px 28px 23px;
  color: var(--paper);
  text-align: center;
  background: var(--forest-deep);
  border-bottom: 7px solid var(--orange);
}

.site-header.compact { padding-block: 18px 15px; }
.eyebrow { margin: 0 0 2px; color: var(--parchment); font: bold .78rem/1.2 "Courier New", monospace; letter-spacing: .22em; }

.site-header h1 {
  margin: 0;
  color: var(--mustard);
  font: bold clamp(2.8rem, 9vw, 5.3rem)/.95 Georgia, "Times New Roman", serif;
  letter-spacing: .045em;
  text-shadow: 3px 3px 0 var(--orange), 6px 6px 0 #000;
}

.site-header h1 span { color: var(--paper); }
.compact h1 { font-size: clamp(2.3rem, 7vw, 4rem); }
.subtitle { margin: 14px 0 0; color: var(--cream); font: bold .82rem/1.4 "Courier New", monospace; text-transform: uppercase; letter-spacing: .08em; }

.main-nav {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: var(--olive);
  border-block: 2px inset var(--parchment);
}

.main-nav a, .button-link {
  display: inline-block;
  padding: 7px 11px;
  color: var(--brown);
  background: var(--mustard);
  border: 3px outset var(--paper);
  font: bold .77rem/1.1 Verdana, sans-serif;
  text-decoration: none;
}

.main-nav a:hover, .main-nav a:focus, .button-link:hover, .button-link:focus { color: var(--paper); background: var(--orange); outline: 0; }
.main-nav a:active, .button-link:active { border-style: inset; }
.main-nav a.active { color: var(--paper); background: var(--forest); }

.ticker {
  overflow: hidden;
  padding: 8px 15px;
  color: var(--paper);
  background: var(--brown);
  border-bottom: 2px solid var(--mustard);
  font: .82rem/1.35 "Courier New", monospace;
  white-space: nowrap;
}
.ticker strong { color: var(--mustard); }

.home-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(220px, .8fr); gap: 18px; padding: 18px; }
.main-column { min-width: 0; }

.welcome-box, .case-file, .listening-room, .bio-grid, .facts {
  padding: 18px;
  background: var(--paper);
  border: 2px solid var(--brown);
  box-shadow: 4px 4px 0 var(--parchment);
}

.welcome-box h2, .page-title {
  margin: 0 0 14px;
  color: var(--forest);
  font: bold 1.45rem/1.1 Georgia, serif;
  text-align: center;
  letter-spacing: .04em;
}
.star-line { margin: 0 0 6px; color: var(--orange); text-align: center; letter-spacing: .35em; }
.hand-note { color: var(--orange); font: italic 1.12rem/1.3 Georgia, serif; }

.section-block { margin-top: 24px; }
.bar-heading {
  margin: 0 0 12px;
  padding: 7px 10px;
  color: var(--paper);
  background: var(--forest);
  border-left: 10px solid var(--orange);
  border-bottom: 4px solid var(--mustard);
  font: bold 1rem/1.2 Georgia, serif;
  letter-spacing: .08em;
}

.project-card { display: grid; grid-template-columns: 180px 1fr; gap: 14px; padding: 12px 0; border-bottom: 2px dotted var(--olive); }
.project-card:last-child { border-bottom: 0; }
.project-card h3, .case-file h3, .archive-entry h3 { margin: 1px 0 4px; color: var(--forest); font: bold 1.2rem/1.2 Georgia, serif; }
.project-card p { margin: 5px 0 9px; }
.project-date, .meta { color: #665542; font: bold .74rem/1.3 "Courier New", monospace; letter-spacing: .03em; }
.arrow-link { font: bold .75rem/1.2 "Courier New", monospace; }

.image-placeholder {
  min-height: 118px;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 10px;
  color: var(--paper);
  text-align: center;
  background: var(--forest);
  border: 5px ridge var(--parchment);
  font: bold .85rem/1.2 "Courier New", monospace;
}
.image-placeholder small { font-size: .68rem; font-weight: normal; }
.image-placeholder.orange { background: var(--orange); }
.image-placeholder.mustard { color: var(--brown); background: var(--mustard); }
.image-placeholder.large { min-height: 220px; }
.image-placeholder.portrait { min-height: 300px; background: var(--olive); }
.notion-image { display: block; width: 100%; min-height: 118px; height: 100%; object-fit: cover; border: 5px ridge var(--parchment); }
.notion-image.large { min-height: 220px; }
.coming-soon { color: #665542; font: bold .75rem/1.2 "Courier New", monospace; }

.sidebar { min-width: 0; }
.side-box { margin-bottom: 15px; padding: 11px; background: var(--parchment); border: 3px ridge var(--paper); }
.side-box h2 { margin: -11px -11px 10px; padding: 6px 8px; color: var(--paper); background: var(--brown); font: bold .88rem/1.2 Georgia, serif; letter-spacing: .08em; }
.link-list { margin: 0; padding-left: 20px; }
.link-list li { margin-bottom: 8px; }
.updates dl, .facts dl { margin: 0; }
.updates dt { margin-top: 9px; color: var(--forest); font: bold .75rem/1.2 "Courier New", monospace; }
.updates dd { margin: 2px 0 0; font-size: .86rem; }
.availability { text-align: center; }
.availability p { line-height: 1.8; }
.lamp { margin: 0; color: #e36c36; font-size: 2rem; text-shadow: 0 0 8px var(--orange); }
.web-badges { display: flex; gap: 7px; justify-content: center; }
.web-badges span { width: 88px; padding: 4px; color: var(--paper); text-align: center; background: var(--forest-deep); border: 2px outset var(--parchment); font: .65rem/1.05 "Courier New", monospace; }
.web-badges b { color: var(--mustard); font-size: .9rem; }

footer { padding: 13px 18px; color: var(--paper); text-align: center; background: var(--forest-deep); border-top: 6px solid var(--orange); font: .73rem/1.5 "Courier New", monospace; }
footer p { margin: 4px 0; }
footer a { color: var(--mustard); }
.counter span { padding: 2px 5px; color: #f56b42; background: #080806; border: 2px inset #777; letter-spacing: .16em; }

.inner-page { padding: 22px; }
.breadcrumb { margin: 0 0 20px; font: .76rem/1.3 "Courier New", monospace; }
.page-title { padding-bottom: 11px; border-bottom: 3px double var(--olive); font-size: 2rem; }
.lede { max-width: 610px; margin: 0 auto 26px; color: #55483b; text-align: center; font: italic 1.08rem/1.5 Georgia, serif; }
.case-file { position: relative; margin: 36px 0; }
.case-label { position: absolute; top: -16px; left: 12px; padding: 5px 9px; color: var(--paper); background: var(--forest); border: 2px solid var(--brown); font: bold .76rem/1 "Courier New", monospace; }
.orange-label { background: var(--orange); }
.case-grid { display: grid; grid-template-columns: minmax(220px, .9fr) 1.2fr; gap: 20px; align-items: start; }
.case-file h4 { margin-bottom: 5px; color: var(--orange); font: bold .85rem/1.2 "Courier New", monospace; }
.contact-strip { padding: 12px; color: var(--paper); text-align: center; background: var(--olive); border: 3px ridge var(--paper); font-weight: bold; }

.listening-room { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; margin-bottom: 30px; }
.tape { height: 112px; position: relative; display: flex; align-items: center; justify-content: space-around; padding: 18px; background: var(--brown); border: 7px ridge var(--parchment); border-radius: 5px; }
.tape::after { content: "SABI MIX 01"; position: absolute; inset: 8px 20px auto; padding: 2px; color: var(--brown); text-align: center; background: var(--cream); font: bold .65rem/1 "Courier New", monospace; }
.tape span { width: 45px; height: 45px; margin-top: 15px; background: var(--paper); border: 9px dotted var(--forest); border-radius: 50%; }
.listening-room h3 { margin-top: 0; color: var(--forest); font: bold 1.1rem/1.3 Georgia, serif; }
.archive-entry { display: grid; grid-template-columns: 105px 1fr; gap: 18px; padding: 18px 10px; border-bottom: 2px dotted var(--olive); }
.archive-entry:last-child { border-bottom: 0; }
.year { color: var(--mustard); font: bold 2.2rem/1 Georgia, serif; text-shadow: 2px 2px 0 var(--orange); }

.bio-grid { display: grid; grid-template-columns: 240px 1fr; gap: 23px; align-items: start; }
.facts { margin-top: 26px; }
.facts dl { display: grid; grid-template-columns: 150px 1fr; }
.facts dt, .facts dd { margin: 0; padding: 7px; border-bottom: 1px dotted var(--olive); }
.facts dt { color: var(--forest); font: bold .78rem/1.4 "Courier New", monospace; }
.contact-card { margin-top: 28px; padding: 24px; color: var(--paper); text-align: center; background: var(--forest); border: 6px ridge var(--parchment); }
.contact-card h2 { margin-top: 4px; color: var(--mustard); font-family: Georgia, serif; }
.contact-card a { color: var(--mustard); }
.big-email { font: bold clamp(.9rem, 3vw, 1.3rem)/1.3 "Courier New", monospace; }
.small-print { color: var(--parchment); font-size: .76rem; }

@media (max-width: 700px) {
  body { padding-inline: 7px; }
  .page-shell { border-width: 3px; }
  .site-header { padding-inline: 12px; }
  .main-nav { flex-wrap: wrap; }
  .main-nav a { flex: 1 1 42%; text-align: center; }
  .ticker { white-space: normal; }
  .home-grid { grid-template-columns: 1fr; padding: 12px; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .side-box { margin: 0; }
  .web-badges { grid-column: 1 / -1; }
  .case-grid, .bio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 470px) {
  .project-card, .listening-room, .archive-entry { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .web-badges { grid-column: auto; }
  .inner-page { padding: 14px; }
  .facts dl { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
}

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

/* Notion-backed project case studies */
.project-page { padding-top: 18px; }
.project-masthead { margin: 8px 0 24px; padding: 22px 12px 20px; text-align: center; border-block: 3px double var(--olive); }
.project-masthead h2 { margin: 2px 0 5px; color: var(--forest); font: bold clamp(2rem, 7vw, 4.2rem)/.98 Georgia, serif; letter-spacing: .025em; }
.project-kicker, .project-years { margin: 0; color: #665542; font: bold .78rem/1.4 "Courier New", monospace; letter-spacing: .08em; text-transform: uppercase; }
.project-years { margin-top: 8px; color: var(--orange); font-size: .9rem; }
.project-section { margin: 30px 0; }
.project-intro { max-width: 680px; margin: 0 auto; font: 1.08rem/1.65 Georgia, serif; }
.project-media { margin: 20px 0; }
.project-media img, .project-media video { display: block; width: 100%; height: auto; background: var(--brown); border: 5px ridge var(--parchment); }
.project-media video { max-height: 72vh; object-fit: contain; }
.project-media figcaption { margin-top: 6px; color: #665542; font: bold .72rem/1.35 "Courier New", monospace; letter-spacing: .04em; text-transform: uppercase; }
.hero-media { margin: 0 0 34px; }
.hero-media img, .hero-media video { max-height: 72vh; object-fit: cover; }
.signal-path { margin: 20px 0; padding: 16px; color: var(--paper); background: var(--forest-deep); border: 4px ridge var(--parchment); text-align: center; }
.signal-path span { display: block; margin-bottom: 7px; color: var(--mustard); font: bold .72rem/1.2 "Courier New", monospace; letter-spacing: .14em; }
.signal-path strong { font: bold clamp(.9rem, 2.5vw, 1.12rem)/1.55 "Courier New", monospace; }
.compact-list { columns: 2; gap: 30px; padding-left: 22px; }
.compact-list li { break-inside: avoid; margin-bottom: 6px; }
.release-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.archive-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.archive-media-grid .placement-artifact { max-width: 330px; justify-self: center; }
.credits-copy { padding: 16px; background: var(--paper); border: 2px dotted var(--olive); font: .88rem/1.7 "Courier New", monospace; }
.project-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 34px 0 12px; padding-top: 24px; border-top: 3px double var(--olive); }
.audio-media audio { width: 100%; }
.embed-media iframe { width: 100%; min-height: 420px; border: 5px ridge var(--parchment); background: var(--paper); }
.project-loading { padding: 50px 10px; text-align: center; }

@media (max-width: 700px) {
  .release-grid, .archive-media-grid { grid-template-columns: 1fr; }
  .compact-list { columns: 1; }
  .project-masthead { padding-inline: 4px; }
}

/* CMS-controlled About portrait */
.portrait-frame { min-height: 300px; position: relative; }
.about-portrait { display: none; width: 100%; min-height: 300px; height: 100%; object-fit: cover; border: 5px ridge var(--parchment); }
.about-portrait.is-loaded { display: block; }
.portrait-frame .portrait-fallback { height: 100%; margin: 0; }
.portrait-frame .portrait-fallback[hidden] { display: none; }
