/* ==========================================================================
   CANAPAFF - site styles
   1 tokens · 2 base · 3 type · 4 buttons · 5 header · 6 hero · 7 cards
   8 forms · 9 cart · 10 dialog · 11 sections · 12 motion
   ========================================================================== */

@font-face { font-family: "Sofia XC"; src: url(../fonts/sofia-xc.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Sofia"; src: url(../fonts/sofia.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }

/* 1 tokens ---------------------------------------------------------------- */
:root {
  --bg: #0A1F17;
  --panel: #10291F;
  --panel-2: #153727;
  --cream: #EFE6D2;
  --muted: rgba(239, 230, 210, .66);
  --gold: #D9B45F;
  --gold-soft: rgba(217, 180, 95, .24);
  --ink: #0B1A13;
  --wave: #153A2A;
  --line: rgba(239, 230, 210, .18);
  --danger: #F0957A;
  --ok: #A5D08F;

  --r-s: 14px;
  --r-m: 20px;
  --r-l: 30px;
  --pad: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Sofia XC", "Arial Narrow", sans-serif;
  --text: "Sofia", system-ui, sans-serif;
}

/* 2 base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--cream); font: 400 16.5px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; padding: 0; border: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
img, svg, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - var(--pad) * 2, 1180px); margin-inline: auto; }

/* 3 type ------------------------------------------------------------------ */
.h-hero, .h-1, .h-2, .h-3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.h-hero { font-size: clamp(70px, 22vw, 180px); line-height: .82; }
.h-1 { font-size: clamp(52px, 15vw, 110px); line-height: .9; }
.h-2 { font-size: clamp(38px, 10vw, 64px); line-height: .94; }
.h-3 { font-size: 30px; line-height: 1; font-weight: 800; text-transform: none; }
.lead { font-size: 18px; color: var(--muted); max-width: 34ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 62ch; }
.link { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

.wordmark { display: inline-block; height: .74em; width: auto; fill: currentColor; vertical-align: baseline; overflow: visible; }
.product-art { width: 100%; height: auto; overflow: visible; }
.product-art .art-logo { font-family: var(--display); font-weight: 900; }
.product-art .art-sub { font-family: var(--text); font-weight: 700; }

/* 4 buttons --------------------------------------------------------------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 30px; overflow: hidden; isolation: isolate; border-radius: 999px; font-weight: 700; line-height: 1.2; text-align: center; transition: transform .15s, color .3s, background-color .3s, border-color .3s; }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; z-index: -1; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-140%) skewX(-18deg); }
.btn-primary:hover::before { transform: translateX(320%) skewX(-18deg); transition: transform .7s; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: scale(.96); }
.btn-ghost { border: 1px solid rgba(239, 230, 210, .4); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-soft { background: rgba(239, 230, 210, .1); }
.btn-soft:hover, .btn-soft.is-added { background: var(--gold); color: var(--ink); }
.btn-block { width: 100%; }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 14.5px; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background-color .3s; }
.icon-btn:hover { background: rgba(239, 230, 210, .1); }
.icon-btn svg { width: 24px; height: 24px; }

/* 5 header ---------------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad); transition: background-color .3s, padding .3s; }
.site-header.is-scrolled { background-color: rgba(10, 31, 23, .92); padding-block: 8px; }
.site-header .wordmark { font-size: 46px; }
.site-nav { display: none; gap: 32px; font-weight: 500; }
.site-nav a { position: relative; padding: 6px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.site-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; }
.lang-switch a { padding: 4px 10px; border-radius: 999px; }
.lang-switch [aria-current] { background: var(--cream); color: var(--ink); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--ink); font: 700 11px/19px var(--text); text-align: center; }
.burger span { display: block; width: 22px; height: 2px; margin: 3px 0; background: currentColor; }

/* 6 hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 84px var(--pad) 36px; background: radial-gradient(70% 42% at 50% 34%, rgba(217, 180, 95, .22), transparent 70%), var(--bg); }
.hero-bg { position: absolute; inset: -10% 0 0; pointer-events: none; -webkit-mask-image: linear-gradient(#000 40%, transparent 82%); mask-image: linear-gradient(#000 40%, transparent 82%); }
.hero-bg .waves { position: absolute; left: 50%; top: 4%; width: 150%; height: 100%; margin-left: -75%; fill: var(--wave); opacity: .7; animation: breathe 12s ease-in-out infinite alternate; }
.hero-marquee { position: absolute; left: 0; top: 17svh; z-index: 1; width: 100%; overflow: hidden; pointer-events: none; }
.hero-marquee div { display: flex; width: max-content; gap: .22em; font: 900 52vw/.9 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(217, 180, 95, .42); animation: marquee 32s linear infinite; }
.hero-stage { position: relative; z-index: 2; width: 100%; height: 47svh; display: grid; place-items: center; }
.hero-stage::after { content: ""; position: absolute; left: 50%; bottom: -2%; width: 20svh; height: 22px; margin-left: -10svh; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); }
.hero-product { position: relative; height: 47svh; aspect-ratio: 2/9; opacity: 0; animation: hero-enter 1.3s .2s var(--ease) forwards; }
.hero-product > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 34px rgba(217, 180, 95, .35)); animation: float 5.5s ease-in-out infinite alternate; }
.hero-copy { position: relative; z-index: 4; margin-top: 26px; }
.hero-copy .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-copy .line > span { display: block; transform: translateY(108%); animation: line-up 1s var(--ease) forwards; }
.hero-copy .line:nth-child(2) > span { animation-delay: .12s; }
.hero-copy .lead, .hero-copy .cta-row { opacity: 0; animation: fade-up .8s .5s var(--ease) forwards; }
.hero-copy .lead { margin: 16px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-copy .cta-row { justify-content: center; margin-top: 24px; animation-delay: .65s; }
canvas[data-smoke] { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }

/* 7 cards ----------------------------------------------------------------- */
.card { display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--gold-soft); border-radius: var(--r-l); background: linear-gradient(165deg, var(--panel-2), #0C2219); }
.card-media { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1/1.05; border-radius: var(--r-m); background: radial-gradient(circle at 50% 62%, #1F6A4A, #0D2B20 72%); }
.card-media.tone-gold { background: radial-gradient(circle at 50% 62%, #8E7030, #1E1A0D 72%); }
.card-media.tone-noir { background: radial-gradient(circle at 50% 62%, #445249, #0C100E 72%); }
.card-media.tone-bundle { background: radial-gradient(circle at 50% 62%, #D9B45F, #2A2210 75%); }
.card-media .waves { position: absolute; inset: 0; width: 100%; height: 100%; fill: #fff; opacity: .05; }
.card-media > img, .card-media > .product-art { position: relative; width: 60%; transition: transform .6s var(--ease); }
.card-media > img { height: auto; max-height: 86%; object-fit: contain; }
.card-media.has-photo > img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.card-media.has-photo { background: var(--panel); }
.card:hover .card-media > img { transform: scale(1.07) rotate(3deg); }
.card:hover .card-media.has-photo > img { transform: scale(1.05); }
.trio { position: absolute; inset: 14% 0 8%; display: flex; justify-content: center; align-items: flex-end; gap: 18px; transition: transform .6s var(--ease); }
.trio .product-art { height: 90%; width: auto; }
.trio .product-art:nth-child(2) { transform: translateY(-9%); }
.badge { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 13px; }
.badge-muted { background: rgba(11, 26, 19, .8); color: var(--cream); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 8px 8px; }
.card-body p { font-size: 14.5px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.price strong { font: 900 38px/1 var(--display); color: var(--gold); }
.price s { color: var(--muted); text-decoration-thickness: 1px; }
.card-body .btn { margin-top: 14px; }
.card-lab { display: flex; align-items: flex-start; line-height: 1.3; gap: 6px; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--gold); }
.card-lab + .card-lab { margin-top: 4px; }
.card-lab svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.card.is-soldout .card-media > * { opacity: .45; }
.card.is-soldout .badge { opacity: 1; }

.card-row { display: flex; gap: 14px; padding: 4px var(--pad) 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.card-row::-webkit-scrollbar { display: none; }
.card-row > .card { flex: 0 0 78%; scroll-snap-align: center; }

/* 8 forms ----------------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field + .field, .field + .field-row, .field-row + .field { margin-top: 16px; }
.field-row { display: grid; gap: 16px; }
.field-row > .field + .field { margin-top: 0; }
.label { font-size: 14px; font-weight: 600; }
.label .opt { font-weight: 400; color: var(--muted); }
.input { width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-s); background: rgba(239, 230, 210, .06); transition: border-color .2s, background-color .2s; }
.input::placeholder { color: rgba(239, 230, 210, .38); }
.input:hover { border-color: rgba(239, 230, 210, .38); }
.input:focus { outline: none; border-color: var(--gold); background-color: rgba(217, 180, 95, .08); }
textarea.input { min-height: 104px; resize: vertical; }
.select { appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23D9B45F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; cursor: pointer; text-overflow: ellipsis; }
.select option { background: #10241B; color: #EFE6D2; }
.select.is-invalid, .pills.is-invalid .pill span { border-color: var(--danger); }
.card-body .select { min-height: 46px; padding-block: 10px; margin: 6px 0 10px; }
.pills, .picks { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.pills legend, .picks legend { padding: 0; margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills legend { float: left; width: 100%; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; transition: background-color .2s, border-color .2s, color .2s; }
.pill:hover span { border-color: rgba(239, 230, 210, .5); }
.pill input:checked + span { background: var(--gold); border-color: var(--gold); color: #0B1A13; }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.pick { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px; align-items: center; }
.pick + .pick { margin-top: 8px; }
.pick-n { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(217, 180, 95, .55); border-radius: 50%; font: 800 17px/1 var(--display); color: var(--gold); }
.product-info > .error { margin: -6px 0 14px; }
.field.has-error .input { border-color: var(--danger); }
.error { font-size: 14px; color: var(--danger); }
.hint { font-size: 13.5px; color: var(--muted); }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: block; padding: 11px 10px; border-radius: 999px; text-align: center; font-weight: 600; cursor: pointer; transition: background-color .25s, color .25s; }
.segmented input:checked + span { background: var(--cream); color: var(--ink); }
.locker-list { display: grid; gap: 6px; max-height: 340px; margin-top: 10px; overflow-y: auto; overscroll-behavior: contain; }
.locker-list:empty { display: none; }
.locker-option { display: grid; gap: 2px; width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-m); text-align: left; transition: border-color .2s, background-color .2s; }
.locker-option:hover, .locker-option:focus-visible { border-color: var(--gold); background: rgba(239, 230, 210, .06); }
.locker-option span, .locker-picked span { font-size: 14px; color: var(--muted); }
.locker-picked { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--gold); border-radius: var(--r-m); }
.locker-picked > div { display: grid; gap: 2px; min-width: 0; }
.locker-picked .btn { flex: none; }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; cursor: pointer; }
.check input { appearance: none; width: 24px; height: 24px; margin: 1px 0 0; border: 1.5px solid rgba(239, 230, 210, .5); border-radius: 7px; background: transparent center / 0 no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230B1A13' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); transition: background-color .2s, border-color .2s, background-size .2s; cursor: pointer; }
.check input:checked { background-color: var(--gold); border-color: var(--gold); background-size: 18px; }

/* 9 cart ------------------------------------------------------------------ */
.cart-line { display: grid; grid-template-columns: 68px 1fr auto; gap: 4px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { grid-row: 1 / 3; align-self: start; width: 68px; height: 68px; display: grid; place-items: center; overflow: hidden; border-radius: var(--r-s); background: radial-gradient(circle at 50% 62%, #1F6A4A, #0D2B20 72%); }
.cart-thumb img { width: 78%; height: 78%; object-fit: contain; }
.cart-thumb.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h4 { font: 800 22px/1.05 var(--display); }
.cart-opt ~ .stepper, .cart-opt ~ .small { grid-column: 2; }
.cart-opt { grid-column: 2 / 4; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.sum-line small { display: block; font-size: 13px; line-height: 1.35; }
.cart-line .line-price { font: 800 22px/1 var(--display); color: var(--gold); }
.stepper { justify-self: start; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; }
.stepper button:hover { background: rgba(239, 230, 210, .1); }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; }
.remove { justify-self: end; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.totals { display: grid; gap: 8px; margin-top: 16px; }
.totals div { display: flex; justify-content: space-between; gap: 16px; }
.totals .total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; }
.totals .total span:last-child { font: 900 34px/1 var(--display); color: var(--gold); }
.ship-progress { margin-top: 16px; font-size: 14px; }
.ship-progress .bar { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: rgba(239, 230, 210, .12); }
.ship-progress .bar span { display: block; height: 100%; border-radius: 3px; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s var(--ease); }

/* 10 dialog --------------------------------------------------------------- */
.dialog { width: min(100% - 32px, 440px); padding: 36px 26px 28px; border: 1px solid var(--gold-soft); border-radius: var(--r-l); background: var(--panel); color: var(--cream); text-align: center; }
.dialog::backdrop { background: rgba(4, 12, 9, .82); backdrop-filter: blur(8px); }
.dialog[open] { animation: dialog-in .45s var(--ease); }
.dialog .wordmark { font-size: 64px; color: var(--gold); }
.dialog .h-2 { margin-top: 18px; }
.dialog p { margin-top: 10px; color: var(--muted); }
.dialog .cta-row { justify-content: center; margin-top: 24px; }
.dialog .cta-row .btn { flex: 1; }

/* 11 sections ------------------------------------------------------------- */
.section { padding: 34px 0; }
.section-head p { margin-top: 8px; color: var(--muted); }
.panel { padding: 40px 24px; border-radius: var(--r-l); background: var(--panel); }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 560px; }
.chips li { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(217, 180, 95, .55); border-radius: 50%; background: radial-gradient(circle at 50% 120%, rgba(217, 180, 95, .22), transparent 70%); font: 800 clamp(26px, 8.5vw, 52px)/1 var(--display); color: var(--gold); }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.accordion details p { padding: 0 0 20px; color: var(--muted); max-width: 60ch; }
.to-top { position: fixed; right: 14px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }
.site-footer { display: grid; gap: 12px; justify-items: center; margin-top: 24px; padding: 40px var(--pad) 36px; border-top: 1px solid var(--line); text-align: center; }
.site-footer .wordmark { font-size: 68px; color: var(--gold); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 14.5px; }
.site-footer p { font-size: 13px; color: var(--muted); max-width: 46ch; }

/* 12 motion --------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px) scale(.92); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.is-bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
.puff { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: currentColor; opacity: .5; pointer-events: none; animation: puff .8s ease-out forwards; }
@keyframes bump { 40% { transform: scale(1.45); } }
@keyframes puff { to { transform: translate(var(--dx), var(--dy)) scale(4); opacity: 0; } }
@keyframes breathe { to { transform: scale(1.08) rotate(-3deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes hero-enter { from { opacity: 0; transform: translateY(60px) rotate(18deg) scale(.9); } to { opacity: 1; transform: rotate(8deg); } }
@keyframes float { to { transform: translateY(-14px) rotate(-3deg); } }
@keyframes line-up { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(20px) scale(.95); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .hero-product, .hero-copy .lead, .hero-copy .cta-row { opacity: 1; transform: none; }
  .hero-copy .line > span { transform: none; }
}

@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  :root { --pad: 48px; }
  .site-nav { display: flex; }
  .burger { display: none; }
  .hero-marquee div { font-size: 30vw; }
  .h-hero { font-size: clamp(90px, 9.5vw, 150px); }
  .hero-stage, .hero-product { height: 42svh; }
  .card-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; overflow: visible; width: min(100% - var(--pad) * 2, 1180px); margin-inline: auto; padding: 0; }
  .card-row > .card { flex: none; }
  .panel { padding: 72px; }
  .section { padding: 40px 0; }
  .quality .h-1 { font-size: clamp(48px, 6vw, 84px); }
}

/* 13 site pieces ---------------------------------------------------------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 700; }
.skip:focus { top: 12px; }
html.is-locked, html.is-locked body { overflow: hidden; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.left { text-align: left; }
.page-top { padding-top: 120px; padding-bottom: 72px; }
.section-head + .card-row, .section-head + .chips, .section-head + .cta-row, .section-head + .contact-form, .section-head + .contact-links { margin-top: 28px; }
.section-center { text-align: center; }
.section-center .section-head p { max-width: 40ch; margin-inline: auto; }
.section-center .chips { margin-inline: auto; }
.quality { display: grid; gap: 36px; }
.quality-main > * + *, .quality-brand > * + * { margin-top: 18px; }
.quality-brand { padding-top: 32px; border-top: 1px solid var(--line); }
#faq .accordion { margin-top: 28px; }
.accordion .prose { padding-bottom: 20px; color: var(--muted); }
.contact-links { margin-bottom: 24px; }
.contact-links .btn svg { width: 20px; height: 20px; }
.notice { margin-bottom: 16px; padding: 14px 16px; border-radius: var(--r-s); font-weight: 600; }
.notice-ok { background: rgba(165, 208, 143, .14); color: var(--ok); }
.notice-error { background: rgba(240, 149, 122, .12); color: var(--danger); }
.card h3 a::after { content: none; }

.mobile-menu { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(10, 31, 23, .97); animation: fade-up .3s var(--ease); }
.mobile-menu nav { display: grid; gap: 6px; text-align: center; font: 900 clamp(44px, 13vw, 72px)/1.05 var(--display); text-transform: uppercase; }
.mobile-menu nav a:hover { color: var(--gold); }
.mobile-menu-close { position: absolute; top: 12px; right: 16px; }

.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(4, 12, 9, .7); opacity: 0; transition: opacity .3s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88%, 430px); display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid var(--gold-soft); transform: translateX(100%); transition: transform .35s var(--ease); }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 20px; overscroll-behavior: contain; }
.drawer-foot { padding: 4px 20px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer-foot .btn { margin-top: 18px; }
.drawer-foot .btn + .btn { margin-top: 10px; }
.drawer-backdrop { background: rgba(4, 12, 9, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cart-empty { display: grid; gap: 18px; justify-items: center; padding: 48px 0; text-align: center; }
.cart-line h4 a:hover { color: var(--gold); }

.product-page { padding-top: 96px; padding-bottom: 72px; }
.back-link { display: inline-block; margin-bottom: 18px; font-size: 14.5px; color: var(--muted); }
.back-link:hover { color: var(--gold); }
.product-layout { display: grid; gap: 28px; }
.gallery-main { aspect-ratio: 1/1.05; border-radius: var(--r-l); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 68px; height: 68px; overflow: hidden; border: 1.5px solid transparent; border-radius: var(--r-s); opacity: .7; }
.gallery-thumbs button[aria-current] { border-color: var(--gold); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info .lead { margin-top: 10px; }
.price-big { margin: 18px 0; }
.price-big strong { font-size: 56px; }
.buy-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.buy-row .btn { flex: 1; }
.buy-row .stepper button { width: 46px; height: 50px; }
.block-title { margin-top: 32px; }
.block-title + * { margin-top: 12px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; font-weight: 600; }

.checkout { display: grid; gap: 32px; }
.checkout-form .lead { margin: 8px 0 24px; }
.checkout-summary { align-self: start; padding: 24px 20px; }
.checkout-summary > * + * { margin-top: 14px; }
.sum-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-number { margin: 22px 0; font-size: 18px; }
.order-number strong { display: block; font: 900 84px/1 var(--display); color: var(--gold); }
.page-top.center > * + * { margin-top: 20px; }

.legal h2 { margin: 34px 0 10px; font: 800 26px/1.1 var(--display); }
.legal h1 { margin-bottom: 14px; }

@media (min-width: 900px) {
  .product-layout { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .gallery { position: sticky; top: 96px; }
  .checkout { grid-template-columns: 1.3fr 1fr; gap: 56px; }
  .quality { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .quality-brand { padding: 0 0 0 64px; border-top: 0; border-left: 1px solid var(--line); }
  .checkout-summary { position: sticky; top: 96px; padding: 32px; }
  .lang-switch { margin-right: 8px; }
}
@media (max-width: 380px) {
  .site-header .wordmark { font-size: 38px; }
  .lang-switch a { padding: 4px 8px; }
}

/* 14 decorative leaves ----------------------------------------------------
   Rule: every leaf is whole (never cut by the screen or by a section) and
   never sits over text, buttons, cards or fields. They only sway in place. */
.section { position: relative; }
.section > .wrap, .section > .card-row { position: relative; z-index: 1; }
.section-center::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(90vw, 760px); aspect-ratio: 1; translate: -50% -50%; background: radial-gradient(closest-side, rgba(217, 180, 95, .1), transparent); pointer-events: none; }
.deco { position: absolute; z-index: 0; pointer-events: none; }
.leaf { width: 100%; height: auto; overflow: visible; transform-origin: 50% 85%; animation: leaf-sway 9s ease-in-out infinite alternate; }
.leaf-line path { fill: none; stroke: var(--gold); stroke-width: 1; stroke-linejoin: round; opacity: .34; vector-effect: non-scaling-stroke; }
.leaf-fill path { fill: #14402D; stroke: #14402D; stroke-width: 2; opacity: .75; }
.leaf-fill path:last-child, .leaf-line path:last-child { fill: none; }
.deco-f2 .leaf, .deco-c .leaf { animation-duration: 12s; animation-direction: alternate-reverse; }
@keyframes leaf-sway { from { transform: rotate(-3deg); } to { transform: rotate(4deg); } }

/* phone: beside the second headline word, beside section headings */
.hero-copy .deco { z-index: -1; left: 50%; width: 18vw; top: calc(clamp(70px, 22vw, 180px) * 1.0); }
.hero-copy .deco-h1 { margin-left: -47vw; margin-top: 1vw; rotate: -12deg; }
.deco-h2 { margin-left: 29.5vw; margin-top: -4vw; rotate: 12deg; }
.deco-p { display: none; }
.deco-f1 { right: 4%; top: -20px; width: 20vw; rotate: 10deg; }
.deco-f2 { left: 4%; top: -46px; width: 20vw; rotate: -10deg; }
.deco-q { right: 4%; top: -16px; width: 23vw; rotate: 10deg; }
.deco-c { right: 3%; top: -12px; width: 19vw; rotate: -8deg; }

/* desktop: in the empty side margins */
@media (min-width: 900px) {
  .hero-copy .deco { top: auto; bottom: 0; width: clamp(130px, 15vw, 220px); }
  .hero-copy .deco-h1 { margin-left: -46vw; margin-top: 0; width: clamp(130px, 15vw, 220px); rotate: 14deg; }
  .hero-copy .deco-h2 { display: none; }
  .deco-p { display: block; right: 5%; top: calc(190px - clamp(130px, 15vw, 220px) * 1.1); width: clamp(130px, 15vw, 220px); rotate: -12deg; }
  .deco-f1 { left: 5%; right: auto; top: 16%; width: clamp(120px, 14vw, 220px); rotate: 16deg; }
  .deco-f2 { right: 5%; left: auto; top: auto; bottom: 14%; width: clamp(110px, 12vw, 190px); rotate: -14deg; }
  .deco-q { right: 2%; top: 30%; width: clamp(76px, calc(50vw - 440px), 220px); rotate: -16deg; }
  .deco-c { left: 2%; right: auto; top: 34%; width: clamp(76px, calc(50vw - 440px), 220px); rotate: 14deg; }
}
