:root {
  --void: #050404;
  --ink: #0d0a0a;
  --blood: #c8100c;
  --blood-hi: #ff3a22;
  --bone: #e9e2d4;
  --bone-dim: #b9b0a2;
  --ash: #7d746c;
  --rule: rgba(233, 226, 212, 0.14);
  --tenet-II: #2a6dff;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#altar { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 33%{transform:translate(-3%,2%)} 66%{transform:translate(2%,-3%)} 100%{transform:translate(0,0)} }

main, footer { position: relative; z-index: 2; }
main { overflow-x: clip; }

/* ---------- type ---------- */
.eyebrow, .btn, .nav, .fine, label, .price, .chip, summary, .cart, .scroll-cue, .tenet-num {
  font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow { font-size: 12px; color: var(--ash); margin: 0 0 18px; }
h2 { font-weight: 500; font-size: clamp(34px, 5vw, 60px); line-height: 1.02; margin: 0 0 20px; letter-spacing: -.01em; }
.fine { font-size: 10.5px; color: var(--ash); letter-spacing: .1em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; font-size: 12px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; background: none; transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn-blood { background: var(--blood); color: #fff; box-shadow: 0 0 0 rgba(255,58,34,0); }
.btn-blood:hover { background: var(--blood-hi); box-shadow: 0 0 34px rgba(255,40,20,.45); }
.btn-ghost { border-color: var(--rule); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); }
.btn-wide { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
:focus-visible { outline: 1px solid var(--blood-hi); outline-offset: 3px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px; padding: 14px var(--gutter);
  font-size: 11.5px;
  background: linear-gradient(to bottom, rgba(5,4,4,.85), rgba(5,4,4,0));
}
.nav-mark img { height: 34px; width: auto; filter: drop-shadow(0 0 8px rgba(200,16,12,.4)); }
.nav-links { display: flex; gap: 26px; margin-right: auto; }
.nav-links a { text-decoration: none; color: var(--bone-dim); }
.nav-links a:hover { color: var(--bone); }
.nav-cart { background: none; border: 1px solid var(--rule); padding: 9px 14px; cursor: pointer; font-size: 11px; letter-spacing: .14em; }
.nav-cart span { color: var(--blood-hi); margin-left: 6px; }
.nav-cart.bump { animation: bump .5s; }
@keyframes bump { 30% { border-color: var(--blood-hi); box-shadow: 0 0 24px rgba(255,40,20,.5); } }

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 11px; }
.dot { color: var(--blood); margin: 0 6px; }

/* ---------- hero: the drop is on screen from the first frame ---------- */
.hero { height: 115vh; position: relative; }
.hero-inner {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 0 clamp(16px, 3vh, 32px);
}
.drop { width: 100%; max-width: 1400px; margin: 0 auto; animation: rise .7s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.drop-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter) 12px; }
.drop-head .eyebrow { margin: 0; color: var(--bone-dim); text-shadow: 0 1px 12px #000; }
.drop-head b { color: var(--blood-hi); font-weight: 500; }
.rail {
  list-style: none; margin: 0; padding: 6px var(--gutter) 10px; display: flex; gap: clamp(10px, 1.2vw, 16px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail .plate-card img { inset: 5% 8% 27%; width: 84%; height: 68%; }
.rail::-webkit-scrollbar { display: none; }
.rail { justify-content: center; }
.rail .plate { flex: 0 0 clamp(150px, 19vh, 230px); scroll-snap-align: start; }
.rail .plate-card .plate-foot { flex-direction: column; gap: 2px; font-size: 9.5px; padding: 8px 9px; }
.rail .plate-card .stamp { font-size: 9px; }


/* text sections sit on a dark veil so the altar never fights the words */
.manifesto, .lore, .about, .faq { position: relative; }
.manifesto::before, .lore::before, .about::before, .faq::before {
  content: ''; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background: linear-gradient(to bottom, rgba(5,4,4,.55), rgba(5,4,4,.82) 15%, rgba(5,4,4,.82) 85%, rgba(5,4,4,.55));
}

/* ---------- manifesto (founder's original words) ---------- */
.manifesto {
  max-width: 880px; margin: 0 auto; padding: 18vh var(--gutter) 22vh; text-align: center;
}
.m-title { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--blood-hi); margin: 0 0 6vh; }
.m-line { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.25; margin: 0 0 1em; opacity: .12; transition: opacity .9s ease, filter .9s ease; filter: blur(3px); }
.m-line.lit { opacity: 1; filter: none; }
.m-sign { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blood-hi); margin-top: 5vh; }

/* ---------- tenet ---------- */
.tenet { position: relative; padding: 16vh var(--gutter) 12vh; background: linear-gradient(to bottom, rgba(5,4,4,0), rgba(5,4,4,.92) 22vh, var(--void)); }
.tenet-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; max-width: 1320px; margin: 0 auto 10vh; }
.tenet-num { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--ash); margin-bottom: 22px; }
.tenet-num img { height: 46px; width: auto; }
.tenet-head h2 { font-size: clamp(44px, 7vw, 96px); font-style: italic; text-transform: lowercase; }
.tenet-head h2::first-letter { text-transform: uppercase; }
.tenet-lines .m-line { font-size: clamp(19px, 1.6vw, 23px); margin: 0 0 .35em; line-height: 1.35; text-align: left; }
.shop-head { max-width: 1320px; margin: 0 auto 18px; }
.shop-head .eyebrow { margin: 0; }
.tenet-art { position: relative; aspect-ratio: 1; will-change: transform; }
.tenet-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 60px rgba(200,16,12,.18)); }
.tenet[data-id="II"] .tenet-art img { filter: drop-shadow(0 0 60px rgba(42,109,255,.3)); }
.tenet[data-id="II"] .tenet-num img { filter: hue-rotate(215deg) saturate(1.4); }

/* ---------- product plates ---------- */
.plates { list-style: none; padding: 0; margin: 0 auto; max-width: 1320px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.plate { perspective: 900px; }
.plate button { all: unset; display: block; width: 100%; cursor: pointer; }
.plate-card {
  position: relative; aspect-ratio: 4 / 5; background: var(--bone);
  transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
  overflow: hidden;
}
.plate-card::before { /* foxed paper edge */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(60,30,10,.22) 100%);
}
.plate-card img { position: absolute; inset: 6% 6% 14%; width: 88%; height: 80%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .45s; }
.plate-card img.back { opacity: 0; }
.plate:hover .plate-card img.back, .plate:focus-within .plate-card img.back { opacity: 1; }
.plate:hover .plate-card img.front, .plate:focus-within .plate-card img.front { opacity: 0; }
.plate-card .stamp { position: absolute; left: 10px; top: 10px; z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: #6b2a20; }
.plate-card .plate-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 10px 12px; display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #2a2220; border-top: 1px solid rgba(40,25,20,.18); }
.plate-foot .price { color: var(--blood); letter-spacing: .08em; }
.plate:hover .plate-card { box-shadow: 0 40px 80px -30px rgba(200,16,12,.35); }

/* ---------- product dialog ---------- */
.product {
  width: min(1180px, 100%); max-width: 100%; max-height: 100vh; max-height: 100dvh; height: 100dvh;
  margin: 0 0 0 auto; padding: 0; border: 0; background: var(--ink); color: var(--bone);
  overflow: auto;
}
.product::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.product[open] { animation: slide .45s cubic-bezier(.2,.7,.2,1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.pd { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100%; }
.pd-stage {
  position: relative; display: flex; flex-direction: column; min-height: 60vh; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 45%, rgba(200,16,12,.22), transparent 70%), #080606;
  border-right: 1px solid var(--rule);
}
.pd-3d { position: relative; flex: 1; min-height: 0; cursor: grab; touch-action: pan-y; }
.pd-3d:active { cursor: grabbing; }
.pd-3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.pd-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.pd-flat { flex: 1; min-height: 0; display: grid; place-items: center; padding: 6%; background: var(--bone); }
.pd-flat img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-hint { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); pointer-events: none; white-space: nowrap; }
.pd-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; border-top: 1px solid var(--rule); flex: none; }
.pd-thumbs button { all: unset; cursor: pointer; width: 64px; height: 64px; flex: none; background: var(--bone); outline: 1px solid transparent; outline-offset: 2px; display: grid; place-items: center; }
.pd-thumbs button[data-view="3d"] { background: none; border: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--bone); box-sizing: border-box; }
.pd-thumbs button[aria-current="true"] { outline-color: var(--blood-hi); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-specs { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--bone); }
.pd-specs li::before { content: '— '; color: var(--blood-hi); }
.pd-info { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px; }
.pd-info h2 { font-size: clamp(32px, 3.6vw, 48px); margin: 0; }
.pd-info .price { font-size: 16px; color: var(--blood-hi); }
.pd-blurb p { margin: 0; color: var(--bone-dim); }
.opt-group { border: 0; margin: 0; padding: 0; }
.opt-group legend { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-width: 52px; min-height: 44px; padding: 0 14px; font-size: 11.5px; border: 1px solid var(--rule); background: none; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--bone); background: var(--bone); color: var(--void); }
.pd-meta { display: grid; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ash); }
.pd-meta span::before { content: '† '; color: var(--blood); }
.x { position: absolute; top: 12px; right: 14px; z-index: 5; width: 44px; height: 44px; border: 1px solid var(--rule); background: rgba(13,10,10,.8); color: var(--bone); font-size: 22px; cursor: pointer; }

/* ---------- cart ---------- */
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(420px, 100vw);
  background: var(--ink); border-left: 1px solid var(--rule); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .45s cubic-bezier(.2,.7,.2,1); font-size: 12px;
}
.cart.open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.cart-head h2 { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 28px; margin: 0; font-style: italic; }
.cart-head .x { position: static; }
.cart-items { list-style: none; margin: 0; padding: 8px 20px; flex: 1; overflow: auto; }
.cart-items li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.cart-items img { width: 64px; height: 64px; object-fit: contain; background: var(--bone); mix-blend-mode: normal; }
.cart-items .t { text-transform: none; letter-spacing: .02em; font-size: 12.5px; }
.cart-items .v { color: var(--ash); font-size: 10.5px; margin-top: 4px; }
.qty { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--rule); background: none; cursor: pointer; }
.cart-empty { color: var(--ash); padding: 40px 0; text-align: center; }
.cart-foot { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); display: grid; gap: 12px; }
.cart-total { display: flex; justify-content: space-between; margin: 0; font-size: 13px; }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.6); }

/* ---------- lore ---------- */
.lore { max-width: 1320px; margin: 0 auto; padding: 16vh var(--gutter) 10vh; }
.lore-eyebrow { text-align: center; margin-bottom: 8vh; }
#lore-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.lore-tenet .m-line { font-size: clamp(18px, 1.4vw, 21px); margin: 0 0 .3em; line-height: 1.4; }
.lore-num { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--blood-hi); margin: 0 0 10px; }
.lore-tenet h3 { font-weight: 500; font-style: italic; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; margin: 0 0 22px; }

/* ---------- about / faq / footer ---------- */
.about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; max-width: 1000px; margin: 0 auto; padding: 12vh var(--gutter); }
.about p { color: var(--bone-dim); margin: 0 0 .9em; font-size: clamp(19px, 1.6vw, 22px); }
.about .eyebrow { font-size: 12px; margin-bottom: 22px; }
.about-eye { width: 100%; opacity: .85; }
.footer-line { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--blood-hi); margin: 0 0 24px; }
.credit { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ash) !important; }
.faq { max-width: 760px; margin: 0 auto; padding: 4vh var(--gutter) 14vh; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 12px; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; color: var(--blood-hi); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 20px; color: var(--bone-dim); }
.footer { border-top: 1px solid var(--rule); padding: 60px var(--gutter) calc(40px + env(safe-area-inset-bottom)); text-align: center; background: var(--void); }
.footer-logo { width: min(320px, 70vw); margin: 0 auto 30px; opacity: .9; }
.footer-links { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.footer-links a { text-decoration: none; color: var(--bone-dim); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd { grid-template-columns: 1fr; }
  .pd-stage { min-height: 62vh; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav { gap: 14px; }
  .nav-links { gap: 14px; }
  .nav-links a:nth-child(3) { display: none; }
  .tenet-head, .about { grid-template-columns: 1fr; }
  #lore-body { grid-template-columns: 1fr; gap: 10vh; }
  .tenet-art { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
  .about-eye { width: 120px; }
  .plate-card .plate-foot { flex-direction: column; gap: 2px; font-size: 10px; }
  .drop-head .eyebrow { font-size: 10px; }
  .pd-stage { min-height: 58vh; border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .m-line { opacity: 1; filter: none; }
}
