/* A Valley Mastered — site styles. Fonts: Anton, Inter, IBM Plex Mono (OFL licences in /fonts). */

@font-face {
  font-family: Inter;
  src: url("../fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Anton;
  src: url("../fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0c0f;
  --text: #f5f6f8;
  --sub: #a3a8b3;
  --dim: #6b7280;
  --cgold: #c9a24d;
  --gold-line: rgba(179, 153, 93, 0.28);
  --glass: rgba(21, 23, 28, 0.72);
  --glass-border: rgba(255, 255, 255, 0.1);
  --navy-ink: #1b2236;
  --cool-stone: #d6d6d2;
  --heather: #9a9ca3;
  --header-h: 4.25rem;
  --max: 75rem;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --sans: Inter, -apple-system, "SF Pro Display", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --anton: Anton, "Arial Narrow", Impact, sans-serif;
  --radius-lg: 1.375rem;
  --radius-card: 1.25rem;
  --ease: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 430;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

.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;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--cgold);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 0.75rem;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -8%, rgba(201, 162, 77, 0.11), transparent 58%),
    var(--bg);
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 77, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 77, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 12%, transparent 74%);
  pointer-events: none;
  z-index: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000;
  border-bottom: 1px solid var(--gold-line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.brand-mark {
  width: 2.125rem;
  height: auto;
  flex: none;
  filter: drop-shadow(0 0 8px rgba(201, 162, 77, 0.35));
}

.brand-word {
  height: 1rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
  object-position: left center;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  color: var(--cgold);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--text);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bag-btn,
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(201, 162, 77, 0.28);
  border-radius: 0.625rem;
  background: transparent;
  color: var(--cgold);
}

.bag-btn:focus-visible,
.menu-btn:focus-visible,
.btn-pill:focus-visible,
.view-toggle button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cgold);
  outline-offset: 2px;
}

.menu-btn .icon-close {
  display: none;
}

.menu-btn[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-btn[aria-expanded="true"] .icon-close {
  display: block;
}

.menu-btn {
  display: flex;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .menu-btn {
    display: none;
  }
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  padding: 0.5rem var(--pad) 1rem;
  background: #000;
  border-bottom: 1px solid var(--gold-line);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  padding: 0.85rem 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cgold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-mobile a:last-child {
  border-bottom: 0;
}

/* Glass */

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 18px 48px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(201, 162, 77, 0.06);
}

/* Hero */

.hero {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.75rem) var(--pad) clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
    min-height: min(78vh, 42rem);
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-wordmark {
  display: block;
  width: clamp(10rem, 42vw, 15rem);
  height: auto;
  max-width: 15rem;
  object-fit: contain;
  object-position: left center;
}

.hero h1 {
  margin: 0.875rem 0 0;
  font-size: clamp(2.5rem, 6.5vw, 4.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.96;
  color: var(--text);
  max-width: 11ch;
}

.hero-sub {
  margin: 1.125rem 0 0;
  color: var(--sub);
  font-size: clamp(1rem, 2vw, 1.0625rem);
  max-width: 28ch;
}

.btn-pill {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.625rem;
  padding: 0 1.375rem;
  border-radius: 999px;
  border: 1px solid var(--cgold);
  color: var(--cgold);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: rgba(201, 162, 77, 0.08);
  box-shadow: 0 0 24px rgba(201, 162, 77, 0.12);
  transition: background var(--ease), color var(--ease);
}

.btn-pill:hover {
  background: rgba(201, 162, 77, 0.16);
  color: var(--text);
}

.btn-pill-sm {
  margin-top: 1rem;
  font-size: 0.75rem;
  min-height: 2.375rem;
}

.hero-animation {
  position: relative;
  z-index: 1;
  width: min(100%, 20rem);
  aspect-ratio: 720 / 1088;
  margin: 0 auto;
  justify-self: center;
}

@media (max-width: 899px) {
  .hero-animation {
    order: -1;
    width: min(72vw, 16.5rem);
  }
}

@media (min-width: 900px) {
  .hero-animation {
    width: 100%;
    max-width: 24rem;
    justify-self: end;
  }
}

.hero-picture,
.hero-goat {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 1088;
}

.hero-goat {
  object-fit: contain;
  object-position: center center;
}

/* Sections */

.section {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad);
}

.section-head {
  margin-bottom: 1.5rem;
}

.label-mono {
  margin: 0;
  color: var(--cgold);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Products */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.product-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.product-media .view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  opacity: 0;
  transition: opacity 280ms ease;
}

.product-media .view.is-visible {
  opacity: 1;
}

.view-toggle {
  position: absolute;
  right: 0.875rem;
  bottom: 0.875rem;
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(11, 12, 15, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.view-toggle button {
  min-height: 2rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sub);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.view-toggle button[aria-pressed="true"] {
  background: rgba(201, 162, 77, 0.2);
  color: var(--cgold);
}

.product-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.product-name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.product-desc {
  margin: 0.5rem 0 0;
  color: var(--sub);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.product-specs {
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.specs-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: var(--cgold);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
}

.specs-toggle:focus-visible {
  outline: 2px solid var(--cgold);
  outline-offset: 2px;
}

.specs-chevron {
  flex: none;
  color: var(--cgold);
  transition: transform var(--ease);
}

.specs-toggle[aria-expanded="true"] .specs-chevron {
  transform: rotate(180deg);
}

.specs-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms ease;
}

.specs-panel.is-open {
  grid-template-rows: 1fr;
}

.specs-panel[hidden] {
  display: none;
}

.specs-panel:not([hidden]) {
  display: grid;
}

.specs-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.specs-list {
  margin: 0;
  padding: 0.65rem 0 0.25rem;
  display: grid;
  gap: 0.55rem;
}

.specs-item {
  margin: 0;
}

.specs-item dt {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cgold);
}

.specs-item dd {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--sub);
  line-height: 1.45;
}

.spec-anton {
  font-family: var(--anton);
  letter-spacing: 0.04em;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .specs-panel {
    transition: none;
  }

  .specs-chevron {
    transition: none;
  }
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.swatch {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex: none;
}

.swatch-navy {
  background: var(--navy-ink);
}

.swatch-heather {
  background: var(--heather);
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.625rem;
  border-radius: 999px;
  background: rgba(11, 12, 15, 0.78);
  border: 1px solid rgba(201, 162, 77, 0.28);
  color: var(--cgold);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chip-mute {
  color: var(--sub);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Story */

.story-card {
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .story-card {
    grid-template-columns: minmax(12.5rem, 17rem) 1fr;
    gap: 2.5rem;
    align-items: center;
    min-height: min(28rem, 70vh);
  }

  .story-logos {
    align-self: center;
    justify-content: center;
  }

  .story-copy {
    align-self: center;
  }
}

.story-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.story-monogram {
  display: block;
  width: clamp(10rem, 40vw, 16.25rem);
  height: auto;
  max-width: 16.25rem;
  object-fit: contain;
}

.story-copy > p {
  margin: 1rem 0 0;
  color: var(--sub);
  font-size: 1rem;
  max-width: 58ch;
}

.story-copy > p:first-of-type {
  margin-top: 0.75rem;
}

.story-founder {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(201, 162, 77, 0.42);
  max-width: 62ch;
}

.founder-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--cgold);
}

.founder-body p {
  margin: 1rem 0 0;
  color: var(--sub);
  font-size: 1rem;
  line-height: 1.55;
}

.founder-body p:first-child {
  margin-top: 0;
}

.founder-close {
  color: var(--text);
  font-weight: 600;
}

/* Notify */

.notify-card {
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 40rem;
}

.notify-lead {
  margin: 0.75rem 0 0;
  color: var(--sub);
  max-width: 48ch;
}

.waitlist-form {
  margin-top: 1.5rem;
}

.waitlist-form label {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cgold);
  margin-bottom: 0.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .form-row {
    flex-direction: row;
    align-items: stretch;
  }
}

.waitlist-form input {
  flex: 1;
  min-height: 2.625rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.waitlist-form input::placeholder {
  color: var(--dim);
}

.waitlist-form .btn-pill {
  margin-top: 0;
  flex-shrink: 0;
}

.form-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--dim);
  max-width: 42ch;
}

/* Footer */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--gold-line);
  padding: 2.5rem var(--pad) 2rem;
  background: rgba(0, 0, 0, 0.5);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand img {
  width: 2.5rem;
  opacity: 0.95;
}

.footer-name {
  margin: 0.75rem 0 0;
  font-weight: 650;
}

.footer-brand p {
  margin: 0.35rem 0 0;
  color: var(--sub);
  font-size: 0.9375rem;
}

.footer-brand a {
  color: var(--cgold);
  text-decoration: none;
}

.footer-brand a:hover,
.footer-brand a:focus-visible {
  text-decoration: underline;
}

.footer-social ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 639px) {
  .footer-social ul {
    justify-content: center;
  }
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: transform var(--ease);
}

.social-btn svg {
  display: block;
  width: 2.375rem;
  height: 2.375rem;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-2px);
}

.social-btn:focus-visible {
  outline: 2px solid var(--cgold);
  outline-offset: 3px;
}

.footer-copy {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--dim);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Tap: toggle on media tap (mobile) */

@media (hover: none) {
  .product-media {
    cursor: pointer;
  }
}
