:root {
  --accent: #14b8a6;
  --accent-2: #0d9488;
  --accent-soft: #5eead4;
  --accent-deep: #0f766e;
  --ink: #1b1b1e;
  --ink-2: #17110d;
  --muted: #6d6862;
  --paper: #f4f8f6;
  --paper-2: #e7f1ee;
  --paper-warm: #f7faf8;
  --white: #ffffff;
  --line: rgba(27, 27, 30, 0.12);
  --shadow: 0 22px 70px rgba(17, 16, 15, 0.12);
  --radius: 28px;
  --radius-lg: 44px;
  --container: 1180px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--accent);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

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

a,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

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

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
  overflow-wrap: break-word;
}

p:last-child {
  margin-bottom: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

h1,
h2 {
  text-wrap: balance;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 400;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 999px;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: max(1rem, env(safe-area-inset-top));
}

.page {
  background: var(--paper);
  min-height: 100vh;
}

.frame {
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--accent) 38%,
    #2dd4bf 52%,
    #99f6e4 68%,
    #e7f6f2 84%,
    #ffffff 100%
  );
  padding: 10px 10px 0;
}

body.home .stage-card--small {
  animation: stage-drift-tilt 9s ease-in-out infinite;
}

body.home .stage-card--large {
  animation: stage-drift 7.5s ease-in-out infinite reverse;
}

@keyframes stage-drift {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes stage-drift-tilt {
  0%,
  100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-7deg) translateY(-10px); }
}

body.home .pill-row {
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 4rem;
  border-top: 1px solid var(--line);
}

body.home .pill {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 1.5rem 1.65rem 0;
  transition: background 0.25s ease;
}

body.home .pill:nth-child(odd) { padding-right: 1.8rem; }
body.home .pill:nth-child(even) { padding-left: 1.8rem; border-left: 1px solid var(--line); }

body.home .pill-num { grid-row: 1 / 3; }
body.home .pill h3 { grid-column: 2; margin-top: 0; }
body.home .pill p { grid-column: 2; }

body.home .pill:hover { background: rgba(255, 255, 255, 0.55); }

body.home .pill-num {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

body.home .services {
  background: var(--white);
}

body.home .service-grid {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.15rem;
}

body.home .service-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  padding: 1.7rem 1.55rem 1.55rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, background 0.3s ease;
}

body.home .service-card .service-num {
  margin-bottom: 1.15rem;
}

body.home .service-card h3 {
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
  margin: 0 0 0.75rem;
}

body.home .service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

body.home .service-card ul {
  list-style: none;
  margin: 1.15rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

body.home .service-card li {
  position: relative;
  padding-left: 1rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

body.home .service-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.5rem;
}

body.home .service-more {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

body.home .service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  background: var(--white);
}

body.home .service-card:hover .service-more {
  color: var(--accent-2);
}

body.home .service-card:first-child,
body.home .service-card:last-child {
  padding: 1.7rem 1.55rem 1.55rem;
  border-right: 1px solid var(--line);
}

body.home .marquee {
  background: var(--ink-2);
  border-block: 0;
  padding: 1.35rem 0;
}

body.home .marquee span {
  color: #f6f1ea;
}

body.home .process {
  background: var(--paper);
}

body.home .process-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

body.home .process-card {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  gap: 0.35rem 1.5rem;
  align-items: start;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 1.85rem 0;
  box-shadow: none;
  min-height: 0;
  transition: background 0.25s ease;
}

body.home .process-card:hover {
  background: rgba(255, 255, 255, 0.6);
}

body.home .process-card h3,
body.home .process-card p,
body.home .process-card ul {
  grid-column: 2;
}

body.home .process-card h3 { margin-bottom: 0.15rem; }
body.home .process-card p { margin-bottom: 0.55rem; }

body.home .process-card ul {
  grid-row: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

body.home .process-card li {
  background: var(--white);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  padding-left: 0.75rem;
  margin: 0;
  font-size: 0.82rem;
}

body.home .process-card li::before { display: none; }

body.home .process-num {
  grid-column: 1;
  grid-row: 1 / 4;
  width: 3.2rem;
  height: 3.2rem;
  font-family: var(--display);
  font-size: 1rem;
  margin-bottom: 0;
}

body.home .work-grid {
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.25rem;
}

body.home .work-media {
  aspect-ratio: 16 / 10;
}

body.home .work-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

body.home .work-card:hover {
  transform: translateY(-6px);
}

body.home .why {
  background: var(--white);
}

body.home .why-grid {
  grid-template-columns: 1.15fr 1fr;
  gap: 1.1rem;
}

body.home .why-card {
  border: 1px solid var(--line);
  box-shadow: none;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

body.home .why-card:first-child {
  grid-row: span 2;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body.home .why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.45);
}

body.home .faq { overflow: visible; }

body.home .faq-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: visible;
  gap: 1.1rem;
  overscroll-behavior-x: auto;
  touch-action: auto;
}

body.home .faq-card {
  flex: none;
  min-height: 0;
  border: 1px solid var(--line);
  box-shadow: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

body.home .faq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17, 16, 15, 0.08);
}

body.home .faq-nav { display: none; }

body.home .audience-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

body.home .audience-grid > div {
  padding: 1.5rem 1.8rem 1.55rem 0;
  border-top: 1px solid var(--line);
}

body.home .audience-grid > div:nth-child(even) {
  padding-left: 1.8rem;
  border-left: 1px solid var(--line);
}

body.home .words {
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem 3.5rem;
}

body.home .words h3 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--accent);
}

body.home .insight-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem 1.2rem;
}

body.home .insight-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.35rem 1.6rem;
  align-items: center;
  padding: 0.4rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.4rem;
}

body.home .insight-card:first-child .insight-media {
  grid-column: 1;
  grid-row: 1 / 5;
  aspect-ratio: 16 / 9;
  margin-bottom: 0;
}

body.home .insight-card:first-child > *:not(.insight-media) {
  grid-column: 2;
}

body.home .value-visual img {
  transition: transform 0.7s ease;
}

body.home .value-visual:hover img {
  transform: scale(1.05);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal].reveal-kids > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].reveal-kids.is-in > * {
  opacity: 1;
  transform: none;
}

[data-reveal].reveal-kids.is-in > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal].reveal-kids.is-in > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal].reveal-kids.is-in > *:nth-child(4) { transition-delay: 0.24s; }
[data-reveal].reveal-kids.is-in > *:nth-child(5) { transition-delay: 0.32s; }
[data-reveal].reveal-kids.is-in > *:nth-child(6) { transition-delay: 0.4s; }

.sheet {
  background: var(--white);
  border-radius: 50px 50px 0 0;
  position: relative;
  overflow: hidden;
}

.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.muted {
  color: var(--muted);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0 0.4rem;
  position: relative;
  z-index: 90;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
}

.brand-mark svg,
.brand-mark img {
  width: 26px;
  height: 26px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav a {
  padding: 0.5rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent-deep);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 91;
  flex-shrink: 0;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, top 0.2s ease, background 0.2s ease;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }

.menu-btn.is-open span {
  background: transparent;
}

.menu-btn.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-btn.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (min-width: 981px) and (max-width: 1100px) {
  .nav {
    left: auto;
    right: 0;
    transform: none;
    gap: 0;
  }

  .nav a {
    padding-inline: 0.45rem;
    font-size: 0.8rem;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 6.5rem;
  min-height: 68vh;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: min(52rem, 92%);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.7rem, 8.4vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 13ch;
  overflow-wrap: break-word;
  hyphens: none;
}

.hero-title-mobile {
  display: none;
}

body.home .hero .kicker {
  display: none;
}

.hero-shape {
  display: none;
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 46%;
  width: min(68rem, 168%);
  height: 28rem;
  transform: translate(-50%, -50%) rotate(-7deg);
  border-radius: 48% 52% 46% 54% / 42% 48% 52% 58%;
  background:
    radial-gradient(ellipse at 32% 38%, rgba(20, 184, 166, 0.42) 0%, rgba(20, 184, 166, 0.16) 42%, rgba(20, 184, 166, 0) 72%),
    radial-gradient(ellipse at 72% 62%, rgba(13, 148, 136, 0.28) 0%, rgba(231, 246, 242, 0.7) 46%, rgba(244, 248, 246, 0) 74%);
  pointer-events: none;
}

.hero-copy .kicker,
.hero-copy h1 {
  position: relative;
  z-index: 1;
}

.hero-scroll {
  display: none;
}

@media (min-width: 981px) {
  body.home .frame {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  body.home .sheet {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  body.home .hero {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 0;
    padding: 4rem 0 6.5rem;
  }
  body.home .hero-copy {
    width: 100%;
    max-width: 54rem;
    margin-inline: auto;
    position: relative;
    z-index: 1;
  }
  body.home .hero .kicker {
    display: block;
    margin: 0 0 1.1rem;
  }
  body.home .hero-shape {
    display: block;
  }
  body.home .hero h1 {
    max-width: none;
    margin-inline: auto;
    text-align: center;
    font-size: clamp(2.7rem, 2.15vw + 1.4rem, 3.85rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    overflow-wrap: normal;
  }
  body.home .hero-scroll {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    bottom: 1.85rem;
    z-index: 4;
    width: 44px;
    height: 44px;
    transform: translateX(-50%);
    color: var(--ink);
    opacity: 0.55;
    transition: opacity 0.25s ease, color 0.25s ease;
  }
  body.home .hero-scroll:hover,
  body.home .hero-scroll:focus-visible {
    opacity: 1;
    color: var(--accent-deep);
  }
  body.home .hero-scroll.is-gone {
    opacity: 0;
    pointer-events: none;
  }
  .hero-scroll-mouse {
    width: 20px;
    height: 32px;
    border: 1.5px solid currentColor;
    border-radius: 11px;
    position: relative;
  }
  .hero-scroll-mouse::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 99px;
    background: currentColor;
    animation: scroll-nudge 1.7s ease-in-out infinite;
  }
}

@keyframes scroll-nudge {
  0%,
  100% { opacity: 1; transform: translateY(0); }
  55% { opacity: 0.2; transform: translateY(8px); }
}

.intro {
  background: linear-gradient(180deg, #e7f6f2 0%, var(--paper) 28%, var(--paper) 100%);
  padding: 5.5rem 0 2.5rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.intro h2 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.intro p {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ink-2);
  color: #fff;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn:hover {
  background: #000;
  transform: translateY(-1px);
}

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

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  padding: 0.95rem 0.2rem;
}

.btn-ghost:hover {
  background: transparent;
  color: var(--accent-deep);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.stage {
  position: relative;
  min-height: 420px;
}

.stage-card {
  position: absolute;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
  background: #111;
}

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

img[src*="vitrovan"] {
  object-position: center top;
}

.stage-card--small {
  width: 46%;
  height: 210px;
  border-radius: 28px;
  left: 0;
  top: 18px;
  transform: rotate(-7deg);
  z-index: 1;
}

.stage-card--large {
  width: 78%;
  height: 360px;
  border-radius: 36px;
  right: 0;
  top: 70px;
  z-index: 2;
}

.stage-badge {
  position: absolute;
  right: 18px;
  bottom: 16px;
  background: var(--ink-2);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
}

.pill {
  background: var(--white);
  border-radius: 24px;
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: 0 10px 30px rgba(17, 16, 15, 0.04);
}

.pill-num {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pill h3 {
  margin: 0.7rem 0 0.45rem;
  font-size: 1.02rem;
  line-height: 1.3;
}

.pill p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.section {
  padding: 5.5rem 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-head h2,
.page-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.accent {
  color: var(--accent);
}

.section-lead {
  max-width: 28rem;
  color: var(--muted);
  margin: 0;
}

.services {
  background: #f4f5f6;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.service-card {
  display: block;
  padding: 0 1.6rem 2.2rem;
  border-right: 1px solid var(--line);
}

.service-card:first-child { padding-left: 0; }
.service-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.service-num {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 0.7rem;
}

.service-media {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #111;
  margin-bottom: 1.35rem;
}

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

.service-card h3 {
  margin: 0 0 1.4rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.arrow {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--white);
  padding: 1.15rem 0;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee a,
.marquee span {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.process {
  background: #f3f4f5;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.process-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.process-card {
  background: var(--white);
  border-radius: 28px;
  padding: 1.6rem 1.45rem 1.7rem;
  min-height: 100%;
}

.process-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #d8f3ee;
  color: var(--accent-2);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.process-card h2,
.process-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

address {
  font-style: normal;
}

.process-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.process-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-card li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.process-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.55rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.work-card {
  display: block;
}

.work-media {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111;
  margin-bottom: 0.9rem;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.work-card:hover img {
  transform: scale(1.04);
}

.work-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.why {
  background: #eef3f3;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.why-card {
  background: var(--white);
  border-radius: 24px;
  padding: 1.5rem 1.4rem 1.6rem;
}

.why-card .kicker {
  margin-bottom: 0.7rem;
}

.why-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.why-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.split ul {
  margin: 1.2rem 0 1.6rem;
  padding: 0;
  list-style: none;
}

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

.split li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.55rem;
}

.split-media {
  border-radius: 32px;
  overflow: hidden;
  min-height: 360px;
  background: #111;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.faq {
  overflow: hidden;
}

.faq-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}

.faq-track::-webkit-scrollbar { display: none; }

.faq-card {
  flex: 0 0 min(78%, 340px);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 26px;
  padding: 1.5rem 1.4rem 1.3rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 28px rgba(17, 16, 15, 0.05);
}

.faq-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.faq-card .eyebrow {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.faq-card h3 {
  margin: 0 0 auto;
  font-size: 1.15rem;
  line-height: 1.35;
}

.faq-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.8rem 0 1rem;
}

.faq-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.faq-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.dots {
  display: flex;
  gap: 0.4rem;
  margin-left: 0.4rem;
}

.dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #cfd6d4;
  padding: 0;
  cursor: pointer;
}

.dots button.is-active {
  background: var(--ink);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2.5rem;
  margin-top: 2rem;
}

.audience-grid h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.audience-grid p {
  margin: 0;
  color: var(--muted);
}

.values {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
}

.value-list {
  display: grid;
  gap: 1.4rem;
}

.value-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.8rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}

.value-item:last-child { border: 0; }

.value-item span {
  color: var(--accent);
  font-weight: 800;
}

.value-visual {
  border-radius: 28px;
  overflow: hidden;
  min-height: 280px;
  background: #111;
}

.value-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.words {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.words h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 500;
}

.words p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.insights {
  background: var(--white);
  border-radius: 0 0 50px 50px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.insight-card {
  display: block;
}

.insight-media {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #ececec;
  margin-bottom: 0.9rem;
}

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

.insight-card .kicker {
  margin-bottom: 0.35rem;
}

.insight-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.read-more {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.mini-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.mini-card {
  background: var(--paper);
  border-radius: 22px;
  padding: 1.2rem 1.2rem 1.3rem;
}

.mini-card .kicker { margin-bottom: 0.45rem; }
.mini-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}
.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  background: #11100f;
  color: #f4efe8;
  padding: 5rem 0 1.5rem;
}

.footer-cta {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: end;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta .kicker {
  color: var(--accent);
}

.footer-cta h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #f6f1ea;
}

.footer-cta p {
  color: rgba(246, 241, 234, 0.62);
  max-width: 28rem;
}

.contact-pills {
  display: grid;
  gap: 0.7rem;
}

.contact-pills a,
.contact-pills .pill-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  color: #f6f1ea;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.6rem 0 2rem;
}

.footer-grid h3 {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
}

.footer-grid address {
  color: rgba(246, 241, 234, 0.62);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 0.8rem;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: rgba(246, 241, 234, 0.62);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.footer-grid a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
  color: rgba(246, 241, 234, 0.45);
  font-size: 0.85rem;
}

.footer-bottom a:hover { color: #fff; }

.to-top {
  position: fixed;
  right: max(1.1rem, env(safe-area-inset-right));
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 40;
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.cookie {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 50;
  width: min(calc(100% - 2rem), 520px);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(17, 16, 15, 0.16);
  padding: 1.15rem 1.2rem;
  display: none;
}

.cookie.is-visible { display: block; }

.cookie h2 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.cookie p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.cookie a { color: var(--accent-deep); }

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.cookie-actions button {
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-actions .ghost {
  background: #fff;
  border: 1px solid var(--line);
}

.cookie-actions .solid {
  background: var(--ink);
  color: #fff;
  border: 0;
}

.crumbs {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.crumbs a {
  color: inherit;
}

.crumbs a:hover {
  color: var(--accent-2);
}

.map-frame {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 16px;
  margin-top: 0.85rem;
}

.page-hero {
  padding: 3.5rem 0 2.5rem;
}

.page-hero p {
  max-width: 38rem;
  color: var(--muted);
  margin-top: 1rem;
}

.prose {
  max-width: 42rem;
  color: var(--muted);
}

.prose h2 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 2rem 0 0.7rem;
}

.prose h3 {
  color: var(--ink);
  font-size: 1.05rem;
  margin: 1.35rem 0 0.45rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li { margin-bottom: 0.4rem; }

.prose a { color: var(--accent-deep); text-decoration: underline; }

.prose a.btn,
.prose a.btn-ghost,
.prose a.btn-outline,
.prose a.btn-accent {
  color: inherit;
  text-decoration: none;
}

.prose a.btn,
.prose a.btn-accent {
  color: #fff;
}

.prose code {
  font-size: 0.86em;
  background: var(--paper-2);
  padding: 0.12em 0.38em;
  border-radius: 6px;
}

.table-wrap {
  overflow-x: auto;
  margin: 0.8rem 0 1.4rem;
  -webkit-overflow-scrolling: touch;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 28rem;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.7rem 0.6rem 0;
}

.prose th {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cookie-prefs {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem 1.3rem 1.35rem;
  margin: 1.2rem 0 1.6rem;
  box-shadow: 0 10px 30px rgba(17, 16, 15, 0.04);
}

.cookie-prefs p { margin: 0 0 1rem; }

.cookie-prefs .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.form {
  display: grid;
  gap: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

label {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  max-width: 100%;
}

textarea { min-height: 140px; resize: vertical; }

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.9rem;
}

.check input { width: auto; margin-top: 0.2rem; }

.form-card,
.info-card {
  background: var(--white);
  border-radius: 28px;
  padding: 1.6rem;
  box-shadow: 0 10px 30px rgba(17, 16, 15, 0.04);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.2rem;
  padding-bottom: 4rem;
}

.alert {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fde8e8;
  color: #9b1c1c;
  font-size: 0.9rem;
}

.alert.is-visible { display: block; }

.success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.success.is-visible { display: block; }

/* Contact: bedankscherm met animatie */
#formSuccess {
  position: relative;
  overflow: hidden;
  padding: 3rem 1rem 2.5rem;
}

#formSuccess.is-visible {
  animation: success-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#formSuccess h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
}

#formSuccess > .muted {
  max-width: 30rem;
  margin: 0 auto;
}

.success-kicker {
  margin-bottom: 0.7rem;
}

.success-icon {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  background: #e7f6f2;
}

.success-icon::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
}

.success-icon svg {
  width: 56px;
  height: 56px;
  overflow: visible;
}

.success-ring,
.success-check {
  fill: none;
}

.success-ring {
  stroke-dasharray: 183;
  stroke-dashoffset: 183;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.success-check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.success-burst {
  position: absolute;
  left: 50%;
  top: 4.2rem;
  width: 0;
  height: 0;
  pointer-events: none;
}

.success-burst i {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  --tx: 0px;
  --ty: 0px;
  --rot: 0deg;
}

.success-burst i:nth-child(1)  { --tx: -118px; --ty: -52px; --rot: 200deg; }
.success-burst i:nth-child(2)  { --tx: -96px;  --ty: 26px;  --rot: -160deg; background: var(--ink-2); }
.success-burst i:nth-child(3)  { --tx: -70px;  --ty: -96px; --rot: 120deg; border-radius: 50%; }
.success-burst i:nth-child(4)  { --tx: -38px;  --ty: 70px;  --rot: 90deg;  background: #f59e0b; }
.success-burst i:nth-child(5)  { --tx: -18px;  --ty: -128px; --rot: -220deg; background: var(--accent-2); }
.success-burst i:nth-child(6)  { --tx: 22px;   --ty: 84px;  --rot: 160deg; border-radius: 50%; background: #f59e0b; }
.success-burst i:nth-child(7)  { --tx: 44px;   --ty: -110px; --rot: -90deg; background: var(--ink-2); }
.success-burst i:nth-child(8)  { --tx: 78px;   --ty: 40px;  --rot: 240deg; }
.success-burst i:nth-child(9)  { --tx: 104px;  --ty: -70px; --rot: -130deg; border-radius: 50%; background: var(--accent-2); }
.success-burst i:nth-child(10) { --tx: 126px;  --ty: 10px;  --rot: 60deg;  background: #f59e0b; }
.success-burst i:nth-child(11) { --tx: -132px; --ty: -10px; --rot: -60deg; border-radius: 50%; }
.success-burst i:nth-child(12) { --tx: 60px;   --ty: -30px; --rot: 300deg; background: var(--ink-2); }

.is-visible .success-icon {
  animation: success-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.is-visible .success-icon::before {
  animation: success-ripple 1.1s ease-out 0.55s both;
}

.is-visible .success-ring {
  animation: success-draw 0.7s ease-out 0.25s forwards;
}

.is-visible .success-check {
  animation: success-draw 0.45s cubic-bezier(0.65, 0, 0.45, 1) 0.75s forwards;
}

.is-visible .success-burst i {
  animation: success-confetti 1.25s cubic-bezier(0.16, 0.84, 0.44, 1) 0.8s both;
}

.is-visible .success-kicker,
.is-visible h2,
.is-visible > .muted,
.is-visible .success-actions {
  animation: success-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.is-visible .success-kicker { animation-delay: 0.7s; }
.is-visible h2 { animation-delay: 0.8s; }
.is-visible > .muted { animation-delay: 0.9s; }
.is-visible .success-actions { animation-delay: 1.05s; }

@keyframes success-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes success-pop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes success-ripple {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes success-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes success-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes success-confetti {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.6); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(1); }
}

body.referral-page {
  background: var(--paper);
}

.referral-header {
  padding-bottom: 1.2rem;
}

.referral-reward {
  display: grid;
  gap: 0.15rem;
  margin: 0 0 1.1rem;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
}

.referral-reward strong {
  font-size: 1.1rem;
  line-height: 1.25;
}

.referral-reward span {
  font-size: 0.82rem;
  opacity: 0.9;
}

.referral-steps {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.referral-steps li {
  position: relative;
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding-left: 2.4rem;
  counter-increment: step;
}

.referral-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.14);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 800;
}

.referral-steps strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.referral-main {
  background: var(--paper);
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.referral-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
  gap: 1.2rem;
  align-items: start;
}

.referral-form-card {
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  box-shadow: 0 24px 60px -36px rgba(15, 23, 42, 0.35);
}

.referral-form-title {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.referral-form-intro {
  max-width: 40rem;
  margin: 0;
}

.referral-page .form {
  gap: 1.35rem;
  margin-top: 1.6rem;
}

.referral-page .form-row {
  gap: 0.95rem 1rem;
}

.referral-page label {
  color: var(--ink);
  font-weight: 600;
}

.referral-page input,
.referral-page select,
.referral-page textarea {
  min-height: 50px;
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.referral-page select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230f172a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.referral-page textarea {
  min-height: 120px;
}

.referral-page input:focus,
.referral-page select:focus,
.referral-page textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18);
}

.referral-page input:user-invalid,
.referral-page select:user-invalid,
.referral-page textarea:user-invalid {
  border-color: #dc2626;
}

.referral-page input:user-invalid:focus,
.referral-page select:user-invalid:focus,
.referral-page textarea:user-invalid:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
}

.field-hint {
  margin: -0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.referral-page .check {
  gap: 0.8rem;
  align-items: flex-start;
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.5;
  cursor: pointer;
}

.referral-page .check input {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin: 0.12rem 0 0;
  accent-color: var(--accent);
}

.referral-checks {
  display: grid;
  gap: 0.85rem;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}

.referral-submit {
  justify-content: center;
  min-height: 54px;
  width: 100%;
}

.referral-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.referral-page .alert,
.referral-page .success {
  outline: none;
  scroll-margin-top: 1.5rem;
}

.referral-page .alert.is-visible {
  margin-top: 1.2rem;
}

.referral-page fieldset {
  display: grid;
  gap: 1rem;
  min-width: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 1.3rem 0 0;
}

.referral-page legend {
  float: left;
  width: 100%;
  margin-bottom: 0.1rem;
  padding: 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.referral-page legend + * {
  clear: both;
}

.referral-page .check a,
.referral-side a,
.referral-footer a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.referral-side {
  display: grid;
  gap: 1rem;
}

.referral-side .info-card {
  scroll-margin-top: 1.5rem;
}

.referral-side h2 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.1;
}

.referral-side p,
.referral-side li {
  color: var(--muted);
  font-size: 0.9rem;
}

.referral-side ul {
  margin: 0.8rem 0 1rem;
  padding-left: 1.1rem;
}

.referral-side li {
  margin-bottom: 0.55rem;
}

.referral-footer {
  background: #11100f;
  color: rgba(246, 241, 234, 0.68);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.referral-footer strong {
  color: #f6f1ea;
}

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

.referral-footer a {
  color: #f6f1ea;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(17, 16, 15, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: #fff;
  padding: calc(1.1rem + env(safe-area-inset-top)) 1.2rem calc(2rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-nav.is-open .mobile-panel {
  transform: translateX(0);
}

.mobile-panel a {
  padding: 0.95rem 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.mobile-close {
  align-self: flex-end;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .frame {
    padding-top: 0;
  }
  .sheet {
    overflow: visible;
    padding-top: calc(3.65rem + env(safe-area-inset-top));
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  .site-header,
  .site-header.container {
    position: fixed;
    top: 0;
    left: 50%;
    right: auto;
    width: 100vw;
    max-width: 100vw;
    margin: 0 0 0 -50vw;
    z-index: 90;
    min-height: 3.65rem;
    padding: max(0.7rem, env(safe-area-inset-top)) max(1.15rem, env(safe-area-inset-right)) 0.7rem max(1.15rem, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(1.2) blur(16px);
    -webkit-backdrop-filter: saturate(1.2) blur(16px);
    transform: translateY(0);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    border-bottom: 1px solid transparent;
    border-radius: 0;
  }
  .site-header.is-compact {
    box-shadow: 0 10px 28px rgba(17, 16, 15, 0.08);
    border-bottom-color: var(--line);
    border-radius: 0;
  }
  .site-header.is-hidden {
    transform: translateY(calc(-100% - 8px));
  }
  body.nav-open .site-header {
    transform: translateY(0);
  }
  .intro-grid,
  .split,
  .values,
  .footer-cta,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .pill-row,
  .service-grid,
  .process-grid,
  .work-grid,
  .why-grid,
  .insight-grid,
  .words,
  .mini-insights,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-grid--three .process-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .service-card {
    border-right: 0;
    padding: 0 0 2rem;
  }
  body.home .work-grid,
  body.home .why-grid,
  body.home .insight-grid,
  body.home .faq-track,
  body.home .words {
    grid-template-columns: 1fr 1fr;
  }
  body.home .service-grid {
    grid-template-columns: 1fr;
  }
  body.home .why-card:first-child,
  body.home .insight-card:first-child {
    grid-column: auto;
    grid-row: auto;
  }
  body.home .service-card {
    padding: 1.45rem 1.3rem 1.35rem;
    border: 1px solid var(--line);
  }
  body.home .service-card:first-child,
  body.home .service-card:last-child {
    padding: 1.45rem 1.3rem 1.35rem;
  }
  body.home .insight-card:first-child {
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
  }
  body.home .process-card {
    grid-template-columns: 3.4rem 1fr;
  }
  body.home .process-card h3,
  body.home .process-card p,
  body.home .process-card ul {
    grid-column: 2;
  }
  body.home .process-card ul {
    grid-row: auto;
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }
  body.home .pill:nth-child(even),
  body.home .audience-grid > div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
  .hero {
    padding: 1.6rem 0 3.2rem;
    min-height: auto;
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(2.2rem, 6.4vw, 3.4rem);
    line-height: 1.02;
  }
  .stage {
    min-height: 0;
    aspect-ratio: 16 / 11;
    overflow: hidden;
  }
  .stage-card--small { display: none; }
  .stage-card--large {
    position: relative;
    width: 100%;
    height: 100%;
    top: auto;
    right: auto;
    border-radius: 24px;
    border-width: 0;
  }
}

@media (max-width: 700px) {
  .frame {
    padding: 0 6px 0;
    padding-top: 0;
    padding-left: max(6px, env(safe-area-inset-left));
    padding-right: max(6px, env(safe-area-inset-right));
  }
  .sheet,
  .insights { border-radius: 22px 22px 0 0; }
  .sheet {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  .insights { border-radius: 0 0 22px 22px; }
  .container { width: min(calc(100% - 1.35rem), var(--container)); }
  .site-header,
  .site-header.container {
    left: 50%;
    right: auto;
    width: 100vw;
    max-width: 100vw;
    margin: 0 0 0 -50vw;
    padding: max(0.65rem, env(safe-area-inset-top)) max(0.95rem, env(safe-area-inset-right)) 0.65rem max(0.95rem, env(safe-area-inset-left));
    gap: 0.75rem;
    border-radius: 0;
  }
  .brand { font-size: 0.68rem; letter-spacing: 0.08em; gap: 0.5rem; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark svg,
  .brand-mark img { width: 22px; height: 22px; }

  .hero { padding: 1.1rem 0 2.4rem; }
  .hero-copy { max-width: 100%; }
  .hero h1 {
    max-width: none;
    font-size: clamp(2.05rem, 10.4vw, 2.85rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
  }
  .hero-title-desktop { display: none; }
  .hero-title-mobile { display: inline; }

  .intro { padding: 2.6rem 0 1.6rem; }
  .intro h2 {
    font-size: clamp(1.85rem, 8.4vw, 2.5rem);
    line-height: 1.08;
  }
  .intro p { font-size: 1rem; margin-bottom: 1.3rem; }

  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }
  .btn,
  .btn-ghost,
  .btn-outline {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .stage {
    min-height: 0;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    margin-top: 0.5rem;
  }
  body.home .stage { display: none; }
  .stage-card--small { display: none; }
  .stage-card--large {
    position: relative;
    width: 100%;
    height: 100%;
    top: auto;
    right: auto;
    border-radius: 20px;
    border-width: 0;
  }

  body.home .pill:nth-child(odd) { padding-right: 0; }
  body.home .pill-row,
  body.home .service-grid,
  body.home .work-grid,
  body.home .why-grid,
  body.home .insight-grid,
  body.home .words,
  body.home .audience-grid,
  body.home .faq-track {
    grid-template-columns: 1fr;
  }
  .form-row,
  .pill-row,
  .service-grid,
  .process-grid,
  .work-grid,
  .why-grid,
  .insight-grid,
  .words,
  .mini-insights,
  .footer-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .pill-row { margin-top: 1.6rem; }
  .section { padding: 3rem 0; }
  .section-head h2,
  .page-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    line-height: 1.06;
    overflow-wrap: break-word;
  }
  .page-hero { padding: 1.8rem 0 1.4rem; }
  .service-card h3 { font-size: 1.45rem; }
  .faq-card { flex-basis: min(86%, 320px); }
  .icon-btn,
  .dots button {
    min-width: 44px;
    min-height: 44px;
  }
  .dots button {
    background: transparent;
    position: relative;
  }
  .dots button::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cfd6d4;
    position: absolute;
    inset: 0;
    margin: auto;
  }
  .dots button.is-active { background: transparent; }
  .dots button.is-active::after { background: var(--ink); }
  .check { font-size: 0.95rem; }
  .marquee { padding: 0.85rem 0; }
  .marquee a,
  .marquee span { font-size: 1.2rem; }
  .split-media,
  .split-media img,
  .value-visual,
  .value-visual img {
    min-height: 220px;
  }
  .footer-cta h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
    overflow-wrap: break-word;
  }
  .site-footer { padding: 3.2rem 0 5.5rem; }
  .cookie {
    left: 0.7rem;
    right: 0.7rem;
    bottom: max(0.7rem, env(safe-area-inset-bottom));
    width: auto;
    padding: 1rem;
  }
  .cookie-actions {
    flex-direction: column-reverse;
  }
  .cookie-actions button {
    width: 100%;
    min-height: 44px;
  }
  .to-top {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
  }
  body:has(.cookie.is-visible) .to-top {
    bottom: 7.5rem;
  }
}

@media (max-width: 980px) {
  .referral-page .alert,
  .referral-page .success,
  .referral-side .info-card {
    scroll-margin-top: calc(4.6rem + env(safe-area-inset-top));
  }

  .referral-layout {
    grid-template-columns: 1fr;
  }

  .referral-side {
    grid-template-columns: 1fr 1fr;
  }

}

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

  .referral-main .container,
  .referral-footer .container {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }

  .referral-main {
    padding-top: 0.85rem;
    padding-bottom: 2rem;
  }

  .referral-page .form-card,
  .referral-page .info-card {
    border-radius: 22px;
    padding: 1.35rem 1.15rem;
  }

  .referral-form-card {
    box-shadow: 0 18px 40px -30px rgba(15, 23, 42, 0.35);
  }

  .referral-form-title {
    font-size: clamp(2rem, 9.5vw, 2.5rem);
    line-height: 1.04;
  }

  .referral-form-intro {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .referral-page .form {
    gap: 1.2rem;
    margin-top: 1.3rem;
  }

  .referral-page fieldset {
    gap: 0.9rem;
    padding-top: 1.1rem;
  }

  .referral-page label {
    font-size: 0.9rem;
  }

  .referral-page input,
  .referral-page select,
  .referral-page textarea {
    min-height: 52px;
  }

  .referral-page .check {
    padding: 0.15rem 0;
  }

  .referral-checks {
    padding-top: 1.1rem;
  }

  .referral-footer {
    padding: 1.8rem 0 calc(1.8rem + env(safe-area-inset-bottom));
    text-align: left;
  }

  .referral-footer p {
    overflow-wrap: anywhere;
  }
}

@media (hover: none) {
  .btn:hover { transform: none; }
}

@media print {
  .site-header,
  .menu-btn,
  .mobile-nav,
  .cookie,
  .to-top,
  .skip-link {
    display: none !important;
  }
  body,
  .page,
  .frame,
  .sheet {
    background: #fff !important;
    color: #111;
  }
  a[href]::after {
    content: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track,
  .mobile-nav,
  .mobile-panel,
  .to-top,
  .site-header,
  body.home .stage-card--small,
  body.home .stage-card--large,
  .hero-scroll-mouse::after {
    transition: none !important;
    animation: none !important;
  }
  [data-reveal],
  [data-reveal].reveal-kids > * {
    opacity: 1 !important;
    transform: none !important;
  }
  #formSuccess.is-visible,
  .is-visible .success-icon,
  .is-visible .success-kicker,
  .is-visible h2,
  .is-visible > .muted,
  .is-visible .success-actions {
    animation: none !important;
  }
  .is-visible .success-icon::before,
  .is-visible .success-burst i {
    animation: none !important;
    opacity: 0;
  }
  .is-visible .success-ring,
  .is-visible .success-check {
    animation: none !important;
    stroke-dashoffset: 0;
  }
}
