/* ============ CURSOR GLOW ============ */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62,228,212,0.07) 0%, rgba(62,228,212,0.03) 30%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity .4s;
  mix-blend-mode: screen;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ============ TOKENS ============ */
:root {
  /* Default: Deep ocean palette */
  --bg: #07090d;
  --bg-2: #0b0e14;
  --bg-3: #11151d;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --ink: #f4f6fa;
  --ink-2: rgba(244,246,250,0.72);
  --ink-3: rgba(244,246,250,0.5);
  --ink-4: rgba(244,246,250,0.32);
  --accent: #3ee4d4;        /* electric teal */
  --accent-ink: #07090d;
  --warn: #ffb86b;
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 64px);
  --pad-y: clamp(80px, 10vw, 140px);

  --display: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --sans: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
}

/* Palette: light */
[data-palette="light"] {
  --bg: #f5f4ef;
  --bg-2: #efece4;
  --bg-3: #ffffff;
  --line: rgba(10,12,16,0.10);
  --line-2: rgba(10,12,16,0.18);
  --ink: #0c0e12;
  --ink-2: rgba(12,14,18,0.74);
  --ink-3: rgba(12,14,18,0.52);
  --ink-4: rgba(12,14,18,0.30);
  --accent: #0d4d63;
  --accent-ink: #f5f4ef;
}

/* Palette: mono */
[data-palette="mono"] {
  --bg: #0a0a0a;
  --bg-2: #111;
  --bg-3: #161616;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.16);
  --ink: #fafafa;
  --ink-2: rgba(250,250,250,0.7);
  --ink-3: rgba(250,250,250,0.45);
  --ink-4: rgba(250,250,250,0.25);
  --accent: #ff5b1f;
  --accent-ink: #0a0a0a;
}

/* Density */
[data-density="cozy"] { --pad-y: clamp(64px, 8vw, 110px); }
[data-density="spacious"] { --pad-y: clamp(110px, 14vw, 200px); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); scrollbar-color: var(--line-2) var(--bg-2); scrollbar-width: thin; scroll-behavior: smooth; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.nav { position: fixed; z-index: 50; }
main, .foot { position: relative; z-index: 1; }

body {
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01","ss02","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ============ COMMON ============ */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.section__head { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) 56px; }
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 14px 0 18px;
  text-wrap: balance;
}
.section__title--sm { font-size: clamp(32px, 4vw, 52px); }
.section__title-muted { color: var(--ink-3); }
.section__lede {
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 17px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid var(--line-2);
  transition: all .2s ease;
  white-space: nowrap;
}
.btn__arrow { transition: transform .2s ease; display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--bg-3); border-color: var(--line-2); }
.btn--full { width: 100%; justify-content: center; }
.chip {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 16px var(--pad);
  transition: backdrop-filter .25s, background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; }
.nav__logo-plate {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex-shrink: 0;
}
.nav__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}
[data-palette="light"] .nav__logo-plate { background: transparent; width: 30px; height: 30px; }.nav__wordmark { font-size: 18px; }
.nav__sub { font-family: var(--mono); font-size: 12px; color: var(--ink-3); align-self: end; padding-bottom: 3px; }
.nav__links { display: flex; gap: 28px; justify-content: center; font-size: 14.5px; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.nav__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 30%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.4 } }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .2s; }
.nav--open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__sheet {
  display: none;
}

@media (max-width: 920px) {
  .nav__links, .nav__status, .nav__cta-btn { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__inner { gap: 12px; grid-template-columns: auto 1fr auto; }
  .nav__cta { gap: 0; }
  .nav__sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 64px 0 0 0;
    background: color-mix(in oklab, var(--bg) 96%, transparent);
    backdrop-filter: blur(18px);
    padding: 32px var(--pad);
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s, opacity .25s;
    z-index: 40;
    border-top: 1px solid var(--line);
  }
  .nav__sheet--open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__sheet a { padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 22px; letter-spacing: -0.015em; color: var(--ink); }
  .nav__sheet-cta { margin-top: 24px; align-self: flex-start; }
  .nav__sub { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: calc(var(--pad-y) + 60px) var(--pad) calc(var(--pad-y) - 20px);
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  opacity: 0.6;
  pointer-events: none;
}
.hero__visual {
  position: absolute; right: -10%; top: 50%; transform: translateY(-50%);
  width: 720px; height: 720px;
  pointer-events: none;
  opacity: 0.85;
}
.hov { overflow: visible; }

/* Core glow breathes */
.hov__core { transform-origin: 300px 300px; animation: hovBreathe 5s ease-in-out infinite; }
.hov__core--2 { animation-duration: 7s; animation-delay: -1.5s; }
@keyframes hovBreathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: 0.7; }
}

/* Sonar pings */
.hov__ping {
  transform-origin: 300px 300px;
  animation: hovPing 4.8s cubic-bezier(.2,.7,.3,1) infinite;
  opacity: 0;
}
@keyframes hovPing {
  0%   { transform: scale(0.4); opacity: 0; }
  10%  { opacity: 0.7; }
  100% { transform: scale(5);   opacity: 0; }
}

/* Concentric rings rotate at different speeds */
.hov__ring { transform-origin: 300px 300px; transform-box: fill-box; }
.hov__ring--cw      { animation: hovSpinCW 40s linear infinite; }
.hov__ring--ccw     { animation: hovSpinCCW 60s linear infinite; }
.hov__ring--cw-slow { animation: hovSpinCW 110s linear infinite; }
@keyframes hovSpinCW  { to { transform: rotate(360deg); } }
@keyframes hovSpinCCW { to { transform: rotate(-360deg); } }

/* Orbits */
.hov__orbit { transform-origin: 300px 300px; transform-box: fill-box; animation: hovSpinCW 24s linear infinite; }

/* Orbit dots pulse as they travel */
.hov__dot { animation: hovDotPulse 3s ease-in-out infinite; }
@keyframes hovDotPulse {
  0%, 100% { opacity: 0.3; r: 1.4; }
  50%      { opacity: 1;   r: 2.6; }
}

/* Twinkling stars */
.hov__twinkle { animation: hovTwinkle 3.5s ease-in-out infinite; }
@keyframes hovTwinkle {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.9; }
}
.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.hero__meta { margin-bottom: 28px; }
.hero__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(54px, 9vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0;
}
.hero__line { display: block; }
.hero__line--muted { color: var(--ink-3); }
.hero__rotator { color: var(--accent); display: flex; align-items: baseline; gap: 0.1em; }
.hero__rot-word {
  display: inline-block;
  animation: rot 0.6s cubic-bezier(.2,.7,.2,1);
}
@keyframes rot {
  from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero__caret {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s steps(2) infinite;
  margin-left: 0.05em;
  transform: translateY(-0.08em);
  font-weight: 400;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__lede {
  margin-top: 36px;
  max-width: 56ch;
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--ink-2);
  line-height: 1.5;
}
.hero__ctas { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero__strip {
  margin-top: clamp(60px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 22px 24px 22px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat__n {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat__l { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 720px) {
  .hero__strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
}

.hero__ticker {
  position: absolute; bottom: 0; left: 0; right: 0;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
}
.hero__ticker-track {
  display: flex; gap: 0;
  white-space: nowrap;
  width: max-content;
  animation: techTicker 80s linear infinite;
}
.hero__ticker-item { padding: 0 24px; display: inline-flex; gap: 24px; align-items: center; }
.hero__ticker-dot { color: var(--ink-4); }
@keyframes techTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============ SERVICES ============ */
.services { padding: var(--pad-y) 0; border-top: 1px solid var(--line); background: color-mix(in oklab, var(--bg-2) 70%, transparent); }
.services__layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 920px) { .services__layout { grid-template-columns: 1fr; gap: 32px; } }

.services__list { display: flex; flex-direction: column; }
.svc {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px 4px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  text-align: left;
  color: var(--ink-2);
  transition: color .2s, padding .25s;
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__id { font-family: var(--mono); font-size: 12px; color: var(--ink-4); width: 28px; }
.svc__glyph { font-size: 18px; color: var(--ink-3); transition: color .2s, transform .25s; }
.svc__body { display: flex; flex-direction: column; gap: 4px; }
.svc__title { font-family: var(--display); font-size: clamp(20px, 2vw, 26px); font-weight: 500; color: var(--ink); letter-spacing: -0.015em; }
.svc__summary { font-size: 14px; color: var(--ink-3); }
.svc__arrow { color: var(--ink-4); transition: transform .25s, color .2s; }
.svc--active { color: var(--ink); padding-left: 16px; }
.svc--active .svc__glyph { color: var(--accent); transform: rotate(45deg) scale(1.1); }
.svc--active .svc__arrow { color: var(--accent); transform: translateX(4px); }
.svc:hover { padding-left: 16px; color: var(--ink); }

.services__detail {
  position: sticky; top: 100px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg-3) 78%, transparent);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 36px;
  animation: fadeIn .35s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.services__detail-id { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.services__detail-glyph { font-size: 56px; color: var(--accent); margin: 24px 0 12px; line-height: 1; }
.services__detail-title { font-family: var(--display); font-weight: 500; font-size: 32px; letter-spacing: -0.02em; margin: 0 0 12px; }
.services__detail-text { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; margin: 0 0 24px; }
.services__detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.services__detail-cta { color: var(--accent); font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.services__detail-cta:hover { text-decoration: underline; }

/* ============ CLIENTS ============ */
.clients { padding: var(--pad-y) 0; border-top: 1px solid var(--line); overflow: hidden; background: rgba(255,255,255,0.04); }
.clients__head { max-width: var(--maxw); margin: 0 auto 48px; padding: 0 var(--pad); }
.clients__head .section__title { margin-top: 12px; }

.clients__counter {
  max-width: var(--maxw);
  margin: 0 auto 48px;
  padding: 0 var(--pad);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.clients__counter-n {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.clients__counter-l {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 28ch;
}

.clients__bands {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.clients__band {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}
.clients__band-track {
  display: flex;
  gap: 12px;
  white-space: nowrap;
  width: max-content;
}
.clients__band-track--left { animation: clientsBandLeft 40s linear infinite; }
.clients__band-track--right { animation: clientsBandRight 45s linear infinite; }
@keyframes clientsBandLeft { to { transform: translateX(-33.33%); } }
@keyframes clientsBandRight { to { transform: translateX(calc(-33.33%)); } }

.clients__pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-decoration: none;
  flex-shrink: 0;
}
.clients__pill img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.clients__pill span {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  letter-spacing: -0.01em;
}

@media (max-width: 720px) {
  .clients__counter { flex-direction: column; gap: 8px; }
  .clients__pill { padding: 10px 18px; gap: 10px; }
  .clients__pill img { width: 22px; height: 22px; }
  .clients__pill span { font-size: 13px; }
}

/* ============ WORK ============ */
.work { padding: var(--pad-y) var(--pad); background: color-mix(in oklab, var(--bg-2) 70%, transparent); border-top: 1px solid var(--line); }
.work__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
@media (max-width: 800px) { .work__grid { grid-template-columns: 1fr; } }
.proj {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  transition: border-color .4s, transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s;
  will-change: transform;
}
.proj:hover {
  border-color: var(--accent);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px color-mix(in oklab, var(--accent) 10%, transparent);
}
.proj__media {
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 16%, var(--bg-3)), var(--bg-3));
  position: relative;
}
.proj__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.3,1), filter .4s;
  will-change: transform;
}
.proj:hover .proj__media img {
  transform: scale(1.08);
  filter: brightness(1.05);
}
.proj__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,9,13,0.6) 100%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.proj:hover .proj__media::after { opacity: 1; }
.proj__media-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: color-mix(in oklab, var(--accent) 60%, transparent);
}
.proj__media-label {
  position: relative;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 0 30px color-mix(in oklab, var(--bg) 60%, transparent);
}
.proj__meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 8px;
}
.proj__tag { color: var(--ink-3); }
.proj__kpi { color: var(--accent); }
.proj__name {
  font-family: var(--display); font-size: clamp(22px, 2vw, 28px); font-weight: 500;
  letter-spacing: -0.02em; margin: 4px 0 0;
  transition: color .3s;
}
.proj:hover .proj__name { color: var(--accent); }
.proj__client { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin: 0; }
.proj__blurb { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin: 6px 0 8px; }
.proj__cta {
  font-family: var(--mono); font-size: 12px; color: var(--accent); margin-top: auto;
  transition: transform .3s, letter-spacing .3s;
}
.proj:hover .proj__cta { transform: translateX(6px); letter-spacing: 0.08em; }
.work__cta { max-width: var(--maxw); margin: 48px auto 0; text-align: center; }

/* ============ REVIEWS ============ */
.reviews { padding: var(--pad-y) var(--pad); border-top: 1px solid var(--line); }
.reviews__summary {
  margin-top: 28px;
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.reviews__stars { display: inline-flex; gap: 4px; color: #ffc94d; }
.reviews__summary-text { color: var(--ink-2); font-size: 15.5px; margin: 0; max-width: 60ch; }
.reviews__summary-text strong { color: var(--ink); font-weight: 500; }

.reviews__grid {
  max-width: var(--maxw); margin: 0 auto;
  columns: 3; column-gap: 20px;
}
.reviews__grid .review { break-inside: avoid; margin-bottom: 20px; }
@media (max-width: 980px) { .reviews__grid { columns: 2; } }
@media (max-width: 640px) { .reviews__grid { columns: 1; } }

.review {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--bg-3) 78%, transparent);
  backdrop-filter: blur(8px);
  transition: border-color .35s, transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s;
}
.review--animated {
  opacity: 0;
  transform: translateY(24px);
  animation: reviewSlideIn .6s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes reviewSlideIn {
  to { opacity: 1; transform: none; }
}
.review:hover {
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2), 0 0 20px color-mix(in oklab, var(--accent) 6%, transparent);
}
.review__header {
  display: flex; justify-content: space-between; align-items: center;
}
.review__stars { display: inline-flex; gap: 3px; color: #ffc94d; }
.review__verified {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4ade80;
}
.review__quote { color: var(--ink); font-size: 15.5px; line-height: 1.6; margin: 0; font-weight: 400; text-wrap: pretty; }
.review__person { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.review__photo {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid color-mix(in oklab, var(--accent) 30%, transparent);
  transition: border-color .3s;
}
.review:hover .review__photo { border-color: var(--accent); }
.review__avatar {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 22%, transparent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid color-mix(in oklab, var(--accent) 35%, transparent);
}
.review__name { font-size: 14.5px; color: var(--ink); font-weight: 500; }
.review__role { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.reviews__cta {
  max-width: var(--maxw); margin: 56px auto 0;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 32px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.reviews__cta h4 { font-family: var(--display); font-size: 22px; font-weight: 500; margin: 0 0 4px; letter-spacing: -0.015em; }
.reviews__cta p { color: var(--ink-2); margin: 0; font-size: 14.5px; }
.btn--google { background: #fff; color: #1f1f1f; border-color: #fff; padding: 12px 18px; }
.btn--google:hover { filter: brightness(0.96); }

/* ============ ABOUT ============ */
.about { padding: var(--pad-y) var(--pad); border-top: 1px solid var(--line); }
.about__inner { max-width: var(--maxw); margin: 0 auto; }
.about__quote {
  font-family: var(--display);
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--ink);
  max-width: 22ch;
  margin: 24px 0 80px;
  text-wrap: balance;
}
.about__quote-em { color: var(--accent); }
.about__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 800px) { .about__cols { grid-template-columns: 1fr; } }
.about__col { padding: 32px 28px 32px 0; border-right: 1px solid var(--line); }
.about__col:last-child { border-right: none; padding-right: 0; }
.about__col h4 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); margin: 0 0 16px; font-weight: 400; }
.about__col p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; margin: 0; }

/* ============ CONTACT ============ */
.contact { padding: var(--pad-y) var(--pad); border-top: 1px solid var(--line); background: color-mix(in oklab, var(--bg-2) 70%, transparent); }
.contact__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: start;
}
@media (max-width: 900px) { .contact__inner { grid-template-columns: 1fr; gap: 48px; } }
.contact__title { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 5vw, 68px); letter-spacing: -0.03em; line-height: 1.02; margin: 16px 0 24px; }
.contact__title-muted { color: var(--ink-3); }
.contact__lede { color: var(--ink-2); font-size: 16.5px; max-width: 44ch; }
.contact__cards { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--bg-3) 78%, transparent);
  backdrop-filter: blur(8px);
  text-decoration: none; color: inherit;
  transition: border-color .3s, transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s;
  position: relative; overflow: hidden;
}
.contact__card::before {
  content: ''; position: absolute; inset: 0;
  opacity: 0; transition: opacity .3s;
  border-radius: inherit;
}
.contact__card--phone::before { background: radial-gradient(circle at 30% 20%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%); }
.contact__card--whatsapp::before { background: radial-gradient(circle at 30% 20%, rgba(37,211,102,0.08), transparent 70%); }
.contact__card:hover::before { opacity: 1; }
.contact__card:hover {
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2), 0 0 20px color-mix(in oklab, var(--accent) 6%, transparent);
}
.contact__card--whatsapp:hover { border-color: rgba(37,211,102,0.4); box-shadow: 0 8px 30px rgba(0,0,0,0.2), 0 0 20px rgba(37,211,102,0.06); }
.contact__card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.contact__card--phone .contact__card-icon { background: color-mix(in oklab, var(--accent) 15%, transparent); color: var(--accent); }
.contact__card--whatsapp .contact__card-icon { background: rgba(37,211,102,0.15); color: #25d366; }
.contact__card:hover .contact__card-icon { transform: scale(1.1) rotate(-5deg); }
.contact__card-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); position: relative; }
.contact__card-title { font-family: var(--display); font-size: 16px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; position: relative; }
.contact__card-name { font-size: 14px; color: var(--ink-2); position: relative; }
.contact__card-value { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-top: 4px; position: relative; }
.contact__card--whatsapp .contact__card-value { color: #25d366; }
.contact__office {
  margin-top: 20px; padding: 14px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; gap: 24px; align-items: baseline;
}
.contact__direct-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); }
.contact__direct-value { color: var(--ink); }
.contact__direct-value a { color: var(--accent); }

.contact__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--bg-3) 80%, transparent);
  backdrop-filter: blur(8px);
}
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.field--full { grid-column: 1 / -1; }
.field span { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
}
.contact__form .btn--primary { grid-column: 1 / -1; }
.contact__sent { grid-column: 1/-1; text-align: center; padding: 40px 12px; }
.contact__sent-mark { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.contact__sent h4 { font-family: var(--display); font-weight: 500; font-size: 22px; margin: 0 0 6px; }
.contact__sent p { color: var(--ink-2); margin: 0; }

/* ============ FOOTER ============ */
.foot { padding: 80px var(--pad) 32px; border-top: 1px solid var(--line); }
.foot__top { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 2fr; gap: 64px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
@media (max-width: 800px) { .foot__top { grid-template-columns: 1fr; gap: 32px; } }
.foot__brand { display: inline-flex; align-items: center; gap: 12px; }
.foot__logo-plate {
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex-shrink: 0;
}
.foot__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
[data-palette="light"] .foot__logo-plate { background: transparent; width: 36px; height: 36px; }
.foot__word { font-family: var(--display); font-size: 18px; font-weight: 500; }
.foot__brand-col { display: flex; flex-direction: column; gap: 20px; }
.foot__socials { display: flex; gap: 10px; }
.foot__social {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-3);
  transition: color .25s, border-color .25s, transform .25s cubic-bezier(.2,.7,.3,1), background .25s;
}
.foot__social:hover {
  color: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  transform: translateY(-3px);
}
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot__cols h5 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); margin: 0 0 14px; font-weight: 400; }
.foot__cols a { display: block; color: var(--ink-2); padding: 5px 0; font-size: 14px; }
.foot__cols a:hover { color: var(--accent); }
.foot__bot { max-width: var(--maxw); margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.foot__pulse { display: inline-flex; align-items: center; gap: 8px; }
.foot__dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,0.18); }

/* ============ MOBILE FRIENDLY ============ */
@media (max-width: 720px) {
  :root { --pad: 18px; --pad-y: 64px; }
  .hero { min-height: auto; padding-top: 110px; padding-bottom: 90px; }
  .hero__title { font-size: clamp(40px, 11vw, 64px); }
  .hero__visual { display: none; }
  .hero__lede { font-size: 16px; margin-top: 24px; }
  .hero__ctas .btn { flex: 1; justify-content: center; }
  .hero__strip { margin-top: 48px; grid-template-columns: repeat(2, 1fr); }
  .hero__ticker { position: static; margin-top: 40px; }
  .stat { padding: 18px 16px 18px 0; }
  .stat__n { font-size: 32px; }

  .section__title { font-size: clamp(32px, 8vw, 48px); }
  .section__head { padding-bottom: 36px; }

  .services__layout { grid-template-columns: 1fr; gap: 24px; padding: 0 var(--pad); }
  .services__list { display: flex; flex-direction: column; }
  .svc { padding: 20px 0; grid-template-columns: auto auto 1fr auto; gap: 14px; }
  .svc__title { font-size: 18px; }
  .svc__summary { font-size: 13px; }
  .services__detail { position: static; padding: 24px; }
  .services__detail-glyph { font-size: 40px; margin: 14px 0 8px; }
  .services__detail-title { font-size: 24px; }

  .clients__grid { grid-template-columns: 1fr; }
  .client { padding: 22px 18px; min-height: auto; font-size: 17px; }

  .work__grid { grid-template-columns: 1fr; gap: 16px; }
  .proj { padding: 16px; }
  .proj__name { font-size: 22px; }

  .reviews__grid { columns: 1; }
  .review { padding: 22px; }
  .reviews__cta { padding: 22px; flex-direction: column; align-items: flex-start; }
  .btn--google { width: 100%; justify-content: center; }

  .about__quote { font-size: clamp(28px, 7vw, 40px); margin-bottom: 48px; }
  .about__col { padding: 24px 0; border-right: none; border-bottom: 1px solid var(--line); }
  .about__col:last-child { border-bottom: none; }

  .contact__inner { gap: 32px; }
  .contact__title { font-size: clamp(32px, 8vw, 48px); }
  .contact__cards { grid-template-columns: 1fr; margin-top: 28px; }
  .contact__office { flex-direction: column; gap: 4px; }
  .contact__form { grid-template-columns: 1fr; padding: 22px; }

  .foot { padding: 56px var(--pad) 24px; }
  .foot__top { padding-bottom: 36px; }
  .foot__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot__bot { font-size: 11px; }

  .btn { padding: 13px 18px; font-size: 14px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(36px, 12vw, 52px); letter-spacing: -0.04em; }
  .hero__strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: none; }
  .foot__cols { grid-template-columns: 1fr; }
}

/* Disable hover-based service swap behaviour and heavy backdrop blur on small screens for perf */
@media (hover: none) {
  .svc:hover { padding-left: 0; }
  .review { backdrop-filter: none; }
  .services__detail { backdrop-filter: none; }
}

/* ============ Reduce motion ============ */
@media (prefers-reduced-motion: reduce) {
  .hero__rot-word,
  .hero__caret,
  .nav__dot {
    animation: none !important;
  }
}
