/* Nation Battle - brand system, black edition.
   Black ground, white type, hairlines, flags as the only colour; product shots sit on light plates.
   Pages: index.html (the kit) and shop.html (the flag shop). */

:root {
  --bg: #000;
  --ink: #f4f4f2;          /* primary foreground, also the fill of primary buttons */
  --on-ink: #000;          /* text on top of --ink fills */
  --ink-2: #c8c8c3;
  --mute: #8b8b86;
  --line: #1e1e1d;
  --line-2: #343432;
  --well: #0d0d0d;
  --well-2: #151514;
  --pwell: #efefec;        /* light plate behind product photos */
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1440px;
  --gutter: clamp(18px, 3vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: #000; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--ink); scrollbar-color: #2b2b29 #000; }
::selection { background: var(--ink); color: var(--on-ink); }
::-webkit-scrollbar { width: 12px; } ::-webkit-scrollbar-track { background: #000; } ::-webkit-scrollbar-thumb { background: #2b2b29; border: 3px solid #000; }
a { color: inherit; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .88em; background: var(--well-2); padding: .12em .42em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 18px; height: 18px; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--on-ink); padding: 10px 16px; z-index: 200; font-weight: 600; }
.skip:focus { top: 12px; }
.caps { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.028em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.6rem); line-height: 1.06; }

/* ---------- header: two sections only, the kit and the flag shop ---------- */
.header { position: sticky; top: 0; z-index: 60; background: rgba(0,0,0,.86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.header-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; gap: 20px; }
.nav { display: flex; gap: clamp(22px, 3vw, 48px); }
.nav a { font-size: .9rem; font-weight: 500; text-decoration: none; padding: 8px 0; position: relative; color: var(--mute); transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.logo { text-decoration: none; font-weight: 600; font-size: 1rem; letter-spacing: .32em; text-transform: uppercase; padding-left: .32em; white-space: nowrap; }
.tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.tool { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 10px; cursor: pointer; font-size: .86rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.tool:hover { opacity: .7; }
.tool .ico { width: 20px; height: 20px; }
.menu-btn { display: none; }
.store { position: relative; }
.store-btn { border: 1px solid var(--line-2); padding: 8px 14px; }
.store-btn:hover { border-color: var(--ink); opacity: 1; }
.store-btn img { width: 18px; height: 12px; object-fit: cover; }
.store-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 310px; max-height: 420px; overflow: auto; background: #0a0a0a; border: 1px solid var(--line-2); padding: 8px; z-index: 80; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
.store-pop[hidden] { display: none; }
.store-pop h4 { margin: 8px 10px 6px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.store-pop button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 10px; cursor: pointer; font-size: .92rem; }
.store-pop button:hover { background: var(--well-2); }
.store-pop button[aria-checked="true"] { font-weight: 600; background: var(--well-2); }
.store-pop img { width: 22px; height: 15px; object-fit: cover; }
.store-pop span { color: var(--mute); margin-left: auto; font-size: .8rem; }

.mobile-menu { position: fixed; inset: 0; z-index: 90; background: #000; padding: 20px var(--gutter) 40px; display: none; flex-direction: column; overflow: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu .top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.mobile-menu a.big { display: block; font-size: 2.4rem; font-weight: 500; letter-spacing: -.035em; text-decoration: none; padding: 18px 0; border-bottom: 1px solid var(--line); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink); padding: 17px 32px; font-size: .76rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .3s, color .3s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-sm { padding: 12px 22px; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn-block { width: 100%; }
.ulink { font-size: .86rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.ulink:hover { opacity: .6; }

/* ---------- hero: four flags cropped as campaign panels, headline in a clean row below ---------- */
.panels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; height: min(68vh, 660px); min-height: 380px; background: #000; }
.panel { position: relative; overflow: hidden; }
.panel-inner { position: absolute; inset: 0; background-size: cover; background-position: var(--p, 50% 50%); background-repeat: no-repeat; transition: transform 1.8s var(--ease); }
.panels:hover .panel-inner { transform: scale(1.035); }
.hero-text { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding-block: clamp(32px, 4.5vw, 56px) clamp(40px, 5.5vw, 72px); }
.hero-text h1 { font-size: clamp(3rem, 8vw, 7.6rem); line-height: .92; letter-spacing: -.05em; font-weight: 500; }
.hero-text .side { max-width: 38ch; display: grid; gap: 24px; justify-items: start; }
.hero-text p { margin: 0; color: var(--ink-2); font-size: 1.1rem; }

/* ---------- trust strip ---------- */
.trust { border-block: 1px solid var(--line); }
.trust-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-in > div { padding: 26px var(--gutter); border-left: 1px solid var(--line); font-size: .9rem; color: var(--mute); }
.trust-in > div:first-child { border-left: 0; padding-left: 0; }
.trust b { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; margin-bottom: 3px; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(60px, 8vw, 112px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 40px; }
.sec-head p { margin: 12px 0 0; color: var(--mute); max-width: 54ch; }

.collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.coll { display: block; text-decoration: none; color: var(--ink); }
.coll .imgw { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--pwell); display: grid; gap: 2px; }
.coll .imgw img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: 9%; mix-blend-mode: multiply; transition: transform 1s var(--ease); }
.coll .imgw.n1 { grid-template-columns: 1fr; }
.coll .imgw.n2 { grid-template-rows: 1fr 1fr; }
.coll .imgw.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1.2fr 1fr; }
.coll .imgw.n3 img:first-child { grid-column: 1 / -1; }
.coll .imgw.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.coll:hover .imgw img { transform: scale(1.05); }
.coll span { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px 0; font-size: 1.15rem; font-weight: 500; letter-spacing: -.015em; }
.coll span em { display: inline-flex; align-items: center; gap: 8px; font-style: normal; font-size: .9rem; color: var(--mute); }
.coll span .ico { transition: transform .3s var(--ease); }
.coll:hover span .ico { transform: translateX(4px); }

/* ---------- product grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: none; border: 1px solid var(--line-2); padding: 10px 20px; font-size: .84rem; font-weight: 500; cursor: pointer; color: var(--ink-2); transition: background-color .25s, color .25s, border-color .25s; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pill[hidden] { display: none; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 52px 18px; }
.card { position: relative; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--pwell); overflow: hidden; text-decoration: none; color: #111; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; transition: transform .9s var(--ease); }
.card-media:hover img { transform: scale(1.05); }
.card-plate { position: absolute; inset: 0; display: grid; place-items: center; }
.card-plate .flagplate { width: 62%; aspect-ratio: 3 / 2; box-shadow: 0 20px 34px -18px rgba(0,0,0,.45); background-size: cover; background-position: center; }
.card-plate svg { width: 34%; height: auto; color: #111; opacity: .85; }
.badge { position: absolute; left: 12px; top: 12px; z-index: 2; background: #000; color: #fff; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; }
.heart { position: absolute; right: 8px; top: 8px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: #111; }
.heart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease); }
.heart:hover svg { transform: scale(1.12); }
.heart[aria-pressed="true"] svg { fill: currentColor; }
.card-body { padding-top: 16px; }
.card-meta { margin: 0 0 5px; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.card-title { font-size: 1.06rem; font-weight: 500; letter-spacing: -.012em; line-height: 1.25; }
.card-note { margin: 7px 0 0; font-size: .9rem; color: var(--mute); text-wrap: pretty; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.card .ulink.sub { color: var(--mute); font-weight: 500; border-bottom-color: var(--line-2); }
.noresult { grid-column: 1 / -1; padding: 40px 0; color: var(--mute); }
.fineprint { margin: 40px 0 0; color: #6f6f6a; font-size: .82rem; max-width: 90ch; }

/* ---------- editorial split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); }
.split-media { display: grid; place-items: center; padding: clamp(36px, 6vw, 88px); background: var(--well); }
.split-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; padding: clamp(32px, 6vw, 96px); }
.split-copy h2 { font-size: clamp(2.1rem, 3.8vw, 3.4rem); max-width: 14ch; letter-spacing: -.04em; }
.split-copy p { margin: 0; color: var(--ink-2); max-width: 44ch; font-size: 1.06rem; }
.phone { position: relative; width: clamp(220px, 20vw, 300px); aspect-ratio: 9 / 16; background: #000; border-radius: 34px; padding: 7px; box-shadow: 0 0 0 1px #2c2c2a, 0 0 0 7px #0a0a0a, 0 0 0 8px #262624, 0 50px 90px -40px #000; }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: #05060b; }

/* ---------- nations ---------- */
.finder { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 30px; }
.search { flex: 1 1 260px; max-width: 360px; position: relative; }
.search input { width: 100%; background: transparent; border: 1px solid var(--line-2); color: var(--ink); font: 400 1rem var(--font); padding: 12px 16px 12px 44px; outline: none; transition: border-color .2s; border-radius: 0; }
.search input:focus { border-color: var(--ink); }
.search input::placeholder { color: #66665f; }
.search svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--mute); }
.count { margin-left: auto; color: var(--mute); font-size: .88rem; }
.nations { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 26px 14px; }
.nation { text-decoration: none; display: block; }
.nation .fl { aspect-ratio: 3 / 2; background: var(--well-2); overflow: hidden; }
.nation img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.nation:hover img { transform: scale(1.07); }
.nation span { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: .94rem; font-weight: 500; }
.nation em { font-style: normal; color: var(--mute); transition: transform .3s var(--ease), color .2s; }
.nation:hover em { color: var(--ink); transform: translate(2px, -2px); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 72px 30px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: 40px; }
.foot-grid h4 { margin: 0 0 18px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--mute); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); font-size: .94rem; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-grid .about { color: var(--mute); font-size: .92rem; max-width: 36ch; margin: 16px 0 0; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: #6f6f6a; font-size: .8rem; }

/* ---------- the kit page ---------- */
.crumbs { padding-block: 24px; font-size: .8rem; color: var(--mute); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs i { margin: 0 8px; font-style: normal; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 84px); align-items: start; padding-bottom: clamp(60px, 8vw, 112px); }
.gallery { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: start; }
.thumbs { display: grid; gap: 10px; }
.thumb { position: relative; aspect-ratio: 9 / 16; border: 1px solid var(--line); padding: 0; background: var(--well); cursor: pointer; overflow: hidden; opacity: .6; transition: opacity .25s, border-color .25s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--ink); opacity: 1; }
.thumb:hover { opacity: 1; }
.stage { position: relative; background: var(--well); border: 1px solid var(--line); display: grid; place-items: center; aspect-ratio: 5 / 6; overflow: hidden; }
.stage .phone { width: clamp(240px, 24vw, 340px); }
.stage-label { z-index: 2; position: absolute; left: 18px; bottom: 16px; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.sound { z-index: 2; position: absolute; right: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; background: #000; border: 1px solid var(--line-2); padding: 9px 14px; font-size: .76rem; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.sound:hover { border-color: var(--ink); }
.sound[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.info { position: sticky; top: 112px; }
.info .meta { margin: 0 0 14px; color: var(--mute); }
.info h1 { font-size: clamp(2.8rem, 4.8vw, 4.4rem); line-height: .94; letter-spacing: -.05em; }
.info .tag { margin: 14px 0 0; color: var(--ink-2); font-size: 1.1rem; }
.price { margin: 28px 0 6px; font-size: 2rem; font-weight: 500; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 12px; }
.price small { font-size: .88rem; color: var(--mute); font-weight: 400; letter-spacing: 0; }
.info .desc { margin: 18px 0 0; color: var(--ink-2); }
.keys { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.keys li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; color: var(--ink-2); }
.keys svg { width: 18px; height: 18px; margin-top: 3px; color: var(--ink); }
.buy { margin-top: 30px; display: grid; gap: 14px; }
.assure { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 2px 0 0; font-size: .82rem; color: var(--mute); }
.acc { margin-top: 32px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; justify-content: space-between; padding: 19px 0; cursor: pointer; list-style: none; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.acc details[open] summary svg { transform: rotate(45deg); }
.acc .body { padding: 0 0 22px; color: var(--ink-2); font-size: .95rem; }
.acc .body b { color: var(--ink); font-weight: 600; }
.acc .body ul { margin: 0; padding-left: 1.1em; display: grid; gap: 9px; }
.acc dl { margin: 0; }
.acc dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.acc dl div:first-child { border-top: 0; }
.acc dt { color: var(--mute); } .acc dd { margin: 0; font-weight: 500; text-align: right; }

.reel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.reel figure { margin: 0; min-width: 0; }
.reel figcaption { min-width: 0; padding-top: 14px; display: grid; gap: 7px; }
.reel .frame { position: relative; aspect-ratio: 9 / 16; background: var(--well); overflow: hidden; border: 1px solid var(--line); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel h3 { font-size: 1.08rem; }
.reel p { margin: 0; color: var(--mute); font-size: .9rem; text-wrap: pretty; }
.cmd { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line-2); padding: 6px 6px 6px 12px; margin-top: 8px; min-width: 0; }
.cmd code { background: none; padding: 0; font-size: .78rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; min-width: 0; color: var(--ink-2); }
.copy { flex: none; background: var(--well-2); border: 0; padding: 8px 11px; font-size: .72rem; font-weight: 600; cursor: pointer; transition: background-color .2s; }
.copy:hover { background: #1f1f1e; }
.copy.done { background: var(--ink); color: var(--on-ink); }

.how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.steps { margin: 32px 0 0; }
.steps div { padding: 22px 0; border-top: 1px solid var(--line); }
.steps dt { font-size: 1.2rem; font-weight: 500; letter-spacing: -.015em; }
.steps dd { margin: 7px 0 0; color: var(--mute); max-width: 46ch; text-wrap: pretty; }
.term { margin: 0; background: #080808; border: 1px solid var(--line-2); color: #ececea; overflow: hidden; box-shadow: 0 50px 100px -60px rgba(255,255,255,.12); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c29; }
.term-bar span { margin-left: 8px; font: 500 .76rem var(--mono); color: #77776f; }
.term pre { margin: 0; padding: 24px 26px 28px; font: 400 .86rem/1.78 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.term .k { color: #fff; font-weight: 500; } .term .d { color: #7b7b73; } .term .ok { color: #fff; font-weight: 500; }

.faq { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1.5fr); gap: clamp(28px, 6vw, 96px); }
.qa details { border-top: 1px solid var(--line); } .qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); color: var(--mute); }
.qa details[open] summary svg { transform: rotate(45deg); color: var(--ink); }
.qa p { margin: 0 0 26px; color: var(--mute); max-width: 62ch; text-wrap: pretty; }

.banner { border-top: 1px solid var(--line); }
.banner .panels { height: clamp(220px, 28vw, 340px); min-height: 0; }
.banner .band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding-block: clamp(32px, 4.5vw, 56px); }
.banner h2 { font-size: clamp(2.1rem, 4.6vw, 4rem); letter-spacing: -.045em; line-height: 1; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; background: var(--ink); color: var(--on-ink); padding: 14px 18px; font-size: .9rem; max-width: min(92vw, 520px); }
.toast[hidden] { display: none; }
.toast code { background: rgba(0,0,0,.12); }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .header-in { grid-template-columns: auto 1fr auto; height: 64px; }
  .nav { display: none; } .menu-btn { display: inline-flex; } .logo { grid-column: 2; justify-self: center; letter-spacing: .24em; font-size: .92rem; }
  .tools .hide-m { display: none; }
  .panels { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr 1fr; height: 62vh; }
  .hero-text h1 { font-size: clamp(2.8rem, 13vw, 4.8rem); }
  .trust-in { grid-template-columns: 1fr; } .trust-in > div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } .trust-in > div:first-child { border-top: 0; }
  .collections { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: minmax(0, 1fr); } .info { position: static; }
  .gallery { grid-template-columns: minmax(0, 1fr); } .thumbs { grid-template-columns: repeat(5, 1fr); order: 2; }
  .stage { aspect-ratio: 4 / 5; }
  .how, .faq { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; }
  .banner .panels { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr 1fr; height: 300px; }
  .count { margin-left: 0; width: 100%; } .search { max-width: none; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 12px; }
  .card-note { display: none; } .card-actions { flex-direction: column; align-items: flex-start; gap: 8px; }
  .reel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .reel::-webkit-scrollbar { display: none; }
  .reel figure { flex: 0 0 72%; scroll-snap-align: start; }
  .nations { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .store-btn .label { display: none; }
  .btn { padding: 16px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- small flag strip ---------- */
.flagstrip { overflow: hidden; padding-block: clamp(26px, 3.5vw, 44px); border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.flagstrip-track { display: flex; gap: 14px; width: max-content; animation: drift 80s linear infinite; }
.flagstrip img { width: 108px; height: 72px; object-fit: cover; border: 1px solid #262624; flex: none; }
@keyframes drift { to { transform: translateX(calc(-50% - 7px)); } }
@media (max-width: 900px) { .collections { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .flagstrip img { width: 84px; height: 56px; } }
@media (prefers-reduced-motion: reduce) { .flagstrip-track { animation: none; } }
.reel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .reel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* ---------- product card: white Buy rectangle ---------- */
.buybtn { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink); padding: 11px 30px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background-color .25s, color .25s; }
.buybtn:hover { background: transparent; color: var(--ink); }

/* =====================================================================
   Flag Shop hero. One block, replaces every earlier hero experiment.
   Copy on the left, bottom-aligned with a product trio on the right:
   the flag stands forward on the brand plate, the game and the map sit
   one step back on a deeper plate and are only overlapped where they
   are empty. No outlines, no tilt; depth comes from tone and shadow.
   ===================================================================== */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: end; gap: 48px; padding-block: clamp(24px, 4.6vh, 44px); }

.hero-copy2 { display: grid; justify-items: start; gap: 18px; padding-bottom: 2px; }
.hero-copy2 h1 { font-size: clamp(2.8rem, min(5vw, 10.4vh), 4.75rem); line-height: .93; letter-spacing: -.045em; font-weight: 500; }
.hero-copy2 h1 span { display: block; color: var(--ink-2); }
.hero-copy2 > p { margin: 0; color: var(--mute); font-size: 1rem; line-height: 1.5; max-width: 38ch; text-wrap: pretty; }
.hero-copy2 .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* the pile's height sets the plates: the flag plate is 82cqh wide, the side plates take what is left plus a 22cqh tuck */
.pile { --back: #deded9; position: relative; container-type: size; width: 100%; max-width: 800px; height: min(320px, 46vh, 34vw); justify-self: end; }
.pc { position: absolute; display: block; overflow: hidden; background: var(--back); color: #111; text-decoration: none; opacity: 0; animation: pcin 1.1s var(--ease) forwards; animation-delay: var(--d, 0ms); }
.pc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 1.2s var(--ease); }
.pc:hover img { transform: scale(1.04); }
.pc .pl { position: absolute; left: 14px; bottom: 12px; font: 600 .64rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: #55554f; white-space: nowrap; }
.pc1 { left: 0; top: 11%; width: calc(50% - 19cqh); height: 78%; --dx: 10%; --d: 140ms; }
.pc1 img { padding: 9cqh calc(22cqh + 7%) 15cqh 7%; object-position: left center; }
.pc3 { right: 0; top: 11%; width: calc(50% - 19cqh); height: 78%; --dx: -10%; --d: 140ms; }
.pc3 img { padding: 9cqh 7% 15cqh calc(22cqh + 7%); object-position: right center; }
.pc3 .pl { left: auto; right: 14px; }
.pc2 { left: calc(50% - 41cqh); top: 0; width: 82cqh; height: 100%; z-index: 2; background: var(--pwell);
  box-shadow: -26px 0 38px -22px rgba(0,0,0,.55), 26px 0 38px -22px rgba(0,0,0,.55), 0 40px 60px -34px rgba(0,0,0,.9); }
.pc2 img { padding: 14cqh 9cqh 18cqh; }
@keyframes pcin { from { opacity: 0; transform: translate(var(--dx, 0), 14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pc { opacity: 1; animation: none; } .pc:hover img { transform: none; } }

.hero + .sec { padding-top: clamp(26px, 4.4vh, 48px); }
.hero + .sec .sec-head { margin-bottom: 22px; }

@media (max-width: 760px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 16px 24px; }
  .pile { order: -1; max-width: none; height: min(46vw, 220px); }
  .pc .pl { left: 10px; bottom: 9px; font-size: .54rem; letter-spacing: .12em; }
  .pc3 .pl { left: auto; right: 10px; }
  .hero-copy2 { gap: 14px; }
  .hero-copy2 h1 { font-size: clamp(2.3rem, 10.6vw, 3.2rem); }
  .hero-copy2 > p { display: none; }
  .hero-copy2 .cta-row { width: 100%; flex-wrap: nowrap; gap: 8px; margin-top: 2px; }
  .hero-copy2 .cta-row .btn { flex: 1 1 0; padding: 14px 8px; font-size: .7rem; letter-spacing: .11em; white-space: nowrap; }
  .hero + .sec { padding-top: 28px; }
  .sec-head { margin-bottom: 20px; }
}

/* Buy + Read reviews always on one line; type pills on one line */
.card-actions, .card-actions { flex-direction: row !important; align-items: center !important; flex-wrap: nowrap; gap: 10px; }
.card-actions .buybtn { padding: 11px 22px; flex: none; }
.card-actions .ulink.sub { white-space: nowrap; font-size: .8rem; }
@media (max-width: 700px) {
  #seg.filters { display: flex; flex-wrap: nowrap; gap: 6px; width: 100%; }
  #seg .pill { flex: 1 1 0; min-width: 0; padding-inline: 4px; text-align: center; justify-content: center; font-size: .74rem; white-space: nowrap; }
  .card-actions .buybtn { padding: 10px 16px; }
  .card-actions .ulink.sub { font-size: .74rem; }
}

/* ===== mobile menu v2 ===== */
.mobile-menu { padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom)); background: #000; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s .28s; display: flex; }
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .28s var(--ease), transform .28s var(--ease); }
.mobile-menu .top { height: 64px; border-bottom: 1px solid var(--line); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.mobile-menu .top .logo { letter-spacing: .24em; font-size: .92rem; }
.mm-links { display: grid; margin-top: 8px; }
.mm-link { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 6px; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mm-link .n { font: 500 .72rem "JetBrains Mono", monospace; letter-spacing: .12em; color: var(--mute); }
.mm-link .t { font-size: clamp(2rem, 9vw, 2.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; display: grid; gap: 8px; }
.mm-link .t small { font-size: .88rem; letter-spacing: 0; font-weight: 400; color: var(--mute); }
.mm-link .ico { width: 22px; height: 22px; color: var(--mute); transition: transform .3s var(--ease), color .3s; }
.mm-link[aria-current="page"] .t { color: var(--ink); } .mm-link:not([aria-current="page"]) .t { color: var(--ink-2); }
.mm-link[aria-current="page"] .ico { color: var(--ink); }
.mm-link:active .ico { transform: translateX(4px); }
.mm-foot { margin-top: auto; padding-top: 28px; } .mm-foot .btn { width: 100%; }
.menu-btn { width: 44px; height: 44px; margin-left: -10px; }
@media (max-width:600px){ .header .btn-sm { padding: 10px 16px; font-size: .7rem; } }
