:root {
  --bg: #090b10;
  --surface: rgba(255,255,255,.055);
  --surface-strong: rgba(255,255,255,.085);
  --text: #f5f7fb;
  --muted: #a7afbd;
  --line: rgba(255,255,255,.12);
  --accent: #d8ff6a;
  --accent-soft: rgba(216,255,106,.14);
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 30px 80px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(124,105,255,.16), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(216,255,106,.10), transparent 28%),
    linear-gradient(180deg, #090b10 0%, #0d1017 46%, #090b10 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

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

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

nav {
  position: sticky;
  top: 0;
  z-index: 15;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(9,11,16,.86), rgba(9,11,16,.58));
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 760;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover { color: var(--text); }

.mini-cta {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text) !important;
  background: rgba(255,255,255,.035);
  transition: .2s ease;
}

.mini-cta:hover {
  background: var(--surface-strong);
  transform: translateY(-1px);
}

.hero {
  padding: 86px 0 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(216,255,106,.22);
  background: var(--accent-soft);
  color: #eaffaa;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11px;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

h1 {
  max-width: none;
  margin: 28px 0 24px;
  font-size: clamp(50px, 7.1vw, 94px);
  line-height: .94;
  letter-spacing: -.065em;
  font-weight: 790;
}

h1 em {
  color: var(--muted);
  font-style: normal;
  font-weight: 580;
}

.hero-first-line,
.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-copy {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 48px;
  align-items: end;
  margin-top: 32px;
}

.hero-copy p {
  max-width: 780px;
  margin: 0;
  color: #c4cad4;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.48;
  letter-spacing: -.02em;
}

.hero-summary {
  display: grid;
  gap: 16px;
}

.hero-copy .hero-subcopy {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.65;
  letter-spacing: -.01em;
}

.hero-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 760;
  transition: .2s ease;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #11150a;
  border-color: transparent;
}

.button.secondary { background: rgba(255,255,255,.035); }

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.24);
}

.showreel {
  position: relative;
  margin-top: 68px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: #121621;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 8.5;
  cursor: pointer;
  isolation: isolate;
}

.showreel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.05);
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}

.showreel:hover img { transform: scale(1.025); }

.showreel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(4,6,10,.78) 100%),
    linear-gradient(90deg, rgba(4,6,10,.22), transparent 55%);
  z-index: 1;
}

.showreel-meta {
  position: absolute;
  inset: auto 28px 26px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.showreel-meta h2 {
  margin: 0 0 5px;
  font-size: clamp(25px, 3vw, 42px);
  letter-spacing: -.04em;
}

.showreel-meta p {
  margin: 0;
  color: #d2d6df;
  font-size: 14px;
}

.play {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245,247,251,.94);
  color: #090b10;
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}

.play svg { margin-left: 4px; }

section { padding: 92px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 38px;
}

.kicker {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(38px, 5.5vw, 70px);
  line-height: 1;
  letter-spacing: -.055em;
}

.section-head > p {
  margin: 0 0 6px auto;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.project {
  grid-column: span 6;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.project:nth-child(3) { grid-column: span 7; }
.project:nth-child(4) { grid-column: span 5; }
.project.featured { grid-column: span 12; }

.project:hover {
  transform: translateY(-4px);
  border-color: rgba(216,255,106,.28);
  background: var(--surface-strong);
}

.thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  background: #151923;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .3s ease;
}

.project:hover .thumb img {
  transform: scale(1.035);
  filter: saturate(1.06);
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,7,11,.44));
}

.thumb .small-play {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245,247,251,.93);
  color: #090b10;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

.project-body { padding: 24px 24px 26px; }

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 780;
}

.project-topline span:last-child { color: #d7dbe3; }

.project h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.project p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.62;
  font-size: 15px;
}

.role {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #d6dae2;
  font-size: 13px;
  line-height: 1.55;
}

.role strong {
  color: var(--accent);
  font-weight: 800;
}

.capabilities {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.022);
}

.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: start;
}

.cap-intro h2 {
  margin: 0 0 22px;
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -.055em;
  line-height: 1;
}

.cap-intro p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.cap-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.cap-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cap-item span:first-child {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 800;
}

.cap-item span:last-child {
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: -.02em;
}

.experience {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 70px;
  align-items: start;
}

.experience h2 {
  position: sticky;
  top: 112px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -.055em;
}

.experience-copy {
  display: grid;
  gap: 28px;
}

.experience-copy p {
  margin: 0;
  color: #c4cad4;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.62;
  letter-spacing: -.015em;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
}

.proof span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d8dce4;
  background: rgba(255,255,255,.032);
  font-size: 13px;
}

.contact {
  padding-top: 40px;
  padding-bottom: 76px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 74px);
  border: 1px solid rgba(216,255,106,.22);
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 15%, rgba(216,255,106,.16), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
}

.contact-card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -110px;
  bottom: -170px;
  border: 1px solid rgba(216,255,106,.18);
  border-radius: 50%;
}

.contact-card h2 {
  position: relative;
  margin: 0;
  max-width: 850px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .98;
  letter-spacing: -.06em;
}

.contact-card p {
  position: relative;
  max-width: 670px;
  margin: 24px 0 0;
  color: #c5cad3;
  font-size: 18px;
  line-height: 1.65;
}

.contact-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

footer {
  padding: 0 0 36px;
  color: #747d8d;
  font-size: 12px;
}

footer a { transition: color .2s ease; }
footer a:hover { color: var(--text); }

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3,4,7,.88);
  backdrop-filter: blur(14px);
}

.modal.open { display: flex; }

.modal-inner {
  width: min(1120px, 100%);
  position: relative;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: #000;
  box-shadow: var(--shadow);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.close {
  position: absolute;
  top: -54px;
  right: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: white;
  cursor: pointer;
  font-size: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero-copy,
  .section-head,
  .cap-grid,
  .experience {
    grid-template-columns: 1fr;
  }

  .hero-actions { justify-content: flex-start; }
  .section-head > p { margin-left: 0; }
  .project,
  .project:nth-child(3),
  .project:nth-child(4),
  .project.featured { grid-column: span 12; }
  .experience h2 { position: static; }
  .showreel { aspect-ratio: 16/10; }
}

@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 24px), var(--max)); }
  .nav-links a:not(.mini-cta) { display: none; }
  .hero { padding-top: 58px; }
  h1 { font-size: clamp(46px, 14vw, 70px); }

  .hero-first-line,
  .hero-line {
    white-space: normal;
  }
  .hero-copy { gap: 28px; }
  .showreel { margin-top: 44px; border-radius: 20px; aspect-ratio: 4/3; }
  .showreel-meta { inset: auto 18px 18px; }
  .showreel-meta p { display: none; }
  .play { width: 56px; height: 56px; }
  section { padding: 68px 0; }
  .section-head { gap: 18px; }
  .project-body { padding: 20px; }
  .contact-card { border-radius: 24px; }
  .footer-row { flex-direction: column; }
}

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