/* ============================================================
   BAIR
   y2k computer screen, scrolling artist site
   ============================================================ */

:root{
  --bg: #f4f4f1;
  --bg-2: #ebebe6;
  --ink: #131313;
  --ink-soft: #555;
  --line: #cfcfc6;
  --line-2: #b9b9af;
  --chrome: #e8e8e3;
  --chrome-2: #d6d6cf;
  --accent: #ff5b1f;
  --tile-shadow: 0 1px 0 #fff inset, 0 -1px 0 #b9b9af inset, 1px 0 0 #b9b9af inset, -1px 0 0 #fff inset;
  --window-shadow: 6px 6px 0 rgba(19,19,19,.08), 0 0 0 1px var(--line-2);
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --pixel: "VT323", ui-monospace, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--bg);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}
body{
  background:
    radial-gradient(1200px 600px at 80% -200px, #fff 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.012) 2px 3px),
    var(--bg);
  overflow-x:hidden;
  position:relative;
  min-height:100vh;
}

/* Flatirons etched across the entire viewport, fixed.
   Tall enough to reach into the middle of the page and prominent. */
body::before{
  content:"";
  position:fixed;
  left:0;right:0;bottom:0;
  height:78vh;
  background: url('../assets/img/flatirons.svg') center bottom / 100% 100% no-repeat;
  z-index:0;
  pointer-events:none;
  opacity:.55;
}
body::after{display:none}
body.zen-on::after{display:block !important}
@media (max-width: 900px){
  body::before{height:62vh;opacity:.5}
}
@media (max-width: 560px){
  body::before{height:50vh;opacity:.45}
}

/* sit content above the silhouette */
.hero, .screen-section, .carousel-section, .footer{position:relative;z-index:1}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}

.quiet{color:var(--ink-soft)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ===================== HERO (windowed) ===================== */
.hero{
  position:relative;
  width:100%;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding: clamp(16px, 3vw, 28px);
  gap:14px;
  z-index:5;
  animation: hero-fade-in 1s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes hero-fade-in{
  from{opacity:0}
  to{opacity:1}
}
.hero-window{
  width:min(1320px, 100%);
  height: min(86svh, 760px);
  display:flex;flex-direction:column;
  overflow:hidden;
  border-radius: 6px;
  transition: border-radius .3s ease;
}
.hero-body{
  position:relative;
  flex:1;
  background:#0c0c0c;
  overflow:hidden;
  cursor:pointer;
}

/* Full-bleed expanded mode — hero becomes a normal full-viewport section.
   Page still scrolls naturally to desktop / songs / about below it. */
body.hero-fs .hero-img{
  /* Slightly tighter scale range in fullscreen to keep edges from drifting */
  animation: kenburns-fs 28s ease-in-out infinite alternate !important;
}
@keyframes kenburns-fs{
  0%   { transform: scale(1.05) translate3d(-0.5%, -0.3%, 0); }
  100% { transform: scale(1.08) translate3d(0.5%, 0.3%, 0); }
}
body.hero-fs .hero{
  width:100vw;
  min-height:100vh;
  height:100vh;
  height:100svh;
  padding:0;margin:0;gap:0;
  background:#0c0c0c;
  align-items:stretch;
  justify-content:stretch;
}
body.hero-fs .hero-window{
  width:100%;
  height:100%;
  max-width:none;max-height:none;
  border-radius:0;
  border:0;
  box-shadow:none;
  display:flex;flex-direction:column;
}
/* Hide window chrome: title bar, status bar, expand button */
body.hero-fs .hero .title-bar,
body.hero-fs .hero .hero-status,
body.hero-fs .hero .hero-fs-btn{display:none !important}
body.hero-fs .hero .hero-body{flex:1;cursor:default}
/* Bottom-center scroll indicator inside the hero, replacing the windowed one */
body.hero-fs .hero-scroll-hint{
  position:absolute;
  bottom: clamp(16px, 3vw, 28px);
  left:50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255,255,255,.85);
  font-size: 11px;
  letter-spacing: .32em;
  pointer-events:none;
}
body.hero-fs .hero-scroll-hint .arrow-down{font-size:14px}

/* expand button shown on hover/touch */
.hero-fs-btn{
  position:absolute;
  top:14px;right:14px;
  z-index:5;
  display:flex;align-items:center;gap:8px;
  padding:8px 14px;
  background: rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.2);
  color:#fff;
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.12em;
  text-transform:lowercase;
  border-radius:999px;
  backdrop-filter: blur(6px);
  cursor:pointer;
  opacity:0;
  transform: translateY(-4px);
  transition: opacity .25s, transform .25s;
}
.hero-fs-icon{font-size:13px}
.hero-window:hover .hero-fs-btn,
.hero-fs-btn:focus-visible{opacity:1;transform:translateY(0)}
@media (hover: none){
  .hero-fs-btn{opacity:1;transform:translateY(0)}
}

.hero-photo{position:absolute;inset:0;overflow:hidden}
.hero-img{
  width:100%;height:100%;object-fit:cover;display:block;
  background:#0c0c0c;
  /* Ken Burns slow pan/zoom that loops forever — GPU accelerated */
  animation: kenburns 28s ease-in-out infinite alternate;
  transform-origin: 50% 50%;
  filter: contrast(1.04) saturate(1.05);
  object-position: center center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
@keyframes kenburns{
  /* Pure transform-only animation — no filter changes (those force repaints/jank).
     Smooth scale pan that always overflows the frame so no border appears. */
  0%   { transform: scale(1.06) translate3d(-1%, -0.5%, 0); }
  100% { transform: scale(1.10) translate3d(1%, 0.5%, 0); }
}

/* animated grain — pure CSS, SVG noise data uri */
.hero-grain{
  position:absolute;inset:-50%;
  pointer-events:none;
  opacity:.22;
  mix-blend-mode:overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.85'/></svg>");
  background-size: 200px 200px;
  animation: grain 1.4s steps(6) infinite;
}
@keyframes grain{
  0%   { transform: translate(0,0) }
  10%  { transform: translate(-3%,2%) }
  20%  { transform: translate(3%,-1%) }
  30%  { transform: translate(-2%,-3%) }
  40%  { transform: translate(4%,1%) }
  50%  { transform: translate(-1%,3%) }
  60%  { transform: translate(3%,-2%) }
  70%  { transform: translate(-3%,-1%) }
  80%  { transform: translate(2%,3%) }
  90%  { transform: translate(-2%,1%) }
  100% { transform: translate(0,0) }
}

/* breathing vignette */
.hero-vignette{
  position:absolute;inset:0;pointer-events:none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.55) 100%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe{
  0%,100%{opacity:.7}
  50%{opacity:1}
}

/* scanline sweep — a thin band that drifts down occasionally */
.hero-scan{
  position:absolute;left:0;right:0;
  height:18%;
  pointer-events:none;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255,255,255,.05) 45%,
    rgba(255,255,255,.10) 50%,
    rgba(255,255,255,.05) 55%,
    transparent 100%);
  mix-blend-mode: screen;
  animation: scan 7.5s linear infinite;
}
@keyframes scan{
  0%   { top: -25% }
  100% { top: 110% }
}

/* horizontal jitter / flicker overlay */
.hero-flicker{
  position:absolute;inset:0;pointer-events:none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px);
  mix-blend-mode:overlay;
  animation: flicker 5s steps(20) infinite;
}
@keyframes flicker{
  0%,90%,100%{opacity:.55}
  92%{opacity:.20}
  94%{opacity:.85}
  96%{opacity:.40}
  98%{opacity:.75}
}

/* overlay text on top of the hero photo */
.hero-overlay{
  position:absolute;
  left:0;right:0;bottom:0;
  padding: clamp(18px, 4vw, 44px);
  padding-bottom: clamp(20px, 4vw, 44px);
  display:flex;flex-direction:column;gap:10px;
  z-index:3;
  color:#fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
  pointer-events:none;
}
.hero-wordmark{
  font-family:"Times New Roman",Times,serif;
  font-weight:700;
  font-size: clamp(72px, 18vw, 240px);
  line-height:.85;
  letter-spacing:-.02em;
  text-transform:uppercase;
  /* slow shimmer between two off-whites */
  animation: shimmer 6s ease-in-out infinite alternate;
}
@keyframes shimmer{
  0%   { color:#fff }
  100% { color:#f4ead7 }
}

/* handwriting variant of hero wordmark */
.hero-wordmark-hw{
  height: clamp(120px, 22vw, 280px);
  width:auto;
  display:block;
  /* invert dark ink to bright cream over the photo, plus glow */
  filter: invert(1) brightness(1.05) drop-shadow(0 3px 16px rgba(0,0,0,.55));
  animation: shimmer-hw 6s ease-in-out infinite alternate;
}
@keyframes shimmer-hw{
  0%   { filter: invert(1) brightness(1.05) drop-shadow(0 3px 16px rgba(0,0,0,.55)); }
  100% { filter: invert(1) brightness(1.0)  drop-shadow(0 3px 18px rgba(0,0,0,.6)) sepia(.15); }
}
.hero-sub{
  display:flex;flex-wrap:wrap;gap:10px;align-items:baseline;
  font-family: var(--mono);
  font-size: clamp(11px, 1.3vw, 14px);
  letter-spacing:.06em;
  text-transform:lowercase;
  opacity:.92;
}
.hero-sub em{font-style:italic}
.dot-sep{opacity:.6}

/* small scroll hint below the hero window */
.hero-scroll-hint{
  display:flex;align-items:center;gap:8px;
  font-family:var(--mono);
  font-size:10px;
  color:var(--ink-soft);
  text-transform:lowercase;
  letter-spacing:.32em;
  pointer-events:none;
  animation:hint-bob 2.4s ease-in-out infinite;
}
.hero-scroll-hint .arrow-down{font-size:14px;line-height:1}
@keyframes hint-bob{
  0%,100%{ transform: translateY(0); opacity:.7 }
  50%    { transform: translateY(4px); opacity:1 }
}

/* sections "play" in once user scrolls */
.screen-section, .carousel-section{
  opacity:0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.screen-section.is-in, .carousel-section.is-in{opacity:1;transform:translateY(0)}

/* ===================== WINDOW (shared) ===================== */
.window{
  background:var(--chrome);
  border:1px solid var(--line-2);
  box-shadow: var(--window-shadow);
  position:relative;
}
.title-bar{
  display:flex;
  align-items:center;
  height:28px;
  padding:0 10px;
  background:linear-gradient(#f3f3ee, #d8d8d0);
  border-bottom:1px solid var(--line-2);
  font-family:var(--mono);
  font-size:12px;
  user-select:none;
}
.tb-left{display:flex;gap:6px;align-items:center}
.tb-dot{
  width:12px;height:12px;border-radius:50%;
  border:1px solid rgba(0,0,0,.18);padding:0;
  position:relative;flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:9px;line-height:1;color:transparent;
  font-family:var(--mono);
}
.tb-dot-r{background:#ff5f57}
.tb-dot-y{background:#febc2e}
.tb-dot-g{background:#28c840}
button.tb-dot{cursor:pointer}
button.tb-dot:hover{filter:brightness(1.05)}
/* glyph appears on hover of the row, centered inside the dot */
button.tb-dot-r::before{content:"×";font-size:11px;font-weight:700;line-height:1;color:transparent;
  display:inline-block;transform:translateY(-.5px)}
button.tb-dot-g::before{content:"⛶";font-size:9px;font-weight:700;line-height:1;color:transparent}
.tb-left:hover button.tb-dot-r::before{color:#4a0000}
.tb-left:hover button.tb-dot-g::before{color:#003d00}
.tb-title{flex:1;text-align:center;color:var(--ink-soft);letter-spacing:.04em}
.tb-right{display:flex;align-items:center;gap:8px;color:var(--ink-soft)}
.tb-clock{font-variant-numeric: tabular-nums}
.tb-close{
  width:20px;height:20px;line-height:18px;text-align:center;
  border:1px solid var(--line-2);background:#fff;font-family:var(--mono);font-size:11px;
}

/* ===================== DESKTOP / COMPUTER ===================== */
.screen-section{
  padding: 40px 24px 80px;
  display:flex;justify-content:center;
}
.screen-section .window{
  width:min(1100px, 96vw);
}

.tabs{
  display:flex;
  border-bottom:1px solid var(--line-2);
  background:#f4f4f0;
  position:relative;
}
/* handwriting tab labels */
.tab-hw{
  height: 26px;
  width:auto;
  display:block;
  margin:0 auto;
  filter: contrast(1.3);
  opacity:.92;
}
.tab-hw-mid{
  height: 38px;
  opacity:1;
  filter: contrast(1.4);
}
.tab{padding-top:8px;padding-bottom:8px}
.tab{
  flex:1;
  text-align:center;
  padding:12px 16px;
  font-family:var(--mono);
  font-size:13px;
  color:var(--ink-soft);
  letter-spacing:.06em;
  border-right:1px solid var(--line);
  text-transform:lowercase;
  transition: background .15s, color .15s;
}
.tab:last-child{border-right:0}
.tab:hover{background:#fff;color:var(--ink)}
.tab-mid{
  font-family:"Times New Roman",Times,serif;
  font-weight:700;
  font-size:18px;
  letter-spacing:.18em;
  color:var(--ink);
  background:#fff;
  text-transform:uppercase;
}

.desktop{
  display:grid;
  grid-template-columns: 84px 1fr 200px;
  gap:18px;
  padding:22px;
  min-height:460px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0%, #ebebe5 100%);
  position:relative;
}

/* dotted desktop wallpaper */
.desktop::before{
  content:"";
  position:absolute;inset:0;
  background-image: radial-gradient(rgba(19,19,19,.10) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events:none;
  z-index:0;
}
.desktop > *{position:relative;z-index:1}

/* window layer covers the desktop, sits above wallpaper but below the dock/tiles when no windows are open */
.window-layer{
  position:absolute;inset:0;
  z-index:5;
  pointer-events:none;
  overflow:hidden;
}
.window-layer > *{pointer-events:auto}

/* ===================== WINDOWS ===================== */
.win{
  position:absolute;
  background:var(--chrome);
  border:1px solid var(--line-2);
  box-shadow: 6px 6px 0 rgba(19,19,19,.12), 0 0 0 1px var(--line-2);
  display:flex;flex-direction:column;
  min-width:220px;min-height:160px;
  user-select:none;
  transition: opacity .15s, transform .15s;
}
.win.win-active{box-shadow: 8px 8px 0 rgba(19,19,19,.18), 0 0 0 1px var(--ink)}
.win.win-active .win-bar{background:linear-gradient(#fafaf5, #d2d2c8)}
.win-enter{opacity:0;transform:translateY(6px)}
.win-leave{opacity:0;transform:scale(.96);pointer-events:none}
.win-minimized{display:none}
.win-max{
  box-shadow:none;border-radius:0;
  z-index:9999 !important;
}

/* fullscreen overlay backdrop — covers everything when a window is maximized */
.win-backdrop{
  position:fixed;inset:0;
  background:rgba(19,19,19,.55);
  backdrop-filter:blur(2px);
  z-index:9998;
  animation: fadein .15s ease;
  cursor:pointer;
}
@keyframes fadein{from{opacity:0}to{opacity:1}}

/* ===================== ZEN / FOCUS MODE ===================== */
body.zen-on{
  overflow:hidden;
}
body.zen-on::after{
  content:"";
  position:fixed;inset:0;
  background:rgba(19,19,19,.65);
  backdrop-filter:blur(3px);
  z-index:9990;
  animation: fadein .2s ease;
  cursor:pointer;
}
.zen-target{
  position:fixed !important;
  top:50%;left:50%;
  transform:translate(-50%, -50%) !important;
  width:96vw !important;
  max-width:1200px;
  max-height:90vh;
  z-index:9999 !important;
  overflow-y:auto;
  animation: zen-pop .25s cubic-bezier(.2,.7,.2,1);
}
@keyframes zen-pop{
  from{opacity:0;transform:translate(-50%, -50%) scale(.96)}
  to{opacity:1;transform:translate(-50%, -50%) scale(1)}
}

/* hero is now full-bleed by default; no special zen handling needed */

.win-bar{
  display:flex;align-items:center;height:28px;padding:0 10px;
  background:linear-gradient(#f3f3ee, #d8d8d0);
  border-bottom:1px solid var(--line-2);
  font-family:var(--mono);font-size:12px;
  cursor:grab;flex-shrink:0;
}
.win-bar:active{cursor:grabbing}
.win-bar .tb-left{display:flex;gap:6px}
/* win-bar dots inherit from .tb-dot already */
.win-title{flex:1;text-align:center;color:var(--ink-soft);letter-spacing:.04em;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.win-bar .tb-right{width:42px}

.win-body{
  flex:1;
  background:#fff;
  overflow:auto;
  display:flex;flex-direction:column;
}
.win-body iframe{flex:1;width:100%;border:0;display:block}
.window-pad{padding:18px 20px;font-family:var(--sans);font-size:14px;line-height:1.6}
.window-pad.mono{font-family:var(--mono);font-size:13px}
.window-pad p{margin-bottom:10px}
.win-h{font-family:"Times New Roman",Times,serif;font-size:26px;font-weight:700;letter-spacing:.02em;text-transform:lowercase;margin-bottom:12px}
.win-p{color:var(--ink-soft);margin-bottom:14px;font-family:var(--mono);font-size:13px}
.win-cta{
  display:inline-block;font-family:var(--mono);font-size:12px;
  padding:9px 14px;border:1px solid var(--ink);background:#fff;
  letter-spacing:.06em;text-transform:lowercase;
  transition: background .15s, color .15s;
}
.win-cta:hover{background:var(--ink);color:#fff}
.win-link{border-bottom:1px solid var(--line-2)}
.win-link:hover{border-color:var(--ink)}
.win-embed{margin-bottom:12px;border-radius:8px;overflow:hidden}

/* songs inside a window */
.win-songs{gap:16px;display:flex;flex-direction:column}
.win-song{display:flex;flex-direction:column;gap:10px}
.win-song img{width:100%;aspect-ratio:1/1;object-fit:cover;border:1px solid var(--line-2);box-shadow:3px 3px 0 rgba(19,19,19,.06);display:block}
.win-song-big img{max-height:280px;object-fit:cover}
.win-song h4{font-family:"Times New Roman",Times,serif;font-size:22px;font-weight:700;text-transform:lowercase;letter-spacing:.01em}
.win-song-meta{display:flex;flex-direction:column;gap:8px}
.win-song-meta iframe{border:1px solid var(--line-2);border-radius:8px;overflow:hidden;display:block;width:100%}

/* resize handles */
.win-resize{position:absolute;background:transparent}
.win-resize-n{top:-3px;left:8px;right:8px;height:6px;cursor:n-resize}
.win-resize-s{bottom:-3px;left:8px;right:8px;height:6px;cursor:s-resize}
.win-resize-e{right:-3px;top:8px;bottom:8px;width:6px;cursor:e-resize}
.win-resize-w{left:-3px;top:8px;bottom:8px;width:6px;cursor:w-resize}
.win-resize-ne{top:-3px;right:-3px;width:12px;height:12px;cursor:ne-resize}
.win-resize-nw{top:-3px;left:-3px;width:12px;height:12px;cursor:nw-resize}
.win-resize-se{bottom:-3px;right:-3px;width:12px;height:12px;cursor:se-resize}
.win-resize-sw{bottom:-3px;left:-3px;width:12px;height:12px;cursor:sw-resize}

/* ===================== TASKBAR ===================== */
.taskbar{
  display:flex;gap:6px;
  padding:6px 10px;
  background:#ededec;
  border-top:1px solid var(--line-2);
  min-height:32px;
  overflow-x:auto;
}
.taskbar:empty{display:none}
.tb-task{
  font-family:var(--mono);font-size:11px;
  padding:4px 12px;
  background:#fff;
  border:1px solid var(--line-2);
  cursor:pointer;
  white-space:nowrap;
  letter-spacing:.04em;
  transition: background .12s;
}
.tb-task:hover{background:#f7f3ec}
.tb-task-active{background:var(--ink);color:#fff;border-color:var(--ink)}
.tb-task-active:hover{background:#000}

/* dock */
.dock{
  display:flex;flex-direction:column;gap:14px;
}
.app{
  display:flex;flex-direction:column;align-items:center;gap:6px;
  font-family:var(--mono);font-size:10.5px;
  color:var(--ink-soft);letter-spacing:.04em;
  cursor:pointer;
}
.app:hover{color:var(--ink)}
.app:hover .app-tile{transform:translateY(-1px); box-shadow: var(--tile-shadow), 2px 2px 0 rgba(0,0,0,.12)}
.app-tile{
  width:56px;height:56px;border:1px solid var(--line-2);
  background:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow: var(--tile-shadow);
  transition: transform .15s, box-shadow .15s;
  position:relative;
}
.app-name{text-transform:lowercase}

/* per-app tile faces (drawn in CSS, no bitmap icons) */
.spotify-tile{background:radial-gradient(circle at 50% 50%, #1ed760 0%, #169c46 100%)}
.spotify-tile::before, .spotify-tile::after{
  content:"";position:absolute;left:14px;right:14px;border-top:3px solid #0a3a1c;border-radius:50%;height:14px;
}
.spotify-tile::before{top:18px;height:18px;border-width:3px}
.spotify-tile::after{top:30px;height:14px}

.apple-tile{background:linear-gradient(135deg,#fa233b,#ff7a00)}
.apple-tile::before{
  content:"\266B";color:#fff;font-size:34px;text-shadow:0 1px 0 rgba(0,0,0,.2);
}

.yt-tile{background:#fff;position:relative}
.yt-tile::before{
  content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:42px;height:30px;background:#ff0033;border-radius:6px;
}
.yt-tile::after{
  content:"";position:absolute;left:50%;top:50%;transform:translate(-40%,-50%);
  border-left:11px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent;
}

.tt-tile{background:#000}
.tt-tile::before{
  content:"\266A";color:#25f4ee;font-size:30px;text-shadow:2px 2px 0 #fe2c55;
}

.secret-tile{
  background:repeating-linear-gradient(45deg,#fff 0 6px,#eee 6px 12px);
  font-family:var(--pixel);font-size:30px;color:#111;
}

/* viewer */
.viewer{
  display:flex;align-items:center;gap:10px;
  min-width:0;
  align-self:center;
  justify-self:center;
  max-width: 460px;
  width:100%;
}
.viewer-frame{
  flex:1;
  background:#fff;
  border:1px solid var(--line-2);
  position:relative;
  overflow:hidden;
  aspect-ratio: 4/3;
  box-shadow: 2px 2px 0 rgba(0,0,0,.06);
  max-height: 320px;
}
.viewer-track{
  display:flex;
  height:100%;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
/* each slide is a self-contained frame: blurred fill + sharp full image */
.viewer-slide{
  flex:0 0 100%;
  position:relative;
  width:100%;height:100%;
  overflow:hidden;
}
.viewer-bg{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  filter: blur(28px) saturate(1.1) brightness(.85);
  transform: scale(1.15);
  pointer-events:none;
  z-index:0;
}
.viewer-fg{
  position:relative;z-index:1;
  width:100%;height:100%;
  object-fit:contain;
  display:block;
}
.viewer-meta{
  position:absolute;left:10px;bottom:8px;
  font-family:var(--mono);font-size:11px;color:#fff;
  text-shadow:0 1px 2px rgba(0,0,0,.6);
  letter-spacing:.08em;
}
.viewer-sep{margin:0 4px;opacity:.7}

.nav-arrow{
  font-family:"Times New Roman",Times,serif;
  font-size:34px;
  line-height:1;
  color:var(--ink);
  width:38px;height:54px;
  background:#fff;
  border:1px solid var(--line-2);
  box-shadow: var(--tile-shadow);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
  transition: transform .12s, background .12s;
}
.nav-arrow:hover{background:#f7f3ec;transform:translateY(-1px)}
.nav-arrow:active{transform:translateY(1px)}

/* tiles right column */
.tiles{display:flex;flex-direction:column;gap:12px}
.tile{
  position:relative;
  display:flex;flex-direction:column;justify-content:flex-end;
  height:104px;
  padding:12px;
  background:#fff;
  border:1px solid var(--line-2);
  box-shadow: var(--tile-shadow);
  transition: transform .15s, box-shadow .15s;
  font-family:var(--mono);
  overflow:hidden;
  cursor:pointer;
  text-align:left;
}

/* tile visualizations */
.tile-viz{
  position:absolute;
  top:10px;
  right:10px;
  pointer-events:none;
}

/* equalizer bars for songs tile */
.tile-viz-bars{
  display:flex;align-items:flex-end;gap:3px;
  width:42px;height:26px;
}
.tile-viz-bars span{
  display:block;width:5px;background:var(--ink);
  animation: eq 1.1s ease-in-out infinite;
  border-radius:1px;
}
.tile-viz-bars span:nth-child(1){height:40%;animation-delay:.0s}
.tile-viz-bars span:nth-child(2){height:80%;animation-delay:.15s}
.tile-viz-bars span:nth-child(3){height:55%;animation-delay:.30s}
.tile-viz-bars span:nth-child(4){height:95%;animation-delay:.45s}
.tile-viz-bars span:nth-child(5){height:65%;animation-delay:.60s}
@keyframes eq{
  0%,100%{transform:scaleY(.35)}
  50%{transform:scaleY(1)}
}
.tile-songs:hover .tile-viz-bars span{animation-duration:.6s}

/* envelope icon for contact */
.tile-viz-mail{
  width:40px;height:26px;
  border:1.5px solid var(--ink);
  background:#fff;
  position:absolute;
  top:12px;right:10px;
  transition: transform .2s;
}
.tile-viz-mail::before{
  content:"";position:absolute;inset:0;
  background: linear-gradient(135deg, transparent 48%, var(--ink) 48% 52%, transparent 52%),
              linear-gradient(45deg,  transparent 48%, var(--ink) 48% 52%, transparent 52%);
  background-size: 50% 100%;
  background-repeat:no-repeat;
  background-position: left top, right top;
}
.tile-link:hover .tile-viz-mail{transform: translateY(-2px) rotate(-3deg)}

/* spinning vinyl for new tile */
.tile-viz-vinyl{
  width:56px;height:56px;border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 8px, #111 8px 10px, #111 10px 22px,
                    #1a1a1a 22px 24px, #111 24px 28px),
    #111;
  box-shadow: 0 0 0 1px rgba(0,0,0,.2), inset 0 0 0 1px rgba(255,255,255,.08);
  position:absolute;top:10px;right:10px;
  animation: spin 4s linear infinite;
  display:flex;align-items:center;justify-content:center;
}
.tile-viz-vinyl::before{
  content:"";position:absolute;inset:0;border-radius:50%;
  background: repeating-radial-gradient(circle at 50% 50%,
    rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
}
.vinyl-label{
  position:relative;z-index:1;
  font-family:"Times New Roman",Times,serif;
  font-size:8px;color:var(--accent);
  text-transform:lowercase;letter-spacing:.04em;
}
@keyframes spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}
.tile-new:hover .tile-viz-vinyl{animation-duration:1.2s}
.tile:hover{transform:translateY(-2px); box-shadow: var(--tile-shadow), 3px 3px 0 rgba(0,0,0,.1)}
.tile-label{font-size:18px;font-weight:600;color:var(--ink);text-transform:lowercase;letter-spacing:.02em}
.tile-sub{font-size:11px;color:var(--ink-soft);margin-top:2px;letter-spacing:.04em}

.tile-songs{background:linear-gradient(180deg,#fff,#fff7ee)}
.tile-link{background:linear-gradient(180deg,#fff,#eef3ff)}
.tile-new{background:linear-gradient(180deg,#fff,#fdeeee)}
.tile-new::before{
  content:"NEW";
  position:absolute;bottom:10px;right:10px;
  font-family:var(--pixel);font-size:13px;
  background:var(--accent);color:#fff;
  padding:1px 6px;letter-spacing:.1em;
  z-index:1;
}

/* status bar */
.status-bar{
  display:flex;align-items:center;gap:8px;
  height:24px;padding:0 10px;
  font-family:var(--mono);font-size:11px;color:var(--ink-soft);
  background:#ededec;
  border-top:1px solid var(--line-2);
}
.sb-sep{opacity:.5}
.sb-spacer{flex:1}
.sb-blink{animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}

/* ===================== SECTION HEADS ===================== */
.section-head{
  font-family:"Times New Roman",Times,serif;
  text-transform:lowercase;
  letter-spacing:.02em;
  font-size:clamp(48px, 8vw, 92px);
  font-weight:700;
  text-align:center;
  margin:60px 0 18px;
  position:relative;
}
.section-head span{position:relative;z-index:1}
.section-head::before, .section-head::after{
  content:"";position:absolute;top:50%;width:18%;height:1px;background:var(--line-2);
}
.section-head::before{left:8%}
.section-head::after{right:8%}

/* handwriting variant */
.section-head-hw{
  margin:36px 0 22px;
  display:flex;align-items:center;justify-content:center;
}
.section-head-hw::before,
.section-head-hw::after{display:none}
.section-head-hw img{
  height: clamp(80px, 12vw, 150px);
  width:auto;
  filter: contrast(1.3);
  opacity:1;
  display:block;
}
.hw-wrap{position:relative;display:inline-block}
.hw-easter{
  position:absolute;
  top:0;
  left: 22%;     /* covers the ONG middle portion */
  width: 56%;
  height: 100%;
  background:transparent;
  border:0;
  cursor:pointer;
  padding:0;
  z-index:2;
}

/* easter-egg modal */
.easter-modal{
  position:fixed;inset:0;
  background: rgba(19,19,19,.55);
  backdrop-filter: blur(4px);
  display:flex;align-items:center;justify-content:center;
  z-index:10005;
  animation: fadein .18s ease;
  padding:20px;
}
.easter-modal[hidden]{display:none}
.easter-card{
  position:relative;
  background:#fff;
  border:1px solid var(--line-2);
  box-shadow: 8px 8px 0 rgba(19,19,19,.18);
  padding: 32px 36px;
  max-width: 460px;
  width:100%;
  font-family: var(--mono);
  font-size:14px;
  line-height:1.6;
  color:var(--ink);
  animation: easter-pop .25s cubic-bezier(.2,.7,.2,1);
}
@keyframes easter-pop{
  from{opacity:0;transform:translateY(8px) scale(.97)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.easter-text{margin:0}
.easter-text a{
  color:var(--ink);
  border-bottom:1.5px solid var(--ink);
  font-weight:500;
}
.easter-text a:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.easter-close{
  position:absolute;
  top:8px;right:10px;
  width:28px;height:28px;
  border:0;background:transparent;
  font-size:22px;line-height:1;
  color:var(--ink-soft);
  cursor:pointer;
}
.easter-close:hover{color:var(--ink)}

/* ===================== SECTION WINDOWS (songs, about) ===================== */
.section-window{
  width:min(1100px, 96vw);
  margin:0 auto;
  display:flex;flex-direction:column;
  overflow:hidden;
}
.section-window-body{
  background:#fff;
  padding:32px 24px 36px;
  border-top:none;
}
.section-window .status-bar{font-family:var(--mono);font-size:11px}

/* ===================== SONGS ===================== */
.carousel-section{
  padding: 30px 24px 80px;
}
.track-stage{
  display:flex;align-items:center;justify-content:center;
  gap:18px;
  max-width:min(1100px, 96vw);margin:0 auto;
}
.track-cards{
  flex:1;max-width:760px;
  display:flex;justify-content:center;
  position:relative;min-height:420px;
}
.track{
  width:100%;
  display:grid;grid-template-columns: 1.15fr 1fr;
  gap:28px;
  background:#fff;
  border:1px solid var(--line-2);
  padding:22px;
  box-shadow: 4px 4px 0 rgba(19,19,19,.06);
  align-items:stretch;
}
.track[hidden]{display:none}
.track-art{
  background:#000;
  aspect-ratio: 1/1;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  border:1px solid var(--line-2);
  box-shadow: 6px 6px 0 rgba(19,19,19,.08);
  max-width:480px;
  width:100%;
}
.track-art img{width:100%;height:100%;object-fit:contain;background:#000;display:block;transition:transform 8s ease-out}
.track:hover .track-art img{transform:scale(1.03)}
.track-info{
  display:flex;flex-direction:column;justify-content:center;
  padding:4px 8px;
  min-width:0;
}
.track-name{
  font-family:"Times New Roman",Times,serif;
  font-size:64px;line-height:.95;font-weight:700;
  text-transform:lowercase;letter-spacing:.005em;
  word-break:break-word;
}
.track-desc{margin-top:14px;color:var(--ink-soft);font-family:var(--mono);font-size:14px;line-height:1.5}
.track-player{
  margin-top:22px;
  border:1px solid var(--line-2);
  background:#fff;
  overflow:hidden;
  box-shadow: 2px 2px 0 rgba(19,19,19,.06);
  border-radius:10px;
}
.track-player iframe{display:block;width:100%;height:80px;border:0}

.track-dots{
  display:flex;gap:8px;justify-content:center;margin-top:20px;
}
.track-dots .dot{
  width:8px;height:8px;border:1px solid var(--ink);background:transparent;border-radius:50%;cursor:pointer;
}
.track-dots .dot.active{background:var(--ink)}

/* ===================== ABOUT ===================== */
.about-section{padding-bottom:60px}
.about-stage{
  display:flex;align-items:center;gap:18px;
  max-width:min(900px,96vw);margin:0 auto;
}
.about-cards{
  flex:1;
  background:#fff;
  border:1px solid var(--line-2);
  padding:36px 32px;
  min-height:240px;
  box-shadow: 4px 4px 0 rgba(19,19,19,.06);
}
.about-card[hidden]{display:none}
.about-card h3{
  font-family:"Times New Roman",Times,serif;
  font-size:34px;font-weight:700;text-transform:lowercase;letter-spacing:.02em;
  margin-bottom:14px;
}
.about-card p{
  font-family:var(--mono);font-size:15px;line-height:1.6;color:var(--ink);
  margin-bottom:8px;
}
.about-card a{border-bottom:1px solid var(--line-2)}
.about-card a:hover{border-color:var(--ink)}

/* ===================== FOOTER ===================== */
.footer{
  padding: 40px 24px 60px;
  border-top:1px solid var(--line-2);
  text-align:center;
  font-family:var(--mono);font-size:12px;color:var(--ink-soft);
  letter-spacing:.04em;
}
.foot-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:8px}
.foot-row a{border-bottom:1px dashed var(--line-2)}
.foot-row a:hover{color:var(--ink);border-color:var(--ink)}
.foot-quiet{opacity:.6}



/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px){
  .desktop{
    grid-template-columns: 1fr;
    gap:14px;padding:16px;
    min-height:520px;
  }
  .dock{
    flex-direction:row;flex-wrap:nowrap;justify-content:space-between;gap:8px;
    overflow-x:auto;
    padding-bottom:4px;
  }
  .app{flex:1 1 0;min-width:60px}
  .app-tile{width:100%;max-width:64px;aspect-ratio:1/1;height:auto;margin:0 auto}
  .app-name{font-size:10px}

  .tiles{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:10px;
  }
  /* Vertical stack on mobile: viz on top centered, text beneath */
  .tile{
    height:auto;
    min-height:120px;
    padding:10px 10px 12px;
    align-items:center;
    justify-content:center;
    text-align:center;
  }
  .tile-label,.tile-sub{text-align:center;width:100%}
  .tile-viz{
    position:relative;
    top:auto;right:auto;
    margin:4px auto 8px;
  }
  .tile-viz-mail{position:relative;top:auto;right:auto;margin:4px auto 8px}
  .tile-viz-vinyl{position:relative;top:auto;right:auto;margin:2px auto 6px;width:40px;height:40px;
    background:
      radial-gradient(circle at 50% 50%, #fff 0 6px, #111 6px 7px, #111 7px 16px,
                      #1a1a1a 16px 17px, #111 17px 20px),
      #111;
  }
  .vinyl-label{font-size:6px}
  .tile-viz-bars{width:36px;height:20px}
  .tile-viz-bars span{width:4px}
  .tile-viz-mail{width:32px;height:22px}
  .tile-new::before{top:8px;right:8px;bottom:auto;font-size:10px;padding:1px 5px}
  .tile-label{font-size:15px}
  .tile-sub{font-size:10px}

  .track{grid-template-columns: 1fr}
  .track-art{aspect-ratio:1/1;max-width:360px;margin:0 auto;width:100%}
  .track-name{font-size:36px}

  .section-head::before,.section-head::after{display:none}
}

@media (max-width: 900px){
  .hero{padding: 14px;min-height:100svh}
  .hero-window{height: calc(100svh - 80px); border-radius:4px}
  .hero-wordmark{font-size: clamp(72px, 24vw, 180px)}

  /* bigger tap targets on mobile */
  .tb-dot{width:14px;height:14px}
  button.tb-dot-r::before,
  button.tb-dot-g::before{font-size:11px}
}

@media (max-width: 900px){
  .section-window{width: calc(100vw - 24px)}
  .section-window-body{padding:18px 12px 24px}
}

@media (max-width: 560px){
  .hero{
    padding: 10px 8px 8px;
    gap:10px;
    min-height: auto;
    justify-content: flex-start;
  }
  /* Mobile windowed hero: shorter, image-on-top desktop style */
  .hero-window{
    width: calc(100vw - 16px);
    height: 56svh;
    max-height: 480px;
    border-radius:6px;
  }
  .title-bar{height:30px;padding:0 12px}
  .hero-scroll-hint{font-size:9px;letter-spacing:.24em}
  .hero-fs-btn{top:10px;right:10px;padding:6px 10px;font-size:10px}
  .hero-fs-btn span:first-child{display:none}
  .hero-status{height:24px;font-size:10px;padding:0 10px}

  /* Same as desktop: photo cover anchored low so city lights stay
     visible behind the BAIR handwriting overlay */
  .hero-img{
    object-fit: cover !important;
    object-position: 50% 70% !important;
  }
  .hero-overlay{padding: 16px 16px 22px}
  .hero-wordmark-hw{height: clamp(70px, 22vw, 130px)}
  .hero-sub{font-size:10px;letter-spacing:.04em}

  /* Fullscreen mode on mobile: edge-to-edge, FULL image (no cropping) */
  body.hero-fs .hero{
    width:100vw;
    height: 100svh;
    min-height: 100svh;
    padding:0;margin:0;
    gap:0;
  }
  body.hero-fs .hero-window{
    width:100vw;
    height: 100svh;
    max-width:none;
    max-height: none;
    border-radius:0;
  }
  body.hero-fs .hero-img{
    object-fit: contain !important;
    object-position: center center !important;
    background:#0c0c0c !important;
  }
  /* Push BAIR overlay up so the scroll hint at the bottom doesn't collide */
  body.hero-fs .hero-overlay{
    bottom: 56px !important;
    padding-bottom: 0 !important;
  }
  /* Position the scroll hint INSIDE the bottom of the hero so it sits
     below the BAIR text instead of overlapping */
  body.hero-fs .hero-scroll-hint{
    position: fixed !important;
    bottom: 18px !important;
    color: rgba(255,255,255,.85) !important;
  }

  /* Center songs/about sections vertically in the viewport on mobile */
  .carousel-section{
    min-height: 100svh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 24px 12px;
  }
  .section-window{margin: auto}

  .screen-section{padding:24px 12px 60px}
  .desktop{padding:14px}

  .app-name{font-size:9.5px}
  .tile-label{font-size:14px}
  .tile-sub{font-size:9.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tile{height:74px;padding:10px}

  .tab{font-size:11px;padding:10px 8px;letter-spacing:.04em}
  .tab-mid{font-size:13px;letter-spacing:.14em}

  .win{min-width:200px;min-height:140px}
  .win-bar{height:32px}
  .window-pad{padding:14px 16px}

  .track-stage, .about-stage{gap:8px;padding:0 4px}
  .nav-arrow{width:32px;height:46px;font-size:26px}
  .track{padding:12px}
  .about-cards{padding:22px 18px}
  .about-card h3{font-size:26px}
  .about-card p{font-size:13.5px}

  .section-head{margin:36px 0 12px;font-size:48px}

  .foot-row{font-size:11px;gap:6px}
}
