/* ==========================================================
   New Deer — homepage styles
   ========================================================== */
@font-face {
  font-family: "IRANYekanX";
  src: url("../fonts/IRANYekanXVF.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --fg: #f2f2f2;
  --muted: #8d8d92;
  --line: rgb(255 255 255 / 10%);
  --line-strong: rgb(255 255 255 / 22%);
  --green: #3ddc84;
  --red: #ff6b6b;
  --mono: "IRANYekanX", system-ui, sans-serif;
  --sans: "IRANYekanX", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --hud-opacity: 1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.is-loading, html.is-loading body { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-variation-settings: "dots" 2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
b { font-weight: 600; }
/* Persian: letter-spacing breaks letter joining */
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
input, button, textarea { font-variation-settings: "dots" 2; }

/* ---------- LOADER ---------- */
.loader { position: fixed; inset: 0; z-index: 2000; pointer-events: all; }
.loader.is-done { pointer-events: none; }
.loader__grid {
  position: absolute; inset: 0; display: grid;
  grid-template-columns: repeat(18, 1fr); grid-template-rows: repeat(18, 1fr);
}
.loader__grid i { background: #111113; display: block; margin: -0.5px; }
.loader__content {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 13px;
}
.loader__bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--fg); }

/* ---------- NOISE ---------- */
.noise {
  position: fixed; left: -25%; top: -25%; width: 150%; height: 150%;
  pointer-events: none; z-index: 99; opacity: .045;
  animation: noise 1s steps(12) infinite; will-change: transform;
}
@keyframes noise {
  0% { transform: translate3d(0, 0, 0) } 10% { transform: translate3d(-3%, 2%, 0) }
  20% { transform: translate3d(2%, -4%, 0) } 30% { transform: translate3d(-4%, -1%, 0) }
  40% { transform: translate3d(3%, 4%, 0) } 50% { transform: translate3d(-1%, -3%, 0) }
  60% { transform: translate3d(4%, 1%, 0) } 70% { transform: translate3d(-2%, 3%, 0) }
  80% { transform: translate3d(1%, -2%, 0) } 90% { transform: translate3d(-3%, -4%, 0) }
  100% { transform: translate3d(0, 0, 0) }
}

/* ---------- EDGE BLUR ---------- */
.edge-blur { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.edge-blur__top, .edge-blur__bottom {
  position: absolute; left: 0; width: 100%; height: 60px;
  background: rgb(0 0 0 / 6%);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.edge-blur__top { top: 0; mask-image: linear-gradient(#000, rgb(0 0 0 / 90%) 30%, transparent); -webkit-mask-image: linear-gradient(#000, rgb(0 0 0 / 90%) 30%, transparent); }
.edge-blur__bottom { bottom: 0; mask-image: linear-gradient(to top, #000, rgb(0 0 0 / 90%) 30%, transparent); -webkit-mask-image: linear-gradient(to top, #000, rgb(0 0 0 / 90%) 30%, transparent); }

/* ---------- FRAME ---------- */
.frame { position: fixed; inset: 10px; border: 1px solid var(--line); z-index: 999; pointer-events: none; }
.frame__cross { position: absolute; width: 9px; height: 9px; }
.frame__cross::before, .frame__cross::after { content: ""; position: absolute; background: #bdbdbd; }
.frame__cross::before { left: 0; top: 4px; width: 9px; height: 1px; }
.frame__cross::after { left: 4px; top: 0; width: 1px; height: 9px; }
.frame__cross--tl { left: -5px; top: -5px } .frame__cross--tr { right: -5px; top: -5px }
.frame__cross--bl { left: -5px; bottom: -5px } .frame__cross--br { right: -5px; bottom: -5px }

/* ---------- CURSOR LABEL ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 1500; pointer-events: none;
  padding: 4px 8px 5px; background: rgb(255 255 255 / 10%);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: 12px;
  opacity: 0; transform: translate3d(-9999px, -9999px, 0); transition: opacity .18s ease;
  will-change: transform, opacity;
}
.cursor::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 2px; background: #fff; }
.cursor.is-visible { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none !important; } }

/* ---------- RAIL (scroll progress) ---------- */
.sidenav {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 12;
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px; /* start = right in RTL */
}
.sidenav ul { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sidenav button {
  display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer;
  font-size: 11px; color: var(--muted);
}
.sidenav__dot {
  flex: none; width: 5px; height: 5px; border-radius: 3px; background: rgb(255 255 255 / 22%);
  transition: height .45s var(--ease), background .3s;
}
.sidenav__num { font-variant-numeric: tabular-nums; opacity: .5; transition: opacity .3s; }
.sidenav__name {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  transition: max-width .45s var(--ease), opacity .3s;
}
.sidenav li.is-passed .sidenav__dot { background: rgb(255 255 255 / 45%); }
.sidenav li.is-active .sidenav__dot { height: 22px; background: var(--fg); }
.sidenav li.is-active .sidenav__num { opacity: 1; color: var(--fg); }
.sidenav li.is-active .sidenav__name,
.sidenav button:hover .sidenav__name { max-width: 120px; opacity: 1; }
.sidenav button:hover .sidenav__dot { background: rgb(255 255 255 / 70%); }
.sidenav__ring { position: relative; width: 30px; height: 30px; margin-inline-start: -12.5px; } /* centered under the dots */
.sidenav__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sidenav__ring circle { fill: none; stroke-width: 1.5; stroke: var(--line); }
.sidenav__ring #ringProg { stroke: var(--fg); stroke-linecap: round; transition: stroke-dashoffset .15s linear; }
.sidenav__ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; color: var(--muted); }

/* ---------- HEADER ---------- */
.header {
  position: fixed; top: 10px; left: 10px; right: 10px; z-index: 1000;
  height: 52px; padding: 0 20px; display: flex; align-items: center; gap: 24px;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark, .hero__logo { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.logo__mark i, .hero__logo i { width: 5px; background: var(--fg); display: block; }
.logo__mark i:nth-child(1) { height: 100% } .logo__mark i:nth-child(2) { height: 75% } .logo__mark i:nth-child(3) { height: 100% }
.logo__img { height: 26px; width: auto; display: block; }
.logo__text { font-weight: 500; letter-spacing: .04em; white-space: nowrap; }

/* sound toggle: a clear button with state label; off = struck-through bars, on = live equalizer */
.soundToggle { position: relative; display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 13px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 999px;
  color: #a9a9ae; font-family: var(--mono); font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: border-color .3s, color .3s, background .3s; }
.soundToggle:hover { color: var(--fg); background: rgb(255 255 255 / 5%); }
.soundToggle:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; border-radius: 999px; }
.soundToggle__bars { position: relative; display: flex; gap: 2px; align-items: center; height: 14px; }
.soundToggle__bars i { width: 1.5px; height: 4px; background: currentColor; transition: height .3s; }
.soundToggle__bars::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 1.5px; background: currentColor;
  transform: rotate(-32deg); transition: transform .35s var(--ease), opacity .25s; }
.soundToggle.is-on { color: var(--fg); }
.soundToggle.is-on .soundToggle__bars::after { opacity: 0; transform: rotate(-32deg) scaleX(0); }
.soundToggle.is-on .soundToggle__bars i { animation: eq 1s ease-in-out infinite alternate; }
.soundToggle.is-on i:nth-child(2) { animation-delay: -.3s } .soundToggle.is-on i:nth-child(3) { animation-delay: -.6s }
.soundToggle.is-on i:nth-child(4) { animation-delay: -.1s } .soundToggle.is-on i:nth-child(5) { animation-delay: -.8s }
.soundToggle.is-on i:nth-child(6) { animation-delay: -.45s } .soundToggle.is-on i:nth-child(7) { animation-delay: -.2s }
/* first-visit hint: bubble under the button + a short nudge of the bars */
.soundToggle__hint { position: absolute; top: calc(100% + 12px); inset-inline-start: -1px; padding: 9px 13px; border-radius: 10px; background: var(--fg); color: var(--bg);
  font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .45s var(--ease); }
.soundToggle__hint::before { content: ""; position: absolute; top: -5px; inset-inline-start: 16px; width: 10px; height: 10px; background: var(--fg); transform: rotate(45deg); }
.soundToggle.has-hint { color: var(--fg); }
.soundToggle.has-hint .soundToggle__hint { opacity: 1; transform: none; }
.soundToggle.has-hint .soundToggle__bars i { animation: eq .5s ease-in-out 6 alternate; }
.soundToggle.has-hint i:nth-child(2n) { animation-delay: -.25s }
.soundToggle.has-hint::before { content: ""; position: absolute; inset: -1px; border: 1px solid var(--fg); border-radius: 999px; animation: soundPing 1.6s var(--ease) 3; pointer-events: none; }
@keyframes soundPing { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.35, 1.6); } }
@media (max-width: 900px) {
  .soundToggle { height: 30px; padding: 0 11px; }
  .soundToggle__label { display: none; }
  .soundToggle__hint { white-space: normal; width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .soundToggle.has-hint::before, .soundToggle.has-hint .soundToggle__bars i { animation: none; }
}
@keyframes eq { 0% { height: 2px } 100% { height: 14px } }

.header nav { margin-inline-start: auto; } /* RTL: logo + sound icon stay right, menu goes to the far left */
.menu { display: flex; position: relative; }
.menu li { position: relative; }
.menu__link { position: relative; display: block; padding: 10px 12px; font-size: 13px; white-space: nowrap; }
.menu__link::after { /* small corner tick like original */
  content: ""; position: absolute; left: 8px; top: 7px; width: 3px; height: 3px;
  border-top: 1px solid var(--fg); border-left: 1px solid var(--fg); opacity: .8;
}
.menu__hover {
  position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: 0;
  border: 1px solid var(--line); transition: opacity .18s ease, transform .35s var(--ease), width .35s var(--ease), height .35s var(--ease);
}
.menu__hover.is-visible { opacity: 1; }
.c { position: absolute; width: 5px; height: 5px; }
.c::before, .c::after { content: ""; position: absolute; background: #d9d9d9; left: 0; top: 0; }
.c::before { width: 5px; height: 1px; } .c::after { width: 1px; height: 5px; }
.c.tl { left: -3px; top: -3px } .c.tr { right: -3px; top: -3px; transform: rotate(90deg) }
.c.br { right: -3px; bottom: -3px; transform: rotate(180deg) } .c.bl { left: -3px; bottom: -3px; transform: rotate(270deg) }

/* submenu (services) */
.submenu {
  position: absolute; top: calc(100% + 8px); right: 0; width: 330px; padding: 8px;
  background: rgb(16 16 18 / 82%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .35s var(--ease), visibility .25s;
}
.submenu::before { content: ""; position: absolute; inset: -10px 0 auto 0; height: 10px; } /* hover bridge */
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 12px 14px; transition: background .2s; }
.submenu a:hover { background: rgb(255 255 255 / 5%); }
.submenu b { display: block; font-size: 13px; font-weight: 650; margin-bottom: 4px; }
.submenu span { display: block; font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.8; }
.submenu--simple { width: 220px; }
.submenu--simple b { margin: 0; font-weight: 500; }
.has-sub--more .submenu { right: auto; left: 0; } /* last item in RTL: open toward the page */
.menu__link--more::after { display: none; }
.menu__link--more { padding-left: 24px; }
.menu__link--more::before {
  content: ""; position: absolute; left: 10px; top: 50%; width: 5px; height: 5px; margin-top: -4px;
  border-right: 1px solid var(--fg); border-bottom: 1px solid var(--fg); transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
.has-sub--more:hover .menu__link--more::before { transform: translateY(2px) rotate(225deg); }
.mnav__label { font-size: 24px; font-weight: 500; color: var(--muted); }
.tag-soon { font-style: normal; font-size: 10px; font-weight: 400; color: var(--muted); border: 1px solid var(--line); padding: 1px 6px; margin-inline-start: 6px; }

/* burger + mobile menu */
.burger { display: none; width: 34px; height: 34px; position: relative; margin-inline-start: auto; }
.burger i { position: absolute; left: 7px; right: 7px; height: 1px; background: var(--fg); transition: transform .35s var(--ease); }
.burger i:nth-child(1) { top: 13px } .burger i:nth-child(2) { top: 20px }
.menu-open .burger i:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mnav {
  position: fixed; inset: 0; z-index: 998; background: rgb(11 11 12 / 94%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; padding: 90px 32px 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.menu-open .mnav { opacity: 1; visibility: visible; }
.mnav ul { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.mnav li > a { font-size: 24px; font-weight: 500; }
.mnav__sub { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 4px; border-inline-start: 1px solid var(--line); margin-top: 8px; }
.mnav__sub a { font-size: 14px; color: #aaa; }

/* ---------- HUD (bottom fixed) ---------- */
.hud {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50; height: 62px;
  display: flex; align-items: flex-end; font-family: var(--mono); font-size: 12px;
  pointer-events: none;
}
.hud__left, .hud__scroll, .hud__nums { opacity: var(--hud-opacity); }
.hud__left { position: relative; flex: 1; height: 100%; }
.quote { position: absolute; right: 8px; bottom: 74px; display: flex; gap: 12px; align-items: center; font-family: var(--sans); text-transform: none; font-size: 13px; color: #bbb; }
.quote__avatar { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #777, #222 70%); border: 1px solid var(--line-strong); }
.tickers { display: flex; align-items: center; height: 62px; border-top: 1px solid var(--line); width: min(640px, calc(50vw - 110px)); }
.ticker { display: flex; gap: 10px; align-items: center; padding-inline: 18px; flex: 1; white-space: nowrap; }
.ticker__icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #1d1d20; font-family: var(--sans); font-size: 13px; }
.ticker b { display: block; font-size: 12px; font-weight: 600; }
.ticker__val { font-size: 12px; color: #ccc; direction: ltr; unicode-bidi: isolate; }
.ticker__val em { font-style: normal; margin-inline-start: 6px; }
.ticker__val em.up { color: var(--green) } .ticker__val em.down { color: var(--red) }
.ticker__val.flash { animation: flash .6s; }
@keyframes flash { 0% { color: #fff; text-shadow: 0 0 8px #fff } 100% { } }
.ticker__div { width: 1px; height: 34px; background: var(--line); }
.hud__scroll { position: absolute; left: 50%; transform: translateX(-50%); bottom: 22px; display: flex; gap: 8px; align-items: center; pointer-events: auto; cursor: pointer; padding: 8px 12px; transition: color .3s; }
.hud__scroll:hover { color: #fff; }
.hud__scroll:hover .hud__scroll-arrow { animation-duration: .7s; }
.hud__scroll-arrow { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px) } }
.hud__nums { display: flex; gap: 18px; align-items: center; padding: 0 20px 18px; }
.hud__nums div { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.hud__nums span { color: var(--muted); font-size: 10px; }
.hud__nums b { font-weight: 500; font-variant-numeric: tabular-nums; min-width: 6ch; text-align: right; }
.hud__nums-div { width: 1px; height: 26px; background: var(--line); }

/* ---------- HERO 3D ---------- */
.hero3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 45%, rgb(255 255 255 / 4.5%), transparent 70%),
    radial-gradient(30% 30% at 20% 80%, rgb(120 120 140 / 5%), transparent 70%);
  animation: glow 12s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: scale(1.15) translateY(-3%); opacity: .7; } }

/* faint light rays falling from the top of the hero */
.rays {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;

  opacity: 0; transition: opacity 2.5s ease .4s;
}
.is-ready .rays.is-scrolling { transition: none; }
.is-ready .rays { opacity: var(--rays, 1); }
/* volumetric light: two pre-rendered haze layers (canvas, drawn once) that slowly
   crossfade and drift, plus a faint pool of light on the floor */
.rays canvas {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  will-change: opacity;
}
.rays canvas:nth-of-type(1) { animation: hazeA 9s ease-in-out infinite alternate; }
.rays canvas:nth-of-type(2) { animation: hazeB 13s ease-in-out infinite alternate; }
/* only a slow breathing crossfade — no movement, no rotation */
@keyframes hazeA { 0% { opacity: 1 } 100% { opacity: .4 } }
@keyframes hazeB { 0% { opacity: .3 } 100% { opacity: 1 } }
.rays__floor {
  position: absolute; left: 50%; bottom: 7%; width: 220px; height: 34px; margin-left: -110px;
  background: radial-gradient(50% 50% at 50% 50%, rgb(255 255 255 / 16%), rgb(255 255 255 / 4%) 55%, transparent 75%);
  animation: floor 9s ease-in-out infinite alternate;
}
@keyframes floor { from { opacity: .55 } to { opacity: 1 } }

main { position: relative; z-index: 5; }
.hero { height: 100vh; min-height: 640px; display: grid; place-items: center; text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; will-change: transform, opacity, filter; }
.hero__logo { height: 44px; width: auto; } .hero__logo i { width: 6px; }
.hero__logo i:nth-child(1) { height: 100% } .hero__logo i:nth-child(2) { height: 75% } .hero__logo i:nth-child(3) { height: 100% }
.hero h1 { font-size: clamp(32px, 4vw, 58px); font-weight: 250; line-height: 1.3; }
.hero h1 b { font-weight: 850; }
.hero h1 .x { font-weight: 200; opacity: .7; }
.hero p { color: #c9c9cc; font-size: 16px; line-height: 1.9; max-width: 680px; text-wrap: balance; }
.hero p b { color: #fff; font-weight: 700; }
.hero__inner > * { opacity: 0; }

/* ---------- BUTTONS (corner brackets) ---------- */
.btn {
  --g: 4px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; font-family: var(--mono); font-weight: 650; font-size: 14px; border: 1px solid transparent; transition: border-color .3s, background .3s;
}
.btn::before, .btn::after, .btn span::before, .btn span::after {
  content: ""; position: absolute; width: 6px; height: 6px; transition: transform .35s var(--ease);
  border-color: #cfcfcf; border-style: solid; border-width: 0;
}
.btn::before { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.btn::after { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.btn span::before { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.btn span::after { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.btn:hover { border-color: var(--line); background: rgb(255 255 255 / 4%); }
.btn:hover::before { transform: translate(calc(var(--g) * -1), calc(var(--g) * -1)); }
.btn:hover::after { transform: translate(var(--g), var(--g)); }
.btn:hover span::before { transform: translate(var(--g), calc(var(--g) * -1)); }
.btn:hover span::after { transform: translate(calc(var(--g) * -1), var(--g)); }
/* solid primary button: white fill, dark text, corner brackets stay outside */
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 700; }
.btn--solid::before, .btn--solid::after, .btn--solid span::before, .btn--solid span::after { border-color: var(--fg); }
.btn--solid:hover { background: #dcdcdf; border-color: #dcdcdf; box-shadow: 0 0 40px rgb(255 255 255 / 12%); }
.btn--solid::before { left: -6px; top: -6px; } .btn--solid::after { right: -6px; bottom: -6px; }
.btn--solid span::before { right: -6px; top: -6px; } .btn--solid span::after { left: -6px; bottom: -6px; }
.btn--ghost { color: #8a8a8f; }
.btn--ghost:hover { color: var(--fg); }

/* ---------- SECTIONS ---------- */
.section { position: relative; padding: 18vh 0; }
.container { width: min(1180px, calc(100% - 120px)); margin: 0 auto; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tags li + li::before { content: "/"; margin: 0 10px; opacity: .6; }
h2 { font-size: clamp(24px, 2.5vw, 38px); font-weight: 300; line-height: 1.55; max-width: 900px; }
h2 b { font-weight: 800; }
h2 .ico { display: inline-block; font-size: .8em; margin: 0 .1em; transform: translateY(-.05em); }
.ico--green { color: var(--green); } .ico--violet { color: #a07bff; }
.brand { display: inline-block; text-transform: none; font-weight: 800; }
.brand--be { color: #4a7bff; } .brand--dr { color: #ea4c89; font-style: italic; font-family: Georgia, serif; font-weight: 400; }
.bio { color: #bdbdc2; font-size: 15px; line-height: 2; }
.btnGroup { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

/* word split reveal */
.w { display: inline-block; will-change: transform, opacity, filter; }

/* logos row */
/* client logos as floating "sticker" tiles: tilted, bobbing out of sync, straighten on hover */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 16px; margin-top: 22px; max-width: 980px; direction: ltr; }
.logos li {
  position: relative; width: 96px; height: 52px; display: grid; place-items: center;
  border: 1px solid rgb(255 255 255 / 10%); border-radius: 14px;
  background: linear-gradient(160deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 2%));
  box-shadow: 0 10px 24px rgb(0 0 0 / 45%), inset 0 1px 0 rgb(255 255 255 / 8%);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  rotate: var(--r, 0deg);
  animation: logoBob 3.6s ease-in-out infinite; animation-delay: var(--d, 0s);
  transition: rotate .45s var(--ease), scale .45s var(--ease), border-color .3s, background .3s;
}
.logos img { width: 78px; height: 78px; object-fit: contain; opacity: .6; transition: opacity .3s; pointer-events: none; }
.logos li:hover { rotate: 0deg; scale: 1.12; border-color: rgb(255 255 255 / 30%); background: rgb(255 255 255 / 9%); animation-play-state: paused; z-index: 2; }
.logos li:hover img { opacity: 1; }
.logos li::after {
  content: attr(data-name); position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 4px;
  font-size: 11px; white-space: nowrap; color: var(--muted); opacity: 0; transition: opacity .25s, translate .3s var(--ease); pointer-events: none;
}
.logos li:hover::after { opacity: 1; translate: -50% 0; }
@keyframes logoBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .logos li { animation: none; } }

/* ---------- CASES ---------- */
.caseList { margin-top: 14vh; display: flex; flex-direction: column; gap: 22vh; width: min(1180px, calc(100% - 120px)); margin-left: auto; margin-right: auto; }
.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: 6vw; align-items: center; }
.case--right { grid-template-columns: 1fr 1.15fr; }
.case--right .imageMask { order: 2; }
.caseInfo { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 380px; }
.case--right .caseInfo { justify-self: end; }
.caseInfo .tags { justify-content: flex-start; }
.caseInfo h3 { font-size: 28px; font-weight: 500; }
.caseInfo p { color: #c3c3c7; font-size: 15px; line-height: 1.9; }

.imageMask { position: relative; aspect-ratio: 636 / 400; cursor: pointer; will-change: transform; }
.imageMask .corner { position: absolute; width: 9px; height: 9px; transition: transform .35s var(--ease); z-index: 3; }
.imageMask .corner::before, .imageMask .corner::after { content: ""; position: absolute; background: #cfcfcf; }
.imageMask .corner::before { left: 0; top: 4px; width: 9px; height: 1px; }
.imageMask .corner::after { left: 4px; top: 0; width: 1px; height: 9px; }
.imageMask .corner--tl { left: -5px; top: -5px } .imageMask .corner--tr { right: -5px; top: -5px }
.imageMask .corner--bl { left: -5px; bottom: -5px } .imageMask .corner--br { right: -5px; bottom: -5px }
.imageMask:hover .corner--tl { transform: translate(-6px, -6px) } .imageMask:hover .corner--tr { transform: translate(6px, -6px) }
.imageMask:hover .corner--bl { transform: translate(-6px, 6px) } .imageMask:hover .corner--br { transform: translate(6px, 6px) }

/* reveal "shutter" for images */
.imageMask .shutter { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(5, 1fr); pointer-events: none; }
.imageMask .shutter i { background: var(--bg); margin: -0.5px; }

/* glitch */
.glitch { position: absolute; inset: 0; overflow: hidden; filter: saturate(.45) brightness(.9); transition: filter .5s; background: #151517; }
.imageMask:hover .glitch { filter: saturate(1) brightness(1); }
.glitch__img {
  position: absolute; inset: 0; background-size: cover; background-position: 50% 50%;
  transform: translateZ(0); transition: transform 1s var(--ease);
}
.glitch__img:nth-child(n+2) { opacity: 0; }
.imageMask:hover .glitch__img { transform: scale(1.03); }
.is-glitching .glitch__img:nth-child(n+2) { animation-duration: .9s; animation-timing-function: steps(1); animation-iteration-count: 1; animation-fill-mode: forwards; }
.is-glitching .glitch__img:nth-child(2) { animation-name: glitch-1; }
.is-glitching .glitch__img:nth-child(3) { animation-name: glitch-2; }
.is-glitching .glitch__img:nth-child(4) { animation-name: glitch-3; }
.is-glitching .glitch__img:nth-child(5) { animation-name: glitch-4; background-blend-mode: overlay; background-color: #4a5cff; }

@keyframes glitch-1 {
  0%   { opacity: 1; transform: translate3d(30px,0,0); clip-path: polygon(0 2%,100% 2%,100% 6%,0 6%); }
  10%  { clip-path: polygon(0 15%,100% 15%,100% 15%,0 15%); }
  20%  { clip-path: polygon(0 10%,100% 10%,100% 22%,0 22%); transform: translate3d(-20px,0,0); }
  30%  { clip-path: polygon(0 1%,100% 1%,100% 2%,0 2%); }
  40%  { clip-path: polygon(0 33%,100% 33%,100% 40%,0 40%); transform: translate3d(14px,0,0); }
  50%  { clip-path: polygon(0 44%,100% 44%,100% 44%,0 44%); }
  60%  { clip-path: polygon(0 50%,100% 50%,100% 58%,0 58%); transform: translate3d(-8px,0,0); }
  70%  { clip-path: polygon(0 70%,100% 70%,100% 75%,0 75%); }
  80%  { clip-path: polygon(0 80%,100% 80%,100% 84%,0 84%); }
  90%  { clip-path: polygon(0 94%,100% 94%,100% 98%,0 98%); }
  100% { opacity: 0; clip-path: polygon(0 0,0 0,0 0,0 0); }
}
@keyframes glitch-2 {
  0%   { opacity: 1; transform: translate3d(-12px,0,0); clip-path: polygon(0 25%,100% 25%,100% 30%,0 30%); }
  15%  { clip-path: polygon(0 3%,100% 3%,100% 3%,0 3%); transform: translate3d(10px,0,0); }
  30%  { clip-path: polygon(0 5%,100% 5%,100% 20%,0 20%); }
  45%  { clip-path: polygon(0 20%,100% 20%,100% 20%,0 20%); transform: translate3d(-6px,0,0); }
  60%  { clip-path: polygon(0 40%,100% 40%,100% 46%,0 46%); }
  75%  { clip-path: polygon(0 60%,100% 60%,100% 66%,0 66%); transform: translate3d(18px,0,0); }
  90%  { clip-path: polygon(0 86%,100% 86%,100% 90%,0 90%); }
  100% { opacity: 0; clip-path: polygon(0 0,0 0,0 0,0 0); }
}
@keyframes glitch-3 {
  0%   { opacity: 1; transform: translate3d(0,-5px,0) scale3d(-1,-1,1); clip-path: polygon(0 1%,100% 1%,100% 3%,0 3%); }
  25%  { clip-path: polygon(0 12%,100% 12%,100% 16%,0 16%); }
  50%  { clip-path: polygon(0 52%,100% 52%,100% 55%,0 55%); transform: translate3d(0,5px,0) scale3d(-1,-1,1); }
  75%  { clip-path: polygon(0 77%,100% 77%,100% 80%,0 80%); }
  100% { opacity: 0; clip-path: polygon(0 0,0 0,0 0,0 0); }
}
@keyframes glitch-4 {
  0%, 10% { opacity: .35; transform: translate3d(10px,4px,0); }
  11%, 30% { opacity: 0; }
  31%, 40% { opacity: .3; transform: translate3d(-12px,-3px,0); }
  41%, 100% { opacity: 0; transform: none; }
}

/* ---------- INFO GRID ---------- */
.info__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; }
.col__title { font-size: 28px; font-weight: 500; margin-bottom: 30px; }
.list li { position: relative; padding: 0 0 34px 30px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.list .date { font-family: var(--mono); font-size: 12px; color: #aaa; }
.list h4 { font-family: var(--mono); font-size: 15px; font-weight: 700; }
.list p { color: #a9a9ae; font-size: 14px; line-height: 1.85; }
.list .num { position: absolute; left: 0; top: 0; font-family: var(--mono); font-style: normal; font-size: 10px; color: #444; }
.list .btn { margin-top: 10px; }
.proj-ico { font-size: 22px; letter-spacing: -2px; margin-bottom: 4px; }
.soon { font-family: var(--mono); font-size: 10px; vertical-align: super; color: var(--muted); }

/* ---------- OUTRO ---------- */
.outro { padding-bottom: 28vh; }
.outro__title { font-size: clamp(32px, 4.4vw, 64px); }
.copy { font-family: var(--mono); font-size: 12px; color: #555; margin-top: 40px; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1200; background: rgb(6 6 7 / 92%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { width: min(1200px, 80vw); aspect-ratio: 16/10; overflow: hidden; }
.lightbox__stage img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__close { position: absolute; top: 80px; left: 50px; font-family: var(--mono); font-size: 13px; padding: 10px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 22px; padding: 20px; opacity: .6; transition: opacity .2s; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { right: 30px } .lightbox__nav--next { left: 30px }
.lightbox__count { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .header nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 1100px) {
  .hud__scroll, .hud__nums { display: none; }
  .tickers { width: 100%; }
}
@media (max-width: 860px) {
  .container, .caseList { width: calc(100% - 48px); }
  .case, .case--right { grid-template-columns: 1fr; gap: 28px; }
  .case--right .imageMask { order: 0; }
  .case--right .caseInfo { justify-self: start; }
  .info__grid { grid-template-columns: 1fr; }
  .sidenav { display: none; }
  .ticker { padding-inline: 18px 10px; }
  .ticker__icon { display: none; }
  .quote { display: none; }
  .hero p br, .bio br { display: none; }
  .hero__inner { padding: 0 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .noise, .bg-glow, .hud__scroll-arrow, .rays canvas, .rays__floor { animation: none; }
}

/* ---------- SERVICES FLOW (inputs → Deer hub → outputs) ---------- */
.services { padding-bottom: 14vh; }
.flow {
  position: relative; width: min(1120px, calc(100% - 80px)); margin: 70px auto 0;
  display: grid; grid-template-columns: 1fr 260px 1fr; align-items: center; min-height: 560px;
}
.flow__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow__lines .base { fill: none; stroke: rgb(255 255 255 / 9%); stroke-width: 1; }
.flow__lines .live { fill: none; stroke: rgb(255 255 255 / 85%); stroke-width: 1.3; }
.flow__lines .dot { fill: #fff; filter: drop-shadow(0 0 4px rgb(255 255 255 / 90%)); }
.flow__col { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 22px; }
.flow__col--in { align-items: flex-start; gap: 64px; }          /* RTL: flush right */
.flow__col--out { align-items: flex-end; }                       /* RTL: flush left */
.flow__node {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  border: 1px solid var(--line-strong); background: rgb(14 14 16 / 80%);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transform: translateX(calc(var(--o, 0px) * -1));
  transition: border-color .4s, background .4s, opacity .4s, color .4s;
}
.flow__col--out .flow__node { transform: translateX(var(--o, 0px)); }
.flow__ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.flow__txt { display: flex; flex-direction: column; gap: 2px; }
.flow__txt b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.flow__txt small { font-size: 11px; color: var(--muted); }
.flow__node .c { opacity: 0; transition: opacity .3s, transform .4s var(--ease); }

/* inputs */
.flow__node--in { cursor: pointer; color: #9a9aa0; }
.flow__node--in:hover { color: var(--fg); border-color: rgb(255 255 255 / 40%); }
.flow__node--in.is-active { color: var(--fg); border-color: var(--fg); background: rgb(255 255 255 / 7%); }
.flow__node--in.is-active .c { opacity: 1; }
.flow__node--in.is-active .c.tl { transform: translate(-4px, -4px) } .flow__node--in.is-active .c.tr { transform: translate(4px, -4px) rotate(90deg) }
.flow__node--in.is-active .c.br { transform: translate(4px, 4px) rotate(180deg) } .flow__node--in.is-active .c.bl { transform: translate(-4px, 4px) rotate(270deg) }

/* outputs */
.flow__node--out { color: #6c6c72; opacity: .55; }
.flow__node--out.is-on { color: var(--fg); opacity: 1; border-color: rgb(255 255 255 / 55%); background: rgb(255 255 255 / 5%); }
.flow__check {
  width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); transform: scale(0); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.flow__check svg { width: 14px; height: 14px; fill: none; stroke: #0b0b0c; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.flow__node--out.is-on .flow__check { transform: scale(1); }

/* hub */
.flow__hub { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.flow__ring { position: absolute; left: 50%; top: 58px; border-radius: 50%; pointer-events: none; }
.flow__ring--a { width: 230px; height: 230px; margin: -115px 0 0 -115px; border: 1px dashed rgb(255 255 255 / 14%); animation: ringSpin 40s linear infinite; }
.flow__ring--b { width: 380px; height: 380px; margin: -190px 0 0 -190px; border: 1px solid rgb(255 255 255 / 5%); }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.flow__logo {
  position: relative; width: 116px; height: 116px; border-radius: 28px; display: grid; place-items: center;
  background: radial-gradient(80% 80% at 30% 20%, #2a2a2e, #111113); border: 1px solid rgb(255 255 255 / 14%);
  box-shadow: 0 20px 60px rgb(0 0 0 / 60%), inset 0 1px 0 rgb(255 255 255 / 8%);
  transition: box-shadow .5s, transform .5s var(--ease);
}
.flow__logo img { width: 58px; height: 58px; }
.flow__hub.is-pulse .flow__logo { box-shadow: 0 0 0 1px rgb(255 255 255 / 30%), 0 0 60px rgb(255 255 255 / 18%), 0 20px 60px rgb(0 0 0 / 60%); transform: scale(1.04); }
.flow__name { font-size: 17px; font-weight: 700; }
.flow__chip { padding: 7px 16px; font-size: 13px; font-weight: 600; background: var(--fg); color: var(--bg); min-width: 120px; text-align: center; }

@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 56px; width: calc(100% - 40px); min-height: 0; }
  .flow__col--in { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 10px; }
  .flow__col--in .flow__node { flex: 1 1 140px; }
  .flow__col--in .flow__txt small { display: none; }
  .flow__col--out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
  .flow__node, .flow__col--out .flow__node { transform: none; padding: 10px 12px; }
  .flow__txt b { white-space: normal; font-size: 13px; }
  .flow__ring--b { display: none; }
}
@media (prefers-reduced-motion: reduce) { .flow__ring--a { animation: none; } }

/* ---------- FAQ (sticky title + accordion) ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1.55fr; gap: 6vw; align-items: start; }
.faq__head { position: sticky; top: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.faq__head .tags { justify-content: flex-start; }
.faq__head h2 { max-width: none; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  position: relative; border: 1px solid var(--line); background: rgb(255 255 255 / 1.5%);
  transition: border-color .35s, background .35s;
}
.faq__item:hover { border-color: var(--line-strong); }
.faq__item.is-open { border-color: rgb(255 255 255 / 30%); background: rgb(255 255 255 / 4%); }
.faq__q {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 24px; text-align: right;
  font-size: 16px; font-weight: 600; line-height: 1.7; color: var(--fg); cursor: pointer;
}
.faq__q span { flex: 1; }
.faq__num { font-style: normal; font-size: 11px; color: #555; font-weight: 400; transition: color .3s; }
.faq__item.is-open .faq__num { color: var(--fg); }
/* plus that turns into a minus */
.faq__icon { position: relative; width: 30px; height: 30px; flex: none; border: 1px solid var(--line-strong); border-radius: 50%; transition: background .3s, border-color .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: var(--fg); transition: transform .4s var(--ease), background .3s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--fg); border-color: var(--fg); }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: var(--bg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }
/* smooth height via grid rows */
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 24px 24px 70px; margin-inline-start: 43px; font-size: 15px; line-height: 2; color: #bdbdc2; opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .5s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a p { opacity: 1; transform: none; transition-delay: .1s; }
.faq__item .c { opacity: 0; transition: opacity .3s, transform .4s var(--ease); }
.faq__item.is-open .c { opacity: 1; }
.faq__item.is-open .c.tl { transform: translate(-4px, -4px) } .faq__item.is-open .c.tr { transform: translate(4px, -4px) rotate(90deg) }
.faq__item.is-open .c.br { transform: translate(4px, 4px) rotate(180deg) } .faq__item.is-open .c.bl { transform: translate(-4px, 4px) rotate(270deg) }

@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; gap: 40px; }
  .faq__head { position: static; }
  .faq__q { padding: 18px 16px; font-size: 15px; gap: 12px; }
  .faq__a p { padding: 0 16px 20px 16px; margin-inline-start: 0; }
}

/* ---------- rotating tips in the HUD (game-style loading tips) ---------- */
.tips { position: absolute; right: 12px; bottom: 18px; width: min(380px, 40vw); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.tips__label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.tips__label i { width: 6px; height: 6px; background: var(--green); box-shadow: 0 0 8px var(--green); animation: tipBlink 1.4s steps(1) infinite; }
.tips__label em { font-style: normal; opacity: .6; }
@keyframes tipBlink { 50% { opacity: .2; } }
.tips__text { font-size: 15px; font-weight: 500; line-height: 1.8; color: #e6e6e8; min-height: 1.8em; text-shadow: 0 0 18px rgb(0 0 0 / 80%); }
.tips__text.is-glitch { animation: tipGlitch .35s steps(2) both; }
@keyframes tipGlitch {
  0%   { opacity: 1; transform: translateX(0); text-shadow: 2px 0 rgb(255 60 60 / 70%), -2px 0 rgb(60 120 255 / 70%); clip-path: inset(0 0 0 0); }
  30%  { transform: translateX(-4px); clip-path: inset(20% 0 40% 0); }
  60%  { transform: translateX(3px); clip-path: inset(55% 0 10% 0); }
  100% { opacity: 0; transform: translateX(0); clip-path: inset(50% 0 50% 0); }
}
.tips__bar { position: relative; width: 120px; height: 1px; background: var(--line-strong); overflow: hidden; }
.tips__bar b { position: absolute; inset: 0; width: 0; background: var(--fg); }
@media (max-width: 860px) { .tips { display: none; } }

/* services: tighter gap between the title block and the flow, flow keeps its breathing room */
.services { padding-top: calc(12vh + 80px); }
.services .center { gap: 20px; }
.services .flow { margin-top: 36px; }
@media (max-width: 860px) { .services { padding-top: 14vh; } }

/* ---------- client logo grid: thin lines, "+" marks at the intersections, logos in a checkerboard ---------- */
.lgrid {
  --cols: 5; --cell-h: 132px;
  position: relative; width: min(1040px, 100%); margin-top: 30px; direction: ltr;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.lgrid__cell {
  position: relative; height: var(--cell-h); display: grid; place-items: center;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .5s;
}
/* crosshair on each cell's bottom-right intersection */
.lgrid__cell::before, .lgrid__cell::after {
  content: ""; position: absolute; right: -5px; bottom: -5px; background: rgb(255 255 255 / 35%); z-index: 1; pointer-events: none;
}
.lgrid__cell::before { width: 9px; height: 1px; translate: 0 -4px; }
.lgrid__cell::after { width: 1px; height: 9px; translate: -4px 0; }
.lgrid__cell.is-glow { background: rgb(255 255 255 / 4.5%); transition: background 1.2s; }
.lgrid__cell img { width: 112px; height: 112px; object-fit: contain; opacity: .5; transition: opacity .35s, transform .5s var(--ease); pointer-events: none; }
.lgrid__cell--logo:hover { background: rgb(255 255 255 / 5%); }
.lgrid__cell--logo:hover img { opacity: 1; transform: scale(1.06); }
.lgrid__cell--logo::selection { background: none; }
.lgrid__cell--logo span, .lgrid__cell--logo .lgrid__name {}
.lgrid__cell--logo:hover { z-index: 2; }
.lgrid__cell--logo[data-name]:hover::marker {}
.lgrid__cell--logo { cursor: default; }
.lgrid__cell--logo:hover .lgrid__label { opacity: 1; }
@media (max-width: 860px) {
  .lgrid { --cols: 2 !important; --cell-h: 96px; }
  .lgrid__cell:not(.lgrid__cell--logo) { display: none; }
  .lgrid__cell img { width: 88px; height: 88px; }
}
.lgrid__label { position: absolute; bottom: 12px; left: 50%; translate: -50% 4px; font-size: 11px; color: var(--muted); white-space: nowrap; opacity: 0; transition: opacity .3s, translate .35s var(--ease); pointer-events: none; }
.lgrid__cell--logo:hover .lgrid__label { opacity: 1; translate: -50% 0; }
.caseList__more { display: flex; justify-content: center; margin-top: -6vh; }

/* ---------- academic & teaching ---------- */
.acad__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 6vw; align-items: start; }
.acad__head { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.acad__head .tags { justify-content: flex-start; }
.acad__head h2 { max-width: none; }
.acad__big { display: flex; align-items: flex-end; gap: 16px; }
.acad__big b { font-size: clamp(110px, 13vw, 190px); font-weight: 900; line-height: .8; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 30%, rgb(255 255 255 / 15%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acad__big span { font-size: 16px; line-height: 1.7; color: var(--muted); padding-bottom: 10px; }
.acad__list { border-top: 1px solid var(--line); counter-reset: none; }
.acad__row {
  position: relative; display: flex; align-items: center; gap: 22px; padding: 28px 10px; border-bottom: 1px solid var(--line);
  cursor: default; overflow: hidden; isolation: isolate;
}
.acad__row::before { /* light that sweeps in from the right on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 0%));
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.acad__row:hover::before { transform: scaleX(1); }
.acad__row i { font-style: normal; font-size: 12px; color: #555; width: 26px; transition: color .3s; }
.acad__name { flex: 1; display: flex; flex-direction: column; gap: 4px; transition: transform .5s var(--ease); }
.acad__name b { font-size: clamp(24px, 2.8vw, 40px); font-weight: 800; line-height: 1.3; color: #d6d6da; transition: color .3s; }
.acad__name span { font-size: 13px; color: var(--muted); }
.acad__row em { font-style: normal; font-size: 22px; opacity: .2; transition: opacity .3s, transform .5s var(--ease); }
.acad__row:hover i { color: var(--fg); }
.acad__row:hover .acad__name { transform: translateX(-14px); }
.acad__row:hover .acad__name b { color: #fff; }
.acad__row:hover em { opacity: 1; transform: translate(-6px, -6px); }
/* floating logo tile that follows the cursor */
.acad__float {
  position: fixed; left: 0; top: 0; z-index: 60; width: 170px; height: 170px; pointer-events: none;
  display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 18%); border-radius: 22px;
  background: radial-gradient(80% 80% at 30% 20%, #2a2a2e, #121214); box-shadow: 0 30px 80px rgb(0 0 0 / 60%);
  opacity: 0; scale: .6; transition: opacity .3s, scale .45s var(--ease);
}
.acad__float.is-on { opacity: 1; scale: 1; }
.acad__float img { width: 64%; height: 64%; object-fit: contain; }
.acad__float b { font-size: 20px; font-weight: 800; text-align: center; padding: 0 14px; line-height: 1.5; }
@media (max-width: 860px) {
  .acad__grid { grid-template-columns: 1fr; }
  .acad__head { position: static; }
  .acad__float { display: none; }
}

/* ---------- scroll-driven video: small box -> full screen with a gentle zoom ---------- */
.vzoom { position: relative; height: 280vh; z-index: 5; }
.vzoom__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.vzoom__frame {
  position: absolute; inset: 0; overflow: hidden; background: #0d0d10;
  clip-path: inset(30% 27% 30% 27% round 24px);       /* GSAP opens this to inset(0 round 0) */
  will-change: clip-path;
}
.vzoom__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); will-change: transform; }
.vzoom__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(11 11 12 / 75%)); opacity: 0; pointer-events: none; }
.vzoom__cap { position: absolute; right: 6vw; bottom: 9vh; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; opacity: 0; transform: translateY(24px); }
.vzoom__cap h3 { font-size: clamp(28px, 3.6vw, 54px); font-weight: 850; line-height: 1.3; }
.vzoom__hint { position: absolute; bottom: 12vh; left: 50%; translate: -50% 0; font-size: 12px; color: var(--muted); pointer-events: none; }
@media (max-width: 860px) {
  .vzoom { height: 220vh; }
  .vzoom__frame { clip-path: inset(34% 8% 34% 8% round 18px); }
}

/* institution logo cards (academic section) */
.acad__logos { margin-top: 10vh; display: flex; flex-direction: column; gap: 26px; }
.acad__logos-title { font-size: 17px; color: var(--muted); line-height: 1.9; }
.acad__logos-title b { color: var(--fg); font-weight: 700; }
.acad__logos ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.acad__logos li {
  position: relative; aspect-ratio: 1.15; display: grid; place-items: center; border: 1px solid var(--line);
  background: radial-gradient(70% 70% at 50% 40%, rgb(255 255 255 / 4%), transparent 70%);
  transition: border-color .35s, background .35s;
}
.acad__logos img { width: 46%; height: 46%; object-fit: contain; opacity: .55; transition: opacity .35s, transform .5s var(--ease); }
.acad__logos li::after { content: attr(data-name); position: absolute; bottom: 14px; font-size: 12px; color: var(--muted); opacity: 0; transition: opacity .3s; }
.acad__logos li:hover { border-color: rgb(255 255 255 / 30%); background: radial-gradient(70% 70% at 50% 40%, rgb(255 255 255 / 8%), transparent 70%); }
.acad__logos li:hover img { opacity: 1; transform: scale(1.06); }
.acad__logos li:hover::after { opacity: 1; }
.acad__logos .c { opacity: 0; transition: opacity .3s, transform .4s var(--ease); }
.acad__logos li:hover .c { opacity: 1; }
.acad__logos li:hover .c.tl { transform: translate(-5px, -5px) } .acad__logos li:hover .c.tr { transform: translate(5px, -5px) rotate(90deg) }
.acad__logos li:hover .c.br { transform: translate(5px, 5px) rotate(180deg) } .acad__logos li:hover .c.bl { transform: translate(-5px, 5px) rotate(270deg) }
@media (max-width: 860px) { .acad__logos ul { grid-template-columns: repeat(2, 1fr); } }

.acad__logos li a { display: grid; place-items: center; width: 100%; height: 100%; }

/* sticky primary CTA: slides into the header once the hero button scrolls away */
.headCta { display: grid; grid-template-columns: 0fr; margin-inline-start: -24px; opacity: 0; pointer-events: none;
  transition: grid-template-columns .6s var(--ease), margin .6s var(--ease), opacity .35s; }
.headCta > div { min-width: 0; overflow: hidden; padding: 12px; margin: -12px; }
.headCta .btn { padding: 10px 18px; font-size: 13px; white-space: nowrap; transform: translateY(8px); transition: transform .6s var(--ease), background .3s, border-color .3s, box-shadow .3s; }
.header.has-cta .headCta { grid-template-columns: 1fr; margin-inline-start: 0; opacity: 1; pointer-events: auto; }
.header.has-cta .headCta .btn { transform: none; }
@media (max-width: 900px) { .headCta .btn { padding: 8px 14px; font-size: 12px; } }
