/* ===========================================================================
   MSNQA — WEAR YOUR WORLD
   A deep-navy world lit by neon-white borders and full-colour flags.
   Design language: luxury, minimal, editorial, night-sky navy.
   Flags are the colour; neon white is the light; gold is the only metal (it ties the map to the print).
   =========================================================================== */

:root {
  --bg:        #06112a;   /* deep navy       */
  --bg-2:      #0a1838;
  --bg-3:      #11224a;
  --well:      #040b1e;   /* T-shirt photo wells: the photos' black melts into this */
  /* hoodie studio backdrop: lifted slate-navy with a soft spotlight, clearly lighter than
     the black fabric; its edges match the re-lit photos (tools/light_hoodie.py) */
  --studio: radial-gradient(75% 62% at 50% 40%, #1b2a42 0%, #142136 52%, #0f192b 100%);
  --ink:       #f2f5fc;   /* cool off-white  */
  --ink-dim:   #9eb0d6;   /* muted label     */
  --ink-faint: #5e709c;
  --line:      #172a55;
  --line-2:    #263c72;
  --map-fill:  #10214a;
  --neon:      #ffffff;
  --neon-blue: rgba(130, 200, 255, .9);
  --gold:      #d6ad5e;
  --gold-hi:   #f6e2a6;
  --gold-lo:   #a3762b;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Hanken Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-serif:   "Instrument Serif", Georgia, "Times New Roman", serif;

  --maxw: 1480px;
  --gutter: clamp(16px, 5vw, 64px);
  --header-h: 104px;
  --ease: cubic-bezier(.16,.84,.34,1);
  --slow: cubic-bezier(.7,0,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain over everything — gives the black depth */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body.locked { overflow: hidden; }

::selection { background: var(--gold); color: var(--bg); }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

[hidden] { display: none !important; }
:root.no-announce { --header-h: 70px; }
.is-placeholder { color: var(--ink-faint) !important; font-style: italic; }
.s-flag { display: inline-block; background-size: cover; background-position: center; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 400; padding: 10px 16px;
  background: var(--ink); color: var(--bg); border-radius: 999px; font-size: .8rem;
  transform: translateY(-150%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 600;
}
.lead { color: var(--ink-dim); max-width: 46ch; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ============================ HEADER ===================================== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background .5s var(--ease), border-color .5s; border-bottom: 1px solid transparent; }
.announce {
  display: flex; justify-content: center; align-items: center; gap: 14px; white-space: nowrap;
  height: 34px; overflow: hidden; padding-inline: var(--gutter);
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
  transition: height .45s var(--ease), opacity .3s, border-color .3s;
}
.announce i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  transition: padding .5s var(--ease);
}
.header.scrolled {
  background: rgba(6,17,42,0.8);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom-color: var(--line);
}
.header.scrolled .announce { height: 0; opacity: 0; border-color: transparent; }
.header.scrolled .nav { padding-block: 13px; }

.brand { display: flex; align-items: center; gap: 11px; justify-self: start; }
.brand-mark { width: 30px; height: auto; color: var(--ink); flex: none; }
.brand-word {
  font-family: var(--f-display); font-weight: 800;
  font-size: 1.2rem; letter-spacing: 0.34em; padding-left: 0.34em;
}
.nav-center { display: flex; gap: 38px; justify-content: center; }
.nav-link {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-dim); position: relative; padding: 6px 0;
  transition: color .35s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .4s var(--ease);
}
.nav-link:hover, .nav-link.current { color: var(--ink); }
.nav-link:hover::after, .nav-link.current::after { width: 100%; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }

.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; transition: background .3s;
}
.icon-btn:hover { background: var(--bg-3); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bag-count {
  position: absolute; top: 5px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--gold); color: var(--bg);
  font-size: .6rem; font-weight: 700; line-height: 17px; text-align: center;
  transform: scale(0); transition: transform .4s var(--ease);
}
.bag-count.has { transform: scale(1); }
.bag-count.bump { animation: bump .5s var(--ease); }

.burger { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 42px; height: 42px; padding: 0 9px; }
.burger span { height: 1.5px; width: 100%; background: var(--ink); transition: transform .4s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* ============================ HERO ======================================= */
/* copy first (what we sell, two clear actions), then the map — compact enough
   that the collections start within the first screen and a half */
.hero {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding-top: calc(var(--header-h) + clamp(22px, 4.5vh, 48px)); padding-bottom: clamp(14px, 3vh, 28px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 45%, rgba(48,104,230,0.28), transparent 70%),
    radial-gradient(120% 80% at 50% 0%, rgba(30,62,140,0.45), transparent 60%),
    radial-gradient(100% 60% at 50% 120%, rgba(2,6,18,0.9), transparent 55%);
}
.hero-copy {
  position: relative; z-index: 2; width: 100%; max-width: var(--maxw); padding-inline: var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; }
.hero-title { font-size: clamp(2rem, 4.4vw, 5.4rem); letter-spacing: -0.03em; text-wrap: balance; }
.hero-sub { color: var(--ink-dim); font-size: clamp(1rem, 1.35vw, 1.2rem); }
.hero-copy .btn-row { justify-content: center; margin-top: 6px; }
.map-hint {
  position: relative; z-index: 2; margin-top: 4px; padding-inline: var(--gutter); text-align: center;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint);
}
.map-hint span { color: var(--gold); }

/* the map is the hero */
.map-stage {
  position: relative; z-index: 1; width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding-inline: clamp(0px, 2vw, 32px); margin-top: clamp(10px, 2.5vh, 26px);
  opacity: 0; animation: fadeIn 1.4s var(--ease) .35s forwards;
}
.map-stage svg#world-map { width: 100%; height: auto; max-height: 44svh; overflow: visible; }
#world-map path {
  fill: var(--map-fill);
  stroke: #e6f3ff;
  stroke-width: 0.5;
  stroke-opacity: 0.55;
  transition: fill-opacity .35s var(--ease), stroke-opacity .3s var(--ease), stroke-width .3s var(--ease), stroke .3s var(--ease);
  cursor: pointer;
}
#world-map path:not(.flagged) { cursor: default; }
#world-map path:not(.flagged):hover { fill: #17295a; }
/* spotlight on hover: fade every flag FILL (cheap, GPU-composited) then flare the hovered one */
#borders.spot path.flagged { fill-opacity: 0.1; }
#borders.spot path.is-active { fill-opacity: 1; }
#world-map path.is-active { stroke: var(--neon); stroke-width: 1; stroke-opacity: 1; }

/* neon layers: stroke-only clones drawn over the map (never under the pointer) */
#world-map .neon {
  fill: none; stroke: var(--neon); stroke-width: 1.1; stroke-opacity: 1;
  stroke-linejoin: round; stroke-linecap: round; transition: none; cursor: default;
}
#neonIntro, #neonHover { pointer-events: none; }
#neonIntro { filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 5px var(--neon-blue)); }
#neonIntro .neon { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s var(--slow) var(--d, 0s) forwards; }
#neonIntro.calm .neon { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
#neonHover { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 4px #fff) drop-shadow(0 0 11px var(--neon-blue)); }
#neonHover .neon { stroke-width: 1.6; animation: glowIn .25s var(--ease); }
@keyframes glowIn { from { opacity: 0; } }

/* intro: flags flood in just behind the neon line as it draws */
#borders.intro path.flagged { fill-opacity: 0; animation: flagIn 1.1s var(--ease) calc(var(--d, 0s) + .7s) forwards; }
@keyframes flagIn { to { fill-opacity: 1; } }

/* graticule behind the countries: fine white lat/long lines, dashed tropics,
   and a glowing equator that draws in, then carries a slow travelling glint */
#graticule { pointer-events: none; opacity: 0; animation: fadeIn 1.8s var(--ease) .8s forwards; }
#world-map .grat { fill: none; stroke: #fff; stroke-width: 1; transition: none; cursor: default; }
#world-map .grat-minor { stroke-opacity: .07; }
#world-map .grat-prime { stroke-opacity: .13; }
#world-map .grat-par { stroke: url(#gratFade); stroke-opacity: .07; }
#world-map .grat-tropic { stroke: url(#gratFade); stroke-opacity: .26; stroke-dasharray: 2 6; }
#world-map .grat-eq {
  stroke: url(#gratFade); stroke-opacity: .62; stroke-width: 1.2;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--slow) 1.2s forwards;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.35));
}
#world-map .grat-glint {
  stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 96; stroke-dashoffset: 100; opacity: 0;
  animation: glint 10s linear 3.6s infinite;
  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px rgba(255,255,255,.6));
}
.grat-label {
  font-family: var(--f-body); font-weight: 600; font-size: var(--grat-fs, 14px);
  letter-spacing: .24em; text-transform: uppercase; fill: #fff; fill-opacity: .34;
}
.grat-label.eq { fill-opacity: .7; }
#graticule.no-labels .grat-label { display: none; }

.map-readout {
  position: absolute; z-index: 3; left: 50%; top: 50%;
  transform: translate(-50%,-50%); text-align: center;
  pointer-events: none; opacity: 0; transition: opacity .35s var(--ease);
  mix-blend-mode: difference;
}
.map-readout.show { opacity: 1; }
.map-readout .ro-name { font-size: clamp(1.4rem, 4vw, 2.8rem); }
.map-readout .ro-sub { font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; margin-top: 8px; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================ BUTTONS / CONTROLS ========================= */
.btn {
  display: inline-flex; align-items: center; gap: 14px; justify-content: center;
  padding: 16px 30px; background: var(--ink); color: var(--bg);
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
  border-radius: 999px; transition: transform .4s var(--ease), background .4s, color .4s, box-shadow .4s;
  align-self: flex-start; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.5); background: #fff; }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-block { width: 100%; align-self: stretch; }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button {
  padding: 10px 24px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  border-radius: 999px; color: var(--ink-dim); transition: color .3s, background .3s;
}
.seg button:hover { color: var(--ink); }
.seg button.active { background: var(--ink); color: var(--bg); }
.seg.small button { padding: 8px 16px; font-size: .64rem; }

.field-label { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 12px; display: block; }
.field-hint { color: var(--gold); letter-spacing: .12em; margin-left: 8px; text-transform: none; font-size: .78rem; }
.field.shake .sizes { animation: shake .45s var(--ease); }

.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes button {
  min-width: 54px; height: 46px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-2); font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  transition: border-color .25s, background .25s, color .25s;
}
.sizes button:hover { border-color: var(--ink-dim); }
.sizes button[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.close-btn {
  flex: none; font-size: 1.4rem; line-height: 1; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); transition: background .3s, border-color .3s;
}
.close-btn:hover { background: var(--bg-3); border-color: var(--ink-faint); }

/* ============================ MARQUEE ==================================== */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); padding-block: 18px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 14px; padding-inline: 26px;
  font-family: var(--f-display); font-weight: 700; font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint);
  transition: color .3s;
}
.marquee-item:hover { color: var(--ink); }
.marquee-item .m-flag { width: 24px; height: 16px; border-radius: 2px; background-size: cover; background-position: center; filter: grayscale(1) brightness(.7); transition: filter .3s; }
.marquee-item:hover .m-flag { filter: none; }

/* ============================ SECTION SHELL ============================== */
section { position: relative; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 24px; padding-block: clamp(70px, 11vh, 130px) 34px;
}
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 4rem); }

/* ============================ SHOP ======================================= */
.shop { padding-bottom: clamp(50px, 8vh, 100px); }
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }

.card { position: relative; display: flex; flex-direction: column; opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.card.in { opacity: 1; transform: none; }
.card-media {
  position: relative; display: block; width: 100%; aspect-ratio: 4/5; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line);
  background: radial-gradient(110% 90% at 50% 30%, #091532, var(--well) 75%);
  transition: border-color .5s;
}
.card-media .photo-garment { position: absolute; left: 50%; top: 50%; width: 82%; transform: translate(-50%,-50%); transition: transform .9s var(--slow); }
.card:hover .card-media, .card:focus-within .card-media { border-color: var(--gold-lo); box-shadow: 0 18px 40px rgba(2,6,18,.45); }
.card:hover .card-media .photo-garment { transform: translate(-50%,-50%) scale(1.05); }
.card-flag {
  position: absolute; top: 14px; left: 14px; z-index: 2; width: 30px; height: 20px; border-radius: 3px;
  background-size: cover; background-position: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.16);
}
.card-quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3;
  display: none; padding: 10px; border-radius: 10px;
  background: rgba(6,15,38,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
}
.card-quick .q-label { font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 8px; text-align: center; }
.card-quick .q-sizes { display: flex; gap: 4px; }
.card-quick button { flex: 1; height: 32px; border-radius: 6px; font-size: .68rem; font-weight: 600; border: 1px solid var(--line-2); transition: background .2s, color .2s; }
.card-quick button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (hover: hover) {
  .card-quick { display: block; opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
  .card:hover .card-quick, .card:focus-within .card-quick { opacity: 1; transform: none; }
}
.card-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 4px 0; cursor: pointer; }
.card:hover .card-meta h3 { color: var(--gold-hi); }
.card-meta h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: 1rem; letter-spacing: .02em; line-height: 1.1; }
.card-meta p { font-size: .78rem; color: var(--ink-dim); margin-top: 3px; }
.card-price { font-size: .9rem; color: var(--gold); font-weight: 600; }

/* "your country" card */
.card-cta .card-media {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px; padding: 24px;
  text-align: left; border-style: dashed; border-color: var(--line-2);
  background: radial-gradient(90% 80% at 80% 10%, rgba(214,173,94,.12), transparent 60%), var(--well);
}
.card-cta .cta-big { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: .9; color: var(--gold); }
.card-cta .cta-copy { font-size: 1.05rem; line-height: 1.3; max-width: 16ch; }
.card-cta .cta-copy em { font-size: 1.25rem; }
.card-cta .cta-link { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim); transition: color .3s; }
.card-cta:hover .card-media { border-color: var(--gold-lo); }
.card-cta:hover .cta-link { color: var(--ink); }

/* ============================ GARMENT RENDER ============================= */
/* 'lighten' melts the photos' near-black studio background into the navy well behind */
.photo-garment { position: relative; display: inline-block; width: 100%; line-height: 0; }
.photo-garment img { width: 100%; height: auto; display: block; }

/* ============================ VALUES ===================================== */
.values { padding-block: clamp(20px, 4vh, 40px) clamp(70px, 10vh, 120px); }
.values-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.values-list li { padding: 28px 28px 0 0; }
.values-list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.v-num { font-family: var(--f-serif); font-style: italic; color: var(--gold); font-size: 1.3rem; }
.values-list h3 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin: 14px 0 8px; font-weight: 700; }
.values-list p { color: var(--ink-dim); font-size: .9rem; max-width: 30ch; }

/* ============================ BUILDER ==================================== */
.builder { padding-block: clamp(60px, 10vh, 120px); border-top: 1px solid var(--line); background: linear-gradient(var(--bg-2), var(--bg)); }
.builder-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.builder-stage {
  position: relative; aspect-ratio: 1/1; border: 1px solid var(--line); border-radius: 18px;
  background: radial-gradient(80% 70% at 50% 40%, #091532, var(--well) 75%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.builder-stage::before {
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(60% 60% at 50% 55%, #000, transparent 75%);
  opacity:.5;
}
.builder-stage .photo-garment { width: min(70%, 420px); animation: swap .6s var(--ease); }
.builder-panel { display: flex; flex-direction: column; gap: 26px; }
.builder-panel h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }

.country-search { position: relative; }
.country-search input {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line-2);
  color: var(--ink); font-size: 1.5rem; padding: 10px 46px 12px 0; outline: none; border-radius: 0;
  font-family: var(--f-display); font-weight: 600; font-stretch: 112%; font-variation-settings: "wdth" 112;
  transition: border-color .35s;
}
.country-search input::placeholder { color: var(--ink-faint); }
.country-search input:focus { border-color: var(--gold); }
.cs-flag {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 23px; border-radius: 2px; background-size: cover; background-position: center;
  box-shadow: 0 0 0 1px var(--line-2); opacity: 0; transition: opacity .4s;
}
.cs-flag.show { opacity: 1; }
.cs-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  max-height: 300px; overflow-y: auto; display: none; box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.cs-suggest.show { display: block; }

/* shared result row (builder dropdown + search overlay) */
.result {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 12px 16px; font-size: .95rem; border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.result:last-child { border-bottom: none; }
.result:hover, .result.kb { background: var(--bg-3); }
.result .s-flag { width: 28px; height: 19px; border-radius: 2px; background-size: cover; background-position: center; flex: none; box-shadow: 0 0 0 1px var(--line); }
.result .s-code { margin-left: auto; font-size: .68rem; letter-spacing: .2em; color: var(--ink-faint); }
.result mark { background: none; color: var(--gold); }

.price-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.price { font-size: 1.8rem; font-family: var(--f-display); font-weight: 700; }
.price-note { font-size: .74rem; color: var(--ink-faint); letter-spacing: .06em; }

/* ============================ STORY ===================================== */
.story { padding-block: clamp(90px, 16vh, 200px); text-align: center; border-top: 1px solid var(--line); }
.story-inner .eyebrow { display: block; margin-bottom: 28px; }
.story h2 { font-size: clamp(2.4rem, 8vw, 7.4rem); }
.story-serif { font-family: var(--f-serif); font-style: italic; font-size: clamp(2rem, 6vw, 5.4rem); line-height: 1; color: var(--gold); margin-top: 6px; }
.story-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 860px; margin: 56px auto 0; text-align: left; color: var(--ink-dim); }
.story-cols em { color: var(--ink); font-size: 1.2em; }
.story-words { display: flex; flex-wrap: wrap; gap: 10px 36px; justify-content: center; margin-top: 60px; }
.story-words span { font-size: .74rem; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-dim); }
.story-words span + span::before { content: "—"; margin-right: 36px; color: var(--ink-faint); }

/* ============================ FAQ ======================================= */
.faq { padding-block: clamp(70px, 12vh, 140px); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.faq-intro .eyebrow { display: block; margin-bottom: 16px; }
.faq-intro h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); margin-bottom: 18px; }
details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 1.05rem; font-weight: 500; transition: color .3s;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; color: var(--ink-dim); transition: transform .4s var(--ease); }
details[open] summary::after { transform: rotate(45deg); color: var(--gold); }
summary:hover { color: var(--gold-hi); }
details p { color: var(--ink-dim); padding: 0 40px 22px 0; max-width: 60ch; }

/* ============================ JOIN ====================================== */
.join { padding-bottom: clamp(70px, 10vh, 120px); }
.join-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end;
  padding: clamp(28px, 5vw, 64px); border-radius: 22px; border: 1px solid var(--line-2);
  background: radial-gradient(70% 120% at 100% 0%, rgba(214,173,94,.14), transparent 60%), var(--bg-2);
}
.join-card .eyebrow { display: block; margin-bottom: 14px; }
.join-card h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); margin-bottom: 14px; }
.join-card p { color: var(--ink-dim); }
.join-form { display: flex; flex-wrap: wrap; gap: 10px; }
.join-form input {
  flex: 1 1 220px; min-width: 0; height: 52px; padding: 0 22px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line-2); font-size: .95rem; outline: none; transition: border-color .3s;
}
.join-form input:focus { border-color: var(--gold); }
.join-form .btn { height: 52px; padding-block: 0; }
.join-msg { flex-basis: 100%; font-size: .82rem; min-height: 1.3em; color: var(--gold); padding-left: 22px; }

/* ============================ FOOTER ==================================== */
.footer { border-top: 1px solid var(--line); padding-block: 70px 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer .f-brand { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: clamp(2.6rem,7vw,5.4rem); letter-spacing: .02em; line-height: .9; }
.footer .f-brand small { display:block; font-family: var(--f-body); font-size: .7rem; letter-spacing:.3em; text-transform: uppercase; color: var(--ink-dim); margin-top:18px; font-weight:600; font-stretch: 100%; font-variation-settings: normal; }
.footer h4 { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: .9rem; color: var(--ink-dim); transition: color .3s; }
.footer ul a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: .72rem; color: var(--ink-faint); letter-spacing: .08em;
}

/* ============================ OVERLAYS ================================== */
.scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(2,7,20,.66);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
.scrim.open { opacity: 1; pointer-events: auto; }

/* side panels (country drawer, bag) */
.panel {
  position: fixed; top: 0; right: 0; z-index: 100; height: 100svh;
  width: min(460px, 100vw); background: var(--bg-2); border-left: 1px solid var(--line-2);
  transform: translateX(100%); transition: transform .6s var(--slow), visibility 0s .6s; visibility: hidden;
  display: flex; flex-direction: column;
}
.panel.open { transform: none; visibility: visible; transition: transform .6s var(--slow); }
.panel-top { display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(18px,4vw,32px); border-bottom: 1px solid var(--line); }
.panel-body { flex: 1; overflow-y: auto; padding: 24px clamp(18px,4vw,32px); }
.panel-h { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-dim); font-weight: 600; margin: 28px 0 14px; }
.panel-note { font-size: .74rem; color: var(--ink-faint); text-align: center; margin-top: 18px; min-height: 1em; }

.drawer-hero { position: relative; aspect-ratio: 3/2; border-radius: 10px; overflow: hidden; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px var(--line-2); }
.drawer-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.7)); }
.drawer-hero .dh-name { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; font-size: clamp(1.5rem, 6vw, 2.2rem); }
.drawer-products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dp-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: left; width: 100%; transition: border-color .3s, background .3s; }
.dp-card:hover { border-color: var(--line-2); background: var(--bg-3); }
.dp-art { margin-bottom: 12px; }
.dp-art { border-radius: 8px; background: radial-gradient(90% 80% at 50% 35%, #091532, var(--well) 80%); }
.dp-name { font-size: .84rem; font-weight: 600; }
.dp-price { font-size: .82rem; color: var(--gold); margin-top: 2px; }
.dp-view { display: block; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); margin-top: 10px; }

/* bag */
.bag-items { display: flex; flex-direction: column; }
.bag-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.bag-item:first-child { padding-top: 0; }
.bi-art { width: 84px; aspect-ratio: 4/5; border-radius: 8px; background: var(--well); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.bi-art .photo-garment { width: 88%; }
.bi-name { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.bi-sub { font-size: .78rem; color: var(--ink-dim); margin-top: 2px; }
.bi-controls { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.qty button { width: 38px; height: 38px; font-size: 1rem; color: var(--ink-dim); transition: color .2s; }
.qty button:hover { color: var(--ink); }
.qty span { min-width: 20px; text-align: center; font-size: .82rem; font-weight: 600; }
.bi-remove { padding: 10px 4px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.bi-remove:hover { color: var(--ink); }
.bi-price { font-size: .92rem; font-weight: 600; }
.bag-empty { text-align: center; padding: 60px 10px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.bag-empty .display { font-size: 1.6rem; }
.bag-empty p { color: var(--ink-dim); max-width: 28ch; }
.bag-empty .btn { align-self: center; }
.bag-foot { padding: 20px clamp(18px,4vw,32px) 24px; border-top: 1px solid var(--line); background: var(--bg-2); }
.bag-foot[hidden] { display: none; }
.bag-line { display: flex; justify-content: space-between; font-size: .95rem; margin-bottom: 8px; }
.bag-line span:last-child { font-weight: 600; }
.bag-line.dim { color: var(--ink-dim); font-size: .82rem; margin-bottom: 18px; }
.bag-line.dim span:last-child { font-weight: 400; }

/* product view */
.pm {
  position: fixed; left: 50%; top: 50%; z-index: 120;
  width: min(1080px, 94vw); max-height: 92svh; overflow: auto;
  display: grid; grid-template-columns: 1.1fr .9fr;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px;
  opacity: 0; visibility: hidden; transform: translate(-50%,-47%) scale(.98);
  transition: opacity .45s var(--ease), transform .6s var(--slow), visibility 0s .6s;
}
.pm.open { opacity: 1; visibility: visible; transform: translate(-50%,-50%); transition: opacity .45s var(--ease), transform .6s var(--slow); }
.pm-close { position: absolute; top: 16px; right: 16px; z-index: 3; background: rgba(6,15,38,.6); }
.pm-stage {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: clamp(24px, 4vw, 52px); min-height: 420px;
  background: radial-gradient(95% 85% at 50% 38%, #091532, var(--well) 78%);
  border-right: 1px solid var(--line);
}
.pm-art { width: 100%; display: flex; justify-content: center; }
.pm-art .photo-garment.front { max-width: 380px; }
.pm-art .photo-garment { width: 100%; max-width: 560px; animation: swap .5s var(--ease); }
.pm-art .photo-garment.back { max-width: 380px; }
.pm-info { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 22px; }
.pm-info h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); padding-right: 40px; }
.pm-price { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; color: var(--gold); }
.pm-details summary { font-size: .9rem; padding: 16px 0; }
.pm-details details p { font-size: .88rem; padding-bottom: 16px; }

/* search */
.search {
  position: fixed; left: 50%; top: 12vh; z-index: 130; width: min(640px, calc(100vw - 32px));
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translate(-50%, -12px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.search.open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.search-box { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line); }
.search-box svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-dim); stroke-width: 1.5; stroke-linecap: round; flex: none; }
.search-box input {
  flex: 1; min-width: 0; background: none; border: none; outline: none; font-size: 1.3rem;
  font-family: var(--f-display); font-weight: 600; font-stretch: 112%; font-variation-settings: "wdth" 112;
}
.search-box input::placeholder { color: var(--ink-faint); }
.search-label { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-faint); padding: 14px 22px 6px; }
.search-results { max-height: min(56vh, 460px); overflow-y: auto; padding-bottom: 6px; }
.search-results .result { padding-inline: 22px; }
.search-empty { padding: 24px 22px; color: var(--ink-dim); font-size: .92rem; }

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 55; padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  background: var(--bg); display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s;
}
.menu.open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.menu a, .menu button {
  font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125;
  text-transform: uppercase; font-size: clamp(2rem, 10vw, 3rem); line-height: 1.15; text-align: left;
  padding-block: 8px; border-bottom: 1px solid var(--line);
  transform: translateY(16px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease), color .3s;
}
.menu button { font-size: 1rem; letter-spacing: .1em; color: var(--gold); border: none; margin-top: 20px; }
.menu.open a, .menu.open button { transform: none; opacity: 1; }
.menu.open > :nth-child(2) { transition-delay: .05s; }
.menu.open > :nth-child(3) { transition-delay: .1s; }
.menu.open > :nth-child(4) { transition-delay: .15s; }
.menu.open > :nth-child(5) { transition-delay: .2s; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 200; max-width: calc(100vw - 32px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--bg); padding: 13px 22px; border-radius: 999px;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  box-shadow: 0 20px 50px rgba(0,0,0,.5); transition: opacity .4s, transform .4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { text-decoration: underline; text-underline-offset: 3px; color: var(--bg); font-weight: 700; letter-spacing: .14em; font-size: inherit; text-transform: uppercase; }

/* master garments: re-lit studio photos (tools/light_garments.py) shown as shot — no blend mode
   (a 'lighten' blend replaced every fabric pixel darker than the backdrop with backdrop,
   which is what made the hoodies vanish), edges feathered into the matching backdrop */
.photo-garment.v2 { mix-blend-mode: normal; }
.photo-garment.v2 img {
  filter: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 92%, transparent);
  mask-composite: intersect;
}
.photo-garment.v2.logo.shape-wide img, .photo-garment.v2.patch.shape-wide img {
  -webkit-mask-image: radial-gradient(ellipse 72% 76% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 76% at 50% 50%, #000 62%, transparent 100%);
}
.card-media:has(.photo-garment.v2), .builder-stage:has(.photo-garment.v2), .pm-stage:has(.photo-garment.v2),
.dp-art:has(.photo-garment.v2), .tile-art:has(.photo-garment.v2), .bi-art:has(.photo-garment.v2),
.pm-thumb:has(.photo-garment.v2) { background: var(--studio); }
.builder-stage:has(.photo-garment.v2)::before { opacity: .18; }
.garment-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* artwork close-up: the back view zoomed onto the print (scale + centring set inline by
   garmentHTML from the measured print), framed at the back photo's own proportions */
.pm-art.view-artwork { max-width: 440px; aspect-ratio: var(--ar, 0.845); overflow: hidden; border-radius: 14px; margin-inline: auto; align-items: center; }
.pm-art.view-artwork .photo-garment { animation: none; }
/* a real product photo (assets/products/…) is shown exactly as delivered */
.photo-garment.real { mix-blend-mode: normal; }
.photo-garment.real img { filter: none; }
/* sized by the photo's shape: narrow sheet crops (side views), wide close-ups, or a
   portrait studio render of any view */
.pm-art .photo-garment.v2.shape-narrow { max-width: 230px; }
.pm-art .photo-garment.v2.shape-wide { max-width: 600px; }
.pm-art .photo-garment.v2.shape-portrait { max-width: 440px; }
.pm-thumb .photo-garment.shape-narrow { width: 40%; }
.pm-thumb .photo-garment.shape-wide { width: 100%; }
/* a country whose artwork isn't finished: never a wrong design, just this label */
.pg-pending {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); white-space: nowrap;
  padding: 6px 12px; border: 1px solid var(--gold-lo); border-radius: 999px; background: rgba(4,11,30,.7);
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); line-height: 1.4;
}
.pending-note {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--gold-lo);
  background: rgba(214,173,94,.08); color: var(--ink); font-size: .86rem;
}
.pm-info .pending-note { margin-top: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.result .s-tag { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-left: auto; }
.result .s-tag + .s-code { margin-left: 12px; }

/* ============================ CURATED COLLECTIONS ======================= */
.curated .section-head { padding-top: clamp(44px, 7vh, 84px); }
.curated-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2);
  transition: border-color .4s, box-shadow .4s, transform .5s var(--ease);
}
a.tile:hover, .tile:has(a:hover) { border-color: var(--gold-lo); box-shadow: 0 18px 40px rgba(2,6,18,.45); }
.tile-art {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 3%;
  background: radial-gradient(90% 90% at 50% 40%, #091532, var(--well) 75%);
}
.tile-art .photo-garment { width: 40%; transition: transform .8s var(--slow); }
.tile-pair .photo-garment { width: 36%; }
.tile:hover .tile-art .photo-garment { transform: scale(1.05); }
.tile-flags { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; padding: 8% 9%; align-content: center; }
.tile-flags span {
  aspect-ratio: 3 / 2; border-radius: 3px; background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); opacity: .72; transition: opacity .4s;
}
.tile:hover .tile-flags span { opacity: 1; }
.tile-flags span:first-child { opacity: 1; outline: 1px solid var(--gold); outline-offset: 2px; } /* Slovenia */
.tile-copy { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.tile-copy h3 { font-size: clamp(1.05rem, 1.5vw, 1.35rem); }
.tile-copy p { color: var(--ink-dim); font-size: .9rem; }
.tile-link { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 4px; transition: color .3s; }
.tile-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
a.tile:hover .tile-link, .tile-links a:hover { color: var(--gold-hi); }

/* ============================ COLOUR PICKER ============================ */
.shop-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.colours { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px 0 11px;
  border-radius: 999px; border: 1px solid var(--line-2); font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  transition: border-color .25s, background .25s;
}
.swatch-btn:hover { border-color: var(--ink-dim); }
.swatch-btn[aria-checked="true"] { border-color: var(--gold); background: rgba(214,173,94,.1); }
.swatch-btn .swatch { outline: none; width: 18px; height: 18px; }
.swatch.white { background: #f1f0ec; border-color: #c9c8c2; }

/* ============================ FULL-SIZE VIEW =========================== */
.pm-art { cursor: zoom-in; }
.pm-zoom {
  position: absolute; top: 14px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(6,15,38,.6);
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); transition: color .2s, border-color .2s;
}
.pm-zoom:hover { color: var(--ink); border-color: var(--ink-dim); }
.zoom {
  position: fixed; inset: 0; z-index: 125; background: var(--studio);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s;
}
.zoom.open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.zoom-close { position: absolute; top: 16px; right: 16px; z-index: 2; background: rgba(6,15,38,.6); }
.zoom-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.zoom-stage.zoomed { cursor: zoom-out; }
.zoom-stage .photo-garment {
  width: min(94vw, calc(88svh * var(--ar, 1)));
  transform-origin: var(--zx, 50%) var(--zy, 50%); transition: transform .35s var(--ease);
}
.zoom-stage.zoomed .photo-garment { transform: scale(2.6); }
.zoom-hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint);
}

/* ============================ CHIPS / COLOUR ============================ */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.chips-label { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 13px 0 9px;
  border-radius: 999px; border: 1px solid var(--line-2); font-size: .82rem; transition: border-color .25s, background .25s;
}
.chip:hover { border-color: var(--ink-dim); }
.chip.active { border-color: var(--gold); background: rgba(214,173,94,.1); }
.chip .s-flag { width: 20px; height: 14px; border-radius: 2px; }
.colour { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-dim); }
.colour b { color: var(--ink); font-weight: 600; }
.swatch { width: 16px; height: 16px; border-radius: 50%; background: #0b0b0c; border: 1px solid #454b5e; outline: 1px solid var(--gold); outline-offset: 3px; }
.builder-panel .btn-row .btn { align-self: auto; }

/* ============================ PRODUCT VIEW EXTRAS ======================= */
.pm-note { position: absolute; top: 20px; left: 22px; font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faint); }
.pm-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pm-thumb {
  width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 4px 6px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--well); transition: border-color .25s;
}
.pm-thumb:hover { border-color: var(--ink-faint); }
.pm-thumb.active { border-color: var(--gold); }
.pm-thumb-art { width: 100%; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; border-radius: 7px; }
.pm-thumb .photo-garment { width: 74%; animation: none; }
.pm-thumb-label { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); white-space: nowrap; }
.pm-thumb.active .pm-thumb-label { color: var(--ink); }
.pm-country { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-right: 48px; }
.pm-flag { width: 30px; height: 20px; border-radius: 3px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.link-btn { font-size: .76rem; color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.link-btn:hover { color: var(--gold-hi); }
.pm-country .link-btn { margin-left: auto; }
.pm-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-top: -8px; }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.field-row .field-label { margin-bottom: 0; }
.pm-buy { display: flex; align-items: center; gap: 16px; }
.pm-buy-price { display: none; }
.pm-assure {
  list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px;
  font-size: .84rem; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.015);
}
.pm-assure li { display: flex; gap: 10px; }
.a-ico { flex: none; width: 14px; text-align: center; color: var(--gold); }

/* size guide + fabric facts */
details > div { padding: 0 40px 22px 0; color: var(--ink-dim); }
details > div p { padding: 0 0 8px; }
.size-table-wrap { overflow-x: auto; margin-bottom: 12px; }
.size-table { border-collapse: collapse; font-size: .85rem; min-width: 100%; }
.size-table th, .size-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.size-table thead th { color: var(--ink-dim); font-weight: 600; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.facts { display: grid; gap: 8px; margin-bottom: 12px; font-size: .88rem; }
.facts div { display: flex; gap: 12px; }
.facts dt { min-width: 110px; color: var(--ink-faint); }
.facts dd { color: var(--ink); }

/* ============================ ANIMATIONS ================================ */
@keyframes rise    { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { to { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes swap    { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes bump    { 40% { transform: scale(1.35); } }
@keyframes shake   { 20%,60% { transform: translateX(-5px); } 40%,80% { transform: translateX(5px); } }
@keyframes draw    { to { stroke-dashoffset: 0; } }
@keyframes glint   { 0% { stroke-dashoffset: 100; opacity: 0; } 6%, 88% { opacity: .95; } 100% { stroke-dashoffset: 0; opacity: 0; } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================ RESPONSIVE ================================ */
@media (max-width: 1100px) {
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .values-list { grid-template-columns: repeat(2, 1fr); }
  .values-list li:nth-child(3) { padding-left: 0; border-left: none; }
  .values-list li { padding-bottom: 28px; }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav-center { display: none; }
  .burger { display: flex; }
  .builder-grid { grid-template-columns: 1fr; }
  .builder-stage { max-width: 520px; margin-inline: auto; width: 100%; }
  .faq-grid { grid-template-columns: 1fr; }
  .join-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer .f-brand { grid-column: 1 / -1; }
  .pm { grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; align-content: start; left: 0; top: 0; width: 100vw; height: 100svh; max-height: 100svh; border-radius: 0; border: none; transform: translateY(24px); }
  .pm.open { transform: none; }
  .pm-stage { border-right: none; border-bottom: 1px solid var(--line); min-height: auto; padding-top: 64px; }
  .pm-art .photo-garment.back, .pm-art .photo-garment.front { max-width: 260px; }
  .curated-grid { grid-template-columns: minmax(0, 1fr); }
  .tile { flex-direction: row; }
  .tile-art { aspect-ratio: auto; width: 44%; min-height: 160px; flex: none; }
  .tile-copy { justify-content: center; }
  .tile-flags { grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 14px; }
  /* phones: price + Add to bag stay pinned to the bottom while you scroll the product */
  .pm-buy {
    position: sticky; bottom: 0; z-index: 4;
    margin-inline: calc(-1 * clamp(28px, 4vw, 52px));
    padding: 12px clamp(28px, 4vw, 52px) calc(12px + env(safe-area-inset-bottom));
    background: rgba(10,24,56,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line-2);
  }
  .pm-buy-price { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; color: var(--gold); }
  .pm-buy .btn { flex: 1; width: auto; }
  .pm-thumb { width: 64px; }
  .pm-zoom { right: 68px; }
}
@media (max-width: 680px) {
  :root { --header-h: 96px; }
  :root.no-announce { --header-h: 62px; }
  .announce { font-size: .62rem; letter-spacing: .14em; gap: 10px; }
  .announce i:nth-of-type(2), .announce span:nth-of-type(3) { display: none; }
  .hero-title { font-size: clamp(1.7rem, 8.4vw, 3rem); }
  .map-stage { margin-top: 18px; }
  .map-hint { font-size: .66rem; letter-spacing: .12em; }
  .brand-word { font-size: 1.05rem; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-meta { flex-direction: column; gap: 4px; }
  .card-meta h3 { font-size: .86rem; }
  .map-stage svg#world-map { max-height: 40svh; }
  .btn-row { flex-direction: column; width: 100%; }
  .btn-row .btn { width: 100%; }
  .values-list { grid-template-columns: 1fr; }
  .values-list li, .values-list li + li { padding: 22px 0; border-left: none; }
  .values-list li + li { border-top: 1px solid var(--line); }
  .story-cols { grid-template-columns: 1fr; gap: 18px; }
  .story-words span + span::before { margin-right: 14px; }
  .story-words { gap: 10px 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .country-search input { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .card, .hero-copy > *, .map-stage { opacity: 1 !important; transform: none !important; }
  #graticule { opacity: 1 !important; }
  #borders.intro path.flagged { fill-opacity: 1; }
  #world-map .grat-eq { stroke-dashoffset: 0; }
  #world-map .grat-glint { display: none; }
}
