/* =========================================================
   Fazeel Rasheed portfolio, version 2
   Colors and fonts are in :root. Change them there.
   ========================================================= */

:root {
  --night: #0d0a1a;       /* page background */
  --night-2: #120e24;     /* alternate background */
  --card: #19142e;        /* cards */
  --card-2: #221b3d;
  --line: rgb(255 255 255 / 0.09);
  --line-2: rgb(255 255 255 / 0.16);
  --text: #f5f2ff;
  --muted: #a8a1c7;
  --coral: #ff5e3a;
  --sun: #ffc425;
  --sky: #7aa7ff;
  --ink: #170c05;          /* text on sunrise buttons */
  --sunrise: linear-gradient(100deg, #ff6a2b 0%, #ff9a1f 45%, #ffc425 100%);

  --display: "Syne", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 28px;
  --container: 1320px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

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

body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: var(--body); font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ol, ul, dl, dd { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--coral); color: #fff; }

.container { width: min(100% - 2 * var(--pad), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 300; background: var(--sun); color: var(--ink); padding: 0.6rem 1rem; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 8px; }

.sunrise-text { background: var(--sunrise); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease), scale 150ms var(--ease);
}
.btn:active { scale: 0.96; }
.btn-sm { min-height: 40px; padding: 0 1.1rem; font-size: 0.92rem; }
.btn-lg { min-height: 56px; padding: 0 1.9rem; font-size: 1.05rem; }
.btn-xl { min-height: 66px; padding: 0 2.4rem; font-size: 1.15rem; }
.btn-sun { background: var(--sunrise); color: var(--ink); }
.btn-sun::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 0.55) 50%, transparent 80%);
  translate: -120% 0; transition: translate 600ms var(--ease-out);
}
.btn-line { border-color: var(--line-2); color: var(--text); background: rgb(255 255 255 / 0.02); }
@media (hover: hover) {
  .btn-sun:hover::after { translate: 120% 0; }
  .btn-line:hover { border-color: rgb(255 255 255 / 0.4); background: rgb(255 255 255 / 0.06); }
}

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: end start; padding: var(--pad);
  background: var(--night); transition: translate 900ms var(--ease-out);
}
.js .loader.is-done { translate: 0 -101%; pointer-events: none; }
.loader-inner { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; gap: 1rem; }
.loader-name { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--muted); }
.loader-count { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 14vw, 12rem); line-height: 0.85; font-variant-numeric: tabular-nums; background: var(--sunrise); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: reduce) { .js .loader { display: none; } }

/* ---------- Cursor, progress, grain ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor {
    position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none;
    display: grid; place-items: center; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: var(--sun);
    transition: width 300ms var(--ease-out), height 300ms var(--ease-out), margin 300ms var(--ease-out), background-color 300ms, opacity 200ms;
  }
  .has-cursor .cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgb(255 181 71 / 0.18); border: 1px solid var(--sun); }
  .has-cursor .cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--sunrise); border: 0; }
  .has-cursor .cursor.is-hidden { opacity: 0; }
  .cursor-label { font-family: var(--display); font-weight: 700; font-size: 0.85rem; color: var(--ink); opacity: 0; transition: opacity 200ms; }
  .cursor.is-label .cursor-label { opacity: 1; }
}
.progress { position: fixed; left: 0; top: 0; z-index: 210; height: 2px; width: 100%; background: var(--sunrise); transform-origin: 0 50%; scale: 0 1; }
.grain {
  position: fixed; inset: 0; z-index: 205; pointer-events: none; opacity: 0.06;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200; display: flex; align-items: center; gap: 1.5rem;
  padding: 1.1rem var(--pad); transition: background-color 300ms, padding 300ms, border-color 300ms;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgb(13 10 26 / 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); padding-block: 0.75rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--sunrise); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 0.9rem; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand-logo { height: 34px; width: auto; }
@media (max-width: 520px) { .brand-logo { height: 28px; } }
.nav { display: flex; gap: 0.3rem; padding: 0.3rem; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 0.03); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav a { padding: 0.5rem 1rem; border-radius: 999px; text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color 200ms, background-color 200ms; }
@media (hover: hover) { .nav a:hover { color: var(--text); background: rgb(255 255 255 / 0.07); } }
.nav a.is-current { color: var(--text); background: rgb(255 255 255 / 0.09); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgb(13 10 26 / 0.5); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: translate 300ms var(--ease-out), rotate 300ms var(--ease-out); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] span:first-child { translate: 0 4px; rotate: 45deg; }
.menu-btn[aria-expanded="true"] span:last-child { translate: 0 -4px; rotate: -45deg; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .header-cta { display: none; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 190; background: rgb(13 10 26 / 0.97); backdrop-filter: blur(20px);
  display: grid; align-content: center; padding: var(--pad);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; gap: 0.4rem; }
.mobile-menu a { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 10vw, 3.4rem); text-decoration: none; line-height: 1.1; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: hidden;
  padding: clamp(6.5rem, 12vh, 9rem) var(--pad) 0;
  background:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px) 0 0 / 100% 80px,
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px) 0 0 / 80px 100%;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-glow {
  position: absolute; left: 50%; bottom: -55vh; width: 140vw; height: 90vh; translate: -50% 0; z-index: 0;
  background: radial-gradient(closest-side, rgb(255 94 58 / 0.55), rgb(255 138 61 / 0.25) 45%, transparent 75%);
  filter: blur(30px); animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { scale: 1.08; opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) { .hero-glow { animation: none; } }
.hero-inner { position: relative; z-index: 2; align-self: center; width: min(100%, var(--container)); margin-inline: auto; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-kicker { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 1rem 0.45rem 0.8rem; border: 1px solid var(--line-2); border-radius: 999px; background: rgb(13 10 26 / 0.5); backdrop-filter: blur(8px); font-size: 0.92rem; color: var(--muted); margin-bottom: clamp(1.2rem, 3vh, 2rem); }
.live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(61 220 132 / 0.6); } 70%, 100% { box-shadow: 0 0 0 9px rgb(61 220 132 / 0); } }
.hero-title { font-size: clamp(2.4rem, 5.3vw, 6.1rem); line-height: 0.92; letter-spacing: -0.03em; font-weight: 800; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { translate: 0 110%; }
.is-loaded .hero-title .line > span { translate: 0 0; transition: translate 1.1s var(--ease-out); }
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: 90ms; }
.is-loaded .hero-title .line:nth-child(3) > span { transition-delay: 180ms; }
.hero-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-top: clamp(1.5rem, 4vh, 2.8rem); }
.hero-lede { max-width: 44ch; color: #d6d0f0; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.js .hero-kicker, .js .hero-bottom, .js .hero-stats { opacity: 0; translate: 0 16px; }
.is-loaded .hero-kicker, .is-loaded .hero-bottom, .is-loaded .hero-stats { opacity: 1; translate: 0 0; transition: opacity 900ms var(--ease-out) 350ms, translate 900ms var(--ease-out) 350ms; }
.is-loaded .hero-kicker { transition-delay: 0ms; }
.hero-stats {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr);
  width: min(100%, var(--container)); margin: clamp(2rem, 5vh, 3.5rem) auto 0; border-top: 1px solid var(--line-2);
}
.hero-stats li { padding: 1.2rem 1rem 1.6rem 0; display: grid; gap: 0.1rem; }
.hero-stats li + li { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.hero-stats strong { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 2.1vw, 2rem); line-height: 1.1; }
.hero-stats span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.hero-hint { position: absolute; right: calc(var(--pad) * 0.5); top: 22%; z-index: 2; writing-mode: vertical-rl; font-size: 0.8rem; color: var(--muted); opacity: 0.7; }
@media (max-width: 900px), (hover: none) { .hero-hint { display: none; } }

/* ---------- Marquee ---------- */
.marquee-wrap { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-block: 1px solid var(--line); background: var(--night-2); overflow: hidden; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 48s linear infinite; }
.marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 40s; }
@keyframes marquee { to { translate: -50% 0; } }
.marquee span { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.8vw, 3.4rem); letter-spacing: -0.03em; padding: 0 0.4em; white-space: nowrap; }
.marquee i { flex: none; width: clamp(1.1rem, 2.6vw, 2.3rem); height: clamp(1.1rem, 2.6vw, 2.3rem); background: var(--sunrise); border-radius: 50% 50% 50% 0; rotate: -45deg; }
.marquee-rev { margin-top: 1.4rem; }
.marquee b { font-weight: 600; font-size: clamp(0.95rem, 1.4vw, 1.15rem); white-space: nowrap; padding: 0.6rem 1.2rem; margin-right: 0.8rem; border: 1px solid var(--line-2); border-radius: 999px; color: #e8e2ff; }
@media (hover: hover) { .marquee-wrap:hover .marquee-track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Statement ---------- */
.statement { width: min(100% - 2 * var(--pad), 1180px); margin: 0 auto; padding: clamp(6rem, 14vw, 11rem) 0 clamp(4rem, 8vw, 6rem); }
.reveal-words { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.8rem); line-height: 1.2; letter-spacing: -0.02em; }
.reveal-words .w { opacity: 0.16; transition: opacity 300ms; }
.reveal-words .w.on { opacity: 1; }
.signature { display: flex; align-items: center; gap: 1rem; margin-top: clamp(2rem, 5vw, 3.5rem); flex-wrap: wrap; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--sunrise); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.2rem; object-fit: cover; }
.sig-name { font-weight: 700; font-size: 1.1rem; }
.sig-role { color: var(--muted); font-size: 0.95rem; }
.signature .btn { margin-left: 0.5rem; }

/* ---------- Bento ---------- */
.bento-section { width: min(100% - 2 * var(--pad), var(--container)); margin: 0 auto; padding-bottom: clamp(5rem, 10vw, 8rem); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r); padding: clamp(1.4rem, 2.5vw, 2rem);
  background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px;
}
.tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(255 181 71 / 0.14), transparent 60%);
}
@media (hover: hover) { .tile:hover::before { opacity: 1; } }
.tile-chart { grid-column: span 2; grid-row: span 2; justify-content: flex-start; }
.tile-wide { grid-column: span 2; }
.tile-label { color: var(--muted); font-size: 0.92rem; }
.tile-big { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 3.2vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile-big-sm { font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.05; letter-spacing: -0.02em; }
.tile-sub { color: var(--muted); margin-top: 0.4rem; max-width: 34ch; }
.tile-chart .tile-big { margin-top: 0.6rem; }
.growth { width: 100%; flex: 1; min-height: 180px; margin-top: 1.5rem; overflow: visible; }
.growth-line { fill: none; stroke: url(#gline); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.growth-fill { fill: url(#gfill); opacity: 0; transition: opacity 1.2s var(--ease) 1.2s; }
.growth.is-drawn .growth-fill { opacity: 1; }
.tile-foot { color: var(--muted); font-size: 0.82rem; margin-top: 0.8rem; opacity: 0.8; }
.tile-sun { background: var(--sunrise); border: 0; color: var(--ink); }
.tile-sun .tile-sub { color: rgb(23 12 5 / 0.75); }
.star { font-size: 0.6em; margin-left: 0.1em; vertical-align: 0.35em; }
.pins { display: flex; gap: 0.6rem; margin-bottom: auto; padding-bottom: 1.2rem; flex-wrap: wrap; }
.pins i { width: 22px; height: 22px; background: var(--sunrise); border-radius: 50% 50% 50% 0; rotate: -45deg; opacity: 0.25; }
.tile-pins.is-in .pins i { animation: pinpop 600ms var(--ease-out) forwards; animation-delay: calc(var(--n) * 70ms); }
@keyframes pinpop { 0% { opacity: 0.25; translate: 0 0; } 50% { opacity: 1; translate: 4px -8px; } 100% { opacity: 1; translate: 0 0; } }
.tile-regions { background: linear-gradient(160deg, #1d2a52, var(--card) 70%); }
.tile-sun, .tile-regions { grid-column: span 2; min-height: 200px; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile-chart, .tile-wide, .tile-sun, .tile-regions { grid-column: auto; grid-row: auto; }
}

/* ---------- Section titles ---------- */
.section-title { font-size: clamp(2.1rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; font-weight: 800; }
.section-title-sm { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.section-lede { color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; max-width: 52ch; margin-top: 1.2rem; }

/* ---------- Work (horizontal) ---------- */
.work { position: relative; background: var(--night-2); border-top: 1px solid var(--line); }
.work-pin { padding: clamp(5rem, 9vw, 7rem) 0 clamp(4rem, 7vw, 6rem); }
.work-head { width: min(100% - 2 * var(--pad), var(--container)); margin: 0 auto clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 3rem; }
.work-head .section-lede { margin-top: 0; max-width: 46ch; }
.work-track {
  display: flex; gap: clamp(1rem, 2vw, 1.75rem);
  padding-inline: max(var(--pad), calc((100vw - var(--container)) / 2));
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.work-track::-webkit-scrollbar { display: none; }
.is-pinned .work-track { overflow: visible; scroll-snap-type: none; width: max-content; }
.is-pinned .work-pin { height: 100vh; padding: 76px 0 0; display: flex; flex-direction: column; justify-content: center; }
.is-pinned .work-head { margin-bottom: clamp(1.2rem, 3vh, 2.4rem); }
.project {
  --c: var(--coral);
  flex: none; width: min(86vw, 1040px); scroll-snap-align: center; position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto 1fr auto auto; gap: 1rem 2.4rem;
  padding: clamp(1.4rem, 3vw, 2.6rem); border-radius: 36px; border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 55%),
    linear-gradient(180deg, #1b1531, #140f26);
  cursor: pointer; transition: border-color 300ms;
}
.is-pinned .project { height: min(60vh, 540px); }
@media (hover: hover) { .project:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); } }
.project-top { grid-column: 1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.project-tag, .project-place { font-size: 0.85rem; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--line-2); color: #ddd6ff; }
.project-tag { background: color-mix(in srgb, var(--c) 22%, transparent); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.project-name { grid-column: 1; align-self: end; font-size: clamp(1.7rem, 2.6vw, 2.7rem); line-height: 1.02; letter-spacing: -0.025em; overflow-wrap: anywhere; font-weight: 800; }
.project-shot {
  grid-column: 2; grid-row: 1 / span 4; align-self: center; border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.08);
  rotate: 2.5deg; transition: rotate 600ms var(--ease-out), scale 600ms var(--ease-out);
}
.project-shot-dark { background: #202124; }
.project-shot img { width: 100%; outline: 1px solid rgb(0 0 0 / 0.08); outline-offset: -1px; }
@media (hover: hover) { .project:hover .project-shot { rotate: 0deg; scale: 1.03; } }
.project-nums { grid-column: 1; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0.3rem 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line-2); }
.project-nums dt { color: var(--muted); font-size: 0.82rem; }
.project-nums dd { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -0.02em; line-height: 1.1; }
.project-nums div:first-child dd { color: var(--c); }
.project-open {
  grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 0.6rem;
  background: none; border: 0; padding: 0.4rem 0; cursor: pointer; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--c);
}
.project-end {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.6rem; cursor: default;
  width: min(70vw, 520px); background: var(--sunrise); border: 0; color: var(--ink);
}
.project-end p { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1; letter-spacing: -0.03em; }
.project-end .btn-sun { background: var(--ink); color: #fff; }
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; grid-template-rows: none; width: 86vw; border-radius: 28px; }
  .project-top, .project-name, .project-nums, .project-open, .project-shot { grid-column: 1; grid-row: auto; }
  .project-top { order: 0; }
  .project-name { order: 1; }
  .project-shot { order: 2; rotate: 0deg; }
  .project-nums { order: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.3rem 1rem; }
  .project-open { order: 4; }
  .project-end { width: 80vw; }
}

/* ---------- More results ---------- */
.more { padding: clamp(5rem, 10vw, 8rem) 0; }
.rows { margin-top: clamp(1.5rem, 4vw, 2.5rem); border-top: 1px solid var(--line-2); }
.row {
  position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1rem; align-items: center; text-align: left; padding: 1.5rem 0.4rem; background: none; border: 0; border-bottom: 1px solid var(--line-2);
  cursor: pointer; isolation: isolate; overflow: hidden;
}
.row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sunrise); transform-origin: 0 50%; scale: 0 1; transition: scale 500ms var(--ease-out); }
.row-name { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 1.9vw, 1.7rem); letter-spacing: -0.02em; transition: translate 400ms var(--ease-out), color 300ms; }
.row-type, .row-num { color: var(--muted); transition: color 300ms; }
.row-num { font-variant-numeric: tabular-nums; text-align: right; }
@media (hover: hover) {
  .row:hover::before { scale: 1 1; }
  .row:hover .row-name { translate: 1rem 0; color: var(--ink); }
  .row:hover .row-type, .row:hover .row-num { color: rgb(23 12 5 / 0.8); }
}
@media (max-width: 720px) {
  .row { grid-template-columns: 1fr 1fr; padding: 1.1rem 0.2rem; gap: 0.2rem 1rem; }
  .row-name { grid-column: 1 / -1; }
  .row-num { text-align: left; }
  .row-type { display: none; }
}
.row-preview {
  position: fixed; left: 0; top: 0; z-index: 150; width: 340px; pointer-events: none; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.8); opacity: 0; scale: 0.8; rotate: -4deg; background: #fff;
  transition: opacity 250ms, scale 350ms var(--ease-out);
}
.row-preview.is-on { opacity: 1; scale: 1; }
@media (hover: none), (pointer: coarse) { .row-preview { display: none; } }

/* ---------- Local SEO ---------- */
.local { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--night-2); border-block: 1px solid var(--line); overflow: hidden; }
.local-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
@media (max-width: 900px) { .local-grid { grid-template-columns: 1fr; } }
.biz-list { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
@media (max-width: 560px) { .biz-list { grid-template-columns: 1fr; } }
.biz {
  width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 0.85rem 0 0.85rem 1.4rem;
  cursor: pointer; position: relative; color: var(--muted); font-weight: 500; transition: color 200ms, padding 300ms var(--ease-out);
}
.biz::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--line-2); transition: background-color 200ms, scale 300ms var(--ease-out); }
@media (hover: hover) { .biz:hover { color: var(--text); padding-left: 1.7rem; } }
.biz.is-active { color: var(--text); }
.biz.is-active::before { background: var(--sun); scale: 1.4; }

.phone-wrap { display: grid; place-items: center; perspective: 1400px; }
.phone {
  position: relative; width: min(100%, 340px); aspect-ratio: 340 / 700; border-radius: 52px; padding: 12px;
  background: linear-gradient(145deg, #2b2346, #120e22); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12) inset, 0 60px 120px -40px rgb(255 94 58 / 0.45), 0 40px 80px -30px rgb(0 0 0 / 0.8);
  display: flex; flex-direction: column; overflow: hidden; transform: rotateY(-10deg) rotateX(4deg); transition: transform 800ms var(--ease-out);
}
@media (hover: hover) { .phone:hover { transform: none; } }
.phone-notch { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 96px; height: 26px; border-radius: 20px; background: #05040a; z-index: 3; }
.phone-search { position: absolute; top: 58px; left: 26px; right: 26px; z-index: 3; display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.9rem; border-radius: 999px; background: #2a2440; color: #cfc8ef; font-size: 0.85rem; box-shadow: 0 6px 20px rgb(0 0 0 / 0.35); }
.ps-icon { flex: none; width: 13px; height: 13px; border: 2px solid #cfc8ef; border-radius: 50%; position: relative; }
.ps-icon::after { content: ""; position: absolute; width: 6px; height: 2px; background: #cfc8ef; right: -6px; bottom: -3px; rotate: 45deg; }
.phone-map { position: relative; flex: 1; border-radius: 40px 40px 0 0; overflow: hidden; background: #1c1832; }
.phone-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone-map .r { fill: none; stroke: #2e2850; stroke-width: 7; }
.phone-map .r.t { stroke-width: 3; }
.phone-map .water { fill: #1d2a52; }
.map-pin { position: absolute; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: #5a5180; }
.p1 { left: 22%; top: 38%; } .p2 { left: 70%; top: 32%; } .p3 { left: 64%; top: 64%; } .p4 { left: 30%; top: 70%; } .p5 { left: 82%; top: 52%; }
.map-pin-main { left: 46%; top: 46%; width: 34px; height: 34px; background: var(--sunrise); box-shadow: -4px 8px 24px rgb(255 94 58 / 0.6); animation: pinbounce 2.4s var(--ease-out) infinite; }
.map-pin-main::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--ink); }
@keyframes pinbounce { 0%, 100% { translate: 0 0; } 15% { translate: 6px -10px; } 30% { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .map-pin-main { animation: none; } }
.phone-card { position: relative; z-index: 2; margin-top: -40px; background: #1a152d; border-radius: 26px 26px 38px 38px; padding: 1.2rem 1.2rem 1.3rem; border-top: 1px solid var(--line-2); }
.phone-card.swap { animation: cardswap 450ms var(--ease-out); }
@keyframes cardswap { from { opacity: 0; translate: 0 14px; } }
.pc-name { font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
.pc-rating { display: flex; align-items: center; gap: 0.35rem; color: var(--muted); font-size: 0.88rem; margin-top: 0.2rem; }
.pc-score { color: var(--text); font-weight: 600; }
.pc-stars::after {
  content: "★★★★★"; letter-spacing: 1px; font-size: 0.85rem;
  background: linear-gradient(90deg, var(--sun) calc(var(--r) / 5 * 100%), #4a4270 calc(var(--r) / 5 * 100%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pc-cat { color: var(--muted); font-size: 0.88rem; }
.pc-actions { display: flex; gap: 0.4rem; margin: 0.9rem 0; }
.pc-actions span { flex: 1; text-align: center; font-size: 0.78rem; padding: 0.45rem 0; border-radius: 999px; border: 1px solid var(--line-2); color: #cfe0ff; }
.pc-actions span:first-child { background: rgb(122 167 255 / 0.18); border-color: transparent; }
.pc-nums p { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.pc-nums strong { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; background: var(--sunrise); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-nums span { color: var(--muted); font-size: 0.82rem; }
.pc-open { margin-top: 0.9rem; width: 100%; }

/* ---------- Reporting ---------- */
.reporting { padding: clamp(5rem, 10vw, 8rem) 0; }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 3rem; }
.report-head .section-lede { max-width: 46ch; }
.report-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: clamp(2rem, 4vw, 3rem) 0 1.2rem; }
.report-tabs button { padding: 0.65rem 1.2rem; border-radius: 999px; border: 1px solid var(--line-2); background: none; cursor: pointer; color: var(--muted); font-weight: 500; transition: color 200ms, background-color 200ms, border-color 200ms; }
.report-tabs button[aria-selected="true"] { background: var(--text); color: var(--night); border-color: var(--text); }
@media (hover: hover) { .report-tabs button:hover { color: var(--text); border-color: rgb(255 255 255 / 0.4); } .report-tabs button[aria-selected="true"]:hover { color: var(--night); } }
.screen { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: #0f0c1e; box-shadow: 0 60px 120px -50px rgb(255 94 58 / 0.35); }
.screen-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); background: #17122b; }
.screen-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3358; }
.screen-bar i:first-child { background: #ff5f57; } .screen-bar i:nth-child(2) { background: #febc2e; } .screen-bar i:nth-child(3) { background: #28c840; }
.screen-bar span { margin-left: 1rem; font-size: 0.8rem; color: var(--muted); padding: 0.2rem 0.9rem; border-radius: 999px; background: rgb(255 255 255 / 0.05); }
.screen-img { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; height: min(70vh, 640px); overflow: hidden; }
.screen-img img { width: 100%; height: 100%; object-fit: contain; object-position: top center; transition: opacity 250ms; }
.screen-img img.is-fading { opacity: 0; }
@media (max-width: 720px) { .screen-img { height: auto; } .screen-img img { height: auto; } }

/* ---------- Automations ---------- */
.auto { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--night-2); border-block: 1px solid var(--line); }
.auto-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2rem, 5vw, 3.5rem); align-items: stretch; }
@media (max-width: 960px) { .auto-grid { grid-template-columns: 1fr; } }
.auto-tabs { display: grid; gap: 0.4rem; align-content: start; }
@media (max-width: 960px) { .auto-tabs { grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; } .auto-tabs button { scroll-snap-align: start; } }
.auto-tabs button {
  text-align: left; display: grid; gap: 0.15rem; padding: 1rem 1.2rem; border-radius: 18px; border: 1px solid transparent; background: none; cursor: pointer;
  transition: background-color 250ms, border-color 250ms;
}
.auto-tabs strong { font-family: var(--display); font-weight: 700; font-size: 1.12rem; }
.auto-tabs span { color: var(--muted); font-size: 0.9rem; }
.auto-tabs button[aria-selected="true"] { background: var(--card); border-color: var(--line-2); }
.auto-tabs button[aria-selected="true"] strong { background: var(--sunrise); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (hover: hover) { .auto-tabs button:hover { background: rgb(255 255 255 / 0.04); } }
.flow-canvas {
  position: relative; border-radius: var(--r); border: 1px solid var(--line-2); min-height: 460px; padding: 1.4rem 1.6rem 1.6rem;
  background: radial-gradient(circle, rgb(255 255 255 / 0.09) 1px, transparent 1.4px) 0 0 / 22px 22px, #110d22;
  display: flex; flex-direction: column; overflow: hidden;
}
.flow-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--muted); }
.flow-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 12px #3ddc84; }
.flow-title { color: var(--text); font-weight: 600; }
.flow-status { margin-left: auto; padding: 0.2rem 0.7rem; border-radius: 999px; background: rgb(61 220 132 / 0.12); color: #7ff0b2; font-size: 0.8rem; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow-lines .base { fill: none; stroke: rgb(255 255 255 / 0.14); stroke-width: 2; }
.flow-lines .dash { fill: none; stroke: var(--sun); stroke-width: 2.5; stroke-dasharray: 6 12; animation: dash 1.2s linear infinite; opacity: 0.9; }
.flow-lines .packet { fill: #fff; filter: drop-shadow(0 0 6px var(--sun)); }
@keyframes dash { to { stroke-dashoffset: -36; } }
@media (prefers-reduced-motion: reduce) { .flow-lines .dash { animation: none; } .flow-lines .packet { display: none; } }
.flow-nodes { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; align-items: center; padding: 2rem 0; }
.flow-node {
  display: grid; justify-items: start; gap: 0.6rem; padding: 1rem; border-radius: 20px; background: #1d1735; border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.6); opacity: 0; translate: 0 12px; transition: opacity 500ms var(--ease-out), translate 500ms var(--ease-out);
}
.flow-node:nth-child(even) { margin-top: 6rem; }
.flow-node:nth-child(odd) { margin-bottom: 6rem; }
.flow-node.is-in { opacity: 1; translate: 0 0; }
.flow-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--node, var(--card-2)); }
.flow-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-node b { font-weight: 600; font-size: 0.98rem; line-height: 1.3; }
.flow-node small { color: var(--muted); font-size: 0.8rem; }
.flow-note { position: relative; z-index: 1; color: #d6d0f0; padding-top: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .flow-nodes { grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.4rem 0; }
  .flow-node:nth-child(n) { margin: 0; }
  .flow-canvas { min-height: 0; }
}

/* ---------- Services accordion ---------- */
.services { padding: clamp(5rem, 10vw, 8rem) 0; }
.accordion { margin-top: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line-2); }
.acc { border-bottom: 1px solid var(--line-2); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(1.1rem, 2.2vw, 1.6rem) 0; background: none; border: 0; cursor: pointer; text-align: left; }
.acc-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3.2vw, 2.8rem); letter-spacing: -0.025em; line-height: 1.05; transition: translate 400ms var(--ease-out); }
.acc-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: background-color 300ms, rotate 400ms var(--ease-out), border-color 300ms; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: var(--text); border-radius: 2px; }
.acc-icon::after { rotate: 90deg; }
.acc.is-open .acc-icon { rotate: 45deg; background: var(--sun); border-color: transparent; }
.acc.is-open .acc-icon::before, .acc.is-open .acc-icon::after { background: var(--ink); }
.acc.is-open .acc-title { background: var(--sunrise); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (hover: hover) { .acc-btn:hover .acc-title { translate: 0.8rem 0; } }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 500ms var(--ease-out); }
.acc.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { color: #d6d0f0; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); max-width: 56ch; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.8rem; }
.tags li { padding: 0.35rem 0.9rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 0.88rem; }

/* ---------- Process (stacking cards) ---------- */
.process { padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem); background: var(--night-2); border-top: 1px solid var(--line); }
.stack { margin-top: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 2rem; }
.stack-card {
  position: sticky; top: calc(96px + var(--i) * 22px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 4vw, 4rem); align-items: center;
  min-height: 320px; padding: clamp(1.6rem, 4vw, 3.4rem); border-radius: 36px; border: 1px solid var(--line-2);
  background: linear-gradient(160deg, #241c42, #15102a 70%); box-shadow: 0 -20px 60px -30px rgb(0 0 0 / 0.8);
}
.stack-card:nth-child(4) { background: var(--sunrise); color: var(--ink); border: 0; }
.stack-card:nth-child(4) p { color: rgb(23 12 5 / 0.8); }
.stack-card:nth-child(4) .stack-num { -webkit-text-stroke-color: rgb(23 12 5 / 0.5); }
.stack-num { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 10vw, 9rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px rgb(255 255 255 / 0.35); }
.stack-card h3 { font-size: clamp(1.7rem, 3.4vw, 3.2rem); letter-spacing: -0.025em; line-height: 1; }
.stack-card p { color: #d6d0f0; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem); max-width: 44ch; margin-top: 0.8rem; }
@media (max-width: 600px) { .stack-card { grid-template-columns: 1fr; min-height: 0; gap: 0.6rem; } .stack-num { font-size: 4rem; } }

/* ---------- Experience ---------- */
.experience { padding: clamp(5rem, 10vw, 8rem) 0; }
.exp-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.exp-side { position: sticky; top: 110px; }
@media (max-width: 900px) { .exp-grid { grid-template-columns: 1fr; } .exp-side { position: static; } }
.tools-title { font-family: var(--body); font-weight: 600; font-size: 1rem; color: var(--muted); margin: 2.5rem 0 1rem; }
.tool-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tool-cloud li { padding: 0.5rem 1rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 0.92rem; transition: background-color 200ms, color 200ms, translate 300ms var(--ease-out); }
@media (hover: hover) { .tool-cloud li:hover { background: var(--sun); color: var(--ink); translate: 0 -3px; } }
.jobs { border-top: 1px solid var(--line-2); }
.jobs li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.2rem; padding: 1.4rem 0.6rem; border-bottom: 1px solid var(--line-2); transition: background-color 300ms; }
@media (hover: hover) { .jobs li:hover { background: rgb(255 255 255 / 0.03); } .jobs li:hover .when { color: var(--sun); } }
.jobs li:first-child .when { color: var(--sun); }
.when { color: var(--muted); font-size: 0.9rem; padding-top: 0.25rem; font-variant-numeric: tabular-nums; transition: color 200ms; }
.jobs h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -0.01em; }
.jobs p { color: var(--muted); margin-top: 0.2rem; font-size: 0.97rem; }
@media (max-width: 520px) { .jobs li { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; padding-top: clamp(6rem, 12vw, 10rem); border-top: 1px solid var(--line); }
.contact-glow { position: absolute; left: 50%; bottom: -30vh; width: 130vw; height: 90vh; translate: -50% 0; background: radial-gradient(closest-side, rgb(255 94 58 / 0.5), rgb(255 181 71 / 0.18) 50%, transparent 75%); filter: blur(40px); pointer-events: none; }
.contact-inner { position: relative; z-index: 1; }
.contact-title { font-size: clamp(2.6rem, 7.4vw, 7.6rem); line-height: 0.95; letter-spacing: -0.035em; font-weight: 800; }
.contact-lede { color: #d6d0f0; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.45rem); max-width: 42ch; margin: 1.6rem 0 2.4rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; margin-top: clamp(2.5rem, 6vw, 4rem); max-width: 900px; }
@media (max-width: 640px) { .contact-list { grid-template-columns: 1fr; } }
.contact-list li:first-child { grid-column: 1 / -1; }
.contact-list li { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line-2); }
.contact-list span { color: var(--muted); min-width: 6rem; font-size: 0.92rem; }
.contact-list a { text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
@media (hover: hover) { .contact-list a:hover { color: var(--sun); } }
.copy { margin-left: auto; padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid var(--line-2); background: none; cursor: pointer; font-size: 0.8rem; color: var(--muted); }
.copy.is-done { color: #7ff0b2; border-color: rgb(127 240 178 / 0.4); }
.wordmark {
  position: relative; z-index: 1; margin-top: clamp(4rem, 8vw, 6rem); font-family: var(--display); font-weight: 800; white-space: nowrap;
  font-size: 10vw; line-height: 0.85; letter-spacing: -0.03em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / 0.2);
  user-select: none;
}
.site-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.6rem var(--pad); color: var(--muted); font-size: 0.88rem; border-top: 1px solid var(--line); }
.site-footer a { text-decoration: none; }
@media (hover: hover) { .site-footer a:hover { color: var(--text); } }

/* ---------- Case study panel ---------- */
.case-panel {
  --c: var(--coral);
  margin: 0 0 0 auto; width: min(100vw, 1080px); max-width: none; height: 100dvh; max-height: none; padding: 0; border: 0;
  border-left: 1px solid var(--line-2); background: var(--night); color: var(--text); overflow: hidden;
}
.case-panel[open] { animation: panel-in 600ms var(--ease-out); }
.case-panel::backdrop { background: rgb(5 3 12 / 0.7); backdrop-filter: blur(6px); }
@keyframes panel-in { from { translate: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .case-panel[open] { animation: none; } }
.case-close {
  position: absolute; top: 1.1rem; right: 1.1rem; z-index: 5; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(13 10 26 / 0.7); border: 1px solid var(--line-2); cursor: pointer; backdrop-filter: blur(8px);
}
.case-close svg, .viewer svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.case-body { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.case-hero { padding: clamp(4.5rem, 8vw, 6rem) clamp(1.4rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--c) 40%, transparent), transparent 60%), #150f29; border-bottom: 1px solid var(--line); }
.case-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.case-meta span { font-size: 0.85rem; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--line-2); color: #ddd6ff; }
.case-title { font-size: clamp(2.1rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; font-weight: 800; margin-top: 1.2rem; }
.case-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(1.8rem, 4vw, 2.6rem); }
@media (max-width: 640px) { .case-metrics { grid-template-columns: 1fr 1fr; } }
.case-metrics div { padding: 1rem 1.1rem; border-radius: 18px; background: rgb(255 255 255 / 0.05); border: 1px solid var(--line); display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.case-metrics dd { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.05; }
.case-metrics dt { color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
.case-metrics div:first-child dd { color: var(--c); }
.case-section { padding: clamp(2rem, 4vw, 3rem) clamp(1.4rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.case-h { font-family: var(--body); font-weight: 600; font-size: 0.95rem; color: var(--muted); margin-bottom: 1rem; }
.case-goal { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 34ch; }
.case-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; counter-reset: s; }
@media (max-width: 640px) { .case-steps { grid-template-columns: 1fr; } }
.case-steps li { counter-increment: s; padding: 1.4rem; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.case-steps li::before { content: "0" counter(s); display: block; font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--c); margin-bottom: 0.6rem; }
.case-steps b { display: block; font-size: 1.1rem; margin-bottom: 0.3rem; }
.case-steps p { color: var(--muted); font-size: 0.97rem; }
.case-highlights { display: grid; gap: 0.6rem; }
.case-highlights li { display: flex; gap: 0.8rem; align-items: baseline; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); }
.case-highlights li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--c); translate: 0 -2px; }
.case-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.case-tabs button { padding: 0.6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-2); background: none; cursor: pointer; color: var(--muted); font-weight: 500; }
.case-tabs button[aria-selected="true"] { background: var(--text); color: var(--night); border-color: var(--text); }
.case-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 640px) { .case-shots { grid-template-columns: 1fr; } }
.case-shots button { padding: 0; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: #fff; cursor: zoom-in; display: block; text-align: left; transition: translate 300ms var(--ease-out), box-shadow 300ms; }
.case-shots button:first-child { grid-column: 1 / -1; }
.case-shots img { width: 100%; max-height: 420px; object-fit: cover; object-position: top; }
.case-shots span { display: block; padding: 0.6rem 0.9rem; background: var(--card); color: var(--muted); font-size: 0.85rem; }
@media (hover: hover) { .case-shots button:hover { translate: 0 -4px; box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.8); } }
.case-cta { padding: clamp(2rem, 5vw, 3.5rem) clamp(1.4rem, 5vw, 4rem) clamp(3rem, 6vw, 4rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.case-cta p { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -0.02em; }

/* ---------- Screenshot viewer ---------- */
.viewer {
  width: min(100vw - 2rem, 1280px); max-width: none; height: min(100dvh - 2rem, 920px); max-height: none;
  padding: 0; border: 1px solid var(--line-2); border-radius: 24px; background: #0b0816; color: var(--text);
  display: none; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); overflow: hidden;
}
.viewer[open] { display: grid; animation: viewer-in 260ms var(--ease-out); }
.viewer::backdrop { background: rgb(5 3 12 / 0.85); backdrop-filter: blur(6px); }
@keyframes viewer-in { from { opacity: 0; scale: 0.96; } }
@media (prefers-reduced-motion: reduce) { .viewer[open] { animation: none; } }
.viewer-bar { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1rem 0.9rem 1.4rem; border-bottom: 1px solid var(--line); }
.viewer-title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.viewer-count { color: var(--muted); font-size: 0.88rem; margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.viewer-close, .viewer-prev, .viewer-next { width: 44px; height: 44px; flex: none; display: grid; place-items: center; cursor: pointer; background: var(--card); border: 1px solid var(--line-2); border-radius: 50%; transition: background-color 150ms; }
@media (hover: hover) { .viewer-close:hover, .viewer-prev:hover, .viewer-next:hover { background: var(--card-2); } }
.viewer-stage { margin: 0; min-height: 0; min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); gap: 0.7rem; padding: 1.2rem; }
.viewer-img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 10px; }
.viewer-caption { text-align: center; color: var(--muted); font-size: 0.88rem; }
.viewer-nav { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; border-top: 1px solid var(--line); }
.viewer-thumbs { flex: 1; min-width: 0; display: flex; gap: 0.5rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 2px; }
.viewer-thumbs button { flex: none; width: 92px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; opacity: 0.5; transition: opacity 150ms, border-color 150ms; }
.viewer-thumbs button img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.viewer-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--sun); }

/* ---------- Gentle reveals (section titles only) ---------- */
.js .reveal { opacity: 0; translate: 0 30px; transition: opacity 900ms var(--ease-out), translate 900ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; translate: none; } }

/* ---------- v3: logo, rotating headline, map grid, hint ---------- */
.brand-img { display: block; height: 36px; width: auto; }
@media (max-width: 520px) { .brand-img { height: 30px; } }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: 0.06em; white-space: nowrap; }
.hero-title .line > .rotator { display: inline-grid; }
.rot-word { grid-area: 1 / 1; opacity: 0; translate: 0 70%; transition: opacity 500ms var(--ease-out), translate 700ms var(--ease-out); }
.rot-word.is-on { opacity: 1; translate: 0 0; }
.rot-word.is-out { opacity: 0; translate: 0 -70%; }
@media (prefers-reduced-motion: reduce) { .rot-word { transition: none; } }

.phone-map .water { fill: #1d2c55; }
.phone-map .park { fill: #1d3a33; }
.phone-map .blocks rect { fill: #241e3d; }
.phone-map .roads path { fill: none; stroke: #352e57; stroke-width: 8; }
.phone-map .hwy { fill: none; stroke: #5e4524; stroke-width: 9; stroke-linecap: round; }
.phone-map .street { font: 600 7px var(--body); fill: #8a82b0; letter-spacing: 0.02em; }
.phone-map .rk circle { stroke: rgb(13 10 26 / 0.6); stroke-width: 2; }
.phone-map .rk text { font: 800 11px var(--body); fill: #0d0a1a; text-anchor: middle; }
.phone-map .g1 circle { fill: #34d27b; }
.phone-map .g2 circle { fill: #ffc425; }
.phone-map .g3 circle { fill: #ff7a45; }
.phone-map .rk { transform-box: fill-box; transform-origin: center; }
.phone-map.play .rk { animation: rkpop 500ms var(--ease-out) both; animation-delay: var(--d); }
@keyframes rkpop { from { opacity: 0; transform: scale(0.3); } }
.phone-map .pin { fill: url(#lg); stroke: #170c05; stroke-width: 1; }
.phone-map .you .pin { fill: #ff8a2a; }
.phone-map .pulse { fill: rgb(255 154 31 / 0.35); transform-box: fill-box; transform-origin: center; animation: radar 2.2s var(--ease-out) infinite; }
@keyframes radar { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .phone-map .pulse, .phone-map.play .rk { animation: none; } }
.map-legend { margin-left: auto; display: flex; align-items: center; gap: 0.3rem; white-space: nowrap; font-size: 0.68rem; font-weight: 600; color: #e4def9; }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; margin-left: 0.3rem; }
.map-legend i:first-child { margin-left: 0; }
.map-legend .l1 { background: #34d27b; } .map-legend .l2 { background: #ffc425; } .map-legend .l3 { background: #ff7a45; }

/* Real screenshots tucked behind the phone. They slide out once the section is in view. */
.phone-wrap { position: relative; --cw: 290px; }
.phone { z-index: 1; }
.proof { display: contents; }
.proof-card { position: absolute; left: 50%; z-index: 0; width: var(--cw); height: 150px; padding: 0; border: 1px solid rgb(255 255 255 / 0.14); border-radius: 14px; overflow: hidden; background: #202124; cursor: pointer; text-align: left; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.75); transition: transform 900ms var(--ease-out), opacity 500ms ease, box-shadow 300ms ease; }
.proof-card img { display: block; width: 185%; max-width: none; height: auto; }
.pcap-x { display: none; }
.proof-cap { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.65rem 0.3rem 0.5rem; border-radius: 999px; white-space: nowrap; font-size: 0.68rem; color: #cfc8ef; background: rgb(13 10 26 / 0.88); }
.proof-cap b { display: flex; align-items: center; gap: 0.35rem; color: var(--text); font-weight: 700; }
.proof-cap b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d27b; box-shadow: 0 0 0 3px rgb(52 210 123 / 0.25); }
.pc-a { top: 17%; --to: translateX(calc(-1 * var(--cw) - 50px)) rotate(-5deg); --hov: translateX(calc(-1 * var(--cw) - 64px)) translateY(-6px) rotate(-1deg) scale(1.04); }
.pc-b { top: 47%; --to: translateX(calc(-1 * var(--cw) - 34px)) rotate(4deg); --hov: translateX(calc(-1 * var(--cw) - 48px)) translateY(6px) rotate(1deg) scale(1.04); }
.proof-card { transform: var(--to); }
.js .proof-card { opacity: 0; transform: translateX(calc(var(--cw) / -2)) rotate(0deg) scale(0.9); }
.js .phone-wrap.is-out .proof-card { opacity: 1; transform: var(--to); }
.js .phone-wrap.is-out .pc-a { transition-delay: 350ms; }
.js .phone-wrap.is-out .pc-b { transition-delay: 550ms; }
.js .phone-wrap.is-out .proof-card:hover, .js .phone-wrap.is-out .proof-card:focus-visible, .js .phone-wrap.is-out:has(.pc-open:hover) .proof-card { transform: var(--hov); transition-delay: 0ms; }
.proof-card:hover, .proof-card:focus-visible { box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.75), 0 0 0 2px var(--sun); }
.proof-card.swap img { animation: proofswap 500ms var(--ease-out); }
@keyframes proofswap { from { opacity: 0; scale: 1.06; } to { opacity: 1; scale: 1; } }
@media (max-width: 1100px) {
  .phone-wrap { display: flex; flex-direction: column; align-items: center; }
  .proof { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; order: 2; width: min(100%, 440px); margin-top: 1.6rem; }
  .proof-card, .js .proof-card, .js .phone-wrap.is-out .proof-card, .js .phone-wrap.is-out .proof-card:hover, .js .phone-wrap.is-out:has(.pc-open:hover) .proof-card { position: relative; left: auto; top: auto; width: auto; height: 120px; transform: none; opacity: 1; }
  .proof-card img { width: 190%; }
  .pcap-x { display: inline; }
}
@media (max-width: 420px) { .proof-cap { font-size: 0.6rem; padding: 0.25rem 0.5rem 0.25rem 0.4rem; } .proof-card img { width: 230%; } }
@media (prefers-reduced-motion: reduce) { .proof-card { transition: none; } .proof-card.swap img { animation: none; } }
.pc-open { animation: ctaPulse 2.4s var(--ease-out) infinite; }
@keyframes ctaPulse { 0% { box-shadow: 0 0 0 0 rgb(255 154 31 / 0.55); } 70%, 100% { box-shadow: 0 0 0 14px rgb(255 154 31 / 0); } }
@media (prefers-reduced-motion: reduce) { .pc-open { animation: none; } }
@media (max-width: 520px) { .pcap-x { display: none; } }
