/* ============================================================
   MotherTree Communication — Design Tokens
   ============================================================ */

:root,
[data-theme='light'] {
  /* Surfaces — dark grey with a hint of green */
  --color-bg: #26291f;
  --color-surface: #2c3024;
  --color-surface-2: #33372a;
  --color-surface-offset: #1f221a;
  --color-surface-offset-2: #191c15;
  --color-surface-dynamic: #3b4030;
  --color-divider: #3b4030;
  --color-border: #454c39;

  /* Text — light, warm off-white for contrast on the dark surface */
  --color-text: #edeee3;
  --color-text-muted: #b3b9a2;
  --color-text-faint: #7d8470;
  --color-text-inverse: #1f221a;

  /* Fixed light text for surfaces that stay dark in both themes
     (nav overlay, cta band, transparent hero header) — must NOT
     flip with --color-text-inverse, which inverts per theme. */
  --color-on-dark: #f6f3ea;
  --color-on-dark-muted: oklch(0.9 0.01 100 / 0.75);

  /* Primary accent — mother-tree canopy green, brightened for contrast on the dark surface.
     --color-primary-active stays dark: it backs full slabs (nav overlay, CTA band, flip-card
     backs) that carry light on-dark text, and is used as dark text on near-white buttons. */
  --color-primary: #86b585;
  --color-primary-hover: #a2c9a0;
  --color-primary-active: #14180f;
  --color-primary-highlight: #333d2b;

  /* Warm secondary — sunlight through canopy (sparing use) */
  --color-amber: #cba362;
  --color-amber-hover: #ddbd85;
  --color-amber-highlight: #3a3020;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows tone-matched to warm surfaces */
  --shadow-sm: 0 1px 2px oklch(0.2 0.03 120 / 0.08);
  --shadow-md: 0 4px 16px oklch(0.2 0.03 120 / 0.14);
  --shadow-lg: 0 16px 40px oklch(0.15 0.03 120 / 0.28);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  --font-display: 'Quicksand', 'Century Gothic', 'Futura', sans-serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #21241b;
  --color-surface: #272b20;
  --color-surface-2: #2d3125;
  --color-surface-offset: #191c15;
  --color-surface-offset-2: #141610;
  --color-surface-dynamic: #343a2a;
  --color-divider: #343a2a;
  --color-border: #3d4432;

  --color-text: #e4e5d8;
  --color-text-muted: #9ba38c;
  --color-text-faint: #6b7360;
  --color-text-inverse: #14160f;

  --color-primary: #86b585;
  --color-primary-hover: #a2c9a0;
  --color-primary-active: #0f120c;
  --color-primary-highlight: #2c3524;

  --color-amber: #cba362;
  --color-amber-hover: #ddbd85;
  --color-amber-highlight: #362c1c;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.55);
}

/* Type scale */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6vw, 6.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ============================================================
   Layout primitives
   ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.wrap--narrow {
  max-width: var(--content-narrow);
}
.wrap--default {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 300;
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow::before {
  content: '';
  width: 1.4em;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* Heading-to-content rhythm — consistent across all pages */
h1 + .lede,
h2 + .lede,
h2 + p,
h3 + p {
  margin-top: var(--space-4);
}
p + p {
  margin-top: var(--space-4);
}
.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: 1px solid transparent;
  transition:
    background var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}
.btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(0);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-primary);
}
.btn--help {
  background: #fff;
  color: var(--color-bg);
  border-color: #fff;
  align-self: center;
  margin-top: var(--space-4);
}
.btn--help:hover {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}
.btn--on-dark {
  background: var(--color-text-inverse, #fff);
  color: var(--color-primary-active, #1a2b1f);
}
.btn--on-dark:hover {
  background: #ffffff;
}

/* ============================================================
   Header / hamburger nav
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  pointer-events: none;
}
.site-header__brand,
.site-header__controls {
  pointer-events: auto;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: 'Quicksand', var(--font-body), sans-serif;
  font-weight: 500;
  font-size: var(--text-base);
  letter-spacing: 0.05em;
  color: var(--color-on-dark);
  text-decoration: none;
  mix-blend-mode: normal;
}
.site-header[data-solid='true'] .site-header__brand {
  color: var(--color-text);
}
.site-header__mark {
  width: 4rem;
  height: 4rem;
}
.site-header__controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  color: var(--color-on-dark);
  background: oklch(0.98 0 0 / 0.14);
  backdrop-filter: blur(6px);
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive);
}
.site-header[data-solid='true'] .theme-toggle,
.site-header[data-solid='true'] .menu-toggle {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.theme-toggle:hover,
.menu-toggle:hover {
  background: oklch(0.98 0 0 / 0.26);
}
.site-header[data-solid='true'] .theme-toggle:hover,
.site-header[data-solid='true'] .menu-toggle:hover {
  background: var(--color-primary-highlight);
}
.menu-toggle svg,
.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--color-primary-active, #1a2b1f);
  color: var(--color-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition:
    opacity 300ms var(--ease-out),
    transform 300ms var(--ease-out),
    visibility 300ms;
}
[data-theme='dark'] .nav-overlay {
  background: #0b0f08;
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.nav-overlay__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-on-dark);
  border-radius: var(--radius-full);
  background: oklch(0.98 0 0 / 0.14);
}
.nav-overlay__close:hover {
  background: oklch(0.98 0 0 / 0.26);
}
.nav-overlay__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}
.nav-overlay__list a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw + 1.5rem, 4rem);
  color: var(--color-on-dark);
  text-decoration: none;
  opacity: 0.85;
  display: inline-block;
}
.nav-overlay__list a:hover,
.nav-overlay__list a[aria-current='page'] {
  opacity: 1;
  color: var(--color-amber, #cba362);
  transform: translateX(0.4rem);
}
.nav-overlay__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  font-size: var(--text-sm);
  color: oklch(0.95 0 0 / 0.7);
  max-width: 40rem;
}
.nav-overlay__meta a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: oklch(0.95 0 0 / 0.35);
}
.nav-overlay__meta a:hover {
  color: var(--color-on-dark);
}

/* ============================================================
   Homepage — rolling flip grid
   ============================================================ */

.flip-landing {
  position: relative;
  padding: 0;
}

.flip-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100dvh;
}

.flip-card {
  position: relative;
  overflow: hidden;
  perspective: 1600px;
  cursor: pointer;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(var(--flip-deg, 0deg));
  will-change: transform;
}
.flip-inner--snap {
  transition: transform 1100ms cubic-bezier(0.65, 0, 0.35, 1);
}
.flip-card.is-flipped .flip-inner--snap {
  --flip-deg: 180deg;
}
.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flip-face--front {
  inset: -1px;
  transform: rotateY(0deg);
  background-size: cover;
  background-position: center;
}
.flip-face--front.has-deckle {
  background-size: 116%;
}
.flip-face--front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0.1 0.03 130 / 0.7) 0%,
    oklch(0.1 0.03 130 / 0.15) 45%,
    oklch(0.1 0.03 130 / 0.35) 100%
  );
}
.flip-face--back {
  transform: rotateY(180deg);
  background: var(--color-primary-active, #1a2b1f);
  align-items: center;
  justify-content: center;
}
[data-theme='dark'] .flip-face--back {
  background: #0e130b;
}

.flip-face__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.flip-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: clamp(8.5rem, 15vw, 14rem);
  height: clamp(8.5rem, 15vw, 14rem);
  border-radius: 50%;
  pointer-events: none;
  filter: drop-shadow(0 8px 28px oklch(0.1 0 0 / 0.45));
}
.flip-center img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.flip-face__label {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--space-6);
  font-family: 'Quicksand', var(--font-body), sans-serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2.5rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
  color: #fdfbf3;
  pointer-events: none;
}

.flip-face__body {
  position: relative;
  z-index: 2;
  max-width: 30rem;
  padding: calc(var(--space-10) + 2.25rem) var(--space-10) calc(var(--space-10) + 1.5rem);
  text-align: left;
  color: oklch(0.97 0.01 100);
}
.flip-face__body .eyebrow {
  color: var(--color-amber, #cba362);
}
.flip-face__body h3 {
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2.25rem);
  color: #fdfbf3;
  margin-block: var(--space-3) var(--space-4);
}
.flip-face__body p {
  color: oklch(0.9 0.01 100);
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
}
.flip-face__body a.btn {
  background: oklch(0.97 0.01 100);
  color: var(--color-primary-active, #1a2b1f);
}
.flip-face__body a.btn:hover {
  background: #ffffff;
}

@media (max-width: 860px) {
  .flip-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: 88dvh;
    height: auto;
  }
  .flip-center {
    display: none;
  }
  .flip-face__label {
    padding: var(--space-6);
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }
  .flip-face__body {
    padding: var(--space-6) var(--space-6) calc(var(--space-6) + 1rem);
  }
}

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

/* ============================================================
   Interior page sections (about / services / contact)
   ============================================================ */

.page-hero {
  padding-top: clamp(7rem, 12vw, 10rem);
  padding-bottom: clamp(var(--space-12), 6vw, var(--space-20));
  background: var(--color-surface-offset);
  border-bottom: 1px solid var(--color-divider);
}
.page-hero h1 {
  font-size: var(--text-2xl);
  margin-top: var(--space-4);
  max-width: 22ch;
}
.page-hero .lede {
  margin-top: var(--space-4);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  align-items: stretch;
}
.split--reverse .split__media {
  order: 2;
}
.split__media {
  position: relative;
  min-height: clamp(20rem, 32vw, 30rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.split__media img,
.split__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.split__media-img--landscape {
  object-fit: contain !important;
}
.split__copy h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.split__copy p + p {
  margin-top: var(--space-4);
}
.split__copy p {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

@media (max-width: 860px) {
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__media {
    order: 0;
  }
  .split__media {
    min-height: 0;
  }
  .split__media img {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

.service-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(var(--space-6), 5vw, var(--space-16));
  padding-block: clamp(var(--space-10), 6vw, var(--space-16));
  border-top: 1px solid var(--color-divider);
  align-items: start;
}
.service-row:first-of-type {
  border-top: none;
}
.service-row__index {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
}
.service-row h3 {
  font-size: var(--text-xl);
  margin-block: var(--space-2) var(--space-4);
}
.service-row p {
  color: var(--color-text-muted);
}
.service-row ul {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.service-row li {
  padding-left: var(--space-5);
  position: relative;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.service-row li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
@media (max-width: 760px) {
  .service-row {
    grid-template-columns: 1fr;
  }
}

.quote-block {
  border-left: 2px solid var(--color-primary);
  padding-left: var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  max-width: 42rem;
}
.quote-block cite {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-text-muted);
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(var(--space-6), 4vw, var(--space-12));
}
.stat {
  flex: 1 1 0;
  min-width: 10rem;
  text-align: left;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.3;
}
.stat span {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
@media (max-width: 640px) {
  .stat-strip {
    flex-direction: column;
    gap: var(--space-6);
  }
  .stat {
    min-width: 0;
  }
}

.cta-band {
  background: var(--color-primary-active, #1a2b1f);
  color: var(--color-on-dark);
}
[data-theme='dark'] .cta-band {
  background: #0e130b;
}
.cta-band .wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-start;
}
/* Section heading sizes — consistent hierarchy */
h2 {
  font-size: var(--text-xl);
}
.cta-band h2 {
  color: var(--color-on-dark);
  font-size: var(--text-xl);
  max-width: 28ch;
}
.cta-band p {
  color: oklch(0.9 0.01 100);
  max-width: 40ch;
}
.cta-band .btn {
  background: #fdfbf3;
  color: #1a2b1f;
}
.cta-band .btn:hover {
  background: #ffffff;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
}
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.split__copy {
  min-width: 0;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-divider);
  flex-wrap: wrap;
}
.contact-line:first-child {
  border-top: none;
}
.contact-line svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-primary);
  flex-shrink: 0;
}
.contact-line a,
.contact-line span {
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-base);
  min-width: 0;
}
.contact-line--copy {
  gap: var(--space-3);
  flex-wrap: wrap;
}
.contact-line--copy .copy-btn {
  font-size: var(--text-sm);
}
.contact-line a:hover {
  color: var(--color-primary);
}
.copy-btn {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}
.copy-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-6);
  align-items: center;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  color: var(--color-text);
  text-decoration: none;
}
.site-footer__brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}
.site-footer nav {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.site-footer nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
}
.site-footer nav a:hover {
  color: var(--color-primary);
}
.site-footer small {
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  width: 100%;
  display: block;
  margin-top: var(--space-6);
}

/* Scroll reveal utility for interior pages — visible by default; JS opts
   individual elements into a pending/hidden state only when it can reliably
   reveal them via IntersectionObserver, so content is never stuck hidden. */
.reveal {
  opacity: 1;
  transform: none;
}
.reveal.reveal--pending {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

.back-to-home {
  position: fixed;
  top: clamp(5rem, 8vw, 6.5rem);
  right: var(--space-6);
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full, 999px);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  opacity: 0.85;
  transition: background 0.2s, border-color 0.2s, opacity 0.3s;
}
.back-to-home:hover {
  background: var(--color-surface-dynamic);
  border-color: var(--color-primary);
  opacity: 1;
}
.back-to-home svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

/* ============================================================
   Team grid
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-6), 4vw, var(--space-12));
  margin-top: var(--space-8);
  margin-bottom: var(--space-16);
}
.team-member {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.team-member__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  overflow: hidden;
}
.team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-member h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.team-member p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
}
@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}


/* ============================================================
   Clean Creatives watermark
   ============================================================ */

.clean-creatives-section {
  position: relative;
}
.clean-creatives-logo {
  width: clamp(8rem, 14vw, 11rem);
  height: auto;
  margin-bottom: var(--space-5);
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.clean-creatives-section .wrap {
  position: relative;
  z-index: 1;
}
.clean-creatives-section .lede {
  margin: 0 auto;
  max-width: 60%;
  text-align: center;
}
.clean-creatives-section .lede a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
@media (max-width: 760px) {
  .clean-creatives-logo {
    width: 7rem;
  }
  .clean-creatives-section .lede {
    max-width: 100%;
  }
}
