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

:root {
  --bg: #0A1628;
  --blue-mid: #2563EB;
  --blue-light: #38BDF8;
  --text: #F8FAFC;
  --text-muted: #647D9A;
  --border: rgba(255, 255, 255, 0.08);
  --nav-height: 72px;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 95%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* pixel dot grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* subtle noise grain for depth */
body > .grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* animated secondary glow — visible on all pages */
body::after {
  content: '';
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 7s ease-in-out infinite alternate;
}

/* ─── NAV ─── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 24, 40, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--blue-mid) 30%, var(--blue-light) 50%, var(--blue-mid) 70%, transparent 100%);
  opacity: 0.9;
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 32px; width: auto; }

/* hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-muted);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s;
}
.nav-hamburger.open span { background: var(--text); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(11, 24, 40, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 98;
  flex-direction: column;
  padding: 8px 0 16px;
  animation: menuDrop 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.mobile-menu.open { display: flex; }

@keyframes menuDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
  display: block;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--text); }

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--blue-light), rgba(129,140,248,0.8));
  border-radius: 1px;
}

/* ─── HERO ─── */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100svh;
  max-height: 820px;
  min-height: 600px;
  padding: calc(var(--nav-height) + 48px) 24px 64px;
  z-index: 1;
}

@keyframes glowPulse {
  from { opacity: 0.6; transform: translateX(-50%) scale(1); }
  to   { opacity: 1;   transform: translateX(-50%) scale(1.12); }
}

.hero-content { max-width: 680px; position: relative; z-index: 1; }

/* centered logo in hero */
.hero-logo-wrap {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
  position: relative;
  animation: logoFloat 4s ease-in-out infinite;
  animation-delay: 1.8s;
}

/* breathing glow ring behind logo */
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  margin-left: -90px;
  margin-top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.28) 0%, rgba(37,99,235,0.12) 45%, transparent 70%);
  filter: blur(22px);
  animation: glowBreath 3.2s ease-in-out infinite;
  animation-delay: 1.8s;
  opacity: 0;
  z-index: 0;
}

.hero-logo { position: relative; z-index: 1; }

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}

@keyframes glowBreath {
  0%, 100% { opacity: 0.3; transform: scale(0.88); }
  50%       { opacity: 0.85; transform: scale(1.15); }
}
.hero-logo {
  height: 120px;
  width: auto;
}

/* render-in animation — blurry pixels resolve to sharp */
.hero-logo-render {
  animation: renderIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes renderIn {
  0% {
    opacity: 0;
    filter: blur(16px) brightness(1.6);
    transform: scale(0.92);
  }
  40% {
    opacity: 1;
    filter: blur(6px) brightness(1.2);
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    filter: blur(0px) brightness(1);
    transform: scale(1);
  }
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 24px;
  color: #fff;
}

/* "Production design" line */
.h1-line {
  display: block;
  background: linear-gradient(145deg, #ffffff 30%, #a8c8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* "for [word]" line — flex so "for" never moves */
.h1-rotate-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.h1-for {
  flex-shrink: 0;
  background: linear-gradient(145deg, #ffffff 30%, #a8c8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* rotating word */
.rotating-word {
  display: inline-block;
  background: linear-gradient(135deg, #38BDF8, #818CF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.rotating-word.exit {
  opacity: 0;
  transform: translateY(-10px);
}
.rotating-word.enter {
  opacity: 0;
  transform: translateY(10px);
}

.hero p {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 44px;
  line-height: 1.8;
}

.hero-sub {
  font-size: 11px;
  opacity: 0.55;
  letter-spacing: 0.18em;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--blue-light);
  text-decoration: none;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  background: rgba(56, 189, 248, 0.04);
  position: relative;
}
.btn { overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56,189,248,0.14), rgba(129,140,248,0.08));
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.btn span, .btn { z-index: 1; }
.btn:hover { border-color: rgba(56, 189, 248, 0.65); }
.btn:hover::after { transform: translateX(0); }

/* ─── SCROLL HINT ─── */

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  z-index: 2;
  cursor: default;
}

.scroll-hint-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-hint-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(56,189,248,0.6), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-hint-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #38BDF8, transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { top: -100%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 200%; opacity: 0; }
}

/* ─── PAGE TRANSITION OVERLAY ─── */

.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  background-image: radial-gradient(rgba(56,189,248,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.page-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* page render-in on load */
@keyframes pageIn {
  0%   { opacity: 0; filter: blur(10px); }
  100% { opacity: 1; filter: blur(0); }
}

.page-wrap {
  animation: pageIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ─── TICKER ─── */

.ticker {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.ticker-track span::after {
  content: '·';
  color: var(--blue-light);
  opacity: 0.5;
}

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

/* ─── CAPABILITIES ─── */

.capabilities-section {
  position: relative;
  z-index: 1;
  padding: 72px 48px 80px;
}

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
  opacity: 1;
  margin-bottom: 28px;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

/* Each card spans 2 of 6 columns = 3 per row */
.cap-card { grid-column: span 2; }

.cap-card {
  background: var(--bg);
  padding: 24px 24px;
  position: relative;
  transition: background 0.25s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  will-change: transform;
}

.card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.cap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

/* corner brackets */
.cap-card::after {
  content: '';
  position: absolute;
  bottom: 10px; right: 10px;
  width: 12px; height: 12px;
  border-right: 1px solid rgba(56,189,248,0.2);
  border-bottom: 1px solid rgba(56,189,248,0.2);
  opacity: 0;
  transition: opacity 0.3s;
}

.cap-card:hover { background: rgba(37, 99, 235, 0.05); }
.cap-card:hover::before { opacity: 1; }
.cap-card:hover::after { opacity: 1; }

.card-num {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--blue-light);
  opacity: 0.7;
  margin-bottom: 12px;
}

.cap-card h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.25;
}

.cap-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-note {
  max-width: 1100px;
  margin: 1px auto 0;
  padding: 16px 24px;
  border: 1px solid var(--border);
  border-top: none;
  background: rgba(255,255,255,0.012);
}
.info-note p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ─── PAGES ─── */

.page {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-height) + 72px);
  padding-bottom: 72px;
  min-height: 100vh;
}

.container { max-width: 680px; margin: 0 auto; padding: 0 24px; }

.page-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
  opacity: 1;
  margin-bottom: 28px;
}

.page h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 28px;
  position: relative;
  background: linear-gradient(145deg, #ffffff 40%, #a8c8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page h1::before {
  content: '';
  position: absolute;
  inset: -24px -24px -24px -32px;
  background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.18) 0%, transparent 65%);
  filter: blur(24px);
  animation: h1Glow 4.5s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

@keyframes h1Glow {
  from { opacity: 0.45; }
  to   { opacity: 1; }
}

.page p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.divider {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-mid), transparent);
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -14px;
  width: 14px;
  height: 100%;
  background: var(--blue-light);
  box-shadow: 0 0 8px var(--blue-light);
  animation: dividerShimmer 3.5s ease-in-out infinite;
  animation-delay: 0.8s;
}

@keyframes dividerShimmer {
  0%   { transform: translateX(0);    opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(50px); opacity: 0; }
}

/* offerings on about page */
.offerings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}

.offering {
  background: var(--bg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, border-left-color 0.25s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  border-left: 2px solid transparent;
  will-change: transform;
}
.offering:hover { border-left-color: rgba(56, 189, 248, 0.4); }
.offering::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.offering:hover { background: rgba(37,99,235,0.05); }
.offering:hover::before { opacity: 1; }

.offering-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
  border: 1px solid rgba(56,189,248,0.25);
  padding: 4px 10px;
  margin-bottom: 18px;
}

.offering h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.offering p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* faded icon mark at bottom of contact page */
.contact-logo-wrap {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}
.contact-logo {
  height: 72px;
  width: auto;
  opacity: 0.1;
  filter: grayscale(20%);
}

/* ─── CONTACT ─── */

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  margin-top: 4px;
  transition: color 0.2s;
}
.contact-link:hover { color: var(--blue-light); }
.contact-link .icon { opacity: 0.35; transition: opacity 0.2s; flex-shrink: 0; }
.contact-link:hover .icon { opacity: 0.8; }

.contact-note {
  margin-top: 36px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.contact-note p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ─── CONTACT STRIP ─── */

.contact-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-strip-text { display: flex; flex-direction: column; gap: 6px; }

.contact-strip p {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.contact-strip-sub {
  font-size: 15px !important;
  font-weight: 400 !important;
  color: var(--text-muted) !important;
  letter-spacing: 0 !important;
}

@media (max-width: 640px) {
  .contact-strip {
    flex-direction: column;
    text-align: center;
    padding: 48px 24px;
  }
}

/* ─── FOOTER ─── */

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer p { font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }

/* ─── SCROLL ANIMATIONS ─── */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */

@media (max-width: 768px) {
  /* Nav */
  nav {
    padding: 0 16px;
  }
  .nav-logo img { height: 26px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.1em; }

  /* Hero */
  .hero {
    padding: calc(var(--nav-height) + 32px) 24px 56px;
    min-height: 100svh;
  }
  .hero-logo { height: 80px; }
  .hero-logo-wrap { margin-bottom: 20px; }
  .hero h1 { font-size: clamp(30px, 8vw, 48px); }
  .hero p { font-size: 12px; margin-bottom: 32px; }

  /* Capabilities */
  .capabilities-section { padding: 56px 20px 72px; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .cap-card { grid-column: 1 / -1; }
  .info-note { margin: 1px 0 0; }

  /* Pages */
  .container { padding: 0 20px; }
  .page { padding-top: calc(var(--nav-height) + 48px); padding-bottom: 72px; }
  .page h1 { font-size: clamp(26px, 7vw, 38px); }

  /* Offerings */
  .offerings { grid-template-columns: 1fr 1fr; }

  /* Contact */
  .contact-link { font-size: 15px; word-break: break-all; }
  .contact-logo { height: 80px; }

  /* Contact strip */
  .contact-strip {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    gap: 20px;
  }
  .contact-strip p { font-size: 16px; }

  /* Footer */
  footer { padding: 20px; }
}

@media (max-width: 500px) {
  .scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .offerings { grid-template-columns: 1fr; }
}
