/* ════════════════════════════════════════
   DRIFTER CORP. — styles.css
   Fonts: Futura (title) · Courier (body) · Leckerli One (accent)
   Theme: washed-out seawave blue
   ════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg:         #0c0e10;
  --surface:    #111518;
  --surface-hi: #161b1f;
  --border:     #1e2428;
  --border-hi:  #2a3238;

  --text:       #dde6ea;
  --text-mute:  #4a5c64;

  /* Seawave — washed-out, timeless blue */
  --wave:       #276792;

  /* Fonts */
  --f-title:    'Futura', 'Century Gothic', 'Josefin Sans', sans-serif;
  --f-body:     'Courier New', Courier, monospace;
  --f-accent:   'Leckerli One', cursive;
}


/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

/* ── Remove all selection highlight — touch-first UI ── */
::selection          { background: transparent; color: inherit; }
::-moz-selection     { background: transparent; color: inherit; }

* { -webkit-tap-highlight-color: transparent; }

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.28;
}

/* Scrollbar */
::-webkit-scrollbar       { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--wave); }

/* ── Waves background ── */
#waves-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Site column ── */
.site-wrap {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ── Sticky Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 20px;
  padding-right: 20px;
  gap: 16px;
  background: rgba(12,14,16,0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.nav-logo {
  font-family: var(--f-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Hamburger button — visible only on narrow screens */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}

.nav-hamburger span {
  display: block;
  height: 1px;
  background: var(--text-mute);
  transition: transform 0.25s, opacity 0.25s, background 0.2s;
}


/* Animate to X when open */
nav.open .nav-hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.open .nav-hamburger span:nth-child(2) { opacity: 0; }
nav.open .nav-hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-links {
  display: flex;
  gap: 14px;
  list-style: none;
  overflow: hidden;
  min-width: 0;
}

.nav-links a {
  font-family: var(--f-body);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}



/* Narrow screen: hide links, show hamburger */
@media (max-width: 480px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    /* Drop the drawer exactly below the nav */
    top: 48px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(12,14,16,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    overflow: visible;
  }

  nav.open .nav-links { display: flex; }

  .nav-links li { border-top: 1px solid var(--border); }

  .nav-links a {
    display: block;
    padding: 16px 20px;
    font-size: 10px;
    letter-spacing: 0.2em;
  }
}

/* ── Hero ── */
#home {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Band photo slot — add your photo by setting background-image below */
.hero-photo {
  position: absolute;
  inset: 0;
  background-color: var(--surface);
  background-size: cover;
  background-position: center top;
  background-image: url('src/band-photo.jpg');
}

/* Dark overlay so text stays readable over any photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12,14,16,0.55) 0%,
    rgba(12,14,16,0.72) 60%,
    rgba(12,14,16,0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  user-select: none;
  -webkit-user-select: none;
}

.hero-eyebrow {
  font-family: var(--f-body);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--f-title);
  font-size: clamp(48px, 18vw, 72px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--wave);
  padding: 7px 16px;
  font-family: var(--f-accent);
  font-size: 15px;
  color: var(--wave);
}

.hero-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wave);
  flex-shrink: 0;
}

/* ── Section header ── */
.sec-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.sec-head h2 {
  font-family: var(--f-title);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.sec-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── About / Bio ── */
#bio {
  padding: 0 20px 28px;
  background: rgba(12, 14, 16, 0.55);
}

/* sec-head inside #bio: extend border-bottom to full section width
   despite the 20px horizontal padding on the parent */
#bio .sec-head {
  padding-left: 20px;
  padding-right: 20px;
  margin-left: -20px;
  margin-right: -20px;
}

.bio-text {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.9;
}

.bio-text strong {
  color: var(--text);
  font-weight: bold;
}

/* Leckerli accent quote — always one line, scales with viewport */
.bio-quote {
  font-family: var(--f-accent);
  font-size: clamp(11px, 3.9vw, 17px);
  color: var(--wave);
  margin: 24px 0 12px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  transform: rotate(-1.5deg);
  transform-origin: left center;
  padding-left: 2px;
  user-select: none;
  -webkit-user-select: none;
}

/* Member grid */
.bio-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  background: var(--border);
  gap: 1px;
}

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

.member-card {
  background: var(--surface);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Profile picture circle — set background-image inline on each .member-pic in index.html
   e.g. <div class="member-pic" style="background-image: url('src/harry.jpg')"> */
.member-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background-color: var(--surface-hi);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.member-pic svg { opacity: 0.3; }

.member-name {
  font-family: var(--f-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  user-select: none;
  -webkit-user-select: none;
}

.member-role {
  font-family: var(--f-body);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 2px;
  user-select: none;
  -webkit-user-select: none;
}

/* ── Platform Links ── */
#links {
  border-top: 1px solid var(--border);
  background: rgba(12, 14, 16, 0.55);
}

.link-row {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  text-decoration: none;
}

/* First row in each section: sec-head already provides the dividing line above,
   so suppress the redundant border-top on the first item */
#links .sec-head + .link-row,
#announcements .sec-head + .ann-item { border-top: none; }


.link-num {
  font-family: var(--f-body);
  font-size: 9px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  padding: 18px 0;
  width: 52px;
  text-align: center;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}

.link-body     { flex: 1; padding: 18px 20px; }

.link-name {
  display: block;
  font-family: var(--f-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 2px;
  user-select: none;
  -webkit-user-select: none;
}

.link-handle {
  font-family: var(--f-body);
  font-size: 10px;
  color: var(--text-mute);
  user-select: none;
  -webkit-user-select: none;
}

.link-badge {
  margin-right: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}

.badge-lock { color: var(--wave);  border-color: var(--wave); }

.link-arr {
  font-size: 14px;
  color: var(--wave);
  margin-right: 30px;
  flex-shrink: 0;
}

/* ── Announcements ── */
#announcements {
  border-top: 1px solid var(--border);
  background: rgba(12, 14, 16, 0.55);
}

.ann-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  border-top: 1px solid var(--border);
}

.ann-date {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 8px;
  gap: 2px;
}

.ann-date .month {
  font-family: var(--f-body);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wave);
  user-select: none;
  -webkit-user-select: none;
}

.ann-date .day {
  font-family: var(--f-title);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  user-select: none;
  -webkit-user-select: none;
}

.ann-body   { padding: 18px 20px; }

.ann-tag {
  display: block;
  font-family: var(--f-body);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 4px;
  user-select: none;
  -webkit-user-select: none;
}

.tag-show, .tag-news { color: var(--wave); }

.ann-title {
  font-family: var(--f-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
  user-select: none;
  -webkit-user-select: none;
}

.ann-desc {
  font-family: var(--f-body);
  font-size: 11px;
  color: var(--text-mute);
  line-height: 1.55;
}

.ann-desc a {
  color: var(--wave);
  text-decoration: underline;
}

.ann-item--past {
  filter: grayscale(1) opacity(0.4);
  pointer-events: none;
}

/* ── Gallery ── */
#photos { border-top: 1px solid var(--border); background: rgba(12, 14, 16, 0.55); }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg);
}

.g-cell {
  background: var(--surface);
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  /* To add a photo, set inline on the div in index.html:
     style="background-image: url('src/photo.jpg'); background-size: cover; background-position: center;" */
}

.g-cell.wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

/* ── Footer ── */
footer {
  padding: 20px;
  background: rgba(12, 14, 16, 0.55);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}

.ft-copy {
  font-family: var(--f-body);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  user-select: none;
  -webkit-user-select: none;
}

/* ════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════ */

/* ── Hero block wipe (curtain down) ── */
@keyframes hero-wipe {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0% 0); }
}

#home {
  clip-path: inset(0 0 100% 0);
  animation: hero-wipe 1.1s cubic-bezier(0.77, 0, 0.175, 1) 0.2s forwards;
}

/* ── Hero content stagger ── */
.hero-eyebrow,
.hero-title,
.hero-badge {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-item-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-eyebrow { animation-delay: 1.1s; }
.hero-title   { animation-delay: 1.3s; }
.hero-badge   { animation-delay: 1.55s; }

@keyframes hero-item-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Blinking REC dot ── */
@keyframes rec-blink {
  0%, 45%  { opacity: 1; }
  50%      { opacity: 0.15; }
  100%     { opacity: 1; }
}

.hero-badge .dot {
  animation: rec-blink 1.4s ease-in-out infinite;
}

/* ── Below-hero wrapper: visible by default (JS-failure fallback) ── */
/* JS adds .js-ready to <html> immediately, re-hiding so timed reveal plays */
#main-content {
  opacity: 1;
  background: rgba(12, 14, 16, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* On mobile the column is full-width — lighten further so waves show through */
@media (max-width: 480px) {
  #main-content {
    background: rgba(12, 14, 16, 0.2);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
}

.js-ready #main-content {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.js-ready #main-content.visible {
  opacity: 1;
}

/* ── Scroll reveal base ── */
.reveal:not(.bio-quote) {
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in:not(.bio-quote) {
  opacity: 1;
}

/* Stagger children of grids / lists when parent is .reveal — removed (fade-in-all-at-once) */

/* ── Handwritten quote left-to-right reveal ── */
.bio-quote {
  clip-path: inset(0 102% 0 0);
  transition: clip-path 1.9s cubic-bezier(0.4, 0, 0.15, 1);
}

.bio-quote.in {
  clip-path: inset(0 0% 0 0);
}

/* ── Desktop ── */
@media (min-width: 600px) {
  .hero-title { font-size: 96px; }
  .site-wrap  {
    max-width: 680px;
    border-left-color:  var(--border-hi);
    border-right-color: var(--border-hi);
  }
}