/* ClickThru Studios — built from the "✅ FINAL" Figma frames (1440 canvas, 1280 content) */

:root {
  --blue: #07038d;
  --blue-2: #3747ff;
  --blue-3: #6582ff;
  --glow: #000dff;
  --indigo: #262167;
  --badge: #5778ff;

  --bg: #ffffff;
  --text: #000000;
  --muted: #4b4a57;
  --line: rgba(0, 0, 0, .14);
  --tint: #f6f4f9;
  --accent: var(--blue-2);       /* process icons + dots */
  --build-mesh: url("assets/build-mesh-light.webp");

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --side: clamp(16px, 5.56vw, 80px);   /* 80px at 1440 */
  --in: clamp(20px, 4.5vw, 64px);       /* inner padding of panels */
  --max: 1280px;
}
:root[data-theme="dark"] {
  --bg: #0f0f0f;
  --text: #ffffff;
  --muted: #b3b2c2;
  --line: rgba(255, 255, 255, .16);
  --tint: #161618;
  --accent: var(--blue-3);
  --build-mesh: url("assets/build-mesh-dark.webp");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); line-height: 1.5; color: var(--text); background: var(--bg); transition: background-color .3s, color .3s; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
hr { border: 0; margin: 0; }

.mono { font-family: var(--mono); text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 14px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue-3); outline-offset: 3px; }

/* Every section is a 1280px "frame" centred on the page, like the Figma */
.frame { width: min(var(--max), calc(100% - var(--side) * 2)); margin-inline: auto; position: relative; }
.title { font-weight: 400; font-size: clamp(30px, 3.34vw, 48px); line-height: 1.1; }

/* ---------- NAV (sits on the page, above the hero panel) ---------- */
.nav { height: 96px; display: flex; align-items: center; justify-content: space-between; z-index: 20; }
.nav__logo { display: inline-flex; color: var(--text); transition: opacity .2s; }
.nav__logo svg { width: clamp(36px, 3.34vw, 48px); height: auto; aspect-ratio: 1; }
.nav__logo:hover { opacity: .7; }
.nav__right { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; gap: 64px; font-family: var(--mono); font-weight: 500; font-size: 16px; text-transform: uppercase; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; transition: background .2s, border-color .2s; }
.icon-btn:hover { border-color: var(--text); }
.nav__burger { display: none; flex-direction: column; gap: 6px; }
.nav__burger span { width: 16px; height: 1.5px; background: currentColor; transition: transform .25s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 1100px) { .nav__links { gap: 36px; font-size: 14px; } }
@media (max-width: 760px) {
  .nav { height: 72px; }
  .nav__right { gap: 10px; }
  .nav__burger { display: inline-flex; position: relative; z-index: 31; }
  .nav__links { position: fixed; inset: 0; z-index: 30; flex-direction: column; justify-content: center; gap: 28px; padding: 0 24px; background: var(--bg); font-size: 24px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .nav__links.open { opacity: 1; visibility: visible; }
}

/* ---------- HERO PANEL ---------- */
.hero {
  color: #fff; overflow: hidden;
  display: flex; flex-direction: column;
  background: #000329 url("assets/hero-mesh.webp") center / cover no-repeat;
}
.marquee { overflow: hidden; white-space: nowrap; padding-top: clamp(20px, 2.9vw, 42px); }
.marquee__track { display: inline-flex; animation: marquee 80s linear infinite; will-change: transform; }
.marquee__group { font-weight: 300; font-size: clamp(76px, 15.56vw, 224px); line-height: .9; letter-spacing: -.02em; padding-left: clamp(12px, 3.3vw, 48px); }
@keyframes marquee { to { transform: translateX(-50%); } }

.hero__row { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: clamp(32px, 5.8vw, 70px); }
.hero__desc { font-family: var(--mono); text-transform: uppercase; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.67; width: 262px; flex: none; margin-left: var(--in); }
.mapcard { position: relative; width: 870px; max-width: 68%; aspect-ratio: 870 / 209; background: #000; overflow: hidden; flex: none; }
.mapcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.mapcard__logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52.6%; max-width: 110px; aspect-ratio: 1; background: #000; display: grid; place-items: center; }
.mapcard__logo svg { width: 82%; height: auto; }

.infobar {
  display: grid; grid-template-columns: 262px 1fr 262px; align-items: center;
  margin-top: clamp(32px, 12.5vw, 180px); min-height: 38px; padding: 8px calc(58px * var(--k, 1)) 8px var(--in);
  background: rgba(255,255,255,.8); color: #000; font-weight: 500; font-size: clamp(11px, 1.12vw, 16px);
}
.infobar span:nth-child(2), .infobar span:nth-child(3) { text-align: center; }

.scroll { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 16px; margin: clamp(24px, 5.3vw, 77px) 0 clamp(24px, 5.9vw, 85px); font-weight: 300; font-size: 12px; }
.scroll .mono { font-weight: 300; letter-spacing: .06em; }
.scroll svg { width: 23px; height: 48px; }
.scroll svg { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (max-width: 900px) {
  .hero__row { flex-direction: column; align-items: stretch; }
  .hero__desc { width: auto; max-width: 420px; margin-inline: var(--in); }
  .mapcard { width: 100%; max-width: none; }
  .infobar { margin-top: 32px; grid-template-columns: 1fr auto 1fr; padding-right: var(--in); }
  .infobar span:nth-child(3) { text-align: right; }
  .scroll { margin-top: 28px; }
}
@media (max-width: 560px) {
  .hero { min-height: 0; }
  .infobar { grid-template-columns: 1fr; gap: 4px; padding-block: 10px; }
  .infobar span:nth-child(n) { text-align: left; }
  .mapcard { aspect-ratio: 16 / 7; }
  .mapcard__logo { width: 76px; }
    }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border: 0; border-radius: 100px; cursor: pointer; background: #090f64; color: #fff; font-family: var(--mono); font-weight: 500; font-size: clamp(15px, 1.39vw, 20px); text-transform: uppercase; transition: transform .2s, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { background: var(--blue-2); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(7,3,141,.35); }
.btn--white { background: #fff; color: #000; }
.btn--white:hover { background: #e6ebff; box-shadow: 0 10px 28px rgba(0,0,0,.3); }

/* ---------- WHAT WE BUILD ---------- */
.build { padding: clamp(40px, 4.45vw, 64px) var(--in) clamp(48px, 5vw, 72px); isolation: isolate; overflow: hidden; }
.build::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--build-mesh) center / cover no-repeat; opacity: .1; }
.build .title { margin-left: calc(58px - var(--in)); }
.build__cols { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, 288px); justify-content: space-between; gap: 40px; margin-left: calc(58px - var(--in)); margin-right: calc(140px - var(--in)); }
.svc svg { height: 50px; width: auto; margin-bottom: 31px; }
.svc__num { display: block; font-size: clamp(18px, 1.67vw, 24px); line-height: 1.25; margin-bottom: 1px; text-transform: none; }
.svc h3 { font-weight: 600; font-size: clamp(20px, 1.67vw, 24px); line-height: 1.67; }
.svc p { font-size: clamp(17px, 1.67vw, 24px); line-height: 1.67; margin-top: 12px; }

/* ---------- PROCESS ---------- */
.process { padding: clamp(44px, 6.1vw, 88px) 0 clamp(56px, 8vw, 128px); }
.process .title { margin-left: 58px; }
.stage { position: relative; margin: clamp(-10px, -1.6vw, -24px) 0 0 58px; width: calc(100% - 116px); padding-top: 326px; }
.stage__curve { position: absolute; left: 0; top: -60px; width: calc(100% * 1180 / 1164); height: 362px; color: var(--text); overflow: visible; }
.curve-arrow { fill: var(--accent); }
.curve-draw { clip-path: inset(0 100% 0 0); transition: clip-path 2.2s cubic-bezier(.3,.7,.2,1); }
.stage.in .curve-draw { clip-path: inset(0 0 0 0); }
.stage__caption { position: absolute; top: 0; left: 72.3%; width: 288px; text-align: right; font-weight: 600; font-size: 16px; line-height: 1.9; }
.steps { display: grid; grid-template-columns: 288px 288px 288px; justify-content: space-between; margin-right: calc(1164px - 882px - 288px); }
.step { position: relative; }
.step__icon { position: absolute; top: -133px; left: -9px; color: var(--accent); }
.step__icon svg { width: 48px; height: 48px; }
.step__dot { position: absolute; top: -55px; left: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
.step__dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.step--up .step__icon { top: -149px; } .step--up .step__dot { top: -71px; }
.step h3 { font-weight: 600; font-size: clamp(20px, 1.67vw, 24px); line-height: 1.67; }
.step p { font-size: clamp(17px, 1.67vw, 24px); line-height: 1.67; margin-top: 12px; }

@media (max-width: 1240px) {
  .build__cols, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-right: 0; }
}
@media (max-width: 820px) {
  .build .title, .build__cols { margin-left: 0; }
  .build__cols { grid-template-columns: 1fr; gap: 40px; }
  .process .title { margin-left: var(--in); }
  .stage { margin: 32px var(--in) 0; width: auto; padding-top: 0; }
  .stage__curve { display: none; }
  .stage__caption { position: static; width: auto; text-align: left; margin-bottom: 28px; color: var(--muted); }
  .steps { grid-template-columns: 1fr; gap: 0; border-left: 2px solid var(--line); margin-left: 14px; }
  .step { padding: 0 0 36px 40px; }
  .step:last-child { padding-bottom: 0; }
  .step__icon, .step--up .step__icon { position: static; display: block; margin-bottom: 12px; }
  .step__icon svg { width: 40px; height: 40px; }
  .step__dot, .step--up .step__dot { top: 0; left: -16px; }
}

/* ---------- FOOTER PANEL ---------- */
.footer { color: #fff; background: #000329 url("assets/footer-mesh.webp") center / cover no-repeat; padding: clamp(40px, 5vw, 72px) 58px clamp(32px, 4vw, 68px); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-right: calc(140px - 58px); }
.footer__headline { font-size: clamp(26px, 2.78vw, 40px); line-height: 1.15; flex: 1 1 600px; }
.footer__rule { height: 1px; background: #fff; margin: clamp(32px, 4.4vw, 66px) 0 clamp(32px, 4.9vw, 72px); }
.footer__mid { display: flex; justify-content: space-between; gap: 40px; }
.footer__left { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.footer__links { display: flex; flex-direction: column; gap: 64px; font-size: clamp(18px, 1.53vw, 22px); padding-top: 16px; }
.footer__links a { width: fit-content; border-bottom: 1px solid transparent; transition: border-color .2s; }
.footer__links a:hover { border-color: #fff; }

.hello { position: relative; width: 750px; max-width: 100%; min-height: 443px; background: #000; padding: 43px 48px 48px; }
.hello__title { font-weight: 400; font-size: clamp(32px, 3.34vw, 48px); line-height: 1; }
.social { display: flex; gap: 40px; margin-top: 56px; }
.social a, .social__static { display: block; transition: color .2s, transform .2s; }
.social a:hover { color: var(--badge); transform: translateY(-2px); }
.social svg { width: 40px; height: 40px; }
.hello__contact { margin-top: 56px; display: grid; gap: 14px; font-size: clamp(19px, 1.74vw, 25px); line-height: 1; }
.hello__contact a { border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.hello__contact a:hover { color: var(--badge); border-color: var(--badge); }
.badge { position: absolute; right: 36px; bottom: 34px; width: 178px; height: 178px; display: grid; place-items: center; }
.badge__text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.badge__globe { width: 90px; height: auto; transition: transform .3s; }
.badge:hover .badge__globe { transform: scale(1.08); }
@keyframes spin { to { transform: rotate(360deg); } }

.footer__logo { width: 159px; height: auto; }
.copy { text-align: center; font-weight: 500; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.55; padding: 48px var(--side) 40px; }

@media (max-width: 1100px) {
  .footer { padding-inline: var(--in); }
  .footer__top { padding-right: 0; }
  .footer__mid { flex-direction: column-reverse; }
  .footer__links { flex-direction: row; flex-wrap: wrap; gap: 16px 40px; padding-top: 0; }
  .hello { width: 100%; }
}
@media (max-width: 560px) {
  .hello { padding: 28px 22px 210px; min-height: 0; }
  .social { gap: 24px; margin-top: 32px; }
  .social svg { width: 34px; height: 34px; }
  .hello__contact { margin-top: 32px; }
  .badge { width: 150px; height: 150px; right: 50%; transform: translateX(50%); bottom: 28px; }
  .badge__globe { width: 74px; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee { white-space: normal; }
  .marquee__track { display: block; }
  .marquee__group + .marquee__group { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .curve-draw { clip-path: none; }
}
