/* =========================================================
   Str8tegic Consultancy — Design System
   Brand: Black #000000 / Blue #38B6FF / White #FFFFFF
   ========================================================= */

:root {
  /* Brand */
  --black: #000000;
  --ink: #0a0a0c;
  --blue: #38b6ff;
  --blue-dim: #1f8fd4;
  --white: #ffffff;

  /* Neutrals */
  --paper: #f5f6f8;
  --paper-dim: #eceef1;
  --line: #21242a;
  --line-soft: #e2e4e8;
  --gray-500: #7a7f8a;
  --gray-300: #b7bac1;

  /* Type */
  --font-display: "Space Grotesk", "Arial Black", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Scale */
  --container: 1280px;
  --gutter: clamp(1.5rem, 4vw, 4rem);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-behavior intentionally omitted: Lenis (js/interactive.js) drives smooth
   scrolling site-wide. Native scroll-behavior:smooth fights Lenis for control of
   scroll position every frame and produces a stuttery, inconsistent feel. */
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Type ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--blue);
}

.h1 { font-size: clamp(2.75rem, 7vw, 6.5rem); }
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); }
.h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.h4 { font-size: clamp(1.1rem, 1.4vw, 1.35rem); text-transform: none; letter-spacing: -0.01em; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--gray-500);
  max-width: 42em;
}

.eight {
  color: var(--blue);
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { position: relative; }

.section-pad { padding-top: clamp(4rem, 10vw, 8rem); padding-bottom: clamp(4rem, 10vw, 8rem); }

.on-dark { background: var(--ink); color: var(--white); }
.on-dark .lede { color: var(--gray-300); }
.on-light { background: var(--white); color: var(--black); }
.on-paper { background: var(--paper); color: var(--black); }

.grid {
  display: grid;
  gap: var(--gutter);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.rule {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 0;
}
.on-dark .rule { border-top-color: rgba(255,255,255,0.14); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
  border-radius: var(--radius);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--black);
}
.btn-primary:hover { background: var(--white); border-color: var(--white); }

.btn-ghost-dark { color: var(--white); }
.btn-ghost-dark:hover { background: var(--white); color: var(--black); }

.btn-ghost-light { color: var(--black); }
.btn-ghost-light:hover { background: var(--black); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: rgba(0,0,0,0.0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
}
.site-header.is-scrolled,
.site-header.force-solid {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(255,255,255,0.1);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 40px; width: auto; display: block; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-desktop a:not(.nav-cta) {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.nav-desktop a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s var(--ease);
}
.nav-desktop a:not(.nav-cta):hover::after,
.nav-desktop a:not(.nav-cta)[aria-current="page"]::after { width: 100%; }
.nav-desktop a[aria-current="page"] { color: var(--blue); }

.nav-cta {
  display: inline-flex;
  padding: 0.65rem 1.3rem;
  border: 1.5px solid var(--blue);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-cta:hover { background: var(--blue); color: var(--black); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  z-index: 210;
}
.nav-toggle span {
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem var(--gutter);
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  pointer-events: none;
}
.nav-mobile.is-open { transform: translateY(0); pointer-events: auto; }
.nav-mobile a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 11vw, 4.5rem);
  line-height: 1.2;
  color: var(--white);
  text-transform: uppercase;
}
.nav-mobile a[aria-current="page"] { color: var(--blue); }
.nav-mobile .nav-mobile-foot {
  margin-top: 3rem;
  color: var(--gray-300);
  font-size: 0.9rem;
  text-transform: none;
  font-family: var(--font-body);
}

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--black);
  color: var(--white);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(56,182,255,0.22) 0%, rgba(56,182,255,0) 70%);
  pointer-events: none;
}
.hero-tag {
  color: var(--gray-300);
  max-width: 34em;
  margin-top: 1.75rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.75rem;
}
.hero-meta {
  margin-top: 5rem;
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 1.75rem;
}
.hero-meta div span { display: block; }
.hero-meta .num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--blue);
}
.hero-meta .lbl {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-top: 0.35rem;
}

/* ---------- Page hero (non-home) ---------- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding-top: 10rem;
  padding-bottom: 4.5rem;
}

/* ---------- Cards ---------- */
.card {
  padding: 2.4rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow .4s var(--ease);
  background: var(--white);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.25);
}
.card .idx {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--blue);
  letter-spacing: 0.1em;
}
.card h3 { margin-top: 1.1rem; }
.card p { margin-top: 0.9rem; color: var(--gray-500); }
.team-name {
  font-size: clamp(0.85rem, 1.9vw, 1.05rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-dark {
  background: var(--ink);
  color: var(--white);
  border-color: rgba(255,255,255,0.12);
}
.card-dark p { color: var(--gray-300); }
.card-dark:hover { border-color: var(--blue); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--blue);
}
.stat .lbl {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--gray-500);
}
.on-dark .stat .lbl { color: var(--gray-300); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 1.75rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 4rem;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  text-transform: uppercase;
  color: var(--gray-300);
  white-space: nowrap;
}
.marquee-track span.eight { color: var(--blue); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.6rem; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.field input, .field textarea, .field select {
  border: 0;
  border-bottom: 1.5px solid var(--line-soft);
  padding: 0.85rem 0.1rem;
  background: transparent;
  font-size: 1.05rem;
  transition: border-color 0.3s var(--ease);
}
.on-dark .field input, .on-dark .field textarea, .on-dark .field select {
  border-bottom-color: rgba(255,255,255,0.24);
  color: var(--white);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--blue);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--gray-500); margin-top: 1rem; }
.form-success {
  display: none;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}
.form-success.is-visible { display: block; }
.form-error {
  display: none;
  padding: 1.2rem 1.4rem;
  border: 1px solid #c0392b;
  color: #c0392b;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}
.form-error.is-visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding-top: clamp(3.5rem, 8vw, 6rem);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand img { height: 34px; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--gray-300); max-width: 26em; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 1.1rem;
}
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col a { color: var(--white); font-size: 0.95rem; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.6rem 0 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--gray-300);
}
.footer-social { display: flex; gap: 1.25rem; }
.footer-social a { color: var(--gray-300); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-social a:hover { color: var(--blue); }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }

/* ---------- Utility ---------- */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mt-4 { margin-top: 4.5rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  border: 1px solid var(--line-soft);
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  color: var(--gray-500);
}
.on-dark .tag { border-color: rgba(255,255,255,0.2); color: var(--gray-300); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  perspective: 1400px;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.avatar-block {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #14161b, #000);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.avatar-block .tilt-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 1.25rem;
}
.avatar-block .tilt-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.3) 100%);
}
.avatar-block span {
  position: relative;
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: rgba(56,182,255,0.85);
  transform: translateZ(40px);
}

/* ---------- Tilt / cinematic panels ---------- */
.tilt-scene { perspective: 1400px; }
.tilt-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(160deg, #14161b 0%, #000 65%);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
  cursor: pointer;
}
.tilt-card:hover,
.tilt-card.is-active { box-shadow: 0 34px 64px -28px rgba(0,0,0,0.55); }
.tilt-card--blue { background: linear-gradient(155deg, #0c2436 0%, #000 65%); }
.tilt-card--line {
  background:
    repeating-linear-gradient(115deg, rgba(56,182,255,0.07) 0 1px, transparent 1px 34px),
    linear-gradient(160deg, #14161b 0%, #000 65%);
}
.tilt-card .tilt-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
}
.tilt-card .tilt-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.35) 100%);
}
.tilt-card .tilt-num {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: rgba(56,182,255,0.75);
  transform: translateZ(70px);
}
.tilt-card .tilt-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.75rem;
  transform: translateZ(45px);
}
.tilt-card .tilt-layer h3 { text-transform: none; letter-spacing: -0.01em; color: var(--white); }
.tilt-card .tilt-layer p { color: var(--gray-300); font-size: 0.9rem; }
.tilt-card .tilt-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.22), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
  transform: translateZ(80px);
}
.tilt-card:hover .tilt-glare,
.tilt-card.is-active .tilt-glare { opacity: 1; }
@media (max-width: 640px) {
  .tilt-scene { perspective: none; }
  .tilt-card, .avatar-block { transition: none; }
}

.world-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 2.5rem;
}
@media (max-width: 640px) { .world-list { grid-template-columns: 1fr; } }
.world-list li {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
}
.on-dark .world-list li { border-bottom-color: rgba(255,255,255,0.12); }
.world-list li small {
  font-family: var(--font-body);
  text-transform: none;
  color: var(--gray-500);
  font-size: 0.85rem;
  align-self: center;
}
.on-dark .world-list li small { color: var(--gray-300); }

.blog-card { display: flex; flex-direction: column; height: 100%; }
.blog-card .thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #000 0%, #101418 60%, #0e2a3a 100%);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.blog-card .thumb::after {
  content: attr(data-num);
  position: absolute;
  right: 1rem; bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(56,182,255,0.28);
}
.blog-card .meta { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.75rem; }
.blog-card h3 { font-size: 1.35rem; }
.blog-card p { margin-top: 0.75rem; color: var(--gray-500); font-size: 0.95rem; }
.blog-card .readmore { margin-top: auto; padding-top: 1.25rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--black); }
.blog-card .readmore::after { content: " →"; color: var(--blue); }

.post-body { max-width: 46em; margin: 0 auto; }
.post-body p { margin-bottom: 1.4rem; color: #26282c; font-size: 1.08rem; }
.post-body h2 { text-transform: none; font-size: 1.8rem; margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
.post-body blockquote {
  border-left: 3px solid var(--blue);
  padding-left: 1.5rem;
  font-family: var(--font-display);
  text-transform: none;
  font-size: 1.4rem;
  margin: 2.5rem 0;
  color: var(--black);
}

/* =========================================================
   Interactive layer — cursor, page transitions, WebGL hero,
   horizontal pinned gallery, scroll parallax
   ========================================================= */

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9990;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--blue);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(56,182,255,0.55);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
    border-color 0.35s var(--ease), background 0.35s var(--ease), opacity 0.3s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.cursor-dot.is-visible, .cursor-ring.is-visible { opacity: 1; }
.cursor-ring.is-hover {
  width: 68px; height: 68px;
  border-color: var(--blue);
  background: rgba(56,182,255,0.1);
}
.cursor-ring.is-down { width: 28px; height: 28px; }
.cursor-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  white-space: nowrap;
}
.cursor-ring.is-hover .cursor-label { opacity: 1; }
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button,
body.has-custom-cursor .tilt-card { cursor: none; }
body.has-custom-cursor input, body.has-custom-cursor textarea, body.has-custom-cursor select {
  cursor: auto;
}

/* ---------- Page transition overlay ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9995;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0s;
}
.page-transition.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.page-transition img {
  width: clamp(160px, 20vw, 240px);
  height: auto;
  animation: pt-pulse 1.1s ease-in-out infinite;
}
@keyframes pt-pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.18); opacity: 1; }
}

/* ---------- WebGL hero canvas ---------- */
.hero { isolation: isolate; }
.hero .wrap { position: relative; z-index: 1; }
#hero-webgl {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
#hero-webgl.is-ready { opacity: 1; }

/* ---------- Horizontal pinned gallery (desktop) ---------- */
@media (min-width: 901px) {
  .tilt-scene.is-pinned {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: var(--gutter);
  }
  .tilt-scene.is-pinned .tilt-card { width: 38vw; flex: 0 0 auto; }
  .tilt-scene.is-pinned .tilt-card:first-child { margin-left: var(--gutter); }
  .tilt-scene.is-pinned .tilt-card:last-child { margin-right: var(--gutter); }
}

/* ---------- Gallery arrows ---------- */
.gallery-shell { position: relative; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  background: rgba(10,10,12,0.6);
  backdrop-filter: blur(6px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.gallery-arrow svg { width: 20px; height: 20px; }
.gallery-arrow:hover { background: var(--blue); color: var(--black); }
.gallery-arrow:disabled { opacity: 0.25 !important; pointer-events: none; }
.gallery-arrow--prev { left: 1rem; }
.gallery-arrow--next { right: 1rem; }
.gallery-shell.is-active .gallery-arrow { opacity: 1; pointer-events: auto; }
@media (max-width: 900px) {
  .gallery-arrow { display: none; }
}

/* ---------- Interactive 3D globe ---------- */
.globe-shell {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  width: 100%;
  margin-left: auto;
}
.globe-shell::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle, rgba(56,182,255,0.16) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
#globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
#globe-canvas.is-ready { opacity: 1; }
.globe-pin-label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -145%);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(10,10,12,0.65);
  border: 1px solid rgba(56,182,255,0.55);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: 3;
}
.globe-fallback { display: none; }
.globe-shell.no-webgl .globe-fallback { display: grid; }
@media (max-width: 900px) {
  .globe-shell { max-width: 320px; margin: 2rem auto 0; }
}

/* ---------- Reduced motion: strip the interactive layer ---------- */
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: auto; }
}
