:root {
  --navy: #1f2f4a;
  --navy-2: #2c4166;
  --cream: #f6efdd;
  --paper: #fffaf0;
  --rope: #c9a96e;
  --red: #b5483b;
  --ink: #1d2433;
  --muted: #6b7180;
  --line: #e4dac3;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: "Roboto Slab", Georgia, serif; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.error { color: var(--red); font-size: .9rem; margin: .5rem 0 0; }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; text-decoration: none;
  font: 600 1rem Inter, sans-serif; padding: .8rem 1.4rem; border-radius: 999px;
  transition: background .15s;
}
.btn:hover { background: var(--navy-2); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-light { background: var(--cream); color: var(--navy); }
.btn-light:hover { background: #fff; }
.btn-block { width: 100%; }

/* header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.15rem "Roboto Slab", serif; color: var(--navy); }
.brand img { border-radius: 50%; }
.site-header nav { display: flex; align-items: center; gap: 18px; }
.site-header nav a { text-decoration: none; font-weight: 500; color: var(--ink); }
.cart-btn { background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: .5rem .9rem; font: 600 .95rem Inter, sans-serif; cursor: pointer; }
.cart-btn span { background: var(--rope); color: var(--navy); border-radius: 999px; padding: 0 .45rem; margin-left: .25rem; }

/* grid */
.section { padding-top: 56px; padding-bottom: 64px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(31,47,74,.12); }
.card img { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--cream); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.02rem; margin: 0; }
.price { font-weight: 600; color: var(--navy); }
.card .btn { margin-top: auto; padding: .6rem 1rem; font-size: .95rem; }

/* bulk listing */
.bulk-art {
  aspect-ratio: 1; width: 100%; display: grid; place-items: center;
  background: var(--navy); color: var(--cream);
  border-bottom: 6px solid var(--rope);
  font: 800 1.9rem/1.15 "Roboto Slab", serif; text-align: center; letter-spacing: .02em;
}
.bulk-art span { border: 2px dashed var(--rope); border-radius: 50%; padding: 18% 14%; }
.bulk-art-lg { border-radius: var(--radius); font-size: 2.4rem; border-bottom: 0; }
.card-bulk .card-body .btn { text-align: center; }
.bulk-list { margin: 0 0 1.25rem; padding-left: 1.2rem; color: #3b4255; }
.bulk-list li { margin-bottom: .35rem; }
.bulk-note { font-size: .9rem; margin-top: .75rem; }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin-bottom: .6rem; }
.footer-links a { color: var(--navy-2); font-weight: 500; }
.site-footer p { margin: 0; }

/* policy pages */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 900; margin-bottom: .2em; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal p, .legal li { color: #3b4255; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin-bottom: .35rem; }
.legal-contact { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .9rem; text-align: center; }

/* product dialog */
.product-dialog { border: 0; border-radius: 14px; padding: 0; width: min(920px, calc(100% - 32px)); max-height: calc(100% - 32px); }
.product-dialog::backdrop { background: rgba(20,28,44,.55); }
.product-dialog .close { position: absolute; right: 10px; top: 6px; z-index: 2; }
.close { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--navy); }
.pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; padding: 24px; }
.pd-main { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: var(--radius); background: var(--cream); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--navy); }
.thumbs img { width: 60px; height: 60px; object-fit: cover; }
.pd h2 { font-size: 1.5rem; padding-right: 28px; }
.pd .price { font-size: 1.25rem; margin-bottom: 1rem; }
.pd-desc { color: #3b4255; margin-bottom: 1.25rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { background: none; border: 0; width: 34px; height: 34px; font-size: 1.1rem; cursor: pointer; color: var(--navy); }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.pd-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* cart */
.cart { position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 100%); background: var(--paper); z-index: 30; transform: translateX(100%); transition: transform .2s; display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(0,0,0,.15); }
.cart.open { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 1.3rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 16px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.line h3 { font: 600 .92rem Inter, sans-serif; color: var(--ink); margin: 0 0 4px; }
.line .remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .85rem; text-decoration: underline; padding: 0; }
.cart-foot { padding: 16px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 1.05rem; }
.scrim { position: fixed; inset: 0; background: rgba(20,28,44,.45); z-index: 20; }

/* simple pages */
.page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.page img { margin: 0 auto 16px; border-radius: 50%; }

@media (max-width: 760px) {
    .pd { grid-template-columns: 1fr; padding: 16px; }
  .site-header nav a { display: none; }
  .brand span { font-size: 1rem; }
}
/* ================= epic layer ================= */
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }
.btn-rope { background: var(--rope); color: var(--navy); }
.btn-rope:hover { background: #dcc08a; }
.btn:focus-visible, .card:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--rope); outline-offset: 3px; }

/* scenes + depth layers (parallax is driven by motion.js per scene) */
.scene { position: relative; overflow: hidden; isolation: isolate; }
.layer { position: absolute; inset: -10% 0; pointer-events: none; }
.depth-0 { z-index: 0; } .depth-1 { z-index: 1; } .depth-2 { z-index: 2; }
.depth-3 { z-index: 3; position: relative; } .depth-4 { z-index: 4; position: relative; } .depth-5 { z-index: 5; }

/* depth-0: slate texture, slightly blurred */
.slate {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 2px, transparent 2px 9px),
    radial-gradient(120% 80% at 70% 30%, #2c4166 0%, #1f2f4a 45%, #141f33 100%);
  filter: blur(2px);
}
.slate-dim { background: radial-gradient(100% 90% at 20% 50%, #22324f 0%, #141f33 100%); }

/* depth-1: warm laser glow */
.glow {
  position: absolute; width: 60vmax; height: 60vmax; right: -12vmax; top: 50%; translate: 0 -50%;
  background: radial-gradient(circle, rgba(201,169,110,.38) 0%, rgba(201,169,110,.08) 40%, transparent 68%);
  filter: blur(4px); mix-blend-mode: screen;
}
.glow-left { left: -20vmax; right: auto; }
.glow-center { left: 50%; right: auto; translate: -50% -50%; }

/* depth-2: big background word, solid fill (AnchorMark is one word) */
.ghost {
  position: absolute; left: -1vw; bottom: 10%;
  font: 900 clamp(4rem, 15vw, 15rem)/.82 "Roboto Slab", serif; letter-spacing: -.03em;
  color: rgba(246,239,221,.06); white-space: nowrap; user-select: none;
}

/* hero */
.hero { background: #141f33; color: var(--cream); min-height: min(100svh, 920px); display: grid; align-items: center; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 96px; }
.hero h1 { color: var(--cream); font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 900; letter-spacing: -.01em; margin-bottom: .6em; }
.hero .eyebrow { color: var(--rope); }
.hero .lede { color: #d4d9e4; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: var(--red); font-size: .85rem; margin: 0 0 .9rem; }
.lede { font-size: 1.15rem; max-width: 36ch; margin: 0 0 1.75rem; }

/* laser etch: headline revealed by a glowing beam (clip-path wipe) */
.etch { position: relative; }
.etch-text { display: block; }
.laser {
  position: absolute; top: -4%; bottom: -4%; left: 0; width: 3px; opacity: 0;
  background: linear-gradient(#fff, #ffd38a 30%, #ff9f43 70%, transparent);
  box-shadow: 0 0 12px 3px rgba(255,190,110,.85), 0 0 34px 10px rgba(255,140,60,.35);
  border-radius: 2px;
}

/* masked line reveal wrapper */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: inline-block; }
a.reveal-line { display: inline-block; }

/* depth-3: badge */
.hero-badge { justify-self: center; width: min(420px, 82vw); aspect-ratio: 1; display: grid; place-items: center; }
.badge {
  width: 100%; height: auto; border-radius: 50%;
  /* thin gold edge keeps the navy rim readable on the navy hero */
  filter: drop-shadow(0 0 1.5px rgba(201,169,110,.9)) drop-shadow(0 26px 40px rgba(0,0,0,.5));
}
.ring {
  position: absolute; inset: -7%; border-radius: 50%;
  border: 1.5px dashed rgba(201,169,110,.45);
  animation: spin 60s linear infinite;
}
.ring-lg { inset: auto; width: 90vmin; height: 90vmin; left: 50%; top: 50%; translate: -50% -50%; border-color: rgba(201,169,110,.18); }
@keyframes spin { to { rotate: 360deg; } }
.float-loop { animation: float 10s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }

/* depth-5: drifting embers */
.sparks { position: absolute; inset: 0; }
.spark {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #ffcf8a; box-shadow: 0 0 8px 2px rgba(255,170,90,.7);
  animation: drift var(--d, 9s) linear var(--delay, 0s) infinite; opacity: 0;
}
@keyframes drift {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translate(var(--dx, 30px), -60vh); opacity: 0; }
}

/* marquee */
.marquee { background: var(--rope); color: var(--navy); overflow: hidden; white-space: nowrap; border-block: 2px solid #b3925a; position: relative; z-index: 6; }
.marquee-track { display: inline-flex; gap: 2.2rem; padding: .9rem 0; will-change: transform; }
/* still banner (no motion): one centered list that wraps on small screens */
html:not(.motion-full) .marquee { white-space: normal; text-align: center; }
html:not(.motion-full) .marquee-track { flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; padding-inline: 16px; will-change: auto; }
.marquee-track span { font: 800 clamp(1.1rem, 2.4vw, 1.7rem) "Roboto Slab", serif; letter-spacing: .02em; text-transform: uppercase; }

/* craft: word lighting */
.craft { background: #141f33; color: var(--cream); }
.craft-inner { padding-top: 120px; padding-bottom: 120px; max-width: 980px; }
.craft .eyebrow { color: var(--rope); }
.lit-text { font: 800 clamp(1.7rem, 3.8vw, 3rem)/1.25 "Roboto Slab", serif; margin: 0; letter-spacing: -.005em; }
.lit-text .word { color: rgba(246,239,221,.16); transition: color .25s ease, text-shadow .25s ease; }
.lit-text .word.lit { color: var(--cream); }
.lit-text .word.lit.hot { color: #ffd9a0; text-shadow: 0 0 18px rgba(255,170,90,.55); }
.compass {
  position: absolute; right: -14vmin; top: 50%; translate: 0 -50%; width: 70vmin; height: 70vmin; border-radius: 50%;
  border: 1px solid rgba(201,169,110,.2);
  background:
    linear-gradient(rgba(201,169,110,.18), rgba(201,169,110,.18)) center / 1px 100% no-repeat,
    linear-gradient(rgba(201,169,110,.18), rgba(201,169,110,.18)) center / 100% 1px no-repeat;
}

/* shop */
.shop { background: var(--paper); overflow: clip; } /* clip, not hidden, so the collection chips can stick */
.shop > .depth-0 { background: linear-gradient(var(--cream), var(--paper) 40%); }
.rope-line { position: absolute; left: 0; right: 0; top: 10%; height: 6px; background: repeating-linear-gradient(60deg, var(--rope) 0 6px, #b3925a 6px 10px); opacity: .35; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; }
.card img { transition: transform .5s ease; }
.card:hover img { transform: scale(1.05); }
.card:hover { box-shadow: 0 22px 40px rgba(31,47,74,.18); }

/* collections */
.shop-note { margin: .25rem 0 0; }
.chips { position: sticky; top: 72px; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; margin-bottom: 8px;
  background: linear-gradient(var(--paper) 80%, transparent); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); border-radius: 999px;
  padding: .45rem 1rem; font: 600 .92rem Inter, sans-serif; cursor: pointer; transition: background .15s, color .15s; }
.chip:hover { background: var(--cream); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--cream); }
.collection { padding-top: 28px; scroll-margin-top: 140px; }
.collection[hidden] { display: none; }
.collection-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.collection-head h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 800; margin: 0; }
.collection-head p { margin: 0; }
.card-meta { font-size: .85rem; color: var(--muted); margin-top: -2px; }

/* variant picker */
.variant-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -.25rem 0 1rem; }
.variant-label { font-weight: 600; color: var(--navy); margin-right: 4px; }
.variant-pick .chip[aria-pressed="true"] { background: var(--navy); color: var(--cream); }
.variant-pick .chip:disabled { opacity: .45; cursor: not-allowed; }
.line-variant { display: block; font-size: .82rem; color: var(--muted); margin: -2px 0 4px; }

/* custom: iris */
.custom { background: #141f33; color: #e8ecf4; }
.custom-inner { padding-top: 120px; padding-bottom: 120px; max-width: 760px; text-align: center; }
.custom h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; }
.custom p { margin: 0 0 1.75rem; font-size: 1.1rem; }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 40px; padding-bottom: 72px; gap: 24px; }
  .hero-badge { width: min(240px, 64vw); order: -1; }
  .lede { margin-left: auto; margin-right: auto; }
  .ghost { bottom: 4%; }
  .craft-inner, .custom-inner { padding-top: 80px; padding-bottom: 80px; }
}

/* reduced motion: everything visible, nothing moves */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .spark { display: none; }
}
