/* =========================================================
   ATLASSXPORT — style.css
   Palette + type scale are centralized here as CSS variables.
   ========================================================= */
:root {
  --cream: #f6f0e1;
  --cream-dim: #ece2ca;
  --black: #14100d;
  --black-soft: rgba(20, 16, 13, 0.72);

  --accent: #c81e3e;       /* brand red — nav, buttons, focus, numerals */
  --accent-dark: #841531;
  --success: #145c39;      /* form confirmation message */

  --line: rgba(20, 16, 13, 0.14);
  --line-on-dark: rgba(246, 240, 225, 0.22);
  --radius: 14px;
  --nav-h: 76px;
  --font: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}
body {
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: var(--cream);
  color: var(--black);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body > main { flex: 1; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--black);
  color: var(--cream);
  padding: .75rem 1.25rem;
  border-radius: 8px;
  z-index: 300;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 1rem; }

.wrap {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- nav (deliberately quiet) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 240, 225, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(20, 16, 13, .06); }
.site-header.is-hidden { transform: translateY(-100%); }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
}
.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
  text-transform: uppercase;
}
.brand img { width: 34px; height: 30px; object-fit: contain; }

.nav-links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .4rem .1rem;
  border-bottom: 1px solid transparent;
  opacity: .8;
}
.nav-links a[aria-current="page"] { opacity: 1; border-color: var(--accent); }
.nav-links a:hover { opacity: 1; border-color: var(--black); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: .4rem clamp(1.25rem, 4vw, 3.5rem) 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(20, 16, 13, .1);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease), visibility 0s linear .25s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a,
  .nav-links a[aria-current="page"],
  .nav-links a:hover {
    display: block;
    padding: 1.05rem 0;
    font-size: 1.05rem;
    border: 0;
    opacity: 1;
  }
  .nav-links a[aria-current="page"] { color: var(--accent); }
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  margin-top: 4rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
}
.site-footer a { text-decoration: none; opacity: .8; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.foot-brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.foot-brand img { width: 25px; height: 22px; object-fit: contain; }
.foot-links { display: flex; gap: 1.25rem; }

/* ---------- shared: oversized editorial type ---------- */
.mega {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: .84;
  margin: 0;
}
.photo-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(.5rem, 1.6vw, 1.1rem);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .3);
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.eyebrow {
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* product photos ease in from a hair smaller */
.showcase-card.reveal .photo-card { transform: scale(.97); }
.showcase-card.reveal.is-visible .photo-card { transform: none; }
.showcase-card.reveal.is-visible:hover .photo-card,
.showcase-card.reveal.is-visible:focus-visible .photo-card { transform: scale(1.05) translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* =========================================================
   HOME HERO
   ========================================================= */
.home-hero {
  position: relative;
  background: var(--cream);
  color: var(--black);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
  padding: 0 1.25rem 3rem;
}
/* Product photos sit on white; multiply + soft edges melt them into the cream page. */
.hero-rotator {
  position: relative;
  width: min(100%, 880px);
  height: clamp(270px, 50svh, 470px);
}
.hero-rotator img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 60%, transparent 100%);
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero-rotator img.is-active { opacity: 1; animation: hero-float 6s ease-in-out infinite; }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.home-hero .hero-copy {
  position: relative;
  z-index: 2;
}
.home-hero .eyebrow { color: var(--black-soft); display: block; margin-bottom: .6rem; }
.home-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.01em;
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}
.scroll-cue {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: bob 2.4s ease-in-out infinite;
  transition: border-color .3s var(--ease);
}
.scroll-cue:hover { border-color: var(--black); }
.scroll-cue svg { width: 18px; height: 18px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(40px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
  .hero-rotator img { transition: none; }
}

/* =========================================================
   HOME / PRODUCT SHOWCASE GRID
   ========================================================= */
.showcase {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.showcase > .showcase-card { grid-column: span 2; }
.showcase > .span-half { grid-column: span 3; }
.showcase > .span-full { grid-column: 1 / -1; }
.showcase-card {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 48vh;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  outline-offset: -4px;
}
.showcase .showcase-card--flagship {
  grid-column: 1 / -1;
  min-height: 80vh;
}
.showcase .showcase-card--flagship .photo-card { width: min(34%, 320px); aspect-ratio: 4 / 5; }
.showcase .showcase-card--flagship .card-name { font-size: clamp(1.4rem, 3vw, 2.1rem); }
.showcase-card .photo-card {
  width: min(58%, 280px);
  aspect-ratio: 1 / 1;
  margin: auto auto 0;
  transition: transform .5s var(--ease);
}
.showcase-card:hover .photo-card,
.showcase-card:focus-visible .photo-card { transform: scale(1.05) translateY(-6px); }
.showcase-card .card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}
.showcase-card .card-name {
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.showcase-card .card-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .9;
}
.showcase-card .card-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.showcase-card:hover .card-arrow svg { transform: translateX(4px); }

@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase > .showcase-card, .showcase > .span-half, .showcase > .span-full { grid-column: auto; }
  .showcase-card { min-height: 56vh; }
  .showcase .showcase-card--flagship { min-height: 70vh; }
  .showcase .showcase-card--flagship .photo-card { width: min(62%, 300px); aspect-ratio: 1 / 1; }
}

/* =========================================================
   PRODUCT TEMPLATE PAGE
   ========================================================= */
.product-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  gap: clamp(1.25rem, 3vh, 1.75rem);
  padding: calc(var(--nav-h) + 2rem) 1.25rem 3rem;
}
.product-hero .eyebrow { opacity: .85; }
.product-hero .photo-card {
  width: min(46vw, 340px);
  aspect-ratio: 4 / 5;
  animation: rise .9s var(--ease) both;
}
.product-hero .product-name {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.product-hero .tagline {
  font-size: clamp(.85rem, 1.6vw, 1rem);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  max-width: 34ch;
  opacity: .92;
}
.product-desc {
  max-width: 58ch;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  text-align: center;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  color: var(--black-soft);
}

.product-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: clamp(2rem, 5vw, 3.5rem);
}
.product-stats div { background: var(--cream); padding: 1.5rem; }
.product-stats dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  color: var(--tint, var(--accent));
  margin-bottom: .4rem;
}
.product-stats dd { font-weight: 700; font-size: 1.05rem; }

.cta-row {
  display: flex;
  justify-content: center;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--black);
  color: var(--cream);
  text-decoration: none;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.cta-btn:hover { background: var(--tint, var(--accent)); transform: translateY(-2px); }
.cta-btn svg { width: 16px; height: 16px; }

.more-products { padding-bottom: clamp(3rem, 6vw, 5rem); }
.section-label {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tint, var(--accent));
  margin-bottom: .5rem;
  display: block;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.more-grid .showcase-card { min-height: 320px; border-radius: var(--radius); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--tint, var(--accent));
  padding-bottom: 2px;
  font-size: .9rem;
}

.home-story { text-align: center; }
.home-story .story-line { margin-top: 1.25rem; max-width: 40ch; }
.home-story .back-link { margin-top: 1.4rem; }
.home-intro {
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(.5rem, 2vw, 1.5rem);
}
.home-intro .home-story { width: 100%; }
.home-story-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-top: .75rem;
}

/* =========================================================
   GENERIC PAGE HERO / STRIPES (about, quality, contact)
   ========================================================= */
.page-hero {
  padding: calc(var(--nav-h) + 3rem) 0 1rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
  line-height: .95;
}
.page-hero p {
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 40ch;
  margin-inline: auto;
  color: var(--black-soft);
}

.stripe { padding-block: clamp(3rem, 7vw, 5rem); }
.stripe + .stripe { border-top: 1px solid var(--line); }

/* ---------- longer copy blocks: comfortable, compact reading width ---------- */
/* ---------- about: editorial intro ---------- */
.ab-hero { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.ab-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.035em;
  line-height: .98;
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
}
.ab-title span { color: var(--accent); }
.ab-lead {
  margin-top: clamp(1rem, 2vw, 1.4rem);
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: var(--black-soft);
}
.ab-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(.9rem, 2vw, 1.4rem);
  margin-top: clamp(1.6rem, 3.5vw, 2.4rem);
}
.ab-card {
  grid-column: span 2;
  position: relative;
  padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1.1rem, 2vw, 1.5rem) clamp(1.2rem, 2vw, 1.6rem) clamp(1.3rem, 2.2vw, 1.75rem);
  border-radius: 20px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s var(--ease);
}
.ab-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--c);
}
.ab-card--wide { grid-column: span 2; }
.ab-card.is-visible:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 16, 13, .09); background: #fff; }
.ab-num {
  display: block;
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--c);
}
.ab-card h2 {
  margin-top: .55rem;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ab-card p { margin-top: .55rem; color: var(--black-soft); line-height: 1.55; font-size: .92rem; }
.ab-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.ab-chip {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--chip);
  padding: .4rem .7rem;
  border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.ab-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20, 16, 13, .18); }

.ab-quote {
  margin-top: clamp(1rem, 2vw, 1.4rem);
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.3rem, 3vw, 2.2rem);
  border-radius: 22px;
  background: var(--black);
  color: var(--cream);
}
.ab-quote-lead {
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .7rem;
  opacity: .7;
  margin-bottom: .6rem;
}
.ab-quote-line {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: 1.08;
  font-size: clamp(1.3rem, 3.2vw, 2.3rem);
  opacity: .28;
  transform: translateX(-12px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), color .9s var(--ease);
  transition-delay: calc(var(--i) * 260ms + 250ms);
}
.ab-quote.is-visible .ab-quote-line { opacity: 1; transform: none; }
.ab-quote.is-visible .ab-quote-line:nth-of-type(3) { color: #f4b23a; }
.ab-quote.is-visible .ab-quote-line:nth-of-type(4) { color: #f27b6b; }
.ab-quote.is-visible .ab-quote-line:nth-of-type(5) { color: #7fd0a2; }

@media (max-width: 860px) {
  .ab-grid { grid-template-columns: 1fr; }
  .ab-card, .ab-card--wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-quote-line { opacity: 1; transform: none; }
}
.journey-section .story-line { max-width: 62ch; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6; }

/* ---------- about: visual journey ---------- */
.journey {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem 0;
  text-align: center;
}
.journey-step {
  font-weight: 800;
  font-size: clamp(1.1rem, 3vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: -.01em;
  padding-inline: .5rem;
}
.journey-arrow {
  width: clamp(28px, 4vw, 44px);
  height: 20px;
  opacity: .45;
  margin-inline: .25rem;
}
@media (max-width: 640px) {
  .journey { flex-direction: column; }
  .journey-arrow { width: 20px; height: 28px; transform: rotate(90deg); }
}

.story-line {
  max-width: 46ch;
  margin: 1.5rem auto 0;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  text-align: center;
  color: var(--black-soft);
}
.story-line strong { color: var(--black); }
.final-line {
  text-align: center;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .95rem;
  margin-top: 1rem;
}

/* ---------- about: markets map ---------- */
.markets-section, .journey-section { text-align: center; }
.markets-heading {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  margin-top: .5rem;
}
.markets-map {
  --sea: var(--cream);
  position: relative;
  max-width: 1000px;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
}
.markets-svg { width: 100%; height: auto; display: block; overflow: hidden; }
@media (max-width: 720px) {
  .flag-label { font-size: 12px; stroke-width: 3px; }
  .markets-map { width: 100vw; margin-left: calc(50% - 50vw); }
}
.route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 4 5;
  animation: route-flow 2.2s linear infinite;
}
.route--fr { stroke: #e8720c; }
@keyframes route-flow { to { stroke-dashoffset: -18; } }
.leader { stroke: var(--black); stroke-width: 1.1; opacity: .7; }
.geo-dot { fill: #fff; stroke: var(--black); stroke-width: 1.2; }

.market-flag { --pin: 200, 30, 62; cursor: pointer; outline: none; }
.market-flag--fr { --pin: 0, 85, 164; }
.market-flag--ma { --pin: 193, 39, 45; }
.flag-inner {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.market-flag:hover .flag-inner,
.market-flag:focus-visible .flag-inner,
.market-flag[aria-expanded="true"] .flag-inner { transform: scale(1.22); }
.flag-ring { fill: none; stroke: #fff; stroke-width: 2.6; }
.flag-edge { fill: none; stroke: rgba(20, 16, 13, .35); stroke-width: 1; }
.market-flag:focus-visible .flag-ring { stroke: var(--accent); stroke-width: 3.4; }
.flag-ping {
  fill: none;
  stroke: rgb(var(--pin));
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: flag-ping 2.6s ease-out infinite;
}
@keyframes flag-ping {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(2); opacity: 0; }
}
.flag-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  fill: var(--black);
  stroke: var(--sea);
  stroke-width: 3.2px;
  paint-order: stroke;
  pointer-events: none;
}

.market-card {
  position: absolute;
  z-index: 3;
  background: #fff;
  border-radius: 10px;
  padding: .8rem 1.1rem;
  box-shadow: 0 16px 32px rgba(20, 16, 13, .22);
  min-width: 170px;
  max-width: 230px;
  text-align: left;
  transform: translate(-50%, calc(-100% - 26px));
  pointer-events: none;
}
.market-card strong {
  display: block;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .2rem;
}
.market-card span { font-size: .85rem; color: var(--black-soft); }
.market-card[hidden] { display: none; }

/* ---------- quality: interactive process ---------- */
.q-stepper {
  display: grid;
  grid-template-columns: minmax(230px, 4fr) 8fr;
  gap: clamp(1.25rem, 3.5vw, 3rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
  --stage: #145c39;
}
.q-tabs { display: flex; flex-direction: column; gap: .35rem; }
.q-tab {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 1.1rem;
  text-align: left;
  padding: 1.1rem 1.25rem 1.3rem;
  background: none;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  color: var(--black);
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.q-tab:hover { background: rgba(20, 16, 13, .05); transform: translateX(4px); }
.q-tab.is-active { background: rgba(20, 16, 13, .07); }
.q-num {
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: rgba(20, 16, 13, .22);
  transition: color .35s var(--ease);
}
.q-tab.is-active .q-num { color: var(--stage); }
.q-name {
  font-weight: 800;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.q-bar {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: .55rem;
  height: 3px;
  border-radius: 3px;
  background: transparent;
  overflow: hidden;
}
.q-tab.is-active .q-bar { background: rgba(20, 16, 13, .1); }
.q-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--stage);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.q-tab.is-active .q-bar i { transform: scaleX(1); }
.q-stepper.is-playing .q-tab.is-active .q-bar i {
  transform: scaleX(0);
  animation: q-fill 4s linear forwards;
}
@keyframes q-fill { to { transform: scaleX(1); } }
.q-stepper.is-held .q-tab.is-active .q-bar i { animation-play-state: paused; }

.q-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(420px, 52vw, 540px);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border-radius: 28px;
  background: var(--stage);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: background .7s var(--ease);
}
.q-ghost {
  position: absolute;
  z-index: -1;
  right: -.05em;
  bottom: -.22em;
  font-weight: 800;
  font-size: clamp(11rem, 26vw, 20rem);
  line-height: 1;
  letter-spacing: -.06em;
  color: rgba(255, 255, 255, .09);
  pointer-events: none;
}
.q-scene {
  width: min(100%, 380px);
  height: auto;
  align-self: flex-end;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scene { opacity: 0; transition: opacity .3s var(--ease); }
.q-scene { position: relative; }
.scene:not(.is-active) { display: none; }
.scene.is-active { opacity: 1; }
.scene .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.scene.is-active .draw { animation: q-draw 1.1s var(--ease) forwards; }
.scene.is-active .draw:nth-child(2) { animation-delay: .08s; }
.scene.is-active .draw:nth-child(3) { animation-delay: .16s; }
.scene.is-active .draw:nth-child(4) { animation-delay: .24s; }
.scene.is-active .draw:nth-child(5) { animation-delay: .32s; }
.scene.is-active .draw:nth-child(6) { animation-delay: .4s; }
.scene.is-active .draw:nth-child(7) { animation-delay: .48s; }
.scene.is-active .route-dash { animation: q-draw 1.4s var(--ease) .3s forwards; }
@keyframes q-draw { to { stroke-dashoffset: 0; } }
.sun { transform-box: fill-box; transform-origin: center; animation: q-spin 24s linear infinite; }
@keyframes q-spin { to { transform: rotate(360deg); } }

.q-copy { max-width: 46ch; }
.q-copy.is-swapping > * { animation: q-in .6s var(--ease) both; }
.q-copy.is-swapping > *:nth-child(2) { animation-delay: .07s; }
.q-copy.is-swapping > *:nth-child(3) { animation-delay: .14s; }
@keyframes q-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.q-title {
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.q-text { margin-top: .9rem; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.55; color: rgba(255, 255, 255, .92); }
.q-list { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.q-list li {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .5rem .85rem;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
}

.q-cta { text-align: center; padding-block: clamp(2.5rem, 6vw, 4.5rem) 1rem; }
.q-cta-line {
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .9rem;
  margin-bottom: 1.4rem;
}

@media (max-width: 860px) {
  .q-stepper { grid-template-columns: 1fr; }
  .q-tabs {
    flex-direction: row;
    gap: .4rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .25rem;
  }
  .q-tab { flex: 0 0 auto; grid-template-columns: auto; row-gap: .25rem; scroll-snap-align: start; padding: .8rem 1.1rem 1.1rem; }
  .q-tab:hover { transform: none; }
  .q-num { font-size: 1.6rem; }
  .q-name { font-size: .85rem; }
  .q-scene { align-self: center; width: min(78%, 300px); }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info dt {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  color: var(--accent);
  margin-top: 1.5rem;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: .3rem 0 0; font-size: 1.25rem; font-weight: 700; }
.contact-info dd a { text-decoration: none; }
.contact-info dd a:hover { text-decoration: underline; }

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 700; font-size: .85rem; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: .8rem .9rem;
  font: inherit;
  background: #fff;
  color: var(--black);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field textarea { resize: vertical; min-height: 110px; }

.submit-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.submit-btn:hover { background: var(--accent-dark); }

.form-note {
  margin-top: 1rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--success);
}
.form-note[hidden] { display: none; }

/* ---------- keep in touch / card preview ---------- */
.keep-touch {
  text-align: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.card-preview {
  margin: 2rem auto 0;
  max-width: 380px;
}
.card-preview svg { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 20px 40px rgba(20, 16, 13, .18); }
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.75rem;
  background: var(--black);
  color: var(--cream);
  border: none;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.download-btn:hover { background: var(--accent); }
.download-btn svg { width: 16px; height: 16px; }

/* =========================================================
   BUSINESS CARD PAGE
   ========================================================= */
.card-page { padding: calc(var(--nav-h) + 2.5rem) 0 4rem; }
.card-page .page-hero { padding-top: 0; }
.card-stage {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  justify-content: center;
  margin-top: 2.5rem;
}
.card-face {
  width: min(90vw, 400px);
}
.card-face svg { width: 100%; height: auto; box-shadow: 0 24px 50px rgba(20, 16, 13, .2); border-radius: 6px; }
.card-face figcaption {
  margin-top: .75rem;
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--black-soft);
}
.card-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.5rem;
}

@media print {
  @page { size: 90mm 50mm; margin: 0; }
  html, body { background: #14100d; margin: 0; }
  .site-header, .site-footer, .card-page .page-hero, .card-actions, .skip-link, .scroll-progress { display: none !important; }
  .card-page { padding: 0; }
  .card-page .wrap { padding: 0; max-width: none; }
  .card-stage { display: block; gap: 0; margin: 0; }
  .card-face { width: 90mm; height: 50mm; margin: 0; break-after: page; page-break-after: always; }
  .card-face:last-child { break-after: auto; page-break-after: auto; }
  .card-face svg { width: 90mm; height: 50mm; box-shadow: none; border-radius: 0; }
  .card-face figcaption { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
