:root {
  --bg: #10100f;
  --bg-soft: #171715;
  --panel: #1d1c19;
  --paper: #e8e2d4;
  --muted: #a59f93;
  --line: rgba(232, 226, 212, 0.15);
  --line-strong: rgba(232, 226, 212, 0.28);
  --rust: #b96545;
  --olive: #89906b;
  --ink: #111110;
  --serif: "Iowan Old Style", "Baskerville", "Songti SC", "STSong", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: min(1240px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% 10%, rgba(185, 101, 69, 0.08), transparent 26rem),
    radial-gradient(circle at 10% 36%, rgba(137, 144, 107, 0.06), transparent 30rem),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.5;
  min-height: 100vh;
}
button, a { color: inherit; }
button { font: inherit; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}
.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-style: italic;
  letter-spacing: -0.08em;
}
.site-header nav { display: flex; gap: 30px; }
.site-header nav a,
.local-time {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.site-header nav a { transition: color 180ms ease; }
.site-header nav a:hover { color: var(--paper); }
.local-time { justify-self: end; margin: 0; }

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 42px 0 52px;
  border-bottom: 1px solid var(--line);
}
.hero-meta,
.hero-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.hero-meta > span:first-child::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--rust);
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
}
.live-dot { display: inline-flex; align-items: center; gap: 9px; }
.live-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 6px rgba(137, 144, 107, 0.08);
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.42; transform: scale(0.84); } }
.hero-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 4vw;
  padding: 10vh 0 8vh;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(7rem, 21vw, 18rem);
  font-weight: 400;
  line-height: 0.66;
  letter-spacing: -0.095em;
  transform: translateX(-0.04em);
}
.hero-copy > p {
  margin: 0 0 0.2em;
  max-width: 470px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.7vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.hero-foot {
  align-items: end;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
  line-height: 1.7;
}
.hero-foot p { margin: 0; }
.updated { color: #757067; text-align: right; }

.now,
.films,
.sounds,
.reading-section,
.building-section { padding: 116px 0; border-bottom: 1px solid var(--line); }
.section-heading {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 52px;
}
.section-heading > p,
.section-heading > span {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.status-card {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--paper);
  text-align: left;
  padding: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}
.status-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: #211f1c;
}
.status-card:focus-visible,
.text-link:focus-visible,
#drawer-close:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}
.listening-card { grid-column: span 6; background: #1b1b19; }
.watching-card,
.reading-card,
.building-card { grid-column: span 2; }
.card-index,
.card-kicker {
  position: absolute;
  top: 21px;
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.card-index { left: 22px; }
.card-kicker { right: 22px; }
.card-arrow {
  position: absolute;
  right: 21px;
  bottom: 18px;
  color: var(--muted);
  font-size: 1.1rem;
}
.card-copy { position: absolute; left: 22px; right: 22px; bottom: 22px; padding-right: 22px; }
.card-copy h3,
.music-copy h3 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 2.35rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.card-copy p,
.music-copy p { margin: 0; color: var(--muted); font-size: 0.76rem; }

.listening-card {
  display: grid;
  grid-template-columns: 46% 1fr;
  align-items: center;
  gap: 30px;
}
.record {
  width: min(31vw, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 42px auto 0;
  background:
    radial-gradient(circle at center, #d8c8a3 0 6%, #7d3d2e 6.5% 12%, #111 12.5% 14%, transparent 14.5%),
    repeating-radial-gradient(circle at center, #171716 0 2px, #2a2926 2.8px 3.8px, #151514 4.4px 7px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.42);
  position: relative;
  animation: spin 14s linear infinite;
  animation-play-state: paused;
}
.record.playing { animation-play-state: running; }
.record::after {
  content: "";
  position: absolute;
  inset: 2.5%;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.06);
}
@keyframes spin { to { transform: rotate(360deg); } }
.music-copy { align-self: end; padding-bottom: 18px; }
.play-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rust);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.play-state::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.progress { width: 100%; height: 2px; border: 0; background: rgba(232,226,212,0.14); margin: 28px 0 9px; overflow: hidden; appearance: none; display: block; }
.progress::-webkit-progress-bar { background: rgba(232,226,212,0.14); }
.progress::-webkit-progress-value { background: var(--paper); transition: width 700ms linear; }
.progress::-moz-progress-bar { background: var(--paper); }
.music-meta { display: flex; justify-content: space-between; color: #7c776e; font-family: var(--mono); font-size: 0.61rem; }

.poster-window,
.book-window {
  position: absolute;
  top: 67px;
  left: 22px;
  right: 22px;
  height: 150px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(185,101,69,0.76), rgba(55,38,31,0.9)),
    #33231f;
  overflow: hidden;
}
.book-window { background: linear-gradient(135deg, rgba(137,144,107,0.78), rgba(36,40,30,0.96)); }
.poster-window img,
.book-window img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) contrast(0.96); }
.poster-window span,
.book-window span { font-family: var(--serif); font-size: 2.5rem; letter-spacing: 0.12em; color: rgba(232,226,212,0.75); }
.build-mark {
  position: absolute;
  top: 86px;
  left: 22px;
  width: 112px;
  height: 112px;
}
.build-mark span { position: absolute; border: 1px solid rgba(232,226,212,0.25); width: 64px; height: 64px; }
.build-mark span:nth-child(1) { top: 0; left: 0; }
.build-mark span:nth-child(2) { top: 24px; left: 24px; border-color: rgba(185,101,69,0.55); }
.build-mark span:nth-child(3) { top: 48px; left: 48px; }

.efficiency-strip {
  margin-top: 14px;
  border: 1px solid var(--line);
  min-height: 124px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr 1.4fr;
  align-items: center;
  gap: 28px;
  padding: 24px 30px;
}
.efficiency-strip > div:not(.rule) { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: start; column-gap: 4px; }
.efficiency-strip span { grid-column: 1 / -1; color: var(--muted); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.12em; }
.efficiency-strip strong { font-family: var(--serif); font-size: 2.7rem; font-weight: 400; line-height: 1; }
.efficiency-strip em { font-style: normal; color: var(--muted); font-size: 0.75rem; }
.efficiency-strip .rule { width: 1px; height: 44px; background: var(--line); }
.efficiency-strip > p { margin: 0; color: var(--muted); font-family: var(--serif); font-style: italic; text-align: right; }

.film-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.film-card { min-width: 0; }
.film-cover {
  aspect-ratio: 0.72;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(185,101,69,0.85), rgba(29,28,25,0.85)),
    var(--panel);
  border: 1px solid var(--line);
}
.film-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease, filter 500ms ease; filter: saturate(0.78); }
.film-card:hover img { transform: scale(1.025); filter: saturate(1); }
.film-number { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: 0.63rem; background: rgba(16,16,15,0.72); padding: 5px 7px; }
.film-fallback { height: 100%; display: grid; place-items: center; font-family: var(--serif); font-size: 4rem; opacity: 0.72; }
.film-info { display: flex; justify-content: space-between; gap: 16px; padding-top: 13px; }
.film-info h3 { margin: 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 400; line-height: 1.08; }
.film-info p { margin: 4px 0 0; color: var(--muted); font-size: 0.69rem; }
.film-rating { white-space: nowrap; color: var(--rust); font-family: var(--mono); font-size: 0.68rem; }
.text-link {
  margin-top: 42px;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  cursor: pointer;
  color: var(--paper);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}
.text-link span { margin-left: 12px; }

.sound-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.artist-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: baseline;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  padding: 18px 28px 18px 0;
}
.artist-row:last-child { border-bottom: 0; }
.artist-row span { color: var(--muted); font-family: var(--mono); font-size: 0.65rem; }
.artist-row strong { font-family: var(--serif); font-size: clamp(1.4rem, 2.5vw, 2.55rem); font-weight: 400; letter-spacing: -0.025em; }
.artist-row em { font-style: normal; color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; }
.genre-panel { border-left: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; }
.genre-panel > p { margin: 0 0 28px; color: var(--muted); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.14em; }
.genre-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.genre-cloud span { border: 1px solid var(--line); border-radius: 99px; padding: 8px 11px; color: #c5bfb3; font-size: 0.69rem; }
.genre-panel blockquote { margin: auto 0 0; padding-top: 80px; font-family: var(--serif); font-size: 1.55rem; line-height: 1.25; color: var(--muted); }

.book-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px 14px;
}
.book-card { min-width: 0; }
.book-cover {
  aspect-ratio: 0.69;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #62684d, #24261e);
  overflow: hidden;
  box-shadow: 10px 14px 24px rgba(0,0,0,0.2);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.72); transition: filter 300ms ease, transform 300ms ease; }
.book-card:hover img { filter: saturate(1); transform: scale(1.02); }
.book-card h3 { margin: 14px 0 4px; font-family: var(--serif); font-weight: 400; font-size: 1.02rem; line-height: 1.16; }
.book-card p { margin: 0; color: var(--muted); font-size: 0.67rem; }

.project-timeline { border-top: 1px solid var(--line); }
.project-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 110px;
  border-bottom: 1px solid var(--line);
}
.project-row > span { color: var(--muted); font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.11em; }
.project-row h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2.25rem); font-weight: 400; letter-spacing: -0.02em; }
.project-row time { color: var(--muted); font-family: var(--mono); font-size: 0.64rem; }

.site-footer {
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--muted);
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.site-footer a { justify-self: end; }
.site-footer p:nth-child(2) { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1rem; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(4px);
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(600px, 92vw);
  z-index: 50;
  background: #171715;
  border-left: 1px solid var(--line-strong);
  transform: translateX(102%);
  transition: transform 320ms cubic-bezier(.2,.72,.2,1);
  display: grid;
  grid-template-rows: auto 1fr;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  min-height: 128px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 30px;
}
.drawer-head p { margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.64rem; }
.drawer-head h2 { margin: 0; font-family: var(--serif); font-size: 2.5rem; font-weight: 400; }
#drawer-close { border: 1px solid var(--line); width: 42px; height: 42px; border-radius: 50%; background: none; color: var(--paper); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.drawer-body { overflow: auto; padding: 12px 30px 50px; }
.drawer-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}
.drawer-item > span:first-child { color: var(--muted); font-family: var(--mono); font-size: 0.62rem; }
.drawer-item h3 { margin: 0 0 3px; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; line-height: 1.1; }
.drawer-item p { margin: 0; color: var(--muted); font-size: 0.68rem; }
.drawer-item > em { font-style: normal; color: var(--rust); font-family: var(--mono); font-size: 0.65rem; }
.drawer-hero { padding: 28px 0 34px; border-bottom: 1px solid var(--line); }
.drawer-hero strong { display: block; font-family: var(--serif); font-size: 3.2rem; font-weight: 400; line-height: 0.95; }
.drawer-hero p { color: var(--muted); }
body.drawer-open { overflow: hidden; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: none; }
.empty { color: var(--muted); padding: 28px 0; font-family: var(--serif); font-style: italic; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 32px, 900px); }
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero-copy { display: block; }
  .hero-copy > p { margin-top: 60px; }
  .listening-card { grid-column: 1 / -1; }
  .watching-card, .reading-card, .building-card { grid-column: span 4; }
  .efficiency-strip { grid-template-columns: repeat(3, 1fr); }
  .efficiency-strip .rule { display: none; }
  .efficiency-strip > p { grid-column: 1 / -1; text-align: left; }
  .film-grid { grid-template-columns: repeat(3, 1fr); }
  .book-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 700px) {
  :root { --shell: calc(100vw - 28px); }
  .site-header { height: 68px; }
  .local-time { font-size: 0.58rem; }
  .hero { min-height: calc(100svh - 68px); padding: 28px 0 30px; }
  .hero-meta { font-size: 0.58rem; }
  .hero h1 { font-size: clamp(6rem, 38vw, 10rem); line-height: 0.72; }
  .hero-copy { padding: 15vh 0 10vh; }
  .hero-copy > p { margin-top: 38px; font-size: 1.75rem; }
  .hero-foot { display: block; font-size: 0.7rem; }
  .updated { text-align: left; margin-top: 14px !important; }
  .now, .films, .sounds, .reading-section, .building-section { padding: 78px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 10px; margin-bottom: 34px; }
  .section-heading > p { margin: 0; }
  .section-heading > span { justify-self: start; }
  .status-grid { display: block; }
  .status-card { width: 100%; margin-bottom: 12px; min-height: 330px; }
  .listening-card { grid-template-columns: 1fr 1fr; min-height: 390px; }
  .record { width: 42vw; }
  .card-copy h3, .music-copy h3 { font-size: 1.7rem; }
  .watching-card, .reading-card, .building-card { min-height: 300px; }
  .efficiency-strip { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px 16px; }
  .efficiency-strip strong { font-size: 2rem; }
  .efficiency-strip span { font-size: 0.52rem; }
  .film-grid { grid-template-columns: repeat(2, 1fr); }
  .film-grid .film-card:nth-child(n+5) { display: none; }
  .sound-layout { grid-template-columns: 1fr; }
  .genre-panel { border-left: 0; border-top: 1px solid var(--line); min-height: 390px; }
  .artist-row { grid-template-columns: 35px 1fr; }
  .artist-row em { grid-column: 2; margin-top: 4px; }
  .book-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 10px; }
  .book-grid .book-card:nth-child(n+7) { display: none; }
  .book-card h3 { font-size: 0.88rem; }
  .project-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .site-footer { grid-template-columns: 1fr auto; gap: 18px; padding: 40px 0; min-height: 150px; }
  .site-footer p:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
