/* =========================================================
   Altermedia — one-page 2026
   ========================================================= */

:root {
  /* Brand (z původního webu) */
  --plum-950: #0c0510;
  --plum-925: #12060f;
  --plum-900: #1b0a19;
  --plum-850: #260d23;
  --plum-800: #4e164b;
  --plum-700: #671c5b;
  --brand-600: #812572;
  --brand: #a32d90;
  --brand-400: #c450b0;
  --pink: #dd89b9;
  --pink-hot: #ff80e6;

  --paper: #faf6f9;
  --paper-2: #f3ebf1;
  --ink: #1e0f1c;
  --ink-soft: #5d4a59;

  --grad: linear-gradient(120deg, #812572 0%, #a32d90 38%, #dd89b9 100%);
  --grad-hot: linear-gradient(120deg, #a32d90 0%, #e05fc6 55%, #ffb0e9 100%);

  --font-display: "Sora", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --logo-a: #d45bc0;
  --logo-b: #f6c6e2;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 0.95rem + 0.15vw, 17px);
  line-height: 1.65;
  color: #f4e9f1;
  background: var(--plum-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
ul[role="list"], .chips, .social { list-style: none; padding: 0; }
address { font-style: normal; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--pink-hot); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.d-block { display: block; }
.muted { color: var(--ink-soft); }
.small { font-size: .88em; }
.mono { font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace; letter-spacing: .02em; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 16px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pink);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pink-hot);
  box-shadow: 0 0 0 0 rgba(255,128,230,.6);
  animation: ping 2.4s var(--ease) infinite;
}
.eyebrow .num {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 24px; padding: 0 8px; border-radius: 99px;
  border: 1px solid currentColor; font-size: 11px; letter-spacing: .08em;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255,128,230,.55); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(255,128,230,0); }
}

/* Split text (JS wraps words) */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 55ms); }
.is-in [data-split] .w > span,
[data-split].is-in .w > span { transform: none; }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 99px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn svg { transition: transform .4s var(--ease); }
.btn--primary {
  color: #fff;
  background: var(--grad-hot);
  background-size: 180% 100%;
  box-shadow: 0 10px 30px -10px rgba(224,95,198,.7), inset 0 1px 0 rgba(255,255,255,.25);
  animation: gradShift 6s ease-in-out infinite alternate;
}
.btn--primary:hover { box-shadow: 0 18px 50px -12px rgba(224,95,198,.9), inset 0 1px 0 rgba(255,255,255,.3); }
.btn--primary:hover svg { transform: translateY(3px); }
.btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.09); }
.btn--small { height: 42px; padding: 0 18px; font-size: 14px; }
@keyframes gradShift { to { background-position: 100% 0; } }

/* =========================================================
   Header
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 16px var(--gutter);
  pointer-events: none;
  transition: transform .5s var(--ease);
}
.nav__bar {
  pointer-events: auto;
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 10px 0 22px;
  border-radius: 99px;
  border: 1px solid transparent;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), color .4s;
}
.nav.is-scrolled .nav__bar {
  background: rgba(22, 8, 20, .55);
  border-color: rgba(255,255,255,.09);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,.6);
}
.nav[data-theme="light"] { --logo-a: #812572; --logo-b: #dd89b9; }
.nav[data-theme="light"] .nav__bar { color: var(--ink); }
.nav[data-theme="light"].is-scrolled .nav__bar { background: rgba(255,255,255,.7); border-color: rgba(78,22,75,.1); box-shadow: 0 10px 40px -20px rgba(78,22,75,.35); }
.nav__logo { flex: none; margin-right: auto; transition: opacity .3s; }
.nav__logo svg { width: 150px; height: auto; aspect-ratio: 286/72; }
.nav__logo:hover { opacity: .85; }

.nav__links {
  position: relative; display: flex; gap: 4px; padding: 5px;
  border-radius: 99px;
}
.nav__links a {
  position: relative; z-index: 1;
  padding: 9px 18px; border-radius: 99px;
  font-family: var(--font-display); font-size: 14px; font-weight: 500;
  opacity: .72; transition: opacity .3s;
}
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__pill {
  position: absolute; top: 5px; left: 0; height: calc(100% - 10px); width: 0;
  border-radius: 99px;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .55s var(--ease), width .55s var(--ease), background-color .4s;
}
.nav[data-theme="light"] .nav__pill { background: rgba(163,45,144,.1); box-shadow: inset 0 0 0 1px rgba(163,45,144,.15); }

.nav__cta { color: #fff; background: var(--grad-hot); box-shadow: 0 8px 24px -10px rgba(224,95,198,.8); }
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(224,95,198,1); }
.nav__cta:hover svg { transform: translateX(3px); }

.nav__burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; background: rgba(255,255,255,.08); }
.nav[data-theme="light"] .nav__burger { background: rgba(78,22,75,.08); }
.nav__burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.nav__burger span:nth-child(1) { top: 18px; }
.nav__burger span:nth-child(2) { top: 26px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Mobile menu */
.mmenu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 120px var(--gutter) 48px;
  background: radial-gradient(120% 80% at 80% 0%, #4e164b 0%, var(--plum-950) 60%);
  clip-path: circle(0% at calc(100% - 40px) 48px);
  transition: clip-path .8s var(--ease-io);
}
.mmenu[hidden] { display: flex; visibility: hidden; }
.mmenu.is-open { clip-path: circle(150% at calc(100% - 40px) 48px); visibility: visible; }
.mmenu nav { display: flex; flex-direction: column; gap: 6px; }
.mmenu nav a {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 12vw, 64px); line-height: 1.1; letter-spacing: -.03em;
  display: flex; align-items: baseline; gap: 14px;
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.mmenu nav a small { font-size: 13px; font-weight: 500; color: var(--pink); letter-spacing: .1em; }
.mmenu.is-open nav a { opacity: 1; transform: none; }
.mmenu.is-open nav a:nth-child(1) { transition-delay: .2s; }
.mmenu.is-open nav a:nth-child(2) { transition-delay: .27s; }
.mmenu.is-open nav a:nth-child(3) { transition-delay: .34s; }
.mmenu__mail { font-size: 18px; color: var(--pink); opacity: 0; transition: opacity .6s .45s; }
.mmenu.is-open .mmenu__mail { opacity: 1; }

/* Section rail */
.rail {
  position: fixed; right: 22px; top: 50%; z-index: 80;
  display: flex; flex-direction: column; gap: 14px;
  transform: translateY(-50%);
}
.rail a { position: relative; display: block; width: 10px; height: 10px; }
.rail a::before {
  content: ""; position: absolute; inset: 0; border-radius: 99px;
  background: currentColor; opacity: .3;
  transition: opacity .3s, transform .5s var(--ease), background-color .3s;
}
.rail a.is-active::before { opacity: 1; background: var(--pink-hot); transform: scale(1.3); box-shadow: 0 0 16px var(--pink-hot); }
.rail a span {
  position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%);
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease);
}
.rail a:hover span { opacity: .9; transform: translate(0, -50%); }
.rail[data-theme="light"] { color: var(--ink); }

/* =========================================================
   Panels + stacked transition
   ========================================================= */
main { position: relative; }
.panel {
  position: sticky;
  top: var(--stick, 0px);
  --cover: 0;
  --enter: 0;
}
.panel:nth-child(1) { z-index: 1; }
.panel:nth-child(2) { z-index: 2; }
.panel:nth-child(3) { z-index: 3; }

.panel__inner {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  transform-origin: 50% calc(100% - 50svh);
  transform: scale(calc(1 - var(--cover) * .07)) translateZ(0);
  border-radius: calc(var(--enter) * 48px) calc(var(--enter) * 48px) calc(var(--cover) * 40px) calc(var(--cover) * 40px);
  will-change: transform;
}
.panel__inner::after {
  content: ""; position: absolute; inset: 0; z-index: 50; pointer-events: none;
  background: #07020a;
  opacity: calc(var(--cover) * .7);
}
.panel + .panel .panel__inner { box-shadow: 0 -40px 120px -30px rgba(0,0,0,.65); }

/* =========================================================
   01 HERO
   ========================================================= */
.panel--hero .panel__inner {
  display: flex; align-items: center;
  background:
    radial-gradient(90% 70% at 85% 30%, rgba(129,37,114,.35), transparent 60%),
    radial-gradient(60% 60% at 10% 100%, rgba(78,22,75,.5), transparent 70%),
    var(--plum-950);
}
.facets {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(120% 100% at 75% 40%, #000 20%, transparent 80%);
          mask-image: radial-gradient(120% 100% at 75% 40%, #000 20%, transparent 80%);
  opacity: 0; transition: opacity 2s ease .3s;
}
.is-ready .facets { opacity: 1; }
html:not(.js) .facets { display: none; }

.aurora { position: absolute; inset: -20%; pointer-events: none; filter: blur(80px); opacity: .75; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora i:nth-child(1) { width: 44vw; height: 44vw; left: 55%; top: 10%; background: #a32d90; opacity: .45; animation: drift1 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 36vw; height: 36vw; left: 70%; top: 45%; background: #ff80e6; opacity: .18; animation: drift2 22s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 50vw; height: 50vw; left: -10%; top: 60%; background: #4e164b; opacity: .6; animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-12vw, 8vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-18vw, -12vh) scale(.85); } }
@keyframes drift3 { to { transform: translate(14vw, -10vh) scale(1.1); } }

.grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
  padding-top: clamp(100px, 15vh, 140px); padding-bottom: clamp(80px, 12vh, 110px);
  transform: translateY(calc(var(--cover) * -80px));
  opacity: calc(1 - var(--cover) * 1.1);
}
.hero__copy { display: grid; gap: 28px; justify-items: start; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: .98;
  letter-spacing: -.045em;
  color: #fff;
}
.hero__title .line { display: block; white-space: nowrap; }

.rotator {
  position: relative; display: inline-block; vertical-align: top;
  height: 1.08em; clip-path: inset(-.05em -3em -.12em -.1em);
  width: var(--rw, auto);
  transition: width .7s var(--ease);
  padding-bottom: .1em; margin-bottom: -.1em;
}
.rotator__word {
  position: absolute; left: 0; top: 0;
  background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(110%); opacity: 0;
  transition: transform .9s var(--ease), opacity .6s;
  white-space: nowrap;
  padding-right: .06em;
}
.rotator__word.is-active { transform: none; opacity: 1; }
.rotator__word.is-out { transform: translateY(-110%); opacity: 0; }
html:not(.js) .rotator__word:not(.is-active) { display: none; }
html:not(.js) .rotator__word.is-active { position: static; }

.hero__lead { max-width: 560px; font-size: clamp(16px, 1.05rem + .2vw, 19px); color: rgba(244,233,241,.72); font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats {
  display: grid; grid-template-columns: repeat(3, auto); gap: 0; margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 26px;
}
.stats > div { padding-right: 34px; margin-right: 34px; border-right: 1px solid rgba(255,255,255,.1); }
.stats > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stats dt { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.stats dd { font-size: 13px; color: rgba(244,233,241,.55); max-width: 150px; line-height: 1.45; margin-top: 6px; }

/* 3D logo mark */
.hero__visual { position: relative; display: grid; place-items: center; }
.mark3d {
  --rx: 0deg; --ry: 0deg;
  position: relative; width: min(100%, 440px); aspect-ratio: 61/72;
  perspective: 1100px;
}
.mark3d__rot {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .9s var(--ease);
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
.mark3d__layer {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  transform: translate3d(0, 0, var(--z));
  transition: transform 1.6s var(--ease), opacity 1s ease;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.35));
}
.mark3d__layer:nth-child(1) { transition-delay: .05s; }
.mark3d__layer:nth-child(2) { transition-delay: .12s; }
.mark3d__layer:nth-child(3) { transition-delay: .19s; }
.mark3d__layer:nth-child(4) { transition-delay: .26s; }
.mark3d__layer:nth-child(5) { transition-delay: .33s; }
.mark3d__layer:nth-child(6) { transition-delay: .40s; }
.mark3d__layer:nth-child(7) { transition-delay: .47s; }
.js .mark3d__layer { transform: translate3d(var(--fx), var(--fy), calc(var(--z) * 3)) rotate(var(--fr)) scale(.6); opacity: 0; }
.js .is-ready .mark3d__layer { transform: translate3d(0, 0, var(--z)); opacity: 1; }
.js .is-ready .mark3d:hover .mark3d__layer { transform: translate3d(0, 0, calc(var(--z) * 1.9)); transition-duration: 1s; transition-delay: 0s; }
.mark3d__glow {
  position: absolute; inset: 10% 5%;
  background: radial-gradient(closest-side, rgba(224,95,198,.55), rgba(163,45,144,.2) 55%, transparent);
  filter: blur(40px);
  animation: glow 6s ease-in-out infinite alternate;
}
@keyframes glow { to { opacity: .6; transform: scale(1.12); } }
.mark3d__shadow {
  position: absolute; left: 12%; right: 12%; bottom: -10%; height: 40px;
  background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent);
  filter: blur(8px);
  animation: shadowPulse 8s ease-in-out infinite;
}
@keyframes shadowPulse { 50% { transform: scaleX(.85); opacity: .7; } }

.scrollcue {
  position: absolute; left: 50%; bottom: 28px; z-index: 4;
  display: grid; justify-items: center; gap: 10px;
  transform: translateX(-50%);
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.5);
  opacity: calc(1 - var(--cover) * 3);
}
.scrollcue__track { width: 22px; height: 36px; border-radius: 99px; border: 1.5px solid rgba(255,255,255,.3); position: relative; }
.scrollcue__track span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--pink-hot); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* Hero intro choreography */
.js .hero__title [data-split] .w > span { transition-delay: calc(.25s + var(--i, 0) * 70ms); }
.js .rotator { opacity: 0; transform: translateY(40%); transition: opacity .8s .5s, transform 1.1s .5s var(--ease), width .7s var(--ease); }
.is-ready .rotator { opacity: 1; transform: none; }

/* =========================================================
   02 SERVICES
   ========================================================= */
.panel--services .panel__inner {
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(163,45,144,.22), transparent 60%),
    radial-gradient(60% 40% at 0% 100%, rgba(78,22,75,.45), transparent 70%),
    var(--plum-925);
  padding-bottom: clamp(80px, 10vw, 140px);
}

.marquee {
  position: relative; z-index: 3;
  border-block: 1px solid rgba(255,255,255,.07);
  overflow: hidden; padding: 18px 0;
  opacity: var(--mq, 1);
  transform: translateY(calc((1 - var(--mq, 1)) * 16px));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(244,233,241,.55);
  animation: marquee 38s linear infinite;
}
.marquee__track i { font-style: normal; color: var(--pink-hot); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.shead { position: relative; z-index: 3; display: grid; gap: 22px; max-width: 900px; padding: clamp(70px, 9vw, 130px) 0 clamp(40px, 5vw, 64px); }
.shead__title, .cta__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.04em;
  color: #fff;
}
.shead__title em, .cta__title em {
  font-style: normal;
  background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shead__title em .w > span, .cta__title em .w > span { background: inherit; -webkit-background-clip: text; background-clip: text; }
.shead__lead { max-width: 600px; color: rgba(244,233,241,.66); font-weight: 300; font-size: clamp(16px, 1rem + .2vw, 19px); }

/* Bento */
.bento {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.card {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: 28px;
  min-height: 300px; padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  transition: transform .6s var(--ease), border-color .4s, opacity .9s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(224,95,198,.18), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(255,128,230,.8), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover { border-color: rgba(255,255,255,.14); }
.js .card[data-reveal].is-in:hover { transform: translateY(-4px); }

.card--wide { grid-column: span 2; }
.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__num { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: rgba(244,233,241,.4); }
.card__icon {
  width: 52px; height: 52px; padding: 12px; border-radius: 16px;
  fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  background: linear-gradient(135deg, rgba(163,45,144,.55), rgba(78,22,75,.55));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 30px -12px rgba(163,45,144,.9);
  transition: transform .6s var(--ease);
}
.card:hover .card__icon { transform: rotate(-8deg) scale(1.06); }
.card__body { display: grid; gap: 12px; margin-top: auto; position: relative; z-index: 2; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 1.2rem + .4vw, 26px); letter-spacing: -.02em; line-height: 1.15; color: #fff; }
.card p { color: rgba(244,233,241,.64); font-size: 15px; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips li {
  font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 99px;
  color: var(--pink); background: rgba(221,137,185,.08); border: 1px solid rgba(221,137,185,.18);
}

/* Wide cards get a side visual */
.card--wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); grid-template-rows: auto 1fr; column-gap: 28px; }
.card--wide .card__top { grid-column: 1 / -1; }
.card--wide .card__body { grid-column: 1; }
.card--wide .viz { grid-column: 2; grid-row: 2; align-self: end; }

.viz { position: relative; z-index: 1; pointer-events: none; }
.viz__bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.viz__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.2); }
.viz__bar i:first-child { background: #ff80e6; }
.viz__bar b { margin-left: 10px; height: 8px; flex: 1; border-radius: 4px; background: rgba(255,255,255,.07); }

/* browser viz */
.viz--browser {
  min-height: 190px; border-radius: 14px; overflow: hidden;
  background: rgba(10,3,10,.6); border: 1px solid rgba(255,255,255,.09);
  transform: perspective(900px) rotateY(-10deg) rotateX(4deg) translateX(10px);
  transition: transform .8s var(--ease);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.card:hover .viz--browser { transform: perspective(900px) rotateY(-2deg) rotateX(0) translateX(0); }
.viz__page { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.viz__page .s { display: block; height: 10px; border-radius: 5px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.viz__page .s::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,128,230,.35), transparent); transform: translateX(-100%); animation: shimmer 2.8s ease-in-out infinite; }
.viz__page .s--hero { grid-column: 1 / -1; height: 56px; background: linear-gradient(120deg, rgba(163,45,144,.6), rgba(221,137,185,.35)); }
.viz__page .s--l1 { grid-column: 1 / 3; }
.viz__page .s--l2 { grid-column: 1 / 2; }
.viz__page .s--c1, .viz__page .s--c2, .viz__page .s--c3 { height: 40px; }
.viz__page .s--c2::after { animation-delay: .3s; }
.viz__page .s--c3::after { animation-delay: .6s; }
@keyframes shimmer { 60%, 100% { transform: translateX(100%); } }
.viz__cursor {
  position: absolute; width: 14px; height: 14px; left: 60%; top: 60%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3l7 17 2.5-7.5L21 10z' fill='white' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: cursor 6s var(--ease-io) infinite;
}
@keyframes cursor {
  0% { left: 70%; top: 75%; }
  25% { left: 30%; top: 30%; }
  35% { left: 30%; top: 30%; transform: scale(.85); }
  40% { transform: scale(1); }
  65% { left: 80%; top: 50%; }
  100% { left: 70%; top: 75%; }
}

/* cloud viz */
.viz--cloud { width: 100%; max-width: 280px; height: auto; margin-left: auto; overflow: visible; }
.viz--cloud .links path { stroke: rgba(221,137,185,.25); stroke-width: 1; fill: none; stroke-dasharray: 3 4; animation: dash 12s linear infinite; }
.viz--cloud .nodes circle { fill: #2a0d27; stroke: rgba(221,137,185,.6); stroke-width: 1.2; }
.viz--cloud .pulses circle { fill: #ff80e6; filter: drop-shadow(0 0 4px #ff80e6); }
.viz--cloud .core { fill: #a32d90; filter: drop-shadow(0 0 12px rgba(224,95,198,.9)); }
.viz--cloud .core-ring { fill: none; stroke: #ff80e6; stroke-width: 1.4; transform-origin: 120px 80px; animation: ring 2.4s var(--ease) infinite; }
@keyframes dash { to { stroke-dashoffset: -140; } }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }

/* terminal viz */
.viz--term {
  border-radius: 14px; overflow: hidden;
  background: rgba(10,3,10,.7); border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.viz--term pre { margin: 0; padding: 14px 16px 16px; font: 12.5px/1.9 ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace; color: rgba(244,233,241,.75); white-space: pre; overflow: hidden; }
.viz--term b { color: var(--pink-hot); font-weight: 600; }
.viz--term em { font-style: normal; color: #7ef0b4; }
.t-line { display: inline-block; opacity: 0; transform: translateX(-6px); }
.is-in .t-line { animation: tline 6s steps(1) infinite, tslide 6s var(--ease) infinite; }
.is-in .t-line:nth-child(2) { animation-delay: .6s; }
.is-in .t-line:nth-child(3) { animation-delay: 1.2s; }
.is-in .t-line:nth-child(4) { animation-delay: 1.8s; }
@keyframes tline { 0% { opacity: 0; } 2% { opacity: 1; } 88% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes tslide { 0% { transform: translateX(-6px); } 6%, 100% { transform: none; } }
.t-caret { display: inline-block; width: 8px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--pink-hot); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* rack viz */
.viz--rack { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: rgba(10,3,10,.55); border: 1px solid rgba(255,255,255,.09); }
.rack { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.06); }
.rack i { width: 6px; height: 6px; border-radius: 50%; background: #7ef0b4; box-shadow: 0 0 8px #7ef0b4; animation: led 1.4s steps(2) infinite; }
.rack i:nth-child(2) { background: var(--pink-hot); box-shadow: 0 0 8px var(--pink-hot); animation-duration: .9s; }
.rack i:nth-child(3) { animation-duration: 2.1s; }
.rack:nth-child(2) i { animation-delay: .3s; }
.rack:nth-child(3) i { animation-delay: .7s; }
.rack span { margin-left: auto; width: 45%; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 3px, transparent 3px 6px); }
@keyframes led { 50% { opacity: .25; } }
.uptime { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 11px; }
.uptime b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #7ef0b4; letter-spacing: .06em; text-transform: uppercase; }
.uptime b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7ef0b4; box-shadow: 0 0 8px #7ef0b4; }
.bars { display: flex; gap: 2px; flex: 1; justify-content: flex-end; }
.bars i { width: 4px; height: 14px; border-radius: 1px; background: #7ef0b4; opacity: .75; transform-origin: bottom; }
.is-in .bars i { animation: bar .8s var(--ease) both; }
.bars i { animation-delay: calc(var(--k, 0) * 40ms + .3s) !important; }
@keyframes bar { from { transform: scaleY(.15); opacity: 0; } }

/* =========================================================
   03 CONTACT (light)
   ========================================================= */
.panel--contact .panel__inner {
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(221,137,185,.28), transparent 60%),
    radial-gradient(60% 50% at 0% 30%, rgba(163,45,144,.1), transparent 60%),
    var(--paper);
  color: var(--ink);
  padding: clamp(120px, 12vw, 170px) 0 clamp(70px, 8vw, 110px);
}
.panel--contact .eyebrow { color: var(--brand); }
.panel--contact .cta__title { color: var(--ink); }
.panel--contact .cta__title em { background: var(--grad); -webkit-background-clip: text; background-clip: text; }

.cta { display: grid; gap: 26px; justify-items: start; margin-bottom: clamp(48px, 6vw, 80px); }

.mailbig { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 10px; }
.mailbig__link {
  position: relative; display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 6.2vw, 88px); letter-spacing: -.045em; line-height: 1.05;
  color: var(--ink);
}
.mailbig__text {
  background: linear-gradient(90deg, var(--ink) 0 50%, var(--brand) 50% 100%);
  background-size: 200% 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position .8s var(--ease);
}
.mailbig__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.05em; height: .06em; min-height: 3px; border-radius: 4px;
  background: var(--grad); transform: scaleX(.18); transform-origin: left; transition: transform .8s var(--ease);
}
.mailbig__link:hover::after { transform: scaleX(1); }
.mailbig__link:hover .mailbig__text { background-position: -100% 0; }
.mailbig__arrow {
  flex: none; display: grid; place-items: center;
  width: .8em; height: .8em; border-radius: 50%;
  background: var(--grad-hot); color: #fff;
  box-shadow: 0 16px 40px -14px rgba(163,45,144,.8);
  transition: transform .6s var(--ease);
}
.mailbig__arrow svg { width: 45%; height: 45%; }
.mailbig__link:hover .mailbig__arrow { transform: rotate(45deg) scale(1.05); }

.copy {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 99px;
  font-size: 14px; font-weight: 500;
  color: var(--brand); border: 1px solid rgba(163,45,144,.25); background: rgba(255,255,255,.6);
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copy:hover { background: #fff; border-color: rgba(163,45,144,.5); }
.copy:active { transform: scale(.96); }
.copy--mini { height: 30px; width: 30px; padding: 0; justify-content: center; border-color: transparent; background: transparent; opacity: .55; }
.copy--mini:hover { opacity: 1; background: rgba(163,45,144,.08); border-color: transparent; }


.info {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "company ident bank bank"
    "ds map map map";
}
.icard {
  display: grid; align-content: start; gap: 10px;
  padding: 26px; border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(78,22,75,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 20px 50px -35px rgba(78,22,75,.45);
  backdrop-filter: blur(10px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .9s var(--ease);
}
.js .icard[data-reveal].is-in:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 30px 60px -35px rgba(78,22,75,.6); }
.info > :nth-child(1) { grid-area: company; }
.info > :nth-child(2) { grid-area: ident; }
.info > :nth-child(3) { grid-area: bank; }
.info > :nth-child(4) { grid-area: ds; }
.info > :nth-child(5) { grid-area: map; }
.icard__label { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.icard h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.icard--company { background: linear-gradient(145deg, #4e164b, #812572 60%, #a32d90); color: #fff; border: 0; box-shadow: 0 30px 60px -30px rgba(78,22,75,.8); position: relative; overflow: hidden; }
.icard--company::after { content: ""; position: absolute; right: -40px; bottom: -50px; width: 180px; height: 210px; background: url("../img/favicon.svg") center/contain no-repeat; opacity: .16; transform: rotate(-12deg); filter: brightness(2.2) saturate(.4); }
.icard--company .icard__label { color: var(--pink); }
.icard--company .muted { color: rgba(255,255,255,.65); }
.icard--company address { margin-top: 8px; line-height: 1.6; }
.icard a { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.kv { display: grid; gap: 4px; }
.kv > div { display: grid; }
.kv dt { font-size: 12px; color: var(--ink-soft); }
.kv dd { display: flex; align-items: center; gap: 4px; font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -.005em; font-variant-numeric: tabular-nums; margin-top: -2px; }
.kv dd span { overflow-wrap: anywhere; }
.badge {
  justify-self: start; display: inline-flex; align-items: center; gap: 7px; margin-top: 6px;
  padding: 6px 13px 6px 9px; border-radius: 99px;
  font-size: 13px; font-weight: 600; color: #0b7a4a; background: rgba(34,197,114,.12);
}
.badge svg { width: 16px; height: 16px; }

.map { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); border: 1px solid rgba(78,22,75,.08); box-shadow: 0 30px 60px -40px rgba(78,22,75,.55); }
.map__frame { position: relative; height: 100%; min-height: clamp(300px, 30vw, 400px); }
.map__frame iframe { position: absolute; inset: 0; }
.map__frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.02); }
.map__placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: repeating-linear-gradient(45deg, rgba(163,45,144,.04) 0 12px, transparent 12px 24px); }
.map__placeholder svg { width: 44px; height: 44px; fill: none; stroke: var(--brand); stroke-width: 1.6; animation: floaty 3s ease-in-out infinite; }
.map__cap {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 12px 12px 12px 20px; border-radius: 18px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -12px rgba(30,15,28,.35);
  font-size: 14px;
}
.map__cap a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 99px; font-weight: 600; font-size: 14px;
  color: #fff; background: var(--grad);
  transition: transform .3s var(--ease);
}
.map__cap a:hover { transform: translateY(-2px); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  position: relative; z-index: 4;
  background: var(--plum-950);
  color: rgba(244,233,241,.6);
  padding: clamp(60px, 7vw, 90px) 0 36px;
  overflow: hidden;
}
.footer::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 70%; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,128,230,.6), transparent);
}
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__logo svg { width: 180px; height: auto; aspect-ratio: 286/72; }
.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  color: #fff; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03);
  transition: transform .4s var(--ease), background-color .3s, border-color .3s;
}
.social a:hover { transform: translateY(-3px); background: var(--brand); border-color: var(--brand); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; }
.social svg.stroke .fill { fill: currentColor; stroke: none; }
.footer__legal { margin-top: 36px; max-width: 820px; font-size: 14px; line-height: 1.75; }
.footer__giant {
  width: 100%; height: auto; margin-top: clamp(40px, 6vw, 80px);
  fill: none; stroke: rgba(221,137,185,.22); stroke-width: .25;
}
.footer__giant use { fill: url(#logoGrad); fill-opacity: .06; }
.totop {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,233,241,.6);
  transition: color .3s;
}
.totop:hover { color: #fff; }
.totop svg { transition: transform .4s var(--ease); }
.totop:hover svg { transform: translateY(-3px); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  padding: 12px 20px; border-radius: 99px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.5);
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .4s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "company ident" "bank bank" "ds ds" "map map"; }
  .rail { display: none; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__bar { height: 60px; padding: 0 7px 0 18px; }
  .nav.menu-open .nav__bar { background: transparent !important; border-color: transparent !important; box-shadow: none !important; backdrop-filter: none; --logo-a: #d45bc0; --logo-b: #f6c6e2; color: #fff; }
  .nav.menu-open .nav__burger { background: rgba(255,255,255,.1); }

  .hero { grid-template-columns: 1fr; gap: 0; padding-top: 110px; padding-bottom: 100px; }
  .hero__visual { position: absolute; right: -8%; top: 90px; width: 58%; max-width: 340px; opacity: .55; z-index: -1; }

}

@media (max-width: 640px) {
  .hero__title { font-size: clamp(38px, 11.4vw, 60px); }
  .hero__title .line { white-space: normal; }
  .hero__visual { top: 80px; right: -18%; width: 70%; opacity: .35; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats > div { padding-right: 12px; margin-right: 12px; }
  .stats dt { font-size: 22px; }
  .stats dd { font-size: 12px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; justify-content: center; }

  .bento { grid-template-columns: 1fr; gap: 12px; }
  .card--wide { grid-column: auto; grid-template-columns: 1fr; row-gap: 22px; }
  .card--wide .viz { grid-column: 1; grid-row: auto; }
  .viz--cloud { max-width: 220px; margin-inline: auto; }
  .card { min-height: 0; padding: 22px; gap: 22px; }
  .viz--browser { transform: none; }

  .info { grid-template-columns: 1fr; grid-template-areas: "company" "ident" "bank" "ds" "map"; }
  .mailbig__link { font-size: clamp(26px, 8.6vw, 40px); gap: 12px; }
  .map__cap { position: static; margin: 0; border-radius: 0; box-shadow: none; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .scrollcue { display: none; }
  .panel__inner { border-radius: calc(var(--enter) * 28px) calc(var(--enter) * 28px) 0 0; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .panel__inner { transform: none !important; }
  .panel__inner::after { opacity: 0 !important; }
  .hero { transform: none !important; opacity: 1 !important; }
  .marquee__track { animation: none; }
  .t-line { opacity: 1; transform: none; }
}

/* late additions */
.icard__label--sub { margin-top: 14px; padding-top: 16px; border-top: 1px solid rgba(78,22,75,.1); }
.rail[data-theme="light"] a::before { background: var(--ink); }
.rail[data-theme="light"] a.is-active::before { background: var(--brand); box-shadow: 0 0 12px rgba(163,45,144,.6); }
.map { display: flex; flex-direction: column; }
.map__frame { flex: 1; }
