:root {
  --bg-deep: #122038;
  --bg-card: rgba(32, 50, 82, 0.78);
  --bg-header: rgba(22, 38, 66, 0.72);
  --ice: #7dd3fc;
  --ice-bright: #bae6fd;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --pink: #f472b6;
  --mint: #34d399;
  --amber: #fbbf24;
  --text: #f5fbff;
  --text-muted: #b7c6d9;
  --border: rgba(125, 211, 252, 0.26);
  --glow: rgba(34, 211, 238, 0.42);
  --radius: 20px;
  --sans: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg-deep);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.62;
  animation: drift 18s ease-in-out infinite alternate;
}

.aurora::before {
  top: -30%;
  left: -20%;
  background: radial-gradient(circle, #38bdf8 0%, transparent 60%);
}

.aurora::after {
  bottom: -40%;
  right: -25%;
  background: radial-gradient(circle, #a78bfa 0%, transparent 55%);
  animation-delay: -9s;
  animation-direction: alternate-reverse;
}

#snow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(5%, 8%) scale(1.08); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 12px var(--mint); }
  50% { box-shadow: 0 0 22px var(--mint); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 48px;
  padding: 14px 22px;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 999px;
  animation: slide-up 0.8s ease;
}

.mark {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  background: linear-gradient(135deg, var(--ice-bright), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.25s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(125, 211, 252, 0.1);
}

.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1px;
  margin: 0.28rem auto;
  background: var(--ice-bright);
}

.hero {
  text-align: center;
  padding: 40px 0 80px;
  animation: slide-up 0.9s ease 0.1s both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(34, 211, 238, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse-glow 2s infinite;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

h1 .gradient {
  display: block;
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 0.35em;
  background: linear-gradient(135deg, #fff 0%, var(--ice) 40%, var(--violet) 70%, var(--pink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}

.lede,
.section-desc {
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
}

.section-desc {
  margin: 0 0 36px;
  font-size: 1.05rem;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: linear-gradient(135deg, var(--ice), var(--violet));
  color: #031018;
  border-color: transparent;
  font-weight: 600;
}

.btn-ghost {
  color: var(--ice-bright);
  background: rgba(34, 211, 238, 0.06);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-stat {
  padding: 20px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s;
}

.hero-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.4);
}

.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, #fff, var(--ice));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section {
  margin-bottom: 80px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(34, 211, 238, 0.08);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(167, 139, 250, 0.15));
  border: 1px solid var(--border);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.file {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
  margin-bottom: 10px;
  opacity: 0.85;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ice);
  background: rgba(15, 28, 52, 0.22);
}

.reel-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
}

.reel {
  margin: 0;
}

.reel.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #000;
}

.video iframe,
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  padding: 0;
  cursor: pointer;
  background: #000;
  color: inherit;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.video-facade:hover img,
.video-facade:focus-visible img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #031018;
}

.video-facade:hover .play-icon,
.video-facade:focus-visible .play-icon {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 14px 36px rgba(167, 139, 250, 0.45);
}

.reel h3 {
  margin: 14px 0 8px;
  font-size: 1.2rem;
}

.reel-copy h3 {
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.reel-copy p {
  margin-bottom: 0;
}

.reel-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
}

.reel-link:hover {
  color: var(--ice-bright);
}

.timeline {
  position: relative;
  margin: 0;
  padding-left: 32px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet), var(--pink));
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.timeline-item.done::before {
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.timeline .when,
.timeline .where {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

.timeline .where {
  color: var(--text-muted);
  margin: 4px 0 8px;
}

.timeline h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 6px 0 0;
}

.timeline li > p:last-child {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

.about-lead {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  background: linear-gradient(135deg, #fff, var(--ice));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.cta {
  text-align: center;
  padding: 60px 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(167, 139, 250, 0.12));
  border: 1px solid var(--border);
  margin-bottom: 40px;
}

.cta h2 {
  margin-bottom: 12px;
}

.cta > p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 20px;
}

.mail {
  display: inline-block;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: linear-gradient(135deg, var(--ice-bright), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.phone {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 0.95rem;
}

.phone a {
  color: var(--text-muted);
  text-decoration: none;
}

.phone a:hover {
  color: var(--ice);
}

.social {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.social a {
  color: var(--cyan);
  text-decoration: none;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.tech-tag {
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.75rem;
  background: rgba(15, 28, 52, 0.22);
  border: 1px solid var(--border);
  color: var(--ice);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 40px 0 20px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  background: linear-gradient(90deg, var(--ice), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.under-construction {
  text-align: center;
  padding: 72px 0 120px;
}

.under-construction h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin-bottom: 12px;
}

.under-construction .badge {
  margin-bottom: 20px;
}

.project-page {
  padding: 24px 0 80px;
}

.project-page h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: 12px;
}

.project-list {
  list-style: none;
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 32px 0 0;
  padding: 0;
}

.project-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-item h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.project-item p {
  margin: 0;
  color: var(--text-muted);
}

.project-item.is-soon {
  opacity: 0.55;
  pointer-events: none;
}

a.project-item:hover {
  transform: translateY(-4px);
}

@media (max-width: 900px) {
  .reel-grid,
  .about-grid,
  .reel.featured,
  .site-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .site-footer {
    gap: 0.4rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    border-radius: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    padding: 12px;
    flex-direction: column;
    background: rgba(18, 32, 58, 0.96);
    border: 1px solid var(--border);
    border-radius: 16px;
  }

  body.nav-open .site-nav {
    display: flex;
  }
}
