/* ═══════════════════════════════════════════════════════════
   ALAVILI - Design System
   Dark teal, engineered, without limits.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Surfaces */
  --bg:        #071416;
  --surface:   #0C1C1F;
  --card:      #122528;
  --elevated:  #173236;

  /* Lines */
  --border:    rgba(255, 255, 255, .08);
  --divider:   rgba(255, 255, 255, .05);

  /* Accent */
  --teal:        #0EA5A4;
  --teal-bright: #14B8A6;
  --teal-hover:  #2DD4BF;
  --glow:        hsla(180, 84%, 35%, 0.25);

  /* Text */
  --text:       #E8F1F1;
  --text-dim:   #9FB4B4;
  --text-faint: #62797A;

  /* Type */
  --font-head:  "Manrope", system-ui, sans-serif;
  --font-body:  "Inter", system-ui, sans-serif;
  --font-brand: "Manrope", system-ui, sans-serif;

  /* Shape */
  --radius:    20px;
  --radius-sm: 12px;

  /* Motion */
  --ease: cubic-bezier(.22, .8, .3, 1);
  --fast: 180ms;
  --med:  240ms;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* Scroll progress bar (GSAP-driven, see js/gsap-enhance.js) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 300;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--teal-hover));
  box-shadow: 0 0 12px 0 var(--glow);
}

:focus-visible {
  outline: 2px solid var(--teal-hover);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--teal);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  transition: top var(--fast) var(--ease);
}
.skip-link:focus { top: 16px; }

/* ── Layout primitives ─────────────────────────────────── */
.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.section { padding: clamp(96px, 12vw, 160px) 0; position: relative; }

.section-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--teal);
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.section-sub {
  color: var(--text-dim);
  max-width: 52ch;
  margin-top: 20px;
}

.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-head--center { text-align: center; }
.section-head--center .section-label { justify-content: center; }
.section-head--center .section-sub { margin-inline: auto; }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.section-head--split .section-sub { max-width: 38ch; }

/* ── Page hero (sub-page intro banner) ────────────────────── */
.page-hero {
  padding: clamp(150px, 20vw, 200px) 0 clamp(56px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}
.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}
.page-hero__text { max-width: 640px; }
.page-hero .section-title { margin-top: 4px; }
.page-hero .section-sub { max-width: 58ch; }

.page-hero__visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 300px;
  justify-self: center;
}
.page-hero__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(45, 212, 191, .16);
  animation: spin 70s linear infinite;
}
.page-hero__orbit--inner {
  inset: 16%;
  border-style: solid;
  border-color: rgba(45, 212, 191, .1);
  animation-direction: reverse;
  animation-duration: 50s;
}
.page-hero__mark {
  position: absolute;
  inset: 25%;
  display: grid;
  place-items: center;
  border-radius: 32%;
  background: linear-gradient(160deg, var(--elevated), var(--card) 70%);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 24px 70px -22px rgba(0,0,0,.7),
    0 0 80px -18px var(--glow);
  animation: floaty 7s ease-in-out infinite;
}
.page-hero__mark svg {
  width: 46%;
  height: 46%;
  color: var(--teal-bright);
  filter: drop-shadow(0 0 22px var(--glow));
}
.page-hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(18, 37, 40, .85);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  box-shadow: 0 10px 26px -12px rgba(0,0,0,.6);
  animation: floaty 6s ease-in-out infinite;
  white-space: nowrap;
}
.page-hero__chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-bright); }
.page-hero__chip--1 { top: 4%; left: -14%; animation-delay: .6s; }
.page-hero__chip--2 { bottom: 8%; right: -14%; animation-delay: 1.6s; }

.page-hero__spark {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal-bright);
  opacity: .5;
  animation: floaty 5s ease-in-out infinite;
}
.page-hero__spark--1 { top: 12%; right: 6%; }
.page-hero__spark--2 { bottom: 20%; left: 2%; animation-delay: 1s; }
.page-hero__spark--3 { top: 48%; right: -6%; animation-delay: 2s; }

/* ── Logo mark ─────────────────────────────────────────── */
.brandmark {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px var(--glow));
}
.brandmark--sm { width: 30px; height: 30px; }
.brandmark--xs { width: 22px; height: 22px; filter: drop-shadow(0 0 8px var(--glow)); }
.brandmark--lg { width: 64px; height: 64px; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease),
    background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    color var(--fast) var(--ease);
}

.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 0 0 0 var(--glow);
}
.btn--primary:hover {
  background: var(--teal-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px -4px var(--glow), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px var(--glow);
}

.btn--sm { padding: 10px 20px; font-size: 12px; }
.btn--lg { padding: 19px 44px; font-size: 14px; }

/* ── Loader ────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 500ms var(--ease), visibility 500ms;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px var(--glow));
  animation: loaderPulse 1.4s var(--ease) infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: .55; transform: scale(.94); }
  50%      { opacity: 1;   transform: scale(1); }
}

/* ── Ambient background ────────────────────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 78%);
}
.ambient__noise {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.ambient__orb--1 {
  width: 560px; height: 560px;
  top: -220px; right: -140px;
  background: radial-gradient(circle, rgba(14,165,164,.14), transparent 65%);
}
.ambient__orb--2 {
  width: 480px; height: 480px;
  top: 42%; left: -220px;
  background: radial-gradient(circle, rgba(14,165,164,.09), transparent 65%);
}
.ambient__orb--3 {
  width: 520px; height: 520px;
  bottom: -200px; right: 8%;
  background: radial-gradient(circle, rgba(14,165,164,.08), transparent 65%);
}

/* ── Cursor glow ───────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  z-index: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(14,165,164,.07), transparent 60%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ── Navigation ────────────────────────────────────────── */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.nav {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px clamp(24px, 4vw, 56px);
  transition: padding var(--med) var(--ease);
}
/* Blur/background live on a pseudo-element (not on .nav itself) so that
   backdrop-filter never establishes a containing block for the fixed-
   position mobile menu, which is a descendant of .nav. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--med) var(--ease), border-color var(--med) var(--ease),
              backdrop-filter var(--med) var(--ease);
}
.nav.is-scrolled {
  padding: 14px clamp(24px, 4vw, 56px);
  box-shadow: 0 8px 40px -12px rgba(0,0,0,.4);
}
.nav.is-scrolled::before {
  background: rgba(7, 20, 22, .85);
  border-bottom-color: var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav__logo {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav__logo-img {
  display: block;
  height: 76px;
  width: auto;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
  transition: height var(--med) var(--ease);
}
.nav.is-scrolled .nav__logo-img { height: 60px; }

.nav__links {
  grid-column: 2;
  justify-self: center;
  display: flex;
  gap: 6px;
}
.nav__links a {
  position: relative;
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--fast) var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-hover));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--fast) var(--ease);
}
.nav__links a:hover {
  color: var(--text);
}
.nav__links a:hover::after {
  transform: scaleX(1);
}
.nav__links a.is-active {
  color: var(--text);
}
.nav__links a.is-active::after {
  transform: scaleX(1);
}

.nav__actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.nav__toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--fast) var(--ease), opacity var(--fast);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 0 80px;
  position: relative;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-hover);
  box-shadow: 0 0 0 0 var(--glow);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--glow); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.hero__title span { display: inline; }
@media (min-width: 560px) {
  .hero__title { white-space: nowrap; }
}
.hero__title-accent {
  background: linear-gradient(100deg, var(--teal-hover) 10%, var(--teal) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin-top: 28px;
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 19px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 56px;
}
.hero__meta dt {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.02em;
  color: var(--text);
}
.hero__meta dd { font-size: 13.5px; color: var(--text-faint); }
.hero__meta-divider { width: 1px; height: 36px; background: var(--divider); }

/* Hero visual */
.hero__visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
}
.hero__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(45, 212, 191, .18);
  animation: spin 60s linear infinite;
}
.hero__orbit--inner {
  inset: 15%;
  border-style: solid;
  border-color: rgba(45, 212, 191, .1);
  animation-direction: reverse;
  animation-duration: 45s;
}
.hero__orbit--outer::after {
  content: "";
  position: absolute;
  top: 8%; right: 12%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-hover);
  box-shadow: 0 0 16px 2px var(--glow);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__mark {
  position: absolute;
  inset: 27%;
  display: grid;
  place-items: center;
  border-radius: 32%;
  background: linear-gradient(160deg, var(--elevated), var(--card) 70%);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 24px 80px -24px rgba(0,0,0,.7),
    0 0 90px -20px var(--glow);
  animation: floaty 7s ease-in-out infinite;
}
.hero__glyph {
  width: 58%;
  height: 58%;
  object-fit: contain;
  filter: drop-shadow(0 0 32px var(--glow));
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(18, 37, 40, .85);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
  animation: floaty 6s ease-in-out infinite;
}
.hero__chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-bright); }
.hero__chip--1 { top: 9%; left: -4%; animation-delay: .6s; }
.hero__chip--2 { bottom: 16%; right: -8%; animation-delay: 1.4s; }
.hero__chip--3 { bottom: -2%; left: 12%; animation-delay: 2.2s; }

.hero__spark {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal-bright);
  opacity: .5;
  animation: floaty 5s ease-in-out infinite;
}
.hero__spark--1 { top: 20%; right: 4%; }
.hero__spark--2 { top: 52%; left: 0; animation-delay: 1s; }
.hero__spark--3 { top: 4%; left: 38%; animation-delay: 2s; }
.hero__spark--4 { bottom: 8%; right: 26%; animation-delay: 3s; }

.hero__scrollhint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero__scrollline {
  width: 1px;
  height: 44px;
  background: var(--divider);
  position: relative;
  overflow: hidden;
}
.hero__scrollline::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--teal-hover);
  animation: scrolldrop 2.2s var(--ease) infinite;
}
@keyframes scrolldrop { to { top: 110%; } }

/* ── Services ──────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.services__sticky {
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.services__sticky .btn { margin-top: 36px; }

.services__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-panel {
  position: relative;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 30px 32px;
  cursor: default;
  overflow: hidden;
  transition:
    transform var(--med) var(--ease),
    border-color var(--med) var(--ease),
    background-color var(--med) var(--ease),
    box-shadow var(--med) var(--ease);
}
.service-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(14,165,164,.09), transparent 70%);
  opacity: 0;
  transition: opacity var(--med) var(--ease);
  pointer-events: none;
}
.service-panel:hover,
.service-panel:focus-within,
.service-panel:focus {
  transform: translateY(-4px);
  background: var(--elevated);
  border-color: rgba(45, 212, 191, .35);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6), 0 0 40px -14px var(--glow);
}
.service-panel:hover::before { opacity: 1; }

.service-panel__head {
  display: flex;
  align-items: center;
  gap: 20px;
}
.service-panel__index {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--teal-bright);
  letter-spacing: .1em;
}
.service-panel__head h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(19px, 2.2vw, 23px);
  letter-spacing: -.015em;
  flex: 1;
}
.service-panel__arrow {
  width: 20px;
  height: 20px;
  color: var(--text-faint);
  transition: transform var(--med) var(--ease), color var(--med) var(--ease);
}
.service-panel:hover .service-panel__arrow,
.service-panel:focus .service-panel__arrow {
  transform: translate(3px, -3px);
  color: var(--teal-hover);
}

.service-panel__body {
  display: grid;
  grid-template-rows: 0fr;
  grid-template-columns: 100%;
  transition: grid-template-rows 320ms var(--ease);
}
.service-panel__inner { overflow: hidden; }
.service-panel__body p {
  color: var(--text-dim);
  font-size: 16.5px;
  max-width: 56ch;
  padding-top: 18px;
}
.service-panel:hover .service-panel__body,
.service-panel:focus .service-panel__body,
.service-panel:focus-within .service-panel__body {
  grid-template-rows: 1fr;
}

.service-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
}
.service-panel__tags li {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ── Portfolio ─────────────────────────────────────────── */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.work-card { grid-column: span 1; }
.work-card--wide { grid-column: span 2; }

.work-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition:
    transform var(--med) var(--ease),
    border-color var(--med) var(--ease),
    box-shadow var(--med) var(--ease);
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 212, 191, .4);
  box-shadow: 0 28px 60px -24px rgba(0,0,0,.65), 0 0 44px -16px var(--glow);
}

.work-card__visual {
  position: relative;
  aspect-ratio: 16 / 9.4;
  background:
    radial-gradient(120% 130% at 80% 0%, rgba(14,165,164,.12), transparent 55%),
    var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--divider);
}
.work-card__visual .mock {
  transition: transform 360ms var(--ease);
}
.work-card:hover .work-card__visual .mock { transform: scale(1.045); }

.work-card__info {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.work-card__cat {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal-bright);
}
.work-card__info h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.015em;
  line-height: 1.3;
}
.work-card__link {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color var(--fast) var(--ease);
}
.work-card__link svg {
  width: 16px; height: 16px;
  transition: transform var(--fast) var(--ease);
}
.work-card:hover .work-card__link { color: var(--teal-hover); }
.work-card:hover .work-card__link svg { transform: translateX(4px); }

/* Abstract app mockups */
.mock {
  width: 78%;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 20px 44px -18px rgba(0,0,0,.7);
  padding: 12px;
}
.mock__bar { display: flex; gap: 5px; margin-bottom: 10px; }
.mock__bar i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.mock__bar i:first-child { background: var(--teal); }
.mock__cols { display: flex; gap: 10px; }
.mock__side { display: flex; flex-direction: column; gap: 6px; width: 22%; }
.mock__side b {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.08);
}
.mock__side b:first-child { background: rgba(14,165,164,.5); }
.mock__main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mock__stat-row { display: flex; gap: 6px; }
.mock__stat-row u {
  flex: 1;
  height: 22px;
  border-radius: 6px;
  background: var(--elevated);
  border: 1px solid var(--divider);
}
.mock__chart {
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--divider);
  padding: 6px;
}
.mock__chart svg { width: 100%; height: 52px; }

.mock--commerce { width: 62%; }
.mock__product {
  height: 74px;
  border-radius: 10px;
  background:
    radial-gradient(90% 120% at 30% 20%, rgba(45,212,191,.28), transparent 60%),
    var(--elevated);
  margin-bottom: 10px;
}
.mock__lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.mock__lines i { height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); }
.mock__price-row { display: flex; align-items: center; justify-content: space-between; }
.mock__price-row s {
  width: 34%; height: 10px;
  border-radius: 5px;
  background: rgba(45,212,191,.5);
  text-decoration: none;
}
.mock__btn {
  width: 40%; height: 20px;
  border-radius: 10px;
  background: var(--teal);
}

.mock--brand {
  width: 58%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
}
.mock__glyph {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px var(--glow));
}
.mock__swatches { display: flex; gap: 6px; }
.mock__swatches i {
  width: 18px; height: 18px;
  border-radius: 6px;
  border: 1px solid var(--divider);
}
.mock__swatches i:nth-child(1) { background: #071416; }
.mock__swatches i:nth-child(2) { background: #122528; }
.mock__swatches i:nth-child(3) { background: #0EA5A4; }
.mock__swatches i:nth-child(4) { background: #2DD4BF; }

.mock--app {
  width: auto;
  background: none;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
}
.mock__phone {
  width: 96px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 20px 44px -18px rgba(0,0,0,.7);
  padding: 10px 8px;
  position: relative;
  z-index: 1;
}
.mock__phone--back {
  position: absolute;
  transform: translateX(58px) rotate(7deg) scale(.92);
  z-index: 0;
  opacity: .6;
}
.mock__phone-notch {
  width: 30px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.12);
  margin: 0 auto 8px;
}
.mock__phone-card {
  height: 44px;
  border-radius: 8px;
  background:
    radial-gradient(100% 120% at 20% 0%, rgba(45,212,191,.3), transparent 60%),
    var(--elevated);
  margin-bottom: 7px;
}
.mock__phone-card--alt { height: 74px; }
.mock__phone-row { display: flex; gap: 5px; margin-bottom: 5px; }
.mock__phone-row i {
  flex: 1;
  height: 14px;
  border-radius: 5px;
  background: rgba(255,255,255,.07);
}

/* ── Process timeline ──────────────────────────────────── */
.process__inner { max-width: 780px; }

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-left: 36px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(45,212,191,.45) 12%,
    rgba(45,212,191,.45) 88%,
    transparent
  );
  box-shadow: 0 0 12px 0 var(--glow);
}

.timeline__step { position: relative; }
.timeline__node {
  position: absolute;
  left: -33px;
  top: 34px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--teal-bright);
  box-shadow: 0 0 14px 1px var(--glow);
}

.timeline__card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px 32px;
  transition:
    transform var(--med) var(--ease),
    border-color var(--med) var(--ease),
    box-shadow var(--med) var(--ease);
}
.timeline__card:hover {
  transform: translateX(6px);
  border-color: rgba(45,212,191,.35);
  box-shadow: 0 16px 44px -20px rgba(0,0,0,.6), 0 0 32px -14px var(--glow);
}
.timeline__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--teal-bright);
}
.timeline__card h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.015em;
  margin: 6px 0 8px;
}
.timeline__card p { color: var(--text-dim); font-size: 16.5px; max-width: 54ch; }

/* ── Comparison ────────────────────────────────────────── */
.compare__board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.compare__col { padding: clamp(28px, 4vw, 48px); }
.compare__col h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.01em;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare__col--us h3 span:last-child { font-family: var(--font-brand); font-weight: 700; letter-spacing: .06em; }
.compare__col ul { display: flex; flex-direction: column; gap: 16px; }
.compare__col li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
}
.compare__col li svg {
  width: 17px; height: 17px;
  flex-shrink: 0;
  margin-top: 4px;
}

.compare__col--them { color: var(--text-faint); }
.compare__col--them h3 { color: var(--text-dim); }
.compare__col--them li svg { color: #5b6e6e; }

.compare__col--us {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(14,165,164,.1), transparent 60%),
    var(--card);
  border-left: 1px solid var(--divider);
}
.compare__col--us li { color: var(--text); }
.compare__col--us li svg { color: var(--teal-hover); }

.compare__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  position: relative;
}
.compare__vs::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--divider);
}
.compare__vs span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--elevated);
  border: 1px solid var(--border);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-hover);
  box-shadow: 0 0 24px -6px var(--glow);
}

/* ── Statistics ────────────────────────────────────────── */
.stats { padding: clamp(48px, 6vw, 80px) 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    transform var(--med) var(--ease),
    border-color var(--med) var(--ease),
    box-shadow var(--med) var(--ease);
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(45,212,191,.3);
  box-shadow: 0 20px 48px -22px rgba(0,0,0,.6), 0 0 32px -14px var(--glow);
}
.stat-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.stat-card__head svg { width: 17px; height: 17px; color: var(--teal-bright); }
.stat-card__value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -.03em;
}
.stat-card__bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.stat-card__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-hover));
  box-shadow: 0 0 12px 0 var(--glow);
  transition: width 1.2s var(--ease) .3s;
}
.stat-card.is-inview .stat-card__bar i { width: var(--w); }
.stat-card__spark svg { width: 100%; height: 34px; }
.stat-card__ring { width: 56px; height: 56px; margin-top: -46px; align-self: flex-end; }
.stat-card__ring svg { transform: rotate(-90deg); }
.stat-card__ring-fill { transition: stroke-dashoffset 1.4s var(--ease) .3s; }
.stat-card.is-inview .stat-card__ring-fill { stroke-dashoffset: 8.2; }
.stat-card__note { font-size: 13.5px; color: var(--text-faint); }

/* ── Testimonials ──────────────────────────────────────── */
.quotes__inner {
  max-width: 760px;
  text-align: center;
}
.quotes__inner .section-label { justify-content: center; margin-bottom: 40px; }

.quotes__stage {
  position: relative;
  min-height: 300px;
  display: grid;
}
.quote {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease);
  pointer-events: none;
}
.quote.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.quote p {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(21px, 2.8vw, 29px);
  line-height: 1.45;
  letter-spacing: -.015em;
}
.quote footer {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.quote__avatar {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--elevated), var(--card));
  border: 1px solid var(--border);
  box-shadow: 0 0 24px -8px var(--glow);
}
.quote__avatar img { width: 60%; height: 60%; object-fit: contain; }
.quote cite {
  font-style: normal;
  font-size: 14.5px;
  color: var(--text-faint);
}

.quotes__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}
.quotes__dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  transition: width var(--med) var(--ease), background-color var(--med) var(--ease);
}
.quotes__dot.is-active {
  width: 26px;
  background: var(--teal-bright);
}
.quotes__dot:hover:not(.is-active) { background: rgba(255,255,255,.3); }

/* ── 404 ───────────────────────────────────────────────── */
.error-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.error-page__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(320px, 50vw, 560px);
  height: clamp(320px, 50vw, 560px);
  object-fit: contain;
  opacity: .05;
  pointer-events: none;
  user-select: none;
}
.error-page__inner {
  position: relative;
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}
.error-page__code {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(96px, 16vw, 180px);
  line-height: 1;
  letter-spacing: -.03em;
  background: linear-gradient(100deg, var(--teal-hover) 10%, var(--teal) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.error-page__inner .section-sub { margin-inline: auto; }
.error-page__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.error-page__links {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--divider);
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.error-page__links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color var(--fast) var(--ease);
}
.error-page__links a:hover { color: var(--teal-hover); }

/* ── CTA ───────────────────────────────────────────────── */
.cta {
  padding: clamp(120px, 15vw, 200px) 0;
}
.cta__inner {
  position: relative;
  text-align: center;
}
.cta__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(320px, 42vw, 560px);
  height: clamp(320px, 42vw, 560px);
  object-fit: contain;
  opacity: .05;
  pointer-events: none;
  user-select: none;
}
.cta__title {
  position: relative;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.cta__sub {
  position: relative;
  color: var(--text-dim);
  max-width: 46ch;
  margin: 24px auto 0;
}
.cta__action {
  position: relative;
  margin-top: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.cta__action .btn--primary {
  box-shadow: 0 0 60px -8px var(--glow);
}
.cta__mail { position: relative; margin-top: 26px; font-size: 15px; }
.cta__mail a {
  color: var(--text-faint);
  border-bottom: 1px solid var(--divider);
  padding-bottom: 2px;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.cta__mail a:hover { color: var(--teal-hover); border-color: var(--teal-hover); }

/* ── Brand story (About) ──────────────────────────────────── */
.story {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.story__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 40%, rgba(14,165,164,.12), transparent 70%);
  border: 1px solid var(--border);
}
.story__glyph {
  width: 56%;
  height: 56%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px var(--glow));
}
.story__text > * + * { margin-top: 20px; }
.story__text p { color: var(--text-dim); }
.story__text strong { color: var(--text); font-weight: 700; }
.story__lede {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--text) !important;
  line-height: 1.4;
}
.story__tamil {
  color: var(--teal-bright) !important;
  font-family: var(--font-brand);
}

.story-points {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.story-point {
  padding: 28px 30px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.story-point h3 {
  font-family: var(--font-head);
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.story-point h3 .story-point__tamil {
  color: var(--teal-bright);
  font-size: 22px;
}
.story-point__glyph {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  color: var(--teal-bright);
  filter: drop-shadow(0 0 6px var(--glow));
}
.story-point p { color: var(--text-dim); font-size: 16px; }

/* ── Service group heading (Services page) ────────────────── */
.service-group + .service-group { margin-top: clamp(72px, 9vw, 120px); }
.service-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--divider);
}
.service-group__head h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 34px);
}
.service-group__head p { color: var(--text-dim); max-width: 40ch; }

/* ── Contact page ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
}
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 26px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
a.contact-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.contact-card__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--card);
  color: var(--teal-bright);
}
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card h3 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.contact-card p, .contact-card span { font-size: 17px; }

.values-list {
  margin-top: 32px;
  display: grid;
  gap: 14px;
}
.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-dim);
}
.values-list svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  color: var(--teal-bright);
}

.contact-form {
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color var(--fast) var(--ease);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; margin-top: 4px; }
.contact-form .btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-status {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
  color: var(--text-dim);
}
.form-status.is-success { color: var(--teal-bright); }
.form-status.is-error { color: #f87171; }

/* ── Home teasers (condensed links to full pages) ─────────── */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.teaser-card {
  padding: 30px 32px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.teaser-card:hover { border-color: var(--teal); transform: translateY(-3px); }
.teaser-card h3 { font-family: var(--font-head); font-size: 19px; margin-bottom: 10px; }
.teaser-card p { color: var(--text-dim); font-size: 16px; }
.section-foot { margin-top: 48px; text-align: center; }

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: #050f11;
  border-top: 1px solid var(--divider);
  padding: 72px 0 36px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 56px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--divider);
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .1em;
  margin-bottom: 20px;
}
.footer__logo-img {
  display: block;
  height: 84px;
  width: auto;
}
.footer__brand p {
  color: var(--text-faint);
  font-size: 15.5px;
  max-width: 34ch;
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__nav h4 {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.footer__nav ul { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a, .footer__nav span {
  font-size: 15px;
  color: var(--text-dim);
}
.footer__nav a { transition: color var(--fast) var(--ease); }
.footer__nav a:hover { color: var(--teal-hover); }

.footer__social { flex-direction: row !important; gap: 12px !important; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease),
              transform var(--fast) var(--ease);
}
.footer__social a:hover {
  border-color: var(--teal);
  color: var(--teal-hover);
  transform: translateY(-2px);
}
.footer__social svg { width: 17px; height: 17px; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 32px;
  font-size: 13.5px;
  color: var(--text-faint);
}
.footer__tagline { color: var(--teal); opacity: .7; }

/* ── Reveal animation ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-inview {
  opacity: 1;
  transform: none;
}
/* Before JS runs, keep everything visible */
.no-js .reveal, html:not(.js) .reveal { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 380px; margin-top: 24px; }
  .services__grid { grid-template-columns: 1fr; }
  .services__sticky { position: static; }
  .work__grid { grid-template-columns: 1fr 1fr; }
  .work-card--wide { grid-column: span 2; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; }
  .story__art { max-width: 320px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__visual { display: none; }
}

@media (max-width: 900px) {
  .nav__logo, .nav__actions { position: relative; z-index: 160; }
  .nav__actions .btn--sm { padding: 8px 14px; font-size: 10.5px; }

  .nav__links {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    grid-column: auto;
    justify-self: stretch;
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background:
      radial-gradient(circle at 50% 0%, rgba(14,165,164,.16), transparent 55%),
      var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity var(--med) var(--ease), transform var(--med) var(--ease),
                visibility var(--med);
  }
  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__links li { overflow: hidden; }
  .nav__links a {
    display: block;
    padding: 14px 28px;
    font-family: var(--font-head);
    font-size: clamp(26px, 7vw, 34px);
    font-weight: 700;
    letter-spacing: -.01em;
  }
  .nav__links a::after { display: none; }
  .nav__links a.is-active { color: var(--teal-hover); }
  .nav__toggle { display: flex; }
  .nav { padding-inline: 16px; }
  .nav__logo-img, .nav.is-scrolled .nav__logo-img { height: 52px; }
}

body.nav-open { overflow: hidden; }

@media (max-width: 720px) {
  body { font-size: 17px; }

  .hero { padding-top: 130px; }
  .hero__meta { gap: 18px; }
  .hero__meta dt { font-size: 21px; }
  .hero__chip--1 { left: 0; }
  .hero__chip--2 { right: 0; }
  .hero__scrollhint { display: none; }

  .work__grid { grid-template-columns: 1fr; }
  .work-card--wide { grid-column: span 1; }

  .compare__board { grid-template-columns: 1fr; }
  .compare__vs { padding: 4px 0; }
  .compare__vs::before {
    top: 50%; bottom: auto;
    left: 0; right: 0;
    width: auto; height: 1px;
  }
  .compare__col--us { border-left: none; border-top: 1px solid var(--divider); }

  .stats__grid { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__nav { grid-template-columns: 1fr 1fr; }

  .timeline { padding-left: 30px; gap: 28px; }
  .timeline__node { left: -27px; }

  .story-points { grid-template-columns: 1fr; }
  .service-group__head { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }
}

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cursor-glow { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   Brochure download dock (hairline half-circle tab + ghost CTA)
   ═══════════════════════════════════════════════════════════ */
.brochure-dock {
  position: fixed;
  top: 58%;
  right: 0;
  transform: translateY(-50%);
  z-index: 260;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}

.brochure-tab {
  flex: 0 0 auto;
  width: 44px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 241, 241, .16);
  border-right: none;
  border-radius: 50% 0 0 50%;
  background: rgba(12, 28, 31, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color var(--med) var(--ease), color var(--med) var(--ease), background-color var(--med) var(--ease);
}
.brochure-tab:hover {
  border-color: rgba(45, 212, 191, .5);
  color: var(--teal-hover);
  background: rgba(12, 28, 31, .75);
}
.brochure-tab:active { transform: scale(.96); }

.brochure-tab__chevron {
  width: 17px;
  height: 17px;
  transform: translateX(-2px);
  transition: transform var(--med) var(--ease);
}
.brochure-dock.is-open .brochure-tab__chevron { transform: translateX(-2px) rotate(180deg); }

.brochure-panel {
  flex: 0 0 auto;
  width: 0;
  overflow: hidden;
  transition: width 480ms cubic-bezier(.16, 1, .3, 1);
}
.brochure-dock.is-open .brochure-panel { width: 192px; }

.brochure-panel__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 178px;
  height: 46px;
  margin-right: 14px;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--text);
  background: rgba(12, 28, 31, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(45, 212, 191, .4);
  border-radius: 999px;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.brochure-panel__cta:hover {
  background: rgba(20, 184, 166, .1);
  border-color: var(--teal-hover);
  color: var(--teal-hover);
}

.brochure-panel__cta-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  transition: transform var(--fast) var(--ease);
}
.brochure-panel__cta:hover .brochure-panel__cta-icon { transform: translateY(1px); }

@media (max-width: 480px) {
  .brochure-dock { top: auto; bottom: 18px; right: 0; transform: none; }
}
