@font-face {
  font-family: "Caveat Local";
  src: url("assets/fonts/caveat-cyrillic-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --yellow: #ffd300;
  --green: #07533d;
  --green-dark: #043f2f;
  --silver: #d8d9d6;
  --wood-1: #9b4e24;
  --wood-2: #5f2713;
  --leather: #4a2416;
  --felt: #171818;
  --texture-velvet: url("assets/materials/emerald-quilt-lite-v2.webp");
  --texture-leather: url("assets/materials/chestnut-leather-lite-v2.webp");
  --texture-felt: url("assets/materials/charcoal-felt-lite-v2.webp");
  --texture-metal: url("assets/materials/brushed-aluminium-lite-v2.webp");
  --ease-soft: cubic-bezier(.22, .75, .18, 1);
  color-scheme: light;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; background: #02030a; }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: #111; background: #02030a; }
body.is-locked { overflow: hidden; }
button, a { color: inherit; font: inherit; }
button { border: 0; }
a { text-decoration: none; }
::selection { background: var(--yellow); color: #111; }

.marquee {
  position: relative;
  z-index: 50;
  height: 36px;
  width: 100%;
  max-width: 100vw;
  overflow: clip;
  contain: size layout paint;
  display: flex;
  align-items: center;
  background: var(--yellow);
  border-bottom: 1px solid rgba(88, 66, 0, .3);
  color: #15130b;
}
.marquee__track {
  position: absolute;
  left: 0;
  top: 50%;
  width: max-content;
  display: flex;
  flex-shrink: 0;
  will-change: transform;
  translate: 0 -50%;
  animation: marquee-left 28s linear infinite;
}
.marquee__group {
  min-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
  backface-visibility: hidden;
}
.marquee span { padding: 0 27px; font-size: 12px; font-weight: 850; letter-spacing: .035em; white-space: nowrap; }
.marquee i { width: 38px; height: 17px; flex: 0 0 auto; transform: skew(-28deg); background: repeating-linear-gradient(90deg, #fff 0 7px, transparent 7px 13px); }
@keyframes marquee-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.hero {
  position: relative;
  z-index: 10;
  min-height: 296px;
  padding: 46px clamp(28px, 8vw, 130px) 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 540px);
  align-items: center;
  gap: 40px;
  background:
    radial-gradient(circle at 23% 30%, rgba(255,255,255,.95), transparent 35%),
    linear-gradient(110deg, #fff 0%, #f9f9f7 58%, #ecece9 100%);
  border-bottom: 0;
  box-shadow: none;
}
.hero-cosmos-bridge {
  position: absolute;
  z-index: 1;
  inset: 0 0 -2px;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(32,48,84,.04), rgba(1,3,12,.5) 74%),
    #02030a url("assets/cosmos/deep-space-luxury-v1.webp") center 31% / cover no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='320' viewBox='0 0 1000 320' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='b' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='10'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M1050 -55V375H-50V282C65 262 155 291 275 276C405 260 510 242 610 211C715 177 780 137 842 90C916 34 974 -5 1050 -55Z' fill='white' filter='url(%23b)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='320' viewBox='0 0 1000 320' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='b' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='10'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M1050 -55V375H-50V282C65 262 155 291 275 276C405 260 510 242 610 211C715 177 780 137 842 90C916 34 974 -5 1050 -55Z' fill='white' filter='url(%23b)'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  filter: saturate(.9) contrast(1.06);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .09;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}
.brand-lockup { position: relative; z-index: 2; min-width: 0; }
.brand-lockup__eyebrow { margin: 0 0 14px 5px; color: #777; font-size: 8px; font-weight: 800; letter-spacing: .26em; }
.brand-lockup h1 {
  width: fit-content;
  margin: 0;
  color: #151515;
  font-size: clamp(82px, 10vw, 152px);
  font-weight: 950;
  line-height: .76;
  letter-spacing: -.09em;
  text-shadow:
    1px 1px 0 #424242,
    2px 2px 0 #393939,
    3px 3px 0 #303030,
    4px 4px 0 #272727,
    8px 10px 10px rgba(0,0,0,.23);
}
.brand-lockup__tagline { margin: 18px 0 0 4px; font-size: clamp(24px, 2.4vw, 39px); font-weight: 760; letter-spacing: -.04em; }
.brand-lockup__copy { max-width: 650px; margin: 13px 0 0 5px; color: #676767; font-size: 13px; line-height: 1.45; }

.sign-assembly {
  position: relative;
  align-self: center;
  display: grid;
  place-items: center;
  animation: hover-float 4.2s ease-in-out infinite;
  will-change: transform;
}
.project-sign {
  position: relative;
  z-index: 2;
  width: min(480px, 100%);
  aspect-ratio: 3 / 1;
  min-height: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("assets/cta/hover-jet-integrated-v3.webp") center / contain no-repeat;
  filter: drop-shadow(0 18px 15px rgba(0,0,0,.22));
}
.project-sign span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sign-assembly.is-boosting { animation: jet-boost .9s var(--ease-soft) both; }
@keyframes hover-float {
  0%, 100% { transform: translate3d(0, 3px, 0) rotate(-.25deg); }
  50% { transform: translate3d(0, -7px, 0) rotate(.25deg); }
}
@keyframes jet-boost {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  38% { transform: translate3d(0, -13px, 0) scale(1.018); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

.quilt {
  position: relative;
  isolation: isolate;
  min-height: 900px;
  padding: clamp(115px, 11vw, 165px) clamp(24px, 6vw, 90px) 120px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -8%, rgba(32,113,82,.34), transparent 46%),
    linear-gradient(rgba(0,50,35,.1), rgba(0,25,18,.32)),
    var(--texture-velvet) center top / 940px auto repeat;
}
.quilt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse at 50% 8%, transparent 0 28%, rgba(0,20,14,.17) 78%),
    linear-gradient(90deg, rgba(0,17,11,.22), transparent 19%, transparent 81%, rgba(0,17,11,.22));
  opacity: 1;
}
.quilt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 25%, rgba(255,255,255,.13) 33%, rgba(255,255,255,.025) 38%, transparent 45%);
  background-size: 720px 100%;
  opacity: .6;
  mix-blend-mode: soft-light;
  animation: metal-lines 15s linear infinite;
}
.quilt__metal {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255,255,255,.8) 0 1px, rgba(255,255,255,.24) 2px, transparent 7px) 0 0 / 235px 235px,
    radial-gradient(circle, rgba(255,255,255,.58) 0 1px, transparent 6px) 117px 117px / 235px 235px;
  opacity: .22;
  animation: sparkle-drift 10s ease-in-out infinite alternate;
}
@keyframes metal-lines { to { background-position: 720px 0; } }
@keyframes sparkle-drift { to { opacity: .28; transform: translate3d(12px, -6px, 0); } }

.portfolio-case {
  position: relative;
  width: min(1180px, 100%);
  min-height: 570px;
  margin: 0 auto;
  padding: 24px;
  border: 16px solid transparent;
  border-radius: 58px 58px 34px 34px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035), transparent 12%, transparent 88%, rgba(255,255,255,.025)) padding-box,
    linear-gradient(rgba(64,30,18,.05), rgba(31,14,9,.3)) border-box,
    var(--texture-leather) center / 560px auto border-box;
  box-shadow:
    inset 0 0 0 3px rgba(185,137,102,.68),
    inset 0 0 0 7px #281510,
    inset 0 0 45px #000,
    0 35px 58px rgba(0,0,0,.42);
}
.portfolio-case::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 2px dashed rgba(232,192,157,.64);
  border-radius: 48px 48px 25px 25px;
  pointer-events: none;
}
.portfolio-case::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 25px;
  pointer-events: none;
  opacity: .25;
  background: linear-gradient(105deg, rgba(255,255,255,.16), transparent 18%, transparent 82%, rgba(0,0,0,.3));
}
.portfolio-case__handle {
  position: absolute;
  left: 50%;
  top: -117px;
  width: 282px;
  height: 100px;
  transform: translateX(-50%);
  border: 22px solid #4b281d;
  border-bottom: 0;
  border-radius: 94px 94px 0 0;
  background: transparent;
  box-shadow:
    inset 6px 2px 0 rgba(200,140,102,.35),
    inset -4px 0 5px rgba(19,8,5,.4),
    5px -4px 10px rgba(0,0,0,.38);
}
.portfolio-case__handle::before, .portfolio-case__handle::after {
  content: "";
  position: absolute;
  bottom: -16px;
  width: 54px;
  height: 28px;
  border: 1px solid #625f5b;
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.36), rgba(0,0,0,.22)),
    var(--texture-metal) center / 150px;
  box-shadow: inset 0 0 0 2px #3c3935, 0 4px 5px rgba(0,0,0,.36);
}
.portfolio-case__handle::before { left: -34px; }
.portfolio-case__handle::after { right: -34px; }
.portfolio-case__handle i { position: absolute; inset: -12px -12px auto; height: 55px; border-radius: 70px 70px 0 0; border-top: 4px solid rgba(255,255,255,.25); }
.portfolio-case__locks { position: absolute; inset: -24px 160px auto; display: flex; justify-content: space-between; }
.portfolio-case__locks i {
  width: 68px;
  height: 19px;
  border: 1px solid #686560;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(0,0,0,.25)),
    var(--texture-metal) center / 160px;
  box-shadow: inset 0 0 0 2px #3e3a36, 0 4px 5px rgba(0,0,0,.4);
}
.portfolio-case__inner {
  position: relative;
  z-index: 2;
  min-height: 510px;
  padding: 28px clamp(22px, 4vw, 58px) 24px;
  border: 3px solid #070707;
  border-radius: 31px;
  background:
    radial-gradient(circle at 50% 18%, rgba(87,89,87,.2), rgba(8,9,9,.55) 68%),
    var(--texture-felt) center / 620px auto repeat;
  background-blend-mode: multiply, normal;
  box-shadow: inset 0 0 48px rgba(0,0,0,.8), inset 0 1px rgba(255,255,255,.09);
  color: white;
}
.portfolio-case__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; }
.portfolio-case__head h2 { margin: 0; font-size: clamp(34px, 4.2vw, 57px); letter-spacing: -.055em; }
.portfolio-case__head p { margin: 0 0 7px; color: rgba(255,255,255,.36); font-size: 8px; letter-spacing: .17em; }
.portfolio-case__head p:last-child { text-align: right; }

.case-grid { width: min(930px, 100%); margin: 45px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 42px); align-items: start; }
.case-card {
  position: relative;
  min-width: 0;
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  color: white;
  cursor: pointer;
}
.case-card__glow {
  position: absolute;
  z-index: -1;
  left: 4%;
  right: 4%;
  top: 7%;
  height: 70%;
  border-radius: 45%;
  opacity: 0;
  transform: scale(.82);
  background: radial-gradient(ellipse, color-mix(in srgb, var(--case-accent) 62%, white), color-mix(in srgb, var(--case-accent) 32%, transparent) 38%, transparent 72%);
  filter: blur(15px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 260ms var(--ease-soft);
}
.case-card:hover .case-card__glow, .case-card:focus-visible .case-card__glow, .case-card.is-hovered .case-card__glow { opacity: 1; transform: scale(1); }
.case-card:focus-visible { outline: 2px solid #d5ff8c; outline-offset: 8px; border-radius: 10px; }
.case-card strong { margin-top: 18px; font-size: clamp(16px, 1.55vw, 22px); letter-spacing: -.025em; }
.case-card small { margin-top: 5px; color: rgba(255,255,255,.68); font-size: 11px; }

.mini-case {
  position: relative;
  width: 100%;
  max-width: 238px;
  aspect-ratio: 1.62;
  display: block;
  transform: translateY(0) scale(1);
  filter: drop-shadow(0 15px 11px rgba(0,0,0,.5));
  transition: transform 260ms var(--ease-soft), filter 260ms ease, opacity 180ms ease;
}
.case-card:hover .mini-case, .case-card:focus-visible .mini-case { transform: translateY(-6px) scale(1.018); filter: drop-shadow(0 19px 13px rgba(0,0,0,.52)); }
.case-card.is-source-hidden .mini-case { opacity: 0; }
.premium-case { max-width: 290px; aspect-ratio: 1.5; }
.premium-case img { width: 100%; height: 100%; display: block; object-fit: contain; }
.mini-case__face {
  position: absolute;
  inset: 18% 1% 0;
  display: block;
  overflow: hidden;
  border: 2px solid #6d6b67;
  border-radius: 10px;
  background:
    linear-gradient(104deg, rgba(255,255,255,.55), transparent 23%, rgba(255,255,255,.08) 60%, rgba(20,20,18,.22)),
    var(--texture-metal) center / 360px auto;
  background-blend-mode: screen, normal;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.42),
    inset 0 -8px 12px rgba(0,0,0,.2),
    0 1px 0 rgba(255,255,255,.25);
}
.mini-case__face::before, .mini-case__face::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 9px;
  background:
    linear-gradient(90deg, rgba(44,44,42,.75), rgba(255,255,255,.42) 46%, rgba(45,44,42,.78)),
    var(--texture-metal) center / 130px;
  box-shadow: 0 0 0 1px rgba(45,44,42,.72);
}
.mini-case__face::before { left: 0; }
.mini-case__face::after { right: 0; }
.mini-case__handle {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 2%;
  width: 36%;
  height: 26%;
  transform: translateX(-50%);
  border: 5px solid #726e68;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: transparent;
  box-shadow: inset 0 3px rgba(245,243,235,.48), inset 3px 0 3px rgba(0,0,0,.28), 0 -1px 2px rgba(0,0,0,.4);
}
.mini-case__locks { position: absolute; z-index: 6; left: 13%; right: 13%; top: 16%; display: flex; justify-content: space-between; }
.mini-case__locks i {
  width: 24px;
  height: 10px;
  border: 1px solid #625f5b;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.46), rgba(0,0,0,.3)),
    var(--texture-metal) center / 100px;
  box-shadow: inset 0 0 0 1px rgba(40,39,37,.7);
}
.mini-case__label { position: absolute; z-index: 5; left: 13%; top: 40%; font-size: 8px; letter-spacing: .05em; }
.mini-case__detail--amber { position: absolute; left: 0; right: 0; bottom: 0; height: 36%; background:
  radial-gradient(circle at 13% 75%, #ffd05a 0 2px, transparent 5px),
  radial-gradient(circle at 30% 35%, #ffb521 0 2px, transparent 7px),
  radial-gradient(circle at 67% 65%, #ffda57 0 2px, transparent 7px),
  linear-gradient(155deg, rgba(225,135,29,.88), rgba(98,44,17,.94) 55%, rgba(211,120,24,.9)),
  var(--texture-leather) center / 260px;
  background-blend-mode: screen, normal;
  box-shadow: inset 0 8px 13px rgba(44,20,8,.5);
}
.mini-case--dice .mini-case__face {
  border-color: #5f605d;
  background:
    linear-gradient(145deg, rgba(58,61,58,.46), rgba(5,7,6,.8) 72%),
    var(--texture-leather) center / 280px;
  background-blend-mode: multiply, normal;
}
.mini-case--dice .mini-case__label { color: #ddd; }
.mini-case__neon-line { position: absolute; left: 8%; right: 7%; top: 53%; height: 26px; border-top: 2px solid #b7ff37; border-right: 2px solid #b7ff37; transform: skewX(-34deg); box-shadow: 0 -2px 8px rgba(173,255,52,.4); }
.mini-case__dice { position: absolute; right: 12%; bottom: 10%; width: 42px; height: 42px; padding-top: 6px; border: 3px ridge #444; border-radius: 8px; background: linear-gradient(145deg, #242724, #090b0a); color: #baff3b; font-size: 10px; line-height: 1.1; text-align: center; transform: rotate(-13deg); box-shadow: 0 4px 9px #000; }
.mini-case--telegram .mini-case__face {
  background:
    linear-gradient(110deg, rgba(250,249,244,.2) 0 61%, rgba(20,116,163,.88) 62%),
    linear-gradient(104deg, rgba(255,255,255,.48), transparent 26%, rgba(25,25,23,.16)),
    var(--texture-metal) center / 340px;
  background-blend-mode: normal, screen, normal;
}
.mini-case--telegram .mini-case__face::after { display: none; }
.mini-case__plane { position: absolute; right: 12%; bottom: 18%; color: white; font-size: 43px; transform: rotate(-28deg); text-shadow: 0 2px 5px rgba(0,0,0,.25); }
.mini-case--automation .mini-case__face {
  border-color: #667584;
  background:
    linear-gradient(150deg, rgba(42,103,139,.82), rgba(5,35,60,.94)),
    var(--texture-leather) center / 280px;
  background-blend-mode: multiply, normal;
  box-shadow: inset 0 0 22px rgba(152,204,229,.22), inset 0 0 0 2px rgba(190,214,224,.22), 0 0 9px rgba(59,129,165,.22);
}
.mini-case--automation .mini-case__label { color: #d6f4ff; }
.mini-case__circuit { position: absolute; inset: 15% 11%; opacity: .8; background:
  linear-gradient(90deg, transparent 0 18%, #5ac7ff 18% 19%, transparent 19% 52%, #5ac7ff 52% 53%, transparent 53%),
  linear-gradient(transparent 0 30%, #5ac7ff 30% 31%, transparent 31% 70%, #5ac7ff 70% 71%, transparent 71%);
}
.portfolio-case__foot { margin-top: 48px; padding-top: 18px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.11); color: rgba(255,255,255,.35); font-size: 8px; letter-spacing: .16em; }
.portfolio-case__foot a { color: rgba(255,255,255,.62); }

.about {
  width: min(1180px, 100%);
  margin: 115px auto 0;
  padding: 60px;
  display: grid;
  grid-template-columns: .3fr 1.3fr .7fr;
  gap: 55px;
  border: 1px solid rgba(221,214,196,.2);
  background:
    linear-gradient(rgba(2,31,23,.72), rgba(1,20,15,.82)),
    var(--texture-felt) center / 640px auto;
  background-blend-mode: multiply, normal;
  color: white;
  box-shadow: 0 26px 45px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.07);
}
.about__index { margin: 7px 0 0; color: rgba(255,255,255,.5); font-size: 9px; letter-spacing: .15em; }
.about h2 { margin: 0; font-size: clamp(34px, 4.1vw, 62px); line-height: .94; letter-spacing: -.055em; }
.about div > p { max-width: 650px; margin: 28px 0 0; color: rgba(255,255,255,.65); font-size: 14px; line-height: 1.6; }
.about ul { margin: 0; padding: 0; align-self: end; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.about li { padding: 14px 0; display: flex; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.about li span { color: #a7e47f; }

.case-viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
}
.case-viewer[open] { display: block; }
.case-viewer::backdrop { background: rgba(2,18,13,.78); backdrop-filter: blur(10px) saturate(.8); }
.case-viewer__stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; perspective: 1300px; }
.case-viewer__close {
  position: fixed;
  z-index: 30;
  right: clamp(18px, 3vw, 48px);
  top: clamp(18px, 3vw, 42px);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 7px;
  background: rgba(13,15,14,.75);
  color: white;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.case-viewer.is-open .case-viewer__close { opacity: 1; pointer-events: auto; }
.case-viewer__close span { font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.case-viewer__close b { font-size: 19px; font-weight: 400; }

.open-case {
  --from-x: 0px;
  --from-y: 0px;
  --from-scale: .3;
  --accent: #e99a19;
  position: relative;
  width: min(760px, calc(100vw - 38px));
  height: min(620px, calc(100svh - 90px));
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 50% 50%;
  will-change: transform;
}
.open-case__base {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 2%;
  height: 46%;
  overflow: hidden;
  border: 14px solid transparent;
  border-radius: 15px 15px 40px 40px;
  background:
    radial-gradient(circle at 50% 10%, rgba(56,57,55,.68), rgba(8,9,9,.88) 70%) padding-box,
    var(--texture-felt) center / 520px padding-box,
    var(--texture-leather) center / 480px border-box;
  background-blend-mode: multiply, normal, normal;
  box-shadow: inset 0 0 0 3px rgba(151,104,76,.72), inset 0 0 30px #000, 0 22px 35px rgba(0,0,0,.55);
}
.open-case__lid {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 2%;
  height: 46%;
  transform: translateY(0) rotateX(0deg);
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  transition: transform 720ms var(--ease-soft), filter 720ms ease;
  will-change: transform;
}
.case-viewer.is-open .open-case__lid { transform: translateY(-100%) rotateX(-4deg); filter: drop-shadow(0 16px 14px rgba(0,0,0,.36)); }
.open-case__lid-front, .project-screen {
  position: absolute;
  inset: 0;
  border: 14px solid transparent;
  border-radius: 38px 38px 15px 15px;
  backface-visibility: hidden;
}
.open-case__lid-front {
  z-index: 3;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.24), transparent 31%, rgba(26,26,24,.17)) padding-box,
    var(--texture-metal) center / 620px padding-box,
    var(--texture-leather) center / 480px border-box;
  background-blend-mode: screen, normal, normal;
  box-shadow: inset 0 0 0 3px rgba(151,104,76,.72), inset 0 0 18px rgba(0,0,0,.35);
  opacity: 1;
  transition: opacity 180ms ease 180ms;
}
.case-viewer.is-open .open-case__lid-front { opacity: 0; transition-delay: 220ms; }
.open-case__lid-front span { color: #1e1f1e; font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.project-screen {
  z-index: 2;
  overflow: hidden;
  padding: 17px;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    linear-gradient(#0b0d0c, #0b0d0c) padding-box,
    var(--texture-leather) center / 480px border-box;
  box-shadow: inset 0 0 0 3px rgba(151,104,76,.72), inset 0 0 24px #000;
  opacity: 0;
  transition: opacity 260ms ease 420ms;
}
.case-viewer.is-open .project-screen { opacity: 1; }
.project-screen__chrome { color: rgba(255,255,255,.45); font-size: 7px; letter-spacing: .18em; }
.project-screen__art {
  --preview-image: url("assets/cases/previews/vadim-bogdan-v1.webp");
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #090a09;
}
.project-screen__art::before { content: ""; position: absolute; inset: -18px; background: var(--preview-image) center / cover; filter: blur(18px) saturate(.72) brightness(.34); opacity: .78; transform: scale(1.1); }
.project-screen__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.34), transparent 25% 75%, rgba(0,0,0,.34)); }
.project-screen__art img { position: relative; z-index: 2; width: 100%; height: 100%; min-height: 0; display: block; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.48)); }
.open-case__hinges { position: absolute; z-index: 10; left: 15%; right: 15%; bottom: 46%; display: flex; justify-content: space-between; pointer-events: none; }
.open-case__hinges i {
  width: 82px;
  height: 16px;
  border: 1px solid #68645f;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(0,0,0,.28)),
    var(--texture-metal) center / 170px;
  box-shadow: inset 0 0 0 2px #3d3935;
}
.project-copy {
  height: 100%;
  padding: 32px 38px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 11px 24px;
  color: white;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms ease 510ms, transform 360ms var(--ease-soft) 510ms;
}
.case-viewer.is-open .project-copy { opacity: 1; transform: translateY(0); }
.project-copy > p:first-child { grid-column: 1 / -1; margin: 0; display: flex; justify-content: space-between; color: rgba(255,255,255,.43); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.project-copy > p:first-child b { font-weight: 400; }
.project-copy h2 { align-self: center; margin: 0; font-size: clamp(34px, 6vw, 66px); line-height: .84; letter-spacing: -.06em; }
.project-copy > p:nth-of-type(2) { max-width: 350px; align-self: center; margin: 0; color: rgba(255,255,255,.61); font-size: 12px; line-height: 1.5; }
.project-copy a {
  grid-column: 1 / -1;
  min-height: 45px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.project-copy a b { color: var(--accent); font-size: 20px; font-weight: 400; }

@media (max-width: 900px) {
  .hero { min-height: 420px; padding: 50px 35px 34px; grid-template-columns: 1fr; gap: 38px; }
  .brand-lockup h1 { font-size: clamp(86px, 20vw, 140px); }
  .sign-assembly { min-height: 145px; align-self: auto; }
  .project-sign { width: min(440px, 100%); }
  .quilt::after, .quilt__metal { animation: none; }
  .case-viewer::backdrop { background: rgba(2,18,13,.94); backdrop-filter: none; }
  .quilt { padding-top: 125px; }
  .case-grid { grid-template-columns: repeat(3, 1fr); gap: 38px 18px; }
  .portfolio-case__inner { padding-inline: 28px; }
  .about { padding: 42px; grid-template-columns: 1fr; gap: 34px; }
  .about ul { align-self: auto; }
}

@media (max-width: 560px) {
  .marquee { height: 31px; }
  .marquee span { padding-inline: 18px; font-size: 9px; }
  .hero { padding: 45px 19px 30px; }
  .brand-lockup__eyebrow { margin-bottom: 10px; font-size: 7px; }
  .brand-lockup h1 { max-width: 100%; font-size: clamp(72px, 22.5vw, 92px); }
  .brand-lockup__tagline { font-size: 21px; }
  .brand-lockup__copy { font-size: 12px; }
  .sign-assembly { min-height: 126px; }
  .project-sign { width: min(355px, 100%); }
  .quilt { padding: 105px 10px 70px; }
  .portfolio-case { padding: 12px; border-width: 11px; border-radius: 35px 35px 22px 22px; }
  .portfolio-case::before { inset: -6px; border-radius: 29px 29px 16px 16px; }
  .portfolio-case__handle { top: -78px; width: 185px; height: 69px; border-width: 16px; border-bottom: 0; }
  .portfolio-case__handle::before, .portfolio-case__handle::after { width: 39px; height: 22px; bottom: -11px; }
  .portfolio-case__locks { inset: -18px 55px auto; }
  .portfolio-case__locks i { width: 44px; height: 15px; }
  .portfolio-case__inner { padding: 24px 13px 20px; border-radius: 21px; }
  .portfolio-case__head { grid-template-columns: 1fr; justify-items: center; }
  .portfolio-case__head h2 { order: -1; font-size: 36px; }
  .portfolio-case__head p { display: none; }
  .case-grid { width: min(285px, 100%); margin-top: 31px; grid-template-columns: 1fr; gap: 32px; }
  .case-card { padding-inline: 2px; }
  .case-card strong { margin-top: 12px; font-size: 16px; }
  .case-card small { font-size: 9px; }
  .mini-case__label { font-size: 6px; }
  .mini-case__dice { width: 31px; height: 31px; padding-top: 4px; font-size: 7px; }
  .mini-case__plane { font-size: 31px; }
  .portfolio-case__foot { margin-top: 37px; }
  .portfolio-case__foot span { display: none; }
  .portfolio-case__foot a { margin-left: auto; }
  .about { margin-top: 70px; padding: 30px 20px; }
  .open-case { width: calc(100vw - 18px); height: min(650px, calc(100svh - 56px)); }
  .open-case__base { height: 50%; border-width: 9px; border-radius: 10px 10px 24px 24px; }
  .open-case__lid { height: 50%; }
  .open-case__lid-front, .project-screen { border-width: 9px; border-radius: 24px 24px 10px 10px; }
  .case-viewer.is-open .open-case__lid { transform: translateY(-96%) rotateX(-3deg); }
  .open-case__hinges { bottom: 50%; }
  .open-case__hinges i { width: 52px; height: 13px; }
  .project-copy { padding: 22px 18px 18px; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; }
  .project-copy h2 { font-size: clamp(34px, 11vw, 50px); }
  .project-copy > p:nth-of-type(2) { font-size: 11px; }
  .project-copy a { min-height: 43px; }
  .case-viewer__close { top: 10px; right: 10px; }
}

/* v33 — second case row and lightweight knowledge explorer */
.portfolio-orbit .case-card { animation:none!important; will-change:auto; }
.product-cutout {
  position:relative;
  width:100%;
  aspect-ratio:4/3;
  overflow:visible;
  filter:none;
}
.product-cutout img { position:absolute; display:block; object-fit:contain; }
.product-cutout__panel {
  position:absolute;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;
  color:#fff;
  letter-spacing:-.03em;
}
.product-cutout__panel b { font-size:clamp(20px,2vw,30px); line-height:.9; }
.product-cutout__panel strong { margin:0; font-size:clamp(15px,1.4vw,21px); line-height:1; }
.product-cutout__panel small { margin:4px 0 0; color:inherit; font-size:9px; letter-spacing:.16em; }
.product-cutout--neiro::before {
  content:"";
  position:absolute;
  inset:9% 8% 6% 12%;
  background:#1a3f34;
  clip-path:polygon(0 0,84% 0,100% 22%,100% 100%,0 100%);
}
.product-cutout--neiro img { z-index:3; right:2%; top:2%; width:48%; border-radius:50%; }
.product-cutout--neiro .product-cutout__panel { left:19%; bottom:21%; align-items:flex-start; }
.product-cutout--neiro .product-cutout__panel b { color:#b9e5cf; }
.product-cutout--showreel::before {
  content:"";
  position:absolute;
  inset:12% 8% 4% 8%;
  border:7px solid #f0c961;
  background:#050812;
}
.product-cutout--showreel img { z-index:1; left:10%; bottom:6%; width:37%; height:82%; clip-path:inset(0 round 8px); }
.product-cutout--showreel .product-cutout__panel { right:14%; top:25%; align-items:flex-end; text-align:right; }
.product-cutout--showreel .product-cutout__panel b { color:#f0c961; }

@media (min-width:901px) {
  .portfolio-orbit { min-height:660px; padding-bottom:54px; }
  .portfolio-orbit .case-grid { min-height:430px; row-gap:18px; }
  .portfolio-orbit .case-card:nth-child(5) { grid-column:2; }
  .portfolio-orbit .case-card:nth-child(6) { grid-column:3; }
}

.knowledge-dock {
  width:min(1180px,calc(100% - 32px));
  margin:32px auto 84px;
  padding:0;
  overflow:hidden;
  display:grid;
  grid-template-columns:220px minmax(0,1fr) 230px;
  grid-template-rows:34px minmax(250px,auto);
  gap:0;
  border:3px solid #eceae3;
  border-right-color:#34332f;
  border-bottom-color:#34332f;
  border-radius:0;
  background:#d7d4cc;
  box-shadow:none;
  color:#111318;
}
.knowledge-dock::before,.knowledge-dock::after { display:none; }
.knowledge-dock__bar {
  grid-column:1/-1;
  min-height:34px;
  padding:0 5px 0 10px;
  display:flex;
  align-items:center;
  gap:3px;
  background:#083e89;
  color:#fff;
  font:700 12px Arial,Helvetica,sans-serif;
}
.knowledge-dock__bar span { margin-right:auto; }
.knowledge-dock__bar i { width:22px; height:21px; display:grid; place-items:center; border:2px solid #fff; border-right-color:#4d4b46; border-bottom-color:#4d4b46; background:#c6c3bb; color:#111; font-style:normal; }
.knowledge-dock__folders { padding:14px 10px; display:grid; align-content:start; gap:4px; border-right:2px solid #77756f; background:#fffef8; font:13px Arial,Helvetica,sans-serif; }
.knowledge-dock__folders b { margin-bottom:8px; }
.knowledge-dock__folders span { min-height:34px; padding:7px 8px; display:flex; align-items:center; gap:6px; }
.knowledge-dock__folders span:nth-of-type(2) { background:#dce9ff; }
.knowledge-dock__topics { padding:clamp(22px,4vw,46px); background:#fffef8; }
.knowledge-dock__topics h2 { margin:0; font:900 clamp(38px,5vw,70px)/.9 Arial,Helvetica,sans-serif; letter-spacing:-.06em; }
.knowledge-dock__topics>p { max-width:620px; margin:18px 0 24px; color:#5f6670; font:16px/1.5 Arial,Helvetica,sans-serif; }
.knowledge-dock__topics nav { display:grid; }
.knowledge-dock__topics nav a { min-height:54px; padding:9px 0; display:flex; align-items:center; justify-content:space-between; gap:15px; border-top:1px solid #bbb7ae; color:#111318; font:13px Arial,Helvetica,sans-serif; }
.knowledge-dock__topics nav a:last-child { border-bottom:1px solid #bbb7ae; }
.knowledge-dock__topics nav a:hover,.knowledge-dock__topics nav a:focus-visible { background:#dce9ff; color:#111318; outline:2px solid #083e89; outline-offset:-2px; }
.knowledge-dock__topics nav a span { margin:0; color:#656a71; font-size:11px; }
.knowledge-dock__cta {
  width:auto;
  min-height:100%;
  padding:24px;
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  border:0;
  border-left:2px solid #77756f;
  border-radius:0;
  background:#f4c934;
  color:#15120a;
  font:900 25px/.98 Arial,Helvetica,sans-serif;
  letter-spacing:-.04em;
  text-transform:none;
  transition:transform 140ms cubic-bezier(.23,1,.32,1),background-color 140ms ease;
}
.knowledge-dock__cta::before { display:none; }
.knowledge-dock__cta:hover,.knowledge-dock__cta:focus-visible { background:#ffe16a; color:#15120a; transform:none; outline:3px solid #083e89; outline-offset:-6px; }
.knowledge-dock__cta:active { transform:scale(.98); }

@media (max-width:900px) {
  .portfolio-orbit .case-card:nth-child(5),.portfolio-orbit .case-card:nth-child(6) { grid-column:auto; }
  .knowledge-dock { grid-template-columns:190px 1fr; }
  .knowledge-dock__cta { grid-column:1/-1; min-height:80px; border-left:0; border-top:2px solid #77756f; align-items:center; }
}

@media (max-width:560px) {
  .portfolio-orbit .case-card:nth-child(5),.portfolio-orbit .case-card:nth-child(6) { min-height:205px; }
  .knowledge-dock { width:calc(100% - 20px); margin:16px auto 58px; grid-template-columns:1fr; grid-template-rows:32px auto auto; }
  .knowledge-dock__bar { grid-column:1; }
  .knowledge-dock__folders { display:none; }
  .knowledge-dock__topics { padding:24px 16px; }
  .knowledge-dock__topics h2 { font-size:48px; }
  .knowledge-dock__topics nav a { align-items:flex-start; flex-direction:column; gap:4px; }
  .knowledge-dock__topics nav a span { text-align:left; }
  .knowledge-dock__cta { min-height:86px; font-size:23px; }
}

/* v31 — crawlable knowledge and case paths without changing the first fold */
@property --dock-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.case-details__actions { display: grid; gap: 8px; }
.knowledge-dock {
  --dock-angle: 0deg;
  position: relative;
  isolation: isolate;
  width: min(1100px, calc(100% - 32px));
  margin: 12px auto 56px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.25fr) auto;
  align-items: center;
  gap: 30px;
  border: 0;
  border-radius: 28px;
  background: radial-gradient(circle at 92% 10%, rgba(36,246,255,.1), transparent 28%), linear-gradient(145deg, rgba(12,18,33,.94), rgba(3,6,14,.97));
  color: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.07);
  content-visibility: auto;
  contain-intrinsic-size: 210px;
}
.knowledge-dock::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: repeating-conic-gradient(
    from var(--dock-angle),
    #24f6ff 0deg 5deg,
    #07101a 5deg 7deg,
    #ff39d6 7deg 12deg,
    #07101a 12deg 14deg,
    #b6ff35 14deg 19deg,
    #07101a 19deg 21deg,
    #ffb52d 21deg 26deg,
    #07101a 26deg 28deg,
    #8c6cff 28deg 33deg,
    #07101a 33deg 35deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 5px rgba(36,246,255,.5)) drop-shadow(0 0 10px rgba(255,57,214,.22));
  animation: knowledge-border-orbit 7s linear infinite;
  pointer-events: none;
}
.knowledge-dock::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -10px;
  border-radius: 36px;
  box-shadow: 0 0 22px rgba(36,246,255,.12), 0 0 26px rgba(255,57,214,.08);
  pointer-events: none;
}
@keyframes knowledge-border-orbit { to { --dock-angle: 360deg; } }
.knowledge-dock > * { position: relative; z-index: 1; }
.knowledge-dock h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: .9; letter-spacing: -.055em; }
.knowledge-dock span { max-width: 380px; margin-top: 14px; display: block; color: rgba(225,234,250,.62); font-size: 12px; line-height: 1.5; }
.knowledge-dock nav { display: grid; }
.knowledge-dock nav a { padding: 10px 0; border-top: 1px solid rgba(183,207,245,.14); color: rgba(235,241,252,.78); font-size: 12px; }
.knowledge-dock nav a:last-child { border-bottom: 1px solid rgba(183,207,245,.14); }
.knowledge-dock nav a:hover, .knowledge-dock nav a:focus-visible { color: #fff; }
.knowledge-dock__cta {
  min-height: 52px;
  padding: 0 20px 0 70px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(109,225,255,.5);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(27,37,51,.98), rgba(3,7,13,.98));
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -3px 0 rgba(0,0,0,.62),
    0 0 15px rgba(36,246,255,.12);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.knowledge-dock__cta::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 39px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    #24f6ff 0 7px, transparent 7px 9px,
    #ff39d6 9px 16px, transparent 16px 18px,
    #b6ff35 18px 25px, transparent 25px 27px,
    #ffb52d 27px 34px, transparent 34px 36px,
    #8c6cff 36px 39px);
  box-shadow: 0 0 7px rgba(36,246,255,.58), 0 0 9px rgba(255,57,214,.32);
  transform: translateY(-50%);
}
.knowledge-dock__cta:hover,
.knowledge-dock__cta:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(182,255,53,.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -3px 0 rgba(0,0,0,.62), 0 0 22px rgba(36,246,255,.22), 0 0 18px rgba(182,255,53,.12);
}
.home-footer { padding: 26px max(20px, calc((100% - 1100px) / 2)); display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(183,207,245,.13); background: #02040b; color: rgba(225,234,250,.48); font-size: 10px; }
.home-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.home-footer a:hover { color: #fff; }

@media (max-width: 780px) {
  .knowledge-dock { grid-template-columns: 1fr; gap: 20px; }
  .knowledge-dock__cta { width: fit-content; }
  .home-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-dock::before { animation: none; }
}

/* v14 — lightweight orbital portfolio */
.cosmos {
  position: relative;
  isolation: isolate;
  min-height: 1260px;
  padding: 0 0 110px;
  overflow: hidden;
  color: white;
  background: #02030a;
}
.cosmos::before {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: -4;
  background: #02030a url("assets/cosmos/deep-space-luxury-v1.webp") center top / cover no-repeat;
  transform: none;
}
.cosmos::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(198,220,255,.85) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 27%, rgba(255,227,174,.8) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 68%, rgba(255,255,255,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 74%, rgba(177,204,255,.72) 0 1px, transparent 2px);
  background-size: 280px 260px, 360px 330px, 240px 300px, 420px 360px;
  opacity: .55;
}
.cosmos__stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 32%, transparent 0 25%, rgba(0,0,10,.18) 72%, rgba(0,0,8,.55));
}
@keyframes cosmos-drift { to { transform: scale(1.09) translate3d(-1.2%, -.7%, 0); } }
@keyframes cosmos-twinkle { to { opacity: .76; transform: translate3d(5px, -3px, 0); } }

.portfolio-orbit {
  position: relative;
  width: min(1320px, 100%);
  min-height: 620px;
  margin: 0 auto;
  padding: 50px clamp(28px, 5vw, 72px) 58px;
}
.hero-cta {
  position: relative;
  z-index: 3;
  width: min(540px, 100%);
  margin: 0 auto;
  isolation: isolate;
}
.hero-cta::before {
  content: "";
  position: absolute;
  z-index: -2;
  right: -2%;
  top: 50%;
  width: 45%;
  height: 72%;
  border-radius: 50%;
  transform: translateY(-50%) scale(.82);
  background: radial-gradient(ellipse, rgba(255,183,34,.74), rgba(255,72,15,.3) 38%, transparent 74%);
  filter: none;
  opacity: .34;
  pointer-events: none;
}
.hero-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 5%;
  right: 18%;
  bottom: 9%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,179,32,.34), transparent 70%);
  filter: none;
  opacity: .24;
  pointer-events: none;
}
.project-rocket {
  position: relative;
  display: block;
  width: 100%;
  transform: translate3d(0, 0, 0);
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.24));
  transition: transform 220ms var(--ease-soft);
}
.project-rocket img {
  width: 100%;
  height: auto;
  display: block;
}
.project-rocket:hover,
.project-rocket:focus-visible {
  transform: translate3d(8px, -3px, 0) scale(1.018);
}
.project-rocket:focus-visible {
  outline: 2px solid rgba(255,210,80,.95);
  outline-offset: 5px;
  border-radius: 45%;
}
.project-glass {
  position: relative;
  width: 270px;
  min-height: 62px;
  padding: 0 20px 0 26px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.23), rgba(255,255,255,.055) 44%, rgba(255,255,255,.12)),
    rgba(14,18,28,.46);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.48),
    inset 0 -1px 0 rgba(255,255,255,.08),
    0 16px 44px rgba(0,0,0,.38),
    0 0 28px rgba(232, 18, 48, .18);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: transform 220ms var(--ease-soft), border-color 220ms ease, box-shadow 220ms ease;
}
.project-glass::before {
  content: "";
  position: absolute;
  inset: 2px 28% 52% 8%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.36), rgba(255,255,255,.03));
  filter: blur(5px);
  pointer-events: none;
}
.project-glass::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -42%;
  width: 42%;
  height: 240%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
  animation: glass-sweep 4.6s ease-in-out infinite;
  pointer-events: none;
}
.project-glass span { position: relative; z-index: 1; }
.project-glass:hover,
.project-glass:focus-visible {
  transform: translateY(-3px) scale(1.018);
  border-color: rgba(255,255,255,.52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58), 0 20px 50px rgba(0,0,0,.42), 0 0 42px rgba(240, 20, 50, .32);
}
.project-glass:focus-visible { outline: 2px solid rgba(255,255,255,.9); outline-offset: 4px; }
@keyframes red-pulse {
  0%, 100% { opacity: .48; transform: translate(-50%, -50%) scale(.72); }
  50% { opacity: .92; transform: translate(-50%, -50%) scale(1); }
}
@keyframes rocket-glow {
  0%, 100% { opacity: .46; transform: translateY(-50%) scale(.82); }
  50% { opacity: .82; transform: translateY(-50%) scale(1); }
}
@keyframes rocket-float {
  0%, 100% { transform: translate3d(0, 3px, 0) rotate(-.25deg); }
  50% { transform: translate3d(0, -5px, 0) rotate(.25deg); }
}
@keyframes glass-sweep {
  0%, 45% { left: -48%; opacity: 0; }
  58% { opacity: .8; }
  78%, 100% { left: 112%; opacity: 0; }
}
.portfolio-orbit::before,
.portfolio-orbit::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 7%;
  right: 7%;
  top: 36%;
  height: 38%;
  border: 1px solid rgba(166,195,236,.14);
  border-radius: 50%;
  transform: rotate(-7deg);
  box-shadow: inset 0 0 50px rgba(82,120,188,.035), 0 0 45px rgba(88,135,214,.035);
}
.portfolio-orbit::after { left: 17%; right: 17%; top: 43%; height: 22%; transform: rotate(6deg); opacity: .6; }
.orbit-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.orbit-head h2 { margin: 0; font-size: clamp(42px, 5vw, 70px); letter-spacing: -.055em; text-shadow: 0 8px 32px rgba(117,157,225,.22); }
.orbit-head p { margin: 0 0 9px; color: rgba(222,232,250,.48); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; }
.orbit-head p:last-child { text-align: right; }

.portfolio-orbit .case-grid {
  position: relative;
  width: min(1240px, 100%);
  min-height: 310px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.2vw, 34px);
  align-items: center;
}
.portfolio-orbit .case-grid::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 49%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,208,247,.22), transparent);
  box-shadow: 0 0 18px rgba(123,165,238,.22);
}
.portfolio-orbit .case-card {
  z-index: 1;
  min-height: 255px;
  justify-content: center;
  padding: 26px 5px 12px;
  border-radius: 48%;
  animation: none;
}
.portfolio-orbit .case-card:nth-child(2),
.portfolio-orbit .case-card:nth-child(3) { margin-top: 0; }
.portfolio-orbit .case-card::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -5% 12% 29%;
  border: 1px solid color-mix(in srgb, var(--case-accent) 38%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 44%, color-mix(in srgb, var(--case-accent) 14%, transparent), transparent 62%),
    linear-gradient(rgba(8,13,28,.52), rgba(2,4,12,.74));
  opacity: .48;
  box-shadow: 0 0 45px color-mix(in srgb, var(--case-accent) 21%, transparent), inset 0 0 38px rgba(1,3,10,.85);
  transform: perspective(500px) rotateX(64deg) scale(.96);
  transition: opacity .28s ease, box-shadow .28s ease;
}
.portfolio-orbit .case-card:hover::before,
.portfolio-orbit .case-card:focus-visible::before { opacity: .56; box-shadow: 0 0 62px color-mix(in srgb, var(--case-accent) 33%, transparent), inset 0 0 32px rgba(1,3,10,.75); }
.portfolio-orbit .case-card__glow { top: 24%; height: 50%; background: radial-gradient(ellipse, color-mix(in srgb, var(--case-accent) 52%, white), color-mix(in srgb, var(--case-accent) 25%, transparent) 38%, transparent 72%); }
.portfolio-orbit .mini-case { max-width: 285px; }
.portfolio-orbit .premium-case { aspect-ratio: 4 / 3; }
.portfolio-orbit .premium-case img { animation: none; }
.portfolio-orbit .case-card:nth-child(2) .premium-case img,
.portfolio-orbit .case-card:nth-child(3) .premium-case img { animation: none; }
.portfolio-orbit .case-card strong { margin-top: 10px; font-size: clamp(18px, 1.7vw, 24px); text-shadow: 0 3px 13px #000; }
.portfolio-orbit .case-card small { color: rgba(219,229,246,.64); letter-spacing: .05em; }
@keyframes case-float-a { 0%,100% { transform: translate3d(0, 8px, 0) rotate(-1.1deg); } 50% { transform: translate3d(0, -15px, 0) rotate(.9deg); } }
@keyframes case-float-b { 0%,100% { transform: translate3d(0, -5px, 0) rotate(.6deg); } 50% { transform: translate3d(0, 16px, 0) rotate(-.7deg); } }
@keyframes case-float-c { 0%,100% { transform: translate3d(0, 11px, 0) rotate(.8deg); } 50% { transform: translate3d(0, -12px, 0) rotate(-1deg); } }
.orbit-next { position: absolute; right: clamp(28px, 7vw, 95px); bottom: 20px; color: rgba(221,232,250,.62); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }

.cosmos .about {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  border: 1px solid rgba(184,207,245,.2);
  background: linear-gradient(145deg, rgba(9,13,28,.92), rgba(2,4,12,.96));
  box-shadow: 0 28px 80px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.08);
  content-visibility: auto;
  contain-intrinsic-size: 760px;
}
.cosmos .about li span { color: #a7c7ff; }

.case-viewer::backdrop { background: rgba(0,0,8,.95); backdrop-filter: none; }
.portal-case {
  width: min(920px, calc(100vw - 34px));
  height: min(650px, calc(100svh - 70px));
  overflow: visible;
}
.portal-hole {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: min(900px, 112vw);
  aspect-ratio: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.08);
  transition: opacity 320ms ease, transform 820ms var(--ease-soft);
  pointer-events: none;
}
.portal-hole::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 40px color-mix(in srgb, var(--accent) 28%, transparent));
  animation: portal-spin 28s linear infinite;
}
.case-viewer.is-centered .portal-hole::before { background-image: url("assets/cosmos/black-hole-portal-v1.webp"); }
@keyframes portal-spin { to { transform: rotate(360deg); } }
.case-viewer.is-open .portal-hole { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.portal-flight-case {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: min(720px, 92%);
  height: auto;
  transform: translate(-50%, -50%) scale(1);
  filter: drop-shadow(0 22px 30px rgba(0,0,0,.7));
  transition: opacity 430ms ease 110ms, transform 720ms var(--ease-soft), filter 580ms ease;
  pointer-events: none;
}
.case-viewer.is-open .portal-flight-case { opacity: 0; transform: translate(-50%, -50%) scale(.08) rotate(-12deg); filter: blur(8px) drop-shadow(0 0 20px var(--accent)); }
.portal-content {
  position: absolute;
  z-index: 6;
  inset: 7% 3% 4%;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 18px;
  opacity: 0;
  transform: scale(.18) rotateX(12deg);
  transform-origin: 50% 52%;
  pointer-events: none;
  transition: opacity 400ms ease 300ms, transform 720ms var(--ease-soft) 220ms;
}
.case-viewer.is-open .portal-content { opacity: 1; transform: scale(1) rotateX(0); pointer-events: auto; }
.portal-screen {
  position: relative;
  inset: auto;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(215,229,255,.24);
  border-radius: 28px;
  background: rgba(3,6,14,.86);
  box-shadow: 0 24px 70px rgba(0,0,0,.46), inset 0 1px rgba(255,255,255,.08);
  opacity: 1;
  transition: none;
}
.case-viewer.is-open .portal-screen { opacity: 1; }
.portal-screen .project-screen__art { min-height: 0; border-radius: 20px; }
.portal-case .project-copy {
  height: auto;
  min-width: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid rgba(215,229,255,.19);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(12,17,34,.92), rgba(2,5,13,.96));
  box-shadow: 0 24px 70px rgba(0,0,0,.46), inset 0 1px rgba(255,255,255,.08);
  opacity: 1;
  transform: none;
  transition: none;
}
.portal-case .project-copy > p:first-child { width: 100%; }
.portal-case .project-copy h2 { margin: auto 0 0; font-size: clamp(42px, 5.2vw, 70px); }
.portal-case .project-copy > p:nth-of-type(2) { max-width: 430px; margin: 0 0 auto; font-size: 13px; }
.portal-case .project-copy a { width: 100%; }

@media (max-width: 900px) {
  .cosmos::before { animation-duration: 42s; }
  .portfolio-orbit { min-height: 0; padding: 70px 28px 66px; }
  .orbit-head h2 { font-size: 50px; }
  .portfolio-orbit .case-grid { width: min(720px, 100%); min-height: 0; grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
  .portfolio-orbit .mini-case { max-width: 285px; }
  .portfolio-orbit .case-card { min-height: 255px; }
  .portal-case { width: calc(100vw - 18px); height: min(700px, calc(100svh - 40px)); }
  .portal-content { inset: 7% 2% 3%; }
}

@media (max-width: 560px) {
  .cosmos { min-height: 0; padding-bottom: 56px; }
  .cosmos::before { inset: 0; background-size: auto 980px; background-repeat: repeat-y; animation: none; }
  .cosmos::after { opacity: .4; animation-duration: 11s; }
  .hero { min-height: 245px; padding-bottom: 31px; grid-template-columns: 1fr; }
  .hero-cosmos-bridge {
    inset: auto 0 -70px;
    height: 148px;
    background-position: center top;
    background-size: auto 420px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='320' viewBox='0 0 1000 320' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='12'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M1050 22V370H-50V202C120 181 245 210 400 187C555 164 668 142 765 111C875 76 956 42 1050 22Z' fill='white' filter='url(%23b)'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='320' viewBox='0 0 1000 320' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='12'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M1050 22V370H-50V202C120 181 245 210 400 187C555 164 668 142 765 111C875 76 956 42 1050 22Z' fill='white' filter='url(%23b)'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
  .hero-cta { position: absolute; left: 50%; bottom: -78px; width: min(390px, 98vw); margin: 0; transform: translateX(-50%); }
  .portfolio-orbit { min-height: 0; padding: 86px 16px 58px; }
  .portfolio-orbit::before { left: -50%; right: -50%; top: 25%; height: 56%; }
  .portfolio-orbit::after { left: -22%; right: -22%; top: 32%; height: 41%; }
  .orbit-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .orbit-head h2 { order: -1; font-size: 43px; }
  .orbit-head p { display: none; }
  .portfolio-orbit .case-grid { width: min(310px, 100%); min-height: 0; margin-top: 34px; grid-template-columns: 1fr; gap: 56px; }
  .portfolio-orbit .case-grid::before { top: 5%; bottom: 5%; left: 50%; right: auto; width: 1px; height: auto; background: linear-gradient(transparent, rgba(184,208,247,.2), transparent); }
  .portfolio-orbit .case-card,
  .portfolio-orbit .case-card:nth-child(2),
  .portfolio-orbit .case-card:nth-child(3),
  .portfolio-orbit .case-card:nth-child(4) { min-height: 250px; margin-top: 0; }
  .portfolio-orbit .case-card::before { inset: -7% 11% 26%; }
  .portfolio-orbit .mini-case { max-width: 285px; }
  .orbit-next { right: 20px; bottom: 16px; }
  .cosmos .about { margin-top: 55px; }
  .portal-case { height: min(730px, calc(100svh - 26px)); }
  .portal-hole { width: 165vw; }
  .portal-flight-case { width: 94%; }
  .portal-content { inset: 9% 10px 10px; grid-template-columns: 1fr; grid-template-rows: 44% 1fr; gap: 10px; }
  .portal-screen { padding: 9px; border-radius: 20px; }
  .portal-screen .project-screen__art { border-radius: 14px; }
  .portal-case .project-copy { padding: 20px 17px 16px; gap: 10px; border-radius: 20px; }
  .portal-case .project-copy h2 { margin-top: 0; font-size: clamp(34px, 11vw, 48px); }
  .portal-case .project-copy > p:nth-of-type(2) { margin-bottom: auto; font-size: 11px; }
  .portal-case .project-copy a { min-height: 43px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* v17 — clean gallery viewer and constant orbital motion */
.portfolio-orbit .case-card {
  --orbit-radius: 13px;
  --orbit-duration: 38s;
  padding-block: 18px;
  animation: case-orbit var(--orbit-duration) linear infinite;
  will-change: transform;
}
.portfolio-orbit .case-card:nth-child(1) { --orbit-radius: 14px; --orbit-duration: 36s; animation-delay: -7s; }
.portfolio-orbit .case-card:nth-child(2) { --orbit-radius: 11px; --orbit-duration: 42s; animation-delay: -23s; animation-direction: reverse; }
.portfolio-orbit .case-card:nth-child(3) { --orbit-radius: 16px; --orbit-duration: 45s; animation-delay: -31s; }
.portfolio-orbit .case-card:nth-child(4) { --orbit-radius: 12px; --orbit-duration: 40s; animation-delay: -17s; animation-direction: reverse; }
@keyframes case-orbit {
  from { transform: rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg); }
}
.portfolio-orbit .case-card::before { inset: 2% 12% 18%; }
.portfolio-orbit .case-card strong,
.portfolio-orbit .case-card small { display: none; }

.case-viewer::backdrop { background: rgba(1, 3, 10, .9); backdrop-filter: none; }
.case-viewer__stage { padding: 42px 24px 22px; perspective: none; }
.case-viewer__close {
  top: 18px;
  right: 22px;
  border-radius: 999px;
  background: rgba(8, 10, 18, .92);
  transition: opacity 180ms ease, border-color 180ms ease;
}
.case-showcase {
  --accent: #aaff35;
  width: min(1120px, calc(100vw - 48px));
  height: min(700px, calc(100svh - 84px));
  min-height: 520px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(310px, .72fr);
  border: 1px solid rgba(218, 230, 255, .2);
  border-radius: 30px;
  background: #060913;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .66), inset 0 1px rgba(255, 255, 255, .06);
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: none;
}
.case-viewer.is-open .case-showcase { opacity: 1; transform: translateY(0) scale(1); }
.case-viewer.is-open .case-viewer__close { opacity: 1; pointer-events: auto; transition: none; }
.case-gallery {
  min-width: 0;
  min-height: 0;
  padding: 18px 18px 14px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  border-right: 1px solid rgba(218, 230, 255, .14);
  background: linear-gradient(145deg, rgba(15, 19, 35, .98), rgba(4, 7, 15, .98));
}
.case-gallery__frame {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(218, 230, 255, .13);
  border-radius: 20px;
  background: #02040a;
  touch-action: pan-y;
}
.case-gallery__frame img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: contain;
  opacity: 1;
  transform: scale(1);
  transition: none;
}
.case-gallery__frame img.is-portrait { width: auto; max-width: 100%; }
.case-gallery__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 50%;
  background: rgba(5, 8, 17, .78);
  color: white;
  font-size: 21px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, border-color 160ms ease;
}
.case-gallery__arrow:hover,
.case-gallery__arrow:focus-visible { border-color: var(--accent); background: rgba(9, 13, 25, .96); }
.case-gallery__arrow--prev { left: 14px; }
.case-gallery__arrow--next { right: 14px; }
.case-gallery__footer { min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: rgba(225, 234, 250, .54); font-size: 9px; letter-spacing: .14em; }
.case-gallery__dots { display: flex; align-items: center; gap: 8px; }
.case-gallery__dots button { width: 24px; height: 3px; padding: 0; border-radius: 99px; background: rgba(255, 255, 255, .2); cursor: pointer; transition: width 180ms ease, background 180ms ease; }
.case-gallery__dots button.is-active { width: 44px; background: var(--accent); }
.case-details {
  min-width: 0;
  padding: clamp(26px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: white;
  background:
    radial-gradient(circle at 14% 10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 35%),
    linear-gradient(150deg, rgba(12, 16, 29, .98), rgba(3, 6, 14, 1));
}
.case-details > p:first-child { margin: 0; display: flex; justify-content: space-between; gap: 16px; color: rgba(222, 231, 247, .47); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.case-details > p:first-child b { font-weight: 400; }
.case-details h2 { margin: auto 0 0; font-size: clamp(42px, 5.1vw, 72px); line-height: .87; letter-spacing: -.06em; }
.case-details > p:nth-of-type(2) { max-width: 400px; margin: 0 0 auto; color: rgba(225, 232, 245, .65); font-size: 13px; line-height: 1.55; }
.case-details a {
  min-height: 48px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, .23);
  color: white;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.case-details a b { color: var(--accent); font-size: 20px; font-weight: 400; }

@media (max-width: 780px) {
  .case-viewer__stage { padding: 58px 8px 8px; }
  .case-viewer__close { top: 10px; right: 10px; }
  .case-showcase {
    width: calc(100vw - 16px);
    height: calc(100svh - 66px);
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 58%) minmax(0, 42%);
    border-radius: 23px;
  }
  .case-gallery { padding: 10px 10px 8px; border-right: 0; border-bottom: 1px solid rgba(218, 230, 255, .14); }
  .case-gallery__frame { border-radius: 15px; }
  .case-gallery__arrow { width: 40px; height: 40px; }
  .case-gallery__arrow--prev { left: 8px; }
  .case-gallery__arrow--next { right: 8px; }
  .case-gallery__footer { padding-inline: 2px; }
  .case-details { padding: 18px 18px 14px; gap: 10px; }
  .case-details h2 { margin-top: 0; font-size: clamp(36px, 11vw, 50px); }
  .case-details > p:nth-of-type(2) { font-size: 11px; line-height: 1.45; }
  .case-details a { min-height: 44px; }
}

@media (max-width: 560px) {
  .portfolio-orbit .case-grid { gap: 30px; }
  .portfolio-orbit .case-card,
  .portfolio-orbit .case-card:nth-child(2),
  .portfolio-orbit .case-card:nth-child(3),
  .portfolio-orbit .case-card:nth-child(4) { min-height: 205px; }
  .portfolio-orbit .case-card { --orbit-radius: 9px; }
  .portfolio-orbit .case-card::before { inset: 1% 11% 14%; }
  .orbit-next { bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-orbit .case-card { animation: none !important; }
  .case-showcase,
  .case-gallery__frame img { transition-duration: .01ms !important; }
}

/* v18 — cooler desktop render path */
.cosmos {
  min-height: 0;
  padding-bottom: 22px;
}
.portfolio-orbit { min-height: 590px; }

/* v20 — owner-supplied cases title artwork */
.orbit-head .orbit-title-art {
  width: min(500px, 42vw);
  line-height: 0;
}
.orbit-title-art img { width: 100%; height: auto; display: block; }
.portfolio-orbit .case-grid { margin-top: -54px; }

body.is-locked .portfolio-orbit .case-card,
body.is-locked .marquee__track { animation-play-state: paused; }

@media (min-width: 901px) {
  .hero::after { display: none; }
  .hero-cosmos-bridge { filter: none; }
  .marquee__track {
    animation: marquee-left 42s linear infinite;
    will-change: transform;
  }
  .portfolio-orbit .case-card { will-change: auto; }
  .portfolio-orbit .case-card__glow { filter: none; opacity: .18; }
  .portfolio-orbit .mini-case { filter: none; }
  .portfolio-orbit .case-card:hover .mini-case,
  .portfolio-orbit .case-card:focus-visible .mini-case { filter: none; }
  .portfolio-orbit .case-card::before { box-shadow: inset 0 0 24px rgba(1,3,10,.72); }
}

@media (max-width: 560px) {
  .orbit-head .orbit-title-art { width: min(380px, 100%); }
  .portfolio-orbit .case-grid { margin-top: -34px; }
}

/* v21 — compact desktop fold with the complete first case row visible */
@media (min-width: 901px) {
  .hero {
    height: 235px;
    min-height: 235px;
    padding-top: 25px;
    padding-bottom: 24px;
  }
  .portfolio-orbit {
    min-height: 440px;
    padding-top: 10px;
    padding-bottom: 22px;
  }
  .orbit-head { align-items: center; }
  .orbit-head p { margin-bottom: 0; }
  .orbit-head .orbit-title-art {
    width: 390px;
    height: 220px;
    display: grid;
    place-items: start center;
    transform: translateY(-10px);
  }
  .orbit-head .orbit-title-art img { width: 370px; }
  .portfolio-orbit .case-grid {
    min-height: 220px;
    margin-top: -20px;
  }
  .portfolio-orbit .case-card {
    min-height: 170px;
    padding-block: 8px;
  }
  .portfolio-orbit .mini-case { max-width: 210px; }
}

/* v25 — directional horizon and dimensional spacecraft details */
.marquee {
  border-bottom-color: rgba(0, 0, 0, .72);
  background:
    linear-gradient(180deg, rgba(255,255,255,.32), transparent 28%, rgba(0,0,0,.38) 78%, rgba(255,255,255,.08)),
    repeating-linear-gradient(90deg, #1d232d 0 28px, #344554 28px 56px, #18202a 56px 84px);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.58),
    inset 0 -3px 0 rgba(0,0,0,.44),
    0 3px 10px rgba(0,0,0,.24);
}
.marquee__group {
  justify-content: flex-start;
  gap: 10px;
}
.marquee span {
  min-height: 26px;
  padding-inline: 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(18,24,33,.96), rgba(4,8,14,.96));
  color: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -2px 0 rgba(0,0,0,.5);
  text-shadow: 0 1px 2px rgba(0,0,0,.9);
}
.marquee span:nth-of-type(3n + 1) { border-color: rgba(255,204,39,.72); }
.marquee span:nth-of-type(3n + 2) { border-color: rgba(64,174,216,.66); }
.marquee span:nth-of-type(3n) { border-color: rgba(238,103,65,.62); }
.marquee i {
  width: 66px;
  height: 20px;
  transform: none;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 2px;
  background: repeating-linear-gradient(90deg,
    #ffd12d 0 10px,
    #2595bd 10px 20px,
    #ee6741 20px 30px,
    #e3edf0 30px 40px,
    #394654 40px 50px,
    #ffd12d 50px 60px);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.42), inset 0 -3px 3px rgba(0,0,0,.34), 0 0 8px rgba(121,196,225,.22);
}

@media (min-width: 901px) {
  .hero {
    box-shadow: inset 0 1px 0 #fff, inset 0 -26px 40px rgba(27,35,49,.09);
  }
  .hero-cosmos-bridge {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='320' viewBox='0 0 1000 320' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='b' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M1050 -35V365H-50V291C82 282 196 289 320 296C402 299 468 281 530 251C612 213 680 173 744 129C820 77 895 27 962 -8C996 -26 1021 -34 1050 -35Z' fill='white' filter='url(%23b)'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='320' viewBox='0 0 1000 320' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='b' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M1050 -35V365H-50V291C82 282 196 289 320 296C402 299 468 281 530 251C612 213 680 173 744 129C820 77 895 27 962 -8C996 -26 1021 -34 1050 -35Z' fill='white' filter='url(%23b)'/%3E%3C/svg%3E");
  }
  .project-rocket {
    filter:
      drop-shadow(0 16px 14px rgba(0,0,0,.5))
      drop-shadow(0 0 7px rgba(255,185,38,.2));
  }
  .orbit-title-art img {
    filter:
      drop-shadow(0 15px 10px rgba(0,0,0,.72))
      drop-shadow(0 0 8px rgba(255,202,53,.18));
  }
}

@media (max-width: 560px) {
  .marquee__group { gap: 6px; }
  .marquee span { min-height: 22px; padding-inline: 12px; }
  .marquee i { width: 44px; height: 16px; }
}

/* v26 — neon square portholes across the flying-saucer rim */
.marquee {
  isolation: isolate;
  background: linear-gradient(180deg, #1b2532 0%, #070b13 42%, #020409 100%);
  box-shadow:
    inset 0 1px 0 rgba(222,246,255,.68),
    inset 0 -3px 0 rgba(0,0,0,.72),
    0 3px 12px rgba(0,0,0,.32);
}
.marquee::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 5px 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='24' viewBox='0 0 168 24'%3E%3Cdefs%3E%3Cfilter id='g' x='-40%25' y='-100%25' width='180%25' height='300%25'%3E%3CfeGaussianBlur stdDeviation='2' result='b'/%3E%3CfeMerge%3E%3CfeMergeNode in='b'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23g)'%3E%3Crect x='4' y='5' width='18' height='14' rx='2' fill='%2324f6ff'/%3E%3Crect x='36' y='5' width='18' height='14' rx='2' fill='%23ff39d6'/%3E%3Crect x='68' y='5' width='18' height='14' rx='2' fill='%23b6ff35'/%3E%3Crect x='100' y='5' width='18' height='14' rx='2' fill='%23ffb52d'/%3E%3Crect x='132' y='5' width='18' height='14' rx='2' fill='%238c6cff'/%3E%3C/g%3E%3C/svg%3E") center / 168px 24px repeat-x;
  opacity: .92;
}
.marquee::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid rgba(255,255,255,.38);
  border-bottom: 1px solid rgba(105,219,255,.22);
  box-shadow: inset 0 0 9px rgba(73,220,255,.1);
}
.marquee__track { z-index: 1; }
.marquee span {
  border-color: rgba(123,231,255,.54);
  background: linear-gradient(180deg, rgba(12,18,28,.96), rgba(2,5,10,.96));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -2px 0 rgba(0,0,0,.58),
    0 0 7px rgba(36,246,255,.18);
}
.marquee span:nth-of-type(3n + 1) { border-color: rgba(36,246,255,.72); }
.marquee span:nth-of-type(3n + 2) { border-color: rgba(255,57,214,.66); }
.marquee span:nth-of-type(3n) { border-color: rgba(182,255,53,.68); }
.marquee i {
  width: 66px;
  height: 22px;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='24' viewBox='0 0 72 24'%3E%3Cdefs%3E%3Cfilter id='g' x='-50%25' y='-100%25' width='200%25' height='300%25'%3E%3CfeGaussianBlur stdDeviation='2' result='b'/%3E%3CfeMerge%3E%3CfeMergeNode in='b'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23g)'%3E%3Crect x='4' y='5' width='18' height='14' rx='2' fill='%2324f6ff'/%3E%3Crect x='27' y='5' width='18' height='14' rx='2' fill='%23ff39d6'/%3E%3Crect x='50' y='5' width='18' height='14' rx='2' fill='%23b6ff35'/%3E%3C/g%3E%3C/svg%3E") center / 72px 24px no-repeat;
  box-shadow: none;
}

@media (max-width: 560px) {
  .marquee::before { inset-block: 4px; background-size: 126px 18px; }
  .marquee i { width: 48px; height: 18px; background-size: 54px 18px; }
}

/* v27 — reclaim the empty mobile space above the brand */
@media (max-width: 560px) {
  .hero {
    min-height: 205px;
    padding: 18px 19px 24px;
    align-items: start;
  }
  .hero-cta { bottom: -72px; }
}

/* v28 — handwritten gel-pen prompt pointing to the rocket */
.rocket-note {
  position: absolute;
  z-index: 5;
  left: 58%;
  top: 122%;
  width: 300px;
  display: grid;
  justify-items: start;
  color: #fff;
  font-family: "Caveat Local", "Segoe Print", "Marker Felt", cursive;
  font-size: 24px;
  font-weight: 700;
  line-height: .92;
  letter-spacing: .005em;
  transform: rotate(-2.5deg);
  text-shadow:
    0 0 2px rgba(255,255,255,1),
    0 0 8px rgba(255,255,255,.72),
    0 3px 7px rgba(0,0,0,.92);
}
.rocket-note strong {
  color: #ffe77a;
  font: inherit;
  text-shadow:
    0 0 2px rgba(255,255,255,1),
    0 0 9px rgba(255,236,150,.78),
    0 3px 7px rgba(0,0,0,.92);
}
.rocket-note svg {
  position: absolute;
  left: -125px;
  top: -48px;
  width: 120px;
  height: 80px;
  overflow: visible;
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 0 2px rgba(255,255,255,1))
    drop-shadow(0 0 7px rgba(255,255,255,.72))
    drop-shadow(0 3px 3px rgba(0,0,0,.72));
}
.rocket-note:hover,
.rocket-note:focus-visible { color: #fff; transform: rotate(-2.5deg) translateY(-2px); }
.rocket-note:focus-visible { outline: 2px solid rgba(255,231,122,.9); outline-offset: 5px; border-radius: 8px; }

@media (max-width: 560px) {
  .rocket-note {
    left: 12px;
    top: 77%;
    width: 220px;
    font-size: 16.5px;
    line-height: .94;
    transform: rotate(-2deg);
  }
  .rocket-note svg {
    display: none;
  }
  .rocket-note:hover,
  .rocket-note:focus-visible { transform: rotate(-2deg) translateY(-1px); }
}
