/* =========================================================
   Faizan Arif — Portfolio
   Rebuilt from the Framer project as plain HTML/CSS/JS.
   ========================================================= */

@font-face {
  font-family: "Overused Grotesk";
  src: url("../fonts/OverusedGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Overused Grotesk";
  src: url("../fonts/OverusedGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --green: #85ee00;
  --black: #000;
  --dark: #111;
  --white: #fff;
  --gray: #808080;
  --w60: rgba(255, 255, 255, .6);
  --w40: rgba(255, 255, 255, .4);
  --w30: rgba(255, 255, 255, .3);
  --w20: rgba(255, 255, 255, .2);
  --w10: rgba(255, 255, 255, .1);
  --d60: rgba(17, 17, 17, .6);
  --d30: rgba(17, 17, 17, .3);
  --d20: rgba(17, 17, 17, .2);
  --d10: rgba(17, 17, 17, .1);

  --f-head: "Sulphur Point", "Poppins", sans-serif;
  --f-body: "Poppins", system-ui, sans-serif;
  --f-grot: "Overused Grotesk", "Poppins", sans-serif;

  --container: 1296px;
  --gutter: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 29px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p { margin: 0; font-weight: 400; }
::selection { background: var(--green); color: var(--black); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type scale (from Framer text styles) ---------- */
.h1 { font-family: var(--f-head); font-size: 120px; line-height: 128px; letter-spacing: -6px; }
.h2 { font-family: var(--f-head); font-size: 100px; line-height: 1.05; letter-spacing: -.02em; }
.h3 { font-family: var(--f-head); font-size: 80px; line-height: 80px; letter-spacing: -.02em; }
.h4 { font-family: var(--f-grot); font-size: 32px; line-height: 40px; letter-spacing: -.32px; }
.h5 { font-family: var(--f-body); font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: .02em; }
.p32 { font-size: 32px; line-height: 36px; letter-spacing: -.01em; }
.p24 { font-size: 24px; line-height: 30px; }
.p16 { font-size: 16px; line-height: 29px; }
.p14 { font-size: 14px; line-height: 20px; }
.p12 { font-size: 12px; line-height: 16px; }
.green { color: var(--green); }
.muted { color: var(--gray); }

@media (max-width: 1199px) {
  .h1 { font-size: 104px; line-height: 110px; }
  .h2 { font-size: 80px; }
  .h3 { font-size: 64px; line-height: 64px; }
  .h4 { font-size: 26px; }
  .h5 { font-size: 10px; }
  .p32 { font-size: 28px; }
  .p24 { font-size: 21px; }
  .p16 { font-size: 15px; }
  .p14 { font-size: 13px; }
}
@media (max-width: 809px) {
  :root { --gutter: 20px; }
  .h1 { font-size: 72px; line-height: 70px; letter-spacing: -4px; }
  .h2 { font-size: 56px; line-height: 1; }
  .h3 { font-size: 52px; line-height: 50px; }
  .p32 { font-size: 24px; line-height: 32px; }
  .p24 { font-size: 20px; }
}

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); filter: blur(8px); transition: opacity .8s ease, transform .8s ease, filter .8s ease; }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Primary button (Framer "Primary Button") ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 54px; padding: 7px 6px 7px 24px; border-radius: 50px;
  border: 1px solid var(--w20); font-size: 16px; line-height: 20px; white-space: nowrap;
  transition: background .3s, color .3s;
}
.btn-arrow {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 35px;
  display: grid; place-items: center; overflow: hidden; position: relative;
  transition: background .3s;
}
.btn--ghost { color: var(--white); }
.btn--ghost .btn-arrow { background: var(--w30); color: var(--white); }
.btn--ghost:hover { color: var(--green); }
.btn--ghost:hover .btn-arrow { background: var(--green); color: var(--black); }
.btn--white { background: var(--white); color: var(--dark); }
.btn--white .btn-arrow { background: var(--black); color: var(--white); }
.btn--white:hover .btn-arrow { background: var(--green); color: var(--black); }
.btn--black { background: var(--dark); color: var(--white); }
.btn--black .btn-arrow { background: var(--white); color: var(--dark); }
.btn--black:hover .btn-arrow { background: var(--green); }

/* ---------- Social circle (Framer "Socials icon") ---------- */
.social {
  width: 47px; height: 47px; border-radius: 50%; display: grid; place-items: center;
  background: var(--w10); color: var(--white); font-size: 18px; transition: background .3s, color .3s;
}
.social:hover { background: var(--green); color: var(--dark); }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: min(1296px, calc(100% - 40px)); z-index: 50; }
.nav-bar {
  height: 94px; padding: 0 30px; background: var(--black);
  border-radius: 0 0 30px 30px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  position: relative; z-index: 2;
}
.nav-left { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 28px; color: rgba(255,255,255,.5); }
.nav-left .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(133,238,0,.55); } 70% { box-shadow: 0 0 0 8px rgba(133,238,0,0); } 100% { box-shadow: 0 0 0 0 rgba(133,238,0,0); } }
.nav-back { display: inline-flex; align-items: center; gap: 8px; color: var(--white); }
.nav-back:hover { color: var(--green); }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 24px; line-height: 30px; color: var(--white); }
.nav-logo img { width: 31px; height: 31px; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.nav-logo:hover img { transform: rotate(360deg); }
.nav-right { display: flex; justify-content: flex-end; }
.nav-menu-btn { width: 50px; height: 50px; border-radius: 400px; background: var(--white); display: grid; place-items: center; }
.burger { position: relative; width: 16px; height: 16px; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.burger i { position: absolute; width: 7px; height: 7px; border-radius: 1px; border: 1px solid var(--dark); transition: background .3s, border-color .3s; }
.burger i:nth-child(1) { left: 0; top: 0; } .burger i:nth-child(2) { right: 0; top: 0; }
.burger i:nth-child(3) { left: 0; bottom: 0; } .burger i:nth-child(4) { right: 0; bottom: 0; }
.nav.is-open .burger { transform: rotate(-45deg); }
.nav.is-open .burger i { background: var(--dark); }
.nav-panel {
  position: absolute; top: 96px; right: 0; width: 448px; max-width: 100%; background: var(--black);
  border-radius: 30px; padding: 40px; display: flex; flex-direction: column; gap: 30px;
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top right;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1), visibility .35s;
}
.nav.is-open .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-sub { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; color: var(--white); margin-bottom: 20px; }
.nav-sub::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.nav-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav-links a { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; line-height: 20px; color: #eee; opacity: .58; transition: opacity .3s, transform .4s cubic-bezier(.2,.7,.2,1); }
.nav-links a img { width: 20px; height: 20px; object-fit: contain; }
.nav-links a:hover { opacity: 1; transform: translateX(4px); }
.nav-socials { display: flex; gap: 8px; }
@media (max-width: 809px) {
  .nav { width: calc(100% - 24px); }
  .nav-bar { height: 72px; padding: 0 16px; border-radius: 0 0 22px 22px; }
  .nav-left { font-size: 14px; }
  .nav-logo { font-size: 18px; }
  .nav-logo img { width: 26px; height: 26px; }
  .nav-menu-btn { width: 42px; height: 42px; }
  .nav-panel { top: 80px; width: 100%; padding: 28px; }
}

/* =========================================================
   HOME — HERO
   ========================================================= */
.dark-zone { position: relative; overflow: hidden; background: var(--black); }
.dark-zone > :not(.zone-video) { position: relative; z-index: 2; }
.zone-video { position: absolute; inset: 0; z-index: 0; background: rgba(0,0,0,.3); }
.zone-video video { width: 100%; height: 100%; object-fit: cover; opacity: .73; }

.hero-grid { display: grid; grid-template-columns: 1fr 1px 1fr; padding-top: 94px; }
.hero-left { padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-hello { font-size: 16px; line-height: 24px; color: var(--gray); margin-bottom: 30px; }
.hero-hello b { font-weight: 400; color: var(--white); }
.hero-name { text-align: right; }
.hero-name > span { display: block; }
.hero-divider { background: var(--w20); }
.hero-right { padding: 14px 0 14px 14px; }
.hero-card { position: relative; height: 539px; border-radius: 24px; overflow: hidden; padding: 20px; display: flex; justify-content: flex-end; align-items: flex-end; gap: 10px; background: #0b0b0b; }
.hero-card-bg { position: absolute; left: -10px; right: -10px; top: -419px; width: calc(100% + 20px); height: 1213px; object-fit: cover; }
.flip { position: relative; z-index: 2; width: 292px; height: 411px; cursor: pointer; outline: none; }
.flip-inner { position: absolute; inset: 0; }
.flip-face { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: bottom center; }
.flip-front { transition: opacity .5s ease .25s; }
.flip:hover .flip-front, .flip:focus-visible .flip-front, .flip.is-flipped .flip-front { opacity: 0; }
/* Fallback when WebGL isn't available: the photo grows out of a circle at the cursor (flat, so it works in every browser) */
.flip-back { -webkit-clip-path: circle(0% at var(--mx, 50%) var(--my, 35%)); clip-path: circle(0% at var(--mx, 50%) var(--my, 35%)); transition: clip-path .8s cubic-bezier(.16,1,.3,1), -webkit-clip-path .8s cubic-bezier(.16,1,.3,1); }
.flip:hover .flip-back, .flip:focus-visible .flip-back, .flip.is-flipped .flip-back { -webkit-clip-path: circle(150% at var(--mx, 50%) var(--my, 35%)); clip-path: circle(150% at var(--mx, 50%) var(--my, 35%)); }
.hero-socials { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 10px; }

.hero-bottom { position: relative; }
.hero-bottom-inner { position: relative; padding: 20px 24px 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--w20); border-bottom: 1px solid var(--w20); background: rgba(23,23,23,.06); }
.scroll-down { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; line-height: 24px; }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.hero-buttons { width: 50%; padding-left: 20px; display: flex; gap: 10px; }
.hero-buttons .btn:first-child { flex: 1; }
.hero-buttons .btn:last-child { width: 193px; }

/* ---------- Intro / experience ---------- */
.intro { padding-top: 160px; padding-bottom: 100px; }
.intro-text { padding-right: 200px; display: flex; flex-direction: column; gap: 50px; align-items: flex-start; }
.intro-text .w60 { color: var(--w60); }
.intro-text .w40 { color: var(--w40); }
.intro .btn { width: 220px; }

.xp-row { display: flex; gap: 0; padding-bottom: 100px; }
.xp-card { flex: 1 1 0; min-width: 0; padding-bottom: 30px; position: relative; cursor: pointer; transition: flex-grow .55s cubic-bezier(.3,.7,.2,1); }
.xp-card + .xp-card { margin-left: 16px; }
.xp-card.is-active { flex-grow: 2.1; }
.xp-inner { height: 240px; border-radius: 12px; background: var(--dark); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.xp-top { display: flex; gap: 10px; align-items: flex-start; }
.xp-head { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.xp-date { color: var(--gray); font-size: 16px; line-height: 29px; }
.xp-title { color: var(--white); }
.xp-logos { position: relative; flex: 0 0 auto; width: 102px; height: 26px; }
.xp-logo, .xp-mini { position: absolute; right: 0; top: 0; height: 100%; object-fit: contain; object-position: right center; transition: opacity .4s ease; }
.xp-logo { width: 100%; }
.xp-mini { width: 29px; opacity: 0; }
.xp-card:not(.is-active) .xp-logo { opacity: 0; }
.xp-card:not(.is-active) .xp-mini { opacity: 1; }
.xp-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.xp-tags { display: flex; gap: 10px; flex-wrap: nowrap; overflow: hidden; transition: opacity .4s; }
.xp-card:not(.is-active) .xp-tags { opacity: 0; }
.tag { padding: 6px 26px; border-radius: 40px; border: 1px solid var(--w20); font-size: 16px; line-height: 29px; white-space: nowrap; }
.xp-num { color: var(--green); transition: color .4s; }
.xp-card:not(.is-active) .xp-num { color: var(--w40); }
.xp-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--dark); overflow: hidden; }
.xp-line i { position: absolute; inset: 0; background: var(--green); transform: scaleX(0); transform-origin: left; }
.xp-card.is-active .xp-line i { animation: xpbar var(--xp-dur, 4s) linear forwards; }
.xp-row.is-paused .xp-card.is-active .xp-line i { animation: none; transform: scaleX(1); }
@keyframes xpbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* =========================================================
   SERVICES (white)
   ========================================================= */
.light { background: var(--white); color: var(--dark); }
.ticker { padding: 40px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 56px; height: 40px; color: var(--dark); white-space: nowrap; }
.ticker-item img { width: 30px; height: 30px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.services { padding-top: 100px; padding-bottom: 90px; }
.services-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 80px; }
.services-head .h5 { color: var(--gray); }
.services-head .p24 { max-width: 400px; color: var(--dark); }
.svc-list { display: flex; flex-direction: column; gap: 64px; }
.svc { padding-top: 24px; display: flex; flex-direction: column; gap: 54px; cursor: pointer; }
.svc + .svc { border-top: 1px solid var(--d10); }
.svc-num { color: var(--dark); }
.svc-title { color: var(--d30); transition: color .45s ease; }
.svc.is-open .svc-title { color: var(--dark); }
.svc-details { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s cubic-bezier(.34,1.25,.5,1), opacity .4s ease, margin-top .6s cubic-bezier(.34,1.25,.5,1); margin-top: -54px; }
.svc.is-open .svc-details { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }
.svc-details > div { overflow: hidden; display: flex; gap: 80px; align-items: flex-start; }
.svc-desc { flex: 1; display: flex; flex-direction: column; gap: 21px; }
.svc-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.svc-tags span { padding: 6px 10px; border-radius: 999px; border: .5px solid var(--d30); font-size: 12px; line-height: 16px; color: var(--black); }
.svc-desc p { max-width: 600px; color: var(--gray); }
.svc-imgs { display: flex; gap: 6px; }
.svc-imgs img { width: 210px; height: 126px; border-radius: 12px; object-fit: cover; }
.svc-in { opacity: 0; transition: opacity .6s cubic-bezier(.44,0,.56,1) var(--d, 0s); }
.svc-slide { opacity: 0; transform: translateX(118px); transition: opacity .6s ease var(--d, 0s), transform .7s cubic-bezier(.34,1.3,.5,1) var(--d, 0s); }
.svc.is-open.in-view .svc-in, .svc.is-open.in-view .svc-slide { opacity: 1; transform: none; }
.mission { display: flex; justify-content: space-between; align-items: center; gap: 80px; margin-top: 80px; }
.mission-left { display: flex; align-items: center; gap: 11px; max-width: 300px; }
.mission-left i { font-size: 44px; color: var(--black); }
.mission-left .bar { width: 1px; align-self: stretch; margin: 6px 0; background: var(--dark); }
.mission .btn { width: 240px; }

/* =========================================================
   FEATURED WORK (black)
   ========================================================= */
.portfolio { max-width: 1480px; margin: 0 auto; padding: 100px 30px 50px; }
.portfolio-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 80px; }
.portfolio-head .p24 { max-width: 260px; text-align: right; }
.works { display: flex; flex-direction: column; gap: 140px; }
.works-row { display: flex; align-items: flex-end; gap: 20px; }
.works-row > * { flex: 1 1 0; min-width: 0; display: flex; }
.works-row .end { justify-content: flex-end; }
.works-row .center { justify-content: center; }
.w-74 { width: 73.9%; }
.w-100 { width: 100%; }
.w-50 { width: 50%; }
.work { display: flex; flex-direction: column; gap: 20px; height: 520px; width: 100%; }
.work.short { height: 340px; }
.work-media { flex: 1; min-height: 0; border-radius: 10px; overflow: hidden; background: #000; }
.work-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.work:hover .work-media img { transform: scale(1.03); }
.work-meta { display: flex; align-items: flex-start; gap: 20px; }
.work-dots { display: flex; gap: 4px; padding-top: 7px; flex: 0 0 auto; margin-right: 60px; }
.work-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--w20); }
.work-dots i.on { background: var(--white); }
.work-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.work-title { font-family: "Inter", var(--f-body); font-size: 18px; font-weight: 500; line-height: 22px; color: var(--white); }
.work-cat { font-family: "Clash Display", var(--f-body); font-size: 12px; font-weight: 500; line-height: 15px; letter-spacing: .8px; color: var(--gray); }
.work-arrow { font-size: 22px; transition: transform .35s ease; }
.work:hover .work-arrow { transform: translateX(4px) rotate(-45deg); color: var(--green); }

/* =========================================================
   WHAT YOU GET / LOGOS (white)
   ========================================================= */
.wyg { padding-top: 160px; padding-bottom: 100px; }
.quote { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; padding-bottom: 60px; }
.quote .h5 { color: var(--gray); }
.quote-box { position: relative; padding: 28px 24px; width: 100%; border: 1px solid var(--d20); border-radius: 16px; backdrop-filter: blur(5px); }
.quote-box p { max-width: 700px; margin: 0 auto; color: var(--dark); }
.brands { padding-top: 80px; display: flex; flex-direction: column; align-items: center; gap: 50px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 100px; border: 1px solid var(--d30); font-size: 16px; line-height: 20px; color: #000; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #121212; }
.brands .h3 { max-width: 500px; color: #000; }
.brands .sub { color: var(--d60); margin-top: -20px; }
.logo-grid { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.logo-card { position: relative; height: 131px; border-radius: 20px; background: #000; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.logo-card .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; z-index: -1; }
.logo-card .logo { width: 168px; height: 70px; object-fit: contain; opacity: .8; transition: opacity .3s, transform .45s; }
.logo-card:hover .bg { opacity: 1; }
.logo-card:hover .logo { opacity: 1; transform: scale(1.04); }
.brands { overflow: visible; }
/* Ribbon video: edge to edge and stretched to fill, as in Framer; soft fade at the sides so no hard edges show */
.brands-video { width: 100vw; margin: 10px calc(50% - 50vw) 0; height: 496px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect; }
.brands-video video { display: block; width: 100%; height: 100%; object-fit: fill; }
#what-you-get { overflow-x: clip; }

/* =========================================================
   CONTACT (white)
   ========================================================= */
.contact { padding-top: 30px; padding-bottom: 100px; }
.contact-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 80px; flex-wrap: wrap; }
.contact-head .h5 { color: var(--gray); margin-bottom: 32px; }
.contact-head .h2 .soft { color: var(--d60); }
.mail-pill { display: inline-flex; gap: 6px; padding: 10px 16px; border-radius: 100px; border: 1px solid var(--d20); font-size: 14px; line-height: 20px; color: var(--dark); transition: background .3s; }
.mail-pill:hover { background: var(--green); border-color: var(--green); }
.form { display: flex; flex-direction: column; gap: 20px; padding: 20px 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.field { display: flex; flex-direction: column; gap: 20px; }
.field label { color: var(--dark); }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--d20); background: transparent; padding: 12px 0;
  font: 400 16px/1.2 var(--f-body); color: var(--dark); outline: none; border-radius: 0; transition: border-color .3s;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--dark); }
.field ::placeholder { color: #999; }
.form-actions { padding-top: 30px; display: flex; align-items: center; gap: 20px; }
.send-btn { width: 204px; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 7px 7px 7px 24px; border-radius: 50px; background: #1d1d1d; color: var(--white); font-size: 16px; transition: background .3s; }
.send-btn .btn-arrow { width: 40px; height: 40px; background: var(--white); color: var(--dark); }
.send-btn:hover .btn-arrow { background: var(--green); }
.send-btn[disabled] { opacity: .7; cursor: progress; }
.form-status { font-size: 14px; color: var(--gray); }
.form-status.ok { color: #2f9e0b; }
.form-status.err { color: #d93a3a; }
.hp { display: none !important; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--dark); color: var(--white); overflow: hidden; }
.footer-inner { position: relative; padding-top: 50px; padding-bottom: 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-bottom: 50px; border-bottom: 1px solid var(--w10); flex-wrap: wrap; }
.footer-big { font-family: var(--f-grot); font-size: 56px; line-height: 60px; letter-spacing: -.56px; transition: color .3s; }
a.footer-big:hover { color: var(--green); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 213px); gap: 0; padding-top: 55px; position: relative; z-index: 2; }
.footer-col h6 { font-size: 16px; line-height: 24px; color: var(--gray); margin-bottom: 46px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.footer-col a { font-size: 16px; line-height: 24px; }
.roll { display: inline-block; height: 24px; overflow: hidden; vertical-align: top; }
.roll span { display: block; transition: transform .45s cubic-bezier(.44,0,.2,1); }
.roll span::after { content: attr(data-t); display: block; color: var(--green); }
.roll:hover span, .roll:focus-visible span { transform: translateY(-24px); }
.footer-time { font-size: 16px; line-height: 24px; font-variant-numeric: tabular-nums; }
.footer-assign { display: inline-block; margin-top: 46px; color: var(--gray); font-size: 16px; line-height: 24px; }
.footer-assign:hover { color: var(--green); }
.footer-sphere { position: absolute; right: 30px; top: 170px; width: 250px; height: 250px; pointer-events: none; }
.footer-word { font-family: var(--f-head); font-size: clamp(110px, 25vw, 380px); line-height: .78; letter-spacing: -.05em; color: #fff; margin: 70px 0 30px -.04em; white-space: nowrap; user-select: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 6px; position: relative; z-index: 2; }
.footer-bottom a { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom a:hover { color: var(--green); }
@media (max-width: 1199px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-big { font-size: 45px; line-height: 50px; }
}
@media (max-width: 809px) {
  .footer-big { font-size: 34px; line-height: 40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-col h6 { margin-bottom: 24px; }
  .footer-col ul { gap: 16px; }
  .footer-sphere { right: 0; top: auto; bottom: 150px; width: 140px; height: 140px; opacity: .7; }
  .footer-word { margin-top: 50px; }
  .footer-bottom { font-size: 14px; }
}

/* =========================================================
   HOME — responsive
   ========================================================= */
@media (max-width: 1199px) {
  :root { --gutter: 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-divider { display: none; }
  .hero-left { padding: 40px 0 30px; }
  .hero-name { text-align: left; }
  .hero-right { padding: 0; }
  .hero-card { height: 500px; }
  .hero-bottom-inner { margin-top: 24px; }
  .hero-buttons { width: auto; }
  .intro { padding-top: 110px; padding-bottom: 70px; }
  .intro-text { padding-right: 0; }
  .xp-row { flex-direction: column; gap: 16px; }
  .xp-card + .xp-card { margin-left: 0; }
  .xp-card .xp-tags { opacity: 1 !important; }
  .xp-inner { height: auto; min-height: 220px; gap: 24px; }
  .svc-title { font-size: 72px; line-height: 76px; }
  .svc-details > div { flex-direction: column; gap: 30px; }
  .portfolio-head .h1 { font-size: 96px; }
  .works { gap: 70px; }
  .work, .work.short { height: 420px; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .brands-video { height: 320px; }
  .form-row { gap: 40px; }
}
@media (max-width: 809px) {
  .hero-grid { padding-top: 72px; }
  .hero-card { height: 460px; padding: 14px; }
  .flip { width: 230px; height: 330px; }
  .hero-bottom-inner { flex-direction: column; align-items: stretch; padding: 20px 0; border-left: 0; border-right: 0; }
  .hero-buttons { padding-left: 0; flex-direction: column; }
  .hero-buttons .btn:last-child { width: 100%; }
  .intro .btn { width: 100%; max-width: 260px; }
  .xp-inner { padding: 22px; height: 220px; }
  .xp-tags { flex-wrap: wrap; }
  .tag { padding: 4px 16px; font-size: 14px; }
  .services { padding-top: 70px; padding-bottom: 70px; }
  .services-head { flex-direction: column; margin-bottom: 50px; }
  .svc-list { gap: 40px; }
  .svc { gap: 30px; }
  .svc-title { font-size: 44px; line-height: 46px; letter-spacing: -2px; }
  .svc-imgs img { width: 50%; height: auto; aspect-ratio: 5 / 3; }
  .svc-imgs { width: 100%; }
  .mission { flex-direction: column; align-items: flex-start; gap: 30px; }
  .portfolio { padding: 70px 20px 40px; }
  .portfolio-head { flex-direction: column; align-items: flex-start; margin-bottom: 50px; }
  .portfolio-head .h1 { font-size: 64px; line-height: 64px; }
  .portfolio-head .p24 { text-align: left; }
  .works-row { flex-direction: column; align-items: stretch; gap: 60px; }
  .works { gap: 60px; }
  .works-row > * { justify-content: stretch !important; }
  .w-74, .w-50 { width: 100%; }
  .work, .work.short { height: 340px; }
  .work-dots { margin-right: 10px; }
  .wyg { padding-top: 90px; padding-bottom: 60px; }
  .logo-grid { gap: 12px; }
  .logo-card { height: 96px; border-radius: 14px; }
  .logo-card .logo { width: 70%; }
  .brands-video { height: 220px; }
  .form-row { grid-template-columns: 1fr; gap: 20px; }
  .contact-head { margin-bottom: 40px; }
}

/* =========================================================
   CASE STUDY PAGES (image stacks)
   ========================================================= */
.cs { min-height: 100vh; }
.cs-sec { overflow: hidden; padding: var(--pt, 40px) min(var(--px, 100px), 5vw) var(--pb, 40px); background: var(--bg, #000); display: flex; flex-direction: column; align-items: center; gap: var(--gap, 0); }
.cs-sec img { width: 100%; max-width: var(--max, 1200px); height: auto; border-radius: var(--r, 0); }
.cs-sec:first-child { padding-top: max(var(--pt, 40px), 110px); }
@media (max-width: 809px) {
  .cs-sec { padding-top: min(var(--pt, 40px), 24px); padding-bottom: min(var(--pb, 40px), 24px); }
  .cs-sec:first-child { padding-top: 96px; }
}

/* ---------- 404 ---------- */
.notfound { background: #eee; color: var(--dark); padding: 250px 0 120px; text-align: center; }
.notfound .h5 { color: var(--d60); }
.notfound .h2 { margin: 30px 0 10px; }
.notfound .p16 { color: var(--d60); margin-bottom: 30px; }

/* =========================================================
   ASSIGNMENTS
   ========================================================= */
.as-hero { position: relative; height: 520px; display: grid; place-items: center; overflow: hidden; background: #121212; }
.as-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.as-hero-content { position: relative; z-index: 2; text-align: center; pointer-events: none; padding: 0 20px; }
.as-hero h1, .as-hero .as-h { font-family: var(--f-body); font-size: 40px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
.as-hero p { margin-top: 30px; font-size: 18px; line-height: 28px; color: var(--white); white-space: pre-wrap; }
.as-grid { max-width: 1300px; margin: 0 auto; padding: 100px 20px 40px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.as-tile { min-height: 220px; border-radius: 16px; background: #1b1b1b; border: 1px solid var(--w10); padding: 28px; display: flex; align-items: flex-end; font-size: 26px; line-height: 34px; color: var(--white); transition: background .3s, border-color .3s, transform .3s; white-space: pre-line; }
a.as-tile:hover { background: #222; border-color: var(--green); transform: translateY(-4px); }
span.as-tile { opacity: .55; }
@media (max-width: 1199px) { .as-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 809px) {
  .as-grid { grid-template-columns: 1fr; padding-top: 50px; }
  .as-hero { height: 420px; }
  .as-hero h1, .as-hero .as-h { font-size: 30px; }
}
.gate { position: fixed; inset: 0; z-index: 100; background: #fff; color: var(--dark); display: grid; place-items: center; padding: 20px; }
.gate[hidden] { display: none; }
.gate form { width: min(360px, 100%); display: flex; flex-direction: column; gap: 14px; text-align: center; }
.gate h2 { font-size: 22px; font-weight: 500; }
.gate p { font-size: 14px; color: var(--d60); line-height: 20px; }
.gate input { height: 48px; border-radius: 12px; border: 1px solid var(--d20); padding: 0 16px; font: 16px var(--f-body); outline: none; }
.gate input:focus { border-color: var(--dark); }
.gate button { height: 48px; border-radius: 12px; background: var(--dark); color: #fff; }
.gate .err { color: #d93a3a; min-height: 20px; }

/* =========================================================
   MOTION (rebuilt from the Framer effects)
   ========================================================= */
.js [data-appear] { opacity: 0; transform: translate(var(--ax, 0), var(--ay, 0)) scale(var(--as, 1)); }
.js [data-appear].is-in { opacity: 1; transform: none; transition: opacity var(--adur, .6s) cubic-bezier(.44,0,.56,1) var(--adel, 0s), transform var(--adur, .6s) cubic-bezier(.34,1.2,.5,1) var(--adel, 0s); }
.sw { display: inline-block; white-space: nowrap; }
.st { display: inline-block; opacity: 0; transform: translateY(var(--ty, 10px)); filter: blur(var(--tb, 10px)); will-change: transform, opacity, filter;
  transition: opacity var(--tdur, .4s) ease-out, transform var(--tdur, .4s) cubic-bezier(.22,1,.36,1), filter var(--tdur, .4s) ease-out; transition-delay: var(--tdel, 0s); }
.is-played .st { opacity: 1; transform: none; filter: blur(0); }

/* Button arrows slide through */
.arr { position: relative; width: 22px; height: 22px; overflow: hidden; display: block; }
.arr i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; transition: transform .45s cubic-bezier(.6,0,.2,1); }
.arr i + i { transform: translateX(-130%); }
.btn:hover .arr i, .send-btn:hover .arr i { transform: translateX(130%); }
.btn:hover .arr i + i, .send-btn:hover .arr i + i { transform: none; }
.btn--white:hover .arr { transform: rotate(-45deg); transition: transform .45s; }

/* Scroll-down arrows loop */
.sd-arr { position: relative; width: 16px; height: 16px; overflow: hidden; display: inline-block; }
.sd-arr i { position: absolute; left: 0; top: 0; font-size: 15px; animation: sd 1.6s cubic-bezier(.6,0,.2,1) infinite; }
.sd-arr i + i { top: -16px; }
@keyframes sd { 0%, 30% { transform: translateY(0); } 80%, 100% { transform: translateY(16px); } }

/* Send button spinner */
.send-btn .btn-arrow { position: relative; }
.spin { position: absolute; inset: 10px; border-radius: 50%; border: 2px solid rgba(17,17,17,.15); border-top-color: var(--dark); opacity: 0; animation: spin 1s linear infinite; }
.send-btn.is-loading .arr { opacity: 0; }
.send-btn.is-loading .spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .js [data-appear], .st { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .svc-in, .svc-slide { opacity: 1; transform: none; transition: none; }
  .ticker-track, .sd-arr i, .xp-card.is-active .xp-line i { animation: none; }
  .xp-card.is-active .xp-line i { transform: scaleX(1); }
  .flip-back, .flip-front { transition: none; }
}

/* =========================================================
   NEW SECTIONS (patterns adapted from an editorial portfolio layout)
   ========================================================= */
/* Hero availability badge + trust line */
.avail { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: auto; border-radius: 40px; border: 1px solid var(--w20); background: rgba(255,255,255,.04); font-size: 14px; line-height: 20px; color: var(--white); }
.avail .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.hero-left { gap: 0; }
.hero-left .avail + .hero-hello { margin-top: 40px; }
.trust { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 28px; font-size: 14px; line-height: 20px; color: var(--gray); }
.trust strong { color: var(--white); font-weight: 400; }
.trust-stack { display: flex; align-items: center; flex: 0 0 auto; }
.trust-stack img, .trust-stack b { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--black); object-fit: cover; background: #222; }
.trust-stack > * + * { margin-left: -10px; }
.trust-stack b { display: grid; place-items: center; background: var(--green); color: var(--black); font-size: 12px; font-weight: 600; }

/* Project rows */
.projects { display: flex; flex-direction: column; gap: 20px; }
.pr { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; min-height: 540px; }
.pr-card { background: var(--dark); border: 1px solid var(--w10); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; }
.pr-top { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 20px; }
.pr-count { color: var(--green); font-variant-numeric: tabular-nums; }
.pr-cat { color: var(--gray); text-align: right; }
.pr-title { font-family: var(--f-head); font-size: 64px; line-height: 1; letter-spacing: -2px; margin: 48px 0 16px; text-wrap: balance; }
.pr-line { color: var(--w60); font-size: 16px; line-height: 26px; max-width: 440px; }
.pr-tags { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pr-tags li { padding: 4px 14px; border-radius: 40px; border: 1px solid var(--w20); font-size: 13px; line-height: 22px; color: var(--w60); }
.pr-bottom { margin-top: auto; padding-top: 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pr-metric { display: flex; align-items: flex-end; gap: 12px; }
.pr-num { font-family: var(--f-head); font-size: 96px; line-height: .8; letter-spacing: -3px; color: var(--green); font-variant-numeric: tabular-nums; }
.pr-unit { font-size: 13px; line-height: 18px; color: var(--gray); max-width: 150px; }
.pr-bottom .btn { min-width: 210px; }
.pr-media { display: block; border-radius: 24px; overflow: hidden; background: #0c0c0c; border: 1px solid var(--w10); }
.pr-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.pr-media:hover img { transform: scale(1.04); }

/* Generic section header */
.sec { padding-top: 140px; padding-bottom: 120px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 64px; }
.eyebrow { color: var(--gray); margin-bottom: 24px; }
.light .h2 .soft { color: var(--d60); }
.sec-note { max-width: 380px; color: var(--d60); }
.sec-note a { color: var(--dark); text-decoration: underline; text-underline-offset: 3px; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; min-height: 320px; border-radius: 24px; background: #f3f3f1; padding: 28px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; transition: background .4s, color .4s; }
.step::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; background: var(--green); transform: scaleX(.18); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.step:hover { background: var(--dark); color: var(--white); }
.step:hover::before { transform: scaleX(1); }
.step-num { font-family: var(--f-head); font-size: 72px; line-height: 1; letter-spacing: -2px; color: var(--d30); margin-bottom: auto; transition: color .4s; }
.step:hover .step-num { color: var(--green); }
.step .h4 { color: inherit; }
.step p { color: var(--d60); transition: color .4s; }
.step:hover p { color: var(--w60); }

/* Résumé */
.resume-wrap { background: var(--black); }
.resume { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; }
.resume-card { background: var(--dark); border: 1px solid var(--w10); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.resume-card .h3 { font-size: 56px; line-height: 1; text-wrap: balance; }
.resume-card .btn { width: 230px; margin-top: auto; }
.resume-card .eyebrow { margin: 0; }
.resume-list { display: flex; flex-direction: column; gap: 40px; padding: 8px 0; }
.r-rows { list-style: none; margin: 0; padding: 0; }
.r-rows li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--w10); }
.r-rows li:last-child { border-bottom: 1px solid var(--w10); }
.r-when { color: var(--gray); font-size: 14px; font-variant-numeric: tabular-nums; }
.r-role { font-family: var(--f-grot); font-size: 28px; line-height: 34px; }
.r-where { color: var(--gray); font-size: 14px; text-align: right; }
.r-tools .h5 { color: var(--gray); margin-bottom: 16px; }
.r-tools div { display: flex; flex-wrap: wrap; gap: 8px; }
.r-tools span { padding: 6px 16px; border-radius: 40px; border: 1px solid var(--w20); font-size: 14px; line-height: 22px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; align-items: start; }
.faq .sec-note { margin-top: 24px; }
.faq-item { border-top: 1px solid var(--d20); }
.faq-item:last-child { border-bottom: 1px solid var(--d20); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; cursor: pointer; font-size: 22px; line-height: 30px; color: var(--dark); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--d20); transition: background .3s, border-color .3s, transform .4s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--dark); transform: translate(-50%, -50%); transition: transform .4s; }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus { background: var(--green); border-color: var(--green); transform: rotate(180deg); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item summary:hover .faq-plus { border-color: var(--dark); }
.faq-a { padding: 0 60px 26px 0; }
.faq-a p { color: var(--d60); }
.faq-item[open] .faq-a { animation: faqIn .45s ease both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Closing CTA */
.cta-wrap { background: var(--black); padding: 100px 0; }
.cta { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; min-height: 460px; padding: 64px 64px 0; border-radius: 32px; background: var(--green); color: var(--black); overflow: hidden; }
.cta-text { padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.cta-title { font-family: var(--f-head); font-size: 96px; line-height: .95; letter-spacing: -3px; max-width: 760px; text-wrap: balance; }
.cta-title em { font-style: italic; color: rgba(0,0,0,.55); }
.cta-text .p16 { color: rgba(0,0,0,.7); max-width: 480px; }
.cta-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-actions .btn { width: 200px; }
.cta-mail { font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }
.cta-img { width: 330px; height: auto; align-self: end; filter: drop-shadow(0 20px 40px rgba(0,0,0,.25)); }

@media (max-width: 1199px) {
  .trust { justify-content: flex-start; }
  .pr { grid-template-columns: 1fr; min-height: 0; }
  .pr-media { order: -1; height: 440px; }
  .pr-title { font-size: 52px; margin-top: 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resume, .faq { grid-template-columns: 1fr; }
  .faq { gap: 40px; }
  .cta-title { font-size: 72px; }
  .cta-img { width: 260px; }
}
@media (max-width: 809px) {
  .hero-left .avail + .hero-hello { margin-top: 24px; }
  .trust { flex-wrap: wrap; }
  .pr-card { padding: 24px; }
  .pr-media { height: 260px; border-radius: 18px; }
  .pr-title { font-size: 40px; letter-spacing: -1px; margin-top: 24px; }
  .pr-num { font-size: 72px; }
  .pr-bottom .btn { width: 100%; }
  .sec { padding-top: 90px; padding-bottom: 80px; }
  .sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 220px; }
  .resume-card { padding: 28px; }
  .resume-card .h3 { font-size: 40px; }
  .r-rows li { grid-template-columns: 1fr; gap: 4px; padding: 20px 0; }
  .r-where { text-align: left; }
  .r-role { font-size: 24px; }
  .faq-item summary { font-size: 18px; line-height: 26px; }
  .faq-a { padding-right: 0; }
  .cta-wrap { padding: 60px 0; }
  .cta { grid-template-columns: 1fr; padding: 36px 24px 0; border-radius: 24px; min-height: 0; }
  .cta-text { padding-bottom: 0; }
  .cta-title { font-size: 48px; letter-spacing: -1.5px; }
  .cta-img { width: 220px; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { .faq-item[open] .faq-a { animation: none; } }

/* =========================================================
   MOTION SYSTEM v2 — preloader, page transitions, mask reveals,
   stacked cards, dot cursor, WebGL canvases
   ========================================================= */
:root { --ease: cubic-bezier(.16,1,.3,1); --ease-io: cubic-bezier(.7,0,.2,1); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* Page transitions between pages (Chrome / Edge; others load normally) */
@view-transition { navigation: auto; }
::view-transition { background: #050505; }
::view-transition-group(root) { animation-duration: .9s; }
::view-transition-old(root) { animation: .9s var(--ease-io) both vt-sink; }
::view-transition-new(root) { animation: .9s var(--ease-io) both vt-rise; }
@keyframes vt-sink { to { opacity: .35; transform: translateY(-4%) scale(.94); } }
@keyframes vt-rise { 0% { clip-path: inset(0 round 40px 40px 0 0); transform: translateY(100%); } 70% { clip-path: inset(0 round 18px 18px 0 0); } to { clip-path: inset(0); transform: none; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: .25s linear both vt-fade; }
  ::view-transition-new(root) { animation-direction: reverse; }
}
@keyframes vt-fade { to { opacity: 0; } }

/* Preloader */
.ldr { display: none; }
html.ld { overflow: hidden; }
html.ld .ldr { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; justify-content: space-between; padding: 32px var(--gutter) 36px; background: #050505; color: #fff; transition: transform .9s var(--ease-io), border-radius .9s var(--ease-io); }
html.ld .ldr.out { transform: translateY(-100%); border-radius: 0 0 40px 40px; }
.ldr-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--w60); }
.ldr-top b { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; color: #fff; }
.ldr-top b i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.ldr-bot { display: flex; flex-direction: column; gap: 22px; }
.ldr-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.ldr-word { position: relative; height: 1em; font-family: var(--f-head); font-weight: 300; font-size: clamp(56px, 11vw, 170px); line-height: 1; letter-spacing: -.04em; overflow: hidden; flex: 1; }
.ldr-word span { position: absolute; left: 0; top: 0; transform: translateY(105%); transition: transform .5s var(--ease); white-space: nowrap; }
.ldr-word span.on { transform: none; }
.ldr-word span.on ~ span { transform: translateY(105%); }
.ldr-count { font-family: var(--f-head); font-size: clamp(32px, 5vw, 72px); line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.ldr-bar { height: 1px; background: rgba(255,255,255,.16); overflow: hidden; }
.ldr-bar i { display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; }

/* Mask text reveal */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .08em .2em; margin: -.06em -.08em -.2em; }
.wd { display: inline-block; transform: translateY(calc(100% + .45em)); transition: transform var(--tdur, 1s) var(--ease) var(--tdel, 0s); }
.is-played .wd { transform: none; }

/* Scroll reveal for blocks & images */
.js .rv { opacity: 0; transform: translateY(46px); transition: opacity .9s var(--ease) var(--rvd, 0s), transform 1.1s var(--ease) var(--rvd, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .cs-sec.rv { opacity: 1; transform: none; }
.js .cs-sec.rv img { clip-path: inset(14% 0 0 0 round var(--r, 0)); transform: scale(1.06); transition: clip-path 1.2s var(--ease), transform 1.6s var(--ease); }
.js .cs-sec.rv.in img { clip-path: inset(0 0 0 0 round var(--r, 0)); transform: none; }

/* WebGL canvases */
.gl-silk { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
[data-gl-hero].gl-on:not([data-gl-keep]) > video { opacity: 0; }
.gl-silk.gl-blend { mix-blend-mode: screen; opacity: .75; }
.gl-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 5; pointer-events: none; }
.gl-img-on img[data-gl-img] { opacity: 0 !important; }
.gl-portrait { position: absolute; inset: 0; width: 100%; height: 100%; }
.flip.gl-on .flip-inner { display: none; }
.flip.gl-on { transition: transform .3s ease-out; cursor: none; }
canvas[data-gl-sphere] { display: block; }

/* Navbar hides while scrolling down */
.nav { transition: transform .6s var(--ease); }
.nav.is-hidden { transform: translate(-50%, -110%); }

/* Stacked project cards */
.pr { background: var(--black); transform-origin: 50% 0; will-change: transform; }
.pr-card { transition: filter .2s linear; filter: brightness(calc(1 - .45 * var(--dim, 0))); }
@media (min-width: 1200px) {
  .projects { gap: 24px; }
  .pr { position: sticky; top: 110px; height: min(580px, calc(100vh - 140px)); min-height: 0; }
  .pr-media { height: 100%; }
}

/* Dot cursor */
.cur { position: fixed; left: 0; top: 0; z-index: 2147482000; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease); }
.cur.on { opacity: 1; }
.cur.ink { background: var(--dark); }
.cur.link { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: rgba(133,238,0,.9); }
.cur.lab { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--green); }
.cur.down { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.cur.hide { opacity: 0; }
.cur span { position: absolute; inset: 0; display: grid; place-items: center; font: 500 13px/1 var(--f-body); color: #000; opacity: 0; transition: opacity .25s var(--ease); }
.cur.lab span { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  html.has-cur, html.has-cur * { cursor: none !important; }
  html.has-cur input, html.has-cur textarea, html.has-cur select { cursor: auto !important; }
}
@media (hover: none), (pointer: coarse) { .cur { display: none; } }

/* Magnetic buttons */
.btn, .send-btn, .social { transition: background .3s, color .3s, transform .35s var(--ease); }
.nav-menu-btn { transition: transform .35s var(--ease); }

/* Footer word letters */
.footer-word { display: flex; }
.footer-word span { display: inline-block; transition: transform .5s var(--ease), color .35s var(--ease); }
.footer-word sup { font-family: var(--f-body); font-size: .08em; letter-spacing: 0; color: var(--green); align-self: flex-start; margin: .5em 0 0 .3em; }

/* Case study header */
.cs-head { position: relative; overflow: hidden; background: #000; color: #fff; padding: 190px 0 90px; }
.cs-head .gl-silk { opacity: .9; }
.cs-head::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to bottom, transparent, #000); pointer-events: none; }
.cs-head-in { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 22px; }
.cs-meta { display: flex; gap: 18px; font-size: 14px; color: var(--gray); }
.cs-meta .pr-count { color: var(--green); }
.cs-title { font-family: var(--f-head); font-size: clamp(56px, 9vw, 150px); line-height: .95; letter-spacing: -.04em; max-width: 14ch; }
.cs-line { font-size: 20px; line-height: 30px; color: var(--w60); max-width: 640px; }
.cs-head .pr-tags { margin-top: 4px; }
.cs-scroll { display: inline-flex; align-items: center; gap: 8px; color: var(--w60); font-size: 14px; margin-top: 24px; }

/* Next project */
.next { background: #000; color: #fff; padding: 110px 0 120px; border-top: 1px solid var(--w10); }
.next .eyebrow { color: var(--gray); }
.next-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: end; }
.next-title { font-family: var(--f-head); font-size: clamp(56px, 8vw, 128px); line-height: .95; letter-spacing: -.04em; display: block; }
.next-cat { display: block; color: var(--gray); margin-top: 18px; font-size: 16px; }
.next-media { display: block; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: #0c0c0c; }
.next-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.next-link:hover .next-media img { transform: scale(1.04); }
.next-all { display: inline-flex; margin-top: 40px; }
.next-link--text { display: block; }
.next-link--text .next-title { max-width: 16ch; transition: color .4s var(--ease); }
.next-link--text:hover .next-title { color: var(--green); }
@media (max-width: 809px) {
  .cs-head { padding: 140px 0 60px; }
  .cs-line { font-size: 17px; line-height: 26px; }
  .next-link { grid-template-columns: 1fr; gap: 24px; }
  .next { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wd { transform: none !important; transition: none !important; }
  .js .rv, .js .cs-sec.rv img { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  html.ld .ldr { display: none; }
  .nav.is-hidden { transform: translateX(-50%); }
}
.brands .h3 { line-height: 1.12; }

/* Footer sphere: keep it in empty space at every size */
@media (max-width: 1199px) {
  .footer-sphere { top: auto; bottom: 110px; right: 1vw; width: 16vw; height: 16vw; opacity: .9; }
}
@media (max-width: 809px) {
  .footer-sphere { bottom: 245px; right: 0; width: 120px; height: 120px; opacity: .85; }
}
