:root {
  color-scheme: dark;
  --ink: #05050a;
  --panel: rgba(17, 18, 30, 0.72);
  --text: #f6f7ff;
  --muted: #9b9daf;
  --blue: #3557ff;
  --cyan: #00e5ff;
  --line: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 8%, rgba(48, 74, 255, 0.16), transparent 25rem),
    radial-gradient(circle at 12% 45%, rgba(0, 229, 255, 0.055), transparent 28rem),
    var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.grain {
  position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .06;
  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='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; width: 420px; height: 420px; left: 50%; top: 50%; z-index: -1;
  border-radius: 50%; pointer-events: none; filter: blur(16px); opacity: .12;
  background: radial-gradient(circle, var(--blue), transparent 68%);
  transform: translate(-50%, -50%);
}

.nav { height: 86px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 760; letter-spacing: -.035em; font-size: 1.12rem; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.nav-contact { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #dadbe7; display: flex; gap: 14px; align-items: center; }
.nav-contact span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; transition: .3s; }
.nav-contact:hover span { background: var(--cyan); color: #001215; border-color: var(--cyan); transform: rotate(45deg); }

.hero { min-height: calc(100svh - 86px); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; position: relative; padding: 40px 0 100px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .7rem; font-weight: 740; letter-spacing: .18em; color: #b4b6c8; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.hero h1 { margin: 26px 0 24px; max-width: 720px; font-size: clamp(4rem, 7.8vw, 7.3rem); line-height: .86; letter-spacing: -.075em; font-weight: 740; }
.hero h1 em, .manifesto em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--cyan); }
.hero-copy > p { max-width: 530px; margin: 0 0 36px; color: #aaacbb; font-size: 1.05rem; line-height: 1.7; }
.primary-cta { width: max-content; display: flex; align-items: center; gap: 42px; padding: 7px 7px 7px 24px; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.03); }
.primary-cta span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: white; transition: transform .3s; }
.primary-cta:hover span { transform: translateY(3px); }

.hero-reel { height: 650px; position: relative; display: grid; place-items: center; perspective: 1200px; }
.phone-shell { position: relative; z-index: 2; width: 282px; aspect-ratio: 9/16; padding: 7px; border-radius: 40px; background: linear-gradient(145deg, rgba(255,255,255,.42), rgba(255,255,255,.06)); box-shadow: 0 50px 100px rgba(0,0,0,.6), 0 0 80px rgba(53,87,255,.24); transform: rotate(4deg) rotateY(-8deg); transition: transform .5s ease; overflow: hidden; }
.hero-reel:hover .phone-shell { transform: rotate(1deg) rotateY(0deg) translateY(-8px); }
.phone-shell video { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: #0a0a0e; }
.phone-shine { position: absolute; inset: 7px; border-radius: 34px; pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,.12), transparent 30%); }
.reel-orbit { position: absolute; border: 1px solid rgba(85,113,255,.22); border-radius: 50%; transform: rotate(-17deg); }
.orbit-one { width: 560px; height: 420px; animation: orbit 12s linear infinite; }
.orbit-two { width: 430px; height: 650px; border-color: rgba(0,229,255,.1); animation: orbit 17s linear infinite reverse; }
.floating-chip { position: absolute; z-index: 3; backdrop-filter: blur(16px); background: rgba(15,17,28,.72); border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; font-size: .65rem; font-weight: 750; letter-spacing: .15em; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.chip-top { top: 21%; left: 0; animation: float 4s ease-in-out infinite; }
.chip-bottom { bottom: 17%; right: -10px; animation: float 4.5s ease-in-out infinite reverse; }
.chip-bottom span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-right: 8px; }
.hero-foot { position: absolute; bottom: 35px; left: 0; right: 0; display: flex; align-items: center; gap: 18px; color: #696b7b; font-size: .61rem; letter-spacing: .15em; font-weight: 680; }
.hero-foot i { width: 3px; height: 3px; background: #4a4c58; border-radius: 50%; }

.work { padding: 140px 0 120px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 66px; }
.section-heading h2 { margin: 18px 0 0; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: .96; letter-spacing: -.06em; }
.section-heading > p { color: var(--muted); font-size: .9rem; line-height: 1.7; margin: 0 0 5px; text-align: right; }

.carousel { position: relative; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 20px; }
.carousel-stage { height: 610px; position: relative; perspective: 1500px; transform-style: preserve-3d; overflow: hidden; touch-action: pan-y; }
.project-card { position: absolute; left: 50%; top: 50%; width: 390px; height: 540px; border-radius: 28px; overflow: hidden; background: #11121c; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 35px 90px rgba(0,0,0,.56); cursor: pointer; transform-style: preserve-3d; transition: transform .72s cubic-bezier(.2,.8,.2,1), filter .72s, opacity .72s; outline: none; }
.project-card:focus-visible { box-shadow: 0 0 0 3px var(--cyan), 0 35px 90px rgba(0,0,0,.56); }
.project-card img, .card-preview { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.project-card:hover img, .project-card:hover .card-preview { transform: scale(1.045); }
.card-vignette { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(3,4,12,.05) 20%, rgba(3,4,12,.15) 45%, rgba(3,4,12,.95) 100%); }
.card-number { position: absolute; right: 20px; top: 18px; min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(10px); font-size: .68rem; font-weight: 700; }
.card-copy { position: absolute; left: 28px; right: 28px; bottom: 26px; }
.card-copy > span { color: #bfc2d2; font-size: .6rem; letter-spacing: .16em; font-weight: 730; }
.card-copy h3 { font-size: 2.35rem; line-height: .91; letter-spacing: -.045em; margin: 13px 0 22px; }
.card-open { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); text-transform: uppercase; letter-spacing: .12em; font-size: .65rem; font-weight: 720; }
.card-open b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #051014; background: var(--cyan); }
.carousel-arrow { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: white; cursor: pointer; transition: .25s; position: relative; z-index: 5; }
.carousel-arrow:hover { color: #001014; background: var(--cyan); border-color: var(--cyan); transform: scale(1.06); }
.carousel-footer { margin-top: 24px; display: grid; grid-template-columns: 90px 1fr auto; gap: 24px; align-items: center; }
.project-count { display: flex; align-items: baseline; gap: 5px; }
.project-count strong { font-size: 1.55rem; }
.project-count span { color: #6e7080; font-size: .8rem; }
.progress-track { height: 1px; background: var(--line); }
.progress-fill { width: 33.333%; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: transform .6s ease; transform-origin: left; }
.open-active { border: 0; background: transparent; color: white; font-size: .72rem; font-weight: 720; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; display: flex; gap: 15px; }

.manifesto { min-height: 500px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; place-items: center; position: relative; text-align: center; }
.manifesto-mark { position: absolute; width: 280px; opacity: .08; filter: blur(.4px); }
.manifesto-mark img { width: 100%; }
.manifesto p { position: relative; margin: 0; font-size: clamp(2.1rem, 5.2vw, 4.7rem); line-height: 1.08; letter-spacing: -.055em; font-weight: 640; }

.impact { padding: 150px 0; display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: end; }
.impact-intro h2 { margin: 22px 0 28px; font-size: clamp(3.2rem, 6.5vw, 6rem); line-height: .88; letter-spacing: -.07em; }
.impact-intro h2 em { color: var(--cyan); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.impact-intro > p { max-width: 540px; margin: 0; color: #a7a9b8; font-size: 1.04rem; line-height: 1.72; }
.impact-grid { display: grid; gap: 12px; }
.impact-card { position: relative; min-height: 175px; padding: 27px 30px 24px 78px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.027); overflow: hidden; transition: transform .3s, border-color .3s; }
.impact-card:hover { transform: translateX(-7px); border-color: rgba(0,229,255,.35); }
.impact-card.featured { background: linear-gradient(120deg, rgba(53,87,255,.2), rgba(0,229,255,.05)); }
.impact-card > span { position: absolute; left: 26px; top: 30px; color: var(--cyan); font-size: .65rem; letter-spacing: .12em; }
.impact-card h3 { margin: 0 0 12px; font-size: 1.35rem; letter-spacing: -.025em; }
.impact-card p { margin: 0; color: #999baa; line-height: 1.58; font-size: .92rem; }

.final-cta { min-height: 720px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.cta-glow { position: absolute; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(circle, rgba(53,87,255,.27), transparent 67%); filter: blur(15px); }
.final-cta .eyebrow, .final-cta h2, .contact-pill { position: relative; }
.final-cta h2 { font-size: clamp(4.1rem, 10vw, 8.5rem); line-height: .82; letter-spacing: -.075em; margin: 35px 0 50px; }
.contact-pill { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; width: min(570px, 100%); padding: 12px 12px 12px 24px; border-radius: 999px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.19); backdrop-filter: blur(18px); transition: .35s; }
.contact-pill:hover { border-color: rgba(0,229,255,.75); transform: translateY(-3px); }
.contact-label { font-size: .58rem; color: var(--muted); letter-spacing: .18em; }
.contact-number { font-size: 1.25rem; font-weight: 650; letter-spacing: -.015em; }
.contact-pill b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.footer { min-height: 105px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: #737584; font-size: .6rem; letter-spacing: .13em; }
.footer .brand { color: white; font-size: 1rem; letter-spacing: -.03em; }
.footer .brand img { width: 26px; height: 26px; }

.project-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 28px; visibility: hidden; opacity: 0; transition: opacity .45s, visibility .45s; }
.project-modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(1,2,7,.88); backdrop-filter: blur(18px); }
.modal-panel { position: relative; width: min(1120px, 100%); max-height: calc(100svh - 56px); overflow: auto; padding: 34px; border: 1px solid rgba(255,255,255,.16); border-radius: 30px; background: linear-gradient(145deg, rgba(22,24,40,.97), rgba(7,8,14,.98)); box-shadow: 0 50px 150px rgba(0,0,0,.8); transform: translateY(35px) scale(.96); transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.project-modal.is-open .modal-panel { transform: translateY(0) scale(1); }
.modal-close { position: sticky; float: right; top: 0; z-index: 4; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); color: white; background: rgba(3,4,10,.68); cursor: pointer; }
.modal-meta { display: flex; justify-content: space-between; align-items: end; padding-right: 70px; }
.modal-kicker, .modal-duration, .original-frame > span, .ad-frame > span, .modal-detail > span { color: #8d90a3; font-size: .62rem; font-weight: 740; letter-spacing: .16em; }
.modal-meta h2 { margin: 10px 0 0; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.05em; }
.transformation { display: grid; grid-template-columns: 1fr 100px 1fr; align-items: center; margin-top: 32px; }
.original-frame, .ad-frame { position: relative; }
.original-frame > span, .ad-frame > span { position: absolute; left: 18px; top: 18px; z-index: 2; background: rgba(3,4,10,.65); border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; backdrop-filter: blur(10px); color: white; }
.original-frame img { width: 100%; aspect-ratio: 9/16; max-height: 540px; object-fit: cover; border-radius: 20px; filter: saturate(.8) contrast(.98); background: #f5f5f3; }
.original-frame img.is-contain { object-fit: contain; padding: 18px; filter: none; }
.video-wrap { width: 100%; max-height: 540px; aspect-ratio: 9/16; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 25px 70px rgba(24,57,255,.22); }
.video-wrap video { width: 100%; height: 100%; object-fit: contain; }
.transform-arrow { text-align: center; color: var(--cyan); }
.transform-arrow span { display: block; font-size: 2.3rem; }
.transform-arrow small { display: block; margin-top: 6px; font-size: .52rem; letter-spacing: .13em; writing-mode: vertical-rl; margin-inline: auto; color: #6f7180; }
.modal-details { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.modal-detail p { margin: 12px 0 0; max-width: 720px; font-size: 1.02rem; line-height: 1.62; color: #d6d7e2; }
body.modal-open { overflow: hidden; }

@keyframes orbit { to { transform: rotate(343deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-reel { height: 590px; margin-top: 20px; }
  .hero-foot { position: static; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
  .section-heading { align-items: start; }
  .project-card { width: 330px; height: 480px; }
  .carousel-stage { height: 550px; }
  .transformation { grid-template-columns: 1fr 65px 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav { height: 72px; }
  .nav-contact { font-size: 0; }
  .hero { min-height: auto; padding-top: 65px; padding-bottom: 80px; }
  .hero h1 { font-size: clamp(3.55rem, 18vw, 5.2rem); }
  .hero-copy > p { font-size: .98rem; }
  .hero-reel { height: 530px; overflow: hidden; margin-inline: -14px; }
  .phone-shell { width: 245px; border-radius: 34px; }
  .phone-shell video, .phone-shine { border-radius: 28px; }
  .orbit-one { width: 480px; height: 360px; }
  .orbit-two { width: 360px; height: 510px; }
  .chip-top { left: 12px; }
  .chip-bottom { right: 5px; }
  .hero-foot { gap: 10px; font-size: .52rem; }
  .work { padding: 95px 0 90px; }
  .section-heading { display: block; margin-bottom: 34px; }
  .section-heading > p { text-align: left; margin-top: 24px; }
  .carousel { grid-template-columns: 42px 1fr 42px; gap: 2px; margin-inline: -10px; }
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-stage { height: 490px; overflow: visible; }
  .project-card { width: min(280px, 72vw); height: 430px; border-radius: 23px; }
  .card-copy { left: 22px; right: 22px; bottom: 21px; }
  .card-copy h3 { font-size: 1.95rem; }
  .carousel-footer { grid-template-columns: 70px 1fr; }
  .open-active { display: none; }
  .manifesto { min-height: 410px; }
  .manifesto p { font-size: 2.25rem; }
  .impact { padding: 95px 0; grid-template-columns: 1fr; gap: 48px; }
  .impact-card { padding-left: 70px; }
  .final-cta { min-height: 610px; }
  .contact-pill { gap: 12px; padding-left: 17px; }
  .contact-number { font-size: .98rem; }
  .contact-pill b { width: 42px; height: 42px; }
  .footer { padding: 30px 0; flex-wrap: wrap; gap: 22px; }
  .footer > span:nth-child(2) { display: none; }
  .project-modal { padding: 10px; }
  .modal-panel { border-radius: 22px; padding: 20px; max-height: calc(100svh - 20px); }
  .modal-meta { display: block; padding-right: 48px; }
  .modal-duration { display: block; margin-top: 12px; }
  .transformation { grid-template-columns: 1fr; gap: 14px; }
  .original-frame img { aspect-ratio: 16/8; max-height: none; }
  .transform-arrow { display: flex; align-items: center; justify-content: center; gap: 10px; }
  .transform-arrow span { transform: rotate(90deg); }
  .transform-arrow small { writing-mode: initial; margin: 0; }
  .video-wrap { width: min(100%, 310px); margin-inline: auto; max-height: none; }
  .modal-details { grid-template-columns: 1fr; gap: 24px; }
}

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