:root {
  --bg: #030814;
  --bg-elevated: #0a1428;
  --navy: #214970;
  --cyan: #3ec9d6;
  --cyan-deep: #0097a7;
  --text: #f4f7fb;
  --muted: #d7e2ec;
  --line: rgba(255, 255, 255, 0.12);
  --danger: #ff7b7b;
  --font-display: "Oxanium", sans-serif;
  --font-body: "Outfit", sans-serif;
  --container: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.aurora {
  pointer-events: none;
  position: fixed;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(ellipse 40% 32% at 18% 22%, rgba(0, 151, 167, 0.16), transparent 70%),
    radial-gradient(ellipse 36% 28% at 82% 68%, rgba(33, 73, 112, 0.22), transparent 72%),
    radial-gradient(ellipse 28% 24% at 70% 18%, rgba(62, 201, 214, 0.08), transparent 70%);
  animation: aurora-shift 18s ease-in-out infinite alternate;
}

.cursor {
  pointer-events: none;
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1100;
  width: 0;
  height: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
}

.cursor.is-on {
  opacity: 1;
}

.cursor.is-hover {
  mix-blend-mode: difference;
}

.cursor.is-simple .cursor__glow,
.cursor.is-simple .cursor__orbit,
.cursor.is-simple .cursor__dot {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

.cursor.is-simple .cursor__ring {
  width: 3.5rem;
  height: 3.5rem;
  margin: -1.75rem 0 0 -1.75rem;
}

.cursor.is-simple.is-hover .cursor__ring {
  width: 4.75rem;
  height: 4.75rem;
  margin: -2.375rem 0 0 -2.375rem;
}

.cursor__glow,
.cursor__orbit,
.cursor__ring,
.cursor__dot {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.cursor__glow {
  z-index: 0;
  width: 22rem;
  height: 22rem;
  margin: -11rem 0 0 -11rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(62, 201, 214, 0.28) 0%, rgba(0, 151, 167, 0.12) 32%, transparent 68%);
  filter: blur(2px);
  transition: width 0.35s ease, height 0.35s ease, margin 0.35s ease, opacity 0.35s ease;
  opacity: 1;
}

.cursor__orbit {
  border-radius: 50%;
  transition: width 0.28s ease, height 0.28s ease, margin 0.28s ease, opacity 0.28s ease;
}

.cursor__orbit span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(62, 201, 214, 0.35);
  box-shadow: 0 0 12px rgba(62, 201, 214, 0.12);
  transition: transform 0.28s ease, border-color 0.28s ease, opacity 0.28s ease, box-shadow 0.28s ease;
}

.cursor__orbit[data-orbit="0"] {
  z-index: 6;
  width: 25rem;
  height: 25rem;
  margin: -12.5rem 0 0 -12.5rem;
  opacity: 0.9;
}

.cursor__orbit[data-orbit="1"] {
  z-index: 1;
  width: 100rem;
  height: 100rem;
  margin: -50rem 0 0 -50rem;
  opacity: 0.35;
}

.cursor__orbit[data-orbit="0"] span { border-color: rgba(62, 201, 214, 0.7); }
.cursor__orbit[data-orbit="1"] span { border-color: rgba(62, 201, 214, 0.32); }

.cursor__ring {
  z-index: 4;
  width: 60rem;
  height: 60rem;
  margin: -30rem 0 0 -30rem;
  transition: width 0.28s ease, height 0.28s ease, margin 0.28s ease;
}

.cursor__ring span,
.cursor__dot span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.cursor__ring span {
  border: 1px solid rgba(62, 201, 214, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(62, 201, 214, 0.25);
}

.cursor__dot {
  z-index: 7;
  width: 5.5rem;
  height: 5.5rem;
  margin: -2.75rem 0 0 -2.75rem;
}

.cursor__dot span {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(62, 201, 214, 0.9);
}

.cursor.is-hover .cursor__glow {
  width: 28rem;
  height: 28rem;
  margin: -14rem 0 0 -14rem;
  opacity: 0.42;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 36%, transparent 70%);
}

.cursor.is-hover .cursor__orbit[data-orbit="0"] {
  width: 34rem;
  height: 34rem;
  margin: -17rem 0 0 -17rem;
  opacity: 0.75;
}

.cursor.is-hover .cursor__orbit[data-orbit="1"] {
  width: 130rem;
  height: 130rem;
  margin: -65rem 0 0 -65rem;
  opacity: 0.22;
}

.cursor.is-hover .cursor__orbit span {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

.cursor.is-hover .cursor__ring {
  width: 77.5rem;
  height: 77.5rem;
  margin: -38.75rem 0 0 -38.75rem;
}

.cursor.is-hover .cursor__ring span {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
}

.cursor.is-hover .cursor__dot span {
  transform: scale(1.4);
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.75);
}

.cursor.is-down .cursor__orbit span {
  transform: scale(0.82);
}

.cursor.is-down .cursor__ring span {
  transform: scale(0.72);
  background: rgba(62, 201, 214, 0.18);
}

.cursor.is-down .cursor__dot span {
  transform: scale(0.45);
}

.cursor-trail {
  pointer-events: none;
  position: fixed;
  z-index: 1099;
  width: 0.55rem;
  height: 0.55rem;
  margin: -0.275rem 0 0 -0.275rem;
  border-radius: 50%;
  background: rgba(62, 201, 214, 0.55);
  box-shadow: 0 0 10px rgba(62, 201, 214, 0.45);
  opacity: 0;
  mix-blend-mode: screen;
}

body.has-custom-cursor,
body.has-custom-cursor * {
  cursor: none !important;
}

body.has-custom-cursor.is-cursor-hover .cursor-trail {
  mix-blend-mode: difference;
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
  box-shadow: 0 0 12px rgba(62, 201, 214, 0.55);
  pointer-events: none;
  transition: width 0.08s linear;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

main {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(3, 8, 20, 0.92), rgba(3, 8, 20, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease;
  pointer-events: none;
}

.site-header .logo {
  pointer-events: auto;
}

.site-header.is-scrolled {
  background: rgba(3, 8, 20, 0.92);
  border-bottom: 1px solid var(--line);
}

.logo img {
  width: 96px;
  height: auto;
  mix-blend-mode: screen;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.logo:hover img {
  transform: scale(1.04);
  filter: brightness(1.15);
}

.nav {
  position: fixed;
  top: 0;
  right: clamp(1rem, 3vw, 2rem);
  z-index: 101;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 247, 251, 0.72);
  transition: color 0.2s ease;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta).is-active::after {
  transform: scaleX(1);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav-cta {
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(62, 201, 214, 0.45);
  color: var(--cyan) !important;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover {
  background: rgba(62, 201, 214, 0.12);
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(62, 201, 214, 0.2), 0 8px 24px rgba(0, 151, 167, 0.18);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle__bars span {
  display: block;
  width: 1.4rem;
  height: 1.5px;
  margin: 0.35rem auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle__label {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  justify-items: stretch;
  text-align: left;
  overflow: hidden;
  padding: calc(var(--header-h) + 1rem) 0 3rem;
}

.hero-bg,
.section-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(3, 8, 20, 0.2), rgba(3, 8, 20, 0.45)),
    var(--bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.08) translate3d(0, var(--parallax, 0px), 0);
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 28% 40%, transparent 0%, rgba(3, 8, 20, 0.35) 55%, rgba(3, 8, 20, 0.82) 100%),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}

.hero-orbits {
  display: none;
}

.orbit {
  position: absolute;
  left: 12%;
  top: 50%;
  translate: -20% -50%;
  border: 1px solid rgba(62, 201, 214, 0.14);
  border-radius: 50%;
  animation: orbit-spin 28s linear infinite;
}

.orbit-a {
  width: min(78vw, 640px);
  aspect-ratio: 1;
  border-top-color: rgba(62, 201, 214, 0.45);
  border-right-color: transparent;
}

.orbit-b {
  width: min(92vw, 820px);
  aspect-ratio: 1;
  border-bottom-color: rgba(0, 151, 167, 0.35);
  border-left-color: transparent;
  animation-duration: 40s;
  animation-direction: reverse;
}

.orbit-c {
  width: min(56vw, 420px);
  aspect-ratio: 1;
  border-left-color: rgba(244, 247, 251, 0.18);
  border-bottom-color: transparent;
  animation-duration: 22s;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}

.hero-inner.container {
  position: relative;
  z-index: 1;
  padding-top: 0;
}

.hero-kicker {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0;
  animation: rise 0.9s ease 0.05s forwards;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.8vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  max-width: 14ch;
}

.hero-title span {
  position: relative;
  display: block;
  opacity: 0;
  color: var(--text);
  text-shadow: 0 0 40px rgba(62, 201, 214, 0.18);
  animation: rise 0.9s ease forwards;
}

.hero-title span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.12em;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: none;
  animation: title-line 0.8s ease forwards;
}

.hero-title span:nth-child(1) { animation-delay: 0.15s; }
.hero-title span:nth-child(1)::after { animation-delay: 0.55s; }
.hero-title span:nth-child(2) { animation-delay: 0.3s; }
.hero-title span:nth-child(2)::after { animation-delay: 0.7s; }
.hero-title span:nth-child(3) { animation-delay: 0.45s; }
.hero-title span:nth-child(3)::after { animation-delay: 0.85s; }

.hero-lead {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 300;
  opacity: 0;
  animation: rise 1s ease 0.6s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-top: 1.2rem;
  opacity: 0;
  animation: rise 1s ease 0.75s forwards;
}

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  z-index: 1;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 0.45rem;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--cyan);
  animation: cue 1.6s ease-in-out infinite;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn-primary {
  background: var(--cyan-deep);
  border-color: var(--cyan-deep);
  color: #041018;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 151, 167, 0.28);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 151, 167, 0.12);
}

/* Sections */
.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  overflow: hidden;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-bg {
  opacity: 0.18;
  animation: none;
  transform: none;
  pointer-events: none;
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  animation: dash-pulse 2.4s ease-in-out infinite;
}

.section-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 40rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-lead {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  font-weight: 300;
  color: var(--text);
}

.about-lead strong {
  color: var(--cyan);
  font-weight: 500;
}

.about-body {
  margin: 0;
  color: var(--muted);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.pillar {
  position: relative;
  padding: 1.15rem 0.85rem 1.15rem 1rem;
  transition: transform 0.4s ease, background 0.35s ease;
}

.pillar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, var(--cyan), transparent);
  transition: height 0.45s ease;
}

.pillar:hover {
  transform: translateY(-6px);
  background: linear-gradient(90deg, rgba(62, 201, 214, 0.06), transparent 70%);
}

.pillar:hover::before {
  height: 100%;
}

.pillar-index {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  transition: letter-spacing 0.3s ease, transform 0.35s ease;
}

.pillar:hover .pillar-index {
  letter-spacing: 0.36em;
  transform: translateX(2px);
}

.pillar h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s ease;
}

.pillar:hover h3 {
  color: var(--cyan);
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.pillar:hover p {
  color: var(--text);
}

/* Methods */
.methods-layout {
  position: relative;
  z-index: 1;
}

.methods-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.methods-quote {
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.4;
  color: var(--text);
  font-weight: 500;
}

/* Services */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  border-bottom: 1px solid var(--line);
}

.service-list span {
  display: block;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  letter-spacing: 0.02em;
  color: var(--text);
  transition: color 0.25s ease, padding-left 0.35s ease, letter-spacing 0.3s ease, text-shadow 0.3s ease;
}

.service-list li:hover span {
  color: var(--cyan);
  padding-left: 1rem;
  letter-spacing: 0.05em;
  text-shadow: 0 0 24px rgba(62, 201, 214, 0.35);
}

/* Clientele */
.industries {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.industries li {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  color: var(--text);
}

.logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.25rem 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 3.25rem;
  width: max-content;
  animation: marquee 45s linear infinite;
}

.logo-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track img {
  height: 84px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.72;
  transition: opacity 0.25s ease, transform 0.35s ease, filter 0.35s ease;
}

.marquee-track img:hover {
  opacity: 1;
  transform: scale(1.1);
  filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(62, 201, 214, 0.55));
}

/* Portfolio */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0.5rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.filter:hover,
.filter.is-active {
  color: var(--text);
  border-color: var(--cyan-deep);
  background: rgba(0, 151, 167, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 151, 167, 0.12);
}

.work-grid {
  display: grid;
  gap: 2rem;
}

.work {
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.5fr);
  gap: 1.5rem;
  align-items: stretch;
  height: 280px;
  min-height: 280px;
  max-height: 280px;
  position: relative;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.work::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1rem;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent 65%);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.work:hover {
  transform: translateY(-6px);
}

.work:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.work.is-hidden {
  display: none;
}

.work-meta {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  padding-right: 0.5rem;
  text-align: left;
}

.work-media {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  background: var(--bg-elevated);
  height: 100%;
  min-height: 0;
  min-width: 0;
  max-height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.work:hover .work-media {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(62, 201, 214, 0.18);
}

.work-media > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.work:hover .work-media > img {
  transform: scale(1.04);
}

.work-media--duo,
.work-media--trio {
  display: grid;
  gap: 0.5rem;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.work-media--duo {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.work-media--trio {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
}

.work-media--duo > img,
.work-media--trio > img,
.work-media--duo > .video-thumb,
.work-media--trio > .video-thumb {
  min-height: 0;
  min-width: 0;
  height: 100%;
  width: 100%;
}

.work-media--duo > img,
.work-media--trio > img {
  object-fit: cover;
}

.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-elevated);
  cursor: pointer;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease, filter 0.3s ease;
}

.video-thumb:hover img,
.work:hover .video-thumb img {
  transform: scale(1.04);
}

.video-thumb:hover img {
  filter: brightness(0.72);
}

.video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 3.2rem;
  height: 3.2rem;
  margin: -1.6rem 0 0 -1.6rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(3, 8, 20, 0.55);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  animation: play-pulse 2.4s ease-in-out infinite;
}

.video-play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.9rem;
  border-color: transparent transparent transparent var(--text);
}

.video-play::after {
  content: "";
  position: absolute;
  inset: -0.45rem;
  border-radius: 50%;
  border: 1px solid rgba(62, 201, 214, 0.35);
  animation: play-ring 2.4s ease-out infinite;
}

.video-thumb:hover .video-play {
  transform: scale(1.08);
  background: rgba(0, 151, 167, 0.75);
  border-color: var(--cyan);
  animation: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.work-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0 0;
}

.video-link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.video-link:hover {
  text-decoration: underline;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.video-modal[hidden] {
  display: none !important;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 12, 0.82);
  backdrop-filter: blur(6px);
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: #050b16;
  border: 1px solid var(--line);
  padding: 1rem;
}

.video-modal__close {
  position: absolute;
  top: -0.35rem;
  right: -0.15rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.video-modal__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-meta h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.25s ease;
}

.work:hover .work-meta h3 {
  color: var(--cyan);
}

.work-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Collaborate */
.collaborate {
  isolation: isolate;
}

.collaborate-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.collaborate .section-title {
  max-width: none;
  margin-bottom: 0.5rem;
}

.collaborate-copy p {
  margin: 0;
}

.contact-form {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid rgba(62, 201, 214, 0.18);
  background: linear-gradient(160deg, rgba(10, 20, 40, 0.72), rgba(3, 8, 20, 0.4));
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.contact-lines {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.contact-lines a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cyan);
  letter-spacing: 0.04em;
  transition: color 0.2s ease, transform 0.25s ease;
  display: inline-block;
}

.contact-lines a:hover {
  text-decoration: underline;
  color: var(--text);
  transform: translateX(4px);
}

.field {
  display: grid;
  gap: 0.2rem;
  position: relative;
}

.field label {
  position: absolute;
  left: 0.95rem;
  top: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease, letter-spacing 0.2s ease;
}

.field input,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 1.35rem 0.95rem 0.55rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
  color: var(--text);
}

.field textarea {
  min-height: 6.5rem;
  padding-top: 1.45rem;
}

.field input:focus,
.field textarea:focus,
.field input:not(:placeholder-shown),
.field textarea:not(:placeholder-shown) {
  border-color: var(--cyan-deep);
  background: rgba(0, 151, 167, 0.06);
}

.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  top: 0.35rem;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--danger);
}

.field-error {
  min-height: 0.95rem;
  font-size: 0.78rem;
  color: var(--danger);
}

.form-success {
  margin: 0;
  color: var(--cyan);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner img {
  width: 72px;
  mix-blend-mode: screen;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Reveal — stay readable while animating in */
.reveal {
  opacity: 1;
  transform: translateY(18px);
  filter: blur(2px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.65s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal.is-in:nth-child(2) { transition-delay: 0.05s; }
.reveal.is-in:nth-child(3) { transition-delay: 0.1s; }
.reveal.is-in:nth-child(4) { transition-delay: 0.15s; }

/* Animations */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes aurora-shift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2%, -1.5%, 0) scale(1.05); }
}

@keyframes title-line {
  from { width: 0; opacity: 0; }
  to { width: min(10rem, 70%); opacity: 1; }
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes dash-pulse {
  0%, 100% { opacity: 0.45; transform: scaleX(0.7); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes play-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes play-ring {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Responsive */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .site-header {
    justify-content: center;
    padding-inline: 1rem;
  }

  .logo {
    position: relative;
    z-index: 2;
  }

  .logo img {
    width: 88px;
  }

  .cursor,
  .cursor-trail {
    display: none !important;
  }

  body.has-custom-cursor,
  body.has-custom-cursor * {
    cursor: auto !important;
  }

  .nav-toggle {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: fixed !important;
    left: 1rem !important;
    right: 1rem !important;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    z-index: 1200;
    width: auto !important;
    min-width: 0;
    height: 3.4rem !important;
    min-height: 3.4rem;
    padding: 0 1.35rem;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 0.2rem;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
    box-shadow:
      0 12px 32px rgba(0, 151, 167, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transform: none !important;
    color: #031018;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
  }

  .nav-toggle__bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.32rem;
    width: 1.35rem;
    flex-shrink: 0;
  }

  .nav-toggle__bars span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 0;
    border-radius: 999px;
    background: #031018;
    box-shadow: none;
  }

  .nav-toggle__label {
    display: block !important;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #031018;
    line-height: 1;
    text-shadow: none;
  }

  .nav-toggle[aria-expanded="true"] {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(3, 8, 20, 0.96);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__label {
    color: var(--cyan);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span {
    background: var(--cyan);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .nav {
    display: flex !important;
    top: auto !important;
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.85rem 1rem calc(5.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(3, 8, 20, 0.98);
    border-top: 1px solid rgba(62, 201, 214, 0.35);
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    z-index: 1190;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--line);
    text-align: center;
    font-size: 0.85rem;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }

  .scroll-cue {
    display: none !important;
  }

  .site-footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .about-grid,
  .pillars,
  .collaborate-layout,
  .form-row,
  .work {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .work-meta {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    justify-content: flex-start;
  }

  .work-media {
    grid-column: 1;
    grid-row: 2;
    height: 240px;
    min-height: 240px;
    max-height: 240px;
  }

  .work-media--trio {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .work-media--trio img:last-child,
  .work-media--trio .video-thumb:last-child {
    grid-column: auto;
  }

  .section-title {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .work-media {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
  }

  .work-media--duo {
    grid-template-columns: 1fr 1fr;
  }

  .work-media--trio {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg,
  .marquee-track,
  .scroll-cue span,
  .hero-title span,
  .hero-lead,
  .hero-actions,
  .hero-kicker,
  .aurora,
  .orbit,
  .video-play,
  .video-play::after,
  .eyebrow::before {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .hero-title span {
    color: var(--text);
    text-shadow: none;
  }
  .hero-title span::after {
    animation: none !important;
    width: min(10rem, 70%);
    opacity: 1;
  }
  .cursor-glow,
  .cursor,
  .cursor-trail,
  .hero-particles,
  .hero-orbits {
    display: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
