/* Quali3D — design system. Navy + gold + cream, slab headings, pixel-font labels. */
:root {
  --navy: #0e1524;
  --navy-2: #172238;
  --navy-3: #22314d;
  --gold: #c9a961;
  --gold-d: #8d6e2e;
  --gold-l: #e6d3a1;
  --cream: #f6efe0;
  --paper: #fbf7ee;
  --ink: #17202f;
  --ink-2: #4b5567;
  --line: rgba(23, 32, 47, .14);
  --line-d: rgba(246, 239, 224, .16);
  --radius: 6px;
  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --f-head: "Zilla Slab", "Rockwell", Georgia, serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-px: "Pixelify Sans", "Courier New", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
img, video, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.eyebrow { font-family: var(--f-px); font-weight: 500; font-size: .86rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d); display: block; margin-bottom: .9rem; }
.dark .eyebrow, .hero .eyebrow, .band-dark .eyebrow { color: var(--gold); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink-2); max-width: 62ch; }
.dark .lede, .band-dark .lede, .band-navy2 .lede { color: rgba(246, 239, 224, .82); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 100; border-radius: 4px; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; font: 600 .95rem/1 var(--f-body); letter-spacing: .02em; text-decoration: none; padding: .95em 1.5em; border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer; transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-l); }
.btn-ghost { border-color: rgba(246, 239, 224, .5); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-l); }
.btn-ink { background: var(--navy); color: var(--cream); }
.btn-ink:hover { background: var(--navy-3); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn .arr { font-family: var(--f-px); }

/* header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s; color: var(--cream); }
.site-header.solid, .site-header.scrolled { background: rgba(14, 21, 36, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-d); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .6em; text-decoration: none; font: 700 1.45rem/1 var(--f-head); letter-spacing: .06em; }
.logo svg { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a { display: block; text-decoration: none; padding: 10px 14px; font-size: .95rem; font-weight: 500; opacity: .92; border-radius: 4px; }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; color: var(--gold-l); }
.dropdown { position: absolute; left: 0; top: 100%; min-width: 250px; background: var(--navy); border: 1px solid var(--line-d); border-radius: var(--radius); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .22s ease; }
.nav-links li:hover > .dropdown, .nav-links li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { padding: 9px 12px; font-size: .92rem; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.mobile-menu { display: none; }

/* hero (scroll-driven) */
.hero { position: relative; height: 480vh; background: var(--navy); color: var(--cream); }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #1d2c49 0%, var(--navy) 62%); }
.hero picture { display: contents; }
.hero-art, .hero-room, .hero-wall { position: absolute; will-change: transform, opacity; }
.hero-art { left: 50%; top: 50%; border-radius: 3px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(201, 169, 97, .35); opacity: 0; }
.hero-room { left: 0; top: 0; max-width: none; transform-origin: 0 0; opacity: 0; }
.hero-wall { inset: 0; width: 100%; height: 100% !important; object-fit: cover; opacity: 0; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(14, 21, 36, .9) 0%, rgba(14, 21, 36, .62) 34%, rgba(14, 21, 36, 0) 62%), linear-gradient(180deg, rgba(14, 21, 36, .5) 0%, rgba(14, 21, 36, 0) 20%); opacity: 0; }
.hero-copy { position: absolute; inset: 0; pointer-events: none; }
.beat { position: absolute; left: var(--gutter); top: 50%; opacity: 0; transform: translateY(calc(-50% + var(--ty, 18px))); width: min(46%, 560px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; pointer-events: none; }
.beat.on .cta-row { pointer-events: auto; }
.js:not(.static) .cta-static { display: none; }
.beat h1, .beat h2 { font-size: clamp(2.1rem, 5.6vw, 4.6rem); margin-bottom: .3em; color: var(--cream); text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.beat p { font-size: clamp(1rem, 1.5vw, 1.2rem); color: rgba(246, 239, 224, .86); max-width: 46ch; margin: 0; }
.hero-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font: 500 .74rem var(--f-px); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-l); display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity .3s; }
.hero-hint i { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-bar { position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; opacity: .85; }
/* static (no JS / reduced motion) */
html:not(.js) .hero, html.static .hero { height: auto; }
html:not(.js) .hero-pin, html.static .hero-pin { position: relative; height: min(100svh, 860px); min-height: 560px; }
html:not(.js) .hero-art, html.static .hero-art, html:not(.js) .hero-hint, html.static .hero-hint, html:not(.js) .hero-bar, html.static .hero-bar { display: none; }
html:not(.js) .hero-room, html.static .hero-room { display: none; }
html:not(.js) .hero-wall, html.static .hero-wall { opacity: 1; }
html:not(.js) .hero-shade, html.static .hero-shade { opacity: 1; }
html:not(.js) .beat-2, html.static .beat-2, html:not(.js) .beat-3, html.static .beat-3 { display: none; }
html:not(.js) .beat-1, html.static .beat-1 { opacity: 1; transform: translateY(-50%); }
html:not(.js) .cta-row, html.static .cta-row { pointer-events: auto; }

/* sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.band-dark { background: var(--navy); color: var(--cream); }
.band-navy2 { background: var(--navy-2); color: var(--cream); }
.band-cream { background: var(--cream); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin: 0; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }
.link-arrow:hover { color: var(--gold-d); }
.band-dark .link-arrow:hover, .band-navy2 .link-arrow:hover { color: var(--gold-l); }

/* cards */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14, 21, 36, .14); border-color: var(--gold); }
.thumb { aspect-ratio: 4 / 3; background: var(--navy-2); overflow: hidden; }
.thumb img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1.12rem; margin: 0; }
.card-body .meta { font: 500 .78rem var(--f-px); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); }
.card-body .price { margin: auto 0 0; padding-top: 6px; font-weight: 600; color: var(--ink); }
.card-body .price small { font-weight: 400; color: var(--ink-2); }
.coll-card { position: relative; border-radius: var(--radius); overflow: hidden; color: var(--cream); text-decoration: none; aspect-ratio: 4 / 5; display: flex; align-items: flex-end; isolation: isolate; border: 1px solid var(--line-d); }
.coll-card img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.coll-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 21, 36, .92) 0%, rgba(14, 21, 36, .1) 60%); }
.coll-card:hover img { transform: scale(1.06); }
.coll-card div { padding: 22px; }
.coll-card h3 { margin-bottom: .25em; font-size: 1.45rem; }
.coll-card p { margin: 0; font-size: .95rem; color: rgba(246, 239, 224, .82); }

/* feature split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(14, 21, 36, .28); width: 100%; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li { padding-left: 30px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 12px; background: var(--gold); box-shadow: 4px 4px 0 var(--gold-d); }
.band-dark .facts li::before { box-shadow: 4px 4px 0 var(--gold-d); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.values div { border-top: 2px solid var(--gold); padding-top: 18px; }
.values h3 { font-size: 1.15rem; }
.values p { color: rgba(246, 239, 224, .75); font-size: .96rem; margin: 0; }

/* page header (inner pages) */
.page-hero { background: var(--navy); color: var(--cream); padding: 148px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px); background-size: 48px 48px; opacity: .35; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 22ch; }
.page-hero .lede { color: rgba(246, 239, 224, .82); }
.crumbs { font: 500 .78rem var(--f-px); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; color: rgba(246, 239, 224, .7); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold-l); }
.crumbs span { margin: 0 8px; opacity: .5; }

/* prose */
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.7em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin-top: 1.5em; }
.prose a { color: var(--gold-d); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .45em; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; box-shadow: 0 18px 44px rgba(14, 21, 36, .2); }
.prose table { border-collapse: collapse; width: 100%; font-size: .98rem; margin: 1.4em 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--f-px); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; color: var(--gold-d); }
.callout { background: var(--cream); border-left: 4px solid var(--gold); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.6em 0; }
.callout p:last-child { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font: 600 1.12rem var(--f-head); padding: 16px 34px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 1.6rem var(--f-px); color: var(--gold-d); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 12px; max-width: 70ch; }

/* product page */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(26px, 4.5vw, 64px); align-items: start; }
.gallery .main { aspect-ratio: 4 / 3; background: var(--navy-2); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery .main img { width: 100%; height: 100% !important; object-fit: cover; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 10px; }
.gallery .thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 4 / 3; }
.gallery .thumbs button[aria-current="true"] { border-color: var(--gold); }
.gallery .thumbs img { width: 100%; height: 100% !important; object-fit: cover; }
.buybox { position: sticky; top: 92px; }
.buybox .price { font: 700 2rem var(--f-head); margin: 0 0 4px; }
.buybox .price small { font: 500 .95rem var(--f-body); color: var(--ink-2); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; padding: 0; list-style: none; }
.sizes li { border: 1px solid var(--line); background: #fff; padding: 6px 12px; border-radius: 4px; font-size: .92rem; }
.sizes li b { font-weight: 600; }
.mini-facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: .96rem; color: var(--ink-2); }
.mini-facts li { padding-left: 24px; position: relative; }
.mini-facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; background: var(--gold); }
.desc { margin-top: clamp(36px, 5vw, 64px); }
.desc h3 { font-size: 1.05rem; font-family: var(--f-px); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); margin-top: 1.8em; }

/* footer */
.site-footer { background: var(--navy); color: rgba(246, 239, 224, .82); padding: 72px 0 36px; font-size: .96rem; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line-d); }
.site-footer h4 { font: 500 .82rem var(--f-px); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-l); }
.foot-bottom { padding-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: .86rem; color: rgba(246, 239, 224, .6); }
.disclaimer { max-width: 70ch; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .rv.in { opacity: 1; transform: none; }
html.static .rv { opacity: 1 !important; transform: none !important; }

/* responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .split, .product { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu { display: block; position: fixed; inset: 68px 0 0 0; background: var(--navy); z-index: 49; padding: 18px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); transition: transform .35s ease; visibility: hidden; }
  .mobile-menu.open { transform: none; visibility: visible; }
  .mobile-menu a { display: block; padding: 14px 0; text-decoration: none; font: 600 1.25rem var(--f-head); border-bottom: 1px solid var(--line-d); color: var(--cream); }
  .mobile-menu .sub a { font: 500 1rem var(--f-body); padding: 10px 0 10px 16px; opacity: .85; }
  .mobile-menu .btn { margin-top: 22px; border: 0; justify-content: center; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 12px 12px 14px; }
  .card-body h3 { font-size: 1rem; }
  .coll-card { aspect-ratio: 3 / 4; }
  .coll-card div { padding: 14px; }
  .coll-card h3 { font-size: 1.15rem; }
  .coll-card p { display: none; }
  .values { grid-template-columns: 1fr; gap: 22px; }
  .page-hero { padding-top: 112px; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .grid-3.stack-m, .grid-2.stack-m { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .grid-4 { grid-template-columns: 1fr 1fr; } .btn { padding: .9em 1.15em; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; } .rv { opacity: 1 !important; transform: none !important; } }

/* hero: stacked (mobile / tablet / portrait) layout */
@media (max-width: 980px), (max-aspect-ratio: 10/9) {
  .hero { height: 330vh; }
  .beat { top: auto; bottom: 64px; right: var(--gutter); width: auto; transform: translateY(var(--ty, 18px)); }
  .hero-wall { object-fit: contain; object-position: 50% 0; background: var(--navy); -webkit-mask-image: linear-gradient(#000 76%, transparent 96%); mask-image: linear-gradient(#000 76%, transparent 96%); }
  .hero-hint { bottom: 12px; }
  .hero-hint i { height: 22px; }
  .beat h1, .beat h2 { font-size: clamp(2rem, 8vw, 3.2rem); }
  .beat p { font-size: 1rem; }
  .hero-shade { background: linear-gradient(0deg, rgba(14, 21, 36, .94) 0%, rgba(14, 21, 36, .7) 30%, rgba(14, 21, 36, 0) 56%), linear-gradient(180deg, rgba(14, 21, 36, .45) 0%, rgba(14, 21, 36, 0) 18%); }
  html:not(.js) .beat-1, html.static .beat-1 { transform: none; bottom: 110px; }
}
