/* =========================================================
   Long Neck Family Labs · long-neck.co.uk
   Colours: giraffe gold #F6BE00, night #11111F, white.
   To try another logo font, change --f-logo below.
   ========================================================= */

:root {
  --night: #11111F;
  --night-2: #1A1A2C;
  --night-3: #25253B;
  --line: rgba(255, 255, 255, .1);
  --gold: #F6BE00;
  --gold-deep: #B98C00;
  --orange: #FF8A00;
  --ink: #11111F;
  --white: #FFFFFF;
  --text-soft: #D7D7E7;
  --muted: #B3B3CB;

  /* polappka brand */
  --pp-navy: #2C2C73;
  --pp-navy-deep: #1C1C52;
  --pp-red: #E63946;
  --pp-cream: #F7F4EF;

  --f-logo: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --f-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --f-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-label: 'Unbounded', 'Nunito', system-ui, sans-serif;

  --radius: 28px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 88px; /* header height once scrolled (used for anchor offsets) */
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--white); font: 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 10px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.skip:focus { left: 10px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 600 18px/1 var(--f-display); letter-spacing: .005em; text-decoration: none;
  padding: 17px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .3s var(--bounce), box-shadow .25s, background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-3px) rotate(-1.2deg); }
.btn:active { transform: translateY(2px); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 0 var(--gold-deep); }
.btn-gold:hover { box-shadow: 0 9px 0 var(--gold-deep); }
.btn-gold:active { box-shadow: 0 2px 0 var(--gold-deep); }
.btn-ghost { color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .32); }
.btn-ghost:hover { color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }

/* ---------- logo (everything scales with the logo's font-size) ---------- */
.logo { display: inline-flex; align-items: center; gap: .38em; font-size: 26px; color: var(--white); text-decoration: none; flex: none; }
.logo .ln-giraffe { height: 1.77em; width: auto; color: var(--gold); flex: none; }
.logo-name { display: block; font: 600 1em/1 var(--f-logo); letter-spacing: -.01em; white-space: nowrap; }
.logo-tag { display: block; margin-top: .58em; font: 500 .33em/1 var(--f-label); letter-spacing: .44em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.nav .logo { font-size: 52px; transition: font-size .35s ease; }
.nav.scrolled .logo { font-size: 38px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(17, 17, 31, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; gap: 12px; padding-block: 16px; transition: padding .35s ease; }
.nav.scrolled .nav-inner { padding-block: 9px; }
.nav-inner > nav { margin-left: auto; }
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); flex: none; }
.lang button { border: 0; border-radius: 999px; padding: 8px 11px; background: none; color: var(--muted); font: 600 12px/1 var(--f-label); letter-spacing: .08em; cursor: pointer; transition: background-color .2s, color .2s; }
.lang button:hover { color: var(--white); }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-links a { display: block; padding: 10px 15px; border-radius: 999px; font-weight: 800; text-decoration: none; color: var(--text-soft); transition: color .2s, transform .3s var(--bounce); }
.nav-links a:hover { color: var(--gold); }
.nav-links .nav-cta { margin-left: 8px; background: var(--gold); color: var(--ink); padding: 10px 20px; }
.nav-links .nav-cta:hover { color: var(--ink); transform: rotate(-3deg) scale(1.04); }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-bottom: 46px; }
.spots { position: absolute; inset: 0; pointer-events: none; background-size: 340px 340px; }
.hero .spots { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 60%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 70% 60%, #000 20%, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(20px, 4vw, 56px); min-height: min(780px, calc(100svh - var(--nav-h))); }
.hero-copy { align-self: center; padding: clamp(24px, 5vh, 60px) 0 clamp(60px, 9vh, 110px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 9px 15px; border-radius: 999px; border: 1px solid rgba(246, 190, 0, .3); background: rgba(246, 190, 0, .08); color: var(--gold); font: 500 11px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(246, 190, 0, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(246, 190, 0, 0); } }

.hero h1 { margin: 24px 0; font-size: clamp(46px, 7.2vw, 98px); line-height: .98; letter-spacing: -.025em; }
.hl { color: var(--gold); white-space: nowrap; }
html[lang="pl"] .hero h1 { font-size: clamp(40px, 6.1vw, 82px); } /* Polish words run longer */
.lede { max-width: 33em; font-size: clamp(18px, 1.55vw, 21px); color: var(--text-soft); }
.lede a { color: var(--gold); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-art { position: relative; min-height: 560px; display: flex; align-items: flex-end; justify-content: center; }
.sun { position: absolute; left: 50%; bottom: -60px; width: min(520px, 112%); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(246, 190, 0, .26), rgba(255, 138, 0, .1) 45%, transparent 68%); }
.orbit { position: absolute; left: 50%; bottom: 40px; width: min(400px, 92%); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; border: 2px dashed rgba(246, 190, 0, .22); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
.sparkle { position: absolute; width: 22px; fill: var(--gold); opacity: .0; animation: twinkle 3.2s ease-in-out infinite; }
.sparkle.s1 { left: 10%; top: 26%; }
.sparkle.s2 { right: 6%; top: 46%; width: 16px; animation-delay: 1.1s; }
.sparkle.s3 { left: 22%; top: 58%; width: 12px; animation-delay: 2.1s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: .9; transform: scale(1) rotate(45deg); } }
.ground { position: absolute; left: -20%; right: -20%; bottom: 0; height: 4px; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--gold) 22%, var(--gold) 78%, transparent); }

.giraffe-stage { position: relative; z-index: 2; height: clamp(300px, 54vh, 470px); aspect-ratio: 236 / 456; margin-right: 40px; color: var(--gold); }
.giraffe-stage .ln-giraffe { width: 100%; height: 100%; cursor: pointer; }
.ln-draw path { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.js .ln-draw path { stroke-dashoffset: 1; animation: draw 1.3s ease-in-out forwards; }
.js .ln-draw path:nth-child(2) { animation-delay: .15s; }
.js .ln-draw path:nth-child(3) { animation-delay: .25s; }
.js .ln-draw path:nth-child(4) { animation-delay: .4s; }
.js .ln-draw path:nth-child(5) { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.head-handle {
  position: absolute; left: 0; top: 0; width: 70px; height: 70px; margin: -35px 0 0 -35px; padding: 0;
  border-radius: 50%; border: 2px dashed rgba(246, 190, 0, .85); background: rgba(246, 190, 0, .1);
  cursor: grab; touch-action: none; animation: pulse 1.8s ease-in-out infinite;
}
.head-handle:active { cursor: grabbing; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.touched .head-handle { animation: none; border-color: transparent; background: transparent; }
.touched .head-handle:hover, .touched .head-handle:focus-visible { border-color: rgba(246, 190, 0, .5); }
.pull-hint { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; gap: 2px; color: var(--white); font: 600 17px/1.05 var(--f-display); pointer-events: none; transition: opacity .4s; animation: bob 2s ease-in-out infinite; white-space: nowrap; }
.pull-hint svg { width: 46px; height: 32px; color: var(--gold); margin-top: 6px; }
.touched .pull-hint { opacity: 0; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

.meter { position: absolute; left: 0; top: 28px; z-index: 3; min-width: 200px; padding: 13px 16px 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(26, 26, 44, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.meter-label { display: block; font: 500 9px/1 var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.meter strong { display: block; margin-top: 8px; font: 600 30px/1.05 var(--f-label); color: var(--gold); font-variant-numeric: tabular-nums; }
.meter .msg { display: block; margin-top: 3px; font-size: 14.5px; font-weight: 800; color: var(--text-soft); min-height: 1.4em; }
.meter .bar { display: block; height: 6px; margin-top: 10px; border-radius: 9px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter .bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--orange)); }

/* ---------- marquee ---------- */
.marquee-wrap { overflow: hidden; padding: 26px 0; margin: -26px 0; position: relative; z-index: 3; }
.marquee { background: var(--gold); color: var(--ink); transform: rotate(-1.6deg); margin: 0 -3%; padding: 15px 0; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.track span { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; white-space: nowrap; font: 600 clamp(22px, 2.8vw, 34px)/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.track span b { font-weight: inherit; }
.track span .ln-giraffe { height: 1.25em; width: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .track { animation-play-state: paused; }

/* ---------- sections ---------- */
.section { padding: clamp(84px, 11vw, 150px) 0; }
.section-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 60px); }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 500 11px/1 var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.kicker::before { content: ""; width: 30px; height: 3px; border-radius: 3px; background: currentColor; }
h2 { font-size: clamp(40px, 5.4vw, 70px); letter-spacing: -.025em; }
.section-head p { margin-top: 18px; font-size: 20px; color: var(--muted); }

/* ---------- projects ---------- */
.projects { padding-bottom: clamp(56px, 7vw, 96px); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; transition: transform .5s var(--bounce), box-shadow .3s; }
.project h3 { font-size: clamp(28px, 2.7vw, 38px); letter-spacing: -.015em; }
.project .num { font: 500 10.5px/1.3 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.project--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); min-height: 480px; background: var(--pp-cream); color: var(--pp-navy); }
.project--feature:hover { box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.pp-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(28px, 4.2vw, 58px); }
.pp-logo { width: min(290px, 78%); height: auto; margin: -6px 0 -4px -12px; }
.project--polappka h3 { color: var(--pp-navy); }
.project--polappka p { font-size: 18px; color: #3E3E78; max-width: 30em; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; font: 500 10px/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; }
.status--live { background: var(--pp-navy); color: var(--white); }
.status--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5BE38C; box-shadow: 0 0 0 3px rgba(91, 227, 140, .25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { padding: 7px 15px; border-radius: 999px; background: var(--white); border: 2px solid rgba(44, 44, 115, .12); font-weight: 800; font-size: 15px; }
.project--polappka .platforms { font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pp-navy); }
.platforms span { color: var(--pp-red); padding: 0 4px; }
.btn-pp { margin-top: 4px; background: var(--pp-navy); color: var(--white); box-shadow: 0 6px 0 var(--pp-navy-deep); }
.btn-pp:hover { box-shadow: 0 9px 0 var(--pp-navy-deep); }
.btn-pp svg { color: #FF8A93; }

.pp-art { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--pp-navy); min-height: 300px; }
.ring { position: absolute; left: 50%; top: 52%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(247, 244, 239, .16); transform: translate(-50%, -50%); }
.ring.r1 { width: 46%; } .ring.r2 { width: 74%; border-style: dashed; } .ring.r3 { width: 104%; }
.ring-label { position: absolute; left: 50%; top: calc(52% - 37%); transform: translate(-50%, -50%); padding: 5px 10px; border-radius: 999px; background: var(--pp-navy); color: rgba(247, 244, 239, .75); font: 500 9px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.dot-pin { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--pp-red); box-shadow: 0 0 0 5px rgba(230, 57, 70, .25); animation: blip 2.6s ease-in-out infinite; }
.dot-pin.d1 { left: 22%; top: 36%; } .dot-pin.d2 { left: 74%; top: 30%; animation-delay: .7s; background: var(--pp-cream); box-shadow: 0 0 0 5px rgba(247, 244, 239, .2); }
.dot-pin.d3 { left: 70%; top: 74%; animation-delay: 1.3s; } .dot-pin.d4 { left: 28%; top: 76%; animation-delay: 1.9s; background: var(--pp-cream); box-shadow: 0 0 0 5px rgba(247, 244, 239, .2); }
@keyframes blip { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1.1); opacity: 1; } }
.pp-pin { position: relative; width: 44%; max-width: 220px; height: auto; border-radius: 22%; animation: pinbob 3.2s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .3)); }
@keyframes pinbob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }

.project--secret, .project--seed { display: flex; flex-direction: column; gap: 16px; min-height: 380px; padding: clamp(28px, 3.6vw, 46px); }
.project--secret { background: var(--night-2); border: 2px dashed rgba(246, 190, 0, .45); }
.project--secret p:not(.num) { position: relative; z-index: 1; color: var(--muted); font-size: 18px; max-width: 19em; }
.project--secret h3 { max-width: 13em; }
.stamp { position: absolute; top: 30px; right: 26px; padding: 9px 13px; border: 3px solid var(--gold); border-radius: 9px; color: var(--gold); font: 700 13px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; transform: rotate(9deg); opacity: .9; }
.project--secret .num { margin-top: 56px; }
.qmark { position: absolute; right: 18px; bottom: -74px; font: 700 210px/1 var(--f-display); color: transparent; -webkit-text-stroke: 3px rgba(246, 190, 0, .4); transform: rotate(12deg); transition: transform .6s var(--bounce); pointer-events: none; }
.project--secret:hover .qmark { transform: rotate(-8deg) scale(1.06); }

.project--seed { background: var(--gold); color: var(--ink); }
.project--seed .num { color: rgba(17, 17, 31, .7); }
.project--seed p:not(.num) { font-size: 18px; color: #2B2B3B; max-width: 22em; }
.sprout { width: 120px; height: 120px; margin-top: auto; align-self: flex-end; color: var(--ink); }
.js .sprout path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.js .project--seed.in .sprout path { animation: draw 1s ease-out forwards; }
.js .project--seed.in .sprout path:nth-child(2) { animation-delay: .5s; }
.js .project--seed.in .sprout path:nth-child(3) { animation-delay: .8s; }
.js .project--seed.in .sprout path:nth-child(4) { animation-delay: 0s; }

/* ---------- about ---------- */
.about { background: linear-gradient(180deg, var(--night) 0%, #15152A 100%); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.about-copy p { margin-top: 22px; max-width: 32em; font-size: 19px; color: var(--text-soft); }
.about-copy h2 + p { margin-top: 30px; }
.about-copy strong { color: var(--white); }
.facts { position: relative; padding: clamp(26px, 3.6vw, 46px); border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--line); }
.facts h3 { font-size: 32px; color: var(--gold); }
.fact-list { display: grid; grid-auto-rows: 1fr; gap: 24px; margin-top: 26px; padding: 0; list-style: none; }
.fact-list li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; align-items: center; }
.fact-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: rgba(246, 190, 0, .12); color: var(--gold); }
.fact-icon svg { width: 30px; height: 30px; }
.fact-tower { display: flex; align-items: flex-end; justify-content: center; gap: 1px; padding-bottom: 11px; }
.fact-tower .ln-giraffe { width: auto; height: 22px; }
.fact-tower .ln-giraffe:nth-child(2) { height: 32px; }
.fact-list h4 { margin-bottom: 5px; font-size: 22px; }
.fact-list p { font-size: 16px; color: var(--muted); }

/* ---------- contact ---------- */
.contact { --walker-h: clamp(170px, 18vw, 250px); position: relative; overflow: hidden; padding: clamp(84px, 11vw, 150px) 0 calc(var(--walker-h) + 44px); background: var(--gold); color: var(--ink); }
.contact .spots { opacity: 1; }
.contact-inner { position: relative; }
.contact .kicker { color: var(--ink); }
.contact h2 { font-size: clamp(56px, 9.5vw, 128px); letter-spacing: -.03em; }
.contact-inner > p:not(.kicker) { max-width: 30em; margin-top: 20px; font-size: clamp(18px, 1.7vw, 21px); color: #2A2A3A; }
.mail { display: inline-block; margin-top: 36px; padding: 18px 30px; border-radius: 26px; background: var(--white); color: var(--ink); box-shadow: 0 8px 0 var(--ink); font: 600 clamp(24px, 4.2vw, 52px)/1.1 var(--f-display); letter-spacing: -.01em; text-decoration: none; transition: transform .35s var(--bounce), box-shadow .25s; }
.mail:hover { transform: translateY(-4px) rotate(-1.2deg); box-shadow: 0 12px 0 var(--ink); }
.mail:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--ink); }
.contact-inner .small { margin-top: 26px !important; font-size: 16px !important; }
.contact-inner .small a { font-weight: 800; }
/* the walking giraffe: lane = bottom strip, mover = crosses the lane, walker-box = the giraffe */
.walk-lane { position: absolute; left: 0; right: 0; bottom: 0; height: var(--walker-h); pointer-events: none; }
.walk-mover { width: 100%; height: 100%; animation: walk-across 46s linear infinite; }
.walker-box { position: absolute; left: 0; bottom: 0; height: 100%; aspect-ratio: 236 / 456; transform: translateX(-100%); color: var(--ink); }
.walker-bob { width: 100%; height: 100%; animation: walk-bob .55s ease-in-out infinite; }
.walker-box .ln-giraffe { width: 100%; height: 100%; overflow: visible; }
.walker-box .leg { transform-box: view-box; animation: walk-leg 1.1s ease-in-out infinite; }
.walker-box .leg.b { animation-delay: -.55s; }
@keyframes walk-across { from { transform: translateX(0); } to { transform: translateX(calc(100% + var(--walker-h) * .55)); } }
@keyframes walk-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5%) rotate(-1.5deg); } }
@keyframes walk-leg { 0%, 100% { transform: rotate(13deg); } 50% { transform: rotate(-13deg); } }

/* ---------- footer ---------- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 28px 40px; }
.footer nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; padding: 0; list-style: none; }
.footer nav a { font-weight: 800; text-decoration: none; color: var(--text-soft); }
.footer nav a:hover { color: var(--gold); }
.legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .9s var(--bounce); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .project[data-reveal].in { transition: opacity .8s ease, transform .5s var(--bounce), box-shadow .3s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-bottom: 8px; }
  .hero-art { min-height: 470px; }
  .giraffe-stage { height: 330px; }
  .project--feature { grid-template-columns: 1fr; }
  .pp-art { min-height: 300px; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --nav-h: 80px; }
  .menu-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--night-3); color: var(--white); cursor: pointer; }
  .nav .logo { font-size: clamp(26px, 9.4vw, 44px); }
  .nav.scrolled .logo { font-size: clamp(24px, 7.4vw, 32px); }
  .nav-inner { padding-block: 12px; gap: 8px; }
  .lang { padding: 0; border: 0; background: none; }
  .lang button[aria-pressed="true"] { display: none; }
  .lang button { width: 46px; height: 46px; border-radius: 14px; padding: 0; background: var(--night-3); color: var(--white); font-size: 13px; }
  .walk-mover { animation-duration: 17s; }
  .js .nav-links { position: absolute; top: calc(100% + 4px); left: var(--gutter); right: var(--gutter); flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 22px; background: var(--night-2); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); display: none; }
  .js .nav.open .nav-links { display: flex; }
  .js .nav-links a { padding: 14px 16px; font-size: 18px; }
  .js .nav-links .nav-cta { margin: 6px 0 0; text-align: center; }
  html:not(.js) .nav-inner { height: auto; flex-wrap: wrap; padding-block: 12px; }
  .project-grid { grid-template-columns: 1fr; }
  .project--secret, .project--seed { min-height: 330px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer nav ul { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(40px, 12.4vw, 56px); }
  .btn { padding: 15px 22px; font-size: 17px; }
  .hero-art { min-height: 430px; }
  .giraffe-stage { height: 290px; margin-right: 50px; }
  .meter { min-width: 0; top: 16px; padding: 11px 13px 12px; }
  .meter strong { font-size: 24px; }
  .meter .msg { font-size: 13px; }
  .pull-hint { font-size: 15px; }
  .qmark { font-size: 170px; }
  .mail { padding: 15px 20px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .track { animation: none; }
  .walk-mover { animation: none; transform: translateX(calc(100% - 60px)); }
  .walker-bob, .walker-box .leg { animation: none; }
}
