/* ============================================================
   Chess Meets Twist — website-v2
   Plain HTML/CSS/JS. Editorial dark theme. No external requests.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #202024;
  --bg-2:      #26262b;
  --surface:   #2c2c32;
  --surface-2: #34343b;
  --line:      rgba(255, 255, 255, 0.10);
  --line-2:    rgba(255, 255, 255, 0.17);

  --text:      #f1f2f4;
  --text-soft: #cbccd2;
  --muted:     #9a9ba4;

  --accent:      #dd4034;   /* brand red — used sparingly */
  --accent-soft: #ef5a4e;
  --accent-dim:  #c9857f;

  --radius:    16px;
  --radius-lg: 22px;

  --header-h: 72px;
  --footer-h: 52px;
  --maxw: 1200px;

  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  /* recolours the dark original logo to read on dark — punchy red mane kept */
  --logo-filter: invert(1) hue-rotate(180deg) saturate(3);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

img, svg { display: block; max-width: 100%; }
/* width/height attributes reserve space (no layout shift) without distorting:
   keep intrinsic aspect ratio unless a rule sets an explicit height. */
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }

/* ============================================================
   Background round-chess board + legibility layers
   ============================================================ */
.bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  background: radial-gradient(125% 100% at 50% 44%, #2a2a30 0%, var(--bg) 58%, #17171a 100%);
}
.bg svg {
  /* keyed to the longer side (vmax) so the round board scales to the bigger
     screen dimension (width on desktop/landscape, height on portrait).
     Its centre (the ring/hub) sits at the bottom-right corner, and its
     outer edge reaches across the longer side (156vmax ≈ radius = 100vmax). */
  position: absolute; top: 100%; left: 100%;
  transform: translate(-50%, -50%);
  width: 156vmax; height: 156vmax;
  max-width: none;                    /* override the global img/svg max-width:100% clamp */
  overflow: visible;
  opacity: 1;
}
/* the rotatable middle ring — follows the scroll continuously and
   locks aligned at each snap point. Only a tiny transition to smooth
   coarse scroll events, so it feels like it moves *with* the scroll. */
.bg [data-ring] {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .1s linear;
  will-change: transform;
}
/* soft focus so text stays readable over the board */
.bg-vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(82% 66% at 50% 46%, rgba(32,32,36,0) 0%, rgba(32,32,36,0.22) 64%, rgba(23,23,26,0.66) 100%);
}
/* extra wash for text-heavy (reading) routes; toggled via body.reading */
.bg-scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(24,24,27,0.55);
  opacity: 0; transition: opacity .5s var(--ease);
}
body.reading .bg-scrim { opacity: 1; }

/* board piece colours — all in the page's own grey family */
.cell-dark   { fill: rgba(255,255,255,0.028); }
.cell-light  { fill: rgba(255,255,255,0.060); }
.ring-cell-dark  { fill: rgba(255,255,255,0.055); }
.ring-cell-light { fill: rgba(255,255,255,0.105); }
.grid-line   { stroke: rgba(255,255,255,0.045); stroke-width: 1.1; fill: none; }
.ring-grid   { stroke: rgba(255,255,255,0.13); stroke-width: 1.3; fill: none; }
.ring-fill   { fill: none; stroke: rgba(255,255,255,0.055); }
.ring-edge   { fill: none; stroke: rgba(255,255,255,0.20); stroke-width: 2; }
.hub-fill    { fill: rgba(255,255,255,0.04); }
.hub-edge    { fill: none; stroke: rgba(255,255,255,0.13); stroke-width: 1.5; }
.hub-dot     { fill: rgba(255,255,255,0.28); }
.marker      { fill: rgba(240,241,245,0.17); }
.marker-edge { fill: none; stroke: rgba(255,255,255,0.34); stroke-width: 1.6; }
.marker-halo { fill: rgba(255,255,255,0.05); }

/* ============================================================
   App frame
   ============================================================ */
.frame { position: relative; z-index: 2; height: 100dvh; display: flex; flex-direction: column; }

/* ---------- Header ---------- */
.site-header {
  height: var(--header-h); flex: 0 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 0 clamp(18px, 4vw, 40px);
  position: relative; z-index: 20;   /* keep header + its dropdown above the scroll view */
  background: linear-gradient(180deg, rgba(24,24,27,0.86) 0%, rgba(24,24,27,0.4) 72%, rgba(24,24,27,0) 100%);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo { height: 36px; width: auto; }
.nav { display: flex; gap: 2px; margin-left: 12px; }
.nav a {
  padding: 9px 15px; border-radius: 999px;
  color: var(--text-soft); font-weight: 600; font-size: 15px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav a.active { color: #fff; background: rgba(255,255,255,0.09); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
/* segmented EN / DE toggle */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line);
}
.lang-opt {
  padding: 6px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .05em; color: var(--muted);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-opt:hover:not(.active) { color: var(--text); }
.lang-opt.active { color: #fff; background: rgba(255,255,255,0.13); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }

.burger { display: none; width: 42px; height: 42px; position: relative; border-radius: 10px; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Scroll view ---------- */
.view {
  position: relative;               /* offsetParent for sections (snap targets) */
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.22) transparent;
  overscroll-behavior: contain;
}
.view::-webkit-scrollbar { width: 9px; }
.view::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 9px; }
/* .view is a programmatic focus target (route changes) — no visible ring */
.view:focus, .view:focus-visible { outline: none; }

/* ---------- Sections ---------- */
.section {
  min-height: calc(100dvh - var(--header-h) - var(--footer-h));
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: clamp(40px, 8vh, 90px) clamp(20px, 6vw, 56px);
  position: relative;
}
.section-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }

/* reveal-on-enter */
.reveal   { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal-l { opacity: 0; transform: translateX(-46px); transition: opacity .95s var(--ease-out), transform .95s var(--ease-out); }
.reveal-r { opacity: 0; transform: translateX(46px);  transition: opacity .95s var(--ease-out), transform .95s var(--ease-out); }
.reveal.in, .reveal-l.in, .reveal-r.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .10s; }
.reveal.d2 { transition-delay: .20s; }
.reveal.d3 { transition-delay: .30s; }
.reveal.d4 { transition-delay: .40s; }
.reveal.d5 { transition-delay: .50s; }

/* ---------- Typographic system ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-soft);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--accent); }
.eyebrow.center::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--accent); }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; }
.lead { color: var(--text-soft); font-size: clamp(17px, 2.1vw, 21px); line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  transition: transform .18s var(--ease), background .2s var(--ease), box-shadow .25s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 14px 34px -14px rgba(221,64,52,0.75); }
.btn-primary:hover { background: var(--accent-soft); transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(221,64,52,0.85); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-bottom: clamp(72px, 13vh, 120px); }  /* reserve space for the scroll hint */
.hero-logo {
  display: block; width: min(560px, 82vw); margin: 0 auto 32px;
  filter: drop-shadow(0 14px 34px rgba(0,0,0,0.5));
}
.hero-tagline { font-size: clamp(30px, 5.6vw, 60px); line-height: 1.04; }
.hero-tagline .accent { color: var(--accent); }
.hero-sub { max-width: 640px; margin: 22px auto 0; font-size: clamp(16px, 2.2vw, 20px); color: var(--text-soft); }
.hero-cta { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: var(--muted); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  pointer-events: none;
}
@media (max-height: 720px) { .scroll-hint { display: none; } }
.scroll-hint .mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.26); border-radius: 14px; position: relative; }
.scroll-hint .mouse::before {
  content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 7px; border-radius: 3px;
  background: var(--text-soft); transform: translateX(-50%); animation: wheel 1.7s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0);} 40% {opacity:1;} 100% { opacity: 0; transform: translate(-50%, 12px);} }

/* ---------- Story (editorial) ---------- */
.story { max-width: 860px; margin: 0 auto; text-align: center; }
.story .eyebrow { justify-content: center; margin-bottom: 30px; }
.story .quote {
  font-size: clamp(24px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25;
  color: var(--text);
}
.story .by { margin-top: 26px; color: var(--muted); font-size: 15px; }
.story .more { margin-top: 30px; }

/* ---------- Section headers ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(34px, 6vh, 60px); }
.sec-head .eyebrow { justify-content: center; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(30px, 5vw, 52px); }
.sec-head p { margin-top: 16px; }

/* ---------- Alternating content blocks ---------- */
.block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 76px); align-items: center; }
.block.reverse .block-text  { order: 2; }
.block.reverse .block-media { order: 1; }
.block-text .eyebrow { margin-bottom: 18px; }
.block-text h2 { font-size: clamp(28px, 4.4vw, 46px); }
.block-text .lead { margin-top: 16px; }
.block-cta { margin-top: 28px; }
.block-cta.wrap { display: flex; gap: 12px; flex-wrap: wrap; }
.pull {
  margin-top: 22px; padding-left: 20px; border-left: 3px solid var(--accent);
  font-size: clamp(17px, 2vw, 21px); font-style: italic; color: var(--text);
}
.block-media { position: relative; margin: 0; text-align: center; }
.block-media > img {
  display: block; margin: 0 auto;
  max-width: 100%; width: auto; height: auto; max-height: 60vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -34px rgba(0,0,0,0.9);
}
.block-media figcaption {
  margin-top: 14px; font-size: 13.5px; font-style: italic; color: var(--muted);
}

/* image cluster (mini-carousel) */
.cluster-frame {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); overflow: hidden;
  background: #141417;
  box-shadow: 0 40px 90px -34px rgba(0,0,0,0.9);
}
.cluster-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0; transition: opacity .55s var(--ease);
}
.cluster-slide.is-active { opacity: 1; }
.cluster-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(18,18,21,0.5); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.cluster-nav:hover { background: rgba(18,18,21,0.82); }
.cluster-nav:active { transform: translateY(-50%) scale(.94); }
.cluster-nav svg { width: 20px; height: 20px; }
.cluster-nav.prev { left: 12px; }
.cluster-nav.next { right: 12px; }
.cluster-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.cdot {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px;
  background: rgba(255,255,255,0.28); cursor: pointer;
  transition: background .25s var(--ease), width .25s var(--ease);
}
.cdot:hover { background: rgba(255,255,255,0.55); }
.cdot.is-active { width: 22px; background: var(--accent); }
.cluster-cap { margin-top: 12px; font-size: 13.5px; font-style: italic; color: var(--muted); }

/* media (video / instagram) embeds */
.media-frame {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden;
  background: #101012; box-shadow: 0 40px 90px -34px rgba(0,0,0,0.9);
}
.media-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 30px;
  background: linear-gradient(180deg, rgba(20,20,23,0.62), rgba(20,20,23,0.9)), center/cover no-repeat var(--poster, #17171a);
}
.media-consent .play {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; box-shadow: 0 16px 44px -10px rgba(221,64,52,0.8); transition: transform .2s var(--ease);
}
.media-consent .play.ig { background: linear-gradient(135deg, #feda75, #d62976 45%, #962fbf 75%, #4f5bd5); }
.media-consent .play:hover { transform: scale(1.07); }
.media-consent .play svg { width: 30px; height: 30px; }
.media-consent .play:not(.ig) svg { margin-left: 3px; }
.media-consent p { max-width: 440px; color: var(--text-soft); font-size: 14px; }
.media-consent a { color: var(--accent-soft); text-decoration: underline; font-size: 13.5px; }
.media-consent .remember { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* instagram embed */
.ig-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; }
.ig-badge {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #feda75, #d62976 45%, #962fbf 75%, #4f5bd5);
}
.ig-badge svg { width: 20px; height: 20px; }
.ig-frame {
  position: relative; aspect-ratio: 1/1.06; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: 0 40px 90px -34px rgba(0,0,0,0.9);
}
.ig-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.ig-frame .media-consent { background: linear-gradient(180deg, rgba(28,28,32,0.7), rgba(24,24,28,0.92)); }

/* ============================================================
   Article pages (history / diy / legal / privacy) — no boxes
   ============================================================ */
.page { max-width: 760px; margin: 0 auto; padding: clamp(52px, 10vh, 120px) clamp(22px, 6vw, 40px) 130px; }
.page.wide { max-width: 900px; }

/* history: verbatim text woven into alternating image blocks */
.history-page { max-width: 1080px; }
.history-page .page-head { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.beats { display: flex; flex-direction: column; gap: clamp(52px, 10vh, 120px); }
.history-page .block-text { color: var(--text-soft); font-size: 17px; line-height: 1.78; }
.history-page .block-text p + p { margin-top: 16px; }
.page-head { margin-bottom: 44px; }
.page-head .eyebrow { margin-bottom: 22px; }
.page-head h1 { font-size: clamp(34px, 6.4vw, 60px); }
.page-head .sub { margin-top: 16px; color: var(--muted); font-size: 18px; }

.prose { color: var(--text-soft); font-size: 17.5px; }
.prose > * + * { margin-top: 20px; }
.prose p { line-height: 1.78; }
.prose .lead-p { font-size: 21px; line-height: 1.6; color: var(--text); }
.prose h2 { color: var(--text); font-size: clamp(22px, 3vw, 27px); margin-top: 46px; }
.prose h3 { color: var(--text); font-size: 19px; margin-top: 30px; }
.prose h4 { color: var(--text); font-size: 16px; margin-top: 22px; }
.prose a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.prose strong { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin-top: 9px; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 34px 0; }

/* DIY guide */
.diy-page .fine { margin-top: 16px; font-size: 14px; color: var(--muted); }
/* board image shown rotated 90° counter-clockwise (image is square) */
.diy-page .block-media > img { transform: rotate(-90deg); }

/* materials checklist */
.materials-wrap { max-width: 960px; margin: 0 auto; }
.materials-wrap .eyebrow { margin-bottom: 16px; }
.materials-wrap h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 26px; }
.materials { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.materials li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); font-size: 15.5px; line-height: 1.62; }
.materials .dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--accent); }
.materials a { color: var(--accent-soft); text-decoration: underline; font-weight: 600; }

/* build steps (vertical, chess-piece markers) */
.steps-wrap { max-width: 760px; margin: 0 auto; }
.steps-wrap .sec-head { margin-bottom: clamp(26px, 4vh, 46px); text-align: center; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: clamp(26px, 4vh, 46px); }
.step { display: flex; gap: 22px; align-items: flex-start; }
.step-piece {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; font-size: 30px; line-height: 1;
  color: var(--accent-soft);
  background: rgba(221,64,52,0.10); border: 1px solid rgba(221,64,52,0.28);
  font-variant-emoji: text;           /* keep chess glyphs monochrome, not emoji */
}
.step-body h3 { font-size: 19.5px; margin-bottom: 8px; }
.step-body p { color: var(--muted); font-size: 15.5px; line-height: 1.72; }
.step-body p + p { margin-top: 10px; }
.step-body strong { color: var(--text-soft); }

.diy-cta {
  text-align: center; padding-top: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.diy-cta p { color: var(--text-soft); font-size: 18px; }

/* contact form */
.contact-page .contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.contact-form .field {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-2);
  color: var(--text); font: inherit; line-height: 1.5;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.contact-form textarea.field { resize: vertical; min-height: 150px; }
.contact-form .field::placeholder { color: var(--muted); }
.contact-form .field:focus { outline: none; border-color: var(--accent-soft); background: rgba(255,255,255,0.06); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.consent-check { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.55; }
.consent-check input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent); }
.consent-check a { color: var(--accent-soft); text-decoration: underline; }
.contact-submit { align-self: flex-start; margin-top: 4px; }
.form-response { font-size: 14.5px; min-height: 1.2em; margin: 0; }
.form-response.ok { color: #5cc487; }
.form-response.err { color: var(--accent-soft); }

/* legal address */
.address-grid { display: grid; gap: 8px; margin-top: 6px; }
.address-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.address-row .k { color: var(--muted); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  height: var(--footer-h); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 clamp(18px, 4vw, 40px);
  font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(24,24,27,0.66); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.footer-nav { display: flex; gap: 20px; align-items: center; }
.footer-nav a:hover, .linklike:hover { color: var(--text); }
.footer-nav a.active { color: var(--text-soft); }
.linklike { color: var(--muted); font-size: 13px; }

/* ---------- Cookie consent ---------- */
.consent-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(6,6,8,0.58); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center; padding: 18px;
  animation: fade .25s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.consent {
  width: 100%; max-width: 560px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85); padding: 24px 24px 20px;
  animation: rise .35s var(--ease-out);
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.consent h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.consent h2 svg { width: 22px; height: 22px; color: var(--accent-soft); }
.consent p { color: var(--text-soft); font-size: 14.5px; margin-top: 10px; }
.consent p a { color: var(--accent-soft); text-decoration: underline; }
.consent-options { margin-top: 16px; display: grid; gap: 8px; }
.consent-opt {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.02);
}
.consent-opt .txt strong { display: block; font-size: 14.5px; }
.consent-opt .txt span { font-size: 13px; color: var(--muted); }
.consent-opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.consent-opt input:disabled { opacity: .6; }
.consent-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.consent-actions .btn { padding: 11px 18px; font-size: 14px; flex: 1 1 auto; justify-content: center; }
.consent-actions .btn.min { flex: 0 0 auto; }

.consent-fab {
  position: fixed; right: 18px; bottom: calc(var(--footer-h) + 14px); z-index: 55;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-soft);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.8);
  transition: transform .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.consent-fab:hover { transform: translateY(-2px); color: #fff; background: var(--surface); }
.consent-fab svg { width: 24px; height: 24px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .nav { display: none; }
  .burger { display: block; }
  .nav.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0; padding: 12px 18px 18px;
    background: #1a1a1e;
    border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
    animation: rise .25s var(--ease-out);
  }
  .nav.open a { font-size: 17px; padding: 12px 14px; }
  /* solid header bar on mobile (the fading gradient looked transparent) */
  .site-header {
    position: relative;
    background: rgba(20,20,23,0.94);
    border-bottom: 1px solid var(--line);
  }

  /* stack blocks: media on top, text below; slide up instead of sideways */
  .block { grid-template-columns: 1fr; gap: 26px; }
  .block .block-media { order: -1; }
  .reveal-l, .reveal-r { transform: translateY(30px); }
  .materials { grid-template-columns: 1fr; }
  .contact-submit { align-self: stretch; justify-content: center; }
}

@media (max-width: 560px) {
  :root { --footer-h: 78px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .address-row { grid-template-columns: 1fr; gap: 2px; }
  .consent-actions .btn { flex-basis: 100%; }

  /* stacked, centered footer: links on one row, copyright below */
  .site-footer {
    flex-direction: column-reverse; align-items: center; justify-content: center;
    gap: 7px; padding: 9px 14px; text-align: center; font-size: 12.5px;
  }
  .footer-nav { gap: 6px 18px; flex-wrap: wrap; justify-content: center; }
  .footer-nav a, .linklike { white-space: nowrap; }
  .site-footer .copy { font-size: 12px; opacity: .78; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .scroll-hint .mouse::before { animation: none; }
  .bg [data-ring] { transition: none !important; }
}
