.ruben-work-page {
  --shell: min(1180px, calc(100vw - 96px));
  --section: clamp(96px, 9vw, 140px);
}

.ruben-work-page .site-header.scrolled,
.ruben-work-page .site-header.menu-open {
  background: color-mix(in srgb, var(--paper-bright) 94%, transparent);
}

.ruben-work-page .rd-site-menu {
  padding: calc(var(--header-h) + clamp(34px, 5vh, 58px)) 0 clamp(40px, 6vh, 68px);
  place-items: start center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ruben-work-page .rd-menu-grid {
  width: var(--shell);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vh, 40px);
  align-items: start;
}

.rd-menu-page-links {
  padding-bottom: clamp(28px, 4vh, 42px);
  border-bottom: 1px solid var(--line);
}

.rd-menu-page-links .menu-kicker {
  margin-bottom: 12px;
}

.rd-menu-page-links > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.rd-menu-page-links a {
  min-width: 0;
  min-height: 132px;
  padding: clamp(18px, 2.6vh, 27px) clamp(18px, 2.2vw, 30px) 20px 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 10px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.rd-menu-page-links a > span {
  padding-top: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.rd-menu-page-links a > strong {
  min-width: 0;
  font-family: var(--display);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.rd-menu-page-links a > small {
  grid-column: 2;
  align-self: end;
  max-width: 240px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.rd-menu-page-links a:hover > strong,
.rd-menu-page-links a:focus-visible > strong {
  color: var(--forest);
}

.rd-menu-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 7vw, 90px);
}

.rd-menu-column {
  min-width: 0;
}

.rd-menu-links {
  display: grid;
  border-top: 1px solid var(--line);
}

.rd-menu-links a {
  min-width: 0;
  padding: clamp(12px, 1.7vh, 17px) 0;
  display: grid;
  grid-template-columns: minmax(128px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.rd-menu-links strong {
  min-width: 0;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.rd-menu-links span {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.rd-menu-links a:hover strong,
.rd-menu-links a:focus-visible strong {
  color: var(--forest);
}

.rd-menu-utility {
  margin-top: 18px;
  display: inline-flex;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.ruben-work-page .hero-inner {
  padding-bottom: clamp(66px, 9vh, 104px);
}

.ruben-work-page .hero-copy {
  max-width: 820px;
}

.ruben-work-page .hero h1 {
  max-width: 900px;
  font-size: clamp(50px, 6.3vw, 86px);
  line-height: 1.01;
  text-wrap: balance;
}

.ruben-work-page .hero-lead {
  max-width: 680px;
  font-size: clamp(18px, 1.55vw, 22px);
}

.ruben-work-page .section-heading {
  max-width: 820px;
}

.ruben-work-page h2 {
  max-width: 860px;
  font-size: clamp(38px, 4.7vw, 64px);
  line-height: 1.08;
  text-wrap: balance;
}

/* The page-level h2 scale above must not leak into the compact footer labels. */
.ruben-work-page .footer-column h2 {
  max-width: none;
  margin: 0 0 8px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-wrap: initial;
}

.ruben-work-page .principle-grid article,
.ruben-work-page .audience-grid article {
  min-width: 0;
}

.ruben-work-page .footer-grid {
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.65fr));
}

.ruben-work-page .footer-brand,
.ruben-work-page .footer-column,
.ruben-work-page .footer-column a,
.ruben-work-page .footer-base span {
  min-width: 0;
}

.ruben-work-page .footer-column a,
.ruben-work-page .footer-base span {
  overflow-wrap: anywhere;
}

.theme-intimacy .hero-media img {
  object-position: center 58%;
}

.theme-intimacy .relationship-stage {
  min-height: clamp(600px, 70vw, 820px);
}

.theme-intimacy .relationship-copy > div {
  padding: clamp(36px, 5vw, 64px);
  background: color-mix(in srgb, var(--forest-deep) 72%, transparent);
  border-radius: 18px 66px 24px 42px / 28px 18px 54px 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.theme-intimacy .principle-grid article:nth-child(1) {
  border-radius: 22px 54px 26px 42px / 28px 20px 46px 24px;
}

.theme-intimacy .principle-grid article:nth-child(3) {
  border-radius: 26px 44px 22px 58px / 42px 24px 32px 20px;
}

.theme-intimacy .principle-grid,
.theme-intimacy .audience-grid {
  gap: 18px;
  background: transparent;
  border: 0;
}

/* Keep the dark audience section free of a square grid container; each card
   should read as its own softly irregular, organic panel. */
.theme-intimacy .section.dark .audience-grid {
  background: transparent;
  border: 0;
}

.theme-intimacy .principle-grid article,
.theme-intimacy .audience-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px 56px 22px 44px / 28px 18px 54px 22px;
}

.theme-intimacy .principle-grid article:nth-child(2),
.theme-intimacy .audience-grid article:nth-child(2) {
  border-radius: 52px 24px 42px 22px / 22px 36px 20px 48px;
}

.theme-intimacy .principle-grid article:nth-child(3),
.theme-intimacy .audience-grid article:nth-child(3) {
  border-radius: 20px 44px 18px 58px / 42px 20px 30px 18px;
}

.theme-intimacy .section.dark .audience-grid article {
  border-color: var(--white-line);
}

.theme-intimacy .image-organic {
  box-shadow: 0 18px 44px rgba(15, 28, 20, 0.1);
}

.theme-coaching .hero-media img {
  object-position: center 62%;
}

.theme-coaching .hero-shade {
  background:
    linear-gradient(90deg, rgba(23, 29, 21, 0.88) 0%, rgba(23, 29, 21, 0.63) 46%, rgba(23, 29, 21, 0.15) 78%),
    linear-gradient(0deg, rgba(23, 29, 21, 0.48), transparent 60%);
}

.theme-coaching .hero-copy {
  max-width: 900px;
}

.theme-coaching .path-section {
  background:
    radial-gradient(circle at 86% 14%, rgba(197, 127, 60, 0.12), transparent 32%),
    var(--paper);
}

.theme-coaching .path-section .prose {
  padding-top: clamp(8px, 2vw, 22px);
}

.theme-coaching .other-doorway {
  position: relative;
  overflow: hidden;
}

.theme-coaching .other-doorway::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -190px;
  width: 420px;
  height: 420px;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 44% 56% 68% 32% / 52% 38% 62% 48%;
  pointer-events: none;
}

.theme-coaching .other-doorway .reading {
  position: relative;
  z-index: 1;
}

html[lang="fr"] .ruben-work-page .hero h1,
html[lang="nl"] .ruben-work-page .hero h1 {
  font-size: clamp(46px, 5.9vw, 80px);
}

@media (max-width: 1024px) {
  .ruben-work-page {
    --shell: min(100% - 48px, 900px);
  }

  .rd-menu-page-links > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ruben-work-page .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }

  .theme-intimacy .relationship-copy > div {
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  .ruben-work-page {
    --shell: calc(100% - 36px);
    --section: 88px;
  }

  .ruben-work-page .rd-site-menu {
    padding-top: calc(var(--header-h) + 26px);
    padding-bottom: 42px;
  }

  .ruben-work-page .rd-menu-grid {
    gap: 30px;
  }

  .rd-menu-page-links {
    padding-bottom: 28px;
  }

  .rd-menu-page-links > div,
  .rd-menu-columns {
    grid-template-columns: 1fr;
  }

  .rd-menu-page-links a {
    min-height: 0;
    padding: 16px 0;
  }

  .rd-menu-page-links a > strong {
    font-size: clamp(22px, 7vw, 30px);
  }

  .rd-menu-page-links a > small {
    margin-top: 10px;
  }

  .rd-menu-columns {
    gap: 30px;
  }

  .rd-menu-links a {
    grid-template-columns: minmax(108px, 0.42fr) minmax(0, 0.58fr);
    gap: 14px;
  }

  .ruben-work-page .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ruben-work-page .hero {
    min-height: max(700px, 100svh);
  }

  .ruben-work-page .hero-inner {
    padding-top: calc(var(--header-h) + 92px);
    padding-bottom: 54px;
  }

  .ruben-work-page .hero h1,
  html[lang="fr"] .ruben-work-page .hero h1,
  html[lang="nl"] .ruben-work-page .hero h1 {
    max-width: 100%;
    font-size: clamp(39px, 12.2vw, 58px);
    line-height: 1.04;
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }

  .ruben-work-page h2 {
    font-size: clamp(34px, 10.2vw, 48px);
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }

  .theme-intimacy .relationship-stage {
    min-height: 720px;
    align-items: end;
  }

  .theme-intimacy .relationship-copy {
    padding-bottom: 28px;
  }

  .theme-intimacy .relationship-copy > div {
    padding: 28px 24px;
    border-radius: 14px 44px 18px 28px / 20px 14px 38px 18px;
  }

  .theme-coaching .hero-media img {
    object-position: 62% center;
  }
}

@media (max-width: 430px) {
  .ruben-work-page {
    --shell: calc(100% - 30px);
  }

  .ruben-work-page .brand-copy small {
    display: none;
  }

  .rd-menu-links a {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ruben-work-page .footer-grid {
    grid-template-columns: 1fr;
  }

  .ruben-work-page .hero-lead {
    font-size: 17px;
    line-height: 1.5;
  }
}

@media (max-width: 350px) {
  .ruben-work-page {
    --shell: calc(100% - 24px);
  }

  .ruben-work-page .brand-copy {
    display: none;
  }

  .ruben-work-page .ruben-lang-toggle button {
    min-width: 24px;
    padding-inline: 3px;
  }

  .ruben-work-page .menu-toggle {
    width: 40px;
    height: 40px;
  }
}
