/* ============================================================
   SOLVABLE — Solve · Build · Grow
   ============================================================ */

:root {
  --bg0: #070C13;
  --bg1: #0B1119;
  --bg2: #101825;
  --ink: #EFF4F3;
  --muted: #97A3B0;
  --teal: #2CC5A8;
  --teal-dark: #1DA189;
  --teal-ink: #06231D;
  --navy: #202B3A;
  --line: rgba(239, 244, 243, 0.08);
  --pad: clamp(1.25rem, 4vw, 4rem);
  --font-d: "Space Grotesk", "Segoe UI", sans-serif;
  --font-b: "Inter", "Segoe UI", sans-serif;
  --font-l: "Poppins", "Segoe UI", sans-serif;
  --font-m: "Cascadia Code", Consolas, "SF Mono", monospace;

  /* logo ribbon colors — white variant by default (dark site) */
  --mark-teal: #2CC5A8;
  --mark-teal-fold: #1DA189;
  --mark-dark: #F4F7F6;
  --mark-dark-fold: #C9D4D2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }

body {
  background: var(--bg0);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--teal); color: var(--teal-ink); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg0); }
::-webkit-scrollbar-thumb { background: #1E2A3A; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #2A394E; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 700; }

/* custom cursor takes over on hover-capable devices */
html.has-cursor, html.has-cursor a, html.has-cursor button,
html.has-cursor .service-row { cursor: none; }

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg0);
  display: flex; align-items: center; justify-content: center;
  /* safety net: if scripts never run, fade the veil away */
  animation: preloaderAuto 0.6s ease 7s forwards;
}
@keyframes preloaderAuto { to { opacity: 0; visibility: hidden; } }

.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.preloader-mark { width: 96px; height: 89px; overflow: visible; }
.preloader-tag {
  font-family: var(--font-d); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.42em; text-indent: 0.42em; color: var(--muted);
}
.preloader-tag i, .footer-tag i, .mm-meta i { font-style: normal; color: var(--teal); }
.preloader-bar { width: 170px; height: 2px; background: var(--line); border-radius: 99px; overflow: hidden; }
.preloader-bar-fill {
  display: block; width: 100%; height: 100%;
  background: var(--teal); transform: scaleX(0); transform-origin: left center;
}
.preloader-count {
  position: absolute; right: clamp(1.5rem, 5vw, 4rem); bottom: 1rem;
  font-family: var(--font-d); font-weight: 700; line-height: 1;
  font-size: clamp(5rem, 14vw, 11rem); color: rgba(239, 244, 243, 0.07);
  user-select: none;
}

/* ============ CHROME ============ */
.grain {
  position: fixed; inset: 0; z-index: 900; pointer-events: none;
  opacity: 0.055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 1001;
  pointer-events: none; border-radius: 50%; opacity: 0;
}
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--teal); }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(44, 197, 168, 0.65); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ============ NAV ============ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1), background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(7, 12, 19, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--line);
}
.site-nav.hidden { transform: translateY(-101%); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: 1rem var(--pad);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-mark { width: 34px; height: 32px; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-name {
  font-family: var(--font-l); font-weight: 600; font-size: 1.4rem;
  letter-spacing: -0.015em; color: var(--ink); line-height: 1;
}

.nav-links { display: flex; gap: 2.4rem; margin-left: auto; }
.nav-link {
  position: relative; font-size: 0.95rem; font-weight: 500; color: var(--muted);
  padding: 0.4rem 0; transition: color 0.3s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--teal); transform: scaleX(0); transform-origin: right center;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left center; }

.nav-burger {
  display: none; width: 44px; height: 44px; position: relative; z-index: 460;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav-burger span {
  display: block; width: 26px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-burger.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ============ MOBILE MENU ============ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 450;
  background: rgba(7, 12, 19, 0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--pad) 3rem;
  visibility: hidden; opacity: 0; transition: opacity 0.4s ease, visibility 0s 0.4s;
}
.mobile-menu.open { visibility: visible; opacity: 1; transition: opacity 0.4s ease; }
.mm-link {
  display: block; font-family: var(--font-d); font-weight: 600;
  font-size: clamp(2.4rem, 9vw, 4rem); line-height: 1.25; color: var(--ink);
}
.mm-link:hover { color: var(--teal); }
.mm-meta { margin-top: 3rem; color: var(--muted); font-size: 0.9rem; }
.mm-meta a { color: var(--teal); display: block; margin-bottom: 0.6rem; font-size: 1.05rem; }
.mm-meta p { letter-spacing: 0.35em; font-size: 0.75rem; }

/* ============ BUTTONS ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem; padding: 0.95em 1.9em; border-radius: 999px;
  font-family: var(--font-d); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.02em;
  overflow: hidden; white-space: nowrap;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.35s ease; }
.btn:hover svg { transform: translateY(3px); }

.btn-primary { background: var(--teal); color: var(--teal-ink); }
.btn-primary:hover { background: #3ADBBC; box-shadow: 0 8px 32px -8px rgba(44, 197, 168, 0.55); }

.btn-ghost { border: 1px solid rgba(239, 244, 243, 0.22); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-dark { background: #0F1826; color: var(--ink); }
.btn-dark:hover { background: #060D16; box-shadow: 0 12px 36px -10px rgba(6, 13, 22, 0.6); }

.btn-outline-dark { border: 1.5px solid rgba(11, 23, 35, 0.4); color: #0B1723; }
.btn-outline-dark:hover { background: #0B1723; color: var(--ink); border-color: #0B1723; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden;
  padding: 7rem var(--pad) 5rem;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 80%, transparent);
}
.hero-glow {
  position: absolute; left: 50%; top: 32%; width: 72vw; height: 72vw;
  max-width: 900px; max-height: 900px;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(44, 197, 168, 0.16), transparent 62%);
  filter: blur(10px);
}
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, transparent 30%, rgba(7, 12, 19, 0.55) 78%, var(--bg0) 100%),
    linear-gradient(to bottom, rgba(7, 12, 19, 0.6), transparent 22%, transparent 82%, var(--bg0));
}

.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 1200px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2.2rem;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(44, 197, 168, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(44, 197, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(44, 197, 168, 0); }
}

.hero-title {
  font-size: clamp(3.2rem, 9.5vw, 8.5rem);
  line-height: 0.98; letter-spacing: -0.03em;
}
.hero-title .accent { color: var(--teal); }
.hero-title em { font-style: normal; color: var(--ink); }

.hero-sub {
  max-width: 580px; margin: 2rem auto 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--muted);
}
.hero-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 2.8rem; }

.hero-chips { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.6em 1.2em; border-radius: 999px;
  background: rgba(16, 24, 37, 0.55); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.82rem; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.chip:nth-child(1) { top: 26%; left: 11%; transform: rotate(-5deg); }
.chip:nth-child(2) { top: 32%; right: 9%; transform: rotate(4deg); }
.chip:nth-child(3) { bottom: 27%; left: 15%; transform: rotate(3deg); }
.chip:nth-child(4) { bottom: 31%; right: 13%; transform: rotate(-4deg); }

.hero-scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.hero-scroll-line { position: relative; width: 1px; height: 52px; background: var(--line); overflow: hidden; }
.hero-scroll-line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--teal); animation: scrollScan 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes scrollScan { to { top: 110%; } }
.hero-scroll-text { font-size: 0.68rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); }

/* ============ MARQUEE ============ */
.marquee { padding: 4rem 0 3.4rem; border-block: 1px solid var(--line); overflow: hidden; }
.marquee-row { overflow: hidden; white-space: nowrap; }
.marquee-row.reverse { margin-top: 0.8rem; }
.marquee-inner { display: inline-flex; will-change: transform; }
.marquee-chunk {
  display: inline-block; white-space: nowrap;
  font-family: var(--font-d); font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.1; letter-spacing: -0.01em;
  padding-right: 0.5em;
}
.marquee-chunk i { font-style: normal; color: var(--teal); font-size: 0.6em; vertical-align: 0.25em; padding: 0 0.35em; }
.marquee-row.reverse .marquee-chunk {
  color: transparent; -webkit-text-stroke: 1px rgba(239, 244, 243, 0.28);
  font-size: clamp(1.6rem, 3.6vw, 3rem);
}
.marquee-row.reverse .marquee-chunk i { color: var(--teal); -webkit-text-stroke: 0; }

/* no-JS fallback: keep the strip alive with CSS only */
html.no-gsap .marquee-inner { animation: marqueeFallback 36s linear infinite; }
@keyframes marqueeFallback { to { transform: translateX(-50%); } }

/* ============ STATEMENT ============ */
.statement { max-width: 1150px; margin: 0 auto; padding: clamp(7rem, 14vh, 11rem) var(--pad); }
.statement-eyebrow {
  font-size: 0.8rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2rem;
}
.statement-text {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 3.3rem); line-height: 1.28; letter-spacing: -0.015em;
}
.statement-text .st-word { display: inline-block; }

/* ============ SECTION HEAD ============ */
.section-head { position: relative; padding: 0 var(--pad); max-width: 1500px; margin: 0 auto 4rem; }
.eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.6rem;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }
.section-title { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.025em; }
.section-sub { max-width: 440px; margin-top: 1.5rem; color: var(--muted); }
.section-count {
  position: absolute; top: 0.4rem; right: var(--pad);
  font-family: var(--font-d); font-weight: 500; font-size: 1.15rem; color: var(--teal);
}

/* ============ SERVICES ============ */
.services { background: var(--bg1); padding: clamp(6rem, 12vh, 9rem) 0; border-block: 1px solid var(--line); }
.services-list { border-top: 1px solid var(--line); }

.service-row { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.service-row::before {
  content: ""; position: absolute; inset: 0; background: var(--teal);
  transform: scaleY(0); transform-origin: bottom center;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.service-row:hover::before { transform: scaleY(1); transform-origin: top center; }

.service-row-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 4.5rem 1fr auto 3.5rem;
  align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  max-width: 1500px; margin: 0 auto;
  padding: clamp(1.6rem, 3.5vh, 2.4rem) var(--pad);
}
.service-num {
  font-family: var(--font-d); font-weight: 500; font-size: 0.95rem; color: var(--muted);
  transition: color 0.35s ease;
}
.service-name {
  font-size: clamp(1.45rem, 2.6vw, 2.35rem); font-weight: 600; letter-spacing: -0.015em;
  line-height: 1.1; transition: color 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-desc {
  margin-top: 0.4rem; font-size: 0.95rem; color: var(--muted); max-width: 52ch;
  transition: color 0.35s ease;
}
.service-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.service-tags span {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.35em 0.95em;
  font-size: 0.78rem; color: var(--muted);
  transition: color 0.35s ease, border-color 0.35s ease;
}
.service-arrow {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--muted);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease,
              transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-arrow svg { width: 20px; height: 20px; }

.service-row:hover .service-num { color: rgba(6, 35, 29, 0.65); }
.service-row:hover .service-name { color: var(--teal-ink); transform: translateX(10px); }
.service-row:hover .service-desc { color: rgba(6, 35, 29, 0.72); }
.service-row:hover .service-tags span { color: var(--teal-ink); border-color: rgba(6, 35, 29, 0.3); }
.service-row:hover .service-arrow {
  background: var(--teal-ink); color: var(--teal); border-color: transparent;
  transform: translate(4px, -4px) scale(1.05);
}

.service-icon { display: none; }

/* ============ WORK / PORTFOLIO GRID ============ */
.work { padding: clamp(6rem, 12vh, 9rem) 0; background: var(--bg0); }
.work-head { margin-bottom: 3.2rem; }

.work-grid {
  max-width: 1500px; margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2rem);
}

.work-item {
  display: flex; flex-direction: column; gap: 1.1rem;
  color: inherit; text-decoration: none;
}
.work-item-media {
  position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden;
  box-shadow: 0 28px 60px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}
.work-item:hover .work-item-media {
  transform: translateY(-8px);
  box-shadow: 0 44px 90px -30px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.work-item-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #000));
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-item-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 78%);
}
.work-grid .work-item:hover .work-item-bg { transform: scale(1.07); }

.work-item-num {
  position: absolute; left: 1.4rem; bottom: 0.6rem; z-index: 1;
  font-family: var(--font-d); font-weight: 700; line-height: 1;
  font-size: clamp(3.5rem, 6vw, 5.5rem); color: rgba(255, 255, 255, 0.28);
  user-select: none;
}
.work-item-soon {
  position: absolute; top: 1.1rem; right: 1.1rem; z-index: 1;
  border: 1.5px dashed rgba(255, 255, 255, 0.6); border-radius: 999px;
  padding: 0.5em 1em; font-family: var(--font-d); font-weight: 500;
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  transition: opacity 0.4s ease;
}
.work-item:hover .work-item-soon { opacity: 0; }

.work-item-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; padding: 1.4rem;
  background: linear-gradient(to top, rgba(5, 9, 15, 0.78), rgba(5, 9, 15, 0.1) 55%, transparent);
  opacity: 0; transition: opacity 0.5s ease;
}
.work-item:hover .work-item-overlay { opacity: 1; }
.work-item-view {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-d); font-weight: 500; font-size: 0.9rem; color: #fff;
  transform: translateY(16px); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-item:hover .work-item-view { transform: translateY(0); }
.work-item-view svg {
  width: 30px; height: 30px; padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50%;
}

.work-item-meta {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.work-item-name {
  font-size: clamp(1.3rem, 1.9vw, 1.6rem); font-weight: 600; letter-spacing: -0.01em;
  transition: color 0.35s ease;
}
.work-item:hover .work-item-name { color: var(--accent); }
.work-item-cat { margin-top: 0.25rem; font-size: 0.88rem; color: var(--muted); }
.work-item-year { font-family: var(--font-m); font-size: 0.82rem; color: var(--muted); flex: none; }

.work-more { display: flex; justify-content: center; margin-top: clamp(2.6rem, 5vh, 3.6rem); padding: 0 var(--pad); }
.work-more .btn:hover svg { transform: translateX(4px); }

/* ---- homepage: center-aligned scroll showcase (cards stack on top of each other) ---- */
.work-showcase {
  max-width: 960px; margin: 0 auto; padding: 0 var(--pad);
  display: flex; flex-direction: column; gap: clamp(3rem, 8vh, 6rem);
}
.work-showcase .work-item { align-items: center; text-align: center; gap: 1.7rem; width: 100%; }
.work-showcase .work-item-media { width: 100%; aspect-ratio: 16 / 9; border-radius: 26px; }
.work-showcase .work-item-num { left: 2rem; bottom: 0.8rem; font-size: clamp(4.5rem, 9vw, 8rem); }
.work-showcase .work-item-overlay { padding: 2rem; }
.work-showcase .work-item-view { font-size: 1rem; }
.work-showcase .work-item-meta { flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; }
.work-showcase .work-item-cat {
  margin: 0; font-family: var(--font-d); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.work-showcase .work-item-name { font-size: clamp(1.8rem, 4vw, 3rem); }

/* JS-enabled stacking: the showcase becomes a pinned stage and the cards
   are laid on top of one another, each rising over the last as you scroll */
.work-showcase.is-stack { display: block; position: relative; gap: 0; /* height set inline by JS */ }
.work-showcase.is-stack .work-item {
  position: absolute; top: 0; left: 0; right: 0; margin: 0; width: auto;
  will-change: transform, opacity;
}

/* ============ TEAM ============ */
.team { background: var(--bg0); padding: clamp(6rem, 12vh, 9rem) 0; }

.team-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.6rem);
}

.member { display: flex; flex-direction: column; align-items: center; text-align: center; }
.member-photo {
  position: relative; width: min(250px, 64vw); aspect-ratio: 1;
  display: grid; place-items: center;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.member:hover .member-photo { transform: translateY(-6px); }

/* colored disc behind the avatar — desaturated + enlarged at rest,
   then shrinks into place and gains full colour on hover */
.member-disc {
  position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(1.28); border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--fa), color-mix(in srgb, var(--fa) 52%, #000));
  filter: grayscale(1) brightness(0.55); opacity: 0.4;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.55s ease, opacity 0.55s ease;
}
.member:hover .member-disc {
  transform: translate(-50%, -50%) scale(1);
  filter: grayscale(0) brightness(1); opacity: 1;
}

/* the avatar — greyscale at rest, full colour on hover */
.member-av {
  position: relative; z-index: 1; width: 80%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(150deg, var(--fa), color-mix(in srgb, var(--fa) 38%, #000));
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  filter: grayscale(1) brightness(0.82);
  transition: filter 0.55s ease, box-shadow 0.5s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.member:hover .member-av {
  filter: grayscale(0) brightness(1); transform: scale(1.03);
  box-shadow: 0 42px 80px -24px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.member-av::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 78%);
}
.member-mono {
  position: relative; font-family: var(--font-d); font-weight: 700;
  font-size: clamp(2.6rem, 5.5vw, 3.8rem); letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.94); line-height: 1;
}

/* touch devices have no hover — show everyone in full colour */
@media (hover: none) {
  .member-av { filter: none; }
  .member-disc { filter: none; opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
}

.member-info { margin-top: 1.6rem; }
.member-name {
  font-size: clamp(1.4rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -0.015em;
}
.member-role {
  margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); max-width: 26ch;
  margin-inline: auto;
}
.member-linkedin {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.1rem; padding: 0.55em 1.2em;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-d); font-weight: 500; font-size: 0.82rem; color: var(--ink);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.member-linkedin svg { width: 15px; height: 15px; flex: none; }
.member-linkedin:hover {
  border-color: var(--teal); color: var(--teal);
  background: rgba(44, 197, 168, 0.06); transform: translateY(-2px);
}

/* ---- mobile: single horizontal auto-rotating carousel (JS adds .is-carousel) ---- */
.team-dots { display: none; }
.team-grid.is-carousel {
  display: flex; flex-wrap: nowrap; gap: 0;
  max-width: none; padding: 0;
  transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.team-grid.is-carousel .member { flex: 0 0 100%; padding: 0 var(--pad); }

/* every card rests greyscale with the large faint disc; the centred/active
   card gets exactly the desktop hover treatment (colour + shrunk disc + lift) */
.team-grid.is-carousel .member-av { filter: grayscale(1) brightness(0.82); transform: none; }
.team-grid.is-carousel .member-disc {
  filter: grayscale(1) brightness(0.55); opacity: 0.4;
  transform: translate(-50%, -50%) scale(1.28);
}
.team-grid.is-carousel .member-photo { transform: none; }
.team-grid.is-carousel .member.is-active .member-av {
  filter: grayscale(0) brightness(1); transform: scale(1.03);
  box-shadow: 0 42px 80px -24px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.team-grid.is-carousel .member.is-active .member-disc {
  filter: grayscale(0) brightness(1); opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.team-grid.is-carousel .member.is-active .member-photo { transform: translateY(-6px); }

/* pagination dots */
.team-grid.is-carousel ~ .team-dots {
  display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.9rem;
}
.team-dot {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px;
  background: rgba(151, 163, 176, 0.35); cursor: pointer;
  transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1), background 0.3s ease;
}
.team-dot.active { width: 26px; background: var(--teal); }

/* ============ STATS ============ */
.stats { background: var(--bg1); border-block: 1px solid var(--line); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1500px; margin: 0 auto;
}
.stat { padding: clamp(2.5rem, 6vh, 4rem) 2rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat-num {
  display: block; font-family: var(--font-d); font-weight: 700; line-height: 1;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem); color: var(--teal); letter-spacing: -0.02em;
}
.stat-label { display: block; margin-top: 0.7rem; color: var(--muted); font-size: 0.95rem; }

/* ============ CTA ============ */
.cta {
  position: relative; overflow: hidden;
  background: var(--teal); color: #0B1723;
  padding: clamp(7rem, 16vh, 11rem) 0;
  /* navy logo variant on teal surface */
  --mark-dark: #182230; --mark-dark-fold: #0E1620;
  --mark-teal: #F4F7F6; --mark-teal-fold: #D6E4E1;
}
.cta::before {
  content: ""; position: absolute; left: -10%; top: -30%; width: 60%; height: 90%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
  pointer-events: none;
}
.cta ::selection { background: #0B1723; color: var(--teal); }
.cta-inner {
  position: relative; max-width: 1250px; margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(2.5rem, 5vw, 5rem); align-items: start;
}

.cta-badge {
  position: absolute; top: -3.5rem; right: var(--pad);
  width: 128px; height: 128px;
}
.cta-badge > svg:first-of-type { width: 100%; height: 100%; }
.cta-badge text {
  font-family: var(--font-d); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.22em; fill: #0B1723;
}
.cta-badge-mark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 39px;
}

.cta-title { font-size: clamp(2.7rem, 5.5vw, 4.8rem); line-height: 1; letter-spacing: -0.03em; }
.cta-title span { color: #F4F7F6; }
.cta-sub { max-width: 540px; margin-top: 1.8rem; font-size: 1.12rem; color: rgba(11, 23, 35, 0.75); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.cta-note { margin-top: 1.5rem; font-size: 0.85rem; color: rgba(11, 23, 35, 0.55); }

.wa-icon { width: 17px; height: 17px; flex: none; }
.btn-has-wa .wa-icon { color: #128C5E; }
.btn-has-wa:hover .wa-icon { color: #25D366; }
.btn:hover .wa-icon { transform: none; }

/* ---- contact form ---- */
.cta-form {
  position: relative;
  background: #0D1521; border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px; padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: 0 40px 90px -30px rgba(6, 13, 22, 0.7);
  margin-top: 5.5rem;
}
.form-title {
  font-family: var(--font-d); font-weight: 600; font-size: 1.15rem;
  color: var(--ink); margin-bottom: 1.4rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1.05rem; }
.form-field label {
  display: block; margin-bottom: 0.45rem;
  font-family: var(--font-d); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(239, 244, 243, 0.55);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; display: block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px; padding: 0.8em 1em;
  font-family: var(--font-b); font-size: 0.95rem; color: var(--ink);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.form-field textarea { resize: vertical; min-height: 104px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(151, 163, 176, 0.55); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--teal);
  background: rgba(44, 197, 168, 0.06);
  box-shadow: 0 0 0 3px rgba(44, 197, 168, 0.16);
}
.form-field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2397A3B0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.6rem;
}
.form-field select option { background: #0D1521; color: var(--ink); }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
.form-submit { border: none; }
.btn-wa {
  border: 1px solid rgba(37, 211, 102, 0.45); color: #4AE58A;
}
.btn-wa .wa-icon { color: #25D366; }
.btn-wa:hover { background: rgba(37, 211, 102, 0.1); border-color: #25D366; }
.form-hint { margin-top: 1.1rem; font-size: 0.8rem; color: rgba(239, 244, 243, 0.42); }

/* ============ FOOTER ============ */
.site-footer { background: #05090F; padding-top: clamp(4rem, 9vh, 6.5rem); overflow: hidden; }
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3rem;
  max-width: 1500px; margin: 0 auto; padding: 0 var(--pad) 4rem;
}
.footer-tag {
  margin-top: 1.1rem; font-family: var(--font-d);
  font-size: 0.72rem; letter-spacing: 0.4em; color: var(--muted);
}
.footer-cols { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(2rem, 6vw, 6rem); }
.fcol h4 {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.1rem;
}
.fcol a {
  display: block; padding: 0.28rem 0; color: var(--muted); font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.fcol a:hover { color: var(--teal); transform: translateX(4px); }

.footer-big {
  font-family: var(--font-d); font-weight: 700; text-align: center;
  font-size: clamp(4rem, 17.5vw, 16.5rem); line-height: 0.9; letter-spacing: -0.045em;
  color: transparent; -webkit-text-stroke: 1px rgba(239, 244, 243, 0.16);
  user-select: none; margin-top: 1rem; transform: translateY(0.12em);
  transition: color 0.6s ease;
}
.footer-big:hover { color: rgba(239, 244, 243, 0.06); }
.footer-big .accent { color: var(--teal); -webkit-text-stroke: 0; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line);
  max-width: 1500px; margin: 0 auto; padding: 1.6rem var(--pad) 2rem;
  font-size: 0.8rem; color: var(--muted);
}
.footer-motto { color: rgba(151, 163, 176, 0.55); }
.to-top {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.6em 1.3em;
  font-size: 0.8rem; color: var(--ink);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.to-top:hover { border-color: var(--teal); color: var(--teal); }

/* ============ PROJECT DETAIL / ALL-WORKS PAGES ============ */
.subpage { padding-top: 0; }
.project { background: var(--bg0); padding: clamp(8rem, 16vh, 12rem) 0 clamp(4rem, 8vh, 6rem); }
.project-inner { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.project-back {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2.2rem;
  font-family: var(--font-d); font-weight: 500; font-size: 0.85rem; color: var(--muted);
  transition: color 0.3s ease, transform 0.3s ease;
}
.project-back svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.project-back:hover { color: var(--teal); }
.project-back:hover svg { transform: translateX(-3px); }

.project-eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.4rem;
}
.project-eyebrow .eyebrow-dot { background: var(--accent, var(--teal)); }
.project-title {
  font-size: clamp(2.8rem, 8vw, 6rem); line-height: 0.98; letter-spacing: -0.03em;
}
.project-title .accent { color: var(--accent, var(--teal)); }
.project-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.project-meta span {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.4em 1em;
  font-size: 0.8rem; color: var(--muted);
}

.project-banner {
  position: relative; aspect-ratio: 16 / 7; border-radius: 26px; overflow: hidden;
  margin: 2.8rem 0 3rem;
  background: linear-gradient(135deg, var(--accent, var(--teal)), color-mix(in srgb, var(--accent, var(--teal)) 40%, #000));
  box-shadow: 0 40px 90px -34px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.project-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 28% 24%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse at 28% 24%, #000 20%, transparent 78%);
}
.project-banner-num {
  position: absolute; left: 2rem; bottom: 0.6rem;
  font-family: var(--font-d); font-weight: 700; line-height: 1;
  font-size: clamp(5rem, 18vw, 12rem); color: rgba(255, 255, 255, 0.24); user-select: none;
}

.project-body { max-width: 640px; }
.project-note {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.6rem;
  border: 1.5px dashed rgba(44, 197, 168, 0.5); border-radius: 999px; padding: 0.5em 1.1em;
  font-family: var(--font-d); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal);
}
.project-lead { font-family: var(--font-d); font-weight: 500; font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.35; letter-spacing: -0.01em; }
.project-sub { margin-top: 1.1rem; color: var(--muted); font-size: 1.05rem; }
.project-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }

/* all-works page reuses .work-grid; give it breathing room */
.allworks { background: var(--bg0); padding: clamp(8rem, 15vh, 11rem) 0 clamp(5rem, 10vh, 7rem); }
.allworks .section-head { margin-bottom: 3.2rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .service-tags { display: none; }
  .service-row-inner { grid-template-columns: 3.5rem 1fr 3.5rem; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-form { margin-top: 1.5rem; max-width: 580px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .team { overflow: hidden; }
  .team-grid { grid-template-columns: 1fr; max-width: 360px; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .hero-chips .chip:nth-child(2), .hero-chips .chip:nth-child(4) { display: none; }
  .chip:nth-child(1) { top: 20%; left: 6%; }
  .chip:nth-child(3) { bottom: 22%; left: auto; right: 8%; }
  .section-count { position: static; display: inline-block; margin-top: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: none; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .cta-badge { position: static; margin-bottom: 2.5rem; }
  .footer-cols { grid-template-columns: repeat(2, auto); }
}

@media (max-width: 560px) {
  .hero { padding-top: 6rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-chips { display: none; }
  .service-row-inner { grid-template-columns: 2.5rem 1fr 3rem; }
  .service-arrow { width: 40px; height: 40px; }
  .work-grid { grid-template-columns: 1fr; max-width: 420px; }
  .work-item-media { aspect-ratio: 16 / 10; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions .btn { width: 100%; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .pulse-dot, .hero-scroll-line::after { animation: none; }
  .marquee-inner, html.no-gsap .marquee-inner { animation: none; }
  .site-nav, .btn, .service-row::before, .service-name, .service-arrow { transition: none; }
}
