/* ═══════════════════════════════════════════
   STILL — v14
   ═══════════════════════════════════════════ */

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

:root{
  --bg:#E8E4E0;
  --ink:#000;
  --ink-soft:rgba(0,0,0,.35);
  --ink-faint:rgba(0,0,0,.2);
  --font:'DM Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
  --pad:clamp(16px,2.2vw,32px);
}

html,body{
  width:100%;height:100%;overflow:hidden;
  background:var(--bg);color:var(--ink);
  cursor:default;-webkit-user-select:none;user-select:none;
  -webkit-touch-callout:none;
  font-family:var(--font);
  font-size:14px;font-weight:400;
  line-height:1.45;letter-spacing:.01em;
  -webkit-font-smoothing:antialiased;
}
img{-webkit-user-drag:none;pointer-events:none}

/* ═══════════════════════════════════════
   COLUMNS
   ═══════════════════════════════════════ */
.col-left{
  position:fixed;top:0;left:0;
  width:clamp(320px,58vw,62vw);
  height:100%;background:var(--bg);
  z-index:10;display:flex;flex-direction:column;
  overflow:hidden;cursor:auto;
}
.col-right{
  position:fixed;top:0;
  left:clamp(320px,58vw,62vw);
  right:0;bottom:0;
  overflow:hidden;background:#C8C4BE;
}

/* ═══════════════════════════════════════
   TOPBAR
   ═══════════════════════════════════════ */
.topbar{
  display:flex;justify-content:space-between;align-items:center;
  padding:18px var(--pad);flex-shrink:0;
  border-bottom:1px solid #000;
}
.nav-left,.nav-right{
  font-size:11px;font-weight:400;
  letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink);
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero-block{
  padding:clamp(36px,6vh,72px) var(--pad) 0;
  flex-shrink:0;
}
.hero-title{
  font-size:clamp(56px,10vw,130px);
  font-weight:700;line-height:.86;
  letter-spacing:-.04em;text-transform:uppercase;
  color:#000;
  transition:opacity .3s ease-out;
}
.hero-title.switching{opacity:0}

.num-row{
  display:flex;gap:clamp(10px,1.6vw,22px);
  margin-top:clamp(12px,1.8vh,24px);
}
.num{
  font-size:13px;font-weight:500;
  letter-spacing:.06em;color:var(--ink-faint);
  cursor:pointer;transition:color 0ms,font-weight 0ms;
}
.num.active{color:#000}

/* ═══════════════════════════════════════
   CONTENT ROW
   ═══════════════════════════════════════ */
.content-row{
  display:flex;align-items:flex-start;
  gap:clamp(20px,3vw,48px);
  margin-top:clamp(16px,2.5vh,32px);
}
.quote-block{
  display:flex;flex-direction:column;
  flex-shrink:1;max-width:340px;
}
.quote-rule{
  height:1px;background:#000;width:100%;
  margin-bottom:clamp(10px,1.2vh,16px);
}
.quote{
  font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(12px,1.1vw,14px);
  font-weight:400;font-style:italic;
  line-height:1.7;letter-spacing:.005em;
  color:#000;
  transition:opacity .3s ease-out;
}
.quote.switching{opacity:0}

.channel-info{
  display:flex;gap:clamp(10px,1.2vw,18px);
  align-items:flex-start;flex-shrink:0;
  margin-left:auto;
}
.ch-label{
  font-size:11px;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;
  color:#000;white-space:nowrap;padding-top:2px;
}
.ch-rule-v{
  width:1px;align-self:stretch;
  background:#000;min-height:80px;
}
.ch-names{display:flex;flex-direction:column}
.ch-name{
  font-size:12px;font-weight:500;
  letter-spacing:.06em;color:var(--ink-faint);
  line-height:2;cursor:pointer;
  transition:color 0ms,font-weight 0ms;
}
.ch-name.active{color:#000}

/* ═══════════════════════════════════════
   SPACER
   ═══════════════════════════════════════ */
.spacer{flex:1;min-height:0}

/* ═══════════════════════════════════════
   VOLUME INDICATOR — pure black
   ═══════════════════════════════════════ */
.vol-indicator{
  display:flex;align-items:center;gap:clamp(12px,1.5vw,20px);
  padding:0 var(--pad);flex-shrink:0;
  opacity:0;transition:opacity .4s ease-out;
}
.vol-indicator.visible{opacity:1}
.vol-bar{
  flex:1;max-width:200px;height:2px;
  background:rgba(0,0,0,.15);position:relative;
}
.vol-fill{
  position:absolute;top:0;left:0;
  height:100%;background:#000;
  transition:width .15s ease-out;
}
.vol-text{
  font-size:11px;font-weight:600;
  letter-spacing:.04em;color:#000;
  white-space:nowrap;min-width:36px;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer{
  display:flex;justify-content:space-between;align-items:flex-end;
  padding:0 var(--pad) 20px;
  flex-shrink:0;pointer-events:none;
}
.footer-left{
  font-size:12px;font-weight:600;
  letter-spacing:.04em;color:#000;
}
.footer-right{
  font-size:11px;font-weight:400;
  letter-spacing:.06em;color:#000;
  text-align:right;line-height:1.6;
}

/* ═══════════════════════════════════════
   WAVE CANVAS — soundwave flowing lines
   Subtle, behind all text content
   ═══════════════════════════════════════ */
#wave-canvas{
  position:absolute;inset:0;z-index:1;
  width:100%;height:100%;
  pointer-events:none;
  opacity:0;
  transition:opacity 2s ease-out;
}
#wave-canvas.active{opacity:.12}
body:not(.paused) #wave-canvas.active{opacity:.12}
body.paused #wave-canvas.active{opacity:0}

/* ═══════════════════════════════════════
   GALLERY — 1.4s crossfade
   ═══════════════════════════════════════ */
.gallery{width:100%;height:100%;position:relative}
.slide{
  position:absolute;inset:0;
  opacity:0;transition:opacity 1.4s ease-out;
  will-change:opacity;overflow:hidden;
}
.slide.active{opacity:1}
.slide img{
  width:100%;height:100%;object-fit:cover;object-position:center;display:block;
  will-change:transform;
}

/* Breathing zoom — only when playing */
body:not(.paused) .slide.active img{
  animation:breathe 20s ease-in-out infinite;
}
body.paused .slide.active img{
  animation:none;
  transform:scale(1);
}
@keyframes breathe{
  0%{transform:scale(1)}
  50%{transform:scale(1.04)}
  100%{transform:scale(1)}
}

/* ═══════════════════════════════════════
   IMAGE NOISE — visible grain on image area
   ═══════════════════════════════════════ */
#img-noise{
  position:absolute;inset:0;z-index:6;
  width:100%;height:100%;
  pointer-events:none;
  opacity:0;
  transition:opacity 2s ease-out;
}
body:not(.paused) #img-noise{opacity:.04}
body.paused #img-noise{opacity:0}

/* ═══════════════════════════════════════
   IMAGE PARTICLES — enhanced
   ═══════════════════════════════════════ */
#img-particles{
  position:absolute;inset:0;z-index:5;
  width:100%;height:100%;
  pointer-events:none;
  opacity:0;
  transition:opacity 2s ease-out;
}
body:not(.paused) #img-particles{opacity:.55}
body.paused #img-particles{opacity:0}

/* ═══════════════════════════════════════
   PLAY BUTTON — bottom-right of image
   ═══════════════════════════════════════ */
.play-btn{
  position:absolute;
  bottom:clamp(20px,3vh,40px);
  right:clamp(20px,3vw,40px);
  z-index:20;
  width:48px;height:48px;
  border-radius:50%;
  border:none;
  background:#fff;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all .25s ease-out;
  pointer-events:auto;
  outline:none;
  box-shadow:0 2px 12px rgba(0,0,0,.1);
}
.play-btn:hover{
  background:#f0f0f0;
  transform:scale(1.08);
}
.play-btn:active{transform:scale(.95)}
.play-icon{display:block}

/* ═══════════════════════════════════════
   GRAIN — full viewport, reduced
   ═══════════════════════════════════════ */
#noise{
  position:fixed;inset:0;z-index:50;
  opacity:.02;pointer-events:none;
  mix-blend-mode:multiply;
  width:100%;height:100%;
}

/* ═══════════════════════════════════════
   PAUSED
   ═══════════════════════════════════════ */
body.paused .slide img{filter:saturate(0) brightness(.5);transition:filter 2s ease-out}
body.paused .col-left{background:#D8D4D0;transition:background 2s ease-out}
body.paused .hero-title{opacity:.25}
body.paused .quote{opacity:.15}
body.paused .topbar{opacity:.2}
body.paused .footer{opacity:.12}
body.paused .play-btn{opacity:.5}

/* ═══════════════════════════════════════
   MOBILE ELEMENTS — hidden on desktop
   ═══════════════════════════════════════ */
.mobile-copyright{display:none}

/* ═══════════════════════════════════════
   RESPONSIVE — mobile (≤768px)
   ═══════════════════════════════════════ */
@media(max-width:768px){
  /* Layout: vertical stack, image fixed at bottom */
  html,body{
    overflow-y:auto;overflow-x:hidden;
    height:auto;min-height:100vh;
  }
  body{display:flex;flex-direction:column}

  .col-left{
    width:100%;left:0;right:0;
    height:auto;position:relative;top:auto;
    min-height:0;flex:none;
  }
  .col-right{
    display:block;
    position:fixed;bottom:0;left:0;right:0;top:auto;
    height:35vh;z-index:20;
  }

  /* Play button on mobile image */
  .play-btn{
    display:flex;
    position:absolute;
    bottom:clamp(16px,3vh,32px);
    right:clamp(16px,4vw,32px);
  }

  /* Mobile copyright on image — white text, bottom-left */
  .mobile-copyright{
    display:block;
    position:absolute;
    bottom:clamp(16px,3vh,32px);
    left:clamp(16px,4vw,32px);
    font-size:11px;font-weight:500;
    letter-spacing:.06em;color:rgba(255,255,255,.6);
    z-index:21;pointer-events:none;
  }

  /* Hide 12345 numbers */
  .num-row{display:none}

  /* Hide hero title on mobile */
  .hero-title{display:none}

  /* Hide quote rule on mobile */
  .quote-rule{display:none}

  /* Quote block + rule: full width */
  .quote-block{max-width:none}
  .hero-block{padding:clamp(20px,3.5vh,40px) var(--pad) 0}

  /* Content row: column, channel below quote */
  .content-row{
    flex-direction:column;
    gap:clamp(16px,3vh,28px);
    margin-top:clamp(20px,3vh,36px);
  }

  /* Channel: right-aligned, same font as title */
  .channel-info{
    flex-direction:column;
    gap:clamp(8px,1.5vh,14px);
    margin-left:0;
    align-self:flex-end;
    text-align:right;
  }
  .ch-rule-v{display:none}
  .ch-names{
    flex-direction:column;gap:0;
  }
  .ch-name{
    font-size:clamp(24px,6vw,36px);
    font-weight:700;
    letter-spacing:-.03em;
    text-transform:uppercase;
    line-height:1.6;
  }

  /* Quote: single line, horizontal scroll, slightly bigger */
  .quote{
    white-space:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    max-width:none;
    font-size:clamp(13px,1.3vw,15px);
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .quote::-webkit-scrollbar{display:none}

  /* Hide desktop footer-right (keyboard hints) */
  .footer-right{display:none}
  .footer-left{display:none}
  .footer{padding:0 0 0 0;min-height:0}

  /* Desktop vol indicator: hide */
  .vol-indicator{display:none}
}
