/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --cream:        #F2ECDF;
  --cream-dim:    #E8E0CE;
  --paper:        #FBF8F1;
  --charcoal:     #211E1B;
  --charcoal-2:   #2C2822;
  --grey:         #6F675C;
  --grey-light:   #A79E8F;
  --grey-line:    #D6CCB8;
  --orange:       #D9622B;
  --orange-dim:   #B84A1C;
  --orange-tint:  #F0AD82;

  --font-display: 'Archivo Black', 'Arial Narrow', sans-serif;
  --font-body:    'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --edge: 1px solid var(--grey-line);
  --edge-dark: 1px solid rgba(242, 236, 223, 0.16);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.dark { background: var(--charcoal); color: var(--cream); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}

/* =========================================================
   HEADER + CHANNEL SELECTOR (signature nav)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: var(--edge);
}
body.dark .site-header {
  background: var(--charcoal);
  border-bottom: var(--edge-dark);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.logo span { color: var(--orange); }

.channel-nav {
  display: flex;
  gap: 2px;
  border: var(--edge);
  background: var(--paper);
}
body.dark .channel-nav { border: var(--edge-dark); background: rgba(255,255,255,0.03); }

.channel {
  position: relative;
  padding: 12px 18px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--grey);
  border-right: var(--edge);
  transition: color 0.15s ease;
}
body.dark .channel { border-right: var(--edge-dark); color: var(--grey-light); }
.channel:last-child { border-right: none; }

.channel::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--grey-line);
}
body.dark .channel::before { background: rgba(255,255,255,0.18); }

.channel:hover { color: var(--charcoal); }
body.dark .channel:hover { color: var(--cream); }

.channel.active { color: var(--orange); }
.channel.active::before {
  background: var(--orange);
  box-shadow: 0 0 6px 1px rgba(217, 98, 43, 0.7);
}

.nav-toggle {
  display: none;
  background: none;
  border: var(--edge);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  .channel-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    display: none;
  }
  .channel-nav.open { display: flex; }
  .channel { border-right: none; border-bottom: var(--edge); padding: 14px 20px; }
  body.dark .channel { border-bottom: var(--edge-dark); }
  .channel::before { left: 20px; transform: none; }
  .nav-toggle { display: block; }
  .header-row { position: relative; }
}

/* =========================================================
   READOUT STRIP (medium-specific texture bar under header)
   ========================================================= */
.readout {
  height: 34px;
  border-bottom: var(--edge);
  overflow: hidden;
  position: relative;
  background: var(--cream-dim);
}
body.dark .readout { background: var(--charcoal-2); border-bottom: var(--edge-dark); }

.readout-inner {
  display: flex;
  align-items: flex-end;
  height: 100%;
  gap: 3px;
  padding: 0 32px;
  max-width: var(--max);
  margin: 0 auto;
}

/* waveform variant */
.readout.waveform .bar {
  width: 2px;
  background: var(--grey-light);
  animation: pulse 2.6s ease-in-out infinite;
}
.readout.waveform .bar:nth-child(odd) { background: var(--orange-tint); }
@keyframes pulse {
  0%, 100% { height: 20%; }
  50% { height: 85%; }
}

/* timecode / scrubber variant */
.readout.timecode { display: flex; align-items: center; }
.readout.timecode .readout-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tc-track {
  flex: 1;
  height: 2px;
  background: var(--grey-line);
  position: relative;
  margin: 0 20px;
}
body.dark .tc-track { background: rgba(255,255,255,0.14); }
.tc-track::after {
  content: "";
  position: absolute;
  left: 22%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.tc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-light);
  letter-spacing: 0.06em;
}

/* frame counter variant */
.readout.frames .readout-inner {
  justify-content: space-between;
  align-items: center;
}
.frame-tick {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-light);
  border-left: var(--edge);
  padding-left: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .readout.waveform .bar { animation: none; height: 45%; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 96px 0 80px;
  border-bottom: var(--edge);
}
body.dark .hero { border-bottom: var(--edge-dark); }

.hero h1 {
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.98;
  margin: 18px 0 26px;
  max-width: 14ch;
}
.hero .lede {
  max-width: 52ch;
  font-size: 18px;
  color: var(--grey);
}
body.dark .hero .lede { color: var(--grey-light); }

.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-meta div {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
  padding-top: 8px;
  min-width: 130px;
}
.hero-meta div:first-child,
.hero-meta div:nth-child(2) {
  border-top: 2px solid var(--orange);
}
body.dark .hero-meta div { color: var(--grey-light); }
.hero-meta strong {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  color: inherit;
  font-weight: 600;
  margin-bottom: 3px;
}
body.dark .hero-meta strong { color: var(--cream); }
.hero:not(.dark) .hero-meta strong { color: var(--charcoal); }

/* =========================================================
   MEDIUM CARDS (home)
   ========================================================= */
.medium-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  justify-content: center;
  width: min(100%, 860px);
  margin: 0 auto;
  border-top: var(--edge);
  border-left: var(--edge);
}
.medium-card {
  border-right: var(--edge);
  border-bottom: var(--edge);
  padding: 24px 24px 28px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: background 0.2s ease;
}
.medium-card:hover { background: var(--paper); }
.medium-card h3 { font-size: 26px; margin-bottom: 14px; }
.medium-card p { color: var(--grey); font-size: 14px; max-width: 30ch; }
.medium-card .go {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.medium-card .icon { height: 40px; }

.medium-card-media {
  border: var(--edge);
  background: var(--paper);
  overflow: hidden;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.audio-wave-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding: 10px 12px 8px;
  background: linear-gradient(180deg, rgba(217, 98, 43, 0.04), rgba(242, 236, 223, 0.94));
}

.audio-wave {
  display: block;
  width: 7px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--orange-tint) 0%, var(--orange) 100%);
  min-height: 10px;
  opacity: 0.95;
  flex: 1 1 auto;
  max-width: 10px;
}

.pulse-1 { height: 18%; }
.pulse-2 { height: 30%; }
.pulse-3 { height: 56%; }
.pulse-4 { height: 42%; }
.pulse-5 { height: 86%; }
.pulse-6 { height: 52%; }
.pulse-7 { height: 78%; }
.pulse-8 { height: 36%; }
.pulse-9 { height: 68%; }
.pulse-10 { height: 46%; }
.pulse-11 { height: 58%; }
.pulse-12 { height: 24%; }

.timeline-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(217, 98, 43, 0.05), rgba(242, 236, 223, 0.96));
  padding: 8px 10px 10px;
  overflow: hidden;
}

.timeline-ruler {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 8px;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    rgba(47,45,40,0.25) 0,
    rgba(47,45,40,0.25) 5px,
    transparent 5px,
    transparent 12px
  );
  border-radius: 2px;
}

.timeline-track {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 26px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  background: rgba(47,45,40,0.04);
  border: 1px solid rgba(47,45,40,0.18);
}

.clip-segment {
  display: block;
  height: 54%;
  border: 1px solid rgba(47,45,40,0.3);
  background: linear-gradient(180deg, rgba(217,98,43,0.26), rgba(47,45,40,0.12));
}

.clip-a { flex: 1.3; }
.clip-b { flex: 1.6; background: linear-gradient(180deg, rgba(217,98,43,0.32), rgba(47,45,40,0.14)); }
.clip-c { flex: 1.1; }

.playhead {
  position: absolute;
  left: 52%;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--orange);
  box-shadow: 0 0 0 1px rgba(217,98,43,0.25);
}
.playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 12px solid var(--orange);
}

.photo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(166, 157, 146, 0.08), rgba(242, 236, 223, 0.92));
}

.photo-lens {
  position: relative;
  width: 52px;
  height: 52px;
  border: 2px solid var(--grey);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(217, 98, 43, 0.17) 0 22%, rgba(242, 236, 223, 0.8) 23% 54%, rgba(112, 107, 96, 0.82) 55% 100%);
  box-shadow: inset 0 0 0 6px rgba(242, 236, 223, 0.8);
  flex-shrink: 0;
}

.photo-lens::before,
.photo-lens::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(46, 42, 36, 0.6);
}
.photo-lens::after {
  inset: 22px;
  border-color: rgba(217, 98, 43, 0.8);
}

.photo-strip {
  position: relative;
  width: 120px;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.photo-strip i {
  display: block;
  flex: 1;
  height: 100%;
  border: 1px solid rgba(47, 45, 40, 0.65);
  background: repeating-linear-gradient(90deg, rgba(217, 98, 43, 0.16), rgba(217, 98, 43, 0.16) 2px, transparent 2px, transparent 6px);
}

@media (max-width: 820px) {
  .medium-grid { grid-template-columns: 1fr; }
}

/* icon graphics */
.icon-bars { display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.icon-bars span { width: 4px; background: var(--orange); }

.icon-strip { display: flex; gap: 3px; height: 30px; }
.icon-strip i {
  flex: 1;
  border: 1px solid var(--grey-light);
  background: repeating-linear-gradient(180deg, var(--grey-line) 0 4px, transparent 4px 8px);
}

.icon-frames { display: flex; gap: 4px; }
.icon-frames b {
  width: 24px; height: 24px;
  border: 1px solid var(--grey-light);
  display: block;
  position: relative;
}
.icon-frames b::after {
  content:"";
  position: absolute; inset: 4px;
  border: 1px solid var(--orange-tint);
}

/* =========================================================
   WORK STRIP (home selected work)
   ========================================================= */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 56px 0 24px;
}
.section-head h2 { font-size: 22px; }
.section-head .eyebrow { margin-bottom: 6px; display:block; }

.work-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--grey-line);
  border: var(--edge);
  margin-bottom: 80px;
}
.work-tile {
  background: var(--cream);
  padding: 22px 18px 18px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}
.work-tile:hover,
.work-tile:focus-visible {
  background: var(--paper);
  transform: translateY(-1px);
}
.work-tile .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.work-tile h4 { font-family: var(--font-body); font-weight: 600; font-size: 15px; margin: 0 0 4px; text-transform: none; }
.work-tile span.sub { font-family: var(--font-mono); font-size: 11px; color: var(--grey); }
.work-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: linear-gradient(160deg, var(--orange-tint), transparent 60%);
  mix-blend-mode: multiply;
}
.work-tile-video {
  padding: 0;
}
.work-tile-video .work-tile-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.1) brightness(0.75);
}
.work-tile-video .work-tile-copy {
  position: relative;
  z-index: 1;
  padding: 22px 18px 18px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.12), rgba(15, 15, 15, 0.7));
}
.work-tile-video .tag,
.work-tile-video h4,
.work-tile-video .sub {
  color: var(--cream);
}
.work-tile-video .sub {
  opacity: 0.9;
}
@media (max-width: 900px) { .work-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .work-strip { grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: var(--edge);
  padding: 56px 0 40px;
  background: var(--charcoal);
  color: var(--cream);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-tint);
  margin: 0 0 12px;
}
.footer-col a, .footer-col p { font-size: 14px; color: var(--grey-light); margin: 0 0 6px; }
.footer-col a:hover { color: var(--cream); }
.footer-big {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 46px);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-big a { border-bottom: 2px solid var(--orange); }

/* =========================================================
   AUDIO PAGE
   ========================================================= */
.tracklist { border-top: var(--edge-dark); }
.track-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 140px 110px;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: var(--edge-dark);
}
.track-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.track-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.track-row .idx { font-family: var(--font-mono); color: var(--orange-tint); font-size: 14px; }
.track-row h4 { font-family: var(--font-body); font-weight: 600; font-size: 17px; margin: 0; text-transform: none; }
.track-row .role { font-size: 13px; color: var(--grey-light); }
.track-row .dur { font-family: var(--font-mono); font-size: 13px; color: var(--grey-light); text-align: right; }
.track-row .type {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(217,98,43,0.4);
  padding: 4px 8px;
  text-align: center;
  border-radius: 2px;
  justify-self: start;
}
.track-row .wave { display:flex; align-items:flex-end; gap:2px; height:22px; }
.track-row .wave span { width:2px; background: rgba(242,236,223,0.35); }

.sample-player-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sample-player {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sample-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(217,98,43,0.4);
  background: rgba(217,98,43,0.04);
  color: var(--orange);
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.sample-toggle:hover {
  background: rgba(217,98,43,0.1);
}
.sample-toggle:active {
  transform: translateY(1px);
}
.sample-toggle.is-playing {
  background: var(--orange);
  color: var(--charcoal);
  border-color: var(--orange);
}
.sample-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
}
.sample-audio {
  display: none;
  width: min(280px, 100%);
  height: 32px;
  accent-color: var(--orange);
}

@media (max-width: 640px) {
  .track-row { grid-template-columns: 32px 1fr; row-gap: 8px; }
  .track-row .type, .track-row .dur { grid-column: 2; justify-self: start; text-align: left; }
  .sample-player { width: 100%; }
  .sample-audio { width: 100%; }
}

/* =========================================================
   VIDEO PAGE
   ========================================================= */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-line);
  border: var(--edge);
}
.reel-card { background: var(--cream); padding: 0; }
.reel-frame {
  aspect-ratio: 16/10;
  position: relative;
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-2));
  overflow: hidden;
  padding: 16px;
}
.reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-upload {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 10px;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  cursor: pointer;
}
.video-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.reel-body { padding: 18px 20px 22px; }
.reel-body h4 { font-family: var(--font-body); font-weight: 600; font-size: 16px; text-transform: none; margin: 0 0 6px; color: var(--charcoal); }
.reel-body p { font-size: 13px; color: var(--grey); margin: 0; }
.reel-card:last-child { grid-column: 2; }
@media (max-width: 900px) { .reel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .reel-card:last-child { grid-column: 1 / -1; width: calc(50% - 0.5px); justify-self: center; } }
@media (max-width: 560px) { .reel-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .reel-card:last-child { width: auto; } }

/* =========================================================
   PHOTOGRAPHY PAGE
   ========================================================= */
.contact-sheet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--grey-line);
  border: var(--edge);
}
.frame-cell {
  background: var(--cream);
  position: relative;
  padding: 14px 14px 40px;
  aspect-ratio: 4/5;
  transition: transform 0.2s ease;
}
.frame-cell:hover { transform: translateY(-3px); background: var(--paper); }
.frame-photo {
  width: 100%;
  height: calc(100% - 56px);
  object-fit: cover;
  display: block;
  border: 1px solid rgba(33, 30, 27, 0.12);
  background: #ddd;
}
.frame-cell .frame-no {
  position: absolute;
  top: 10px; left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
}
.frame-cell .swatch {
  position: absolute;
  top: 34px; left: 12px; right: 12px; bottom: 40px;
  border: 1px solid var(--grey-light);
  background: linear-gradient(150deg, var(--grey-line), var(--paper));
}
.frame-cell .exif {
  position: absolute;
  bottom: 10px; left: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey);
  line-height: 1.5;
}
@media (max-width: 900px) { .contact-sheet { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   SHARED PAGE-INTRO (for audio/video/photo listing pages)
   ========================================================= */
.page-intro { padding: 64px 0 40px; }
.page-intro h1 { font-size: clamp(34px, 6vw, 60px); margin: 16px 0 18px; }
.page-intro p { max-width: 54ch; color: var(--grey-light); font-size: 16px; }
body:not(.dark) .page-intro p { color: var(--grey); }

.section-pad { padding: 40px 0 90px; }
