/* ============================================================
   VISIONZ — "Through the Clouds"  ·  premium refinement
   Continuous scroll-scrubbed flight · refined glassmorphism ·
   staggered blur-in reveals · cursor spotlight
   ============================================================ */
:root {
  --ink:      #06070a;
  --ink-2:    #0d0f14;
  --sky-1:    #d8ecff;
  --sky-2:    #9cc4ee;
  --paper:    #f5f8fd;
  --paper-dim:#d9e1ee;
  --paper-mut:#aab4c6;
  --grey:     #8b93a3;
  --grey-2:   #5a6272;

  --glass-blur: 18px;
  --glass-brd:  rgba(198, 220, 250, 0.16);
  --radius:     22px;

  --font-display: "Space Grotesk", sans-serif;
  --font-body:    "Inter", sans-serif;
  --font-serif:   "Instrument Serif", Georgia, serif;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease2: cubic-bezier(0.65, 0.05, 0.36, 1);
  --maxw:  1200px;

  --tsh:       0 1px 2px rgba(2,6,14,0.5), 0 2px 22px rgba(2,6,14,0.5);
  --tsh-sm:    0 1px 2px rgba(2,6,14,0.6), 0 0 10px rgba(2,6,14,0.42), 0 2px 16px rgba(2,6,14,0.4);
  --tsh-glass: 0 1px 2px rgba(2,6,14,0.42), 0 2px 12px rgba(2,6,14,0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== LOADER — branded preflight ===== */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(120% 120% at 50% 42%, #0d1524 0%, #06070a 72%);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.9s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader svg { height: 60px; width: auto; color: #fff; filter: drop-shadow(0 6px 26px rgba(120,170,240,0.35)); animation: ldpulse 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
@keyframes ldpulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.955); } }
.ld-word { font-family: "Space Grotesk", sans-serif; font-weight: 600; letter-spacing: 0.5em; font-size: 15px; color: #f5f8fd; padding-left: 0.5em; }
.ld-bar { width: min(240px, 60vw); height: 2px; border-radius: 2px; background: rgba(150,185,230,0.16); overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 0%; border-radius: 2px; background: linear-gradient(90deg, #d8ecff, #9cc4ee); box-shadow: 0 0 12px rgba(140,185,245,0.8); transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.ld-label { font-family: "Space Grotesk", sans-serif; font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: #aab4c6; }
body.loading { overflow: hidden; }
html { -webkit-text-size-adjust: 100%; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

html { background: var(--ink); }
body {
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
::selection { background: var(--sky-1); color: var(--ink); }

/* ===== GLOBAL POLISH ===== */
html { scrollbar-color: rgba(140,175,220,0.45) rgba(10,16,26,0.9); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #090d15; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(170,200,240,0.5), rgba(120,155,205,0.4)); border-radius: 8px; border: 3px solid #090d15; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(200,225,255,0.7), rgba(140,180,230,0.55)); }
body { -webkit-tap-highlight-color: transparent; }
section[id], header[id] { scroll-margin-top: 76px; }
a:focus-visible, button:focus-visible { outline: 2px solid rgba(178,210,252,0.75); outline-offset: 4px; border-radius: 6px; }
.btn-primary:active, .nav-cta:active { transform: scale(0.97); }
.btn-flight:active .bf-circle { transform: scale(0.93); }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }

/* film grain */
.grain::after {
  content: ""; position: fixed; inset: -120%; z-index: 999;
  pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,1%); }
}

/* ============ CONTINUOUS FLIGHT BACKGROUND ============ */
.bg { position: fixed; inset: 0; z-index: -3; overflow: hidden; background: #0a1220; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); will-change: contents; }
.bg-scrim {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,8,15,0.5) 0%, rgba(5,8,15,0.26) 15%, rgba(5,8,15,0.26) 60%, rgba(4,6,12,0.52) 100%),
    radial-gradient(120% 120% at 50% 40%, transparent 58%, rgba(3,5,11,0.46) 100%);
}

/* cursor spotlight */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 560px; height: 560px; border-radius: 50%;
  transform: translate3d(-50%, -50%, 0); pointer-events: none; z-index: 4;
  background: radial-gradient(circle, rgba(165,200,255,0.12) 0%, rgba(165,200,255,0.055) 32%, rgba(165,200,255,0) 66%);
  opacity: 0; transition: opacity 0.5s var(--ease); will-change: transform;
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease),
              border-color 0.5s var(--ease), padding 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.hidden { transform: translateY(-104%); }
.nav::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background:
    linear-gradient(90deg, transparent 4%, rgba(255,255,255,0.16) 50%, transparent 96%) top / 100% 1px no-repeat,
    linear-gradient(105deg, rgba(255,255,255,0.055) 0%, transparent 28%, transparent 72%, rgba(156,196,238,0.06) 100%);
  transition: opacity 0.5s var(--ease);
}
.nav.solid::before { opacity: 1; }
.nav.solid {
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.56) 0%, rgba(9, 13, 22, 0.4) 100%);
  backdrop-filter: blur(22px) saturate(1.75) brightness(1.06); -webkit-backdrop-filter: blur(22px) saturate(1.75) brightness(1.06);
  border-bottom-color: rgba(198, 222, 252, 0.2); padding: 13px clamp(20px, 4vw, 48px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 22px 50px -26px rgba(0, 8, 24, 0.7);
}
.nav-logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.nav-logo svg { height: 25px; width: auto; }
.nav-logo span { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.34em; font-size: 15px; }
.nav.on-sky .nav-logo { filter: drop-shadow(0 2px 12px rgba(8,20,40,0.5)); }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 36px); align-items: center; }
.nav-links > a:not(.nav-cta) {
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper); opacity: 0.85; position: relative; padding: 4px 0; transition: opacity 0.25s;
}
.nav-links > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--sky-1); transition: width 0.4s var(--ease); box-shadow: 0 0 8px rgba(170,205,250,0.8); }
.nav-links > a:not(.nav-cta):hover { opacity: 1; } .nav-links > a:not(.nav-cta):hover::after { width: 100%; }

/* desktop-only hover polish: rise + glow bloom */
@media (hover: hover) and (min-width: 821px) {
  .nav-links > a:not(.nav-cta) {
    transition: opacity 0.25s, transform 0.4s var(--ease), text-shadow 0.4s var(--ease), color 0.3s var(--ease);
  }
  .nav-links > a:not(.nav-cta):hover {
    transform: translateY(-2px); color: #fff;
    text-shadow: 0 0 12px rgba(185,215,255,0.8), 0 0 28px rgba(140,185,245,0.45), 0 2px 4px rgba(2,6,14,0.4);
  }
}
.nav-cta {
  border: 1px solid rgba(210, 230, 255, 0.5); border-radius: 999px; padding: 9px 22px;
  background: rgba(255,255,255,0.06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease); will-change: transform;
}
.nav-cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; }
.nav-burger span { position: absolute; left: 0; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.3s; }
.nav-burger span:first-child { top: 5px; } .nav-burger span:last-child { bottom: 5px; }
body.menu-open .nav-burger span:first-child { transform: translateY(5px) rotate(45deg); }
body.menu-open .nav-burger span:last-child { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 820px) {
  .nav-burger { display: block; z-index: 210; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(7, 10, 16, 0.78); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
    opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
  }
  body.menu-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links > a:not(.nav-cta) { font-size: 18px; }
}

/* ============ HERO ============ */
.hero { position: relative; height: 280vh; }
.hero-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-scrim { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(78% 60% at 44% 48%, rgba(3,6,14,0.34) 0%, rgba(3,6,14,0.14) 46%, rgba(3,6,14,0) 66%); }

.hero-brand { position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 16px; color: #fff; transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 0.7s var(--ease); }
.hero-brand-mark svg { height: clamp(52px, 8vw, 88px); filter: drop-shadow(0 6px 26px rgba(8,20,40,0.55)); }
.hero-brand-word { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.52em; font-size: clamp(15px, 2vw, 20px); padding-left: 0.52em; text-shadow: var(--tsh-sm); }
.hero-brand.gone { opacity: 0; transform: translateY(-24px) scale(1.08); filter: blur(5px); pointer-events: none; }

.hero-copy { --hI: clamp(34px, 11vw, 200px); position: relative; z-index: 3; width: min(1120px, 90vw); text-align: left; opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--ease); pointer-events: none; }
.hero-copy.show { opacity: 1; pointer-events: auto; }

/* ghost V — static glass facet, quiet backdrop presence */
.h-mark {
  position: absolute; right: clamp(-20px, 2vw, 70px); top: 50%; z-index: -1;
  height: clamp(320px, 42vw, 600px); width: auto;
  transform: translateY(-52%);
  filter: drop-shadow(0 24px 50px rgba(4,10,24,0.18));
  opacity: 0; transition: opacity 2s var(--ease) 0.4s;
}
.hero-copy.show .h-mark { opacity: 0.55; }

/* studio signature — mark + stacked wordmark, on the grid */
.h-sig {
  display: flex; align-items: center; gap: 16px;
  margin-left: var(--hI); margin-bottom: clamp(30px, 4vw, 54px);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.9s var(--ease) 0.02s, transform 0.9s var(--ease) 0.02s;
}
.h-sig svg { height: 36px; width: auto; color: #fff; filter: drop-shadow(0 3px 14px rgba(8,20,40,0.55)); }
.h-sig span { font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: #f0f6ff; line-height: 1.85; text-shadow: var(--tsh-sm); }

/* headline — staggered, per-word masked rise with settle */
.hero-title { position: relative; font-size: clamp(44px, 7.6vw, 118px); font-weight: 500; letter-spacing: -0.03em; line-height: 0.98; color: #fff; text-shadow: 0 1px 2px rgba(2,6,14,0.4), 0 3px 9px rgba(2,6,14,0.22); }
.hero-title::before { content: ""; position: absolute; z-index: -1; inset: -18% -10% -24% -8%; background: radial-gradient(58% 62% at 44% 50%, rgba(4,8,16,0.34) 0%, rgba(4,8,16,0.14) 52%, transparent 74%); pointer-events: none; }
.hero-title .line { display: block; }
.hero-title .l2 { margin-left: var(--hI); }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.16em 0.42em; margin: -0.06em -0.16em -0.39em; }
.hero-title .w > i {
  display: inline-block; font-style: normal;
  transform: translateY(122%) rotate(5deg); transform-origin: 0% 100%; opacity: 0;
  transition: transform 1s var(--ease), opacity 0.6s var(--ease);
}
.hero-title .l1 .w:nth-child(1) > i { transition-delay: 0.08s; }
.hero-title .l1 .w:nth-child(2) > i { transition-delay: 0.16s; }
.hero-title .l1 .w:nth-child(3) > i { transition-delay: 0.24s; }
.hero-title .l2 .w:nth-child(1) > i { transition-delay: 0.36s; }
.hero-title .l2 .w:nth-child(2) > i { transition-delay: 0.44s; }
.hero-title .l2 .w:nth-child(3) > i { transition-delay: 0.52s; }
.hero-copy.show .hero-title .w > i { transform: translateY(0) rotate(0deg); opacity: 1; }

/* "heights" — Alex Brush, signature accent, brand colors cycling */
.hero-title em {
  display: inline-block; font-family: "Alex Brush", cursive; font-style: normal; font-weight: 400;
  letter-spacing: 0; font-size: 1.22em; line-height: 0.8; padding: 0 0.16em 0 0.05em; vertical-align: baseline;
  background: linear-gradient(105deg, #ffffff 0%, #dceeff 25%, #a9cdf3 50%, #dceeff 75%, #ffffff 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: hcolors 8s ease-in-out infinite;
}
@keyframes hcolors { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* light sweep across the headline after it lands */
.hero-title::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -18%; width: 26%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.16), transparent);
  transform: skewX(-16deg); opacity: 0; pointer-events: none;
}
.hero-copy.show .hero-title::after { animation: hsweep 1.4s var(--ease) 1.15s both; }
@keyframes hsweep { 0% { left: -18%; opacity: 0; } 18% { opacity: 1; } 100% { left: 112%; opacity: 0; } }

/* deck — sub + actions, hung from the second line's indent */
.h-deck {
  margin-top: clamp(28px, 3.6vw, 46px); margin-left: var(--hI);
  max-width: 47ch; display: flex; flex-direction: column; gap: 30px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s var(--ease) 0.72s, transform 1s var(--ease) 0.72s;
}
.hero-sub { font-size: clamp(15.5px, 1.5vw, 18.5px); line-height: 1.72; color: #e9eff9; text-shadow: var(--tsh-sm); }
.hero-actions { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }

/* flight CTA — label + circled arrow */
.btn-flight { display: inline-flex; align-items: center; gap: 15px; }
.btn-flight .bf-label { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; text-shadow: var(--tsh-sm); }
.btn-flight .bf-circle {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(226,239,255,0.6); background: rgba(255,255,255,0.09);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px -16px rgba(0,10,30,0.7), inset 0 1px 0 rgba(255,255,255,0.22);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.4s var(--ease);
}
.btn-flight .bf-circle i { font-style: normal; font-size: 18px; color: #fff; transition: transform 0.4s var(--ease), color 0.3s var(--ease); }
.btn-flight:hover .bf-circle { background: var(--paper); border-color: var(--paper); }
.btn-flight:hover .bf-circle i { color: var(--ink); transform: translateX(3px); }

.hero-copy.show .h-sig { opacity: 1; transform: translateY(0); }
.hero-copy.show .h-deck { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero-copy { --hI: 7vw; }
  .h-mark { height: clamp(240px, 52vw, 420px); right: -8vw; }
  .hero-copy.show .h-mark { opacity: 0.4; }
}
@media (max-width: 560px) {
  .hero-copy { --hI: 0px; }
  .h-sig svg { height: 30px; }
  .h-sig span { letter-spacing: 0.24em; font-size: 10.5px; }
  .h-mark { display: none; }
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px; letter-spacing: 0.06em;
  padding: 15px 34px; border-radius: 999px; border: 1px solid var(--paper);
  box-shadow: 0 16px 40px -18px rgba(150,195,255,0.8);
  transition: box-shadow 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease); will-change: transform;
}
.btn-primary:hover { box-shadow: 0 24px 54px -20px rgba(150,195,255,0.7); }
.hero-textlink { position: relative; display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 500; font-size: 13.5px; letter-spacing: 0.04em; color: #fff; text-shadow: var(--tsh-sm); padding: 6px 2px; }
.hero-textlink::after { content: ""; position: absolute; left: 2px; right: 26px; bottom: 2px; height: 1px; background: rgba(216,236,255,0.75); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.hero-textlink:hover::after { transform: scaleX(1); }
.hero-textlink em { font-style: normal; transition: transform 0.4s var(--ease); }
.hero-textlink:hover em { transform: translateX(4px); }

.hero-scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; color: #fff; letter-spacing: 0.32em; text-transform: uppercase; font-size: 10.5px; text-shadow: var(--tsh-sm); transition: opacity 0.5s var(--ease); }
.hero-scroll i { width: 1px; height: 46px; background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0)); animation: drop 1.9s var(--ease) infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============ CONTENT ============ */
.content { position: relative; z-index: 1; }
.section { position: relative; padding: clamp(96px, 12vw, 172px) clamp(22px, 4vw, 44px); max-width: var(--maxw); margin: 0 auto; }
.section-head { max-width: 780px; margin-bottom: 10px; }
.kicker { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--sky-2); margin-bottom: 26px; text-shadow: var(--tsh-sm); }
.kicker::before { content: ""; width: 40px; height: 1px; background: linear-gradient(90deg, var(--sky-2), transparent); }
.section h2, .contact h2 { font-size: clamp(32px, 4.5vw, 62px); max-width: 20ch; margin-bottom: 26px; text-shadow: var(--tsh); }
.lede { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.7; color: var(--paper-dim); max-width: 60ch; text-shadow: var(--tsh-sm); }

/* refined glass */
.glass {
  position: relative;
  background: linear-gradient(155deg, rgba(30,40,60,0.44) 0%, rgba(13,19,31,0.34) 60%, rgba(11,16,27,0.36) 100%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.45);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.45);
  box-shadow: 0 40px 80px -54px rgba(0,6,20,0.8), inset 0 1px 0 rgba(255,255,255,0.16);
  overflow: hidden;
}
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(150deg, rgba(255,255,255,0.13), rgba(255,255,255,0) 42%); opacity: 0.9; }

/* staggered blur-in reveal */
.reveal { opacity: 0; translate: 0 28px; filter: blur(6px); transition: opacity 0.85s var(--ease), translate 0.85s var(--ease), filter 0.85s var(--ease); will-change: opacity, translate, filter; }
.reveal.in { opacity: 1; translate: 0 0; filter: none; }

/* GPU stability — frosted elements must never carry animated blur filters
   (backdrop-filter + filter transitions cause black flashes in Chromium) */
.glass.reveal, .glass .reveal { filter: none; will-change: opacity, translate; }
.glass { transform: translateZ(0); }
.tilt { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.grain::after { will-change: transform; }

h2.split .word { display: inline-block; vertical-align: top; }
h2.split .word > span { display: inline-block; transform: translateY(0.5em); opacity: 0; filter: blur(6px); transition: transform 0.8s var(--ease), opacity 0.8s var(--ease), filter 0.8s var(--ease); }
h2.split.in .word > span { transform: none; opacity: 1; filter: none; }

/* ===== ABOUT — lead + faceted glass panel ===== */
.about { position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 0.98fr; gap: clamp(34px, 5vw, 80px); align-items: center; }
.about-lead h2 { font-size: clamp(30px, 4.3vw, 58px); max-width: 15ch; margin-bottom: 24px; }
.about-lead .lede { color: #e9eff9; max-width: 46ch; }
.about-panel { position: relative; border-radius: 26px; will-change: transform; transition: opacity 0.85s var(--ease), translate 0.85s var(--ease), filter 0.85s var(--ease), border-color 0.5s var(--ease), box-shadow 0.6s var(--ease); }
.about-panel:hover { border-color: rgba(200,225,255,0.32); box-shadow: 0 60px 110px -60px rgba(0,10,30,0.95), inset 0 1px 0 rgba(255,255,255,0.2); }
.ap-row {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 18px;
  padding: clamp(20px, 2.2vw, 27px) clamp(26px, 3vw, 40px);
  color: #e9f0fa; font-size: 15.5px; line-height: 1.5; text-shadow: var(--tsh-glass);
  transition: background 0.4s var(--ease), color 0.3s;
}
.ap-row + .ap-row { box-shadow: inset 0 1px 0 rgba(198,220,250,0.11); }
.ap-row:hover { background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)); color: #fff; }
.ap-row svg { height: 17px; width: auto; flex: 0 0 auto; color: var(--sky-2); filter: drop-shadow(0 2px 6px rgba(8,20,40,0.4)); }
.ap-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); box-shadow: inset 0 1px 0 rgba(198,220,250,0.14); }
.ap-stat { padding: clamp(22px, 2.4vw, 30px) clamp(20px, 2.2vw, 30px); }
.ap-stat + .ap-stat { box-shadow: inset 1px 0 0 rgba(198,220,250,0.11); }
.ap-stat b { display: block; font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 38px); font-weight: 600; color: #fff; letter-spacing: -0.02em; margin-bottom: 8px; text-shadow: var(--tsh-glass); }
.ap-stat span { color: var(--paper-dim); font-size: 13px; line-height: 1.5; text-shadow: var(--tsh-glass); }
.about-panel:hover .svc-glow { opacity: 1; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .ap-stats { grid-template-columns: 1fr; }
  .ap-stat { display: flex; align-items: baseline; gap: 14px; padding: 16px 22px; }
  .ap-stat b { margin-bottom: 0; font-size: 24px; flex: 0 0 auto; min-width: 64px; }
  .ap-stat + .ap-stat { box-shadow: inset 0 1px 0 rgba(198,220,250,0.11); }
}

/* ===== SERVICES — unified glass panel ===== */
.svc-panel {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px;
  border-radius: 26px; will-change: transform;
  transition: opacity 0.85s var(--ease), translate 0.85s var(--ease), filter 0.85s var(--ease), border-color 0.5s var(--ease), box-shadow 0.6s var(--ease);
}
.svc-panel:hover { border-color: rgba(200,225,255,0.32); box-shadow: 0 60px 110px -60px rgba(0,10,30,0.95), inset 0 1px 0 rgba(255,255,255,0.2); }
.svc-cell {
  position: relative; z-index: 1; padding: clamp(32px, 3.4vw, 50px) clamp(28px, 3vw, 46px);
  box-shadow: inset 1px 0 0 rgba(198,220,250,0.11), inset 0 1px 0 rgba(198,220,250,0.11);
  transition: opacity 0.85s var(--ease), translate 0.85s var(--ease), filter 0.85s var(--ease), background 0.45s var(--ease);
}
.svc-cell:nth-child(-n+3) { box-shadow: inset 1px 0 0 rgba(198,220,250,0.11); }
.svc-cell:nth-child(3n+1) { box-shadow: inset 0 1px 0 rgba(198,220,250,0.11); }
.svc-cell:first-child { box-shadow: none; }
.svc-cell:hover { background: linear-gradient(160deg, rgba(255,255,255,0.065), rgba(255,255,255,0.015)); }
.svc-cell h3 { font-size: clamp(19px, 1.7vw, 23px); margin-bottom: 12px; text-shadow: var(--tsh-glass); transition: color 0.35s var(--ease); }
.svc-cell:hover h3 { color: var(--sky-1); }
.svc-cell p { color: var(--paper-dim); font-size: 15px; line-height: 1.62; text-shadow: var(--tsh-glass); }
.svc-glow { position: absolute; z-index: 0; width: 420px; height: 420px; border-radius: 50%; left: var(--mx, 50%); top: var(--my, 0%); transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(140,185,245,0.18), transparent 62%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.svc-panel:hover .svc-glow { opacity: 1; }

@media (max-width: 940px) {
  .svc-panel { grid-template-columns: 1fr 1fr; }
  .svc-cell, .svc-cell:nth-child(-n+3), .svc-cell:nth-child(3n+1) { box-shadow: inset 1px 1px 0 rgba(198,220,250,0.11); }
  .svc-cell:first-child { box-shadow: none; }
}
@media (max-width: 620px) {
  .svc-panel { grid-template-columns: 1fr; }
  .svc-cell, .svc-cell:nth-child(-n+3), .svc-cell:nth-child(3n+1) { box-shadow: inset 0 1px 0 rgba(198,220,250,0.11); }
  .svc-cell:first-child { box-shadow: none; }
}

/* ===== WORK ===== */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
.work-card { aspect-ratio: 16/10; display: flex; flex-direction: column; justify-content: flex-end; padding: 36px; will-change: transform; transition: opacity 0.85s var(--ease), translate 0.85s var(--ease), filter 0.85s var(--ease), border-color 0.45s var(--ease), box-shadow 0.55s var(--ease); }
.work-card .work-meta { position: relative; z-index: 2; }
.work-card .tag { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sky-2); margin-bottom: 11px; text-shadow: var(--tsh-glass); }
.work-card h3 { font-size: clamp(22px, 2.6vw, 30px); text-shadow: var(--tsh-glass); }
.work-card .mark-bg { position: absolute; top: -24px; right: -24px; width: 210px; color: var(--sky-1); opacity: 0.07; transition: opacity 0.5s, transform 0.7s var(--ease); z-index: 1; }
.work-card:hover { border-color: rgba(200,225,255,0.32); box-shadow: 0 54px 96px -56px rgba(0,10,30,0.95); }
.work-card:hover .mark-bg { opacity: 0.14; transform: translateY(-10px) rotate(-4deg); }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

/* ===== TESTIMONIALS ===== */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
.quote { padding: 44px 40px; transition: opacity 0.85s var(--ease), translate 0.85s var(--ease), filter 0.85s var(--ease), transform 0.5s var(--ease), border-color 0.4s var(--ease); }
.quote:hover { transform: translateY(-4px); border-color: rgba(200,225,255,0.3); }
.quote blockquote { font-family: var(--font-display); font-size: clamp(19px, 2vw, 24px); line-height: 1.42; margin-bottom: 22px; color: #fff; text-shadow: var(--tsh-glass); }
.quote blockquote::before { content: "\201C"; color: var(--sky-2); font-size: 1.4em; line-height: 0; vertical-align: -0.28em; margin-right: 4px; }
.quote figcaption { color: var(--sky-2); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; text-shadow: var(--tsh-glass); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* ===== CONTACT ===== */
.contact { text-align: center; }
.glass-cta { padding: clamp(56px, 8vw, 104px) clamp(28px, 5vw, 76px); }
.glass-cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(90% 130% at 50% -10%, rgba(120,175,240,0.22), transparent 60%); }
.glass-cta > * { position: relative; z-index: 1; }
.contact h2 { font-size: clamp(36px, 6vw, 88px); max-width: none; margin: 0 auto 24px; }
.contact .lede { margin: 0 auto 42px; }
.contact .alt { margin-top: 24px; color: var(--paper-mut); font-size: 14.5px; text-shadow: var(--tsh-glass); }
.contact .alt a { color: var(--paper-dim); border-bottom: 1px solid var(--grey-2); padding-bottom: 2px; }

.magnetic { will-change: transform; }
.magnetic > span { display: inline-block; will-change: transform; }

/* ===== FOOTER ===== */
footer { padding: 40px clamp(22px, 4vw, 44px) 64px; max-width: var(--maxw); margin: 0 auto; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 32px 4px; border-top: 1px solid var(--glass-brd); color: var(--paper-mut); font-size: 13px; letter-spacing: 0.04em; text-shadow: var(--tsh-glass); }
.footer-inner .f-logo { display: flex; align-items: center; gap: 10px; color: var(--paper); }
.footer-inner .f-logo svg { height: 20px; width: auto; }
.footer-inner .f-logo span { font-family: var(--font-display); letter-spacing: 0.3em; font-size: 12px; font-weight: 600; }

/* progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: linear-gradient(90deg, var(--sky-1), var(--sky-2)); z-index: 300; box-shadow: 0 0 12px rgba(140,185,245,0.8); transition: width 0.1s linear; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, .hero-copy, .hero-title .w > i, .h-sig, .h-deck, .h-mark, h2.split .word > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-title em { animation: none !important; }
  .cursor-glow { display: none; }
}

/* ===== UNIFORM TEXT SHADING — clean & even across the whole site ===== */
.nav.on-sky .nav-links a, .nav.on-sky .nav-logo span { text-shadow: var(--tsh-sm); }

/* ===== PROCESS — sticky intro + faceted glass panel ===== */
.process-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(30px, 5vw, 76px); align-items: start; }
.process-intro { position: sticky; top: 116px; }
.process-intro h2 { font-size: clamp(30px, 3.9vw, 54px); max-width: 14ch; margin-bottom: 20px; }
.process-intro .lede { max-width: 40ch; margin-bottom: 34px; }
.process-meta { display: flex; flex-direction: column; gap: 18px; }
.process-word {
  font-family: "Alex Brush", cursive; font-size: clamp(52px, 5.4vw, 84px); line-height: 0.9;
  background: linear-gradient(105deg, #ffffff 0%, #dceeff 25%, #a9cdf3 50%, #dceeff 75%, #ffffff 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: hcolors 8s ease-in-out infinite;
  padding: 0.05em 0.2em 0.22em 0.05em;
}
.process-track { height: 3px; width: min(220px, 62%); background: rgba(150,185,230,0.18); border-radius: 3px; overflow: hidden; }
.process-fill { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--sky-1), var(--sky-2)); box-shadow: 0 0 12px rgba(140,185,245,0.75); transition: width 0.7s var(--ease); }

.process-panel { position: relative; border-radius: 26px; transition: opacity 0.85s var(--ease), translate 0.85s var(--ease), filter 0.85s var(--ease), border-color 0.5s var(--ease), box-shadow 0.6s var(--ease); }
.process-panel:hover { border-color: rgba(200,225,255,0.32); box-shadow: 0 60px 110px -60px rgba(0,10,30,0.95), inset 0 1px 0 rgba(255,255,255,0.2); }
.pr-row {
  position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 20px;
  padding: clamp(26px, 3vw, 40px) clamp(26px, 3vw, 42px);
  transition: background 0.5s var(--ease);
}
.pr-row + .pr-row { box-shadow: inset 0 1px 0 rgba(198,220,250,0.11); }
.pr-row svg { height: 17px; width: auto; flex: 0 0 auto; margin-top: 5px; color: rgba(170,180,198,0.55); filter: drop-shadow(0 2px 6px rgba(8,20,40,0.4)); transition: color 0.5s var(--ease); }
.pr-row.active { background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015)); }
.pr-row.active svg { color: var(--sky-1); }
.pr-tag { display: inline-block; font-family: var(--font-display); font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--paper-mut); margin-bottom: 10px; text-shadow: var(--tsh-glass); transition: color 0.5s var(--ease); }
.pr-row.active .pr-tag { color: var(--sky-2); }
.pr-row h3 { font-size: clamp(19px, 2vw, 24px); line-height: 1.2; margin-bottom: 9px; color: #e6edf8; text-shadow: var(--tsh-glass); transition: color 0.5s var(--ease); }
.pr-row.active h3 { color: #fff; }
.pr-row p { color: var(--paper-dim); font-size: 15.5px; line-height: 1.62; max-width: 56ch; text-shadow: var(--tsh-glass); }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr; gap: 34px; } .process-intro { position: static; } .process-meta { display: none; } }

/* ===== WORK — case study cards ===== */
.work-card { aspect-ratio: auto; min-height: clamp(300px, 32vw, 400px); }
.work-card .tag { display: inline-flex; align-items: center; gap: 8px; }
.work-card .tag .dot { width: 7px; height: 7px; border-radius: 50%; background: #63e6a4; box-shadow: 0 0 10px rgba(99,230,164,0.95); }
.work-card .work-desc { color: var(--paper-dim); font-size: 15px; line-height: 1.6; margin-top: 12px; max-width: 46ch; text-shadow: var(--tsh-glass); }
.work-card.is-soon .work-desc { color: var(--paper-mut); }
.work-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; color: #fff; text-shadow: var(--tsh-glass); }
.work-link em { font-style: normal; transition: transform 0.4s var(--ease); }
a.work-card { cursor: pointer; }
a.work-card:hover { border-color: rgba(200,225,255,0.45); }
a.work-card:hover .work-link em { transform: translate(3px, -3px); }
.work-card.is-live { box-shadow: 0 44px 96px -56px rgba(0,10,30,0.9), inset 0 1px 0 rgba(255,255,255,0.2); }

/* ===== MOBILE — phone-first refinements (≤640px only) ===== */
@media (max-width: 640px) {
  /* nav */
  .nav { padding: 14px 18px; }
  .nav.solid { padding: 11px 18px; }
  .nav-logo svg { height: 21px; }
  .nav-logo span { font-size: 13px; letter-spacing: 0.28em; }
  .nav-links > a:not(.nav-cta) { font-size: 20px; letter-spacing: 0.2em; padding: 8px 0; }
  .nav-links .nav-cta { padding: 14px 34px; font-size: 14px; }

  /* hero */
  .hero { height: 240vh; }
  .hero-copy { width: 92vw; }
  .h-sig { gap: 12px; margin-bottom: 26px; }
  .h-sig svg { height: 26px; }
  .h-sig span { font-size: 9.5px; letter-spacing: 0.22em; line-height: 1.8; }
  .hero-title { font-size: clamp(37px, 11.4vw, 46px); line-height: 1.02; }
  .hero-title em { font-size: 1.18em; }
  .h-deck { margin-top: 26px; max-width: 100%; gap: 24px; }
  .hero-sub { font-size: 15px; line-height: 1.68; }
  .hero-actions { gap: 20px; }
  .btn-flight { gap: 12px; }
  .btn-flight .bf-circle { width: 46px; height: 46px; }
  .btn-flight .bf-label, .hero-textlink { font-size: 12px; }
  .hero-scroll { bottom: 22px; font-size: 9.5px; letter-spacing: 0.26em; }
  .hero-scroll i { height: 34px; }

  /* sections & type rhythm */
  .section { padding: 78px 18px; }
  .section-head { margin-bottom: 4px; }
  .kicker { margin-bottom: 18px; font-size: 11px; }
  .section h2 { font-size: clamp(27px, 8vw, 34px); margin-bottom: 18px; }
  .lede { font-size: 15px; }

  /* about */
  .about-grid { gap: 28px; }
  .about-lead h2 { font-size: clamp(27px, 8vw, 34px); margin-bottom: 16px; }
  .ap-row { padding: 17px 20px; gap: 14px; font-size: 14.5px; align-items: flex-start; }
  .ap-row svg { height: 14px; margin-top: 3px; }
  .ap-stat { align-items: center; gap: 16px; padding: 15px 20px; }
  .ap-stat b { flex: 0 0 62px; min-width: 0; margin: 0; font-size: 20px; text-align: left; }
  .ap-stat span { font-size: 13px; line-height: 1.45; }

  /* split the about panel into two glass cards (mobile only) */
  .about-panel { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible; border-radius: 0; }
  .about-panel::before { display: none; }
  .ap-list, .ap-stats {
    background: linear-gradient(155deg, rgba(30,40,60,0.44) 0%, rgba(13,19,31,0.34) 60%, rgba(11,16,27,0.36) 100%);
    border: 1px solid var(--glass-brd); border-radius: 20px;
    backdrop-filter: blur(var(--glass-blur)) saturate(1.45); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.45);
    box-shadow: 0 40px 80px -54px rgba(0,6,20,0.8), inset 0 1px 0 rgba(255,255,255,0.16);
    overflow: hidden;
  }
  .ap-stats { margin-top: 16px; background: linear-gradient(155deg, rgba(44,58,82,0.46) 0%, rgba(22,30,46,0.36) 60%, rgba(18,26,42,0.38) 100%); }

  /* services panel */
  .svc-panel { margin-top: 38px; border-radius: 20px; }
  .svc-cell { padding: 24px 22px; }
  .svc-cell h3 { font-size: 17.5px; margin-bottom: 9px; }
  .svc-cell p { font-size: 14.5px; }

  /* process */
  .process-grid { gap: 26px; }
  .process-panel { border-radius: 20px; }
  .pr-row { padding: 22px 20px; gap: 14px; }
  .pr-row svg { height: 14px; margin-top: 4px; }
  .pr-row h3 { font-size: 17.5px; }
  .pr-row p { font-size: 14.5px; }

  /* work & quotes */
  .work-grid, .quotes { margin-top: 36px; gap: 16px; }
  .work-card { padding: 26px 22px; min-height: 230px; }
  .work-card h3 { font-size: 20px; }
  .work-card .work-desc { font-size: 14px; }
  .work-card .mark-bg { width: 130px; top: -14px; right: -14px; }
  .quote { padding: 28px 24px; }
  .quote blockquote { font-size: 17px; }

  /* contact & footer */
  .glass-cta { padding: 48px 24px; border-radius: 20px; }
  .contact h2 { font-size: clamp(30px, 9.4vw, 42px); }
  .contact .lede { margin-bottom: 32px; }
  .btn-primary { padding: 16px 38px; width: 100%; max-width: 320px; }
  .contact .alt { font-size: 13px; }
  footer { padding: 20px 18px 44px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px 2px; }

  /* perf: film grain off on phones */
  .grain::after { display: none; }
}
