:root {
  --bg: #f2f2f2;
  --fg: #101012;
  --muted: #6a6a72;
  --accent: #ff2a1f;
  --glow: #5cecff;
  --dark: #0a0a0b;
  --font: "Archivo", "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--dark); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--dark);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

/* Progress bar */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--accent); z-index: 90;
  transition: width 0.1s linear;
}

/* NAV */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  color: var(--fg);
  transition: color 0.35s, background 0.35s;
}
@media (min-width: 768px) { .nav { padding: 1.25rem 2rem; } }
.nav.dark { color: #fff; }

.nav-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.1rem; font-weight: 900; letter-spacing: -0.05em;
}
.nav-mark {
  display: grid; place-items: center; width: 1.85rem; height: 1.85rem;
  border-radius: 0.35rem; background: var(--accent); color: var(--fg);
}
.nav-mark svg { width: 0.9rem; height: 0.9rem; }

.nav-links { display: none; gap: 2rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.7; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

.nav-cta {
  display: none; padding: 0.55rem 1.1rem; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-size: 0.8rem; font-weight: 600;
  transition: transform 0.15s, background 0.3s, color 0.3s;
}
.nav.dark .nav-cta { background: #fff; color: var(--dark); }
@media (min-width: 768px) { .nav-cta { display: inline-flex; } }
.nav-cta:active { transform: scale(0.96); }

.nav-menu {
  display: grid; gap: 5px; width: 2.5rem; height: 2.5rem; place-content: center;
  border: none; background: transparent; color: inherit;
}
@media (min-width: 768px) { .nav-menu { display: none; } }
.nav-menu span {
  display: block; width: 1.25rem; height: 2px; background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav-menu.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-menu.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column; justify-content: center; gap: 0.5rem;
  padding: 2rem; background: var(--dark); color: #fff;
  transform: translateY(-100%); transition: transform 0.45s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-size: 2.5rem; font-weight: 900; letter-spacing: -0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.1); padding: 0.75rem 0;
}
.mobile-cta {
  margin-top: 1.5rem; display: inline-flex !important; align-self: flex-start;
  padding: 0.85rem 1.5rem; border-radius: 999px; background: var(--accent);
  color: #fff !important; font-size: 0.9rem !important; font-weight: 600 !important;
  border: none !important;
}

/* SLIDES CONTAINER */
.slides { position: relative; }

.slide {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.5rem 1.25rem 3rem;
  overflow: hidden;
}
@media (min-width: 768px) { .slide { padding: 6rem 3rem 4rem; } }

/* Common type */
.eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}
.eyebrow.accent { color: var(--accent); }
.eyebrow.glow { color: var(--glow); }

h1, h2 {
  margin: 0.75rem 0 0;
  font-weight: 900; letter-spacing: -0.055em; line-height: 0.95;
}
h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5.5vw, 3.75rem); }

.lede {
  margin: 1.25rem 0 0; max-width: 28rem;
  font-size: 1rem; line-height: 1.65;
  color: color-mix(in srgb, currentColor 65%, transparent);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.85rem; padding: 0 1.4rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600; border: none;
  transition: transform 0.15s, background 0.25s;
}
.btn:active { transform: scale(0.96); }
.btn.primary { background: var(--fg); color: var(--bg); }
.btn.ghost { background: transparent; color: inherit; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); }

/* ========== HERO ========== */
.hero {
  background: var(--bg); color: var(--fg);
  justify-content: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.star {
  position: relative; width: min(42vw, 280px); height: min(42vw, 280px);
  color: #1a1a1c; cursor: pointer; pointer-events: auto;
  transition: transform 0.6s var(--ease);
}
.star:hover { transform: scale(1.06) rotate(8deg); }
.star.burst { animation: starPulse 0.6s var(--ease); }
@keyframes starPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.25) rotate(15deg); }
  100% { transform: scale(1) rotate(0); }
}
.star-svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
  transition: filter 0.4s;
}
.star.burst .star-svg { filter: drop-shadow(0 0 30px rgba(255,42,31,0.5)); }

.star-burst {
  position: absolute; inset: -20%;
  background: radial-gradient(circle, rgba(255,42,31,0.35) 0%, transparent 70%);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.star.burst .star-burst { opacity: 1; animation: burstFade 0.8s ease-out; }
@keyframes burstFade {
  0% { opacity: 0.8; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(1.8); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 36rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hint {
  margin: 1.5rem 0 0; font-size: 0.75rem; color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-stat {
  position: absolute; right: 1.25rem; top: 40%;
  text-align: right; z-index: 2;
}
@media (min-width: 768px) { .hero-stat { right: 3rem; } }
.hero-stat .num {
  display: block; font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900; letter-spacing: -0.06em; line-height: 1;
}
.hero-stat .label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}

.mega {
  position: absolute; bottom: -0.15em; left: 0; right: 0;
  font-size: clamp(5rem, 28vw, 20rem); font-weight: 900;
  letter-spacing: -0.07em; line-height: 0.75;
  color: var(--fg); opacity: 0.07; text-align: center;
  pointer-events: none; user-select: none;
}

/* ========== STUDIO ========== */
.studio {
  background: var(--bg); color: var(--fg);
  display: grid; gap: 3rem; align-items: center;
}
@media (min-width: 900px) {
  .studio { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}

.photo-stack { position: relative; }
.ps-main {
  margin: 0; border-radius: 1.25rem; overflow: hidden;
  aspect-ratio: 16/10;
}
.ps-main img { width: 100%; height: 100%; object-fit: cover; }
.ps-a, .ps-b {
  position: absolute; margin: 0; border-radius: 1rem; overflow: hidden;
  width: 38%; aspect-ratio: 3/4;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.ps-a { bottom: -8%; left: -4%; }
.ps-b { top: -6%; right: -2%; }
.ps-a img, .ps-b img { width: 100%; height: 100%; object-fit: cover; }

.stats-row {
  display: flex; gap: 2.5rem; margin-top: 2.5rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.08);
}
.stats-row strong {
  display: block; font-size: 2rem; font-weight: 900; letter-spacing: -0.05em;
}
.stats-row span {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}

/* ========== BEAM ========== */
.beam {
  padding: 0; justify-content: flex-end; color: #fff;
  min-height: 85svh;
}
.beam-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.beam-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.85) 0%, rgba(10,10,11,0.2) 55%, transparent 100%);
}
.beam-copy {
  position: relative; z-index: 2; padding: 3rem 1.25rem;
}
@media (min-width: 768px) { .beam-copy { padding: 4rem 3rem; } }
.beam-copy .eyebrow { color: rgba(255,255,255,0.6); }
.beam-copy p:last-child {
  margin: 1rem 0 0; font-size: 0.9rem; color: rgba(255,255,255,0.55);
}

.floating-chain {
  position: absolute; top: 20%; left: -5%; right: -5%;
  display: flex; gap: 0.5rem; z-index: 1;
  transform: rotate(-8deg); opacity: 0.35;
  pointer-events: none;
}
.floating-chain span {
  flex: 1; height: 14px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
}

/* ========== SERVICES ========== */
.services {
  background: var(--dark); color: #fff;
  display: grid; gap: 3rem;
}
@media (min-width: 900px) {
  .services { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
}
.svc-intro figure {
  margin: 2rem 0 0; border-radius: 1.25rem; overflow: hidden;
  aspect-ratio: 16/10;
}
.svc-intro img { width: 100%; height: 100%; object-fit: cover; }

.svc-list { display: flex; flex-direction: column; }
.svc {
  display: grid; grid-template-columns: 2.5rem 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 1rem; align-items: center;
  width: 100%; padding: 1.35rem 0;
  border: none; border-top: 1px solid rgba(255,255,255,0.1);
  background: transparent; color: #fff; text-align: left;
  font-family: inherit;
}
.svc:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.svc .n { font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.svc .t {
  font-size: clamp(1.4rem, 3.5vw, 2.25rem);
  font-weight: 900; letter-spacing: -0.05em;
}
.svc .plus {
  font-size: 1.4rem; transition: transform 0.35s var(--ease);
  grid-column: 3; grid-row: 1;
}
.svc.open .plus { transform: rotate(45deg); }
.svc .body {
  grid-column: 2 / -1; grid-row: 2;
  max-height: 0; overflow: hidden;
  font-size: 0.9rem; line-height: 1.6;
  color: rgba(255,255,255,0.55);
  transition: max-height 0.4s var(--ease), padding 0.4s;
  padding: 0;
}
.svc.open .body { max-height: 6rem; padding-bottom: 0.5rem; }

/* ========== WORK ========== */
.work {
  background: var(--dark); color: #fff;
  justify-content: flex-start; gap: 1.5rem;
}
.work-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.work-controls { display: flex; gap: 0.5rem; }
.work-controls button {
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2); background: transparent;
  color: #fff; font-size: 1.1rem;
  transition: background 0.2s, transform 0.15s;
}
.work-controls button:last-child { background: #fff; color: var(--dark); border-color: transparent; }
.work-controls button:active { transform: scale(0.94); }

.work-stage { overflow: hidden; margin: 0 -1.25rem; }
@media (min-width: 768px) { .work-stage { margin: 0 -3rem; } }
.work-track {
  display: flex; gap: 1.25rem;
  padding: 0 1.25rem;
  transition: transform 0.75s var(--ease);
  will-change: transform;
}
@media (min-width: 768px) { .work-track { padding: 0 3rem; gap: 1.5rem; } }

.card {
  flex-shrink: 0; width: min(78vw, 34rem);
  border-radius: 1.25rem; overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.card img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card.active img { transform: scale(1.04); }
.card-info { padding: 1.1rem 0.25rem 0; }
.card-info h3 {
  margin: 0; font-size: 1.4rem; font-weight: 900; letter-spacing: -0.04em;
}
.card-info p {
  margin: 0.25rem 0 0; font-size: 0.85rem; color: rgba(255,255,255,0.5);
}

.work-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
}
.work-foot .note {
  margin: 0; max-width: 28rem; font-size: 0.9rem; line-height: 1.55;
  color: rgba(255,255,255,0.55);
}
.counter { font-weight: 900; letter-spacing: -0.04em; font-size: 1.1rem; }
.counter .dim { color: rgba(255,255,255,0.3); }

.work-bar {
  height: 1px; background: rgba(255,255,255,0.1); margin-top: 0.5rem;
}
.work-bar .fill {
  height: 100%; width: 0%; background: var(--accent);
  transition: width 4.5s linear;
}
.work-bar .fill.run { width: 100%; }

/* ========== CONTACT ========== */
.contact {
  background: var(--dark); color: #fff;
  background-image: radial-gradient(ellipse at 70% 30%, rgba(255,42,31,0.12), transparent 55%);
}
.contact-inner {
  display: grid; gap: 2.5rem; align-items: start;
}
@media (min-width: 800px) {
  .contact-inner { grid-template-columns: 1.2fr 0.8fr; }
}

.contact-tag { display: flex; justify-content: flex-start; }
@media (min-width: 800px) { .contact-tag { justify-content: flex-end; } }
.tag {
  width: 12rem; padding: 1.25rem; border-radius: 1.25rem;
  background: var(--accent); color: #fff;
  display: flex; flex-direction: column; gap: 0.15rem;
  box-shadow: 0 25px 60px rgba(255,42,31,0.35);
  transform: rotate(3deg);
}
.tag svg { width: 1.75rem; height: 1.75rem; margin-bottom: 0.75rem; }
.tag strong { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.05em; }
.tag span { font-size: 0.75rem; opacity: 0.75; }

.contact-form {
  margin-top: 3rem; display: grid; gap: 1rem;
}
@media (min-width: 700px) { .contact-form { grid-template-columns: 1fr 1fr; } }
.contact-form label {
  display: grid; gap: 0.4rem; font-size: 0.8rem; font-weight: 600;
}
.contact-form label.full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
  height: 3rem; padding: 0 1.15rem;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 999px;
  background: rgba(255,255,255,0.04); color: #fff;
  font-family: inherit; font-size: 0.95rem; outline: none;
  transition: border-color 0.2s;
}
.contact-form textarea {
  height: auto; padding: 1rem 1.15rem; border-radius: 1.25rem; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.3); }
.contact-form .btn { grid-column: 1 / -1; width: fit-content; background: #fff; color: var(--dark); }
.success {
  grid-column: 1 / -1; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.04em;
}

/* DOTS */
.slide-dots {
  position: fixed; right: 1rem; top: 50%; transform: translateY(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 0.6rem;
}
@media (max-width: 700px) { .slide-dots { display: none; } }
.slide-dots button {
  width: 8px; height: 8px; border-radius: 999px; border: none;
  background: rgba(255,255,255,0.25); padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.slide-dots button.active {
  background: var(--accent); transform: scale(1.35);
}

/* Reveal animations */
.slide .hero-content,
.slide .studio-right,
.slide .beam-copy,
.slide .svc-intro,
.slide .work-head,
.slide .contact-copy {
  opacity: 0; transform: translateY(2rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.slide.in-view .hero-content,
.slide.in-view .studio-right,
.slide.in-view .beam-copy,
.slide.in-view .svc-intro,
.slide.in-view .work-head,
.slide.in-view .contact-copy {
  opacity: 1; transform: translateY(0);
}
