/* =========================================================
   Thabani Chakavarika — portfolio
   Light paper base with dark "rooms". Edit tokens here.
   ========================================================= */
:root {
  --paper: #F3F2EE;
  --paper-2: #E8E6E0;
  --card: #FFFFFF;
  --ink: #0B0B0F;
  --ink-2: #15151B;
  --ink-3: #1E1E26;
  --muted: #55555F;        /* on paper: 6.6:1 */
  --muted-d: #A3A3AE;      /* on ink: 8:1 */
  --line: rgba(11, 11, 15, .1);
  --line-d: rgba(255, 255, 255, .1);

  --accent: #2F4BFF;       /* on paper: 5.6:1 */
  --accent-d: #8A98FF;     /* on ink: 7:1 */
  --coral: #FF5A36;
  --lime: #C8F560;

  --f-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1320px;
  --radius-room: 40px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.theme-dark a:focus-visible, .theme-dark button:focus-visible { outline-color: var(--accent-d); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .02em; }
.eyebrow { display: inline-block; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.theme-dark .eyebrow { color: var(--muted-d); }
.display {
  font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 85;
  font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: .95; letter-spacing: -0.03em; text-transform: uppercase;
}
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 56px; }
.section-head.center { align-items: center; text-align: center; }
.section-sub { max-width: 520px; color: var(--muted); }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 700; }
.skip-link:focus { top: 16px; }
.hide-sm { }

/* ---------- Rooms: dark sections slide over light ones ---------- */
.theme-dark { background: var(--ink); color: var(--paper); }
.feature, .services, .work, .stack, .statement {
  position: relative; border-radius: var(--radius-room) var(--radius-room) 0 0; margin-top: calc(var(--radius-room) * -1);
}
.journey { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--accent); color: #fff; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--lime); color: var(--ink); }
.magnetic, .magnetic-soft { will-change: transform; }

/* ---------- Preloader ---------- */
.loader { display: none; }
.js .loader {
  display: flex; position: fixed; inset: 0; z-index: 500; background: var(--ink); color: var(--paper);
  flex-direction: column; justify-content: flex-end; padding: 28px;
  transition: transform 1s var(--ease);
}
.loader-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.loader-name { font-family: var(--f-mono); font-size: 13px; color: var(--muted-d); }
.loader-count { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 75; font-size: clamp(5rem, 16vw, 13rem); line-height: .8; }
.loader-bar { height: 2px; background: var(--line-d); margin-top: 22px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 100%; background: var(--paper); transform: scaleX(0); transform-origin: left; }
.is-loaded .loader { transform: translateY(-100%); }

/* ---------- Cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; mix-blend-mode: difference; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor-dot { position: fixed; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; }
.cursor-ring {
  position: fixed; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 1.5px solid #fff;
  display: flex; align-items: center; justify-content: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s ease;
}
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.is-label .cursor-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: #fff; }
.cursor-label { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: #000; opacity: 0; transition: opacity .2s ease; }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

/* ---------- Progress ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 260; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- Nav (switches colour over dark rooms) ---------- */
.nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 250;
  display: flex; align-items: center; gap: 24px; padding: 18px 28px;
  color: var(--ink); transition: color .35s ease, top .5s var(--ease);
}
/* note: no transform on .nav — it would trap the fixed mobile menu inside the bar */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(243, 242, 238, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); transition: opacity .35s ease, background-color .35s ease;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.on-dark { color: var(--paper); }
.nav.on-dark::before { background: rgba(11, 11, 15, .6); border-bottom-color: var(--line-d); }
.nav.is-hidden { top: -96px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* ---------- Brand mark: rounded square + serif T + sparkle (SVG) ----------
   Colours: --logo-bg (square) and --logo-fg (T + sparkle). */
.t-logo { display: block; overflow: visible; }
.t-logo .lg-sq { fill: var(--logo-bg, #151515); transition: fill .35s ease; }
.t-logo .lg-t, .t-logo .lg-star { fill: var(--logo-fg, #fff); transition: fill .35s ease; }
.t-logo .lg-sq, .t-logo .lg-t, .t-logo .lg-star { transform-box: fill-box; transform-origin: 50% 50%; }
.t-logo .lg-star { transition: transform .7s var(--ease), fill .35s ease; }
/* nav badge sits tilted; straightens on hover while the sparkle spins; sparkle twinkles while idle */
.brand-logo { width: 38px; height: 38px; --logo-bg: var(--ink); --logo-fg: var(--paper); transform: rotate(-9deg) skewX(-3deg); transition: transform .6s var(--ease); }
.nav.on-dark .brand-logo, .nav.menu-open .brand-logo { --logo-bg: var(--paper); --logo-fg: var(--ink); }
.brand-logo .lg-star { animation: navTwinkle 4.5s ease-in-out infinite; }
.brand:hover .brand-logo { transform: rotate(0deg) skewX(0deg) scale(1.08); }
.brand:hover .brand-logo .lg-star { animation: none; transform: rotate(180deg) scale(1.3); }
@keyframes navTwinkle { 0%, 70%, 100% { transform: scale(1) rotate(0deg); } 78% { transform: scale(1.35) rotate(45deg); } 86% { transform: scale(.85) rotate(90deg); } }

.loader-logo { width: clamp(64px, 8vw, 104px); height: auto; aspect-ratio: 1; margin-bottom: auto; --logo-bg: var(--paper); --logo-fg: var(--ink); }
.js .loader-logo .lg-sq { animation: lgSq .7s var(--ease) both; }
.js .loader-logo .lg-t { animation: lgT .7s var(--ease) .3s both; }
.js .loader-logo .lg-star { animation: lgStar .9s var(--ease) .6s both; }
@keyframes lgSq { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }
@keyframes lgT { from { transform: translateY(14px); opacity: 0; } }
@keyframes lgStar { from { transform: rotate(-180deg) scale(0); opacity: 0; } }

/* ---------- Loader: the mark's concept — T fills 0→100%, sparkle twinkles, then bursts ---------- */
.js .loader { justify-content: center; align-items: center; gap: 28px; padding: 28px; }
.ld-stage { position: relative; display: flex; align-items: center; justify-content: center; }
.ld-glow { position: absolute; width: 140%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(243,242,238,.14), transparent 62%); animation: ldPulse 2.4s ease-in-out infinite; }
.ld-mark { position: relative; width: clamp(130px, 17vw, 220px); height: auto; overflow: visible; }
.ld-ghost { fill: none; stroke: rgba(243,242,238,.35); stroke-width: .5; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ldDraw 1.1s var(--ease) forwards; }
.ld-t { fill: var(--paper); }
.ld-star { fill: var(--paper); transform-box: fill-box; transform-origin: 50% 50%; animation: ldTwinkle 1.2s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255,255,255,.6)); }
.loader.is-full .ld-star { animation: ldBurst .55s var(--ease) forwards; }
.loader.is-full .ld-ghost { stroke: rgba(243,242,238,0); transition: stroke .3s ease; }
.ld-name { color: var(--muted-d); letter-spacing: .18em; text-transform: uppercase; font-size: 11.5px; opacity: 0; animation: ldName .8s var(--ease) .35s forwards; }
@keyframes ldDraw { to { stroke-dashoffset: 0; } }
@keyframes ldTwinkle { 0%, 100% { transform: scale(.7) rotate(0deg); opacity: .65; } 50% { transform: scale(1.15) rotate(90deg); opacity: 1; } }
@keyframes ldBurst { 40% { transform: scale(1.9) rotate(200deg); opacity: 1; } 100% { transform: scale(1.4) rotate(270deg); opacity: 1; } }
@keyframes ldPulse { 0%, 100% { transform: scale(.9); opacity: .6; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes ldName { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.brand-name { font-weight: 700; font-size: 15px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 10px 14px; text-decoration: none; font-weight: 600; font-size: 14.5px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links .menu-only { display: none; }
@media (max-width: 760px) { .nav-links .menu-only { display: block; color: var(--lime); } }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  padding: 11px 20px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14.5px;
  background: var(--ink); color: var(--paper); transition: background-color .35s ease, color .35s ease;
}
.nav.on-dark .nav-cta { background: var(--paper); color: var(--ink); }
.nav-cta:hover { background: var(--accent) !important; color: #fff !important; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- HERO (light) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; padding: 110px 0 calc(var(--radius-room) + 36px);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background:
    radial-gradient(40% 50% at 78% 70%, rgba(47, 75, 255, .22), transparent 70%),
    radial-gradient(35% 45% at 20% 85%, rgba(255, 90, 54, .16), transparent 70%),
    var(--paper);
}
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-gl.is-ready + .hero-grain { opacity: .5; }
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-meta { position: relative; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #16A34A; margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: ping 2s ease-out infinite; }

.hero-name {
  position: relative; display: flex; flex-direction: column; align-items: center;
  font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 75, "wght" 800;
  font-size: clamp(3.1rem, 14.6vw, 17rem); line-height: .84; letter-spacing: -0.02em;
  white-space: nowrap; margin: 40px 0 28px; user-select: none;
}
.name-line { display: block; overflow: hidden; padding: 0 .02em .04em; }
.ch {
  display: inline-block; font-variation-settings: "wdth" var(--w, 75), "wght" var(--wg, 800);
  color: var(--c, var(--ink)); transition: font-variation-settings .25s ease-out, color .3s ease;
}
.js .hero-name .ch { transform: translateY(105%); }
.is-loaded .hero-name .ch { transform: none; transition: transform 1.1s var(--ease) calc(var(--i) * 35ms + .35s), font-variation-settings .25s ease-out, color .3s ease; }
.is-hero-ready .name-line { overflow: visible; }
.is-hero-ready .hero-name .ch { transition: font-variation-settings .25s ease-out, color .3s ease; will-change: transform, opacity; }
.ch.is-accent { color: var(--accent); }

.hero-foot {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 28px 40px;
}
.roles { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; white-space: nowrap; }
.roles i { font-style: normal; color: var(--accent); margin: 0 6px; }
.hero-lead { max-width: 460px; color: var(--muted); font-size: 16.5px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: flex-end; }
.store-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 999px;
  background: rgba(255,255,255,.7); border: 1px solid var(--line); text-decoration: none; font-size: 14px;
  backdrop-filter: blur(8px); transition: border-color .3s ease, background-color .3s ease;
}
.store-pill:hover { border-color: var(--ink); background: #fff; }
.hint { grid-column: 1 / -1; text-align: center; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; }

/* ---------- FEATURE: Appetizer (dark, pinned) ---------- */
.feature { z-index: 2; }
.is-nav-scrolling .feature .wash,
.is-nav-scrolling .feature-word span,
.is-nav-scrolling .callout,
.is-nav-scrolling .screen,
.is-nav-scrolling .phone,
.is-nav-scrolling .phone::after {
  transition-duration: 0s !important;
  animation: none !important;
}
.feature-pin { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 110px 0 150px; overflow: hidden; border-radius: inherit; }
.feature-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }

/* colour wash per step */
.feature-bg { position: absolute; inset: 0; pointer-events: none; }
.wash { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.wash.is-active { opacity: 1; }
.wash[data-wash="0"] { background: radial-gradient(45% 60% at 74% 50%, rgba(26, 188, 165, .45), transparent 70%), radial-gradient(30% 40% at 10% 100%, rgba(26, 188, 165, .14), transparent 70%); }
.wash[data-wash="1"] { background: radial-gradient(45% 60% at 74% 50%, rgba(60, 90, 255, .5), transparent 70%), radial-gradient(30% 40% at 10% 100%, rgba(138, 152, 255, .14), transparent 70%); }
.wash[data-wash="2"] { background: radial-gradient(45% 60% at 74% 50%, rgba(200, 245, 96, .32), transparent 70%), radial-gradient(30% 40% at 10% 100%, rgba(253, 224, 71, .12), transparent 70%); }
.wash[data-wash="3"] { background: radial-gradient(45% 60% at 74% 50%, rgba(150, 80, 255, .48), transparent 70%), radial-gradient(30% 40% at 10% 100%, rgba(255, 90, 54, .14), transparent 70%); }

/* giant outlined word */
.feature-word { position: absolute; right: -2vw; top: 50%; height: 0; z-index: 1; pointer-events: none; }
.feature-word span {
  position: absolute; right: 0; top: 0; transform: translateY(-30%) translateX(8%); opacity: 0;
  font-family: var(--f-display); font-weight: 900; font-variation-settings: "wdth" 70; font-size: min(var(--fs, 22vw), 26rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .14); white-space: nowrap;
  transition: transform 1s var(--ease), opacity .7s ease;
}
.feature-word span.is-active { opacity: 1; transform: translateY(-50%); }
.feature-word span.is-past { opacity: 0; transform: translateY(-70%) translateX(-8%); }

/* callouts */
.callout {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(30, 30, 38, .62); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); white-space: nowrap;
  opacity: 0; transform: translateY(24px) scale(.9); filter: blur(6px); pointer-events: none;
  transition: opacity .45s ease, transform .7s var(--ease), filter .45s ease;
}
.callout.is-on { opacity: 1; transform: none; filter: none; transition-delay: .25s; }
.callout.co-r.is-on { transition-delay: .45s; }
.co-l { left: -4%; top: 22%; }
.co-r { right: -4%; bottom: 22%; }
.callout b { display: block; font-size: 14.5px; }
.callout small { display: block; font-size: 12px; color: var(--muted-d); }
.co-ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: rgba(255,255,255,.1); color: var(--paper); }
.co-green { background: #4ADE80; color: var(--ink); }
.co-teal { background: #1ABCA5; color: #fff; font-size: 13px; }
.co-blue { background: #3C5AFF; color: #fff; font-size: 12px; }
.co-amber { background: var(--lime); color: var(--ink); }
.co-purple { background: #9650FF; color: #fff; }

/* progress bar */
.feature-progress { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 3; display: flex; align-items: center; gap: 28px; }
.fp-count { display: flex; align-items: baseline; gap: 8px; }
.fp-roll { display: inline-flex; flex-direction: column; height: 1em; overflow: hidden; font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 80; font-size: 52px; line-height: 1; }
.fp-roll span { display: block; height: 1em; transform: translateY(calc(var(--step, 0) * -100%)); transition: transform .8s var(--ease); }
.fp-total { color: var(--muted-d); }
.fp-segs { flex: 1; display: flex; gap: 8px; }
.fp-segs i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.fp-segs b { display: block; height: 100%; width: 100%; background: var(--paper); transform-origin: left; transform: scaleX(var(--f, 0)); }
.fp-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-d); transition: opacity .4s ease; }
.fp-hint svg { animation: bob 1.8s ease-in-out infinite; }
.feature.is-done .fp-hint { opacity: 0; }
.feature-copy { display: flex; flex-direction: column; gap: 20px; }
.feature-title {
  font-family: var(--f-display); font-weight: 900; font-variation-settings: "wdth" 80;
  font-size: clamp(3.4rem, 9vw, 8.5rem); line-height: .85; letter-spacing: -0.03em; text-transform: uppercase;
}
.feature-sub { color: var(--muted-d); font-size: 18px; max-width: 460px; }
.steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line-d); }
.step {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-d);
  opacity: .34; cursor: pointer; transition: opacity .5s ease;
}
.step::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--paper);
  transform-origin: left; transform: scaleX(0);
}
.step.is-active::after { transform: scaleX(var(--sp, 0)); }
.step.is-done::after { transform: scaleX(1); opacity: .35; }
.step:hover { opacity: .7; }
.step.is-active { opacity: 1; }
.step h3 { font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 90; font-size: 1.35rem; letter-spacing: -0.01em; transition: font-size .5s var(--ease), transform .5s var(--ease); transform-origin: left; }
.step.is-active h3 { font-size: 1.9rem; }
.step p { color: var(--muted-d); font-size: 15px; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease), margin .5s var(--ease); }
.step.is-active p { max-height: 80px; margin-top: 4px; }
.step-num { padding-top: 6px; color: var(--accent-d); }
.feature-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.feature-stack { color: var(--muted-d); }

.phone-stage { position: relative; height: calc(660px * var(--fit, 1)); display: flex; align-items: center; justify-content: center; perspective: 1400px; }
.phone-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(138,152,255,.45), rgba(255,90,54,.15) 50%, transparent 70%); filter: blur(40px); }
.phone {
  --ry: -18deg; --rx: 6deg;
  position: relative; width: 300px; height: 620px; border-radius: 52px; padding: 12px;
  background: linear-gradient(145deg, #3A3A44, #121217 40%, #2A2A32);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18), 0 50px 100px -30px rgba(0,0,0,.8), 0 30px 60px -20px rgba(138,152,255,.25);
  transform: translateX(var(--tx, 0px)) rotateY(var(--ry)) rotateX(var(--rx)) rotateZ(var(--rz, 0deg)) scale(var(--ps, 1));
  transform-style: preserve-3d; scale: var(--fit, 1);
  transition: transform .9s var(--ease);
}
/* desktop pinned mode: everything fits in one screen */
@media (min-width: 1081px) {
  .has-gsap .feature-pin { height: 100vh; min-height: 620px; padding: 90px 0 110px; }
}
@media (min-width: 1081px) and (max-height: 900px) {
  .feature-title { font-size: clamp(3rem, 6vw, 5.4rem); }
  .feature-sub { font-size: 16px; }
  .feature-copy { gap: 14px; }
  .step { padding: 10px 0; }
  .step.is-active h3 { font-size: 1.6rem; }
  .feature-progress { bottom: 26px; }
  .fp-roll { font-size: 42px; }
}
.phone::after { /* moving glass reflection */
  content: ""; position: absolute; inset: 12px; border-radius: 42px; pointer-events: none; z-index: 6;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 45%, transparent 60%);
  background-size: 250% 100%; background-position: var(--shine, 100%) 0; transition: background-position .9s var(--ease);
}
.phone-side { position: absolute; right: -3px; top: 150px; width: 4px; height: 80px; border-radius: 2px; background: #2A2A32; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #FAF7F2; color: #1A1712; }
.island { position: absolute; top: 11px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000; z-index: 5; }
.status { position: absolute; top: 15px; left: 28px; right: 24px; z-index: 4; display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; }
.status-icons { display: flex; gap: 4px; align-items: center; }
.status-icons i { width: 14px; height: 9px; border-radius: 2px; background: currentColor; opacity: .85; }
.status-icons i:last-child { width: 20px; border-radius: 3px; }

.screen {
  position: absolute; inset: 0; padding: 60px 16px 18px; display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateY(40px) scale(.92); filter: blur(8px);
  transition: opacity .45s ease, transform .7s var(--ease), filter .45s ease;
}
.screen.is-active { opacity: 1; transform: none; filter: none; }
.screen.is-past { transform: translateY(-40px) scale(.92); }

/* real app screenshots fill the screen (same 9:19.5 ratio as the phone) */
.screen:has(.shot) { padding: 0; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.screen.is-active .shot { animation: shotIn 1.1s var(--ease) both; }
.screen .scan-line { top: 4%; animation: scanTop 2.4s ease-in-out infinite; }
@keyframes shotIn { from { transform: scale(1.08); filter: saturate(.6) brightness(1.08); } }
@keyframes scanTop { 0%, 100% { top: 4%; } 50% { top: 16%; } }

/* micro-animations that replay each time a screen becomes active */
.screen.is-active .food { animation: pop .55s var(--ease) backwards; }
.screen.is-active .food:nth-child(2) { animation-delay: .08s; } .screen.is-active .food:nth-child(3) { animation-delay: .16s; }
.screen.is-active .food:nth-child(4) { animation-delay: .24s; } .screen.is-active .food:nth-child(5) { animation-delay: .32s; }
.screen.is-active .sheet { animation: rise .6s var(--ease) .25s backwards; }
.screen.is-active .chips span { animation: pop .45s var(--ease) backwards; }
.screen.is-active .chips span:nth-child(1) { animation-delay: .55s; } .screen.is-active .chips span:nth-child(2) { animation-delay: .67s; }
.screen.is-active .chips span:nth-child(3) { animation-delay: .79s; } .screen.is-active .chips span:nth-child(4) { animation-delay: .91s; }
.screen.is-active .chips span:nth-child(5) { animation-delay: 1.03s; }
.screen.is-active .msg { animation: rise .5s var(--ease) backwards; }
.screen.is-active .msg:nth-child(1) { animation-delay: .2s; } .screen.is-active .msg:nth-child(2) { animation-delay: .75s; }
.screen.is-active .msg:nth-child(3) { animation-delay: 1.3s; } .screen.is-active .msg:nth-child(4) { animation-delay: 1.7s; }
.screen.is-active .plan-row { animation: slideIn .55s var(--ease) backwards; }
.screen.is-active .plan-row:nth-child(1) { animation-delay: .15s; } .screen.is-active .plan-row:nth-child(2) { animation-delay: .25s; }
.screen.is-active .plan-row:nth-child(3) { animation-delay: .35s; } .screen.is-active .plan-row:nth-child(4) { animation-delay: .45s; }
.screen.is-active .plan-row:nth-child(5) { animation-delay: .55s; }
.screen.is-active .widget-big { animation: pop .7s var(--ease) .15s backwards; }
.screen.is-active .app-ic { animation: pop .45s var(--ease) backwards; }
.screen.is-active .app-ic:nth-child(odd) { animation-delay: .4s; } .screen.is-active .app-ic:nth-child(even) { animation-delay: .5s; }
.screen.is-active .widget-small { animation: rise .6s var(--ease) .65s backwards; }
.app-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 2px; }
.app-title { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 90; font-size: 22px; letter-spacing: -0.01em; }
.app-pill { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #FFE7DC; color: #B3361A; }
.app-btn { display: block; text-align: center; padding: 12px; border-radius: 14px; background: #FF5A36; color: #fff; font-weight: 800; font-size: 14px; }

/* scan */
.scan-view { position: relative; flex: 1; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, #DDE7EA, #B9C8CC); }
.fridge { position: absolute; inset: 18% 10% 22%; border-radius: 14px; background: linear-gradient(180deg, #F4F8F9, #DCE6E8); box-shadow: inset 0 -30px 0 rgba(0,0,0,.04), inset 0 0 0 2px rgba(255,255,255,.7); }
.food { position: absolute; border-radius: 50%; box-shadow: inset -6px -6px 0 rgba(0,0,0,.12); }
.f-tomato { width: 54px; height: 50px; left: 12%; top: 18%; background: #E5432A; }
.f-basil { width: 64px; height: 34px; left: 48%; top: 14%; border-radius: 50% 50% 40% 40%; background: #3F8F3A; }
.f-cheese { width: 52px; height: 52px; left: 58%; top: 52%; background: #FBF6E6; box-shadow: inset -5px -5px 0 rgba(0,0,0,.06); }
.f-egg { width: 36px; height: 44px; left: 18%; top: 58%; background: #F2DCC0; }
.f-lemon { width: 46px; height: 38px; left: 36%; top: 50%; background: #F7D532; }
.corner { position: absolute; width: 26px; height: 26px; border: 3px solid #fff; }
.c1 { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.c2 { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.c3 { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.c4 { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.scan-line { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; box-shadow: 0 0 16px 4px rgba(255,255,255,.8); animation: scan 2.6s ease-in-out infinite; }
.sheet { background: #fff; border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -6px 30px rgba(0,0,0,.06); }
.sheet-label { font-weight: 800; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #F2EEE7; }

/* chat */
.chat { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 18px; font-size: 12.5px; line-height: 1.45; }
.msg.me { align-self: flex-end; background: #1A1712; color: #FAF7F2; border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.typing { display: flex; gap: 4px; padding: 13px 15px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #B6AFA3; animation: dot 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.composer { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-radius: 999px; background: #fff; font-size: 13px; color: #8A8378; }
.composer b { width: 32px; height: 32px; border-radius: 50%; background: #FF5A36; }

/* plan */
.plan { display: flex; flex-direction: column; gap: 9px; }
.plan-row { display: grid; grid-template-columns: 34px 52px 1fr; align-items: center; gap: 10px; padding: 8px; border-radius: 18px; background: #fff; }
.day { font-size: 11px; font-weight: 800; color: #8A8378; text-transform: uppercase; }
.meal { font-size: 13px; font-weight: 800; }
.dish { width: 52px; height: 52px; border-radius: 14px; }
.d1 { background: radial-gradient(circle at 40% 40%, #F79E73 0 30%, #E8D9B5 31% 52%, #6C9A4A 53%); }
.d2 { background: radial-gradient(circle at 50% 50%, #E9A23B 0 45%, #F5EEDC 46%); }
.d3 { background: radial-gradient(circle at 35% 40%, #E5432A 0 14%, transparent 15%), radial-gradient(circle at 65% 60%, #FBF6E6 0 16%, transparent 17%), #E9C46A; }
.d4 { background: radial-gradient(circle at 50% 50%, #7A3E22 0 30%, #5A9A3C 31% 45%, #F0E2C5 46%); }
.d5 { background: radial-gradient(circle at 40% 45%, #FFF3D1 0 12%, #F2B705 13% 18%, #C9411F 19%); }

/* home + widgets */
.screen-home { background: linear-gradient(170deg, #FFB199, #FF5A36 45%, #6A2CF5); color: #fff; padding-top: 62px; }
.widget-big { position: relative; overflow: hidden; border-radius: 26px; padding: 18px; min-height: 160px; background: rgba(255,255,255,.95); color: #1A1712; display: flex; flex-direction: column; gap: 4px; }
.w-label { font-size: 11px; font-weight: 800; text-transform: uppercase; color: #FF5A36; letter-spacing: .06em; }
.w-title { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 85; font-size: 22px; line-height: 1.05; max-width: 60%; }
.w-meta { font-size: 12px; color: #8A8378; font-weight: 700; margin-top: auto; }
.w-dish { position: absolute; right: -24px; bottom: -24px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 45% 45%, #E9B44C 0 28%, #F6E7C1 29% 40%, #8DB255 41% 48%, #F3EAD8 49%); }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 8px 6px; }
.app-ic { aspect-ratio: 1; border-radius: 15px; background: rgba(255,255,255,.28); }
.a1 { background: #fff; } .a4 { background: #1A1712; } .a6 { background: #C8F560; }
.widget-small { margin-top: auto; border-radius: 22px; padding: 14px 16px; background: rgba(26,23,18,.55); backdrop-filter: blur(10px); display: flex; flex-direction: column; }
.widget-small .w-label { color: #FFD1C4; }
.w-title-s { font-weight: 800; font-size: 15px; }


/* ---------- SERVICES (light, stacking cards) ---------- */
.services { z-index: 3; background: var(--paper); padding: 140px 0 120px; }
.stack-cards { display: flex; flex-direction: column; gap: 28px; }
.s-card {
  position: sticky; top: calc(110px + var(--i) * 26px);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; min-height: 480px;
  padding: 44px; border-radius: 32px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(11,11,15,.25); transform-origin: top center;
}
.s-text { display: flex; flex-direction: column; gap: 18px; }
.s-num { color: var(--accent); font-size: 14px; }
.s-card h3 { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 85; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.s-card p { color: var(--muted); max-width: 460px; }
.s-list { list-style: none; margin: auto 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; color: var(--ink); }
.s-list li::before { content: "→ "; color: var(--accent); }
.s-visual { position: relative; border-radius: 24px; overflow: hidden; min-height: 320px; }

.s-code { background: var(--ink); display: flex; align-items: center; justify-content: center; padding: 28px; }
.code-win { width: 100%; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line-d); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line-d); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3A44; }
.win-bar i:first-child { background: #FF5F57; } .win-bar i:nth-child(2) { background: #FEBC2E; } .win-bar i:nth-child(3) { background: #28C840; }
.win-bar span { margin-left: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--muted-d); }
.code-win pre { margin: 0; padding: 20px; font-family: var(--f-mono); font-size: 13.5px; line-height: 1.75; color: #E6E6EE; overflow-x: auto; }
.k { color: #FF8C6B; } .f { color: #8A98FF; } .s { color: #C8F560; } .n { color: #FFD166; }

.s-design { background: var(--paper-2); }
.frame { position: absolute; width: 34%; aspect-ratio: 9 / 17; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px -14px rgba(0,0,0,.25); padding: 26px 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.frame i { display: block; height: 14%; border-radius: 8px; background: var(--paper-2); }
.frame i:first-of-type { height: 32%; background: #FFD8CB; }
.fr-label { position: absolute; top: -22px; left: 2px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.fr1 { left: 6%; top: 18%; } .fr2 { left: 33%; top: 12%; } .fr3 { left: 60%; top: 20%; }
.fr2 i:first-of-type { background: #DCE1FF; } .fr3 i:first-of-type { background: #E6F7C4; }
.sel-box { position: absolute; left: calc(33% - 6px); top: calc(12% - 6px); width: calc(34% + 12px); aspect-ratio: 9 / 17; border: 1.5px solid var(--accent); border-radius: 4px; pointer-events: none; animation: selmove 6s var(--ease) infinite; }
.handle { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--accent); }
.h1 { left: -5px; top: -5px; } .h2 { right: -5px; top: -5px; } .h3 { left: -5px; bottom: -5px; } .h4 { right: -5px; bottom: -5px; }

.s-flow { background: #EEF0FF; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.wires path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 6; animation: dash 1.2s linear infinite; }
.node { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 14px; background: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 10px 24px -12px rgba(11,11,15,.3); color: var(--ink); }
.n1 { left: 6%; top: 17%; } .n2 { left: 42%; top: 43%; background: var(--ink); color: var(--paper); } .n3 { left: 6%; top: 66%; } .n4 { right: 6%; top: 17%; }
.n4::after { content: ""; position: absolute; }

/* ---------- WORK (dark, horizontal) ---------- */
.work { z-index: 4; }
.work-pin { padding: 130px 0 100px; display: flex; flex-direction: column; gap: 48px; overflow: hidden; }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.work-head > div { display: flex; flex-direction: column; gap: 18px; }
.work-hint { color: var(--muted-d); }
.work-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; padding: 0 28px; max-width: var(--wrap); margin: 0 auto; width: 100%; }
.panel {
  display: flex; flex-direction: column; border-radius: 30px; overflow: hidden; text-decoration: none;
  background: var(--ink-2); border: 1px solid var(--line-d); transition: border-color .4s ease;
}
.panel:hover { border-color: rgba(255,255,255,.28); }
.panel-media { position: relative; height: 380px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.panel-media > * { transition: transform .8s var(--ease); }
.panel:hover .panel-media > * { transform: translateY(-8px) scale(1.02); }
.panel-info { padding: 26px 30px 32px; display: flex; flex-direction: column; gap: 12px; }
.panel-row { display: flex; justify-content: space-between; color: var(--muted-d); }
.panel h3 { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 85; font-size: 2.1rem; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.panel h3 svg { vertical-align: middle; color: var(--muted-d); }
.panel p { color: var(--muted-d); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags span { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-d); font-size: 12.5px; font-weight: 600; color: #D9D9E2; }

.pm-appetizer { background: radial-gradient(70% 80% at 50% 100%, #1ABCA5, #06211D 75%); gap: 20px; }
.mp-shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 24px; display: block; }
.mini-phone { width: 150px; height: 300px; border-radius: 30px; padding: 7px; background: #15151B; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.15), 0 30px 50px -20px rgba(0,0,0,.6); }
.mp1 { transform: rotate(-6deg) translateY(30px); } .mp2 { transform: rotate(5deg) translateY(10px); }
.panel:hover .mp1 { transform: rotate(-9deg) translateY(18px); } .panel:hover .mp2 { transform: rotate(8deg) translateY(-2px); }
.mp-screen { width: 100%; height: 100%; border-radius: 24px; background: #FAF7F2; padding: 26px 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.mp-screen.dark { background: #1A1712; }
.mp-head { height: 12px; width: 60%; border-radius: 6px; background: #1A1712; }
.mp-hero { height: 110px; border-radius: 14px; background: radial-gradient(circle at 45% 45%, #E9B44C 0 25%, #F6E7C1 26% 38%, #8DB255 39% 46%, #F3EAD8 47%); }
.mp-line { height: 9px; border-radius: 5px; background: #E5DFD4; } .mp-line.short { width: 60%; }
.mp-btn { margin-top: auto; height: 30px; border-radius: 10px; background: #FF5A36; }
.mp-chip { height: 12px; width: 40%; border-radius: 6px; background: #FF5A36; }
.mp-bubble { height: 46px; width: 80%; border-radius: 14px; background: #2B2620; } .mp-bubble.r { align-self: flex-end; width: 60%; height: 30px; background: #FAF7F2; }

.pm-sevenfold { background: radial-gradient(80% 80% at 30% 0%, #3C4BFF, #0E1030 70%); padding: 30px; }
.browser { width: 92%; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.browser .win-bar { background: #F1F0EC; border-bottom-color: #E2E0DA; }
.browser .url { flex: 1; margin-left: 12px; padding: 4px 12px; border-radius: 8px; background: #fff; color: #55555F; }
.site { background: #0B0B0F; color: #fff; padding: 16px 20px 22px; }
.site-nav { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 14px; }
.site-nav b { margin-right: auto; font-weight: 800; }
.site-nav span { width: 34px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.3); }
.site-hero { padding: 30px 0 22px; display: flex; flex-direction: column; gap: 4px; }
.sh-1, .sh-2 { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 80; font-size: 30px; line-height: 1; text-transform: uppercase; letter-spacing: -0.02em; }
.sh-2 { color: #C8F560; }
.sh-btn { margin-top: 14px; width: 110px; height: 30px; border-radius: 999px; background: #fff; }
.site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.site-cards span { height: 54px; border-radius: 10px; background: #1E1E26; }
.site-cards span:nth-child(2) { background: #2F4BFF; }

.pm-auto { background: radial-gradient(80% 80% at 70% 100%, #8C6B00, #161206 70%); padding: 28px; }
.terminal { width: 78%; border-radius: 16px; overflow: hidden; background: #0B0B0F; border: 1px solid var(--line-d); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transform: translateX(-30px); }
.term-body { margin: 0; padding: 16px 18px 20px; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.85; color: #D9D9E2; white-space: pre-wrap; }
.t-dim { color: var(--muted-d); } .t-ok { color: #4ADE80; } .t-ai { color: #FFD166; }
.caret { display: inline-block; width: 8px; height: 14px; margin-left: 4px; vertical-align: -2px; background: #D9D9E2; animation: blink 1s steps(1) infinite; }
.pdf { position: absolute; right: 7%; bottom: 10%; width: 150px; height: 200px; border-radius: 10px; background: #fff; color: var(--ink); padding: 16px 14px; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 24px 40px -14px rgba(0,0,0,.6); transform: rotate(6deg); }
.pdf-title { font-family: var(--f-display); font-weight: 800; font-size: 14px; text-transform: uppercase; }
.pdf-date { font-family: var(--f-mono); font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.pdf-line { height: 6px; border-radius: 3px; background: var(--paper-2); } .pdf-line.short { width: 60%; }
.pdf-check { height: 14px; border-radius: 4px; background: linear-gradient(90deg, #2F4BFF 0 14px, transparent 14px 20px, var(--paper-2) 20px); }

.panel-end { justify-content: center; align-items: flex-start; gap: 22px; padding: 48px; background: transparent; border-style: dashed; }
.end-big { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 80; font-size: clamp(2.4rem, 4vw, 3.8rem); line-height: .95; text-transform: uppercase; letter-spacing: -0.02em; }

/* horizontal mode (desktop + GSAP) */
@media (min-width: 900px) {
  .has-gsap .work-pin { height: 100vh; min-height: 680px; padding: 110px 0 50px; justify-content: center; }
  .has-gsap .work-track { display: flex; gap: 28px; width: max-content; max-width: none; margin: 0; padding: 0 28px 0 max(28px, calc((100vw - var(--wrap)) / 2 + 28px)); will-change: transform; }
  .has-gsap .panel { width: min(58vw, 760px); flex-shrink: 0; flex-direction: row; height: min(62vh, 520px); }
  .has-gsap .panel-media { height: auto; flex: 1.15; }
  .has-gsap .panel-info { flex: 1; justify-content: flex-end; }
  .has-gsap .panel-end { width: 440px; flex-direction: column; }
}

/* ---------- STACK (light, floating logos) ---------- */
.stack { z-index: 5; background: var(--paper); padding: 140px 0 80px; overflow: hidden; }
.float-field { list-style: none; margin: 0 auto; padding: 0; position: relative; height: 620px; max-width: 1400px; }
.fl {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px)));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform .6s var(--ease);
}
.fl svg { display: block; filter: drop-shadow(0 10px 14px rgba(11,11,15,.12)); animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--x) * -0.1s); transition: scale .35s var(--ease); }
.fl:nth-child(3n) svg { animation-duration: 7.5s; } .fl:nth-child(4n) svg { animation-duration: 5.2s; }
.fl .ink { color: var(--ink); }
.fl span { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .3s ease; white-space: nowrap; }
.fl:hover svg { scale: 1.25; }
.fl:hover span { opacity: 1; transform: none; }
.fl-tip {
  position: fixed; left: 0; top: 0; z-index: 350; pointer-events: none; max-width: 240px;
  padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 12.5px; line-height: 1.45;
  opacity: 0; transform: translate(-50%, calc(-100% - 22px)) scale(.9); transition: opacity .2s ease, transform .2s ease;
}
.fl-tip.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 22px)) scale(1); }

/* ---------- JOURNEY (light) ---------- */
.journey { background: var(--paper); padding: 80px 0 180px; z-index: 5; }
.journey-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; }
.journey-left { display: flex; flex-direction: column; gap: 26px; align-self: start; position: sticky; top: 110px; }
.portrait { width: 100%; max-width: 380px; aspect-ratio: 4 / 5; position: relative; isolation: isolate; cursor: pointer; user-select: none; }
/* photo card with an animated gradient border */
.portrait-photo {
  position: absolute; inset: 0; z-index: 1; padding: 5px; border-radius: 30px;
  background: linear-gradient(135deg, var(--accent), #8A98FF 30%, var(--coral) 60%, var(--lime) 85%, var(--accent));
  background-size: 300% 300%; animation: portraitBorder 8s ease-in-out infinite;
  box-shadow: 0 30px 60px -22px rgba(47, 75, 255, .45), 0 18px 40px -20px rgba(0, 0, 0, .35);
}
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; border-radius: 25px; display: block; }
/* playing-card corner icons on the photo card */
.pc-pip {
  position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 3px; pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .24));
}
.pc-pip b {
  font-family: var(--f-display); font-weight: 900; font-size: 13px; line-height: 1; letter-spacing: .02em; color: var(--ink);
}
.pc-pip svg { width: 34px; height: 34px; display: block; --logo-bg: var(--ink); --logo-fg: var(--paper); }
.pc-tl { top: 18px; left: 18px; }
.pc-br { right: 18px; bottom: 18px; transform: rotate(180deg); }
.portrait-chip {
  position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px;
  background: rgba(11, 11, 15, .55); color: var(--paper); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .18); font-size: 11.5px;
}
@keyframes portraitBorder { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
/* the dark "T" card sits on top like the top card of a deck, then peels away behind the photo */
.portrait-ph { position: absolute; inset: 0; z-index: 2; border-radius: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--paper);
  background: radial-gradient(60% 50% at 70% 20%, rgba(47,75,255,.55), transparent 70%), radial-gradient(50% 40% at 20% 90%, rgba(255,90,54,.45), transparent 70%), var(--ink);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
  transform-origin: 50% 100%; will-change: transform; }
/* without the scroll animation, park the card behind the photo unless tapped closed */
.no-gsap .portrait-ph, .no-motion .portrait-ph { z-index: 0; transform: translate(16%, -2%) rotate(6deg); transition: transform .5s var(--ease); }
.no-gsap .portrait.is-closed .portrait-ph, .no-motion .portrait.is-closed .portrait-ph { z-index: 2; transform: none; }
.portrait-logo { width: 42%; height: auto; aspect-ratio: 1; --logo-bg: var(--paper); --logo-fg: var(--ink); filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.portrait-ph small { color: var(--muted-d); }
.bio { color: var(--muted); max-width: 460px; }

.timeline-wrap { position: relative; padding-left: 40px; }
.tl-line { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.no-motion .tl-fill { transform: none; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.timeline li { position: relative; padding: 30px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s ease; }
.timeline li:hover { transform: translateX(6px); box-shadow: 0 20px 40px -30px rgba(11,11,15,.35); }
.tl-dot { position: absolute; left: -41px; top: 36px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); transition: background-color .4s ease, box-shadow .4s ease, transform .4s var(--ease); }
.timeline li.is-active .tl-dot, .no-gsap .tl-dot { background: var(--accent); box-shadow: 0 0 0 6px rgba(47, 75, 255, .15); transform: scale(1.15); }
.timeline li.is-active { border-color: rgba(47, 75, 255, .35); }

/* work: horizontal progress */
.work-progress { display: flex; align-items: center; gap: 16px; min-width: 260px; }
.wp-count { color: var(--muted-d); white-space: nowrap; }
.wp-count b { color: var(--paper); font-weight: 500; }
.wp-bar { flex: 1; height: 2px; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; }
.wp-bar i { display: block; height: 100%; background: var(--paper); transform-origin: left; transform: scaleX(0); }
.no-gsap .work-progress { display: none; }
@media (max-width: 899px) { .work-progress { display: none; } }
.tl-date { color: var(--accent); }
.timeline h3 { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 88; font-size: 1.55rem; line-height: 1.1; margin-top: 8px; letter-spacing: -0.01em; }
.tl-org { display: inline-block; margin: 4px 0 10px; font-weight: 700; }
.timeline p { color: var(--muted); font-size: 15.5px; }

/* ---------- STATEMENT (dark) ---------- */
.statement { z-index: 6; padding: 170px 0 140px; }
.statement .wrap { display: flex; flex-direction: column; gap: 28px; }
.statement-text { font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 90; font-size: clamp(2rem, 5vw, 4.6rem); line-height: 1.04; letter-spacing: -0.025em; max-width: 1180px; }
.w { display: inline-block; opacity: .16; transition: opacity .2s linear; }
.no-motion .w, .no-gsap .w { opacity: 1; }
.w.hl { color: var(--accent-d); }

/* ---------- CONTACT (dark) ---------- */
.contact { z-index: 6; padding: 40px 0 0; position: relative; }
.contact > .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; padding-bottom: 90px; }
.contact-big { font-family: var(--f-display); font-weight: 900; font-variation-settings: "wdth" 75; font-size: clamp(4rem, 17vw, 18rem); line-height: .82; letter-spacing: -0.02em; white-space: nowrap; }
.contact-big > span { display: inline-block; }
.contact-big > span:first-child { margin-right: .22em; }
.contact-big .ch { color: var(--c, var(--paper)); }
.contact-big .ch.is-accent { color: var(--accent-d); }
.contact-sub { color: var(--muted-d); max-width: 520px; font-size: 18px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; margin-top: 12px; }
.c-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px; min-height: 190px; border-radius: 24px;
  background: var(--ink-2); border: 1px solid var(--line-d); text-decoration: none; overflow: hidden;
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}
.c-card > svg:first-child { margin-bottom: auto; }
.c-card:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.c-title { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 88; font-size: 1.5rem; }
.c-sub { color: var(--muted-d); transition: color .4s ease; }
.c-card:hover .c-sub { color: var(--muted); }
.c-arrow { position: absolute; top: 26px; right: 26px; transition: transform .4s var(--ease); }
.c-card:hover .c-arrow { transform: translate(4px, -4px); }
/* brand-tinted contact cards */
.c-whatsapp { border-color: rgba(37, 211, 102, .35); }
.c-whatsapp > svg:first-child { color: #25D366; }
.c-whatsapp:hover { background: #25D366; border-color: #25D366; color: #062B14; }
.c-whatsapp:hover .c-sub { color: #0B4A24; }
.c-instagram > svg:first-child { color: #F56A9E; }
.c-instagram:hover { background: linear-gradient(135deg, #F58529, #DD2A7B 55%, #8134AF); border-color: transparent; color: #fff; }
.c-instagram:hover .c-sub { color: rgba(255,255,255,.85); }
.c-tiktok > svg:first-child { color: var(--paper); filter: drop-shadow(-2px 0 0 #25F4EE) drop-shadow(2px 0 0 #FE2C55); }
.c-tiktok:hover { background: #0B0B0F; border-color: #FE2C55; color: var(--paper); box-shadow: -4px 0 0 #25F4EE, 4px 0 0 #FE2C55; }
.c-tiktok:hover .c-sub { color: var(--muted-d); }
@media (min-width: 761px) and (max-width: 1080px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.copy-email { background: none; border: 0; padding: 8px 0; color: var(--muted-d); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.copy-email:hover { color: var(--paper); }
.copy-status { color: var(--lime); min-height: 1.2em; }

.footer { border-top: 1px solid var(--line-d); overflow: hidden; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; color: var(--muted-d); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand svg { --logo-bg: var(--paper); --logo-fg: var(--ink); }
.footer-row a { text-decoration: none; } .footer-row a:hover { color: var(--paper); }
.footer-mark { font-family: var(--f-display); font-weight: 900; font-variation-settings: "wdth" 70; font-size: 16.5vw; line-height: .78; letter-spacing: -0.02em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.22); margin-bottom: -2.2vw; user-select: none; }

/* ---------- Reveal (fallback when GSAP missing) ---------- */
.no-gsap .reveal { opacity: 1; }

/* ---------- Keyframes ---------- */
@keyframes pop { from { opacity: 0; transform: scale(.5); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(28px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 100% { box-shadow: 0 0 0 10px rgba(22,163,74,0); } }
@keyframes scan { 0%, 100% { top: 14%; } 50% { top: 84%; } }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes selmove { 0%, 30% { left: calc(33% - 6px); top: calc(12% - 6px); } 40%, 65% { left: calc(60% - 6px); top: calc(20% - 6px); } 75%, 100% { left: calc(6% - 6px); top: calc(18% - 6px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-foot { grid-template-columns: 1fr 1fr; }
  .hero-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .feature-grid { grid-template-columns: 1fr; }
  .phone-stage { height: 600px; }
  .s-card { grid-template-columns: 1fr; }
  .journey-grid { grid-template-columns: 1fr; gap: 48px; }
  .journey-left { position: static; }
}
@media (max-width: 760px) {
  :root { --radius-room: 28px; }
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hide-sm { display: none !important; }
  .nav { padding: 12px 16px; gap: 10px; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; margin: 0; padding: 100px 24px 40px; flex-direction: column; gap: 4px;
    background: var(--ink); color: var(--paper); transform: translateY(-100%); visibility: hidden;
    transition: transform .6s var(--ease), visibility 0s linear .6s;
  }
  .nav-links.is-open { transform: none; visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
  .nav-links a { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 80; font-size: 2.6rem; text-transform: uppercase; padding: 6px 0; }
  .nav-links a::after { display: none; }
  .nav.menu-open { color: var(--paper); }
  .nav.menu-open::before { opacity: 0; }
  .hero { padding-top: 96px; }
  .hero-foot { grid-template-columns: 1fr; gap: 18px; }
  .hero-name { margin: 30px 0 20px; }
  .feature-pin { padding: 100px 0 60px; }
  .phone-stage { height: 560px; }
  .callout { display: none; }
  .feature-word { top: 38%; }
  .feature-word span { font-size: 9rem; }
  .feature-pin { padding-bottom: 120px; }
  .feature-progress { gap: 16px; bottom: 28px; }
  .fp-roll { font-size: 40px; }
  .fp-hint { display: none; }
  .services { padding: 100px 0 80px; }
  .s-card { padding: 26px; top: calc(80px + var(--i) * 16px); min-height: 0; }
  .s-list { grid-template-columns: 1fr; }
  .s-visual { min-height: 260px; }
  .work-pin { padding: 100px 0 70px; }
  .panel-media { height: 300px; }
  .mini-phone { width: 120px; height: 240px; }
  .float-field { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 12px; height: auto; padding: 0 20px; }
  .fl { position: static; transform: none !important; }
  .fl span { opacity: 1; transform: none; text-align: center; white-space: normal; }
  .contact-cards { grid-template-columns: 1fr; }
  .statement { padding: 120px 0 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .ch { transform: none; }
  .w { opacity: 1; }
  .tl-fill { transform: none; }
}
