/* =========================================================
   THE BECOMING (4:2:4)
   Main stylesheet
   File: /assets/css/main.css
   ========================================================= */

:root{
  --bg: #0c0d10;
  --bg-2: #111318;
  --bg-3: #171920;

  --cream: #f3efe7;
  --cream-2: #ebe4d8;
  --cream-3: #ddd5c7;

  --text: #f3efe7;
  --text-soft: rgba(243,239,231,0.74);
  --text-dim: rgba(243,239,231,0.56);

  --dark-text: #171717;
  --dark-soft: rgba(23,23,23,0.74);
  --dark-dim: rgba(23,23,23,0.56);

  --line: rgba(255,255,255,0.12);
  --line-strong: rgba(255,255,255,0.22);
  --line-dark: rgba(0,0,0,0.10);

  --accent-rust: #b85c43;
  --accent-blue: #8ea7b4;
  --accent-charcoal: #202229;

  --success: #8fb093;
  --danger: #c77575;

  --max: 1220px;
  --narrow: 860px;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --shadow-lg: 0 24px 60px rgba(0,0,0,0.30);
  --shadow-md: 0 18px 45px rgba(0,0,0,0.20);
  --shadow-sm: 0 10px 24px rgba(0,0,0,0.12);

  --header-h: 72px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */

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

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  padding:0;
}

body.site-body,
body.gate-body{
  font-family:'Inter',sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
textarea,
select{
  font:inherit;
}

audio{
  display:block;
}

.shell{
  width:min(calc(100% - 48px), var(--max));
  margin:0 auto;
}

.narrow{
  width:min(calc(100% - 48px), var(--narrow));
  margin:0 auto;
}

.visually-hidden{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.eyebrow,
.section-kicker,
.track-number,
.mono{
  font-family:'Space Mono',monospace;
  letter-spacing:0.18em;
  text-transform:uppercase;
}

h1,h2,h3,h4,h5,h6{
  margin-top:0;
}

p{
  margin:0 0 1rem;
}

strong{
  font-weight:600;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 20px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:500;
  transition:background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  cursor:pointer;
}

.btn:hover,
.btn:focus{
  transform:translateY(-1px);
}

.btn-primary{
  background:var(--cream);
  color:#101114;
}

.btn-primary:hover,
.btn-primary:focus{
  background:#fff7ec;
}

.btn-secondary{
  border-color:rgba(255,255,255,0.20);
  color:var(--text);
  background:rgba(255,255,255,0.03);
}

.btn-secondary:hover,
.btn-secondary:focus{
  background:rgba(255,255,255,0.08);
}

.btn-dark{
  background:#14161b;
  color:var(--cream);
  border-color:#14161b;
}

.btn-dark:hover,
.btn-dark:focus{
  background:#1b1e24;
}

/* =========================================================
   PROTECTED SITE LAYOUT
   ========================================================= */

body.site-body{
  background:var(--bg);
  color:var(--text);
  line-height:1.65;
}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  min-height:var(--header-h);
  backdrop-filter:blur(14px);
  background:rgba(9,10,12,0.72);
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.header-inner{
  min-height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand{
  font-size:0.92rem;
  font-weight:600;
  letter-spacing:0.28em;
  text-transform:uppercase;
  color:#fff;
  white-space:nowrap;
}

.site-nav{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:18px;
}

.site-nav a{
  color:var(--text-soft);
  font-size:0.94rem;
  transition:color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus{
  color:#fff;
}

.logout-link{
  padding:8px 12px;
  border:1px solid rgba(255,255,255,0.14);
  border-radius:999px;
}

.logout-link:hover,
.logout-link:focus{
  border-color:rgba(255,255,255,0.28);
}

/* =========================================================
   HERO
   ========================================================= */

.hero{
  position:relative;
  min-height:88vh;
  display:flex;
  align-items:flex-end;
}

.hero--image{
  background-size:cover;
  background-repeat:no-repeat;
  background-position:center center;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(to top, rgba(7,8,10,0.90) 8%, rgba(7,8,10,0.42) 48%, rgba(7,8,10,0.18) 100%),
    linear-gradient(to right, rgba(7,8,10,0.36), rgba(7,8,10,0.14));
}

.hero-content{
  position:relative;
  z-index:2;
  width:100%;
  max-width:860px;
  padding:120px 0 72px;
}

.eyebrow{
  margin:0 0 12px;
  color:rgba(255,255,255,0.72);
  font-size:0.80rem;
}

.hero h1{
  margin:0;
  font-size:clamp(2.6rem, 7vw, 5.4rem);
  line-height:0.96;
  letter-spacing:-0.04em;
  font-weight:600;
  color:#fff;
}

.hero h1 span{
  font-weight:400;
  color:rgba(255,255,255,0.90);
}

.hero-sub{
  margin:20px 0 0;
  font-size:clamp(1rem, 1.8vw, 1.3rem);
  color:rgba(255,255,255,0.86);
}

.hero-copy{
  margin:20px 0 0;
  max-width:720px;
  font-size:1.04rem;
  color:rgba(255,255,255,0.75);
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:30px;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section{
  padding:96px 0;
}

.section-light{
  background:var(--cream);
  color:var(--dark-text);
}

.section-dark{
  background:linear-gradient(180deg, #0f1116 0%, #0b0c10 100%);
  color:var(--text);
}

.section-geometry{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg, #f3efe7 0%, #ede7db 100%);
  color:var(--dark-text);
}

.section-geometry::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0.22;
  background-image:
    linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size:64px 64px;
}

.section-geometry::after{
  content:"";
  position:absolute;
  inset:auto -8% 8% auto;
  width:320px;
  height:320px;
  border-radius:50%;
  background:radial-gradient(circle at center, rgba(142,167,180,0.18) 0%, rgba(142,167,180,0.08) 45%, transparent 72%);
  pointer-events:none;
}

.two-col{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:56px;
  align-items:center;
}

.copy-col h2,
.section-head h2,
.narrow h2{
  margin:0 0 18px;
  font-size:clamp(2rem, 4vw, 3.2rem);
  line-height:1.03;
  letter-spacing:-0.03em;
  font-weight:600;
}

.copy-col p,
.narrow p,
.section-intro{
  font-size:1.03rem;
}

.section-kicker{
  margin:0 0 12px;
  font-size:0.78rem;
  color:inherit;
  opacity:0.72;
}

.section-head{
  margin-bottom:34px;
}

.section-intro{
  max-width:700px;
  color:inherit;
  opacity:0.76;
}

/* =========================================================
   COVER / ART PANELS
   ========================================================= */

.cover-card{
  margin:0;
  padding:18px;
  background:#101114;
  border-radius:var(--radius);
  box-shadow:var(--shadow-lg);
}

.cover-card img{
  width:100%;
  border-radius:10px;
}

.panel-card{
  background:rgba(255,255,255,0.06);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-md);
}

/* =========================================================
   TRACKS
   ========================================================= */

.track-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:22px;
}

.track-card{
  background:rgba(255,255,255,0.03);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:0 16px 40px rgba(0,0,0,0.18);
}

.track-number{
  margin:0 0 8px;
  font-size:0.76rem;
  color:rgba(255,255,255,0.58);
}

.track-title{
  margin:0;
  font-size:1.34rem;
  font-weight:600;
  letter-spacing:-0.02em;
  color:#fff;
}

.track-note{
  margin:8px 0 20px;
  color:var(--text-soft);
  font-size:0.97rem;
}

.track-card audio{
  width:100%;
  border-radius:10px;
}

/* =========================================================
   QUOTE
   ========================================================= */

.pull-quote{
  margin:34px 0 0;
  padding-left:18px;
  border-left:2px solid rgba(0,0,0,0.18);
  font-size:1.16rem;
  letter-spacing:-0.02em;
  opacity:0.9;
}

/* =========================================================
   GALLERY
   ========================================================= */

.gallery-grid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:24px;
}

.gallery-card{
  margin:0;
  background:rgba(255,255,255,0.58);
  border:1px solid rgba(0,0,0,0.08);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 18px 45px rgba(0,0,0,0.08);
}

.gallery-card img{
  width:100%;
  aspect-ratio:16 / 10;
  object-fit:cover;
  background:#d7d2c7;
}

.gallery-card figcaption{
  padding:14px 16px 16px;
  font-size:0.93rem;
  color:var(--dark-soft);
}

/* =========================================================
   DEVELOPMENT STRIP
   ========================================================= */

.section-development{
  border-top:1px solid rgba(255,255,255,0.08);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer{
  background:#090a0d;
  color:rgba(255,255,255,0.72);
  border-top:1px solid rgba(255,255,255,0.08);
}

.footer-inner{
  min-height:88px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:24px 0;
}

.footer-brand{
  margin:0 0 4px;
  color:#fff;
  letter-spacing:0.06em;
}

.footer-small{
  margin:0;
  font-size:0.92rem;
}

/* =========================================================
   GATE PAGE
   ========================================================= */

body.gate-body{
  min-height:100vh;
  background:
    linear-gradient(to bottom, rgba(9,10,12,0.82), rgba(9,10,12,0.94)),
    url('/assets/img/THE-VAN.jpg') center center / cover no-repeat;
  color:var(--text);
  line-height:1.6;
}

.gate-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 0;
}

.gate-card{
  width:min(calc(100% - 32px), 560px);
  background:rgba(10,11,14,0.82);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:24px;
  box-shadow:var(--shadow-lg);
  backdrop-filter:blur(12px);
  overflow:hidden;
}

.gate-card-inner{
  padding:34px 30px 30px;
}

.gate-logo{
  width:118px;
  margin:0 auto 22px;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 12px 30px rgba(0,0,0,0.26);
  background:#111;
}

.gate-logo img{
  width:100%;
  display:block;
}

.gate-title{
  margin:0;
  text-align:center;
  font-size:clamp(1.9rem, 4vw, 2.7rem);
  line-height:1.02;
  letter-spacing:-0.03em;
  color:#fff;
}

.gate-title span{
  font-weight:400;
  color:rgba(255,255,255,0.88);
}

.gate-sub{
  margin:14px auto 0;
  max-width:420px;
  text-align:center;
  color:var(--text-soft);
  font-size:1rem;
}

.gate-form{
  margin-top:28px;
}

.field{
  margin-bottom:16px;
}

.field label{
  display:block;
  margin-bottom:8px;
  font-size:0.92rem;
  color:rgba(255,255,255,0.82);
}

.field input[type="password"],
.field input[type="text"]{
  width:100%;
  min-height:52px;
  padding:0 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.05);
  color:#fff;
  outline:none;
}

.field input[type="password"]::placeholder,
.field input[type="text"]::placeholder{
  color:rgba(255,255,255,0.42);
}

.field input[type="password"]:focus,
.field input[type="text"]:focus{
  border-color:rgba(255,255,255,0.34);
  background:rgba(255,255,255,0.07);
}

.gate-actions{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  margin-top:20px;
}

.gate-help{
  margin-top:18px;
  text-align:center;
  color:rgba(255,255,255,0.58);
  font-size:0.90rem;
}

.gate-error{
  margin:0 0 18px;
  padding:12px 14px;
  border-radius:12px;
  background:rgba(199,117,117,0.14);
  border:1px solid rgba(199,117,117,0.30);
  color:#ffd3d3;
  font-size:0.95rem;
}

.gate-note{
  margin-top:16px;
  text-align:center;
  color:rgba(255,255,255,0.60);
  font-size:0.86rem;
}

/* =========================================================
   SIMPLE UTILITY CLASSES
   ========================================================= */

.mt-0{ margin-top:0 !important; }
.mb-0{ margin-bottom:0 !important; }
.text-center{ text-align:center !important; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px){
  .two-col,
  .track-grid,
  .gallery-grid{
    grid-template-columns:1fr;
  }

  .hero{
    min-height:76vh;
  }
}

@media (max-width: 720px){
  :root{
    --header-h: 68px;
  }

  .shell,
  .narrow{
    width:min(calc(100% - 28px), var(--max));
  }

  .header-inner,
  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    padding:14px 0;
  }

  .site-nav{
    gap:12px;
  }

  .hero-content{
    padding:98px 0 44px;
  }

  .section{
    padding:72px 0;
  }

  .hero-actions{
    flex-direction:column;
    align-items:flex-start;
  }

  .gate-card-inner{
    padding:28px 20px 24px;
  }

  .gate-actions{
    flex-direction:column;
  }

  .gate-actions .btn{
    width:100%;
  }
}