/* ==========================================================================
   Tokens — change these to rebrand. See CLAUDE.md "Rebrand Checklist" and
   "Color System Rules".
   ========================================================================== */
:root {
  /* Base — 60%, warm-neutral, calm */
  --color-bg: #FBFAF8;
  --color-surface: #FFFFFF;

  /* Authority — 30%, deep blue-black, used for hero/footer/showcase bg + all text */
  --color-ink: #171C26;
  --color-ink-soft: #4E5561;

  /* Accent — 10%, ONE color, action-only */
  --color-accent: #1D4ED8;
  --color-accent-soft: #EEF3FE;

  /* WhatsApp — kept separate from accent system, native brand green */
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1EBE5B;

  --color-border: #E7E5E0;
  --color-text-on-dark: #F4F3F0;
  --color-text-on-dark-soft: #9CA3AF;

  /* Type */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Space Grotesk", var(--font-body);
  --fs-base: 1rem;
  --fs-sm: 0.875rem;
  --fs-md: 1.125rem;   /* card headings (h3) */
  --fs-lg: 1.25rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;

  /* Motion — one shared curve/duration so interactions feel like one system */
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
  --dur: 180ms;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  /* Layout */
  --radius: 10px;
  --max-width: 1100px;
  --shadow-card: 0 4px 16px rgba(0,0,0,0.06);
}

/* Self-hosted, latin subset, bold weight only (the only weight anything in
   the design system uses). font-display: swap avoids invisible-text flash;
   falls back to --font-body until loaded. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-700.woff2") format("woff2");
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
}
/* Type scale — deliberate, not browser defaults. h2/h3 previously inherited
   the UA's 1.5em/1.17em, which is why the hierarchy read as unconsidered.
   Display sizes get tighter leading and slight negative tracking; body-sized
   headings keep looser leading so they stay readable. */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
  text-wrap: balance;
}
h1 { font-size: var(--fs-2xl); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-xl);  line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-md);  line-height: 1.3;  letter-spacing: -0.005em; }

/* One step up on wider screens — the mobile display size read small on
   desktop, the other tokens are already comfortable. */
@media (min-width: 800px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
}
p { margin: 0 0 var(--space-sm); }
a { color: var(--color-accent); }
img { max-width: 100%; display: block; }
ol { padding: 0; margin: 0; list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section { padding: var(--space-xl) 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-ink-soft);
  margin-bottom: var(--space-xs);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: var(--fs-base);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), filter var(--dur) var(--ease);
}
/* Only on real pointers: .btn-lg is full-width on mobile, and scaling it up
   there would push past the viewport and create horizontal overflow. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: scale(1.02); }
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 1rem 2rem; font-size: var(--fs-lg); width: 100%; }
@media (min-width: 640px) { .btn-lg { width: auto; } }

/* WhatsApp buttons keep the native brand green everywhere, never the accent. */
.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  /* Tactile depth — ghost button stays flat/shadowless on purpose, to read
     as visually secondary next to this one. */
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover { background: var(--color-whatsapp-hover); }

/* Secondary CTA: accent reserved for action, used as outline on light surfaces. */
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover { background: var(--color-accent-soft); }

/* On dark sections (hero/showcase/footer), accent blue is reserved for
   light-background contexts — an outline in accent blue also fails contrast
   against --color-ink (2.55:1). Secondary CTAs go "ghost" style instead: a
   transparent button in the light text-on-dark color, so WhatsApp stays the
   unambiguous primary action. */
.hero .btn-outline,
.showcase .btn-outline,
.site-footer .btn-outline {
  background: transparent;
  color: var(--color-text-on-dark);
  border: 1.5px solid var(--color-text-on-dark);
}
.hero .btn-outline:hover,
.showcase .btn-outline:hover,
.site-footer .btn-outline:hover {
  background: rgba(255,255,255,0.08);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}
.btn-accent:hover { filter: brightness(1.1); }

.btn-header { padding: 0.5rem 1rem; font-size: var(--fs-sm); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--color-ink);
  text-decoration: none;
}

/* ==========================================================================
   Top bar — lives inside the hero, not sticky, scrolls away with it. Kept
   visually quiet (small text, no background) so it never competes with the
   hero content it sits on top of.
   ========================================================================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  text-align: left;
}
.topbar-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--color-text-on-dark);
  text-decoration: none;
  white-space: nowrap;
}
.topbar-links {
  display: flex;
  gap: var(--space-sm);
  white-space: nowrap;
}
@media (min-width: 480px) {
  .topbar-links { gap: var(--space-md); }
}
.topbar-links a {
  position: relative;
  color: var(--color-text-on-dark);
  font-size: var(--fs-sm);
  text-decoration: none;
}
/* Underline slides in from the left rather than snapping on */
.topbar-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.topbar-links a:hover::after,
.topbar-links a:focus-visible::after { transform: scaleX(1); }
/* Below 360px, drop the links and keep just the name — there isn't room
   for both without wrapping or crowding. */
@media (max-width: 359px) {
  .topbar-links { display: none; }
}

/* ==========================================================================
   Dark bookend sections — Hero, Creative Showcase, Footer. Exactly three
   (Color System Rule 3). They share one treatment: a soft radial gradient for
   depth plus a faint grain overlay for material richness.

   Decorative only — contrast is unaffected. Measured against the gradient's
   LIGHTEST point (#1F2530): text-on-dark 13.85:1, text-on-dark-soft 6.06:1,
   both well clear of the 4.5:1 AA floor.
   ========================================================================== */
.hero,
.showcase,
.site-footer {
  position: relative;
  background: radial-gradient(ellipse at 50% 40%, #1F2530 0%, var(--color-ink) 60%);
  color: var(--color-text-on-dark);
  overflow: hidden;
}
.hero::before,
.showcase::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
}
/* A positioned ::before paints above non-positioned siblings, so the actual
   content needs its own stacking context to stay on top. */
.hero > .container,
.showcase > .container,
.site-footer > .container {
  position: relative;
  z-index: 1;
}

.hero {
  padding: var(--space-xl) 0;
  text-align: center;
}
/* Size/leading/tracking come from the global h1 rule; only the hero-specific
   colour and measure live here. */
.hero h1 {
  color: var(--color-text-on-dark);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--color-text-on-dark-soft);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; justify-content: center; }
}
.hero-trust {
  font-size: var(--fs-sm);
  color: var(--color-text-on-dark-soft);
  margin: 0;
}
/* Tertiary teaser — deliberately quiet so it can't compete with the
   WhatsApp CTA. Accent blue is unusable on ink (2.55:1), so it stays on the
   light-on-dark palette, per Color System Rule 6. */
.hero-teaser { margin: var(--space-sm) 0 0; }
.hero-teaser a {
  font-size: var(--fs-sm);
  color: var(--color-text-on-dark-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hero-teaser a:hover,
.hero-teaser a:focus-visible {
  color: var(--color-text-on-dark);
  border-bottom-color: var(--color-text-on-dark);
}

/* Load-in only (not scroll-triggered): headline, subhead, buttons, trust
   line stagger-fade once on initial page load. Isolated to the hero — nowhere
   else on the site animates on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-sub, .hero-ctas, .hero-trust, .hero-teaser {
    animation: hero-load-in 0.4s ease-out both;
  }
  .hero h1 { animation-delay: 0ms; }
  .hero-sub { animation-delay: 100ms; }
  .hero-ctas { animation-delay: 200ms; }
  .hero-trust { animation-delay: 300ms; }
  .hero-teaser { animation-delay: 380ms; }
}
@keyframes hero-load-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Proof / Case studies
   ========================================================================== */
.proof h2 { max-width: 20ch; }
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
@media (min-width: 800px) {
  .case-grid { grid-template-columns: repeat(3, 1fr); }
}
.case-card {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
  color: var(--color-ink);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.case-card:hover,
a.case-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(23, 28, 38, 0.12);
}
.case-card-link { font-weight: 600; color: var(--color-accent); }
/* Browser chrome around case-study screenshots — reads as "a real website"
   rather than a floating image. Neutral by design: no accent colour here, so
   the screenshot stays the most prominent thing (see Color System Rule 5). */
.browser-frame {
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  margin-bottom: var(--space-sm);
  background: var(--color-bg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 0.625rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
/* Three dots drawn from one element via box-shadow — no extra markup/assets */
.browser-dots {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D6D3CE;
  box-shadow: 11px 0 0 #D6D3CE, 22px 0 0 #D6D3CE;
  margin-right: 22px;
}
.browser-url {
  flex: 1;
  min-width: 0;
  padding: 0.125rem 0.5rem;
  border-radius: 100px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-frame .case-thumb {
  margin-bottom: 0;
  border-radius: 0;
}

/* Thumbnails stay neutral — no colorful frames, so the screenshot itself
   (once added) is the most visually prominent thing on the page. */
.case-thumb {
  aspect-ratio: 16 / 9;
  background: var(--color-bg);
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}
/* <picture> is inline by default, which would collapse the img's height: 100% */
.case-thumb picture { display: block; width: 100%; height: 100%; }
.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.case-card-empty { border: 2px dashed var(--color-border); box-shadow: none; }
.case-thumb-empty { background: transparent; border: 1px dashed var(--color-border); }

/* ==========================================================================
   Services
   ========================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
@media (min-width: 800px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
  transition: box-shadow var(--dur) var(--ease);
}

/* ==========================================================================
   Process
   ========================================================================== */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
@media (min-width: 800px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); }
}
.process-steps li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}
/* Step numbers are informational, not interactive — ink, not accent. */
.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.process-reassure {
  text-align: center;
  color: var(--color-ink-soft);
  margin-top: var(--space-md);
}

/* ==========================================================================
   Why Us
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
@media (min-width: 800px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}
.why-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
  transition: box-shadow var(--dur) var(--ease);
}

/* Card icons — neutral ink-soft, never accent (Color System Rule 2 forbids
   accent on icons). One shared stroke weight so the set reads as a system. */
.card-icon {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: var(--space-sm);
  color: var(--color-ink-soft);
}

/* These cards aren't links, so they get a shadow lift only — no translate.
   Moving a non-clickable card implies it's clickable. */
.service-card:hover,
.why-card:hover {
  box-shadow: 0 8px 20px rgba(23, 28, 38, 0.09);
}
/* Decorative accent border kept neutral — accent stays reserved for action. */
.testimonial {
  margin: var(--space-lg) 0 0;
  padding: var(--space-md);
  border-left: 4px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--color-ink-soft);
}

/* ==========================================================================
   Creative Showcase — dark bookend section (authority ink), one of exactly
   three. Still static/lightweight; the "wow" lives on the linked demo sites.
   ========================================================================== */
.showcase .eyebrow { color: var(--color-text-on-dark-soft); }
.showcase h2, .showcase-intro { color: var(--color-text-on-dark); }
.showcase-intro { max-width: 48ch; color: var(--color-text-on-dark-soft); }
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
@media (min-width: 800px) {
  .showcase-grid { grid-template-columns: repeat(3, 1fr); }
}
.showcase-card {
  display: block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: var(--space-md);
  color: var(--color-text-on-dark);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
/* Accent shows up only on hover — the interactive/active-state cue — while
   resting-state text stays on the light-on-dark palette for legibility. */
a.showcase-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
  border-color: var(--color-accent);
}
.showcase-card h3 { color: var(--color-text-on-dark); }
.showcase-card p { color: var(--color-text-on-dark-soft); }
.showcase-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,0.08);
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}
/* Video sits over the poster image and fades in once it's actually playing,
   so a failed/blocked autoplay just leaves the image visible. */
.showcase-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.showcase-video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  /* Never loaded or played by main.js either — this is belt and braces. */
  .showcase-video { display: none; }
}
/* <picture> is inline by default, which would collapse the img's height: 100% */
.showcase-thumb picture { display: block; width: 100%; height: 100%; }
.showcase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.showcase-card-empty { border-style: dashed; }
.showcase-thumb-empty { background: transparent; border: 1px dashed rgba(255,255,255,0.25); }
.showcase-link { font-weight: 600; color: var(--color-text-on-dark); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-sub { color: var(--color-ink-soft); max-width: 42ch; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-direct { display: flex; flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
.contact-direct .btn { width: 100%; }
@media (min-width: 640px) { .contact-direct .btn { width: auto; } }
.contact-email { color: var(--color-ink-soft); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  background: var(--color-surface);
  padding: var(--space-md);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.contact-form label { font-weight: 600; font-size: var(--fs-sm); }
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) - 4px);
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--color-ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
.contact-form button { margin-top: var(--space-xs); }

/* Netlify honeypot field — hidden from sighted users, still in the DOM for bots */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Case-study detail pages (work-*.html) — light throughout, no fourth ink
   section. The bottom CTA reuses .btn/.btn-whatsapp/.btn-outline on
   --color-bg rather than introducing another dark section — ink stays
   reserved for exactly Hero, Creative Showcase, Footer.
   ========================================================================== */
.work-header {
  border-bottom: 1px solid var(--color-border);
}
.work-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}
.back-link {
  color: var(--color-ink-soft);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

.work-intro { text-align: center; padding-bottom: var(--space-md); }
.work-intro h1 { font-size: var(--fs-2xl); }
.work-summary {
  color: var(--color-ink-soft);
  max-width: 48ch;
  margin: 0 auto;
  font-size: var(--fs-lg);
}

.work-gallery { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.work-gallery .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 800px;
}
.gallery-item {
  margin: 0;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.gallery-item picture { display: block; }
.gallery-item img { width: 100%; height: auto; display: block; }
.gallery-item figcaption {
  padding: var(--space-sm) var(--space-md);
  color: var(--color-ink-soft);
  font-size: var(--fs-sm);
}
.gallery-item-empty {
  border: 2px dashed var(--color-border);
  box-shadow: none;
}
.gallery-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-soft);
  font-size: var(--fs-sm);
  text-align: center;
  padding: var(--space-md);
}

.work-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 800px) {
  .work-story-grid { grid-template-columns: repeat(3, 1fr); }
}
.work-story-item {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
}
.work-story-item h3 { color: var(--color-accent); font-size: var(--fs-base); }

.work-cta { text-align: center; }
.work-cta p { color: var(--color-ink-soft); max-width: 42ch; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Footer — dark bookend section (authority ink), one of exactly three
   ========================================================================== */
.site-footer {
  padding: var(--space-lg) 0;
  text-align: center;
}
.footer-inner > * { margin-bottom: var(--space-xs); }
.footer-name { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-lg); }
.footer-contact a, .footer-social a { color: var(--color-text-on-dark); }
.footer-contact a:hover, .footer-social a:hover { text-decoration: underline; }
.footer-social { display: flex; justify-content: center; gap: var(--space-md); }
.footer-tagline, .footer-copyright { color: var(--color-text-on-dark-soft); font-size: var(--fs-sm); }

/* ==========================================================================
   Floating WhatsApp button — appears once the hero (with its own WhatsApp
   CTA) has scrolled out of view, so it never duplicates on first paint.
   Toggled via .is-visible by assets/js/main.js.
   ========================================================================== */
.whatsapp-fab {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: 20;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
}
.whatsapp-fab:hover { background: var(--color-whatsapp-hover); }
.whatsapp-fab.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab { transition: opacity 0.01s linear; transform: none; }
}

/* ==========================================================================
   Scroll reveal animation — subtle, respects prefers-reduced-motion
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, html { transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }

  /* Polish-pass interactions: keep the state change, drop the movement. */
  .btn, a.case-card, a.showcase-card, .topbar-links a::after,
  .service-card, .why-card {
    transition: none !important;
  }
  .btn:hover, .btn:active,
  a.case-card:hover, a.case-card:focus-visible,
  a.showcase-card:hover {
    transform: none !important;
  }
  .topbar-links a::after { transition: none !important; }
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
