:root {
  color-scheme: dark;
  --bg: #080b12;
  --surface: #0f1420;
  --text: #f2f4f8;
  --muted: #9ba5b7;
  --line: rgba(255, 255, 255, .12);
  --mint: #91f5c9;
  --purple: #b49aff;
  font-family: 'DM Sans', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { width: 100%; margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); }
a { color: inherit; }
.page-shell { max-width: 1600px; margin: 0 auto; overflow: hidden; background: var(--bg); }
.hero {
  min-height: min(900px, 100svh); min-height: max(720px, 100svh); position: relative; display: grid; place-items: center;
  isolation: isolate; width: 100%; max-width: 100%; overflow: hidden;
  background-color: #101521;
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('wallpaper.png') center / contain no-repeat; }
.hero::after { content: ''; position: absolute; inset: -20px; z-index: -3; background: url('wallpaper.png') center / cover no-repeat; filter: blur(18px) brightness(.45); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 44%, transparent 0%, rgba(5, 8, 14, .18) 42%, rgba(5, 8, 14, .82) 100%), linear-gradient(180deg, rgba(5, 8, 14, .22) 0%, rgba(5, 8, 14, .16) 48%, var(--bg) 100%); }
.hero-content { width: min(100% - 40px, 1000px); margin-top: -24px; text-align: center; animation: arrive .8s ease both; }
.eyebrow, .section-kicker, .section-count, .scroll-cue, .back-top { font-size: .7rem; font-weight: 700; letter-spacing: .19em; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; color: #dce2ed; }
.status-dot { height: 7px; width: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 15px var(--mint); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 13px; font: 700 clamp(5rem, 15vw, 11rem)/.92 'Space Grotesk', sans-serif; letter-spacing: -.095em; color: transparent; -webkit-text-stroke: 1.8px rgba(255,255,255,.94); text-shadow: 0 0 48px rgba(180,154,255,.12); }
.tagline { margin-bottom: 35px; color: rgba(238,242,249,.79); font-size: clamp(.94rem, 2vw, 1.08rem); }
.link-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.link-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 19px; border: 1px solid rgba(255,255,255,.24); border-radius: 4px; background: rgba(9,12,20,.45); backdrop-filter: blur(12px); text-decoration: none; font-size: .87rem; font-weight: 600; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.link-button span { color: var(--mint); }
.link-button:hover, .link-button:focus-visible { transform: translateY(-3px); border-color: var(--mint); background: rgba(15,20,32,.88); outline: none; }
.link-primary { border-color: var(--mint); background: var(--mint); color: #08120f; }
.link-primary span { color: #08120f; }
.link-primary:hover, .link-primary:focus-visible { background: #b2ffdc; }
.scroll-cue { position: absolute; left: 50%; bottom: 36px; display: flex; align-items: center; gap: 12px; color: rgba(231,236,245,.61); text-decoration: none; transform: translateX(-50%); white-space: nowrap; font-size: .61rem; }
.scroll-cue span { height: 28px; width: 17px; border: 1px solid rgba(255,255,255,.5); border-radius: 10px; position: relative; }
.scroll-cue span::after { content: ''; position: absolute; left: 50%; top: 5px; height: 4px; width: 2px; background: var(--mint); animation: scroll 1.4s infinite; }
.hero-index { position: absolute; right: 40px; bottom: 42px; color: rgba(255,255,255,.45); font: 600 .75rem 'Space Grotesk', sans-serif; letter-spacing: .14em; }
.content-section { width: min(100% - 48px, 1000px); margin: 0 auto; padding: 112px 0 100px; }
.latest-section { border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.section-kicker { margin-bottom: 12px; color: var(--mint); font-size: .65rem; }
h2 { margin: 0; font: 600 clamp(2.35rem, 6vw, 4rem)/1 'Space Grotesk', sans-serif; letter-spacing: -.06em; }
.accent { color: var(--mint); }
.section-count { margin-bottom: 6px; color: #778195; white-space: nowrap; font-size: .63rem; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; background: linear-gradient(135deg, rgba(180,154,255,.1), transparent 45%), #101521; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.video-frame iframe { display: block; height: 100%; width: 100%; border: 0; }
.video-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; padding: 25px; text-align: center; color: var(--muted); }
.video-placeholder p { margin: 0; font-size: .9rem; }
.video-placeholder strong { color: var(--text); }
.play-icon { width: 53px; height: 53px; display: grid; place-items: center; padding-left: 3px; border-radius: 50%; background: var(--mint); color: #09130f; font-size: 1rem; box-shadow: 0 0 30px rgba(145,245,201,.18); }
.section-note { margin: 16px 0 0; color: #818b9d; font-size: .83rem; }
.section-note strong { color: #c5ccda; font-weight: 500; }
.projects-section { padding-bottom: 122px; }
.projects-copy { min-height: 90px; padding: 23px 27px; border-left: 2px solid var(--purple); background: linear-gradient(90deg, rgba(180,154,255,.07), transparent 80%); color: #c4cad6; font-size: 1rem; line-height: 1.85; white-space: pre-wrap; }
.projects-copy p { margin: 0; }
.projects-copy .loading-copy, .projects-copy .error-copy { color: var(--muted); }
.site-footer { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px max(24px, calc((100% - 1000px) / 2)); border-top: 1px solid var(--line); color: #808a9c; }
.footer-brand { color: var(--text); font: 700 1.5rem 'Space Grotesk', sans-serif; text-decoration: none; }
.footer-brand span { color: var(--mint); }
.site-footer p { margin: 0; font-size: .78rem; }
.back-top { color: #a4adbc; text-decoration: none; font-size: .61rem; }
.back-top:hover { color: var(--mint); }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scroll { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,8px); } }
@media (max-width: 650px) {
  .hero { min-height: 760px; min-height: 100svh; }
  .hero-content { width: min(100% - 30px, 520px); margin-top: -12px; }
  h1 { font-size: clamp(5rem, 22vw, 8rem); -webkit-text-stroke-width: 1.3px; }
  .tagline { max-width: 280px; margin: 0 auto 27px; line-height: 1.6; }
  .link-row { max-width: 400px; margin: 0 auto; gap: 8px; }
  .link-button { flex: 1 1 calc(50% - 8px); min-height: 46px; padding: 0 10px; gap: 10px; font-size: .8rem; }
  .hero-index { right: 20px; bottom: 38px; }
  .content-section { width: calc(100% - 40px); padding: 78px 0; }
  .section-heading { align-items: start; }
  .section-count { padding-top: 5px; font-size: .55rem; }
  .projects-copy { padding: 19px 20px; }
  .site-footer { flex-wrap: wrap; padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
