/* Flow Inside — homepage Soft Grove */

/* Decorative soft orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orb--mist {
  background: var(--mist);
  width: min(48vw, 28rem);
  height: min(48vw, 28rem);
  opacity: 0.9;
}

.orb--leaf {
  background: color-mix(in srgb, var(--leaf) 18%, transparent);
  width: min(36vw, 20rem);
  height: min(36vw, 20rem);
}

/* Orbs live between sections so they can overlap freely */
.home-main {
  position: relative;
  overflow-x: clip;
}

.orb-anchor {
  position: relative;
  height: 0;
  z-index: 0;
  pointer-events: none;
}

.orb-anchor .orb {
  position: absolute;
  will-change: transform;
}

.orb-anchor__story {
  top: -2rem;
  left: -10%;
  width: min(42vw, 22rem);
  height: min(42vw, 22rem);
  opacity: 0.7;
}

.orb-anchor__care {
  top: 10rem;
  left: -14%;
  width: min(40vw, 20rem);
  height: min(40vw, 20rem);
  opacity: 0.55;
}

.orb-anchor__work {
  top: -17rem;
  right: -10%;
  left: auto;
  width: min(40vw, 20rem);
  height: min(40vw, 20rem);
  opacity: 0.65;
}

.hero,
.story,
.disciplines,
.care,
.people,
.workshops,
.practical {
  overflow: visible;
}

.hero > .wrap,
.story > .wrap,
.disciplines > .wrap,
.care > .wrap,
.people > .wrap,
.workshops > .wrap,
.practical > .wrap {
  position: relative;
  z-index: 1;
}

/* ——— HERO (source of truth — keep intact) ——— */
.hero {
  position: relative;
  padding: var(--s-4) 0 var(--s-6);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-5);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2rem, 5vw, 4rem);
    min-height: min(78vh, 640px);
  }
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: var(--text-2xl);
  margin: 0 0 var(--s-4);
  max-width: 10ch;
  color: var(--ink);
}

.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--leaf);
}

.hero__text {
  font-size: var(--text-md);
  color: var(--ink-soft);
  max-width: 28rem;
  margin: 0 0 var(--s-5);
  line-height: 1.58;
}

.hero__visual {
  position: relative;
  z-index: 1;
}

.hero__visual .orb--mist {
  top: -12%;
  right: -18%;
}

.hero__visual .orb--leaf {
  bottom: -8%;
  left: -12%;
}

.hero__main-pic {
  position: relative;
  z-index: 1;
  border-radius: 48% 52% 42% 58% / 42% 38% 62% 58%;
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 32rem;
  margin-inline: auto;
  box-shadow: var(--shadow-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__main-pic {
    animation: soft-drift 18s ease-in-out infinite;
  }
}

@keyframes soft-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(1.25%, -1.1%); }
}

.hero__main-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero__float {
  position: absolute;
  z-index: 2;
  width: min(38%, 9.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--paper);
  box-shadow: var(--shadow-float);
  bottom: 6%;
  left: -2%;
}

.hero__float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

@media (max-width: 640px) {
  .hero {
    padding-bottom: var(--s-5);
  }

  .hero__float {
    width: 28%;
    left: 4%;
    bottom: 4%;
    border-width: 3px;
  }

  .hero__main-pic {
    max-width: 22rem;
  }
}

/* ——— STORY ——— */
.story {
  position: relative;
  padding: var(--s-5) 0 var(--s-7);
}

.story__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-5);
  align-items: center;
}

@media (min-width: 900px) {
  .story__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4.5rem);
  }
}

.story__visual {
  position: relative;
  max-width: 26rem;
  margin-inline: auto;
}

@media (max-width: 899px) {
  .story__visual {
    display: none;
  }
}

@media (min-width: 900px) {
  .story__visual {
    max-width: 28rem;
    margin-inline: 0;
  }
}

.story__main {
  aspect-ratio: 1;
  width: 100%;
}

.story__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.story__copy h2 {
  margin-bottom: var(--s-4);
  max-width: 15ch;
}

.story__copy p {
  color: var(--ink-soft);
  max-width: 32rem;
  line-height: 1.68;
}

.story__copy p + p {
  margin-top: 0.85rem;
}

/* ——— DISCIPLINES ———
   Editorial index: title + photo composition + open typographic list.
   No card/blob container — same language as story / workshops. */
.disciplines {
  position: relative;
  padding: var(--s-6) 0 var(--s-7);
}

.disciplines__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-5);
  align-items: start;
}

@media (min-width: 900px) {
  .disciplines__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas:
      "intro ."
      "index visual";
    column-gap: clamp(2.5rem, 6vw, 5rem);
    row-gap: var(--s-4);
    align-items: start;
  }

  .disciplines__intro { grid-area: intro; }
  .disciplines__index { grid-area: index; }
  .disciplines__visual {
    grid-area: visual;
    align-self: start;
    /* Omhoog in de ruimte tussen "onder één dak" en "Kinesitherapie" */
    margin-top: calc(var(--s-4) * -1 - 0.35rem);
  }
}

.disciplines__intro h2 {
  margin-bottom: 0;
  max-width: 12ch;
  line-height: 1.14;
}

.disciplines__visual {
  position: relative;
  max-width: 22rem;
  margin-inline: auto;
  width: 100%;
}

@media (min-width: 900px) {
  .disciplines__visual {
    max-width: 26rem;
    margin-inline: 0 0 auto;
  }
}

.disciplines__pic {
  aspect-ratio: 1;
  width: 100%;
}

.disciplines__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

/* Open typographic index — hairlines like workshops, rhythm like Soft Grove */
.dex {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.dex__item {
  display: flex;
  align-items: baseline;
  align-self: stretch;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.dex__item:first-child {
  border-top: 1px solid var(--line);
}

.dex__item::after {
  content: "→";
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--leaf);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.dex__item:hover {
  color: var(--leaf-deep);
  transform: translateX(5px);
}

.dex__item:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.dex__item:focus-visible {
  border-radius: 0.35rem;
  outline-offset: 4px;
}

.dex__item:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
  .dex__item.is-in::after {
    animation: dex-arrow-in 1.15s var(--ease) both;
  }
}

@keyframes dex-arrow-in {
  0% { opacity: 0; transform: translateX(-6px); }
  40% { opacity: 0.9; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .dex__item:hover { transform: none; }
  .dex__item::after {
    transform: none;
    transition: opacity var(--dur) var(--ease);
  }
  .dex__item:hover::after,
  .dex__item:focus-visible::after { transform: none; }
}

.dex__name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.2;
}

.dex__item:nth-child(1) .dex__name { font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
.dex__item:nth-child(2) .dex__name {
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-style: italic;
  font-weight: 500;
  color: var(--leaf-deep);
}
.dex__item:nth-child(3) .dex__name { font-size: clamp(1.45rem, 2.55vw, 2.05rem); }
.dex__item:nth-child(4) .dex__name {
  font-size: clamp(1.3rem, 2.15vw, 1.75rem);
  font-style: italic;
  font-weight: 500;
}
.dex__item:nth-child(5) .dex__name { font-size: clamp(1.4rem, 2.4vw, 1.95rem); }

.dex__item:nth-child(2) { padding-left: 1.15rem; }
.dex__item:nth-child(4) { padding-left: 1.65rem; }
.dex__item:nth-child(5) { padding-left: 0.5rem; }

.dex__item--soft:hover .dex__name { color: var(--leaf); }

.disciplines__index {
  max-width: 32rem;
}

.disciplines__cta {
  margin: 0;
  padding-top: 1.25rem;
}

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

  .disciplines__visual {
    max-width: 17.5rem;
    margin-inline: 0 auto 0 0;
  }

  .disciplines__index {
    max-width: none;
  }

  .dex__item:nth-child(2),
  .dex__item:nth-child(4),
  .dex__item:nth-child(5) {
    padding-left: 0.55rem;
  }
}

@media (max-width: 640px) {
  .disciplines {
    padding: var(--s-5) 0 var(--s-6);
  }

  .disciplines__visual {
    max-width: 15.5rem;
  }

  .dex__item {
    padding: 0.95rem 0;
  }
}

/* ——— CARE FLOW ——— */
.care {
  position: relative;
  padding: var(--s-7) 0;
}

.care__intro {
  max-width: 30rem;
  margin-bottom: var(--s-6);
}

.care__intro h2 {
  margin-bottom: 0;
}

.care-block {
  display: grid;
  gap: var(--s-4);
  margin-bottom: clamp(2.75rem, 6.5vw, 4.5rem);
  align-items: center;
}

.care-block:last-of-type {
  margin-bottom: 0;
}

@media (min-width: 880px) {
  .care-block {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
  }

  .care-block--flip .care-block__visual { order: 2; }
  .care-block--flip .care-block__copy { order: 1; }
}

.care-block__visual {
  position: relative;
  max-width: 24rem;
  margin-inline: auto;
}

.care-block__orb {
  top: -12%;
  left: -18%;
  z-index: 0;
  width: min(70%, 14rem);
  height: min(70%, 14rem);
  opacity: 0.75;
}

.care-block__pic {
  position: relative;
  z-index: 1;
}

@media (min-width: 880px) {
  .care-block__visual {
    max-width: 26rem;
  }

  .care-block--flip .care-block__visual {
    margin-inline: 0 0 auto;
  }

  .care-block:not(.care-block--flip) .care-block__visual {
    margin-inline: 0 auto 0 0;
  }
}

.care-block__pic {
  aspect-ratio: 1;
  width: 100%;
}

.care-block__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.care-block:nth-of-type(1) .care-block__pic img { object-position: center 35%; }
.care-block:nth-of-type(2) .care-block__pic img { object-position: center 85%; }
.care-block:nth-of-type(3) .care-block__pic img { object-position: center 45%; }

.care-block__chip {
  position: absolute;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  background: var(--paper);
  padding: 0.55rem 0.95rem;
  border-radius: var(--r-full);
  box-shadow:
    0 6px 18px rgba(42, 50, 36, 0.14),
    0 16px 40px rgba(92, 129, 60, 0.12);
  bottom: 8%;
  left: 4%;
}

.care-block__copy h3 {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  margin-bottom: var(--s-3);
  max-width: 16ch;
  line-height: 1.2;
}

.care-block__copy p {
  color: var(--ink-soft);
  max-width: 30rem;
  margin: 0;
  line-height: 1.68;
}

/* ——— PEOPLE ——— */
.people {
  position: relative;
  padding: var(--s-7) 0;
}

.people__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: var(--s-3) var(--s-4);
  margin-bottom: var(--s-6);
}

.people__head h2 {
  max-width: 12ch;
}

.people__feature {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-5);
  align-items: center;
  margin-bottom: var(--s-6);
}

@media (min-width: 900px) {
  .people__feature {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
  }
}

.people__feature-visual {
  position: relative;
  max-width: 26rem;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .people__feature-visual {
    max-width: 28rem;
    margin-inline: 0;
  }
}

.people__feature-pic {
  aspect-ratio: 1;
  width: 100%;
}

.people__feature-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.people__feature-copy h3 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  margin-bottom: 0.3rem;
  letter-spacing: -0.025em;
}

.people__feature-role {
  font-weight: 600;
  color: var(--leaf);
  margin: 0 0 var(--s-3);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  word-spacing: 0.15em;
}

.people__feature-copy p {
  color: var(--ink-soft);
  max-width: 30rem;
  line-height: 1.68;
}

.people__cluster {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: end;
  gap: clamp(1.1rem, 3vw, 2.1rem);
  padding: clamp(0.5rem, 2vw, 1.5rem) 0 0;
}

.people__member {
  text-decoration: none;
  color: inherit;
  text-align: center;
  width: min(100%, 10.5rem);
  transition: transform var(--dur) var(--ease);
}

.people__member:hover {
  color: inherit;
  transform: translateY(-4px);
}

.people__member:focus-visible {
  border-radius: 1rem;
}

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

.people__member:nth-child(2) {
  width: min(100%, 12.5rem);
  margin-bottom: 1.25rem;
}

.people__member:nth-child(3) {
  width: min(100%, 9.75rem);
  margin-bottom: 0.35rem;
}

.people__member-pic {
  aspect-ratio: 1;
  width: 100%;
  margin-bottom: 0.85rem;
}

.people__member-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.people__member:nth-child(1) .people__member-pic img { object-position: center top; }
.people__member:nth-child(2) .people__member-pic img { object-position: center 20%; }
.people__member:nth-child(3) .people__member-pic img { object-position: center 85%; }

.people__member-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.2rem;
  letter-spacing: -0.015em;
}

.people__member-role {
  font-size: 0.84rem;
  color: var(--mute);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .people__cluster {
    gap: 1.25rem 1rem;
  }

  .people__member,
  .people__member:nth-child(2),
  .people__member:nth-child(3) {
    width: calc(50% - 0.5rem);
    margin-bottom: 0;
  }

  .people__member:nth-child(3) {
    width: min(100%, 11rem);
  }
}

/* ——— WORKSHOPS ——— */
.workshops {
  position: relative;
  padding: var(--s-7) 0 calc(var(--s-7) + 1rem);
}

.workshops__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-5);
  align-items: start;
}

@media (min-width: 900px) {
  .workshops__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
  }
}

.workshops__copy h2 {
  margin-bottom: var(--s-3);
  max-width: 15ch;
}

.workshops__copy > p {
  color: var(--ink-soft);
  max-width: 28rem;
  margin-bottom: var(--s-4);
  line-height: 1.68;
}

.workshops__visual {
  position: relative;
  max-width: 24rem;
  margin-inline: 0;
}

@media (max-width: 899px) {
  .workshops__visual {
    max-width: 20rem;
    margin-inline: 0;
  }
}

.workshops__pic {
  aspect-ratio: 1;
  width: 100%;
}

.workshops__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 15% center;
}

.workshops__list {
  display: grid;
  gap: 0;
}

.workshops__item {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.workshops__item:first-child {
  padding-top: 0;
}

.workshops__item h3 {
  font-size: 1.28rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.015em;
}

.workshops__item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.workshops__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--leaf-deep);
}

.workshops__cta {
  margin-top: var(--s-4);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
}

/* ——— PRACTICAL ——— */
.practical {
  position: relative;
  padding: var(--s-6) 0 var(--s-7);
  margin-top: 0;
}

.practical__shell {
  position: relative;
  z-index: 1;
  background: var(--leaf);
  color: var(--paper);
  border-radius: 2.5rem;
  padding: clamp(2.15rem, 5vw, 3.35rem) clamp(1.5rem, 5vw, 4rem);
  box-shadow: 0 22px 60px rgba(92, 129, 60, 0.22);
  overflow: hidden;
}

@media (min-width: 700px) {
  .practical__shell {
    border-radius: 3.25rem;
    padding: clamp(2.4rem, 4.5vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem);
  }
}

.practical__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 800px) {
  .practical__inner {
    grid-template-columns: 1.3fr 0.7fr;
    grid-template-areas:
      "intro actions"
      "facts hint";
    align-items: start;
    column-gap: var(--s-5);
    row-gap: var(--s-5);
  }

  .practical__intro { grid-area: intro; }
  .practical__actions { grid-area: actions; }
  .practical__facts { grid-area: facts; }
  .practical__hint {
    grid-area: hint;
    align-self: end;
  }
}

.practical__inner h2 {
  color: var(--paper);
  margin-bottom: var(--s-4);
  max-width: 14ch;
  font-size: var(--text-xl);
}

.practical__inner h2 .accent {
  color: color-mix(in srgb, var(--paper) 72%, #c8e0a8);
}

.practical__lead {
  color: color-mix(in srgb, var(--paper) 90%, transparent);
  max-width: 32rem;
  margin: 0;
  line-height: 1.65;
}

.practical__facts {
  display: grid;
  gap: var(--s-3);
}

@media (min-width: 520px) {
  .practical__facts {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
  }
}

.practical__facts strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 0.35rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.practical__facts a {
  color: var(--paper);
  text-decoration: none;
}

.practical__facts a:hover {
  color: #fff;
  text-decoration: underline;
}

.practical__facts a:focus-visible {
  outline-color: #fff;
}

.practical__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 800px) {
  .practical__actions {
    align-items: flex-end;
    margin-top: 2.75rem;
  }
}

.practical__hint {
  font-size: 0.86rem;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  max-width: 17rem;
  margin: 0;
  line-height: 1.5;
}

@media (min-width: 800px) {
  .practical__hint {
    text-align: right;
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .practical__actions .btn {
    width: 100%;
  }
}
