/* ==========================================================================
   Kalyani Digital Solutions — design system
   Palette derived from the KDS brand mark (navy / royal / electric / cyan).
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Brand ramp: navy -> royal -> electric -> cyan */
  --brand-900: #0d2247;
  --brand-800: #14305f;
  --brand-700: #1b3a6b;
  --brand-600: #2456a6;
  --brand-500: #1e8fe8;
  --brand-400: #38bdf8;
  --brand-300: #7dd3fc;
  --brand-100: #dbeefe;
  --brand-50: #f0f8ff;

  /* Neutrals, warmed slightly toward the silver in the mark */
  --ink-950: #060c17;
  --ink-900: #0b1626;
  --ink-800: #132540;
  --ink-700: #1d3557;
  --ink-600: #2f4c73;
  --ink-500: #4a6891;
  --ink-400: #6d88ab;
  --ink-300: #a3b7cf;
  --ink-200: #cddaea;
  --ink-100: #e6eef8;
  --ink-50: #f4f8fd;
  --white: #fff;

  --accent-600: #b45309;
  --accent-500: #d97706;
  --accent-400: #f59e0b;
  --accent-300: #fbbf24;
  --accent-100: #fef3c7;

  --success: #0f766e;
  --danger: #b42318;

  --bg: var(--white);
  --bg-muted: var(--ink-50);
  --bg-dark: var(--ink-900);
  --text: var(--ink-800);
  --text-muted: var(--ink-500);
  --text-invert: var(--white);
  --border: #dfe8f4;
  --border-strong: #c3d3e8;

  /* Signature gradient — the core of the new brand colour work */
  --grad-brand: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 38%, var(--brand-500) 72%, var(--brand-400) 100%);
  --grad-text: linear-gradient(120deg, var(--brand-600) 0%, var(--brand-500) 50%, var(--brand-400) 100%);
  --grad-surface: linear-gradient(160deg, #f7fbff 0%, #eef6ff 100%);

  --font-display: "Sora", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.05rem, .4vw + .95rem, 1.175rem);
  --fs-lg: clamp(1.2rem, .6vw + 1.05rem, 1.45rem);
  --fs-h4: clamp(1.1rem, .5vw + 1rem, 1.3rem);
  --fs-h3: clamp(1.3rem, 1vw + 1.08rem, 1.7rem);
  --fs-h2: clamp(1.65rem, 2vw + 1.1rem, 2.55rem);
  --fs-h1: clamp(2.1rem, 3.6vw + 1.3rem, 3.55rem);

  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3.5rem, 7vw, 6.5rem);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 22, 38, .06), 0 1px 3px rgba(11, 22, 38, .05);
  --shadow-md: 0 4px 12px rgba(11, 22, 38, .07), 0 2px 4px rgba(11, 22, 38, .04);
  --shadow-lg: 0 18px 40px rgba(11, 22, 38, .11), 0 4px 10px rgba(11, 22, 38, .05);
  --shadow-xl: 0 32px 64px rgba(11, 22, 38, .16);
  --shadow-brand: 0 14px 34px rgba(36, 86, 166, .28);

  --container: 1180px;
  --header-h: 76px;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .32s;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overflow-x: clip;
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--ink-900);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { text-wrap: pretty; }
a { color: var(--brand-600); }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- 3. Layout ---------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--muted { background: var(--bg-muted); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); margin-top: .85rem; font-size: var(--fs-lg); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
}
.section-head--center .eyebrow::before { display: none; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.stack > * + * { margin-top: var(--sp-4); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand-700); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-md) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- 4. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform var(--dur) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { box-shadow: var(--shadow-brand); }
.btn--primary:hover {
  background: var(--brand-500);
  box-shadow: 0 18px 40px rgba(30, 143, 232, .38);
}
.btn--lg { min-height: 56px; padding-inline: 2rem; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--brand-700); box-shadow: var(--shadow-lg); }
.btn--light:hover { --btn-bg: var(--brand-50); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--brand-700);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--brand-500); background: var(--brand-50); }
.btn--ghost-light {
  --btn-bg: transparent; --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .38);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .7); }
.btn--dark { --btn-bg: var(--ink-900); }
.btn--dark:hover { --btn-bg: var(--ink-700); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 600;
  color: var(--brand-600); text-decoration: none;
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease-out);
}
.link-arrow:hover { color: var(--brand-500); gap: .7rem; }
.link-arrow svg { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 5. Header ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 22, 38, .82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: 0 10px 30px rgba(6, 12, 23, .35); background: rgba(11, 22, 38, .93); }
.site-header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
}
/* Header lockup: gradient mark + wordmark + tagline.
   When the final horizontal logo arrives, swap the <svg> for an <img> in
   src/layout.mjs — these rules keep working either way. */
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; flex: none; }
.brand__mark {
  height: 40px; width: auto; flex: none;
  filter: drop-shadow(0 3px 10px rgba(56, 189, 248, .35));
  transition: transform var(--dur) var(--ease-out), filter var(--dur) var(--ease);
}
.brand:hover .brand__mark { transform: scale(1.05); filter: drop-shadow(0 6px 16px rgba(56, 189, 248, .6)); }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.06rem; letter-spacing: -.015em; color: #fff; white-space: nowrap;
}
.brand__tag {
  font-size: .625rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-300); white-space: nowrap; margin-top: 2px;
}

/* Full poster lockup — footer only, where there is room for it. */
.footer-lockup {
  width: 100%; max-width: 290px; height: auto;
  margin-top: 1.5rem;
  opacity: .96;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.footer-brand:hover .footer-lockup { opacity: 1; transform: scale(1.02); }

/* Below the mobile breakpoint the tagline is the first thing to go. */
@media (max-width: 420px) {
  .brand__tag { display: none; }
  .brand__name { font-size: 1rem; }
  .brand__mark { width: 38px; height: 38px; }
}

.nav { display: flex; align-items: center; gap: clamp(.5rem, 1.5vw, 1.5rem); }
.nav a {
  position: relative;
  color: rgba(255, 255, 255, .82); text-decoration: none;
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm);
  padding: .4rem 0;
  transition: color var(--dur) var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0); transform-origin: right;
  transition: transform .38s var(--ease-out);
}
.nav a:hover { color: #fff; }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: #fff; }

.nav-toggle {
  display: none; width: 46px; height: 46px;
  background: rgba(255, 255, 255, .08); color: #fff;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-md);
  cursor: pointer; place-items: center;
  transition: background-color var(--dur) var(--ease);
}
.nav-toggle:hover { background: rgba(255, 255, 255, .16); }
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--sp-4) 1.25rem var(--sp-6);
    background: var(--ink-900);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--shadow-xl);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .42s var(--ease-out);
  }
  .nav[data-open="true"] { clip-path: inset(0 0 0 0); }
  .nav a { padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: var(--fs-base); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: var(--sp-4); }
}

/* ---------- 6. Hero ------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background: var(--bg-dark);
  color: #fff;
}
/* Animated brand gradient wash */
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 150%;
  background:
    radial-gradient(50% 55% at 18% 22%, rgba(36, 86, 166, .55) 0%, transparent 65%),
    radial-gradient(45% 50% at 82% 18%, rgba(30, 143, 232, .48) 0%, transparent 65%),
    radial-gradient(60% 60% at 62% 88%, rgba(56, 189, 248, .30) 0%, transparent 70%);
  animation: aurora 22s var(--ease) infinite alternate;
  pointer-events: none;
}
/* Fine grid texture */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(75% 60% at 50% 40%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 60% at 50% 40%, #000 0%, transparent 100%);
}
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.08); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.04); }
}
.hero__inner { position: relative; z-index: 1; }
.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1.15fr .85fr; align-items: center;
}
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; margin-block: .5rem 1rem; }
.hero h1 em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__lede { color: rgba(255, 255, 255, .8); font-size: var(--fs-lg); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem .45rem .55rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm); color: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
}
.hero__badge b { color: #fff; font-weight: 600; }
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--brand-400);
  box-shadow: 0 0 0 0 rgba(56, 189, 248, .7);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(56, 189, 248, .6); }
  70%  { box-shadow: 0 0 0 12px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

/* Hero image frame with gradient ring */
.hero__media { position: relative; }
.hero__media::before {
  content: ""; position: absolute; inset: -14px; border-radius: var(--r-xl);
  background: var(--grad-brand); opacity: .55; z-index: -1;
  animation: ring 9s var(--ease) infinite alternate;
}
@keyframes ring {
  from { transform: rotate(0deg) scale(1); border-radius: var(--r-xl); }
  to   { transform: rotate(3deg) scale(1.04); border-radius: 34px; }
}
.hero__media img {
  width: 100%; border-radius: var(--r-lg);
  /* Source photo is tall (1103x1426). Cap the frame so it never swallows
     the viewport on a phone. */
  aspect-ratio: 4 / 5; object-fit: cover;
  box-shadow: var(--shadow-xl);
}
.hero__card {
  position: absolute; right: -8px; bottom: -18px;
  background: #fff; color: var(--ink-800);
  padding: .85rem 1.1rem; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm); font-weight: 600;
  animation: float 6s var(--ease) infinite alternate;
}
@keyframes float {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}
@media (max-width: 960px) { .hero__card { display: none; } }

/* Page banner for interior pages */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  background: var(--bg-dark); color: #fff;
}
.page-hero::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 180%;
  background:
    radial-gradient(45% 55% at 20% 30%, rgba(36, 86, 166, .5) 0%, transparent 65%),
    radial-gradient(45% 55% at 80% 25%, rgba(30, 143, 232, .42) 0%, transparent 65%);
  animation: aurora 26s var(--ease) infinite alternate;
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255, 255, 255, .8); font-size: var(--fs-lg); max-width: 62ch; margin-top: var(--sp-4); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.breadcrumb a { color: rgba(255, 255, 255, .68); text-decoration: none; transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255, 255, 255, .5); }

/* ---------- 7. Stats ----------------------------------------------------- */
.stats { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: #fff; padding: var(--sp-5) var(--sp-4); text-align: center; transition: background-color var(--dur) var(--ease); }
.stat:hover { background: var(--brand-50); }
.stat__num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { display: block; margin-top: .5rem; font-size: var(--fs-sm); color: var(--text-muted); }

.stat-strip { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat-strip .stat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); }
.stat-strip .stat:hover { background: rgba(255, 255, 255, .12); }
.stat-strip .stat__label { color: rgba(255, 255, 255, .7); }

/* ---------- 8. Cards ----------------------------------------------------- */
.card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: var(--fs-h4); margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: var(--fs-base); }
.card a { text-decoration: none; }

/* Service card with icon tile */
.icon-tile {
  display: grid; place-items: center;
  width: 54px; height: 54px; margin-bottom: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--grad-surface);
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-tile svg { width: 26px; height: 26px; }
.card:hover .icon-tile {
  transform: scale(1.08) rotate(-4deg);
  background: var(--grad-brand); color: #fff; border-color: transparent;
}

.card__link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: var(--sp-4);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  color: var(--brand-600);
}
.card__link svg { transition: transform var(--dur) var(--ease-out); }
.card:hover .card__link svg { transform: translateX(4px); }

/* Feature list with animated tick */
.tick-list li { display: flex; gap: .7rem; align-items: flex-start; margin-top: .65rem; }
.tick-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: .3rem;
  border-radius: 50%;
  background: var(--grad-brand);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/12px no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/12px no-repeat;
  transition: transform var(--dur) var(--ease-out);
}
.tick-list li:hover::before { transform: scale(1.25); }

/* Numbered process steps */
.steps { counter-reset: step; display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; padding: var(--sp-5); background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease); }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; margin-bottom: var(--sp-3);
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: var(--fs-h4); margin-bottom: .4rem; }
.step p { color: var(--text-muted); font-size: var(--fs-base); }

/* ---------- 9. Media ----------------------------------------------------- */
.media-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--ink-100);
}
.media-frame img { width: 100%; transition: transform .7s var(--ease-out); }
.media-frame:hover img { transform: scale(1.04); }

.media-split {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr 1fr; align-items: center;
}
@media (max-width: 860px) { .media-split { grid-template-columns: 1fr; } }
.media-split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .media-split--reverse > :first-child { order: 0; } }

/* Paired studio photos: one large, one tucked in beside it.
   Used in the "Who we are" section so it is not a single lonely image. */
.media-pair { position: relative; display: grid; grid-template-columns: 1.28fr .82fr; gap: .85rem; align-items: center; }
.media-pair .media-frame { margin: 0; }
.media-frame--tuck { transform: translateY(1.6rem); }
.media-pair .media-frame img { aspect-ratio: 4 / 3; object-fit: cover; }

.media-pair__badge {
  position: absolute; left: -1.1rem; bottom: 2.6rem; z-index: 2;
  padding: .7rem 1.05rem; border-radius: var(--r-md);
  background: #fff; box-shadow: var(--shadow-lg);
  animation: float 6s var(--ease) infinite alternate;
}
.media-pair__badge strong {
  display: block; font-family: var(--font-display); font-size: var(--fs-base);
  color: var(--brand-700);
}
.media-pair__badge span { font-size: var(--fs-xs); color: var(--text-muted); }

@media (max-width: 520px) {
  .media-pair { grid-template-columns: 1fr; gap: 1rem; }
  .media-frame--tuck { transform: none; width: 74%; margin-left: auto; }
  .media-pair__badge { left: 0; bottom: auto; top: .9rem; }
}

/* ---------- 10. Testimonials --------------------------------------------- */
.quote-card { display: flex; flex-direction: column; gap: var(--sp-4); }
.quote-card blockquote { font-size: var(--fs-md); color: var(--ink-700); flex: 1; }
.quote-card blockquote::before { content: "\201C"; color: var(--brand-300); font-size: 3rem; line-height: 0; vertical-align: -.35em; margin-right: .1em; }
.quote-card__person { display: flex; align-items: center; gap: .8rem; padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.quote-card__person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--ink-100); }
.quote-card__person b { display: block; font-family: var(--font-display); font-size: var(--fs-base); }
.quote-card__person span { font-size: var(--fs-sm); color: var(--text-muted); }
.stars { color: var(--accent-400); letter-spacing: 2px; font-size: var(--fs-sm); }

/* ---------- 11. Filters & work grid -------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--sp-6); }
.filter {
  padding: .5rem 1.1rem; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--border-strong);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  color: var(--ink-600); cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.filter:hover { transform: translateY(-2px); border-color: var(--brand-400); color: var(--brand-600); }
.filter[aria-pressed="true"] { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }
.filter__count { opacity: .65; margin-left: .3rem; }

.work-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.work-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), opacity .3s var(--ease);
}
.work-card[hidden] { display: none; }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-100); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.work-card:hover .work-card__media img { transform: scale(1.07); }
.work-card__tag {
  position: absolute; top: .75rem; left: .75rem; z-index: 1;
  padding: .3rem .7rem; border-radius: var(--r-pill);
  background: rgba(11, 22, 38, .78); color: #fff; font-size: var(--fs-xs); font-weight: 600;
  backdrop-filter: blur(6px);
}
.work-card__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.work-card__body h3 { font-size: var(--fs-h4); margin-bottom: .4rem; }
.work-card__body p { font-size: var(--fs-sm); color: var(--text-muted); }
.work-card.is-entering { animation: cardIn .45s var(--ease-out) both; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 12. Accordion ------------------------------------------------ */
.accordion { display: grid; gap: .75rem; }
.acc-item { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.acc-item[open] { border-color: var(--brand-200, var(--brand-100)); box-shadow: var(--shadow-md); }
.acc-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--ink-900);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--brand-600); background: var(--brand-50); }
.acc-item summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur) var(--ease-out);
}
.acc-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.acc-item__body { padding: 0 var(--sp-5) var(--sp-5); color: var(--text-muted); }
.acc-item[open] .acc-item__body { animation: fadeSlide .38s var(--ease-out) both; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 13. Forms ---------------------------------------------------- */
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-700); }
.field label .req { color: var(--danger); margin-left: .15rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem;
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(30, 143, 232, .16);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.form-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-note { font-size: var(--fs-sm); color: var(--text-muted); text-align: center; }
.form-status { display: none; padding: var(--sp-4); border-radius: var(--r-md); font-size: var(--fs-sm); }
.form-status[data-state="ok"] { display: block; background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.form-status[data-state="error"] { display: block; background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* Honeypot — hidden from humans, catches bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 14. CTA band ------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--bg-dark); color: #fff; }
.cta-band::before {
  content: ""; position: absolute; inset: -50% -20% auto -20%; height: 200%;
  background:
    radial-gradient(40% 50% at 25% 40%, rgba(36, 86, 166, .55) 0%, transparent 65%),
    radial-gradient(40% 50% at 78% 60%, rgba(30, 143, 232, .45) 0%, transparent 65%);
  animation: aurora 20s var(--ease) infinite alternate;
}
.cta-band__inner { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .8); margin-inline: auto; max-width: 58ch; margin-top: var(--sp-4); font-size: var(--fs-lg); }

/* ---------- 15. Contact tiles -------------------------------------------- */
.contact-tile {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  padding: var(--sp-5); background: #fff;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  text-decoration: none; color: inherit;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.contact-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.contact-tile .icon-tile { margin-bottom: 0; flex: none; }
.contact-tile b { display: block; font-family: var(--font-display); font-size: var(--fs-sm); color: var(--brand-600); letter-spacing: .04em; text-transform: uppercase; }
.contact-tile strong { display: block; margin-top: .2rem; font-size: var(--fs-md); color: var(--ink-900); }
.contact-tile span { display: block; margin-top: .2rem; font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- 16. Footer --------------------------------------------------- */
.site-footer { background: var(--ink-950); color: rgba(255, 255, 255, .68); padding-block: var(--sp-8) var(--sp-5); }
.site-footer__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.site-footer a { color: rgba(255, 255, 255, .68); text-decoration: none; transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease-out); display: inline-block; }
.site-footer a:hover { color: #fff; padding-left: 4px; }
.site-footer li + li { margin-top: .55rem; }
.footer-brand .brand__mark { height: 44px; }
.social-row { display: flex; gap: .6rem; margin-top: var(--sp-5); }
.social-row li { margin-top: 0; }
.site-footer .social-link {
  display: grid; place-items: center; padding: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .78);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.site-footer .social-link:hover {
  background: var(--grad-brand); color: #fff;
  border-color: transparent; transform: translateY(-3px); padding: 0;
}
.social-link svg { width: 20px; height: 20px; }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: var(--fs-sm);
}

/* ---------- 17. Scroll reveal -------------------------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 18. Utilities ------------------------------------------------ */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}