/**
 * Solvya — main stylesheet
 * Change colors, type, spacing, and motion from :root only.
 */

/* --------------------------------------------------------------------------
   Design tokens (edit here to restyle the whole site)
   4 colors for text & buttons + supporting surface tokens
   -------------------------------------------------------------------------- */
:root {
  /* Text & button colors (4 core) — inspired by conceptbeans.com */
  --color-ink: #111111;          /* near-black headings / accents */
  --color-muted: #6a6a6a;        /* body / secondary text */
  --color-accent: #111111;       /* buttons & UI accents (near black) */
  --color-on-accent: #ffffff;    /* text on solid buttons */

  /* Hover accent — darker red */
  --color-hover: #b72a1d;

  /* Surfaces */
  --color-bg: #f7f7f5;
  --color-surface: #ffffff;
  --color-line: #e6e6e3;
  --color-pattern: rgba(17, 17, 17, 0.045);
  --color-pattern-light: rgba(17, 17, 17, 0.022);
  --color-ring: rgba(120, 120, 120, 0.28); /* mild gray hover border */

  /* Typography — 2 fonts only */
  --font-heading: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  /* Type scale */
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-3xl: clamp(2.25rem, 4vw, 3.25rem);
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.65;
  --tracking-tight: -0.02em;

  /* Layout */
  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 180ms;
  --duration: 420ms;
  --duration-slow: 700ms;
  --reveal-distance: 18px;

  /* Shadows (subtle) */
  --shadow-soft: 0 10px 30px rgba(17, 17, 17, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-muted);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-ink);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-ink);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 650;
  margin: 0 0 0.6em;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.7);
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-hover);
  margin-bottom: 0.75rem;
}

.section__intro {
  font-size: var(--text-md);
  color: var(--color-muted);
  margin: 0;
}

/* CSS pattern background (lightweight, no images) */
.pattern-grid {
  background-color: var(--color-bg);
  background-image:
    linear-gradient(var(--color-pattern) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-pattern) 1px, transparent 1px);
  background-size: 48px 48px;
}

.pattern-dots {
  background-image: radial-gradient(var(--color-pattern) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}

/* --------------------------------------------------------------------------
   Buttons
   - Size stays fixed (padding + 1px border only)
   - 5px mild-gray ring sits OUTSIDE via box-shadow (never grows the button)
   - Default ring is transparent so hover only changes color — no jump
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transform: none;
  box-shadow: 0 0 0 5px transparent; /* outside ring, transparent by default */
  transition: background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.btn:hover,
.btn:focus-visible {
  transform: none;
  box-shadow: 0 0 0 5px var(--color-ring); /* mild gray, outside only */
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-color: var(--color-accent);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-hover);
  color: var(--color-on-accent);
  border-color: var(--color-hover);
  box-shadow: 0 0 0 5px var(--color-ring);
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-line);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--color-ink);
  color: var(--color-on-accent);
  border-color: var(--color-ink);
  box-shadow: 0 0 0 5px var(--color-ring);
}

/* Solid fill so hero pattern never shows through the secondary CTA */
.hero .btn--ghost {
  background: #fff;
  border-color: color-mix(in srgb, var(--color-ink) 22%, var(--color-line));
}

.hero .btn--ghost:hover,
.hero .btn--ghost:focus-visible {
  background: var(--color-ink);
  color: var(--color-on-accent);
  border-color: var(--color-ink);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-group--center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-ink);
  text-decoration: none;
  line-height: 0;
}

.site-brand:hover {
  opacity: 0.92;
}

.site-brand__logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(190px, 55vw);
}

.site-brand__lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.site-brand__mark {
  display: block;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.site-brand__word {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform var(--duration-fast) var(--ease-out);
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.primary-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 0;
  background: transparent;
  transition: color var(--duration-fast) var(--ease-out);
}

.primary-nav .nav-link:hover,
.primary-nav .current-menu-item > .nav-link,
.primary-nav .current-menu-ancestor > .nav-link {
  color: var(--color-hover);
  background: transparent;
  border-color: transparent;
}

.primary-nav .menu-item-has-children {
  position: relative;
}

.primary-nav .menu-item-has-children > .nav-link::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.65;
  transition: transform var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
}

.primary-nav .menu-item-has-children:hover > .nav-link::after,
.primary-nav .menu-item-has-children:focus-within > .nav-link::after {
  transform: rotate(225deg) translateY(-1px);
  opacity: 1;
}

.primary-nav .sub-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  padding: 0.55rem;
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: none;
  pointer-events: none;
  transition: opacity 120ms var(--ease-out),
    visibility 120ms var(--ease-out);
  transition-delay: 140ms; /* keep open briefly while moving into menu */
  z-index: 40;
}

/* Invisible hover bridge between parent link and dropdown */
.primary-nav .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s; /* open immediately */
}

.primary-nav .sub-menu .menu-item {
  width: 100%;
  position: relative;
}

.primary-nav .sub-menu .nav-link {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-weight: 600;
}

.primary-nav .sub-menu .nav-link:hover,
.primary-nav .sub-menu .current-menu-item > .nav-link {
  background: transparent;
  color: var(--color-hover);
  border-color: transparent;
}

/* Nested sub-services (level 3) — flush to parent, no dead gap */
.primary-nav .sub-menu .menu-item-has-children > .sub-menu {
  top: -0.55rem;
  left: 100%;
  margin-left: 0;
  min-width: 240px;
  z-index: 41;
}

/* Side hover bridge into nested submenu */
.primary-nav .sub-menu .menu-item-has-children > .sub-menu::before {
  left: -14px;
  right: auto;
  top: 0;
  width: 14px;
  height: 100%;
}

.primary-nav .sub-menu .menu-item-has-children > .nav-link::after {
  transform: rotate(-45deg);
  margin-left: auto;
}

.primary-nav .sub-menu .menu-item-has-children:hover > .nav-link::after,
.primary-nav .sub-menu .menu-item-has-children:focus-within > .nav-link::after {
  transform: rotate(135deg);
}

.header-cta {
  margin-left: 0.5rem;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex-direction: column; }

  .primary-nav {
    position: absolute;
    inset: 100% 0 auto;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-line);
    padding: 0.75rem var(--gutter) 1.25rem;
    display: none;
  }

  .primary-nav.is-open { display: block; }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav .sub-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    border-left: 2px solid color-mix(in srgb, var(--color-hover) 40%, var(--color-line));
    padding: 0.25rem 0 0.25rem 0.65rem;
    margin: 0.25rem 0 0.35rem 0.65rem;
    min-width: 0;
    background: transparent;
  }

  .primary-nav .sub-menu::before {
    display: none;
  }

  .primary-nav .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }

  .primary-nav .sub-menu .menu-item-has-children > .sub-menu {
    margin-left: 0.5rem;
  }

  .primary-nav .menu-item-has-children > .nav-link::after {
    margin-left: auto;
  }

  .header-cta { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 7rem);
  border-bottom: 1px solid var(--color-line);
  background-color: var(--color-bg);
}

/* Shared banner lines (home + inner pages) — sparse H/V, low density */
.banner-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.banner-lines__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-lines__h,
.banner-lines__v {
  stroke: rgba(17, 17, 17, 0.09);
  stroke-width: 1;
  stroke-linecap: round;
}

.banner-lines__v {
  stroke: rgba(17, 17, 17, 0.075);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero__copy {
  max-width: 36rem;
}

.hero__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.hero__logo-mark {
  display: block;
  width: clamp(2.1rem, 4vw, 2.5rem);
  height: clamp(2.1rem, 4vw, 2.5rem);
  flex-shrink: 0;
}

.hero__logo-word {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--color-ink);
  line-height: 1;
}

.hero h1 {
  margin-bottom: 0.85rem;
}

.hero__lead {
  font-size: var(--text-md);
  margin: 0;
  max-width: 34rem;
}

.hero__visual {
  position: relative;
  min-height: 320px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid color-mix(in srgb, var(--color-line) 65%, white);
  background: #f4f4f2;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.035);
}

.hero__image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  opacity: 0.8;
  filter: brightness(1.1) saturate(0.9);
}

.hero__overlay {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero__badge {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ink);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-line) 75%, white);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  backdrop-filter: blur(8px);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Page hero (inner pages) — text left, graphic right */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 7vw, 4.75rem);
  border-bottom: 1px solid var(--color-line);
  background-color: var(--color-bg);
}

.page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}

@media (min-width: 860px) {
  .page-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.page-hero__content {
  max-width: 36rem;
}

.page-hero__content .section__eyebrow {
  margin-bottom: 0.85rem;
}

.page-hero__content h1 {
  margin-bottom: 0.75rem;
}

.page-hero__content h1::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  border-radius: 999px;
  background: var(--color-hover);
  margin: 0 0 1rem;
}

.page-hero__content .section__intro {
  max-width: 34rem;
  margin-bottom: 0;
}

.page-hero__content .btn-group {
  margin-top: 1.35rem;
}

.page-hero__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.page-hero__icon svg {
  width: 48px;
  height: 48px;
}

.page-hero__meta {
  margin-top: 1rem;
}

.page-hero__visual {
  justify-self: end;
  width: min(100%, 520px);
}

.page-hero__graphic {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.page-hero__graphic--photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.page-hero--photo .page-hero__graphic {
  border: 0;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.12);
}

@media (max-width: 859px) {
  .page-hero__visual {
    justify-self: stretch;
    width: min(100%, 420px);
  }
}

/* --------------------------------------------------------------------------
   Banner contrast — first band under any hero is white (not cream-on-cream)
   -------------------------------------------------------------------------- */
.hero + .section,
.page-hero + .section,
.page-hero + article > .section:first-child,
.page-hero + .about-purpose,
.page-hero + .contact-showcase {
  background: var(--color-surface);
}

.hero + .section .card,
.page-hero + .section .card,
.page-hero + article > .section:first-child .card,
.page-hero + .section .service-cap,
.services-hub .card,
.services-hub__highlight {
  background: var(--color-bg);
}

.page-hero + .about-purpose .about-purpose__block--vision {
  background: transparent;
}

/* Leadership first after banner (team archive) → white, then roster cream */
.page-hero + .leadership-band,
.page-hero + .section.leadership-band {
  background: var(--color-surface);
}

.page-hero + .leadership-band + .team-roster,
.page-hero + .section.leadership-band + .team-roster {
  background: var(--color-bg);
}

.page-hero + .leadership-band + .team-roster .card,
.page-hero + .section.leadership-band + .team-roster .card {
  background: var(--color-surface);
}

.page-hero + .leadership-band .card,
.page-hero + .section.leadership-band .card {
  background: var(--color-bg);
}

/* Services hub */
.services-hub {
  background: var(--color-surface);
  padding-top: clamp(2.75rem, 6vw, 4rem);
}

.services-hub__head {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 40rem;
}

.services-hub__head h2 {
  margin-bottom: 0.65rem;
}

.services-hub__head .section__intro {
  margin-bottom: 0;
}

.services-hub__highlights {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4.5vw, 2.75rem);
}

@media (min-width: 800px) {
  .services-hub__highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.services-hub__highlight {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.services-hub__highlight strong {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-ink);
}

.services-hub__highlight span {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.45;
}

.services-hub__content {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.services-hub__grid {
  margin-top: 0;
}

.services-hub__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.service-detail__parent {
  margin: 0 0 1rem;
  font-size: var(--text-sm);
}

.service-detail__parent a {
  color: var(--color-hover);
  font-weight: 600;
  text-decoration: none;
}

.service-detail__parent a:hover {
  text-decoration: underline;
}

.services-hub .card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  height: 100%;
  transition: border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
}

.services-hub .card:hover {
  border-color: color-mix(in srgb, var(--color-hover) 45%, var(--color-line));
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.06);
}

.services-hub .card__icon {
  color: var(--color-hover);
}

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.25rem;
}

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

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  transition: border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.card:hover {
  border-color: color-mix(in srgb, var(--color-ink) 22%, var(--color-line));
  box-shadow: var(--shadow-soft);
}

.card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.card__icon svg {
  width: 40px;
  height: 40px;
}

.card h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.45rem;
}

.card p {
  margin: 0;
  font-size: var(--text-sm);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ink);
  background: color-mix(in srgb, var(--color-ink) 6%, transparent);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
}

.card-link {
  display: block;
  color: inherit;
  height: 100%;
}

.card-link:hover {
  color: inherit;
}

.card-media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 12%, var(--color-surface)), var(--color-surface)),
    radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--color-ink) 8%, transparent), transparent 50%);
  border-bottom: 1px solid var(--color-line);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card--media {
  padding: 0;
  overflow: hidden;
}

.card--media .card__body {
  padding: 1.25rem 1.35rem 1.4rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stat__value {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: var(--tracking-tight);
}

.stat__label {
  font-size: var(--text-sm);
  margin: 0.2rem 0 0;
}

/* Process — dark band + flip cards (screenshot-inspired) */
.process-band {
  background: #141414;
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.process-band__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.process-band__head h2 {
  color: #f5f5f2;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.process-band__label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

.process-band__intro {
  max-width: 40rem;
  margin: -0.5rem 0 1.75rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--text-md);
}

.process-flip {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .process-flip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .process-flip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.flip-card {
  perspective: 1200px;
  min-height: 280px;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  transform-style: preserve-3d;
  transition: transform var(--duration-slow) var(--ease-out);
}

.flip-card:hover .flip-card__inner,
.flip-card.is-flipped .flip-card__inner,
.flip-card:focus-within .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
}

.flip-card__face--front {
  background: #232323;
  color: rgba(255, 255, 255, 0.78);
}

.flip-card__face--back {
  background: #0d0d0d;
  color: rgba(255, 255, 255, 0.78);
  transform: rotateY(180deg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.flip-card__step {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 0.65rem;
}

.flip-card__face h3 {
  color: #f5f5f2;
  font-size: var(--text-lg);
  margin-bottom: 1rem;
}

.flip-card__points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.flip-card__points li {
  position: relative;
  padding-left: 0.95rem;
  margin-bottom: 0.45rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.flip-card__points li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--color-hover);
}

.flip-card__expect-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-hover);
  margin-bottom: 0.75rem;
}

.flip-card__expect {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: rgba(255, 255, 255, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .flip-card__inner {
    transition: none;
  }

  .flip-card:hover .flip-card__inner,
  .flip-card.is-flipped .flip-card__inner,
  .flip-card:focus-within .flip-card__inner {
    transform: none;
  }

  .flip-card__face--back {
    position: static;
    transform: none;
    margin-top: 0.75rem;
  }

  .flip-card {
    min-height: 0;
  }

  .flip-card__inner {
    min-height: 0;
  }

  .flip-card__face--front {
    position: static;
  }
}

/* AI stance band — dark */
.ai-band {
  padding-block: clamp(3rem, 7vw, 4.5rem);
  background: #141414;
  color: rgba(255, 255, 255, 0.68);
  border-block: 0;
}

.ai-band__grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .ai-band__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }
}

.ai-band__mark {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8a39a;
  margin-bottom: 0.75rem;
}

.ai-band h2 {
  margin-bottom: 0.75rem;
  color: #f5f5f2;
}

.ai-band p {
  color: rgba(255, 255, 255, 0.62);
  max-width: 36rem;
}

.ai-band__points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ai-band__points li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #f5f5f2;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
}

.ai-band__points li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ai-band__points li span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.52);
}

/* Team */
.team-photo {
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--color-accent) 8%, var(--color-surface));
  border-bottom: 1px solid var(--color-line);
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-role {
  font-size: var(--text-sm);
  color: var(--color-hover);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.about-purpose {
  padding-block: clamp(3.25rem, 7vw, 5rem);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}

.about-purpose__intro {
  max-width: 36rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.about-purpose__intro h2 {
  margin: 0;
}

.about-purpose__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-line);
}

.about-purpose__block {
  display: grid;
  gap: 1rem 2rem;
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--color-line);
}

@media (min-width: 800px) {
  .about-purpose__block {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    align-items: start;
  }
}

.about-purpose__index {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: color-mix(in srgb, var(--color-ink) 16%, transparent);
}

.about-purpose__label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-hover);
  margin-bottom: 0.65rem;
}

.about-purpose__body p {
  margin: 0;
  max-width: 42rem;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
}

.about-purpose__block--vision {
  background: transparent;
}

.about-principles {
  padding-block: clamp(3.25rem, 7vw, 5rem);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}

.about-principles__head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4.5vw, 2.75rem);
}

.about-principles__head h2 {
  margin-bottom: 0.75rem;
}

.about-principles__lead {
  margin-top: 0.75rem;
}

.about-principles__lead > *:first-child {
  margin-top: 0;
}

.about-principles__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-line);
}

@media (min-width: 900px) {
  .about-principles__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.about-principles__item {
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--color-line);
}

@media (min-width: 900px) {
  .about-principles__item {
    padding: clamp(1.75rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 1.75rem);
    border-bottom: 0;
    border-right: 1px solid var(--color-line);
  }

  .about-principles__item:first-child {
    padding-left: 0;
  }

  .about-principles__item:last-child {
    border-right: 0;
    padding-right: 0;
  }
}

.about-principles__num {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-hover);
  margin-bottom: 0.85rem;
}

.about-principles__item h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.about-principles__item p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  max-width: 18rem;
}

.leadership-band {
  background: var(--color-bg);
  padding-bottom: calc(var(--section-y) * 0.45);
}

.leadership-grid .card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
}

.leadership-grid .team-photo {
  aspect-ratio: 4 / 5;
}

.team-roster {
  background: var(--color-surface);
  padding-top: calc(var(--section-y) * 0.55);
}

.team-roster .section__head {
  margin-bottom: 1.25rem;
}

.team-roster .section__head h2 {
  margin-bottom: 0;
}

.team-roster-grid .card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
}

.team-roster-grid .team-photo {
  aspect-ratio: 4 / 5;
}

.team-text-list {
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
}

.team-text-list__block + .team-text-list__block {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--color-line);
}

.team-text-list__block .section__head {
  margin-bottom: 1.25rem;
}

.team-text-list__block .section__head h2 {
  margin-bottom: 0.35rem;
}

.team-text-list__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.team-text-list__grid--leaders {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-text-list__grid--roster {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-text-list__item {
  border-top: 1px solid var(--color-line);
}

.team-text-list__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 0.85rem 1.15rem 0;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
  transition: color var(--duration-fast) var(--ease-out);
}

.team-text-list__link:hover {
  color: var(--color-hover);
}

.team-text-list__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-md);
  letter-spacing: var(--tracking-tight);
}

.team-text-list__role {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-hover);
}

.team-text-list__desc {
  margin-top: 0.2rem;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-muted);
}

.team-text-list__link:hover .team-text-list__desc {
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .team-text-list__grid--leaders,
  .team-text-list__grid--roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .team-text-list__grid--leaders,
  .team-text-list__grid--roster {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Content / prose
   -------------------------------------------------------------------------- */
.prose {
  max-width: 42rem;
}

.prose h2, .prose h3 {
  margin-top: 1.6em;
}

.prose a:hover {
  text-decoration: underline;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  color: var(--color-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-hover);
}

.content-split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .content-split {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.side-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.side-panel h3 {
  font-size: var(--text-md);
  margin-bottom: 0.85rem;
}

.service-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
}

.service-detail__overview {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.service-capabilities {
  background: var(--color-bg);
}

.service-detail__visual {
  min-width: 0;
  padding: 0.75rem;
}

.service-detail__graphic {
  position: relative;
  background: #161616;
  border: 0;
  overflow: visible;
  isolation: isolate;
}

.service-detail__graphic::before,
.service-detail__graphic::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.service-detail__graphic::before {
  inset: -0.65rem auto auto -0.65rem;
  width: 42%;
  height: 42%;
  border-top: 2px solid var(--color-hover);
  border-left: 2px solid var(--color-hover);
  animation: frame-drift 7s var(--ease-out) infinite alternate;
}

.service-detail__graphic::after {
  inset: auto -0.65rem -0.65rem auto;
  width: 48%;
  height: 48%;
  border-right: 2px solid var(--color-ink);
  border-bottom: 2px solid var(--color-ink);
  animation: frame-drift-rev 8s var(--ease-out) infinite alternate;
}

.service-detail__graphic img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  clip-path: inset(0);
  animation: media-ken 14s ease-in-out infinite alternate;
}

.service-detail__graphic-icon {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--color-hover);
  border: 1px solid var(--color-line);
  animation: icon-float 5s ease-in-out infinite;
}

.service-detail__graphic-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.service-capabilities__grid {
  margin-top: 0.25rem;
}

.service-cap {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: 1.25rem 1.2rem 1.35rem;
  height: 100%;
}

.service-cap__num {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-hover);
  margin-bottom: 0.7rem;
}

.service-cap h3 {
  margin: 0 0 0.45rem;
  font-size: var(--text-md);
}

.service-cap p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.5;
}

.side-panel .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.side-panel .btn:last-child {
  margin-bottom: 0;
}

.portfolio-detail__body,
.blog-detail__body {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.portfolio-detail__figure,
.blog-detail__figure {
  position: relative;
  margin: 0.75rem 0 2.25rem;
  background: #161616;
  border: 0;
  overflow: visible;
  isolation: isolate;
}

.portfolio-detail__figure::before,
.blog-detail__figure::before,
.portfolio-detail__figure::after,
.blog-detail__figure::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.portfolio-detail__figure::before,
.blog-detail__figure::before {
  inset: -0.75rem auto auto -0.75rem;
  width: 36%;
  height: 55%;
  border-top: 2px solid var(--color-hover);
  border-left: 2px solid var(--color-hover);
  animation: frame-drift 6.5s var(--ease-out) infinite alternate;
}

.portfolio-detail__figure::after,
.blog-detail__figure::after {
  inset: auto -0.75rem -0.75rem auto;
  width: 44%;
  height: 50%;
  border-right: 2px solid var(--color-ink);
  border-bottom: 2px solid var(--color-ink);
  animation: frame-drift-rev 7.5s var(--ease-out) infinite alternate;
}

.portfolio-detail__figure img,
.blog-detail__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  clip-path: inset(0);
  animation: media-ken 16s ease-in-out infinite alternate;
}

@keyframes frame-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(6px, 8px); }
}

@keyframes frame-drift-rev {
  from { transform: translate(0, 0); }
  to { transform: translate(-8px, -6px); }
}

@keyframes media-ken {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.portfolio-detail__results {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-line);
}

.portfolio-detail__aside-heading,
.blog-detail__aside-heading {
  margin-top: 1.5rem;
}

.portfolio-detail__links,
.blog-detail__related {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.portfolio-detail__links li,
.blog-detail__related li {
  margin: 0 0 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--color-line);
}

.portfolio-detail__links li:last-child,
.blog-detail__related li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.portfolio-detail__links a,
.blog-detail__related a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
}

.portfolio-detail__links a:hover,
.blog-detail__related a:hover {
  color: var(--color-hover);
}

.blog-detail__related span {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.blog-detail__aside .chip {
  text-decoration: none;
}

.prose h2 {
  margin-top: 2rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.post-meta {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: 0 0 0 5px var(--color-ring);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.65rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-showcase {
  padding-block: var(--section-y);
  background: var(--color-surface);
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
}

.contact-row__media {
  position: relative;
  min-height: 100%;
  background: transparent;
}

.contact-row__content {
  background: var(--color-bg);
  border: 0;
  border-radius: 0;
  min-height: 100%;
}

.contact-row__sticky {
  position: sticky;
  top: 4.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  min-height: calc(100vh - 5rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  max-width: 36rem;
}

.contact-row__sticky--details {
  max-width: 30rem;
  padding-left: 0;
  padding-right: clamp(0.5rem, 2vw, 1rem);
}

.contact-row__index {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(17, 17, 17, 0.35);
}

.contact-row__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-hover);
}

.contact-row__title {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
}

.contact-row__text {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-md);
  line-height: 1.55;
}

.contact-form {
  margin-top: 0.75rem;
  width: 100%;
  max-width: 100%;
}

.contact-details dt {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-hover);
  margin-top: 1.15rem;
}

.contact-details dt:first-child {
  margin-top: 0.35rem;
}

.contact-details dd {
  margin: 0.35rem 0 0;
  color: var(--color-ink);
}

.contact-details a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.contact-details a:hover {
  color: var(--color-hover);
  border-bottom-color: var(--color-hover);
}

.contact-form .wpcf7-form label,
.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.4rem;
}

.contact-expect {
  list-style: none;
  margin: 0.35rem 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.contact-expect li {
  position: relative;
  padding-left: 1.15rem;
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.45;
}

.contact-expect li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--color-hover);
}

.schedule-form__notice {
  margin: 0 0 1.15rem;
  padding: 0.85rem 0.95rem;
  font-size: var(--text-sm);
  line-height: 1.45;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.schedule-form__notice--success {
  border-color: #b7c9b4;
  background: #eef5ee;
  color: #1f3a1f;
}

.schedule-form__notice--error {
  border-color: #e0b4ae;
  background: #faf0ee;
  color: #7a2418;
}

.schedule-form__hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.schedule-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin-bottom: 0.15rem;
}

.schedule-form__field {
  margin: 0 0 1rem;
}

.schedule-form__field label span {
  color: var(--color-hover);
}

.schedule-form__field--other label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.schedule-form__field--other[hidden] {
  display: none !important;
}

.schedule-form__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.schedule-form__actions {
  margin: 0.35rem 0 0.65rem;
}

.schedule-form__fineprint {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.45;
}

.schedule-form__form input[type="text"],
.schedule-form__form input[type="email"],
.schedule-form__form input[type="tel"],
.schedule-form__form input[type="date"],
.schedule-form__form textarea,
.schedule-form__form select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid #cfcfc9;
  border-radius: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
  margin: 0;
  box-shadow: none;
  appearance: none;
}

.schedule-form__form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--color-ink) 50%),
    linear-gradient(135deg, var(--color-ink) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.15rem, calc(100% - 0.75rem) 1.15rem;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.schedule-form__form input:focus,
.schedule-form__form textarea:focus,
.schedule-form__form select:focus {
  outline: none;
  border-color: var(--color-ink);
  background-color: #fff;
}

.schedule-form__form textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.schedule-form__form .btn {
  border-radius: 0;
  width: auto;
  min-width: 12rem;
}

.schedule-form__form .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none !important;
}

.schedule-calendar {
  margin: 0 0 1.25rem;
  padding: 1rem;
  background: var(--color-surface);
  border: 1px solid #cfcfc9;
}

.schedule-calendar__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.schedule-calendar__title {
  margin: 0;
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
}

.schedule-calendar__nav {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #cfcfc9;
  background: var(--color-bg);
  color: var(--color-ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.schedule-calendar__nav:hover {
  border-color: var(--color-ink);
  color: var(--color-hover);
}

.schedule-calendar__weekdays,
.schedule-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.schedule-calendar__weekdays {
  margin-bottom: 0.35rem;
}

.schedule-calendar__weekdays span {
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0.25rem 0;
}

.schedule-calendar__day {
  aspect-ratio: 1;
  min-height: 2.35rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.schedule-calendar__day.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.schedule-calendar__day.is-unavailable {
  color: #aaa;
  background: #f0f0ee;
  cursor: not-allowed;
}

.schedule-calendar__day.is-available {
  background: #eef5ee;
  border-color: #c5d7c3;
}

.schedule-calendar__day.is-available:hover {
  border-color: var(--color-ink);
}

.schedule-calendar__day.is-partial {
  background: #f7f3e8;
  border-color: #e0d4b0;
}

.schedule-calendar__day.is-selected {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}

.schedule-calendar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  margin: 0.85rem 0 0;
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.schedule-calendar__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.schedule-calendar__legend span::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid #cfcfc9;
}

.schedule-calendar__legend .is-available::before {
  background: #eef5ee;
  border-color: #c5d7c3;
}

.schedule-calendar__legend .is-booked::before {
  background: #f0f0ee;
}

.schedule-calendar__legend .is-selected::before {
  background: var(--color-ink);
  border-color: var(--color-ink);
}

.schedule-slots {
  margin: 0 0 1.25rem;
  padding: 1rem;
  background: var(--color-bg);
  border: 1px solid #cfcfc9;
}

.schedule-slots__head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
}

.schedule-slots__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.schedule-slot {
  border: 1px solid #cfcfc9;
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.65rem 0.4rem;
  cursor: pointer;
  text-align: center;
}

.schedule-slot.is-available:hover {
  border-color: var(--color-ink);
}

.schedule-slot.is-booked,
.schedule-slot.is-unavailable {
  background: #ecece8;
  color: #999;
  text-decoration: line-through;
  cursor: not-allowed;
}

.schedule-slot.is-selected {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}

.schedule-slots__empty,
.schedule-slots__picked {
  margin: 0.75rem 0 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.schedule-slots__picked {
  color: var(--color-ink);
  font-weight: 600;
}

@media (max-width: 700px) {
  .schedule-form__grid {
    grid-template-columns: 1fr;
  }

  .schedule-slots__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-form .wpcf7-form p {
  margin: 0 0 1.1rem;
}

.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form input[type="tel"],
.contact-form .wpcf7-form input[type="url"],
.contact-form .wpcf7-form textarea,
.contact-form .wpcf7-form select,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid #cfcfc9;
  border-radius: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
  margin: 0;
  box-shadow: none;
  appearance: none;
  transition: border-color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

.contact-form .wpcf7-form input:focus,
.contact-form .wpcf7-form textarea:focus,
.contact-form .wpcf7-form select:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-ink);
  background: #fff;
}

.contact-form .wpcf7-form textarea,
.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact-form .wpcf7-submit,
.contact-form button[type="submit"],
.contact-form input[type="submit"] {
  background: var(--color-accent) !important;
  color: var(--color-on-accent) !important;
  border: 1px solid var(--color-accent) !important;
  border-radius: 0 !important;
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  padding: 0.95rem 1.5rem !important;
  cursor: pointer;
  transform: none !important;
  box-shadow: none !important;
  transition: background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out) !important;
}

.contact-form .wpcf7-submit:hover,
.contact-form button[type="submit"]:hover,
.contact-form input[type="submit"]:hover {
  background: var(--color-hover) !important;
  border-color: var(--color-hover) !important;
  box-shadow: 0 0 0 5px var(--color-ring) !important;
}

.contact-form .wpcf7-not-valid-tip {
  font-size: var(--text-xs);
  color: var(--color-hover);
  margin-top: 0.35rem;
}

.contact-form .wpcf7-response-output {
  margin: 1rem 0 0 !important;
  padding: 0.75rem 0.9rem !important;
  border-radius: 0 !important;
  border-width: 1px !important;
}

@media (max-width: 899px) {
  .contact-row {
    grid-template-columns: 1fr;
  }

  .contact-row__sticky,
  .contact-row__sticky--details {
    position: static;
    min-height: 0;
    max-width: none;
    padding: clamp(1.25rem, 4vw, 2rem);
  }

  .contact-row__sticky--details {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0.5rem;
  }
}

/* Legacy CF7 on other pages */
.wpcf7-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.35rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #cfcfc9;
  border-radius: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
  margin-bottom: 1rem;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--color-ink);
}

.wpcf7-submit {
  background: var(--color-accent) !important;
  color: var(--color-on-accent) !important;
  border: 1px solid var(--color-accent) !important;
  border-radius: 0 !important;
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  padding: 0.95rem 1.5rem !important;
  cursor: pointer;
  transform: none !important;
  box-shadow: 0 0 0 5px transparent !important;
  transition: background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out) !important;
}

.wpcf7-submit:hover {
  background: var(--color-hover) !important;
  border-color: var(--color-hover) !important;
  transform: none !important;
  box-shadow: 0 0 0 5px var(--color-ring) !important;
}

/* --------------------------------------------------------------------------
   Parallax band (between process and CTA)
   -------------------------------------------------------------------------- */
.parallax-band {
  position: relative;
  min-height: clamp(420px, 68vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  background: #1a1a1a;
}

.parallax-band__bg {
  position: absolute;
  inset: -18% 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.14);
}

.parallax-band__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.08) 45%,
    rgba(0, 0, 0, 0.35) 100%
  );
  pointer-events: none;
}

.parallax-band__inner {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(1.25rem, 4vw, 2.5rem);
}

.parallax-band__copy {
  max-width: 38rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 1.85rem);
}

.parallax-band__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.65rem;
}

.parallax-band__copy p {
  margin: 0;
  font-size: var(--text-md);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.parallax-band__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.85rem;
  width: auto;
  max-width: 100%;
  background: transparent;
  padding: 0;
  color: #fff;
}

.parallax-band__stats[hidden] {
  display: none !important;
}

.parallax-band__stat {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  background: #000;
  padding: 1.15rem 1.35rem 1.1rem;
}

.parallax-band__value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: #fff;
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.parallax-band__label {
  display: block;
  font-size: var(--text-sm);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
  max-width: 7.5rem;
}

@media (max-width: 900px) {
  .parallax-band__stats {
    gap: 0.75rem;
  }
}

@media (max-width: 700px) {
  .parallax-band {
    min-height: 360px;
  }

  .parallax-band__stat {
    flex: 1 1 calc(50% - 0.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-band__bg {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Testimonials slider
   -------------------------------------------------------------------------- */
.testimonials-band {
  background: var(--color-bg);
}

.testimonials-band__layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .testimonials-band__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 3.5rem);
  }
}

.testimonials-band__head {
  max-width: 28rem;
}

.testimonials-band__head .section__intro {
  margin-bottom: 0;
}

.testimonial-slider {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.testimonial-slider__viewport {
  overflow: hidden;
  position: relative;
  min-height: 12.5rem;
}

.testimonial-slider__track {
  position: relative;
}

.testimonial-slide {
  display: none;
  flex-direction: column;
  gap: 1.35rem;
  text-align: left;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.testimonial-slide.is-active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.testimonial-slide__quote {
  margin: 0;
  padding: 0;
  border: 0;
}

.testimonial-slide__quote p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-ink);
  letter-spacing: var(--tracking-tight);
}

.testimonial-slide__quote p::before {
  content: "“";
  color: var(--color-hover);
  margin-right: 0.1em;
}

.testimonial-slide__meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  text-align: left;
}

.testimonial-slide__avatar {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-muted);
}

.testimonial-slide__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-slide__name {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-ink);
}

.testimonial-slide__role {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted-fg, rgba(17, 17, 17, 0.58));
  margin-top: 0.15rem;
}

.testimonial-slide__rating {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-hover);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.testimonial-slider__controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
}

.testimonial-slider__btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #fff;
  color: var(--color-ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    background var(--duration) var(--ease-out);
}

.testimonial-slider__btn:hover {
  color: #fff;
  background: var(--color-hover);
  border-color: var(--color-hover);
}

.testimonial-slider__dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.testimonial-slider__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.2);
  cursor: pointer;
  transition: background var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.testimonial-slider__dot.is-active {
  background: var(--color-hover);
  transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   Scroll to top + progress (right side, vertical middle)
   -------------------------------------------------------------------------- */
.scroll-top {
  position: fixed;
  right: 1.1rem;
  top: 50%;
  bottom: auto;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.78);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(-50% + 10px));
  transition: opacity var(--duration) var(--ease-out),
    visibility var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out),
    background var(--duration) var(--ease-out);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%);
}

.scroll-top__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.scroll-top__track {
  position: relative;
  display: block;
  width: 2px;
  height: 72px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.scroll-top__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: var(--color-hover);
  border-radius: inherit;
  transition: height 80ms linear;
}

.scroll-top:hover {
  background: rgba(17, 17, 17, 0.92);
}

.scroll-top:hover .scroll-top__label {
  color: #fff;
}

@media (max-width: 700px) {
  .scroll-top {
    right: 0.55rem;
    padding: 0.65rem 0.4rem;
  }

  .scroll-top__track {
    height: 56px;
  }

  .scroll-top__label {
    font-size: 0.62rem;
  }
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--color-ink);
  color: color-mix(in srgb, var(--color-on-accent) 78%, transparent);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.cta-band h2 {
  color: var(--color-on-accent);
  max-width: 28rem;
}

.cta-band p {
  max-width: 32rem;
  margin-bottom: 1.25rem;
}

.cta-band .btn--primary {
  background: var(--color-on-accent);
  color: var(--color-ink);
  border-color: var(--color-on-accent);
}

.cta-band .btn--primary:hover {
  background: var(--color-hover);
  color: var(--color-on-accent);
  border-color: var(--color-hover);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.28);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
  padding-block: 3rem 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
    row-gap: 2.25rem;
  }
}

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 2rem;
    align-items: start;
  }
}

.footer-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-col--brand p {
  margin: 0.85rem 0 0;
  max-width: 100%;
  line-height: 1.5;
}

.site-footer h3 {
  font-size: var(--text-sm);
  margin: 0 0 0.85rem;
  min-height: 1.25rem;
}

.site-footer p {
  font-size: var(--text-sm);
  margin: 0 0 0.45rem;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-menu a {
  display: inline-block;
  padding: 0.2rem 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.footer-menu a:hover {
  color: var(--color-hover);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.social-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  color: var(--color-ink);
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 0;
  box-shadow: 0 0 0 5px transparent;
  transition: color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.social-links__item:hover {
  color: var(--color-hover);
  background: color-mix(in srgb, var(--color-hover) 8%, transparent);
  border-color: var(--color-hover);
  box-shadow: 0 0 0 5px var(--color-ring);
}

.social-links__icon {
  width: 1rem;
  height: 1rem;
  display: block;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
  font-size: var(--text-xs);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Entrance animations (subtle)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

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

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Home portfolio — alternating sticky split
   -------------------------------------------------------------------------- */
.work-showcase {
  padding-block: var(--section-y);
  background: var(--color-surface);
}

.work-showcase__intro {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.work-showcase__intro h2 {
  margin-bottom: 0;
}

.work-showcase__list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
}

.work-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
}

.work-row--flip .work-row__media {
  order: 2;
}

.work-row--flip .work-row__content {
  order: 1;
}

.work-row__media {
  position: relative;
  min-height: 150vh;
  background: #161616;
  overflow: hidden;
}

.work-row:nth-child(4n + 2) .work-row__media,
.work-row:nth-child(4n + 3) .work-row__media {
  background: #1f2a32;
}

.work-row__media-link {
  display: block;
  position: absolute;
  inset: 0;
}

.work-row__image,
.work-row__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.work-row__placeholder {
  background:
    linear-gradient(145deg, rgba(183, 42, 29, 0.35), transparent 55%),
    #222;
}

.work-row__content {
  background: var(--color-bg);
  min-height: 150vh;
  border: 0;
}

.work-row__sticky {
  position: sticky;
  top: 4.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  min-height: calc(100vh - 4.25rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  max-width: 34rem;
}

.work-row__index {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(17, 17, 17, 0.35);
}

.work-row__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-hover);
}

.work-row__title {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
}

.work-row__title a {
  color: inherit;
  text-decoration: none;
}

.work-row__title a:hover {
  color: var(--color-hover);
}

.work-row__text {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-md);
  line-height: 1.55;
}

.work-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.work-row__client {
  margin: 0;
  font-size: var(--text-sm);
  color: rgba(17, 17, 17, 0.5);
}

.work-row__cta {
  align-self: flex-start;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .work-row {
    grid-template-columns: 1fr;
  }

  .work-row--flip .work-row__media,
  .work-row--flip .work-row__content {
    order: unset;
  }

  .work-row__media {
    min-height: 56vh;
    order: -1;
  }

  .work-row__content {
    min-height: 0;
  }

  .work-row__sticky {
    position: static;
    min-height: 0;
    padding: 1.5rem 1.25rem 1.75rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-row__sticky {
    position: static;
  }

  .work-row__media,
  .work-row__content {
    min-height: 0;
  }

  .work-row__media {
    min-height: 50vh;
  }
}

.surface {
  background: var(--color-surface);
}

/* --------------------------------------------------------------------------
   Contact prompt modal
   -------------------------------------------------------------------------- */
.contact-prompt {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.contact-prompt[hidden] {
  display: none !important;
}

.contact-prompt__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  cursor: pointer;
}

.contact-prompt__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  max-height: min(92vh, 860px);
  overflow: auto;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-soft);
}

.contact-prompt__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.contact-prompt__close:hover {
  color: var(--color-hover);
  border-color: var(--color-hover);
}

.contact-prompt__intro {
  padding-right: 2rem;
  margin-bottom: 1.15rem;
}

.contact-prompt__intro h2 {
  margin: 0.35rem 0 0.45rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.contact-prompt__intro p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.5;
}

.contact-prompt .schedule-calendar,
.contact-prompt .schedule-slots {
  padding: 0.85rem;
}

.contact-prompt .schedule-slots__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-prompt .schedule-form__grid {
  grid-template-columns: 1fr;
}

body.contact-prompt-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Footer / contact WhatsApp links
   -------------------------------------------------------------------------- */
.footer-whatsapp {
  margin: 0.35rem 0 0.85rem;
}

.footer-whatsapp p {
  margin: 0 0 0.35rem;
}

.footer-whatsapp__link,
.contact-whatsapp__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #1ebe57;
  text-decoration: none;
  font-weight: 600;
}

.footer-whatsapp__link:hover,
.contact-whatsapp__link:hover {
  color: #128c7e;
}

.footer-whatsapp__icon,
.contact-whatsapp__icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.contact-whatsapp {
  display: grid;
  gap: 0.45rem;
}

/* --------------------------------------------------------------------------
   Chat hub — WhatsApp + AI (bottom-right)
   -------------------------------------------------------------------------- */
.chat-hub {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.chat-hub__fab {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  background: var(--color-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.22);
  transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.chat-hub__fab:hover,
.chat-hub.is-open .chat-hub__fab {
  background: var(--color-hover);
}

.chat-hub__panel {
  width: min(22.5rem, calc(100vw - 2rem));
  max-height: min(32rem, calc(100vh - 6.5rem));
  overflow: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.14);
}

.chat-hub__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--color-line);
  background: #fafaf8;
}

.chat-hub__head strong {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-ink);
}

.chat-hub__icon-btn {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.chat-hub__menu,
.chat-hub__ai {
  padding: 0.9rem 1rem 1.05rem;
}

.chat-hub__label {
  margin: 0 0 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.chat-hub__label + .chat-hub__channels,
.chat-hub__label + .chat-hub__channel {
  margin-bottom: 0.85rem;
}

.chat-hub__channels {
  display: grid;
  gap: 0.45rem;
}

.chat-hub__channel {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-line);
  background: #fff;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.chat-hub__channel:hover {
  border-color: color-mix(in srgb, var(--color-ink) 28%, var(--color-line));
  background: #fafaf8;
}

.chat-hub__channel--wa {
  border-left: 3px solid #25d366;
}

.chat-hub__channel--ai {
  border-left: 3px solid var(--color-hover);
}

.chat-hub__channel-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 650;
  color: var(--color-ink);
}

.chat-hub__channel-meta {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.chat-hub__hint {
  margin: 0.35rem 0 0;
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.chat-hub__back {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.65rem;
}

.chat-hub__messages {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 11rem;
  max-height: 16rem;
  overflow: auto;
  margin-bottom: 0.75rem;
  padding-right: 0.15rem;
}

.chat-hub__msg {
  max-width: 92%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: var(--text-sm);
  line-height: 1.45;
}

.chat-hub__msg--bot {
  align-self: flex-start;
  background: #f3f3f0;
  color: var(--color-ink);
}

.chat-hub__msg--user {
  align-self: flex-end;
  background: var(--color-ink);
  color: #fff;
}

.chat-hub__composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

.chat-hub__composer input {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.75rem;
  font: inherit;
  background: #fff;
}

.chat-hub__composer .btn {
  padding-inline: 1rem;
}

@media (max-width: 640px) {
  .chat-hub {
    right: 0.85rem;
    bottom: 0.85rem;
  }
}

.alignwide { max-width: var(--container); margin-inline: auto; }
.text-ink { color: var(--color-ink); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
