/* ── CHSN ONES — Global Styles ── */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100;0,9..144,200;1,9..144,100;1,9..144,200&display=swap');

@font-face {
  font-family: 'Lenior';
  src: url('../assets/fonts/Lenior-BF68d76b1d9ba1f.otf') format('opentype');
}

/* ── Lenior thinning — bg stroke shaves the bold weight optically ── */
.nav-logo,
.hero-title,
.hero-sub,
.section-title,
.statement-quote,
.mission-hero-text,
.pillar-title,
.footer-logo,
.shop-name,
.product-name {
  -webkit-text-stroke: 1px var(--bg);
  paint-order: stroke fill;
}

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

/* ── Tokens ── */
:root {
  --bg:       #380F0A;
  --primary:  #C38A28;
  --accent:   #EA86AA;
  --white:    #F5EDE0;
  --dark:     #1E0805;

  --font-display: 'Lenior', serif;
  --font-body:    'Fraunces', serif;
  --lenior-stroke: -webkit-text-stroke: 1px var(--bg); paint-order: stroke fill;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ── */
body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 100;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Shader surface: fixed, behind everything, receives pointer events via window */
#suede-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: block;
  pointer-events: none;
}

/* Fallback: static suede image with warm-light overlay for small screens / no WebGL */
body.suede-fallback {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 30% 25%, rgba(255, 180, 100, 0.18) 0%, transparent 55%),
    url('../assets/images/leather-texture.webp');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Brush halo — follows cursor, simulates light on suede */
.leather-halo {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  margin-left: -190px;
  margin-top: -190px;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 200, 130, 0.18) 0%,
    rgba(234, 134, 170, 0.10) 30%,
    rgba(195, 138, 40, 0.05) 55%,
    transparent 75%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.6s ease-out;
  transform: translate3d(-9999px, -9999px, 0);
  will-change: transform, opacity;
  filter: blur(20px);
}
.leather-halo.active { opacity: 1; }

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  mix-blend-mode: normal;
  transition: background var(--transition), padding var(--transition);
}

nav.scrolled {
  background: transparent;
  padding: 18px 60px;
}

nav a {
  display: inline-block;
}

/* Nav logo: 3D flip card (wordmark ↔ marble hand) */
.nav-logo-link {
  --nav-slot: 216px;
  display: inline-block;
  perspective: 1400px;
  cursor: pointer;
  width: 360px;
  height: var(--nav-slot);
  margin-left: -40px;
  margin-top: -20px;
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.nav-logo-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.7, 0, 0.3, 1);
}

.nav-logo-link.flipped .nav-logo-card {
  transform: rotateY(180deg);
}

.nav-logo-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.nav-logo-face--back {
  transform: rotateY(180deg);
}

.nav-logo-face--back .nav-logo--hand {
  height: 60%;
  width: auto;
  object-fit: contain;
  /* No filter — show original marble color */
  filter: none;
  mix-blend-mode: normal;
  margin: 0;
  opacity: 1;
  /* Use logical translate so it composes cleanly with rotate */
  translate: -40px -20px;
  transform-origin: 50% 50%;
  animation:
    handSpin 7s cubic-bezier(0.7, 0, 0.3, 1) infinite,
    logoSway 11s ease-in-out infinite,
    logoBreathe 4.3s ease-in-out infinite;
}

/* Pause spin while wordmark side is showing (saves CPU, no visual diff) */
.nav-logo-link:not(.flipped) .nav-logo-face--back .nav-logo--hand {
  animation-play-state: paused;
}

@keyframes handSpin {
  0%, 80% { rotate: 0deg; }
  100%    { rotate: 360deg; }
}

/* Inner wrapper carries the spin, outer (img) carries the breathing sway */
.nav-logo {
  display: block;
  height: 216px;
  width: auto;
  mix-blend-mode: normal;
  filter: sepia(1) saturate(2) hue-rotate(295deg) brightness(1.1);
  transition: filter var(--transition), opacity var(--transition);
  opacity: 0.9;
  margin-left: -40px;
  margin-top: -20px;
  transform-origin: center center;
  transform-style: preserve-3d;
  backface-visibility: visible;
  animation: logoBreathe 8s ease-in-out infinite;
}
.nav-logo:hover {
  opacity: 1;
  filter: sepia(1) saturate(2.5) hue-rotate(295deg) brightness(1.25);
  animation-play-state: paused;
}

.nav-logo.morphing {
  animation: logoMorph 0.6s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes logoMorph {
  0%   { rotate: y 0deg;   scale: 1; }
  50%  { rotate: y 90deg;  scale: 0.7; }
  100% { rotate: y 360deg; scale: 1; }
}

@keyframes logoSpin {
  0%,  80% { rotate: y 0deg; }
  100%     { rotate: y 360deg; }
}

@keyframes logoSway {
  0%   { translate: 0 0; }
  17%  { translate: 2px -3px; }
  34%  { translate: -1px -1px; }
  51%  { translate: 3px 2px; }
  68%  { translate: -2px 1px; }
  83%  { translate: 1px -2px; }
  100% { translate: 0 0; }
}

@keyframes logoBreathe {
  0%, 100% { scale: 1; opacity: 0.85; }
  50%      { scale: 1.03; opacity: 1; }
}

.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.7;
  transition: opacity var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { opacity: 1; color: var(--primary); }

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 12px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 160px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  line-height: 0.9;
  -webkit-text-stroke: 1px var(--bg);
  paint-order: stroke fill;
}

/* ── Hero morph: 3D flip card with twin-locked faces ── */
.hero-morph {
  --slot-w: clamp(360px, 36vw, 520px);
  --slot-h: calc(clamp(72px, 12vw, 160px) * 2 * 0.9);
  display: inline-block;
  cursor: pointer;
  perspective: 1600px;
  /* Sit above body ember layer so no blend-mode tint leaks in */
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.hero-morph-inner {
  position: relative;
  width: var(--slot-w);
  height: var(--slot-h);
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.7, 0, 0.3, 1);
}

.hero-morph.flipped .hero-morph-inner {
  transform: rotateY(180deg);
}

/* Both faces: identical absolute box, centered content */
.hero-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-face--back {
  transform: rotateY(180deg);
}

.hero-face--front .hero-title {
  margin: 0;
  text-align: center;
}

.hero-face--back .hero-hand {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

@keyframes heroSpin {
  0%, 80% { rotate: y 0deg; }
  100%    { rotate: y 360deg; }
}

@keyframes heroSway {
  0%   { translate: 0 0; }
  17%  { translate: 2px -3px; }
  34%  { translate: -1px -1px; }
  51%  { translate: 3px 2px; }
  68%  { translate: -2px 1px; }
  83%  { translate: 1px -2px; }
  100% { translate: 0 0; }
}

@keyframes heroBreathe {
  0%, 100% { scale: 1; }
  50%      { scale: 1.015; }
}

.hero-divider {
  width: 120px;
  height: 1px;
  background: var(--primary);
  opacity: 0.3;
  margin: 40px auto;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
}

.hero-body {
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--white);
  opacity: 0.5;
  margin-top: 24px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 100;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: var(--primary);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ── Section Base ── */
section {
  padding: 120px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-full {
  max-width: 100%;
  padding: 120px 60px;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  line-height: 1;
}

.section-divider {
  width: 80px;
  height: 1px;
  background: var(--primary);
  opacity: 0.3;
  margin: 32px 0;
}

.section-body {
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 17px;
  line-height: 1.9;
  color: var(--white);
  opacity: 0.75;
  max-width: 580px;
}

/* ── Statement Section ── */
.statement {
  text-align: center;
  padding: 140px 60px;
  /* Daim zone: semi-transparent so compressed suede glow reads through */
  background: rgba(18, 4, 2, 0.78);
  max-width: 100%;
}

.statement-quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto;
}

.statement-sub {
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-top: 32px;
  opacity: 0.8;
}

/* ── Product Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.product-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  background: var(--dark);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.85);
}

.product-card:hover .product-img { transform: scale(1.04); filter: brightness(1); }

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,8,5,0.85) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover .product-overlay { opacity: 1; }

.product-name {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.product-detail {
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 13px;
  color: var(--white);
  opacity: 0.7;
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* ── CTA Button ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(195,138,40,0.4);
  padding: 14px 40px;
  transition: all var(--transition);
  cursor: pointer;
  background: transparent;
}

.btn:hover {
  background: rgba(195,138,40,0.08);
  border-color: var(--primary);
  letter-spacing: 0.4em;
}

.btn-center {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

/* ── Mission Excerpt ── */
.mission-excerpt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: center;
}

/* ── Coordinate stamp ── */
.coordinate {
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--primary);
  opacity: 0.3;
  text-transform: uppercase;
}

/* ── Footer ── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(195,138,40,0.1);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.footer-logo {
  height: 28px;
  width: auto;
  mix-blend-mode: screen;
  filter: sepia(1) saturate(2) hue-rotate(295deg) brightness(0.9);
  opacity: 0.5;
}

.footer-tagline {
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 14px;
  color: var(--accent);
  opacity: 0.7;
  letter-spacing: 0.05em;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.5;
  transition: opacity var(--transition);
}

.footer-links a:hover { opacity: 1; color: var(--primary); }

.footer-right {
  text-align: right;
}

.footer-coord {
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--primary);
  opacity: 0.25;
  margin-bottom: 16px;
}

.footer-copy {
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--white);
  opacity: 0.25;
}

/* ── Page Header (inner pages) ── */
.page-header {
  height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  background: radial-gradient(ellipse at 50% 80%, rgba(195,138,40,0.06) 0%, transparent 60%);
}

/* ── Shop ── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.shop-card {
  cursor: pointer;
}

.shop-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--dark);
  margin-bottom: 16px;
  position: relative;
}

.shop-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  filter: brightness(0.9);
}

.shop-card:hover .shop-img-wrap img { transform: scale(1.03); filter: brightness(1); }

.shop-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1E0805 0%, #2A0F08 50%, #1E0805 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-placeholder span {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--primary);
  opacity: 0.15;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.shop-name {
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.shop-price {
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 14px;
  color: var(--white);
  opacity: 0.5;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.shop-tag {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 4px 10px;
}

/* ── Mission ── */
.mission-hero-text {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 100px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  line-height: 0.95;
  text-align: center;
}

.mission-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--dark);
  max-width: 100%;
}

.pillar {
  padding: 80px 60px;
  background: var(--bg);
  border-top: 1px solid rgba(195,138,40,0.1);
}

.pillar-symbol {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--primary);
  opacity: 0.2;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 20px;
}

.pillar-body {
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 15px;
  line-height: 1.9;
  color: var(--white);
  opacity: 0.65;
}

/* ── Drop Preview (homepage) ── */
.drop-preview {
  position: relative;
  padding: 120px 60px;
  max-width: 1400px;
  margin: 0 auto;
  /* Transition zone: denser amber-black, deeper than statement to signal nap fully compressing */
  background: rgba(14, 4, 1, 0.88);
}

.drop-header {
  margin-bottom: 64px;
}

/* ── Email Gate ── */
.email-gate {
  background: var(--dark);
  padding: 100px 60px;
  text-align: center;
}

.email-gate-line {
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 18px;
  color: var(--white);
  opacity: 0.65;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}

.email-gate-form {
  display: flex;
  gap: 0;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.email-gate-input {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(195,138,40,0.3);
  border-right: none;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 15px;
  padding: 14px 20px;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}

.email-gate-input:focus {
  border-color: rgba(195,138,40,0.7);
}

.email-gate-input::placeholder {
  color: rgba(245,237,224,0.2);
}

.email-gate-btn {
  border-left: none;
  white-space: nowrap;
}

/* ── Shop tag variants ── */
.shop-tag--sold {
  background: var(--bg);
  color: var(--white);
  opacity: 0.6;
}

.shop-tag--soon {
  background: rgba(195,138,40,0.15);
  color: var(--primary);
  border: 1px solid rgba(195,138,40,0.3);
}

/* ── Ghost button ── */
.btn--ghost {
  color: var(--white);
  border-color: rgba(245,237,224,0.2);
  opacity: 0.6;
}

.btn--ghost:hover {
  color: var(--white);
  border-color: rgba(245,237,224,0.5);
  background: rgba(245,237,224,0.04);
  opacity: 1;
  letter-spacing: 0.4em;
}

/* ── World Pillars (mission page) ── */
.world-pillars {
  width: 100%;
}

.world-pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.world-pillar--dark {
  background: var(--dark);
}

.world-pillar--right {
  direction: ltr;
}

.world-pillar-text {
  padding: 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.world-pillar--dark .world-pillar-text {
  background: var(--dark);
}

.world-pillar-visual {
  overflow: hidden;
  position: relative;
}

.world-pillar-visual--gamble {
  padding: 0 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--dark);
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: start;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.6;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(195,138,40,0.2);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--transition);
  resize: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(195,138,40,0.6);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(245,237,224,0.2);
}

.form-group select option {
  background: var(--dark);
}
