:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --paper-warm: #ebe5d9;
  --ink: #050505;
  --ink-soft: #303030;
  --ink-muted: #717171;
  --line: #050505;
  --line-soft: rgba(5, 5, 5, 0.16);
  --panel: rgba(255, 255, 255, 0.36);
  --accent: #c42b1c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(5, 5, 5, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.42;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.35), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 22rem);
}

a {
  color: inherit;
}

code {
  border: 1px solid var(--line-soft);
  padding: 0.1rem 0.28rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
}

audio,
video {
  width: 100%;
}

audio {
  margin-top: 1rem;
  filter: grayscale(1);
}

.clip-media {
  margin-top: auto;
  padding-top: 1rem;
}

.clip-media audio {
  margin-top: 0;
}

.container {
  width: min(1320px, calc(100% - 3rem));
  margin: 0 auto;
}

.page-hero {
  border-bottom: 2px solid var(--line);
  padding: 1.2rem 0 3rem;
}

.brand-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 4.5rem;
}

.brand-mark {
  font-size: clamp(2.2rem, 6vw, 6.6rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.brand-meta {
  display: grid;
  gap: 0.18rem;
  justify-items: end;
  color: var(--ink-soft);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: end;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.4rem, 5vw, 5.8rem);
  padding-bottom: 0.7rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3.8rem);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.8rem);
  padding-bottom: 0.4rem;
}

p,
li {
  color: var(--ink-soft);
}

.subtitle {
  max-width: 760px;
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.listen-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem;
}

.panel-label,
.section-kicker,
.clip-meta,
.tag,
.empty-source,
.session-stats dt,
.detail-list dt,
.division-label,
.video-caption,
.brand-meta {
  font-family: "Courier New", Courier, monospace;
  text-transform: uppercase;
}

.panel-label,
.section-kicker,
.clip-meta,
.session-stats dt,
.detail-list dt,
.video-caption {
  color: var(--ink-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.session-stats {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.session-stats div {
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
}

.session-stats dd {
  color: var(--ink);
  font-weight: 800;
}

.instruction-list {
  margin: 1rem 0 0 1.05rem;
  font-size: 0.9rem;
}

.section {
  padding: 2rem 0 5rem;
}

.workflow-panel {
  padding: 1.5rem 0 2rem;
  margin-bottom: 3rem;
}

.workflow-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.workflow-note {
  border-left: 2px solid var(--line);
  padding-left: 1rem;
  font-size: 0.95rem;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.workflow-step {
  min-height: 190px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.18);
}

.workflow-number {
  display: block;
  margin-bottom: 2.8rem;
  color: var(--accent);
  font-family: "Courier New", Courier, monospace;
  font-weight: 800;
}

.workflow-step h3 {
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.workflow-step p {
  font-size: 0.9rem;
}

.audition-list {
  display: grid;
  gap: 1rem;
}

.division-banner {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  border-top: 4px solid var(--line);
  margin-top: 4rem;
  padding: 1rem 0 2rem;
}

.audition-list > .division-banner:first-child {
  margin-top: 0;
}

.division-label {
  color: var(--accent);
  font-size: clamp(2.8rem, 7vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.82;
}

.division-copy h2 {
  max-width: 980px;
  text-transform: uppercase;
}

.division-copy p {
  max-width: 760px;
  margin-top: 1rem;
  font-size: 1.05rem;
}

.audition-section {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 2rem;
  margin-bottom: 1.2rem;
}

.section-copy {
  max-width: 820px;
}

.section-kicker {
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-weight: 800;
}

.section-header > p {
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  font-size: 0.95rem;
}

.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.clip-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
  padding: 1rem;
}

.clip-card.is-playing {
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--line);
}

.clip-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.8rem;
}

.clip-meta {
  color: var(--accent);
  white-space: nowrap;
}

.clip-card p {
  font-size: 0.92rem;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.9rem;
  margin-top: 0.9rem;
}

.detail-list dd {
  color: var(--ink);
  font-size: 0.88rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.tag {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 0.16rem 0.42rem;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.empty-source {
  display: block;
  margin-top: 1rem;
  border: 1px solid var(--accent);
  padding: 0.8rem;
  color: var(--accent);
  font-size: 0.72rem;
}

.clip-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.download-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  padding: 0.45rem 0.7rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.download-button:hover {
  background: var(--accent);
}

.video-section {
  padding-bottom: 2.6rem;
}

.video-shell {
  border: 1px solid var(--line);
  background: var(--ink);
  padding: 0.65rem;
}

.video-shell video {
  display: block;
  max-height: 76vh;
  background: #000;
}

.video-caption {
  margin-top: 0.75rem;
  color: var(--ink-muted);
}

.site-footer {
  border-top: 2px solid var(--line);
  padding: 1rem 0;
  color: var(--ink-muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.error-panel {
  border: 2px solid var(--accent);
  padding: 1rem;
  color: var(--accent);
}

@media (max-width: 920px) {
  .brand-bar,
  .hero-layout,
  .workflow-header,
  .section-header,
  .division-banner {
    grid-template-columns: 1fr;
  }

  .brand-meta {
    justify-items: start;
  }

  .workflow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-header > p {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 0.8rem 0 0;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 1.25rem, 1320px);
  }

  .page-hero {
    padding-top: 0.85rem;
  }

  .brand-bar {
    margin-bottom: 2.6rem;
  }

  .workflow-list,
  .detail-list,
  .site-footer .container {
    display: block;
  }

  .workflow-step + .workflow-step {
    border-top: 0;
  }
}
