:root {
  /* Palette pulled from the Trei logo - warm pastels plus charcoal ink */
  --brand-primary: #8E7AA0;     /* muted lavender */
  --brand-primary-soft: #B49EC1;/* lighter lavender for gradients */
  --brand-cta: #E6A58A;          /* peach */
  --bg: #FAF6F2;                 /* cream */
  --surface: #FFFFFF;
  --surface-muted: #F3ECE4;      /* warm off-white panel */
  --text: #2A221F;               /* warm near-black */
  --text-muted: #6E6159;         /* warm taupe */
  --border: #EAE0D5;             /* soft sand */
  --shadow-sm: 0 1px 2px rgba(42, 34, 31, 0.05), 0 1px 3px rgba(42, 34, 31, 0.06);
  --shadow-md: 0 4px 12px rgba(42, 34, 31, 0.06), 0 2px 6px rgba(42, 34, 31, 0.04);
  --shadow-lg: 0 20px 40px rgba(42, 34, 31, 0.08), 0 8px 16px rgba(42, 34, 31, 0.04);
  --radius-xs: 8px;
  --radius-pill: 999px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --header-h: 72px;
  --container: 1160px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Display tones for tiles / gradients / bars - harmonised with warm palette */
  --accent-blue: #6E8AB0;        /* dusted denim */
  --accent-amber: #D39242;       /* honey */
  --accent-slate: #7F6F66;       /* taupe */
  --accent-emerald: #6FA383;     /* sage */
  --accent-rose: #C97B86;        /* dusty rose */
  --accent-purple: #8E7AA0;      /* lavender (matches brand) */
  --accent-cyan: #7BA9B1;        /* dusty teal */
  --accent-teal: #719C90;        /* moss */
  --accent-orange: #D48067;      /* terracotta */
  /* Ink tones for pill / badge text - AA contrast on 14% tint over cream */
  --ink-blue: #3F5F82;
  --ink-amber: #7A4F18;
  --ink-slate: #4A3E36;
  --ink-emerald: #3C6A4C;
  --ink-rose: #934350;
  --ink-purple: #5C4A6D;
  --ink-cyan: #446F77;
  --ink-teal: #3F6458;
  --ink-orange: #8E4531;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Deep warm plum-charcoal - harmonises with the lavender+peach brand,
       and gives far more contrast/depth than the old muddy cocoa. */
    --bg: #16121C;
    --surface: #211A2A;
    --surface-muted: #2C2438;
    --text: #F6F1FA;
    --text-muted: #C3B7D2;
    --border: #39304A;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 26px 52px rgba(0, 0, 0, 0.62), 0 8px 20px rgba(0, 0, 0, 0.4);
    /* Flip ink tokens to light accent tints for legibility on dark cocoa surfaces */
    --ink-blue:    color-mix(in srgb, var(--accent-blue)    35%, white);
    --ink-amber:   color-mix(in srgb, var(--accent-amber)   40%, white);
    --ink-slate:   color-mix(in srgb, var(--accent-slate)   30%, white);
    --ink-emerald: color-mix(in srgb, var(--accent-emerald) 35%, white);
    --ink-rose:    color-mix(in srgb, var(--accent-rose)    40%, white);
    --ink-purple:  color-mix(in srgb, var(--accent-purple)  35%, white);
    --ink-cyan:    color-mix(in srgb, var(--accent-cyan)    35%, white);
    --ink-teal:    color-mix(in srgb, var(--accent-teal)    35%, white);
    --ink-orange:  color-mix(in srgb, var(--accent-orange)  40%, white);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

/* ---- Animations ------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); }
  60%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); }
}
@keyframes heroServiceEnter {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero entrance - staggered */
.reveal-hero > * {
  opacity: 0;
  animation: fadeUp 600ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.reveal-hero > .hero-mark  { animation-name: scaleIn; animation-delay:  40ms; }
.reveal-hero > .eyebrow    { animation-delay: 160ms; }
.reveal-hero > .hero-title {
  opacity: 1;
  transform: none;
  animation: none;
}
.reveal-hero > .hero-sub   { animation-delay: 320ms; }
.reveal-hero > .hero-business-model { animation-delay: 390ms; }
.reveal-hero > .hero-ctas  { animation-delay: 460ms; }
.reveal-hero > .hero-service-grid { animation-delay: 520ms; }
.reveal-hero > .hero-trust { animation-delay: 760ms; }
.reveal-hero > .hero-policy-links { animation-delay: 820ms; }

/* Scroll-triggered card reveal (toggled by IntersectionObserver) */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible {
  animation: fadeUp 520ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.badge:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-primary) 70%, transparent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  flex: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  display: block;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--text) 6%, transparent),
    0 2px 4px rgba(15, 23, 42, 0.08);
}
.brand-logo-sm {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
}
.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  transition: color 160ms ease, background 160ms ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover {
  color: var(--text);
  background: var(--surface-muted);
}
.nav .nav-cta {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav .nav-cta:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 45%, var(--border));
}

/* Hero */
.hero {
  padding: 80px 0 40px;
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--brand-primary) 7%, transparent);
  z-index: -1;
  pointer-events: none;
}
.reveal-hero {
  position: relative;
}
.hero-mark {
  position: absolute;
  top: 0;
  right: 24px;
  width: 68px;
  height: 68px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--text) 7%, transparent),
    0 16px 32px rgba(15, 23, 42, 0.12),
    0 4px 8px rgba(15, 23, 42, 0.06);
}
.hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: 0 0 12px;
}
/* Static. This marks a category, not live data, so it has nothing to pulse
   about. */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
}
.hero-title {
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 700;
  margin: 0 0 10px;
  max-width: calc(100% - 88px);
}
.hero-sub {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 84ch;
  margin: 0 0 12px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  transition: transform 160ms ease, box-shadow 200ms ease, background 160ms ease, color 160ms ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-cta) 100%);
  color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-primary) 30%, transparent);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--brand-primary) 40%, transparent);
  filter: brightness(1.04);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-muted); }

.hero-service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-width: 100%;
  margin: 0 0 14px;
}
.hero-service {
  display: grid;
  gap: 2px;
  align-content: center;
  min-height: 78px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.hero-service-grid .hero-service {
  animation: heroServiceEnter 420ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.hero-service-grid .hero-service:nth-child(1) { animation-delay: 540ms; }
.hero-service-grid .hero-service:nth-child(2) { animation-delay: 590ms; }
.hero-service-grid .hero-service:nth-child(3) { animation-delay: 640ms; }
.hero-service-grid .hero-service:nth-child(4) { animation-delay: 690ms; }
.hero-service-grid .hero-service:nth-child(5) { animation-delay: 740ms; }
.hero-service-grid .hero-service:nth-child(6) { animation-delay: 790ms; }
.hero-service:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand-primary) 42%, var(--border));
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.hero-service span {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  font-size: 14px;
}
.hero-service small {
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.35;
  font-size: 12px;
}

.hero-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
.hero-policy-links a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 5px;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 35%, transparent);
  transition: color 160ms ease, border-color 160ms ease;
}
.hero-policy-links a:hover {
  color: var(--text);
  border-color: var(--brand-primary);
}

/* Agency layer */
.agency-intro,
.service-strip,
.audience-section,
.audit-offer,
.process-section,
.portfolio-proof,
.home-cta {
  padding: 80px 0;
}
.agency-copy {
  max-width: 760px;
  margin-bottom: 24px;
}
.agency-copy h2,
.two-column-section h2,
.audit-panel h2,
.home-cta-inner h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.agency-copy p,
.two-column-section p,
.audit-panel p,
.home-cta-inner p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}
.eyebrow-inline {
  display: inline-flex;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-blue);
}
.metric-grid,
.service-grid,
.proof-grid,
.process-grid {
  display: grid;
  gap: 24px;
}
.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.metric,
.service-item,
.proof-item,
.process-grid li,
.audit-panel,
.home-cta-inner {
  background:
    linear-gradient(180deg, color-mix(in srgb, white 4%, transparent), transparent 40%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 7%, transparent),
    var(--shadow-sm);
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 200ms ease, border-color 200ms ease;
}
.service-item:hover,
.proof-item:hover,
.metric:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent, var(--brand-primary)) 40%, var(--border));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 8%, transparent),
    var(--shadow-md);
}
.metric {
  padding: 20px;
}
.metric strong {
  display: block;
  color: var(--text);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.metric span {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}
.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.service-item,
.proof-item {
  padding: 22px;
}
.service-item[data-accent="blue"] { --accent: var(--accent-blue); --ink: var(--ink-blue); }
.service-item[data-accent="emerald"] { --accent: var(--accent-emerald); --ink: var(--ink-emerald); }
.service-item[data-accent="orange"] { --accent: var(--accent-orange); --ink: var(--ink-orange); }
.service-item[data-accent="purple"] { --accent: var(--accent-purple); --ink: var(--ink-purple); }
.service-item h3,
.proof-item h3,
.process-grid h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.service-item p,
.proof-item p,
.process-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}
.service-link,
.proof-item a {
  display: inline-flex;
  margin-top: 16px;
  min-height: 44px;
  align-items: center;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}
.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}
.audience-tags,
.check-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.audience-tags li,
.check-grid li {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.audit-panel {
  display: grid;
  gap: 22px;
  padding: 28px;
}
.check-grid li {
  background: var(--surface-muted);
}
.process-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.process-grid li {
  padding: 22px;
}
.process-grid li > span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--brand-primary);
  font-weight: 700;
  font-family: var(--font-mono);
}
.proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-cta-inner {
  padding: 30px;
  background: color-mix(in srgb, var(--surface) 78%, var(--surface-muted));
}
.home-cta-inner .hero-ctas {
  margin: 22px 0 0;
}

/* Section heads */
.section-head {
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 700;
}
.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
}

/* Apps bento */
.apps {
  padding: 32px 0 80px;
}
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.icon-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, white));
}

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink, var(--text));
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: var(--radius-xs);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.badge img {
  width: auto;
  display: block;
}
/* Tuned per brand: Google Play PNG has internal padding so it fills 48px;
   Apple's SVG is tighter so it reads heavier - render at 42px to match. */
.badge-play img  { height: 48px; }
.badge-apple img { height: 42px; }
.badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.badge-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-xs);
}
.badge-web {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  text-decoration: none;
}
.badge-web:hover {
  border-color: var(--accent, #ffd166);
  color: var(--accent, #ffd166);
}

/* About */
.about {
  padding: 40px 0 80px;
}
.about-wrap {
  max-width: 780px;
  margin: 0 0 40px;
}
.about h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.about-wrap p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* Principles grid */
.principles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.principle {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease, border-color 220ms ease;
}
.principle[data-accent="purple"]  { --accent: var(--accent-purple);  --ink: var(--ink-purple); }
.principle[data-accent="emerald"] { --accent: var(--accent-emerald); --ink: var(--ink-emerald); }
.principle[data-accent="amber"]   { --accent: var(--accent-amber);   --ink: var(--ink-amber); }
.principle[data-accent="cyan"]    { --accent: var(--accent-cyan);    --ink: var(--ink-cyan); }
.principle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.principle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--ink, var(--text));
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.principle h3 {
  margin: 4px 0 0;
  font-size: 16px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--text);
}
.principle p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 56px;
  background: var(--surface);
}
.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-contact p {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.footer-contact .mail,
.footer-contact .whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 40%, transparent);
  padding-bottom: 2px;
  min-height: 32px;
}
.footer-contact .whatsapp {
  color: var(--text);
  border-color: color-mix(in srgb, #25D366 50%, transparent);
}
.footer-contact .whatsapp svg {
  color: #25D366;
}
.footer-contact .mail:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.footer-contact .whatsapp:hover {
  color: #128C7E;
  border-color: #25D366;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.footer-nav a:hover {
  background: var(--surface-muted);
  color: var(--text);
}

/* Tablet */
@media (max-width: 960px) {
  .nav {
    max-width: calc(100vw - 88px);
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { scroll-snap-align: start; flex: 0 0 auto; white-space: nowrap; }
  .metric-grid,
  .service-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
  }
  .proof-grid,
  .two-column-section {
    grid-template-columns: 1fr;
  }
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }
  .principles { grid-template-columns: repeat(2, 1fr); }
}

/* Phablet - keep 2-col for small cards to reduce scroll */
@media (max-width: 640px) {
  .hero { padding: 24px 0 12px; }
  .agency-intro,
  .service-strip,
  .audience-section,
  .audit-offer,
  .process-section,
  .portfolio-proof,
  .home-cta {
    padding: 32px 0;
  }
  .metric-grid,
  .service-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
  .audit-panel,
  .home-cta-inner {
    padding: 22px;
  }
  .bento { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .badge { height: 42px; }
  .badge-play img  { height: 42px; }
  .badge-apple img { height: 36px; }
  .badge-soon { height: 42px; padding: 0 12px; font-size: 12.5px; }
  .hero-mark {
    right: 20px;
    width: 54px;
    height: 54px;
    border-radius: var(--radius-lg);
  }
  .hero-title {
    max-width: 100%;
    font-size: 34px;
  }
  .hero-ctas { gap: 8px; }
  .hero-ctas .btn { flex: 1 1 150px; padding-inline: 14px; }
  .hero-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hero-service {
    min-height: 54px;
    padding: 8px 10px;
  }
  .hero-service span { font-size: 13px; }
  .hero-service small { font-size: 11.5px; }
  .hero-policy-links { gap: 4px 12px; font-size: 12px; }
  .nav { gap: 2px; }
  .nav a { padding: 8px 10px; font-size: 14px; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
}

/* Small phone - collapse bento fully */
@media (max-width: 440px) {
  .bento { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .hero-service small { display: none; }
}

/* ---------- policy-page: shared layout for privacy / terms / etc. ----------
   Same minimal language as the rest of the site: one left-aligned measure,
   hairline rules, mono for small labels, no tinted panels. */
.policy-page { padding: 72px 0 96px; }
/* Left-aligned measure, so the text edge lines up with the header brand on
   every shell this layout is dropped into. */
.policy-page-inner { max-width: 68ch; margin: 0; }
/* Trei's own legal/pricing/contact routes match the homepage shell width. */
body.policy-shell .container { max-width: 900px; }
.policy-page .policy-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.policy-page h1 {
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  font-weight: 700;
}
.policy-page .policy-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.policy-page h2 {
  margin: 40px 0 12px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.policy-page p,
.policy-page li {
  line-height: 1.65;
  font-size: 1rem;
}
.policy-page p { margin: 0 0 14px; }
.policy-page ul { padding-left: 1.4em; margin: 12px 0 16px; }
.policy-page ul li { margin-bottom: 6px; }
.policy-page strong { font-weight: 600; }
.policy-page a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.policy-page a:hover { text-decoration-thickness: 2px; }
@media (prefers-color-scheme: dark) {
  .policy-page a { color: var(--brand-primary-soft); }
  .policy-page .policy-eyebrow { color: var(--brand-primary-soft); }
}
.policy-page .callout {
  background: none;
  border-left: 1px solid var(--border);
  padding: 4px 0 4px 16px;
  border-radius: 0;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.policy-page .callout strong { display: block; margin-bottom: 4px; color: var(--text); }
.policy-page section + section { margin-top: 4px; }
.policy-page-back {
  display: block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 28px;
}
.policy-page-back:hover { color: var(--text); }
.policy-page h3 {
  margin: 22px 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
}
.policy-page table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 0.95rem;
  overflow-x: auto;
}
.policy-page th,
.policy-page td {
  text-align: left;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.policy-page th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
}
.policy-page .policy-toc {
  margin: 12px 0 24px;
  padding: 0 0 0 1.4em;
  background: none;
  border-radius: 0;
  font-size: 0.95rem;
}
.policy-page .policy-toc li { margin-bottom: 4px; }

@media (max-width: 640px) {
  .policy-page table {
    display: block;
  }

  .policy-page th,
  .policy-page td {
    min-width: 96px;
  }

  .policy-page th:first-child,
  .policy-page td:first-child {
    min-width: 180px;
  }
}

/* Legal / proprietor footer additions */
.footer-legal-owner {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.footer-nav.footer-legal {
  margin-top: 10px;
  opacity: 0.85;
}
.footer-nav.footer-legal a {
  font-size: 0.82rem;
}

/* Team / people section */
.team { padding: 64px 0; }
.team-wrap { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.team-wrap h2 { margin: 0 0 12px; }
.team-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 760px; margin-inline: auto;
}
.team-card {
  border: 1px solid rgba(142,122,160,0.25);
  border-radius: var(--radius-lg); padding: 24px;
  background: rgba(142,122,160,0.05);
}
.team-card h3 { margin: 0 0 4px; }
.team-role {
  margin: 0 0 12px; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase; opacity: 0.65;
}
.team-link { display: inline-block; margin-top: 8px; font-weight: 600; text-decoration: none; }
.team-link:hover { text-decoration: underline; }

/* Pricing competitive callout */
.pricing-note {
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding: 4px 0 4px 20px;
  background: none;
}
.pricing-note h2 { margin: 0 0 8px; font-size: 1.15rem; }
.pricing-note p { margin: 0; }

/* ============================================================
   Agency conversion components
   ============================================================ */

/* Hero trust microcopy */
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.hero-trust svg { color: var(--accent-emerald); flex: none; }

.hero-trust {
  flex-wrap: wrap;
  column-gap: 18px;
  row-gap: 4px;
}

.hero-trust span {
  white-space: nowrap;
}

/* Proof strip (condensed product grid) */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.ptile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  min-height: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, color-mix(in srgb, white 4%, transparent), transparent 60%),
    var(--surface);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 6%, transparent);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.ptile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-primary) 45%, var(--border));
  box-shadow: var(--shadow-md);
}
.ptile img,
.ptile .ptile-fallback {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  flex: none;
  object-fit: cover;
}
.ptile-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.ptile span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proof-strip-note {
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}
.proof-strip-note a { color: var(--brand-primary); font-weight: 600; }

/* Testimonials + results */
.testimonials { padding: 80px 0; }
.results-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.result-stat {
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, color-mix(in srgb, white 4%, transparent), transparent 45%),
    var(--surface);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 7%, transparent), var(--shadow-sm);
}
.result-stat strong {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--brand-primary);
}
.result-stat span {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.testi-card {
  position: relative;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.testi-card > p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
.testi-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testi-name { font-weight: 700; }
.testi-role { color: var(--text-muted); font-size: 14px; }
.testi-card.is-placeholder {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
}
.testi-card.is-placeholder > p { color: var(--text-muted); font-style: italic; }
.testi-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-muted);
}
.testi-card:not(.is-placeholder) .testi-tag { display: none; }

/* FAQ */
.faq { padding: 80px 0; }
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 200ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-muted);
  line-height: 1.65;
}
.faq-item a { color: var(--brand-primary); font-weight: 600; }

/* Responsive */
@media (max-width: 860px) {
  .results-row,
  .testi-grid { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 480px) {
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .hero-trust { align-items: flex-start; line-height: 1.4; }
}

/* Mobile nav: keep the primary CTA pinned right while links scroll under it */
@media (max-width: 960px) {
  .nav .nav-cta {
    position: sticky;
    right: 0;
    z-index: 1;
    /* opaque backing + left fade so scrolled links don't collide with the CTA */
    background: var(--surface);
    box-shadow:
      -16px 0 14px -8px color-mix(in srgb, var(--bg) 92%, transparent),
      var(--shadow-sm);
  }
}

/* ============================================================
   Concise spacing + motion pass
   ============================================================ */

/* Tighter vertical rhythm so the page scans faster */
.agency-intro,
.service-strip,
.audience-section,
.audit-offer,
.process-section,
.home-cta,
.testimonials,
.faq { padding: 34px 0; }
.agency-intro { padding-top: 24px; padding-bottom: 8px; }
.apps { padding: 30px 0 64px; }

@media (max-width: 640px) {
  .agency-intro { padding-top: 8px; }
}

/* Staggered entrance for grid items (they each carry .reveal) */
.service-grid > .reveal:nth-child(2),
.process-grid > .reveal:nth-child(2) { animation-delay: 70ms; }
.service-grid > .reveal:nth-child(3),
.process-grid > .reveal:nth-child(3) { animation-delay: 140ms; }
.service-grid > .reveal:nth-child(4),
.process-grid > .reveal:nth-child(4) { animation-delay: 210ms; }

/* Results stats stagger in when their row reveals */
.results-row.is-visible .result-stat {
  animation: fadeUp 460ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.results-row.is-visible .result-stat:nth-child(2) { animation-delay: 90ms; }
.results-row.is-visible .result-stat:nth-child(3) { animation-delay: 180ms; }

/* Proof-strip tiles ripple in row by row (6-col desktop wave) */
.proof-strip.is-visible .ptile {
  animation: fadeUp 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.proof-strip.is-visible .ptile:nth-child(6n + 2) { animation-delay: 40ms; }
.proof-strip.is-visible .ptile:nth-child(6n + 3) { animation-delay: 80ms; }
.proof-strip.is-visible .ptile:nth-child(6n + 4) { animation-delay: 120ms; }
.proof-strip.is-visible .ptile:nth-child(6n + 5) { animation-delay: 160ms; }
.proof-strip.is-visible .ptile:nth-child(6n)     { animation-delay: 200ms; }

/* Softer, springier card/tile hover */
.ptile:hover { transform: translateY(-3px) scale(1.01); }

/* Proof-strip: container just fades; the tiles do the ripple entrance */
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
.proof-strip.reveal.is-visible {
  animation: fadeOnly 280ms ease forwards;
  transform: none;
}

/* Collapsible "products shipped" proof strip */
.proof-details { margin-top: 4px; }
.proof-details > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, color-mix(in srgb, white 5%, transparent), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  transition: border-color 160ms ease, transform 160ms ease;
}
.proof-details > summary::-webkit-details-marker { display: none; }
.proof-details > summary::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 220ms ease;
  margin-left: 2px;
}
.proof-details[open] > summary::after { transform: rotate(-135deg); }
.proof-details > summary:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 45%, var(--border));
  transform: translateY(-1px);
}
.proof-details[open] > summary { margin-bottom: 16px; }
.proof-details .proof-strip { margin-top: 0; }
/* Ripple the tiles in when the panel opens */
.proof-details[open] .ptile {
  animation: fadeUp 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.proof-details[open] .ptile:nth-child(6n + 2) { animation-delay: 30ms; }
.proof-details[open] .ptile:nth-child(6n + 3) { animation-delay: 60ms; }
.proof-details[open] .ptile:nth-child(6n + 4) { animation-delay: 90ms; }
.proof-details[open] .ptile:nth-child(6n + 5) { animation-delay: 120ms; }
.proof-details[open] .ptile:nth-child(6n)     { animation-delay: 150ms; }

/* Generic collapsibles reuse the proof-details pill; ensure reveal content
   inside an opened panel is visible (observer can't reach display:none items). */
details[open] .reveal { opacity: 1; transform: none; }
.proof-details.section-collapse { margin-top: 18px; }
.proof-details.section-collapse[open] { margin-bottom: 4px; }

:root {
  --brand-primary: #1D6E57;
  --brand-primary-soft: #78A99C;
  --brand-cta: #B85C38;
  --bg: #F5F7F2;
  --surface: #FFFFFF;
  --surface-muted: #E9EFE8;
  --text: #16211D;
  --text-muted: #5C6861;
  --border: #DCE4DC;
  --shadow-sm: 0 1px 2px rgba(22, 33, 29, 0.04), 0 6px 18px rgba(22, 33, 29, 0.05);
  --shadow-md: 0 12px 28px rgba(22, 33, 29, 0.08), 0 2px 8px rgba(22, 33, 29, 0.05);
  --shadow-lg: 0 24px 58px rgba(22, 33, 29, 0.12), 0 10px 22px rgba(22, 33, 29, 0.06);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --accent-blue: #447AA0;
  --accent-amber: #B5852B;
  --accent-slate: #59645E;
  --accent-emerald: #1D7A5B;
  --accent-rose: #A65363;
  --accent-purple: #725D95;
  --accent-cyan: #357F8C;
  --accent-teal: #2F756A;
  --accent-orange: #B85C38;
  --ink-blue: #224E70;
  --ink-amber: #735118;
  --ink-slate: #38423D;
  --ink-emerald: #185A43;
  --ink-rose: #7C3644;
  --ink-purple: #51406E;
  --ink-cyan: #235A65;
  --ink-teal: #22554D;
  --ink-orange: #833B24;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111613;
    --surface: #18201C;
    --surface-muted: #202C26;
    --text: #F0F6F1;
    --text-muted: #B7C4BC;
    --border: #304039;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 22px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 18px 38px rgba(0, 0, 0, 0.44);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.54);
  }
}

body {
  background: var(--bg);
}

.site-header {
  background: color-mix(in srgb, var(--bg) 88%, white 12%);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--surface) 72%, transparent);
}

.brand {
  gap: 12px;
}

.brand-word {
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0;
}

.brand-logo {
  border-radius: var(--radius-xs);
}

.nav a,
.nav .nav-cta {
  border-radius: var(--radius-xs);
}

.hero {
  min-height: min(820px, calc(100svh - var(--header-h)));
  padding: 46px 0 36px;
  display: flex;
  align-items: center;
}

.hero::before {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 14%, transparent), transparent 46%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 84%, transparent), transparent 62%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.reveal-hero > .hero-copy {
  opacity: 1;
  animation: none;
}


.hero-title {
  max-width: 15ch;
  font-size: clamp(44px, 6vw, 86px);
  line-height: 0.98;
  font-weight: 700;
  text-wrap: balance;
  margin-bottom: 18px;
}

.hero-sub {
  max-width: 64ch;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.5;
  color: color-mix(in srgb, var(--text-muted) 92%, var(--text));
  margin-bottom: 18px;
}

.eyebrow {
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}


.hero-ctas {
  margin-bottom: 18px;
}

.btn {
  border-radius: var(--radius-xs);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--text) 18%, transparent);
}

.btn-primary:hover {
  box-shadow: 0 18px 34px color-mix(in srgb, var(--text) 24%, transparent);
}

.btn-ghost {
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}


















.workbench-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}


.service-item,
.proof-item,
.process-grid li,
.audit-panel,
.home-cta-inner,
.result-stat,
.faq-item,
.principle,
.team-card,
.ptile {
  border-radius: var(--radius-xs);
}

.service-item {
  min-height: 244px;
  border-top: 4px solid var(--accent, var(--brand-primary));
}

.audit-panel,
.home-cta-inner {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 10%, transparent), transparent 54%),
    var(--surface);
}

.audience-tags li,
.check-grid li {
  border-radius: var(--radius-xs);
}

.result-stat strong {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--brand-primary);
}

.site-footer {
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-muted));
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding-top: 42px;
  }

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

  .hero-title {
    max-width: 13ch;
  }


}

@media (max-width: 640px) {
  .brand-word {
    display: none;
  }

  .hero {
    padding: 28px 0 20px;
  }

  .hero-title {
    max-width: 100%;
    font-size: 42px;
    line-height: 0.98;
  }

  .hero-sub {
    font-size: 16px;
  }






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

  .nav .nav-cta {
    order: -1;
    position: static;
    box-shadow: var(--shadow-sm);
  }
}

body[data-revamp="studio-subtle-2026"] {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-muted) 58%, transparent), transparent 340px),
    var(--bg);
}

body[data-revamp="studio-subtle-2026"] .site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: none;
}

body[data-revamp="studio-subtle-2026"] .hero {
  min-height: auto;
  padding: 50px 0 32px;
}

body[data-revamp="studio-subtle-2026"] .hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

body[data-revamp="studio-subtle-2026"] .hero-title {
  max-width: 900px;
  font-size: clamp(34px, 3.2vw, 46px);
  line-height: 1.08;
}

body[data-revamp="studio-subtle-2026"] .hero-sub {
  max-width: 50ch;
  font-size: clamp(17px, 2vw, 20px);
}


body[data-revamp="studio-subtle-2026"] .hero-trust {
  max-width: 590px;
}

body[data-revamp="studio-subtle-2026"] .btn {
  border-radius: var(--radius-xs);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

body[data-revamp="studio-subtle-2026"] .btn:hover {
  transform: translateY(-1px);
}

.subtle-proof-card {
  min-height: auto;
  padding: 22px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  box-shadow: none;
}








.business-info-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.business-info-row {
  min-height: 54px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  padding-block: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.business-info-row span,
.business-info-row a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
}

.business-info-row span {
  color: var(--text);
}

.business-info-row a {
  color: var(--text-muted);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 24%, transparent);
}

.business-info-row a:hover {
  color: var(--text);
  border-color: var(--brand-primary);
}

body[data-revamp="studio-subtle-2026"] .agency-intro,
body[data-revamp="studio-subtle-2026"] .service-strip,
body[data-revamp="studio-subtle-2026"] .audience-section,
body[data-revamp="studio-subtle-2026"] .audit-offer,
body[data-revamp="studio-subtle-2026"] .process-section,
body[data-revamp="studio-subtle-2026"] .portfolio-proof,
body[data-revamp="studio-subtle-2026"] .home-cta {
  padding: 46px 0;
}

body[data-revamp="studio-subtle-2026"] .service-grid.workbench-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 961px) {
  body[data-revamp="studio-subtle-2026"] .service-grid.workbench-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body[data-revamp="studio-subtle-2026"] .service-grid.workbench-grid > .service-item:nth-child(1),
  body[data-revamp="studio-subtle-2026"] .service-grid.workbench-grid > .service-item:nth-child(4) {
    grid-column: span 2;
  }

  body[data-revamp="studio-subtle-2026"] .service-grid.workbench-grid > .service-item:nth-child(2),
  body[data-revamp="studio-subtle-2026"] .service-grid.workbench-grid > .service-item:nth-child(3) {
    grid-column: span 3;
  }
}

body[data-revamp="studio-subtle-2026"] .service-item {
  min-height: 228px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  box-shadow: none;
}

body[data-revamp="studio-subtle-2026"] .service-item:nth-child(1),
body[data-revamp="studio-subtle-2026"] .service-item:nth-child(2),
body[data-revamp="studio-subtle-2026"] .service-item:nth-child(3),
body[data-revamp="studio-subtle-2026"] .service-item:nth-child(4) {
  grid-column: auto;
  margin-top: 0;
}

body[data-revamp="studio-subtle-2026"] .service-item:hover,
body[data-revamp="studio-subtle-2026"] .ptile:hover,
body[data-revamp="studio-subtle-2026"] .faq-item:hover {
  transform: translateY(-1px);
}

body[data-revamp="studio-subtle-2026"] .pill {
  border-radius: var(--radius-xs);
}

@media (prefers-reduced-motion: no-preference) {
  body[data-revamp="studio-subtle-2026"] .hero-copy {
    animation: fadeUp 520ms ease both;
  }

}

@media (prefers-reduced-motion: reduce) {
  body[data-revamp="studio-subtle-2026"] .hero-copy,
  body[data-revamp="studio-subtle-2026"] .service-item {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 960px) {
  body[data-revamp="studio-subtle-2026"] .hero-grid,
  body[data-revamp="studio-subtle-2026"] .service-grid.workbench-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body[data-revamp="studio-subtle-2026"] .nav {
    gap: 8px;
  }

  body[data-revamp="studio-subtle-2026"] .nav a:not(:first-child):not(:nth-child(2)):not(.nav-cta) {
    display: none;
  }

  body[data-revamp="studio-subtle-2026"] .hero {
    padding-top: 28px;
  }

  body[data-revamp="studio-subtle-2026"] .hero-copy,
  body[data-revamp="studio-subtle-2026"] .hero-business-model,
  body[data-revamp="studio-subtle-2026"] .hero-ctas {
    max-width: calc(100vw - 48px);
    min-width: 0;
  }

  body[data-revamp="studio-subtle-2026"] .hero-title {
    max-width: calc(100vw - 48px);
    font-size: clamp(30px, 8.5vw, 34px);
    overflow-wrap: anywhere;
  }

  body[data-revamp="studio-subtle-2026"] .hero-ctas {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  body[data-revamp="studio-subtle-2026"] .btn {
    min-height: 50px;
    padding-inline: 14px;
    text-align: center;
    width: 100%;
  }

  .subtle-proof-card {
    padding: 16px;
  }










  .business-info-row {
    gap: 4px 14px;
  }
}
