/* ---------- Tokens ---------- */
:root {
  --bg: #0b0d12;
  --bg-alt: #0f1218;
  --surface: #151a22;
  --surface-hi: #1b212b;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef1f5;
  --muted: #9aa4b2;
  --accent: #4f9edc;
  --accent-hi: #74b5e8;
  --accent-glow: rgba(79, 158, 220, 0.35);

  --font-display: "Exo 2", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }

.accent { color: var(--accent); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid transparent;
  box-shadow: 0 8px 28px -10px var(--accent-glow);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-hi); transform: translateY(-1px); box-shadow: 0 12px 32px -10px var(--accent-glow); }
.btn-ghost { background: transparent; border-color: var(--border); box-shadow: none; color: var(--text); }
.btn-ghost:hover { background: var(--surface); box-shadow: none; }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-large { padding: 18px 36px; font-size: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(11, 13, 18, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand img { width: 110px; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) {
  text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500;
  transition: color .2s;
}
.site-nav a:not(.btn):hover { color: var(--text); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6.5vw, 88px) 0 clamp(48px, 7vw, 96px);
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(79, 158, 220, 0.22), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-copy { position: relative; z-index: 1; max-width: 680px; }
.hero h1 {
  font-size: clamp(42px, 7.2vw, 92px); font-weight: 800; font-style: italic; text-transform: uppercase;
  letter-spacing: -0.015em;
}
.lead { margin-top: 28px; font-size: clamp(17px, 1.7vw, 21px); color: var(--muted); max-width: 36em; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero: centered copy, perspective grid floor, studio logo marquee ---------- */
.hero-b { padding-bottom: 0; text-align: center; }
.hero-b::before { inset: -30% auto auto 50%; transform: translateX(-50%); width: 110vw; height: 80vw; max-width: 1400px; max-height: 1000px; }
.hero-b .hero-copy { margin: 0 auto; max-width: 900px; }
.hero-b h1 { font-size: clamp(42px, 7.6vw, 104px); }
.hero-b .accent {
  background: linear-gradient(90deg, #4f9edc, #6fd3ff 45%, #9b8cff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-b .lead { margin-left: auto; margin-right: auto; }
.hero-b .hero-actions { justify-content: center; }

/* perspective floor, drawn on canvas (see script) so thin far-away lines stay antialiased */
.hero-grid {
  position: absolute; left: 0; right: 0; bottom: 150px; height: 120px; width: 100%;
  pointer-events: none;
}

.marquee { position: relative; margin-top: clamp(64px, 9vw, 112px); padding: 28px 0 36px; border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(11, 13, 18, 0.2), var(--bg) 70%); }
.marquee-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.marquee-window {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: clamp(56px, 8vw, 120px); width: max-content; animation: marquee 28s linear infinite; padding-right: clamp(56px, 8vw, 120px); }
.marquee-window:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex-shrink: 0; display: flex; align-items: center; height: 48px; opacity: .78; transition: opacity .2s; }
.marquee-track li:hover { opacity: 1; }
.marquee-track img { width: auto; }
.marquee-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 18px; text-transform: uppercase; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .hero-grid, .marquee-track { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(52px, 7vw, 92px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 3.5vw, 40px); }
.section-head h2, .contact h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; }
.section-sub { margin-top: 18px; color: var(--muted); font-size: 18px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 16px; }
.cards-5 { grid-template-columns: repeat(6, 1fr); }
.cards-5 > :nth-child(-n+3) { grid-column: span 2; }
.cards-5 > :nth-child(n+4) { grid-column: span 3; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; transition: border-color .25s, transform .25s, background .25s;
}
.card:hover { border-color: rgba(79, 158, 220, 0.4); background: var(--surface-hi); transform: translateY(-2px); }
.card h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card-icon {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 16px; border-radius: 12px;
  background: rgba(79, 158, 220, 0.12); stroke: var(--accent); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.value-num {
  display: block; font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 44px; color: transparent; -webkit-text-stroke: 1px var(--accent); margin-bottom: 14px; line-height: 1;
}

/* ---------- Studios ---------- */
.studios { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.studios > li { display: flex; }
.studio {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center;
  min-height: 184px; padding: 20px 18px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none;
  transition: border-color .25s, background .25s, transform .25s;
}
.studio:hover { transform: translateY(-2px); }
.studio::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: .6; transition: opacity .25s;
}
.studio:hover { border-color: rgba(79, 158, 220, 0.4); background: var(--surface-hi); }
.studio:hover::before { opacity: 1; }
.studio-logo-wrap { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; padding: 22px 0 14px; }
.studio-logo { height: 32px; width: auto; max-width: 100%; opacity: .92; transition: opacity .25s; }
.studio:hover .studio-logo { opacity: 1; }
.studio-brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--text); line-height: 1.1;
  font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 0.02em; text-transform: uppercase;
}
.studio-logo-icon { height: 42px; max-width: none; }
.studio-logo-tall { height: 50px; }
.studio-logo-wide { height: 24px; }
.studio-logo-levelapp { height: 44px; }
.studio-num {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 26px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(79, 158, 220, 0.6);
}
.studio-site { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .25s; }
.studio:hover .studio-site { color: var(--accent-hi); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.person {
  display: flex; align-items: stretch; gap: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
}
.person img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex-shrink: 0; align-self: flex-start; }
/* text column fills the card height so LinkedIn sits on one line across a row, however long the role is */
.person > div { display: flex; flex-direction: column; min-width: 0; }
.person h3 { font-size: 20px; font-weight: 600; margin-top: 2px; }
.role { color: var(--muted); font-size: 15px; margin: 4px 0 12px; }
.linkedin {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500;
  color: var(--accent); text-decoration: none; margin-top: auto; align-self: flex-start;
}
.linkedin svg { width: 16px; height: 16px; fill: currentColor; transform: translateY(-1px); } /* optically level with the cap height of the label */
.linkedin:hover { color: var(--accent-hi); }

.team-subhead {
  margin: clamp(28px, 3.5vw, 40px) 0 16px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.team-advisors { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.team-advisors .person { gap: 16px; }
.team-advisors .person img { width: 88px; height: 88px; border-radius: 50%; }
.team-advisors .person h3 { font-size: 19px; }
.team-advisors .role { font-size: 14px; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start;
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container) - 2 * var(--gutter));
  background: linear-gradient(180deg, rgba(79, 158, 220, 0.14), rgba(79, 158, 220, 0.02));
  border: 1px solid rgba(79, 158, 220, 0.28); border-radius: var(--radius-lg);
  padding: clamp(28px, 4.5vw, 52px);
}
.contact-copy { position: sticky; top: calc(var(--header-h) + 24px); }
.contact-copy .section-sub { max-width: 30em; }

.contact-inner > * { min-width: 0; }
.contact-form, .field, .file-list { grid-template-columns: minmax(0, 1fr); }
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--text); }
.req { color: var(--accent); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: rgba(11, 13, 18, 0.6); border: 1px solid var(--border); color: var(--text);
  font: inherit; font-size: 16px; line-height: 1.5;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder { color: rgba(154, 164, 178, 0.6); }
.field input[type="text"]:focus, .field input[type="email"]:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(11, 13, 18, 0.85);
  box-shadow: 0 0 0 3px rgba(79, 158, 220, 0.18);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.dropzone {
  position: relative; display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 24px 16px; border-radius: 12px; cursor: pointer;
  border: 1.5px dashed rgba(255, 255, 255, 0.18); background: rgba(11, 13, 18, 0.35);
  color: var(--muted); font-size: 15px; font-weight: 400;
  transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: rgba(79, 158, 220, 0.08); }
.dropzone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 158, 220, 0.18); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dropzone strong { color: var(--text); font-weight: 600; }
.dropzone small { font-size: 13px; color: rgba(154, 164, 178, 0.8); }

.file-list { display: grid; gap: 8px; }
.file-list:empty { display: none; }
.file-list li {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 14px;
}
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--muted); flex-shrink: 0; }
.file-remove {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); font-size: 18px; line-height: 1;
}
.file-remove:hover { background: var(--surface-hi); color: var(--text); }
.form-error { color: #f08a8a; font-size: 14px; }
.contact-form .btn { justify-self: start; min-width: 180px; }
.contact-form .btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Thank-you page ---------- */
.thanks {
  min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 20px;
  padding: 48px var(--gutter); text-align: center;
  background: radial-gradient(60vw 60vw at 50% 30%, rgba(79, 158, 220, 0.16), transparent 70%);
}
.thanks img { width: 120px; margin-bottom: 24px; }
.thanks .eyebrow { margin: 0; }
.thanks h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; font-style: italic; text-transform: uppercase; max-width: 16em; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner img { width: 88px; opacity: .8; }
.footer-inner p { color: var(--muted); font-size: 14px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .contact-inner { grid-template-columns: 1fr; }
  .contact-copy { position: static; }

  .cards-5 { grid-template-columns: repeat(2, 1fr); }
  .cards-5 > :nth-child(n) { grid-column: auto; }
  .cards-5 > :last-child { grid-column: 1 / -1; }
  .cards-3 { grid-template-columns: 1fr; }
  .studios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studios > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .team { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .contact-inner { padding: 28px 20px; }
  .contact-form .btn { justify-self: stretch; }
  body { font-size: 16px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; background: transparent; border: 1px solid var(--border);
    border-radius: 12px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: 12px 0; font-size: 18px; color: var(--text); }
  .site-nav .btn { margin-top: 12px; }

  .cards-5 { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .person img { width: 84px; height: 84px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .studios { grid-template-columns: 1fr; }
  .studios > li:last-child:nth-child(odd) { grid-column: auto; }
  .studio { min-height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.marquee-track .marquee-logo-22 { height: 22px; }

.marquee-track .marquee-logo-28 { height: 28px; }

.marquee-track .marquee-logo-38 { height: 38px; }

.marquee-track .marquee-logo-40 { height: 40px; }

.marquee-track .marquee-logo-44 { height: 44px; }
