/* Header on paper, as on the reference. */
.hdr .logo, .foot .logo { gap: 10px; }
.logo__mark { width: 23px; height: 23px; border-radius: 0; object-fit: contain; }
.logo__word { font-size: 1.3rem; line-height: 1; }
.hdr { background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 1px 0 rgb(35 33 32 / .12); }
.hdr .nav__btn, .hdr__link, .hdr .lang { font-weight: 500; }
.hdr .btn--paper { color: #fff; background: #1d1d1c; }
.hdr:is(.is-solid,.is-open) .btn--paper { background: #1d1d1c; }
.hdr .btn--paper:hover, .hdr:is(.is-solid,.is-open) .btn--paper:hover { background: #383835; }

/* =========================================================
   Hero · a sky that moves slowly through morning, day and dusk,
   with real work presented as a calm, centred carousel.
   ========================================================= */
.hero {
  position: relative; display: block; min-height: 0; overflow: hidden; isolation: isolate;
  padding-top: var(--hdr-h); color: #171514; background: #f6d79c;
}
.hero-sky { position: absolute; inset: -6%; z-index: -1; animation: sky-drift 46s ease-in-out infinite alternate; }
.sky { position: absolute; inset: 0; opacity: 0; animation: sky-phase 36s linear infinite; will-change: opacity; }
.sky--dawn {
  animation-delay: -2s;
  background:
    radial-gradient(48% 58% at 86% 6%, #f39f35 0%, rgba(243,159,53,0) 70%),
    radial-gradient(46% 54% at 8% 18%, #fde2b1 0%, rgba(253,226,177,0) 72%),
    radial-gradient(70% 60% at 50% 108%, #7cafb0 0%, rgba(124,175,176,0) 72%),
    linear-gradient(180deg, #f8bd5c 0%, #f8c978 38%, #d7c896 66%, #9cbcb2 100%);
}
.sky--day {
  animation-delay: -26s;
  background:
    radial-gradient(52% 60% at 78% 0%, #a9c9df 0%, rgba(169,201,223,0) 70%),
    radial-gradient(44% 52% at 12% 14%, #eef3f1 0%, rgba(238,243,241,0) 72%),
    radial-gradient(72% 60% at 58% 110%, #b5c27a 0%, rgba(181,194,122,0) 72%),
    linear-gradient(180deg, #cadeea 0%, #d8e4e0 40%, #cfd3a6 74%, #aebc7d 100%);
}
.sky--dusk {
  animation-delay: -14s;
  background:
    radial-gradient(50% 58% at 84% 4%, #e9997a 0%, rgba(233,153,122,0) 70%),
    radial-gradient(46% 54% at 14% 16%, #f6cdb7 0%, rgba(246,205,183,0) 72%),
    radial-gradient(70% 60% at 50% 110%, #8b95c0 0%, rgba(139,149,192,0) 72%),
    linear-gradient(180deg, #f0b796 0%, #e6b6aa 40%, #c2adc2 72%, #929bc0 100%);
}
.sky-grain {
  position: absolute; inset: 0; opacity: .32; mix-blend-mode: soft-light;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
/* Each palette holds for about ten seconds, then dissolves into the next. */
@keyframes sky-phase { 0% { opacity: 1; } 28% { opacity: 1; } 36% { opacity: 0; } 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sky-drift { from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); } to { transform: translate3d(1.5%, 1.5%, 0) scale(1.08); } }

.hero__intro {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: end; column-gap: clamp(24px, 6vw, 96px);
  padding-top: clamp(48px, 6.5vw, 96px); padding-bottom: clamp(36px, 4.4vw, 64px);
}
.hero .hero__title {
  max-width: 720px; margin: 0; font-size: clamp(2.9rem, 5.2vw, 4.7rem); line-height: 1.02;
  font-weight: 450; letter-spacing: -.035em; text-wrap: balance;
}
.hero .hero__sub { max-width: 40ch; margin: 0; font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.42; letter-spacing: -.01em; color: #2a2522; }
.hero__actions { display: flex; align-items: center; gap: 22px; margin-top: 24px; flex-wrap: wrap; }
.hero__actions .btn { border-radius: 12px; padding-right: 14px; }
.hero__actions .btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hero__link { font-size: 15px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.hero__link:hover { text-decoration-thickness: 2px; }

/* Stage · active card in the centre, neighbours recede on either side */
.hero-stage { --card-w: clamp(250px, 24vw, 340px); --card-h: calc(var(--card-w) * 1.08); --step: calc(var(--card-w) * .9);
  position: relative; height: calc(var(--card-h) * 1.14 + 72px); margin-top: 4px; }
.hero-stage__track { position: absolute; inset: 0 0 56px; }
.hcard {
  position: absolute; left: 50%; top: 50%; width: var(--card-w); height: var(--card-h);
  margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
  border-radius: 18px; overflow: hidden; isolation: isolate; color: #fff; background: #2b2522;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 30px 60px -30px rgba(40,26,14,.55), 0 10px 24px -16px rgba(40,26,14,.35);
  transform: translateX(calc(var(--o) * var(--step))) scale(var(--s, 1));
  opacity: var(--a, 1); z-index: var(--z, 1);
  transition: transform .95s cubic-bezier(.22,.7,.2,1), opacity .6s ease, filter .6s ease;
  will-change: transform;
}
.hcard[data-dist="0"] { --s: 1.14; }
.hcard[data-dist="1"] { --s: .92; filter: saturate(.92); }
.hcard[data-dist="2"] { --s: .8; --a: .9; filter: saturate(.85); }
.hcard[data-dist="3"] { --s: .7; --a: 0; pointer-events: none; }
.hcard:focus-visible { outline: 2px solid #1c1a18; outline-offset: 4px; }
.hcard__media { position: absolute; inset: 0; z-index: -1; }
.hcard__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.hcard__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(13 12 11 / .42), transparent 27%, transparent 53%, rgb(12 11 10 / .82));
}
.hcard--marnxt .hcard__image {
  object-position: 50% 56%;
  filter: saturate(.85) brightness(.88);
}
.hcard__mark {
  display: block; position: absolute; inset: 23% 0 auto; margin-inline: auto;
  width: 31%; height: auto; filter: invert(1); opacity: .91;
}
.hcard--fokuskind .hcard__media {
  background:
    radial-gradient(ellipse at 68% 33%, #e8c79c 0%, #be9473 24%, transparent 60%),
    radial-gradient(ellipse at 10% 90%, #5f7775, transparent 61%),
    linear-gradient(140deg, #3e5358, #776555 62%, #42423e);
}
.hcard--fokuskind .hcard__media::before {
  content: ""; position: absolute; left: 27%; right: 24%; bottom: 21%; height: 8%;
  background: radial-gradient(ellipse, rgb(32 29 24 / .65), transparent 70%);
}
.hcard--fokuskind .hcard__image {
  position: absolute; width: 67%; height: 63%; left: 18%; top: 15%; object-fit: contain;
  filter: drop-shadow(5px 7px 6px rgb(51 36 26 / .24));
}
.hcard--stellecta .hcard__image { object-position: 50% 18%; }
.hcard__chips { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.hcard__chip {
  height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px;
  font: 500 .65rem/1 "Geist Mono", "Geist", monospace; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; border: 1px solid rgb(255 255 255 / .68); background: rgb(22 21 19 / .44); backdrop-filter: blur(6px);
}
.hcard__body { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hcard__title { font: 500 clamp(19px, 1.7vw, 24px)/1.1 var(--display); letter-spacing: -.025em; text-wrap: balance; max-width: 15ch; }
.hcard__go { flex: none; height: 28px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 999px; font: 600 11px/1 var(--sans); background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(8px); }
.hero-stage__controls { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; align-items: center; gap: 14px; }
.hero-stage__dots { display: flex; }
.hero-stage__dots button { width: 26px; height: 44px; display: grid; place-items: center; }
.hero-stage__dots button::after { content: ""; width: 7px; height: 7px; border-radius: 99px; background: rgba(23,21,20,.35); transition: width .3s, background .3s; }
.hero-stage__dots button[aria-current="true"]::after { width: 22px; background: rgba(23,21,20,.85); }
.hero-stage__btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.4); backdrop-filter: blur(8px); transition: background .2s; }
.hero-stage__btn:hover { background: rgba(255,255,255,.75); }
.hero-stage__btn svg { pointer-events: none; width: 14px; height: 14px; fill: currentColor; }

@media (max-width: 900px) {
  .hero__intro { grid-template-columns: 1fr; row-gap: 22px; }
  .hero .hero__title { font-size: clamp(2.6rem, 7vw, 3.8rem); }
}
@media (max-width: 640px) {
  .hero-stage { --card-w: min(70vw, 280px); --step: calc(var(--card-w) * .82); }
  .hcard[data-dist="0"] { --s: 1.04; }
  .hcard[data-dist="2"] { --a: 0; }
  .hero .hero__title { font-size: clamp(2.35rem, 10vw, 3rem); letter-spacing: -.032em; }
  .hero__intro { padding-top: 40px; padding-bottom: 26px; }
}
@media (max-width: 360px) {
  .hcard__chip:first-child { display: none; }
  .hcard__body { left: 13px; right: 13px; gap: 7px; }
  .hcard__go { padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-sky, .sky { animation: none; }
  .sky--dawn { opacity: 1; }
  .sky--day, .sky--dusk { opacity: 0; }
  .hcard, .hcard__media img { transition: none; }
}
.hero.is-still .hero-sky, .hero.is-still .sky { animation-play-state: paused; }
