/* ==========================================================================
   MILLOZ — "Bold" alternate design direction (sample)
   Inspired by the Kataka Food Fest layout language: chunky rounded cards,
   marquee ticker, tilted photo cards, sticker badges, accordion FAQ —
   rebuilt entirely in the Milloz brand palette.
   Self-contained alternate theme. Pairs with the shared assets/js/main.js.
   ========================================================================== */

:root {
  /* Brand */
  --brown:      #824820;
  --brown-deep: #4E2A11;
  --brown-ink:  #2E1B0C;
  --green:      #A9B55F;
  --green-deep: #6F7C2E;
  --gold:       #E3A84B;
  --clay:       #C4703A;

  /* Surfaces */
  --cream:   #FDF6E9;
  --cream-2: #F6EAD4;
  --white:   #FFFFFF;
  --ink:     #2E1B0C;
  --ink-2:   #63513F;
  --muted:   #8B7561;
  --on-dark: #FBF4E8;   /* text that always sits on a dark ground */

  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-bg: rgba(253,246,233,.9);
  --wrap: 1180px;
  --r-sm: 14px;
  --r:    22px;
  --r-lg: 34px;
  --shadow: 0 3px 0 rgba(46,27,12,.14), 0 16px 34px rgba(46,27,12,.10);
  --shadow-hard: 0 6px 0 var(--brown-ink);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.06rem);
  line-height: 1.68;
  color: var(--ink-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.7vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.7rem); }
p { margin: 0 0 1rem; }
::selection { background: var(--gold); color: var(--brown-ink); }
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.center { text-align: center; }
.mx { margin-inline: auto; }

/* ---------- Pill label ---------- */
.tag {
  display: inline-block; padding: .4rem 1rem; border-radius: 100px;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  background: var(--gold); color: var(--brown-ink); margin-bottom: 1.1rem;
}
.tag.green { background: var(--green); }
.tag.clay  { background: var(--clay); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: .96rem;
  padding: .95rem 1.8rem; border-radius: 100px; border: 2px solid var(--brown-ink);
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  background: var(--white); color: var(--ink);
  box-shadow: 0 4px 0 var(--brown-ink);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--brown-ink); color: var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--brown-ink); }
.btn-primary { background: var(--brown); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-green { background: var(--green); color: var(--brown-ink); }
.btn-gold  { background: var(--gold); color: var(--brown-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; padding: .9rem 0; transition: background .3s var(--ease); }
.site-header.is-stuck { background: var(--header-bg); backdrop-filter: blur(14px); box-shadow: 0 2px 24px rgba(46,27,12,.08); }
/* Original width and layout. The only change from the first version is more
   horizontal padding, so the logo and the CTA aren't flush against the pill's
   rounded ends. */
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--white); border: 2px solid var(--brown-ink); border-radius: 100px;
  padding: .55rem 1.15rem .55rem 2rem; box-shadow: 0 4px 0 var(--brown-ink);
}
.site-brand img { height: 34px; width: auto; }
.main-nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .5rem .9rem; border-radius: 100px;
  font-size: .92rem; font-weight: 600; color: var(--ink);
  transition: background .2s var(--ease);
}
.main-nav a:hover { background: var(--cream-2); }
/* Gold pill stays light in both themes, so its label is pinned dark. */
.main-nav .is-current > a { background: var(--gold); color: var(--brown-ink); }
/* CTA duplicated inside the menu — shown only in the mobile panel. */
.nav-cta { display: none; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 2px solid var(--brown-ink);
  background: var(--gold); border-radius: 50%; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0;
}
.nav-toggle span { width: 17px; height: 2.4px; background: var(--brown-ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem);
  background:
    radial-gradient(1000px 620px at 80% -10%, rgba(227,168,75,.42), transparent 62%),
    radial-gradient(760px 500px at 8% 110%, rgba(169,181,95,.40), transparent 60%),
    var(--cream);
}
.hero h1 { max-width: 15ch; margin-inline: auto; }
/* z-index:0 makes .hl its own stacking context, so the -1 highlight sits
   behind the text but still above the hero's background layers. */
.hero h1 .hl { position: relative; z-index: 0; display: inline-block; color: var(--brown); }
.hero h1 .hl::after {
  content: ''; position: absolute; left: -1.5%; right: 0; bottom: .06em; height: .26em;
  background: var(--gold); border-radius: 100px; z-index: -1;
}
.hero-lede { font-size: clamp(1.05rem, .98rem + .4vw, 1.3rem); max-width: 58ch; margin: 0 auto 2rem; color: var(--ink-2); }
.hero-note { font-size: .84rem; color: var(--muted); margin-top: 1.4rem; }

/* Floating sticker doodles */
.sticker { position: absolute; pointer-events: none; opacity: .95; animation: bob 6s ease-in-out infinite; }
.sticker svg { width: 100%; height: auto; }
.s1 { width: 74px; top: 14%; left: 5%;  transform: rotate(-16deg); }
.s2 { width: 58px; top: 24%; right: 8%; transform: rotate(20deg); animation-delay: -2s; }
.s3 { width: 64px; bottom: 16%; left: 11%; transform: rotate(12deg); animation-delay: -4s; }
.s4 { width: 50px; bottom: 24%; right: 6%; transform: rotate(-24deg); animation-delay: -1s; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -13px; } }

/* ---------- Marquee ticker ---------- */
.marquee {
  background: var(--brown); border-block: 3px solid var(--brown-ink);
  overflow: hidden; padding: .85rem 0; display: flex;
}
.marquee-track { display: flex; flex-shrink: 0; gap: 0; animation: slide 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(.95rem, .9rem + .3vw, 1.25rem);
  letter-spacing: .04em; text-transform: uppercase; color: var(--on-dark);
  white-space: nowrap; padding-inline: 1.6rem; display: flex; align-items: center; gap: 1.6rem;
}
.marquee-track span::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
@keyframes slide { to { transform: translateX(-100%); } }

/* ---------- Tilted photo card ---------- */
.tilt-card { position: relative; }
.tilt-card img {
  width: 100%; border-radius: var(--r-lg); border: 3px solid var(--brown-ink);
  box-shadow: 10px 12px 0 var(--green); aspect-ratio: 4/5; object-fit: cover;
  transform: rotate(-2.4deg); transition: transform .4s var(--ease);
}
.tilt-card:hover img { transform: rotate(0deg) scale(1.01); }
.badge-sticker {
  position: absolute; right: -14px; bottom: 26px; transform: rotate(-7deg);
  background: var(--gold); border: 2.5px solid var(--brown-ink); border-radius: 100px;
  padding: .6rem 1.3rem; font-family: var(--font-display); font-weight: 800; font-size: 1.02rem;
  color: var(--brown-ink); box-shadow: 0 4px 0 var(--brown-ink); white-space: nowrap;
}

/* ---------- Layout helpers ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.two--copy-first { grid-template-columns: 1.05fr .95fr; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

/* ---------- Chunky colour cards ---------- */
.chunk {
  border: 3px solid var(--brown-ink); border-radius: var(--r);
  padding: 1.6rem; box-shadow: 0 5px 0 var(--brown-ink);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.chunk:hover { transform: translateY(-5px); box-shadow: 0 10px 0 var(--brown-ink); }
.chunk h3 { font-size: 1.24rem; margin-bottom: .5rem; }
.chunk p  { margin: 0; font-size: .95rem; line-height: 1.6; }
.chunk-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(46,27,12,.13); border: 2px solid var(--brown-ink); margin-bottom: 1rem;
}
.chunk-icon svg { width: 21px; height: 21px; stroke: var(--brown-ink); }
/* c-gold and c-green stay light-surfaced in BOTH themes, so their text is
   pinned dark and must never follow the theme's ink token. */
.c-gold  { background: var(--gold); }
.c-green { background: var(--green); }
.c-gold, .c-gold h3, .c-gold p, .c-gold strong, .c-gold li,
.c-green, .c-green h3, .c-green p, .c-green strong, .c-green li { color: var(--brown-ink); }
.c-clay  { background: var(--clay); color: #FBEEE4; }
.c-clay h3, .c-clay p, .c-clay strong { color: #FBEEE4; }
.c-clay h3 { color: #fff; }
/* c-cream follows the theme surface, so its text must reset to the theme ink —
   otherwise it inherits light text from a dark parent section onto a white card. */
.c-cream { background: var(--white); color: var(--ink-2); }
.c-cream h3, .c-cream strong { color: var(--ink); }

/* ---------- Product cards ---------- */
.prod {
  background: var(--white); border: 3px solid var(--brown-ink); border-radius: var(--r);
  overflow: hidden; box-shadow: 0 5px 0 var(--brown-ink); display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.prod:hover { transform: translateY(-5px); box-shadow: 0 10px 0 var(--brown-ink); }
.prod-media { position: relative; background: var(--cream-2); overflow: hidden; }
.prod-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s var(--ease); }
.prod:hover .prod-media img { transform: scale(1.05); }
.prod-flag {
  position: absolute; top: 14px; left: 14px; background: var(--brown-ink); color: var(--on-dark);
  font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; padding: .38rem .85rem; border-radius: 100px;
}
.prod-flag.green { background: var(--green-deep); }
.prod-flag.gold  { background: var(--gold); color: var(--brown-ink); }
.prod-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.prod-body p { flex: 1; font-size: .95rem; }
.prod-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 1rem; }
.prod-meta li {
  list-style: none; font-size: .78rem; font-weight: 600; padding: .28rem .7rem;
  border-radius: 100px; background: var(--cream-2); border: 1.5px solid rgba(46,27,12,.16); color: var(--ink);
}

/* ---------- Numbered steps ---------- */
.step {
  background: var(--white); border: 3px solid var(--brown-ink); border-radius: var(--r);
  padding: 1.5rem; position: relative; box-shadow: 0 5px 0 var(--brown-ink);
}
.step-no {
  position: absolute; top: -18px; left: 18px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--brown-ink);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--brown-ink);
}
.step h4 { font-size: 1.1rem; margin: 1rem 0 .45rem; }
.step p { font-size: .92rem; margin: 0; line-height: 1.58; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--green); border-block: 3px solid var(--brown-ink); padding-block: clamp(2.2rem, 4vw, 3.2rem); }
.stats-band .grid4 { gap: 1rem; }
.stat { text-align: center; }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); color: var(--brown-ink); line-height: 1;
}
.stat span { font-size: .88rem; font-weight: 600; color: #4A5220; }

/* ---------- Accordion ---------- */
.acc { display: grid; gap: .8rem; max-width: 780px; margin-inline: auto; }
.acc details {
  background: var(--white); border: 3px solid var(--brown-ink); border-radius: var(--r-sm);
  box-shadow: 0 4px 0 var(--brown-ink); overflow: hidden; transition: background .2s var(--ease);
}
.acc details[open] { background: var(--gold); }
.acc summary {
  list-style: none; cursor: pointer; padding: 1.05rem 1.3rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: '+'; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--brown-ink); display: grid; place-items: center;
  font-size: 1.05rem; line-height: 1; font-weight: 700;
}
.acc details[open] summary { color: var(--brown-ink); }
.acc details[open] summary::after { content: '–'; }
/* Closed: body sits on the card surface, so it follows the theme ink.
   Open: the card turns gold, so the text pins dark. */
.acc .acc-body { padding: 0 1.3rem 1.2rem; font-size: .95rem; color: var(--ink); }
.acc details[open] .acc-body, .acc details[open] .acc-body p { color: var(--brown-ink); }
.acc .acc-body p { margin: 0; }

/* ---------- CTA ---------- */
.cta {
  background: var(--brown); border: 3px solid var(--brown-ink); border-radius: var(--r-lg);
  box-shadow: 0 6px 0 var(--brown-ink);
  padding: clamp(2.2rem, 5vw, 3.8rem); text-align: center; color: #F3E4D3;
}
.cta h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta p { max-width: 56ch; margin-inline: auto; margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown-ink); color: #B9A18C; padding: clamp(3rem, 5vw, 4.5rem) 0 1.6rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer img { height: 38px; width: auto; margin-bottom: 1rem; }
.site-footer h4 { font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #B9A18C; font-size: .93rem; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: 1.4rem; font-size: .84rem; color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .sticker, .marquee-track { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid3, .grid4 { grid-template-columns: repeat(2, 1fr); }
  .two, .two--copy-first { grid-template-columns: 1fr; }
  .tilt-card { max-width: 460px; margin-inline: auto; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-inner { padding-left: 1.1rem; }
  .main-nav {
    position: fixed; inset: 84px 1.25rem auto; background: var(--white);
    border: 3px solid var(--brown-ink); border-radius: var(--r); padding: .8rem;
    box-shadow: 0 6px 0 var(--brown-ink);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .26s var(--ease);
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: .15rem; }
  .main-nav a { padding: .8rem 1rem; font-size: 1rem; }
  .site-brand { margin-right: auto; }
  .header-actions { order: 2; }
  .nav-toggle { order: 3; }
  .nav-cta { display: block; margin-top: .5rem; }
  .main-nav .nav-cta a { text-align: center; }
  .header-cta { display: none; }
  .sticker { display: none; }
}
@media (max-width: 640px) {
  .grid3, .grid4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .badge-sticker { right: 50%; translate: 50% 0; bottom: -16px; }
}

/* ==========================================================================
   INNER PAGE COMPONENTS
   ========================================================================== */

/* ---------- Page hero ---------- */
.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 5.5vw, 4.5rem);
  /* No bottom rule: the hero sits on the same --cream as the page body, so a
     hard line would divide two identical surfaces. The first layer fades the
     ambient glow out to the body colour, giving a seamless fold-to-fold join. */
  background:
    linear-gradient(to bottom, transparent 48%, var(--cream) 96%),
    radial-gradient(820px 460px at 85% -20%, rgba(227,168,75,.40), transparent 62%),
    radial-gradient(620px 420px at 4% 96%, rgba(169,181,95,.30), transparent 66%),
    var(--cream);
}
.page-hero h1 { font-size: clamp(2.2rem, 1.5rem + 3.2vw, 4.2rem); max-width: 17ch; }
.page-hero .lede { font-size: clamp(1.02rem, .97rem + .34vw, 1.22rem); max-width: 62ch; margin-bottom: 0; }
.crumb { font-size: .84rem; font-weight: 600; color: var(--muted); margin-bottom: .9rem; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brown); }

/* ---------- Generic section head ---------- */
.head { max-width: 680px; margin-bottom: 2.8rem; }
.head.center { margin-inline: auto; text-align: center; }
.head p { font-size: 1.06rem; }

/* ---------- Feature list ---------- */
.flist { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.flist li { display: flex; gap: .9rem; margin: 0; }
.flist .fm {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; margin-top: 2px;
  background: var(--green); border: 2.5px solid var(--brown-ink);
  display: grid; place-items: center;
}
.flist .fm svg { width: 13px; height: 13px; stroke: var(--brown-ink); stroke-width: 3.4; }
.flist b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--ink); margin-bottom: .1rem; }
.flist span { font-size: .95rem; }

/* ---------- Pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.pills li {
  margin: 0; padding: .38rem .95rem; border-radius: 100px;
  background: var(--white); border: 2px solid var(--brown-ink);
  font-size: .85rem; font-weight: 600; color: var(--ink);
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto; border: 3px solid var(--brown-ink); border-radius: var(--r);
  background: var(--white); box-shadow: 0 5px 0 var(--brown-ink); -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .95rem; }
thead th {
  background: var(--brown); color: var(--on-dark); text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .95rem 1.1rem; white-space: nowrap;
}
tbody td { padding: .9rem 1.1rem; border-top: 2px solid var(--cream-2); vertical-align: top; }
tbody tr:nth-child(even) { background: var(--cream); }
tbody tr:hover { background: rgba(227,168,75,.20); }
tbody td:first-child { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
tbody td:nth-child(2) { color: var(--green-deep); font-weight: 600; }
.tnote { font-size: .86rem; color: var(--muted); margin-top: .9rem; font-style: italic; }

/* ---------- Prose (legal) ---------- */
.prose h2 { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.8rem); margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li::marker { color: var(--green-deep); }
.toc {
  background: var(--white); border: 3px solid var(--brown-ink); border-radius: var(--r);
  box-shadow: 0 5px 0 var(--brown-ink); padding: 1.5rem; margin-bottom: 2.6rem;
}
.toc h4 { font-size: 1.02rem; margin-bottom: .7rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 1.6rem; }
.toc li { font-size: .92rem; break-inside: avoid; margin-bottom: .3rem; }

/* ---------- Logo grid ---------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.logo-slot {
  aspect-ratio: 16/9; background: var(--white);
  border: 3px dashed rgba(46,27,12,.28); border-radius: var(--r-sm);
  display: grid; place-items: center; text-align: center; padding: 1rem;
  color: var(--muted); font-size: .84rem; font-weight: 600; transition: all .25s var(--ease);
}
.logo-slot:hover { border-style: solid; border-color: var(--brown-ink); box-shadow: 0 5px 0 var(--brown-ink); transform: translateY(-3px); }
.logo-slot img { max-height: 62%; width: auto; object-fit: contain; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: start; }
.info-card {
  background: var(--white); border: 3px solid var(--brown-ink); border-radius: var(--r);
  box-shadow: 0 5px 0 var(--brown-ink); padding: 1.6rem;
}
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: .9rem; margin: 0; align-items: flex-start; }
.info-list .ic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); border: 2.5px solid var(--brown-ink);
  display: grid; place-items: center;
}
.info-list .ic svg { width: 18px; height: 18px; stroke: var(--brown-ink); stroke-width: 2; }
.info-list b {
  display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .1rem;
}
.info-list a, .info-list span { color: var(--ink); font-size: .98rem; font-weight: 500; }
.info-list a:hover { color: var(--brown); }

/* ---------- Form ---------- */
.form-card {
  background: var(--white); border: 3px solid var(--brown-ink); border-radius: var(--r);
  box-shadow: 0 6px 0 var(--brown-ink); padding: clamp(1.4rem, 3vw, 2.2rem);
}
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 700; color: var(--ink); }
.field .req { color: var(--clay); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .97rem; color: var(--ink); width: 100%;
  padding: .78rem .9rem; border: 2.5px solid var(--brown-ink); border-radius: 12px;
  background: var(--cream); transition: box-shadow .18s var(--ease), background .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.field select {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E1B0C' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 15px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--white); box-shadow: 0 4px 0 var(--brown-ink);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field .err { font-size: .8rem; font-weight: 600; color: #9E3418; display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { background: #FDF0EB; border-color: #9E3418; }
.field.is-invalid .err { display: block; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); line-height: 1.5; margin-bottom: 1.1rem; }
.consent input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--green-deep); flex-shrink: 0; }
.consent.is-invalid { background: #FDF0EB; border: 2.5px solid #9E3418; border-radius: 12px; padding: .7rem .85rem; color: #9E3418; }
.hp { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }
.form-status { display: none; padding: .9rem 1.1rem; border-radius: 12px; font-size: .93rem; font-weight: 500; margin-bottom: 1rem; border: 2.5px solid; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(169,181,95,.28); color: #3F4A18; border-color: var(--green-deep); }
.form-status.bad { background: #FDF0EB; color: #9E3418; border-color: #9E3418; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

.map-embed { border: 3px solid var(--brown-ink); border-radius: var(--r); overflow: hidden; line-height: 0; box-shadow: 0 5px 0 var(--brown-ink); }
.map-embed iframe { width: 100%; height: 340px; border: 0; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .fgrid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .logos { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   DARK THEME
   Overrides tokens only. The hard borders stay near-black — they read as
   the signature outline because cards sit lighter than the page ground.
   ========================================================================== */
:root[data-theme="dark"] {
  --brown:      #A35E2A;
  --brown-deep: #0F0A06;
  --brown-ink:  #0A0705;      /* borders, offset shadows, text on gold/green */
  --green:      #A9B55F;
  --green-deep: #BFCB78;
  --gold:       #E3A84B;
  --clay:       #C4703A;

  --cream:   #1C1409;         /* page ground */
  --cream-2: #241A0F;         /* alternate section */
  --white:   #2E2318;         /* cards — lighter than ground so borders read */
  --ink:     #F3E7D6;
  --ink-2:   #C9B7A2;
  --muted:   #9C8B78;

  --header-bg: rgba(28,20,9,.90);
}

:root[data-theme="dark"] .hero {
  background:
    radial-gradient(1000px 620px at 80% -10%, rgba(227,168,75,.20), transparent 62%),
    radial-gradient(760px 500px at 8% 110%, rgba(169,181,95,.16), transparent 60%),
    var(--cream);
}
:root[data-theme="dark"] .page-hero {
  background:
    linear-gradient(to bottom, transparent 48%, var(--cream) 96%),
    radial-gradient(820px 460px at 85% -20%, rgba(227,168,75,.18), transparent 62%),
    radial-gradient(620px 420px at 4% 96%, rgba(169,181,95,.13), transparent 66%),
    var(--cream);
}
:root[data-theme="dark"] .marquee { background: #7A441E; }
:root[data-theme="dark"] .prod-flag { background: rgba(10,7,5,.94); color: var(--on-dark); border: 1.5px solid rgba(251,244,232,.38); }
:root[data-theme="dark"] .prod-flag.green { background: var(--green-deep); color: var(--brown-ink); border-color: transparent; }
:root[data-theme="dark"] .prod-flag.gold  { background: var(--gold); color: var(--brown-ink); border-color: transparent; }
:root[data-theme="dark"] .header-inner { background: var(--white); }
:root[data-theme="dark"] .main-nav { background: var(--white); }
:root[data-theme="dark"] .site-footer { background: #0F0A06; }
:root[data-theme="dark"] .cta { background: #241A0F; }
:root[data-theme="dark"] .stats-band { background: var(--green-deep); }
:root[data-theme="dark"] .stat span { color: #2E3A10; }
:root[data-theme="dark"] .logo-slot { border-color: rgba(243,231,214,.26); color: var(--muted); }
:root[data-theme="dark"] .logo-slot:hover { border-color: var(--brown-ink); }
:root[data-theme="dark"] .chunk-icon { background: rgba(243,231,214,.10); }
:root[data-theme="dark"] .chunk-icon svg { stroke: var(--ink); }
:root[data-theme="dark"] .c-gold .chunk-icon svg,
:root[data-theme="dark"] .c-green .chunk-icon svg { stroke: var(--brown-ink); }
:root[data-theme="dark"] .prod-meta li { background: rgba(243,231,214,.09); border-color: rgba(243,231,214,.18); color: var(--ink); }
:root[data-theme="dark"] .pills li { background: var(--white); color: var(--ink); border-color: rgba(243,231,214,.28); }
:root[data-theme="dark"] .info-list .ic svg,
:root[data-theme="dark"] .flist .fm svg { stroke: var(--brown-ink); }
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea { background-color: var(--cream); border-color: rgba(243,231,214,.30); color: var(--ink); }
:root[data-theme="dark"] .field input:focus,
:root[data-theme="dark"] .field select:focus,
:root[data-theme="dark"] .field textarea:focus { background-color: var(--cream-2); box-shadow: 0 4px 0 rgba(243,231,214,.30); }
:root[data-theme="dark"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3E7D6' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .form-status.ok  { background: rgba(169,181,95,.18); color: #CBD68A; border-color: #56612A; }
:root[data-theme="dark"] .form-status.bad { background: #2B1611; color: #F0A98F; border-color: #A8563A; }
:root[data-theme="dark"] .field.is-invalid input,
:root[data-theme="dark"] .field.is-invalid select,
:root[data-theme="dark"] .field.is-invalid textarea { background-color: #2B1611; border-color: #A8563A; }
:root[data-theme="dark"] .consent.is-invalid { background: #2B1611; border-color: #A8563A; color: #F0A98F; }
:root[data-theme="dark"] tbody tr:hover { background: rgba(227,168,75,.14); }
:root[data-theme="dark"] .map-embed iframe { filter: invert(.92) hue-rotate(180deg) saturate(.8); }
:root[data-theme="dark"] .site-brand img { content: url("../img/milloz-logo-footer.png"); }

/* ==========================================================================
   THEME TOGGLE
   ========================================================================== */
.theme-toggle {
  flex-shrink: 0; width: 42px; height: 42px; padding: 0;
  border: 2px solid var(--brown-ink); border-radius: 50%;
  background: var(--white); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 3px 0 var(--brown-ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s var(--ease);
}
.theme-toggle:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--brown-ink); background: var(--gold); color: var(--brown-ink); }
.theme-toggle:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--brown-ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.header-actions { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }

/* ==========================================================================
   STAT COUNTER ANIMATION
   ========================================================================== */
.stat b { font-variant-numeric: tabular-nums; }
.js .stat b.counted { animation: statPop .62s var(--ease); }
@keyframes statPop {
  0%   { transform: scale(.78) rotate(-4deg); }
  55%  { transform: scale(1.09) rotate(2deg); }
  100% { transform: scale(1) rotate(0); }
}
.js .stat.is-visible span { animation: statRise .5s var(--ease) both; animation-delay: .25s; }
@keyframes statRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.has-custom-cursor,
.has-custom-cursor body { cursor: url("../img/cursor-17.png") 8 8, auto; }
.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor summary,
.has-custom-cursor label,
.has-custom-cursor [role="button"] { cursor: url("../img/cursor-17.png") 8 8, pointer; }
.has-custom-cursor input[type="text"],
.has-custom-cursor input[type="email"],
.has-custom-cursor input[type="tel"],
.has-custom-cursor textarea { cursor: text; }

.cursor-ring {
  position: fixed; top: 0; left: 0; width: 23px; height: 23px;
  border: 1.5px solid var(--brown); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  opacity: 0; transform: translate3d(-100px,-100px,0);
  transition: opacity .25s var(--ease), width .22s var(--ease), height .22s var(--ease),
              border-color .22s var(--ease), background-color .22s var(--ease), margin .22s var(--ease);
  will-change: transform;
}
.cursor-ring.is-visible { opacity: .55; }
.cursor-ring.is-active {
  opacity: 1; width: 34px; height: 34px; margin: -5.5px 0 0 -5.5px;
  border-color: var(--gold); background: rgba(227,168,75,.22);
}
.cursor-ring.is-down { width: 18px; height: 18px; margin: 2.5px 0 0 2.5px; background: rgba(169,181,95,.28); }
@media (hover: none), (pointer: coarse) { .cursor-ring { display: none; } }

/* Product card actions — two buttons replace the old meta pills */
.prod-actions { margin-top: auto; }
.prod-actions .btn { flex: 1 1 auto; padding: .82rem 1rem; font-size: .9rem; }

/* ==========================================================================
   SPLIT PAGE HERO  +  ANIMATED BRAND MARK
   Fills the empty right-hand side of the About and Products heroes.
   The mark is the real extracted logo — animation is applied around it in
   SVG/CSS so the wordmark itself is never redrawn or distorted.
   ========================================================================== */
.page-hero--split .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}
.page-hero--split .page-hero-copy { min-width: 0; }
.page-hero-media { position: relative; justify-self: center; width: 100%; max-width: 400px; }

/* ---- Animated brand mark ---- */
.page-hero--split { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.brandmark { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.brandmark img {
  position: relative; z-index: 2; width: 60%; height: auto;
  animation: bmFloat 9s ease-in-out infinite;
}
.brandmark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.bm-ring { fill: none; stroke: var(--green); stroke-linecap: round; transform-origin: 50% 50%; }
.bm-ring-1 { stroke-width: 3; stroke-dasharray: 34 26; opacity: .9; animation: bmSpin 46s linear infinite; }
.bm-ring-2 { stroke-width: 2.5; stroke-dasharray: 8 22;  opacity: .6; stroke: var(--brown); animation: bmSpin 64s linear infinite reverse; }
.bm-ring-3 { stroke-width: 2;   stroke-dasharray: 3 18;  opacity: .5; stroke: var(--gold);  animation: bmSpin 88s linear infinite; }

.bm-grain { transform-origin: 50% 50%; }
.bm-grain ellipse { fill: var(--gold); opacity: .8; }
.bm-grain:nth-of-type(2) ellipse { fill: var(--green); }
.bm-grain:nth-of-type(3) ellipse { fill: var(--brown); opacity: .4; }
.bm-grain-1 { animation: bmSpin 34s linear infinite; }
.bm-grain-2 { animation: bmSpin 52s linear infinite reverse; }
.bm-grain-3 { animation: bmSpin 70s linear infinite; }

/* Soft halo so the mark reads on both themes */
.brandmark::before {
  content: ''; position: absolute; inset: 12%; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle, rgba(227,168,75,.30), transparent 70%);
  animation: bmPulse 7s ease-in-out infinite;
}
:root[data-theme="dark"] .brandmark::before { background: radial-gradient(circle, rgba(227,168,75,.14), transparent 68%); }

@keyframes bmSpin  { to { transform: rotate(360deg); } }
@keyframes bmFloat { 0%,100% { transform: translateY(0)   scale(1); }
                     50%     { transform: translateY(-9px) scale(1.015); } }
@keyframes bmPulse { 0%,100% { opacity: .85; transform: scale(1); }
                     50%     { opacity: 1;   transform: scale(1.05); } }

/* Motion is decorative only — hold everything still when asked. */
@media (prefers-reduced-motion: reduce) {
  .brandmark img, .bm-ring, .bm-grain, .brandmark::before { animation: none !important; }
}

@media (max-width: 900px) {
  .page-hero--split .wrap { grid-template-columns: 1fr; }
  .page-hero-media { max-width: 300px; margin-top: .5rem; }
}
@media (max-width: 560px) {
  .page-hero-media { max-width: 230px; }
}

/* Supporting paragraph inside a split hero — sits under the lede, a step down
   in weight so the hierarchy stays lede > support > buttons. */
.page-hero-copy .hero-note-lg {
  margin-top: 1.1rem; margin-bottom: 0;
  font-size: .98rem; line-height: 1.65; color: var(--ink-2); max-width: 54ch;
}

/* ==========================================================================
   SUPPLY-ROUTE GLOBE (business page)
   ========================================================================== */
.globe-wrap {
  position: relative; width: 100%; aspect-ratio: 1;
  display: grid; place-items: center;
}
.globe-wrap canvas {
  width: 100%; height: 100%; display: block;
  cursor: grab; border-radius: 50%;
  /* pan-y keeps vertical page scrolling working when a swipe starts on the
     globe; horizontal drags still rotate it. */
  touch-action: pan-y;
  outline-offset: 6px;
}
.globe-wrap canvas.is-dragging { cursor: grabbing; }
.has-custom-cursor .globe-wrap canvas { cursor: grab; }
.has-custom-cursor .globe-wrap canvas.is-dragging { cursor: grabbing; }

.globe-hint {
  position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); pointer-events: none; white-space: nowrap;
  opacity: .85; transition: opacity .3s var(--ease);
}
.globe-wrap canvas.is-dragging ~ .globe-hint { opacity: 0; }
.globe-wrap .badge-sticker { right: -6px; bottom: 14%; }

@media (max-width: 900px) {
  .globe-wrap .badge-sticker { right: 50%; translate: 50% 0; bottom: -14px; }
  .globe-hint { bottom: 8%; }
}

/* Generated 3D globe still (business hero). Breathes very gently so the
   section isn't completely static beside the animated elements elsewhere. */
.globe-render { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.globe-render img {
  width: 100%; height: auto; border-radius: 50%;
  animation: globeFloat 11s ease-in-out infinite;
  filter: drop-shadow(0 18px 34px rgba(46,27,12,.16));
}
:root[data-theme="dark"] .globe-render img { filter: drop-shadow(0 18px 34px rgba(0,0,0,.5)); }
.globe-render .badge-sticker { right: -6px; bottom: 12%; }
@keyframes globeFloat {
  0%,100% { transform: translateY(0)    scale(1); }
  50%     { transform: translateY(-10px) scale(1.012); }
}
@media (prefers-reduced-motion: reduce) { .globe-render img { animation: none; } }
@media (max-width: 900px) {
  .globe-render .badge-sticker { right: 50%; translate: 50% 0; bottom: -14px; }
}

/* Rotating globe video (business hero). The still doubles as the poster, so
   something on-brand is visible instantly and whenever the video is skipped. */
.globe-video { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.globe-video video,
.globe-video .globe-poster {
  grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%; display: block;
  filter: drop-shadow(0 18px 34px rgba(46,27,12,.16));
}
:root[data-theme="dark"] .globe-video video,
:root[data-theme="dark"] .globe-video .globe-poster { filter: drop-shadow(0 18px 34px rgba(0,0,0,.5)); }
.globe-video video { opacity: 0; transition: opacity .5s var(--ease); }
.globe-video video.is-ready { opacity: 1; }
.globe-video .badge-sticker { position: absolute; right: -6px; bottom: 12%; }
@media (max-width: 900px) {
  .globe-video .badge-sticker { right: 50%; translate: 50% 0; bottom: -14px; }
}

/* ==========================================================================
   MOBILE & TABLET REFINEMENTS
   ========================================================================== */

/* iOS zooms the page when a focused input is under 16px. Bump the controls to
   exactly 16px on touch-sized screens so focusing a field never zooms. */
@media (max-width: 820px) {
  .field input, .field select, .field textarea { font-size: 16px; }
  .field label { font-size: .9rem; }
}

/* Grey flash on tap looks broken next to the hard-shadow buttons. */
* { -webkit-tap-highlight-color: rgba(169,181,95,.28); }

/* Notched phones: keep content clear of the rounded corners in landscape. */
@supports (padding: max(0px)) {
  /* :not(.header-inner) matters — the header bar sets its own padding, and on
     a device with no inset these declarations resolve to 0px and would wipe it. */
  .wrap:not(.header-inner) {
    padding-left:  max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  /* Inset the header from the *outside* — setting margins on .wrap would
     override its `margin-inline: auto` and knock the bar off-centre. */
  .site-header {
    padding-left:  env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .site-footer { padding-bottom: max(1.6rem, env(safe-area-inset-bottom)); }
}

/* Comfortable minimum tap targets. */
@media (pointer: coarse) {
  .theme-toggle { width: 46px; height: 46px; }
  .nav-toggle   { width: 46px; height: 46px; }
  .btn          { min-height: 46px; }
  .main-nav a   { min-height: 46px; display: flex; align-items: center; }
  .site-footer a { display: inline-block; padding-block: .25rem; }
  .acc summary  { min-height: 52px; }
}

/* Tablet: two columns read better than three for the chunky cards. */
@media (min-width: 641px) and (max-width: 1000px) {
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .grid3 > *:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
}

/* Short landscape phones: reclaim vertical space. */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding-block: 1.75rem 2.25rem; }
  .page-hero, .page-hero--split { padding-block: 1.5rem; }
  .page-hero--split .wrap { grid-template-columns: 1.2fr .8fr; }
  .page-hero-media { max-width: 220px; }
  .main-nav { max-height: calc(100vh - 96px); overflow-y: auto; }
}

/* Very small phones. */
@media (max-width: 380px) {
  .wrap { width: min(100% - 1.6rem, var(--wrap)); }
  .header-inner { padding-left: .9rem; gap: .5rem; }
  .site-brand img { height: 28px; }
  .btn { padding: .85rem 1.15rem; font-size: .9rem; }
  .prod-actions { flex-direction: column; }
  .prod-actions .btn { width: 100%; }
  .badge-sticker { font-size: .88rem; padding: .5rem 1rem; }
}

/* Nothing may cause a sideways scroll. */
html, body { max-width: 100%; overflow-x: hidden; }
.marquee, .table-wrap, .logos { max-width: 100%; }

/* Tap-target and legibility fixes that shouldn't depend on pointer detection —
   some touch devices report a fine pointer, so `@media (pointer: coarse)`
   can't be the only safeguard. */
@media (max-width: 820px) {
  /* The bold footer uses bare divs (no .footer-col), so scope to the footer. */
  .site-footer a,
  .site-footer li > span { display: inline-block; padding-block: .45rem; }
  .site-footer li { margin-bottom: .15rem; }
  .footer-bottom nav { gap: 1.25rem; }
  .crumb a { display: inline-block; padding-block: .55rem; padding-right: .25rem; }
  .crumb { margin-bottom: .6rem; }
  /* Uppercase micro-labels get too small to read comfortably on a phone. */
  .tag { font-size: .78rem; padding: .45rem 1.05rem; }
  .globe-hint { font-size: .74rem; }
  .prod-flag { font-size: .78rem; }
}

@media (max-width: 820px) {
  /* Contact details are the most likely thing to be tapped on a phone —
     make the email/phone links a comfortable size. */
  .info-list a { display: inline-block; padding-block: .5rem; }
  .info-list li { align-items: center; }
  /* Consent row: bigger box, and its inline link gets its own tap area. */
  .consent { gap: .85rem; align-items: flex-start; }
  .consent input { width: 24px; height: 24px; margin-top: 0; }
  .consent a { display: inline-block; padding-block: .3rem; }
  /* Logo lockup keeps a full-height tap area even when the mark is small. */
  .site-brand { padding-block: .4rem; }
}

/* ==========================================================================
   HERO VIDEO (about page)
   The still sits underneath as a poster, so something on-brand is always
   visible — before the video loads, and whenever it's deliberately skipped.
   ========================================================================== */
.hero-video { position: relative; display: grid; }
.hero-video > img,
.hero-video > video {
  grid-area: 1 / 1;
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border: 3px solid var(--brown-ink); border-radius: var(--r-lg);
  box-shadow: 10px 12px 0 var(--green);
  transform: rotate(-2.4deg);
  transition: transform .4s var(--ease), opacity .6s var(--ease);
}
.hero-video:hover > img,
.hero-video:hover > video { transform: rotate(0deg) scale(1.01); }
.hero-video > video { opacity: 0; }
.hero-video > video.is-ready { opacity: 1; }
.hero-video > .badge-sticker { position: absolute; right: -14px; bottom: 26px; z-index: 2; }
@media (max-width: 640px) {
  .hero-video > .badge-sticker { right: 50%; translate: 50% 0; bottom: -16px; }
}

/* Portrait variant of the hero-video block, for the tall tilt-cards in body
   sections (the default block is 4:3 for the page heroes). */
.hero-video--tall > img,
.hero-video--tall > video { aspect-ratio: 4/5; }

/* Mirrored tilt — matches the card this section had before (opposite lean,
   gold offset shadow instead of green). */
.hero-video--mirror > img,
.hero-video--mirror > video {
  transform: rotate(2deg);
  box-shadow: -10px 12px 0 var(--gold);
}
.hero-video--mirror:hover > img,
.hero-video--mirror:hover > video { transform: rotate(0deg) scale(1.01); }

/* Counting headline number. The box is width-reserved so the digits can grow
   from 0 to 8,000 without shoving "years" — and the highlight bar behind it —
   across the screen on every frame. Right-aligned so it reads like an odometer. */
.odometer {
  display: inline-block;
  min-width: 4.6ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   TWO-UP CARD GRID
   Previously inline-styled, which meant no media query could override it —
   so on a phone these stayed as two very narrow columns, wrapping text into
   tall thin strips and making the page far longer than stacking would.
   ========================================================================== */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 860px) {
  .grid2 { grid-template-columns: 1fr; }
}

/* Clay offset shadow variant (contact hero). */
.hero-video--clay > img,
.hero-video--clay > video { box-shadow: 10px 12px 0 var(--clay); }
