/* ==========================================================================
   TeamCode landing - teamcode.ir
   Dark-only brand theme. One accent (lime). Radius system: buttons/pills full,
   cards 24px, inner frames 14px.
   z-index scale: grain 90 > skip 100 > progress 70 > menu 60 > nav 50
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/vazirmatn-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0B0C0F;
  --bg-2: #0F1115;
  --surface: #14161B;
  --surface-2: #1A1D23;
  --line: rgba(237, 238, 232, 0.08);
  --line-2: rgba(237, 238, 232, 0.14);
  --text: #EDEEE8;
  --muted: #989CA6;
  --dim: #5F636D;
  --accent: #C6F24E;
  --accent-ink: #0B0C0F;
  --accent-soft: rgba(198, 242, 78, 0.12);

  --r-card: 24px;
  --r-frame: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

.skip {
  position: fixed; top: 12px; right: 12px; z-index: 100; padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* Grain: fixed, non-interactive, never on scrolling layers */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll progress (CSS scroll-driven where supported) */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress {
    display: block; position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 70;
    background: var(--accent); transform-origin: right; transform: scaleX(0);
    animation: progress linear both; animation-timeline: scroll(root);
  }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding-inline: 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; white-space: nowrap;
  transition: transform .5s var(--ease), background-color .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn--sm { --h: 44px; padding-inline: 18px; font-size: .9375rem; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary::before {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit;
  background: #E4FF8F; transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn--primary:hover::before { transform: none; }
.btn .ico { transition: transform .5s var(--ease); }
.btn:hover .ico { transform: translate(-3px, -3px); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(237, 238, 232, .06); border-color: rgba(237, 238, 232, .28); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background-color .4s, border-color .4s, backdrop-filter .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 12, 15, .72); border-color: var(--line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav__inner {
  height: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand__mark { width: 36px; height: 36px; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.brand__name { font-size: 1.25rem; letter-spacing: -0.02em; direction: ltr; }
.brand__name b { color: var(--accent); font-weight: 800; }
.nav__links { display: flex; gap: 6px; margin-inline-start: auto; }
.nav__links a {
  position: relative; padding: 8px 14px; border-radius: 999px; font-size: .9375rem; font-weight: 500; color: var(--muted);
  transition: color .3s, background-color .3s;
}
.nav__links a:hover { color: var(--text); background: rgba(237, 238, 232, .05); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%);
}
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; margin-inline-start: auto; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .5s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 60; padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  background: rgba(11, 12, 15, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0 at calc(var(--gutter) + 22px) 36px); transition: clip-path .7s var(--ease-in-out);
}
.menu.is-open { clip-path: circle(150% at calc(var(--gutter) + 22px) 36px); }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu nav a {
  font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 800; line-height: 1.5; padding-block: 4px;
  opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease), color .3s;
}
.menu nav a:hover { color: var(--accent); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(1) { transition-delay: .12s; }
.menu.is-open nav a:nth-child(2) { transition-delay: .17s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .22s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .27s; }
.menu.is-open nav a:nth-child(5) { transition-delay: .32s; color: var(--accent); }
.menu__contact { display: flex; gap: 20px; color: var(--muted); font-weight: 600; }
.nav.menu-open { z-index: 61; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100dvh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 32px) 0 64px; overflow: hidden; isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.hero__aurora::before, .hero__aurora::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px);
}
.hero__aurora::before {
  width: 46vw; height: 46vw; left: -8vw; top: 4vh;
  background: radial-gradient(circle, rgba(198, 242, 78, .16), transparent 65%);
  animation: drift 18s var(--ease-in-out) infinite alternate;
}
.hero__aurora::after {
  width: 38vw; height: 38vw; right: -10vw; bottom: -18vh;
  background: radial-gradient(circle, rgba(76, 201, 176, .10), transparent 65%);
  animation: drift 22s var(--ease-in-out) infinite alternate-reverse;
}
@keyframes drift { to { transform: translate(6vw, 8vh) scale(1.15); } }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(237, 238, 232, .03); font-size: .875rem; font-weight: 600; color: var(--muted);
}
.badge__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.badge__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }

.hero__title {
  margin-top: 22px; font-size: clamp(2.1rem, 3.9vw, 3.45rem); font-weight: 900; line-height: 1.4;
}
.line { display: block; overflow: hidden; padding-block: .06em; margin-block: -.06em; }
.line__in { display: block; }
.rotator {
  position: relative; display: inline-grid; vertical-align: bottom; color: var(--accent);
  transition: width .7s var(--ease); overflow: hidden; padding-block: .06em; margin-block: -.06em;
}
.rotator__word {
  grid-area: 1 / 1; justify-self: start; width: max-content; white-space: nowrap; opacity: 0; transform: translateY(70%); filter: blur(6px);
  transition: transform .8s var(--ease), opacity .5s, filter .6s;
}
.rotator__word.is-active { opacity: 1; transform: none; filter: none; }
.rotator__word.is-leaving { opacity: 0; transform: translateY(-70%); filter: blur(6px); }
.rotator::after {
  content: ""; position: absolute; inset: auto 0 .12em 0; height: .07em; border-radius: 1em; background: var(--accent);
  opacity: .35; transform-origin: right; animation: underline 2.8s var(--ease) infinite;
}
@keyframes underline { 0% { transform: scaleX(0); } 35%, 75% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

.hero__lead { margin-top: 22px; max-width: 34rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 2; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Hero load choreography */
.hero .line__in { animation: rise 1.1s var(--ease) both; animation-delay: calc(.15s + var(--d, 0) * .12s); }
.hero .reveal-up { animation: fadeUp 1s var(--ease) both; animation-delay: calc(.15s + var(--d, 0) * .12s); }
@keyframes rise { from { transform: translateY(110%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }

/* Hero visual: two real project shots in 3D, pointer-driven tilt */
.hero__visual { position: relative; perspective: 1400px; margin-inline-end: clamp(-90px, -5vw, 0px); }
.stage {
  --rx: 0deg; --ry: 0deg; --px: 0; --py: 0;
  position: relative; padding: 6% 0 12% 6%;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 1.2s var(--ease);
}
.device { position: relative; z-index: 1; }
.device__layer { transition: transform 1.2s var(--ease); }
.device--browser .device__layer { transform: translate(calc(var(--px) * -10px), calc(var(--py) * -8px)); }
.device--phone .device__layer { transform: translate(calc(var(--px) * 22px), calc(var(--py) * 16px)); }
.device--browser {
  width: 94%; margin-inline-start: auto;
  animation: browserIn 1.4s var(--ease) .35s both;
}
.device--phone {
  position: absolute; z-index: 2; left: 2%; bottom: 0; width: 30%;
  animation: phoneIn 1.4s var(--ease) .6s both;
}
.device--phone img { filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .6)); animation: bob 6s var(--ease-in-out) 2s infinite alternate; }
@keyframes browserIn { from { opacity: 0; transform: translateY(60px) rotateX(22deg) rotateY(-12deg) scale(.92); } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(120px) rotate(-8deg); } }
@keyframes bob { to { transform: translateY(-14px); } }

.browser {
  border-radius: var(--r-frame); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.browser__bar {
  height: 34px; display: flex; align-items: center; gap: 6px; padding-inline: 12px; direction: ltr;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3D45; }
.browser__bar i:first-child { background: #FF5F57; } .browser__bar i:nth-child(2) { background: #FEBC2E; } .browser__bar i:nth-child(3) { background: #28C840; }
.browser__bar span {
  margin-inline: auto; transform: translateX(-21px); font-size: .75rem; color: var(--muted); padding: 2px 14px;
  border-radius: 999px; background: rgba(255, 255, 255, .05); font-family: ui-monospace, Consolas, monospace;
}

.orbit { position: absolute; z-index: 0; inset: -6% -4% 0 4%; pointer-events: none; }
.orbit::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(198, 242, 78, .18);
  animation: spin 60s linear infinite;
}
.orbit span { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.orbit span::before {
  content: ""; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 6px rgba(198, 242, 78, .12);
}
.orbit span:nth-child(2) { animation-duration: 22s; animation-direction: reverse; }
.orbit span:nth-child(2)::before { top: 8%; left: 30%; width: 6px; height: 6px; background: var(--text); box-shadow: none; opacity: .5; }
.orbit span:nth-child(3) { animation-duration: 30s; }
.orbit span:nth-child(3)::before { top: auto; bottom: 6%; left: 70%; width: 5px; height: 5px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tech stack marquee ---------- */
.stack { padding: 28px 0 40px; }
.stack__label { text-align: center; color: var(--dim); font-size: .9375rem; font-weight: 500; margin-bottom: 22px; }
.marquee {
  overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; }
.marquee.is-running .marquee__track { animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; gap: 64px; padding-inline: 32px; }
.marquee__list svg { width: 34px; height: 34px; fill: currentColor; color: #80848E; transition: color .3s, transform .4s var(--ease); }
.marquee__list li:hover svg { color: var(--c, var(--text)); transform: scale(1.15); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 140px); }
.section__head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head h2, .contact__head h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 900; line-height: 1.35; text-wrap: balance;
}
.section__lead { margin-top: 14px; color: var(--muted); max-width: 38rem; font-size: 1.125rem; }

/* Split headings: word-by-word rise (words never split into letters: Persian glyphs must stay joined) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .08em; margin-block: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.split.in .w > span { transform: none; }

/* Generic reveal (JS adds .in via IntersectionObserver) */
.js [data-reveal], .js .section .reveal-up, .js .contact .reveal-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].in, .js .section .reveal-up.in, .js .contact .reveal-up.in { opacity: 1; transform: none; }

/* ---------- Services bento ---------- */
.bento { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column;
}
.card--web { grid-row: span 2; }
.card__body { padding: 28px; position: relative; }
.card__icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent); font-size: 1.2rem;
}
.card h3 { margin-top: 16px; font-size: clamp(1.35rem, 2vw, 1.65rem); font-weight: 800; line-height: 1.5; }
.card p { margin-top: 8px; color: var(--muted); max-width: 34rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .875rem; color: var(--muted); }

/* Spotlight border + glow following the pointer */
.spot { --mx: 50%; --my: 50%; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(198, 242, 78, .08), transparent 60%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(198, 242, 78, .7), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

.card__art { position: relative; flex: 1; min-height: 200px; overflow: hidden; }
.card__art::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent); -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent);
}
/* Art loops run only while the card is visible (.in) */
.card__art * { animation-play-state: paused !important; }
.card.live .card__art * { animation-play-state: running !important; }

/* Website art: a page wireframe assembling itself */
.art-web { min-height: 360px; display: grid; place-items: end center; padding: 48px 40px 0; }
.wf {
  position: relative; width: min(100%, 520px); border-radius: 16px 16px 0 0; padding: 18px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-bottom: 0;
  display: grid; gap: 12px; box-shadow: 0 -20px 60px -20px rgba(198, 242, 78, .15);
}
.wf > span { display: block; border-radius: 8px; animation: build 6s var(--ease) infinite; transform-origin: right; }
.wf__bar { height: 14px; width: 40%; background: rgba(237, 238, 232, .14); }
.wf__hero { height: 150px; background: linear-gradient(120deg, rgba(198, 242, 78, .85), rgba(198, 242, 78, .25) 60%, rgba(76, 201, 176, .25)); animation-delay: .25s !important; }
.wf__row { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 10px; animation-delay: .5s !important; }
.wf__row i { height: 78px; border-radius: 8px; background: rgba(237, 238, 232, .07); border: 1px solid var(--line); }
.wf__line { height: 10px; width: 80%; background: rgba(237, 238, 232, .1); animation-delay: .75s !important; }
.wf__line--short { width: 55%; animation-delay: .9s !important; }
@keyframes build {
  0% { opacity: 0; transform: scaleX(.3) translateY(10px); }
  12%, 82% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* App art: notifications landing on a phone */
.art-app { display: grid; place-items: end center; padding-top: 28px; min-height: 210px; }
.mini-phone {
  position: relative; width: 170px; height: 190px; border-radius: 28px 28px 0 0; border: 2px solid var(--line-2); border-bottom: 0;
  background: linear-gradient(to bottom, var(--surface-2), var(--surface)); padding: 30px 12px 0; display: grid; align-content: start; gap: 8px;
}
.mini-phone::before { content: ""; position: absolute; top: 10px; left: 50%; width: 50px; height: 8px; border-radius: 8px; background: rgba(237, 238, 232, .12); transform: translateX(-50%); }
.np { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: rgba(237, 238, 232, .06); border: 1px solid var(--line); animation: notify 5.4s var(--ease) infinite; }
.np i { width: 18px; height: 18px; border-radius: 6px; background: var(--accent); flex: none; }
.np b { height: 7px; border-radius: 4px; background: rgba(237, 238, 232, .18); flex: 1; }
.np--2 { animation-delay: .5s !important; } .np--2 i { background: #4CC9B0; }
.np--3 { animation-delay: 1s !important; } .np--3 b { flex: .6; }
@keyframes notify {
  0% { opacity: 0; transform: translateY(-14px) scale(.9); }
  10%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateX(20px); }
}

/* Server art: rack with live LEDs + heartbeat */
.art-server { display: grid; place-items: center; min-height: 230px; padding: 28px 28px 52px; }
.rack { width: min(100%, 260px); display: grid; gap: 8px; }
.unit {
  height: 34px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 6px; padding-inline: 12px; direction: ltr;
}
.unit i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: led 1.6s steps(1) infinite; }
.unit i:nth-child(2) { background: #4CC9B0; animation-duration: 2.3s; animation-delay: .4s !important; }
.unit:nth-child(2) i { animation-delay: .7s !important; }
.unit:nth-child(3) i { animation-delay: 1.1s !important; }
.unit b { margin-left: auto; width: 46%; height: 6px; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(237, 238, 232, .14) 0 5px, transparent 5px 9px); }
@keyframes led { 50% { opacity: .2; } }
.pulse-line { position: absolute; inset: auto 0 8px 0; width: 100%; height: 40px; opacity: .55; }
.pulse-line path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 260; stroke-dashoffset: 260; animation: beat 3s linear infinite; }
@keyframes beat { to { stroke-dashoffset: -260; } }

/* ---------- Work: sticky stacked projects ---------- */
.projects { display: grid; gap: 28px; }
.project {
  position: sticky; top: calc(var(--nav-h) + 20px);
  display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(20px, 3vw, 36px); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .7);
  transform-origin: top center; transition: transform .8s var(--ease), filter .8s, opacity .9s var(--ease);
}
.project.is-behind { transform: scale(.94); filter: brightness(.55); }
.project__type { display: inline-block; font-size: .875rem; font-weight: 600; color: var(--accent); }
.project h3 { margin-top: 6px; font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 900; line-height: 1.4; }
.project p { margin-top: 10px; color: var(--muted); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 700; padding-bottom: 4px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat right bottom / 0 2px; transition: background-size .5s var(--ease), color .3s;
}
.link-arrow:hover { background-size: 100% 2px; color: var(--accent); }
.link-arrow .ico { transition: transform .5s var(--ease); }
.link-arrow:hover .ico { transform: translate(-3px, -3px); }
.project__media { border-radius: 18px; overflow: hidden; background: var(--bg-2); }
.project__media img { width: 100%; transition: transform 1.2s var(--ease); }
.project__media--browser { padding: clamp(14px, 2.4vw, 28px); background: radial-gradient(120% 100% at 0% 100%, rgba(198, 242, 78, .16), transparent 60%), var(--bg-2); }
.project:hover .project__media > img, .project:hover .browser img { transform: scale(1.035); }
.js .project__media { clip-path: inset(18% 0 0 0 round 18px); transition: clip-path 1.3s var(--ease) .1s; }
.js .project.in .project__media { clip-path: inset(0 0 0 0 round 18px); }

/* ---------- Manifesto: words fill as you scroll ---------- */
.manifesto__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.manifesto__text { font-size: clamp(1.6rem, 3.1vw, 2.55rem); font-weight: 800; line-height: 1.75; view-timeline-name: --manifesto; }
.manifesto__text .mw { color: rgba(237, 238, 232, .16); transition: color .6s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.manifesto__text.in .mw { color: var(--text); }
.sda .manifesto__text .mw {
  transition: none; animation: fillWord linear both; animation-timeline: --manifesto;
  animation-range: cover calc(18% + var(--p) * 36%) cover calc(23% + var(--p) * 36%);
}
@keyframes fillWord { from { color: rgba(237, 238, 232, .16); } to { color: var(--text); } }
.manifesto__text .mw--hl { color: rgba(198, 242, 78, .2); }
.manifesto__text.in .mw--hl { color: var(--accent); }
.sda .manifesto__text .mw--hl { animation-name: fillHl; }
@keyframes fillHl { from { color: rgba(198, 242, 78, .2); } to { color: var(--accent); } }

.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.perks li { display: grid; gap: 10px; }
.perks .ico { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.perks h3 { font-size: 1.125rem; font-weight: 800; line-height: 1.6; }
.perks p { color: var(--muted); font-size: .9375rem; line-height: 1.85; margin-top: 2px; }

/* ---------- Process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps::before, .steps::after {
  content: ""; position: absolute; top: 31px; right: 32px; left: calc((100% - 84px) / 4 - 32px); height: 2px; border-radius: 2px;
}
.steps::before { background: var(--line-2); }
.steps::after { background: linear-gradient(to left, var(--accent), #4CC9B0); transform: scaleX(0); transform-origin: right; transition: transform 2.2s var(--ease-in-out) .2s; }
.steps.in::after { transform: none; }
.step { position: relative; z-index: 1; }
.step__dot {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2); color: var(--muted); font-size: 1.35rem;
  transition: background-color .6s, color .6s, border-color .6s, box-shadow .6s;
  transition-delay: calc(.3s + var(--d, 0) * .45s);
}
.steps.in .step__dot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 0 0 8px var(--bg), 0 0 0 9px rgba(198, 242, 78, .25); }
.step h3 { margin-top: 22px; font-size: 1.35rem; font-weight: 800; line-height: 1.5; }
.step p { margin-top: 6px; color: var(--muted); font-size: .9875rem; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__grid .section__head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
.faq__list { display: grid; gap: 12px; }
.faq details {
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, background-color .3s;
  interpolate-size: allow-keywords;
}
.faq details:hover { border-color: var(--line-2); }
.faq details[open] { background: var(--surface-2); border-color: rgba(198, 242, 78, .3); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-weight: 700; font-size: 1.0625rem; line-height: 1.7;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico {
  width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(237, 238, 232, .06);
  transition: transform .5s var(--ease), background-color .3s, color .3s;
}
.faq details[open] summary .ico { transform: rotate(135deg); background: var(--accent); color: var(--accent-ink); }
.faq__a { padding: 0 24px 22px; color: var(--muted); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; isolation: isolate; }
.contact__glow {
  --gx: 50%; --gy: 40%;
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--gx) var(--gy), rgba(198, 242, 78, .10), transparent 60%);
  transition: background-position .3s;
}
.contact__head { text-align: center; max-width: 52rem; margin: 0 auto clamp(40px, 6vw, 64px); }
.contact__head .section__lead { margin-inline: auto; }
.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.channel {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 4px; align-content: start;
  padding: 28px; min-height: 230px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .4s, transform .6s var(--ease);
}
.channel__icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; margin-bottom: auto;
  background: rgba(237, 238, 232, .06); font-size: 1.6rem; transition: background-color .4s, color .4s, transform .6s var(--ease);
}
.channel:hover .channel__icon { background: var(--accent); color: var(--accent-ink); transform: rotate(-8deg) scale(1.06); }
.channel__name { margin-top: 36px; font-size: 1.5rem; font-weight: 800; }
.channel__value { color: var(--muted); font-size: 1rem; text-align: right; }
.channel__arrow { position: absolute; top: 28px; left: 28px; width: 28px; height: 28px; color: var(--dim); transition: transform .5s var(--ease), color .3s; }
.channel:hover .channel__arrow { color: var(--accent); transform: translate(-4px, -4px); }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin-top: 14px; color: var(--muted); max-width: 26rem; font-size: .9375rem; }
.footer__col { display: grid; gap: 8px; align-content: start; }
.footer__col h2 { font-size: .9375rem; font-weight: 700; color: var(--dim); margin-bottom: 6px; }
.footer__col a { color: var(--muted); width: fit-content; transition: color .3s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-block: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: .875rem; }
.to-top { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); transition: background-color .3s, color .3s, transform .5s var(--ease); }
.to-top:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }
.footer__giant {
  font-size: clamp(5rem, 21vw, 19rem); font-weight: 900; line-height: .8; text-align: center; direction: ltr; letter-spacing: -0.05em;
  color: transparent; margin-bottom: -.12em; user-select: none;
  background: linear-gradient(to bottom, rgba(198, 242, 78, .13), rgba(237, 238, 232, .02) 75%); -webkit-background-clip: text; background-clip: text;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .channels { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 640px; width: 100%; margin-inline: auto; }
  .hero__grid { gap: 48px; }
  .manifesto__grid, .faq__grid { grid-template-columns: 1fr; }
  .faq__grid .section__head { position: static; margin-bottom: 8px; }
  .project { grid-template-columns: 1fr; }
  .project__media { order: -1; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; margin-inline-start: 0; }
  .nav__cta { margin-inline-start: auto; }
  .bento { grid-template-columns: 1fr; }
  .card--web { grid-row: auto; }
  .art-web { min-height: 260px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before, .steps::after { display: none; }
  .channels { grid-template-columns: 1fr; }
  .channel { min-height: 0; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; }
  .channel__icon { grid-row: span 2; margin-bottom: 0; }
  .channel__name { margin-top: 0; font-size: 1.25rem; line-height: 1.5; }
  .channel__arrow { top: 50%; transform: translateY(-50%); }
  .channel:hover .channel__arrow { transform: translate(-4px, -50%); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .nav__cta { display: none; }
  .nav__toggle { margin-inline-start: auto; }
  .hero { padding-top: calc(var(--nav-h) + 20px); }
  .hero__ctas .btn { flex: 1; }
  .stage { padding: 4% 0 14% 4%; }
  .perks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .card__body, .channel { padding: 22px; }
  .project { position: relative; top: auto; }
  .faq summary { padding: 18px; font-size: 1rem; }
  .faq__a { padding: 0 18px 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .section .reveal-up, .js .contact .reveal-up { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
  .js .project__media { clip-path: none; }
  .manifesto__text .mw { color: var(--text); animation: none !important; }
  .manifesto__text .mw--hl { color: var(--accent); }
  .steps::after { transform: none; }
  .marquee.is-running .marquee__track { animation: none; }
  .hero__aurora, .orbit { display: none; }
  .card__art * { animation: none !important; }
}
