/* ==========================================================================
   BUILT IN SILENCE — MAIN STYLESHEET
   ==========================================================================
   This file contains the core visual design of the site: colors, type,
   layout, and component styling for every page (Home, About, Waitlist,
   Contact) at default (desktop) size.

   - Media queries live in responsive.css
   - Transitions & @keyframes live in animations.css
   - Do NOT add breakpoints or animation rules here — keep this file about
     "what things look like", not "how they move" or "how they resize".
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES
   ========================================================================== */
:root {
  --bg: #0a0a0a;
  --bg-raised: #131313;
  --line: #2a2a2a;
  --line-soft: #1e1e1e;
  --ink: #f2f0eb;
  --ink-dim: #9a9a95;
  --ink-faint: #5a5a56;
  --wf-idle: #3a3a37;
  --wf-active: #f2f0eb;
}


/* ==========================================================================
   2. RESET
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

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

button {
  font-family: inherit;
}


/* ==========================================================================
   3. TYPOGRAPHY (base body styles)
   ========================================================================== */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}


/* ==========================================================================
   4. FILM GRAIN OVERLAY
   ========================================================================== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}


/* ==========================================================================
   5. NAVIGATION (top bar + hamburger + full-screen menu overlay)
   ========================================================================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(22px, env(safe-area-inset-top)) max(40px, env(safe-area-inset-right)) 22px max(40px, env(safe-area-inset-left));
  background: linear-gradient(to bottom, rgba(10,10,10,0.92), transparent);
}

.nav-mark {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 6px 4px;
  margin: -6px -4px;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav-links button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  padding: 10px 2px;
  margin: -10px -2px;
}
.nav-links button:hover { color: var(--ink-dim); }
.nav-links button::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--ink);
}
.nav-links button:hover::after { width: 100%; }
.nav-links button.active { color: var(--ink); }
.nav-links button.active::after { width: 100%; }

/* ---- hamburger (mobile nav trigger) ---- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  z-index: 210;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ink);
}
.hamburger.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.hamburger.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---- full-screen menu overlay (mobile) ---- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
}
.menu-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.menu-links button {
  background: none;
  border: none;
  color: var(--ink-dim);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(26px, 7vw, 38px);
  cursor: pointer;
}
.menu-links button.active { color: var(--ink); font-weight: 700; font-style: normal; }
.menu-links button:hover { color: var(--ink); }

.menu-foot {
  position: absolute;
  bottom: max(32px, env(safe-area-inset-bottom));
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}


/* ==========================================================================
   6. PAGE SHELL (shared structure every page/section sits inside)
   ========================================================================== */
.page {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  opacity: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.page.active {
  display: flex;
}

.page-inner {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding: 96px 40px 60px;
}

.section-label {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.section-label::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--ink-faint);
}


/* ==========================================================================
   7. HERO (Home page)
   ========================================================================== */
#page-home .page-inner {
  padding: 0;
  position: relative;
  flex-direction: row;
  align-items: stretch;
}

.home-visual {
  position: relative;
  flex: 1.05;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 60% 82%, #1c1c1a 0%, #0d0d0c 45%, #050505 100%),
    linear-gradient(180deg, #030303 0%, #070706 40%, #0a0a09 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#chalk-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.home-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 55% 60%, transparent 35%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}

.emotion-figure {
  position: relative;
  width: min(75vw, 720px);   /* was min(50vw, 480px) — both values ×1.5 */
  height: auto;
  z-index: 2;
  margin-top: -60px;
  margin-bottom: 2vh;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.65));
}
.home-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(28px, 5vw, 80px);
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 22px;
}

.hero-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-size: clamp(42px, 6.4vw, 84px);
}
.hero-mark .weight { font-style: normal; font-weight: 700; }

.hero-sub {
  margin-top: 22px;
  max-width: 400px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-dim);
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.waveform-wrap {
  width: min(360px, 100%);
  margin-top: 44px;
}
.waveform-caption {
  display: flex;
  justify-content: space-between;
  font-family: 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-top: 8px;
  text-transform: uppercase;
}


/* ==========================================================================
   8. ABOUT PAGE
   ========================================================================== */
#page-about .page-inner { max-width: 720px; margin: 0 auto; }

.about-copy h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.28;
  margin: 8px 0 22px;
  max-width: 620px;
}
.about-copy h2 .weight { font-style: normal; font-weight: 700; }

.about-copy p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 16px;
}

.stat-row {
  display: flex;
  gap: 46px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.stat b {
  display: block;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
}
.stat span {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}


/* ==========================================================================
   9. WAITLIST / SHOP PAGE
   ========================================================================== */
#page-shop .page-inner { max-width: 880px; margin: 0 auto; width: 100%; }

.waitlist-head h2 {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.8vw, 44px);
  margin: 8px 0 14px;
}
.waitlist-head h2 .weight { font-style: normal; font-weight: 700; }
.waitlist-head p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.7;
  max-width: 480px;
}

.waitlist-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 440px;
}

.waitlist-note {
  margin-top: 4px;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.waitlist-success {
  display: none;
  margin-top: 40px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  max-width: 440px;
}
.waitlist-success.show { display: block; }
.waitlist-success .ok-label {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.waitlist-success p { font-size: 14px; color: var(--ink-dim); line-height: 1.6; }

/* ---- interest chips (multi-select tags in waitlist form) ---- */
.interest-row { display: flex; gap: 10px; flex-wrap: wrap; }
.interest-chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 16px;
  cursor: pointer;
}
.interest-chip:hover { border-color: var(--ink-faint); color: var(--ink-dim); }
.interest-chip.selected { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---- "in development" product preview grid ---- */
.preview-row {
  margin-top: 64px;
}
.preview-label {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.preview-card {
  background: var(--bg);
  padding: 20px 14px;
  text-align: center;
}
.preview-card .icon-wrap { display: flex; justify-content: center; margin-bottom: 12px; }
.preview-card svg { width: 44px; opacity: 0.5; }
.preview-card .p-name { font-family: Georgia, serif; font-size: 13px; margin-bottom: 4px; }
.preview-card .p-tba {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}


/* ==========================================================================
   10. CONTACT PAGE
   ========================================================================== */
#page-contact .page-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.contact-copy h2 {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.25;
  margin: 8px 0 22px;
}
.contact-copy h2 .weight { font-style: normal; font-weight: 700; }
.contact-copy p { color: var(--ink-dim); font-size: 15px; line-height: 1.75; max-width: 400px; }

form.contact-form { display: flex; flex-direction: column; gap: 20px; }


/* ==========================================================================
   11. BUTTONS
   ========================================================================== */
.btn-primary, .btn-ghost {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 26px;
  cursor: pointer;
  border: 1px solid var(--ink);
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: 0.82; }
.btn-ghost { background: transparent; color: var(--ink-dim); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-faint); color: var(--ink); }


/* ==========================================================================
   12. FORMS (shared input/label/textarea styling)
   ========================================================================== */
.field label {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  padding: 8px 0 10px;
  outline: none;
}
.field input:focus { border-color: var(--ink); }
.field input::placeholder { color: var(--ink-faint); }

.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  padding: 8px 0 10px;
  outline: none;
  resize: none;
}
.contact-form textarea:focus { border-color: var(--ink); }
.contact-form textarea::placeholder { color: var(--ink-faint); }


/* ==========================================================================
   13. FOOTER (repeated small footer strip at the bottom of each page)
   ========================================================================== */
.page-footer {
  padding: 20px max(40px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(40px, env(safe-area-inset-left));
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.page-footer .foot-links { display: flex; gap: 22px; }
.page-footer .foot-links a:hover { color: var(--ink-dim); }
