:root {
  --bg: #050f0c;
  --ink: #f4f6fb;
  --mute: #a9b8b1;
  --blue: #3b82f6;
  --purple: #a855f7;
  --pink: #ffe04a;
  --green: #4ade80;
  --grad: linear-gradient(100deg, #fff2a8 0%, #ffe04a 45%, #ffb22e 100%);
  --pad: clamp(20px, 6vw, 96px);
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 400 17px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(36px, 6.2vw, 84px); }
h2 { font-size: clamp(31px, 4.8vw, 66px); }
h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--mute); font-size: clamp(16px, 1.45vw, 20px); max-width: 34em; text-wrap: pretty; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #9fd9c3; }
.eyebrow b { color: var(--pink); margin-right: 0.6em; font-weight: 800; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* progress bar */
#bar { position: fixed; z-index: 30; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--grad); }

/* header */
.top {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 64px; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(5, 15, 12, 0.86), rgba(5, 15, 12, 0));
}
.brand { font-weight: 800; font-size: 22px; letter-spacing: -0.04em; text-decoration: none; color: #fff; display: inline-flex; align-items: center; gap: 3px; }
.brand i { width: 15px; height: 15px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 18px 2px rgba(255, 224, 74, 0.7); margin-right: 6px; }
.top nav { display: flex; align-items: center; gap: 22px; }
.navlink { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--mute); padding: 12px 4px; }
.navlink:hover { color: #fff; }

/* buttons */
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px;
  border-radius: 999px; background: var(--grad); color: #10231d; font-weight: 700; font-size: 17px; text-decoration: none;
  white-space: nowrap; box-shadow: 0 10px 40px -10px rgba(255, 190, 50, 0.6); transition: transform 0.2s, box-shadow 0.2s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 48px -10px rgba(255, 210, 80, 0.75); }
.cta:focus-visible, .navlink:focus-visible, .brand:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cta.small { min-height: 44px; padding: 0 20px; font-size: 15px; box-shadow: none; }
.cta.big { min-height: 64px; padding: 0 40px; font-size: 19px; }

/* ---------- story: plain stacked sections by default (no JavaScript) ---------- */
#story { position: relative; background: radial-gradient(120% 80% at 80% 0%, #12382e 0%, var(--bg) 60%); }
#fx, .rail { display: none; }
.panel { padding: 88px var(--pad) 8px; }
.panel:last-of-type { padding-bottom: 72px; }
.panel .copy > * + * { margin-top: 18px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 28px !important; }
.cue { display: none; }

/* ---------- story: pinned, scroll-driven (JavaScript on) ---------- */
.js-on #story { height: calc(100vh + 630vh); height: calc(100svh + 630vh); }
.js-on .pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.js-on #fx { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.js-on .panel {
  position: absolute; inset: 0; padding: 0; opacity: 0; visibility: hidden; pointer-events: none; will-change: opacity, transform;
  display: flex; align-items: flex-end; justify-content: center;
}
.js-on .panel .copy { pointer-events: auto; width: 100%; max-width: 620px; padding: 0 var(--pad) max(30px, env(safe-area-inset-bottom)); min-height: 41%; }
.js-on .panel.hero { align-items: center; }
.js-on .panel.hero .copy { min-height: 0; padding-top: 64px; padding-bottom: 0; }
.js-on .panel .copy::before { /* soft backing so text stays readable over the points */
  content: ''; position: absolute; z-index: -1; inset: auto 0 0 0; height: 62%;
  background: linear-gradient(180deg, rgba(5, 15, 12, 0), rgba(5, 15, 12, 0.82) 38%);
}
.js-on .panel.hero .copy::before { inset: 0; height: auto; background: radial-gradient(70% 46% at 50% 54%, rgba(5, 15, 12, 0.86), rgba(5, 15, 12, 0)); }
.js-on .cue { display: inline-flex; align-items: center; gap: 12px; color: var(--mute); font-size: 14px; }
.js-on .cue i { width: 1px; height: 34px; background: linear-gradient(180deg, var(--pink), transparent); animation: drop 1.8s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes drop { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(18px); opacity: 0; } }

@media (min-width: 820px) and (min-aspect-ratio: 1/1) {
  .js-on .panel, .js-on .panel.hero { align-items: center; justify-content: flex-start; }
  .js-on .panel .copy, .js-on .panel.hero .copy { width: 50%; max-width: 760px; min-height: 0; padding: 40px 0 0 var(--pad); }
  .js-on .panel.hero .copy { width: 62%; max-width: 900px; }
  .js-on .panel .copy::before, .js-on .panel.hero .copy::before { inset: 0 auto 0 0; width: 58%; height: auto; background: linear-gradient(90deg, rgba(5, 15, 12, 0.8) 55%, rgba(5, 15, 12, 0)); }
  .js-on .rail { display: flex; flex-direction: column; gap: 12px; position: absolute; right: 30px; top: 50%; transform: translateY(-50%); }
  .rail li { width: 7px; height: 7px; border-radius: 9px; background: rgba(255, 255, 255, 0.22); transition: height 0.3s, background 0.3s; }
  .rail li.on { height: 30px; background: var(--pink); }
}

/* ---------- sections below ---------- */
section:not(#story) { position: relative; padding: clamp(72px, 11vw, 150px) var(--pad); }
#proof { background: linear-gradient(180deg, var(--bg), #0a1b16); }
#proof::before { /* the strand carries on out of the story */
  content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: clamp(48px, 7vw, 96px); margin-left: -1px;
  background: linear-gradient(180deg, var(--pink), rgba(255, 224, 74, 0));
}
section h2.center { max-width: 16em; margin-top: 14px; font-size: clamp(29px, 4vw, 54px); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 18px; max-width: 1180px; margin: clamp(40px, 6vw, 76px) auto 0; text-align: center; }
.stats strong { display: block; font-size: clamp(30px, 5vw, 66px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 10px; color: var(--mute); font-size: 15px; }
.clients { margin: clamp(40px, 6vw, 72px) auto 0; text-align: center; color: var(--mute); max-width: 44em; }
.clients b { color: var(--ink); font-weight: 600; }
#who { background: #0a1b16; }
#projects { background: #0a1b16; }
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 1180px; margin: clamp(36px, 5vw, 64px) auto 0; }
.jobs li { padding: 24px 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09); }
.jobs strong { display: block; font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--pink); }
.jobs small { font-size: 0.36em; letter-spacing: 0; margin-left: 5px; color: var(--mute); font-weight: 600; }
.jobs span { display: block; margin-top: 12px; color: var(--ink); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 880px; margin: 40px auto 0; }
.chips li { padding: 13px 22px; border-radius: 999px; border: 1px solid rgba(255, 224, 74, 0.4); background: rgba(255, 224, 74, 0.07); font-weight: 500; }
#how { background: linear-gradient(180deg, #0a1b16, var(--bg)); }
.steps { display: grid; gap: 18px; max-width: 1180px; margin: clamp(40px, 6vw, 72px) auto 0; }
.steps li { padding: 30px 28px 32px; border-radius: 22px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09); }
.steps b { color: #10231d; display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: var(--grad); font-weight: 800; }
.steps h3 { margin: 20px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.steps p { color: var(--mute); }
#end { text-align: center; background: radial-gradient(90% 90% at 50% 100%, #1d4d3f 0%, var(--bg) 62%); }
#end h2 { font-size: clamp(36px, 6vw, 80px); }
#end .lede { margin: 20px auto 36px; }
footer { padding: 34px var(--pad) calc(34px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; color: var(--mute); font-size: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
footer .brand { font-size: 18px; }
footer .note { margin-left: auto; opacity: 0.7; }

@media (min-width: 760px) {
  .jobs { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .navlink { display: none; }
  .cta { width: 100%; }
  .cta.small { width: auto; }
  footer .note { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cue i { animation: none; }
  .cta { transition: none; }
}

/* ================= photo story (version 2) ================= */
img.frame { display: block; width: 100%; height: auto; }
.rays, .scrim, .meter { display: none; }
.panel { padding-top: 0; }
.panel .copy { padding: 26px var(--pad) 40px; }
.panel.hero .copy { padding-top: 26px; }

.js-on .panel { opacity: 1; visibility: visible; will-change: auto; }
.js-on .panel .copy { position: relative; z-index: 3; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.js-on .panel .copy::before, .js-on .panel.hero .copy::before { display: none; }
.js-on img.frame { position: absolute; z-index: 0; left: 0; top: 0; width: 100%; height: 62%; object-fit: cover; object-position: 50% 58%; opacity: 0; transform-origin: 50% 55%; will-change: opacity, transform; }
.js-on .panel.hero { align-items: flex-end; }
.js-on .panel.hero .copy { min-height: 41%; padding: 0 var(--pad) max(30px, env(safe-area-inset-bottom)); }
.js-on .scrim { display: block; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5, 15, 12, 0.55) 0%, rgba(5, 15, 12, 0) 12%, rgba(5, 15, 12, 0) 40%, var(--bg) 61%); }
.js-on .rays {
  display: block; position: absolute; z-index: 1; left: -20%; right: -20%; top: 0; height: 62%; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: repeating-conic-gradient(from 150deg at 50% 0%, rgba(255, 226, 140, 0) 0deg, rgba(255, 226, 140, 0.3) 1.4deg, rgba(255, 226, 140, 0) 3.4deg, rgba(255, 226, 140, 0) 6deg);
  -webkit-mask-image: radial-gradient(90% 100% at 50% 0%, #000 20%, transparent 86%); mask-image: radial-gradient(90% 100% at 50% 0%, #000 20%, transparent 86%);
  animation: sway 9s ease-in-out infinite alternate; transform-origin: 50% 0;
}
@keyframes sway { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }
.js-on .meter { display: block; position: absolute; z-index: 3; left: var(--pad); right: var(--pad); top: calc(59% - 104px); max-width: 300px; opacity: 0; padding: 12px 14px 13px; border-radius: 14px; background: rgba(5, 15, 12, 0.72); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; }
.meter p { font-weight: 600; margin-bottom: 8px; }
.meter small { font-weight: 400; color: var(--mute); margin-left: 6px; }
.meter div { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: var(--mute); }
.meter span { width: 52px; flex: none; }
.meter i { flex: 1; height: 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.13); overflow: hidden; }
.meter b { display: block; height: 100%; border-radius: 7px; transform-origin: 0 50%; background: #8fa39b; }
.meter #m-sun { background: var(--grad); transform: scaleX(0); }

@media (min-width: 820px) and (min-aspect-ratio: 1/1) {
  .js-on img.frame, .js-on .rays { height: 100%; }
  .js-on img.frame { object-position: 50% 50%; }
  .js-on .panel.hero { align-items: center; }
  .js-on .panel.hero .copy { min-height: 0; padding: 40px 0 0 var(--pad); }
  .js-on .panel .copy { width: 46%; }
  .js-on .panel.hero .copy { width: 54%; }
  .js-on .scrim { background: linear-gradient(90deg, rgba(5, 15, 12, 0.9) 0%, rgba(5, 15, 12, 0.72) 28%, rgba(5, 15, 12, 0) 56%), linear-gradient(180deg, rgba(5, 15, 12, 0.5) 0%, rgba(5, 15, 12, 0) 16%, rgba(5, 15, 12, 0) 80%, rgba(5, 15, 12, 0.75) 100%); }
  .js-on .meter { left: auto; right: 70px; top: auto; bottom: 44px; width: 300px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .js-on .rays { animation: none; } }

/* ================= film (version 3): scroll plays real camera moves ================= */
#film { display: none; }
.js-on #film { display: block; position: absolute; z-index: 1; left: 0; top: 0; width: 100%; height: 62%; }
.js-on img.frame { display: none; }
.js-on .panel.hero img.frame { display: block; opacity: 1; }
.js-on .scrim { z-index: 2; }
@media (min-width: 820px) and (min-aspect-ratio: 1/1) { .js-on #film { height: 100%; } }
@media (min-width: 820px) and (min-aspect-ratio: 1/1) {
  .js-on .scrim { background: linear-gradient(90deg, rgba(5, 15, 12, 0.9) 0%, rgba(5, 15, 12, 0.7) 26%, rgba(5, 15, 12, 0) 54%), linear-gradient(180deg, rgba(5, 15, 12, 0.45) 0%, rgba(5, 15, 12, 0) 14%); }
  .js-on .panel .copy { text-shadow: 0 2px 24px rgba(5, 15, 12, 0.7); }
}

.js-on #story { height: calc(100vh + 720vh); height: calc(100svh + 720vh); }

/* ================= site preview: real logo and links to the cloned pages ================= */
.brand img { display: block; height: 46px; width: auto; }
footer .brand img { height: 38px; }
.top nav { gap: clamp(12px, 1.8vw, 26px); }
.footnav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footnav a { color: var(--ink); text-decoration: none; padding: 8px 0; font-weight: 500; }
.footnav a:hover, .navlink:hover { color: var(--pink); }
@media (max-width: 900px) { .navlink { display: none; } }

.js-on .panel.hero h1 em { background: none; color: #ffe04a; -webkit-text-fill-color: #ffe04a; }

/* ===== lit buttons (swipe file, reel 9): top light, bottom shade, contact shadow, glow, pressed state ===== */
.cta {
  background: linear-gradient(180deg, #fff0a0 0%, #ffe04a 46%, #ffc02e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(120, 70, 0, 0.22), 0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 26px -8px rgba(255, 190, 50, 0.6);
}
.cta:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -2px 0 rgba(120, 70, 0, 0.22), 0 2px 3px rgba(0, 0, 0, 0.45), 0 14px 30px -8px rgba(255, 200, 70, 0.7); }
.cta:active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(90, 50, 0, 0.4); }
.cta.small { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(120, 70, 0, 0.22), 0 1px 2px rgba(0, 0, 0, 0.45); }
