@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0a0c;
  --surface: #121216;
  --surface-light: #19191f;
  --text: #f5f4f0;
  --muted: #9b9aa3;
  --line: rgba(255, 255, 255, 0.12);
  --purple: #9d78ff;
  --coral: #ff6f61;
  --lime: #c7ff66;
  --max-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--purple); color: #0a0a0c; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: -4rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: var(--text);
  color: var(--bg);
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.35rem max(2rem, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
}
.site-header.scrolled {
  padding-top: .9rem;
  padding-bottom: .9rem;
  background: rgba(10, 10, 12, .82);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  width: fit-content;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.06em;
}
.brand span { color: var(--coral); }
.nav { display: flex; gap: 2.25rem; }
.nav a, .header-cta {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav a { color: var(--muted); transition: color .2s ease; }
.nav a:hover, .nav a:focus-visible { color: var(--text); }
.header-cta { justify-self: end; }
.header-cta span { color: var(--coral); }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem max(2rem, calc((100vw - var(--max-width)) / 2)) 5rem;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .035;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--purple);
  font: 600 .7rem/1 "DM Sans", sans-serif;
  letter-spacing: .19em;
}
.hero-pfp {
  position: relative;
  width: clamp(250px, 30vw, 400px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: clamp(8px, 1.2vw, 16px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(157,120,255,.8), rgba(255,111,97,.7));
  box-shadow: 0 0 90px rgba(157,120,255,.18), 0 28px 80px rgba(0,0,0,.45);
}
.hero-pfp::after {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
}
.hero-pfp img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.hero-content > .eyebrow { margin-bottom: 1.8rem; text-align: center; }
.hero-actions {
  display: flex;
  justify-content: center;
  gap: .8rem;
  margin-top: 2.15rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 52px;
  padding: .8rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 600;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-3px); }
.button-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.button-primary:hover, .button-primary:focus-visible { background: var(--lime); border-color: var(--lime); }
.button-secondary:hover, .button-secondary:focus-visible { background: var(--surface-light); }
.hero-glow, .contact-glow { position: absolute; border-radius: 50%; filter: blur(4px); pointer-events: none; }
.hero-glow-one {
  width: 480px; height: 480px; right: -180px; top: 8%;
  background: radial-gradient(circle, rgba(157,120,255,.28), transparent 68%);
  animation: drift 9s ease-in-out infinite;
}
.hero-glow-two {
  width: 380px; height: 380px; left: 20%; bottom: -230px;
  background: radial-gradient(circle, rgba(255,111,97,.18), transparent 68%);
}

.section { width: min(calc(100% - 4rem), var(--max-width)); margin: 0 auto; padding: 8rem 0; }
.section-label {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 4.5rem;
  color: var(--muted);
  font-size: .67rem;
  letter-spacing: .18em;
}
.section-label span { color: var(--coral); }
.section-label::after { content: ""; width: 60px; height: 1px; background: var(--line); }
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8vw; align-items: start; }
.about h2, .section-heading h2, .contact h2 {
  margin: 0;
  font: 500 clamp(3rem, 7vw, 6.2rem)/.94 "Space Grotesk", sans-serif;
  letter-spacing: -.065em;
}
.about h2 em, .contact h2 em { color: var(--purple); font-style: normal; }
.about-copy { padding-top: .6rem; font-size: 1.1rem; }
.about-copy p { margin: 0 0 1.5rem; }
.about-copy .muted { color: var(--muted); font-size: .95rem; }
.social-row { margin-top: 6rem; border-top: 1px solid var(--line); }
.social-row a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease, color .25s ease;
}
.social-row a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--text);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .25s ease;
}
.social-row a:hover, .social-row a:focus-visible { padding-left: 1.25rem; padding-right: 1.25rem; color: var(--bg); }
.social-row a:hover::before, .social-row a:focus-visible::before { transform: scaleY(1); }
.social-row span { font: 500 1.35rem "Space Grotesk", sans-serif; }
.social-row small { color: var(--muted); font-size: .62rem; letter-spacing: .15em; }
.social-row b { font-size: 1.2rem; font-weight: 400; }

.work { width: 100%; max-width: none; padding: 5.5rem max(2rem, calc((100vw - var(--max-width)) / 2)); background: #0d0d10; }
.work .section-label { width: min(100%, 900px); margin: 0 auto 2rem; }
.section-heading { display: block; width: min(100%, 900px); margin: 0 auto 1.75rem; }
.work .section-heading h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.section-heading p { margin: 0 0 .7rem; color: var(--muted); }
.project-grid { width: min(100%, 900px); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
.project-card-large { grid-column: 1 / -1; }
.project-card { border-radius: 4px; background: var(--surface); overflow: hidden; }
.project-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.project-card-large .project-visual { aspect-ratio: 16 / 9; max-height: 680px; }
.visual-one { background: #17131f; }
.visual-two { background: linear-gradient(135deg, #ff806b, #9c312f); }
.visual-three { background: radial-gradient(circle at 30% 25%, #c4a6ff, transparent 22%), linear-gradient(150deg, #181623, #6243ba); }
.project-number { position: absolute; z-index: 2; top: 1.2rem; left: 1.2rem; padding: .4rem .55rem; border-radius: 99px; background: rgba(10,10,12,.55); backdrop-filter: blur(8px); font: 600 .7rem "Space Grotesk"; letter-spacing: .12em; }
.video-thumbnail { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.placeholder-note { position: absolute; right: 1.2rem; bottom: 1.2rem; padding: .45rem .65rem; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; color: rgba(255,255,255,.68); font-size: .52rem; letter-spacing: .14em; }
.play-mark {
  z-index: 2; display: grid; place-items: center; width: 82px; height: 82px; padding-left: .3rem;
  border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(10,10,12,.25); backdrop-filter: blur(10px);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s ease;
}
.shape { display: block; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.shape-ring { width: 40%; aspect-ratio: 1; border: clamp(20px, 4vw, 50px) solid rgba(20,14,17,.85); border-radius: 50%; box-shadow: 16px 18px 0 rgba(255,255,255,.12); }
.shape-square { width: 38%; aspect-ratio: 1; background: var(--lime); transform: rotate(12deg); box-shadow: -24px 24px 0 #ff6f61; }
.project-info { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.15rem 1.25rem 1.25rem; }
.project-info p { margin: 0 0 .45rem; color: var(--purple); font-size: .58rem; font-weight: 600; letter-spacing: .16em; }
.project-info h3 { margin: 0; font: 500 clamp(1.1rem, 2vw, 1.5rem) "Space Grotesk", sans-serif; letter-spacing: -.035em; }
.round-arrow { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; transition: background .25s ease, color .25s ease, transform .25s ease; }
.project-card a:hover .play-mark, .project-card a:focus-visible .play-mark { transform: scale(1.12); background: rgba(10,10,12,.55); }
.project-card a:hover .video-thumbnail, .project-card a:focus-visible .video-thumbnail { transform: scale(1.025); filter: brightness(.82); }
.project-card a:hover .shape, .project-card a:focus-visible .shape { transform: rotate(-8deg) scale(1.06); }
.project-card a:hover .shape-square, .project-card a:focus-visible .shape-square { transform: rotate(22deg) scale(1.06); }
.project-card a:hover .round-arrow, .project-card a:focus-visible .round-arrow { background: var(--text); color: var(--bg); transform: rotate(45deg); }

.contact { position: relative; min-height: 460px; padding: 5rem 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden; }
.contact .eyebrow { margin-bottom: 1.1rem; color: var(--purple); }
.contact h2 { max-width: 750px; font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: .98; }
.contact h2 em { color: var(--text); font-style: normal; -webkit-text-stroke: 0; }
.contact-copy { width: min(100%, 600px); margin: 1.3rem 0 1.35rem; color: var(--muted); font-size: 1rem; font-style: italic; }
.business-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 54px;
  padding: .95rem 1.6rem;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: .92rem;
  font-weight: 600;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.business-button:hover, .business-button:focus-visible { transform: translateY(-3px); background: var(--lime); border-color: var(--lime); }
.business-button span { color: var(--coral); font-size: 1.15rem; }
.contact-glow { width: 600px; height: 600px; background: radial-gradient(circle, rgba(157,120,255,.15), transparent 65%); }

footer {
  width: min(calc(100% - 4rem), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
}
footer p { margin: 0; }
footer > a:last-child { justify-self: end; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.js .reveal.reveal-delay-1 { transition-delay: 70ms; }
.js .reveal.reveal-delay-2 { transition-delay: 140ms; }
.js .reveal.reveal-delay-3 { transition-delay: 210ms; }
.js .reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 25px); } }
@media (min-width: 761px) {
  .hero { min-height: clamp(680px, 88svh, 820px); padding-top: 7rem; padding-bottom: 3rem; }
  .hero-content { transform: translateY(-1rem); }
  .hero-content > .eyebrow { font-size: .8rem; letter-spacing: .13em; }
  .hero-glow-one {
    width: 560px;
    height: 560px;
    right: calc(50% - 390px);
    top: 11%;
    filter: blur(18px);
    background: radial-gradient(circle, rgba(157,120,255,.2), transparent 72%);
  }
  .hero-glow-two {
    width: 480px;
    height: 480px;
    left: calc(50% - 370px);
    bottom: -2%;
    filter: blur(20px);
    background: radial-gradient(circle, rgba(255,111,97,.13), transparent 72%);
  }
}

@media (max-width: 760px) {
  html, body {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    overflow-x: clip;
  }
  main {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    overflow-x: clip;
  }
  .site-header {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    grid-template-columns: 1fr auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .nav { display: none; }
  .header-cta { font-size: .67rem; }
  .hero {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .hero-content { width: 100%; max-width: 100%; margin-inline: auto; }
  .hero-pfp { width: min(66vw, 330px); }
  .hero-actions {
    width: fit-content;
    margin-inline: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
  }
  .section { width: calc(100% - 2.5rem); padding: 6rem 0; }
  .section-label { margin-bottom: 3rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .social-row { margin-top: 4rem; }
  .social-row a { grid-template-columns: 1fr auto; }
  .social-row small { display: none; }
  .work { width: 100%; padding: 4.5rem 1.25rem; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 1rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-large { grid-column: auto; }
  .project-card-large .project-visual, .project-visual { aspect-ratio: 16 / 9; }
  .project-info { padding: 1.2rem; }
  .placeholder-note { right: .8rem; bottom: .8rem; }
  .contact { min-height: 0; padding: 4rem 0; overflow: visible; }
  .contact-glow {
    display: block;
    width: 130vw;
    height: 130vw;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    filter: blur(18px);
    background: radial-gradient(circle, rgba(157,120,255,.15), transparent 72%);
  }
  .contact h2 { font-size: clamp(2.35rem, 11vw, 3.4rem); line-height: 1; }
  .contact-copy { margin: 1.1rem 0 1.25rem; font-size: .95rem; }
  footer { width: calc(100% - 2.5rem); grid-template-columns: 1fr 1fr; }
  footer p { display: none; }
}

@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; }
}
