/* =========================================================
   Wand sp. z o.o. – strona grupy marek
   ========================================================= */

:root {
  --ink: #071E38;   /* granat z logo */
  --ink-2: #0C2847;
  --ink-3: #14345A;
  --paper: #F5F7FA;
  --white: #FFFFFF;
  --text: #0F172A;
  --muted: #5B6475;
  --line: #E3E7EE;

  --health: #0DAB96; /* turkus z logo */
  --health-soft: #E3F6F3;
  --mob: #3B6CFF;
  --mob-soft: #EAF0FF;
  --energy: #F5A623;
  --energy-soft: #FFF4E0;
  --robo: #7C5CFF;
  --robo-soft: #F0ECFF;

  --grad: linear-gradient(110deg, #0DAB96 0%, #3B6CFF 55%, #F5A623 100%);

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 18px 48px rgba(15, 23, 42, .10);

  --container: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(7, 30, 56, .3); background: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: .6em 1.15em; font-size: .9rem; }
.btn-block { width: 100%; }
.hero .btn-primary { background: var(--white); color: var(--ink); }
.hero .btn-primary:hover { background: #eef2ff; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 40px; width: auto; }
.logo-footer img { height: 44px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .5em .85em; border-radius: 999px; color: var(--muted);
  transition: color .2s, background .2s;
}
.main-nav a:not(.btn):hover, .main-nav a.is-current { color: var(--ink); background: var(--paper); }
.main-nav .nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  border-radius: 10px; padding: 10px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--white);
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 8vw, 110px);
}
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(59,108,255,.35), transparent 70%) 40% 40% / 70% 70% no-repeat,
    radial-gradient(closest-side, rgba(13,171,150,.28), transparent 70%) 0% 70% / 60% 60% no-repeat,
    radial-gradient(closest-side, rgba(245,166,35,.22), transparent 70%) 90% 90% / 55% 55% no-repeat;
  filter: blur(10px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: .45em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: rgba(255,255,255,.75); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 44px; }

.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; margin: 0; justify-content: start; }
.hero-stats div { border-left: 2px solid rgba(255,255,255,.14); padding-left: 16px; }
.hero-stats dt { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.hero-stats dd { margin: 0; font-size: .88rem; color: rgba(255,255,255,.6); }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mob); margin-bottom: 14px;
}
.eyebrow-light { color: rgba(255,255,255,.7); }

/* Orbita */
.hero-visual { max-width: 520px; width: 100%; justify-self: end; }
.orbit { width: 100%; height: auto; overflow: visible; }
.orbit-ring { fill: none; stroke: rgba(255,255,255,.14); stroke-dasharray: 4 8; transform-origin: 260px 260px; animation: spin 80s linear infinite; }
.orbit-ring-inner { stroke: rgba(255,255,255,.08); animation-direction: reverse; animation-duration: 60s; }
.ln { stroke-width: 1.5; stroke-dasharray: 6 6; animation: flow 2.4s linear infinite; }
.ln-health { stroke: rgba(13,171,150,.6); }
.ln-mob { stroke: rgba(59,108,255,.7); }
.ln-energy { stroke: rgba(245,166,35,.65); }
.ln-robo { stroke: rgba(124,92,255,.75); }
.ln-soon { opacity: .5; }
.core-t { fill: #fff; font-weight: 800; font-size: 22px; letter-spacing: .16em; text-anchor: middle; }
.core-pulse { fill: none; stroke: #0DAB96; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.core-s { fill: rgba(255,255,255,.55); font-size: 11px; letter-spacing: .14em; text-anchor: middle; text-transform: uppercase; }
.node circle { stroke-width: 1.5; }
.node text { fill: #fff; font-size: 13px; font-weight: 700; text-anchor: middle; }
.node .soon-t { font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; fill: rgba(255,255,255,.7); }
.node { animation: bob 6s ease-in-out infinite; animation-delay: var(--d); }
.node-health circle { fill: rgba(13,171,150,.22); stroke: #0DAB96; }
.node-mob circle { fill: rgba(59,108,255,.25); stroke: #3B6CFF; }
.node-energy circle { fill: rgba(245,166,35,.2); stroke: #F5A623; }
.node-robo circle { fill: rgba(124,92,255,.25); stroke: #7C5CFF; }
.node-soon circle { stroke-dasharray: 4 4; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------- Sekcje ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-lead { color: var(--muted); font-size: 1.1rem; }

/* Filary */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  --c: var(--mob); --soft: var(--mob-soft);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar-health { --c: var(--health); --soft: var(--health-soft); }
.pillar-mob { --c: var(--mob); --soft: var(--mob-soft); }
.pillar-energy { --c: var(--energy); --soft: var(--energy-soft); }
.pillar-robo { --c: var(--robo); --soft: var(--robo-soft); }
.pillar { padding: 28px; }
.pillar-icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--soft); color: var(--c);
  display: grid; place-items: center; margin-bottom: 22px;
}
.pillar-icon svg, .brand-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 1.5rem; }
.pillar p { color: var(--muted); }

.chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .85rem; font-weight: 600; padding: .35em .85em; border-radius: 999px; background: var(--soft); color: var(--text); }
.chips em { font-style: normal; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-left: 4px; }

/* Filtry */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  padding: .55em 1.2em; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--muted);
  transition: all .2s;
}
.filter:hover { color: var(--text); border-color: #c9d0dc; }
.filter.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Karty marek */
.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.brand {
  --c: var(--mob); --soft: var(--mob-soft);
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, opacity .3s;
}
.brand:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.brand.is-hidden { display: none; }
.brand-health { --c: var(--health); --soft: var(--health-soft); }
.brand-mob { --c: var(--mob); --soft: var(--mob-soft); }
.brand-energy { --c: #D98A0B; --soft: var(--energy-soft); }
.brand-robo { --c: var(--robo); --soft: var(--robo-soft); }
.brand-soon { background: linear-gradient(180deg, #FFFBF2, var(--white)); border-style: dashed; border-color: #F2C879; }
.brand-robo.brand-soon { background: linear-gradient(120deg, #F6F3FF, var(--white) 70%); border-color: #C9BCFF; }
.brand-robo .tag-soon { background: var(--robo); color: var(--white); }
.brand-soon-note { margin: auto 0 0; font-weight: 700; font-size: .92rem; color: var(--c); }
.brand-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 36px; }
.ami-visual { flex: none; width: 150px; height: 150px; border-radius: 28px; background: var(--soft); display: grid; place-items: center; color: var(--robo); }
.ami-visual svg { width: 96px; height: 96px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ami-visual .eye { fill: currentColor; stroke: none; animation: blink 5s infinite; transform-origin: center; transform-box: fill-box; }
.ami-body { flex: 1; display: flex; flex-direction: column; }
.ami-body .brand-top { justify-content: flex-start; flex-wrap: wrap; }
.ami-body .brand-desc { max-width: 60em; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

.brand-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.brand-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--c); display: grid; place-items: center; flex: none; }
.brand-icon svg { width: 24px; height: 24px; }
.tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c); text-align: right; }
.tag-soon { background: var(--energy); color: var(--ink); padding: .35em .8em; border-radius: 999px; }
.brand-name { font-size: 1.6rem; font-weight: 800; margin-bottom: .35em; }
.brand-desc { color: var(--muted); font-size: .98rem; }

.brand-points { list-style: none; padding: 0; margin: 4px 0 20px; display: grid; gap: 8px; }
.brand-points li { position: relative; padding-left: 26px; font-size: .95rem; font-weight: 500; }
.brand-points li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230F172A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 20px; }
.specs div { background: var(--soft); border-radius: var(--radius-sm); padding: 10px 14px; }
.specs dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }

.brand-link {
  margin-top: auto; align-self: flex-start; display: inline-flex; gap: 6px; align-items: center;
  font-weight: 700; text-decoration: none; color: var(--c);
  padding-bottom: 2px; border-bottom: 2px solid transparent; transition: border-color .2s;
}
.brand-link:hover { border-color: currentColor; }

/* Ekosystem */
.flows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.flow { padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.flow p { color: var(--muted); margin: 0; }
.flow-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.step { font-size: .82rem; font-weight: 700; padding: .4em .85em; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.s-health { color: #0F8F82; border-color: #B7E8E2; background: var(--health-soft); }
.s-mob { color: #2B57DB; border-color: #C9D6FF; background: var(--mob-soft); }
.s-energy { color: #B26F05; border-color: #F6D9A3; background: var(--energy-soft); }
.arrow { color: var(--muted); font-weight: 700; }

/* Wizja */
.section-dark::before {
  content: ""; position: absolute; width: 700px; height: 700px; left: -200px; top: -200px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(59,108,255,.25), transparent 70%);
}
.vision-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.vision-copy h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
.vision-copy p:not(.eyebrow) { color: rgba(255,255,255,.75); font-size: 1.08rem; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.values li {
  display: grid; gap: 4px; padding: 20px 22px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.values strong { font-size: 1.05rem; }
.values span { color: rgba(255,255,255,.65); font-size: .95rem; }

.roadmap { position: relative; margin-top: 80px; }
.roadmap h3 { font-size: 1.5rem; margin-bottom: 32px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, rgba(13,171,150,.8), rgba(59,108,255,.8), rgba(245,166,35,.8), rgba(255,255,255,.12)); }
.timeline li { position: relative; padding-top: 40px; }
.timeline li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); border: 2px solid rgba(255,255,255,.35);
}
.timeline li.done::before { background: var(--health); border-color: var(--health); }
.timeline li.now::before { background: var(--mob); border-color: var(--mob); box-shadow: 0 0 0 6px rgba(59,108,255,.25); }
.t-label { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.timeline strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.timeline p { color: rgba(255,255,255,.65); font-size: .95rem; margin: 0; }

/* Galeria Zdrowia */
.gallery-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.gallery-copy h2 { margin-bottom: .6em; }
.gallery-copy .eyebrow { color: var(--health); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); }
.video iframe, .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { padding: 0; cursor: pointer; background: var(--ink); display: block; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .6s; }
.video-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,30,56,.75)); }
.video-poster:hover img { opacity: 1; transform: scale(1.03); }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 78px; height: 78px; border-radius: 50%; background: var(--white); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .25s;
}
.video-play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.video-poster:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
.video-label { position: absolute; left: 22px; bottom: 18px; z-index: 1; color: var(--white); font-weight: 700; font-size: 1rem; }

.gallery-features { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-features li { display: grid; gap: 4px; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.gallery-features strong { font-size: 1.08rem; line-height: 1.3; margin-top: 10px; }
.gallery-features span:not(.gf-icon) { color: var(--muted); font-size: .95rem; }
.gf-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; }
.gf-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gf-health { background: var(--health-soft); color: var(--health); }
.gf-mob { background: var(--mob-soft); color: var(--mob); }
.gf-energy { background: var(--energy-soft); color: #D98A0B; }
.gf-def { background: #EEF1F5; color: var(--ink); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-card p { margin-bottom: .6em; }
.muted { color: var(--muted); }
.contact-link { font-weight: 800; font-size: 1.2rem; text-decoration: none; color: var(--mob); }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.link-list a { text-decoration: none; font-weight: 600; color: var(--text); }
.link-list a:hover { color: var(--mob); }
.link-list a::after { content: " ↗"; color: var(--muted); font-size: .85em; }

/* Stopka */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-claim { margin: 14px 0 0; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom p { margin: 24px 0 0; font-size: .82rem; color: rgba(255,255,255,.5); }

/* Animacje wejścia (tylko gdy działa JS) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsywność ---------- */
@media (max-width: 1024px) {
  .brands, .pillars { grid-template-columns: repeat(2, 1fr); }
  .gallery-features { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline::before { display: none; }
}

@media (max-width: 900px) {
  .hero-inner, .vision-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid { gap: 32px; }
  .hero-visual { justify-self: center; max-width: 400px; }
  .flows, .contact-grid { grid-template-columns: 1fr; }
  .vision-grid { gap: 40px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 24px 24px; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(7,30,56,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a:not(.btn) { padding: .8em 1em; font-size: 1.05rem; }
  .main-nav .nav-cta { margin: 8px 0 0; padding: .9em; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .logo img { height: 32px; }
  .container { padding: 0 16px; }
  .brands, .pillars, .gallery-features { grid-template-columns: 1fr; }
  .brand-wide { flex-direction: column; align-items: stretch; gap: 20px; }
  .ami-visual { width: 100%; height: 140px; }
  .timeline { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-stats div { padding-left: 10px; }
  .hero-stats dt { font-size: 1.2rem; }
  .hero-stats dd { font-size: .78rem; }
  .hero-visual { max-width: 320px; }
  .pillar, .brand, .flow, .contact-card { padding: 24px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
