/* ==========================================================================
   CLOE · wildflower editorial
   Layout idea: an asymmetric editorial scroll that alternates image-led and
   text-led moments, with soft organic shapes (petal, leaf, arch) on photos.

   1. Design tokens (colors, type, spacing, shapes)  ← edit these first
   2. Base
   3. Components (buttons, header, media shapes, doodles)
   4. Sections (hero → inquiry)
   5. Form
   6. Layout variations B and C
   7. Motion + reduced motion
   ========================================================================== */

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Palette, sampled from the wildflower photographs and softened */
  --cream:        #FBF7EE;  /* main background, overcast-sky ivory */
  --paper:        #FFFDF8;  /* form surfaces */
  --ink:          #233A2B;  /* deep natural green, main text */
  --ink-soft:     #4B5E4F;  /* secondary text */
  --leaf:         #5E7F36;  /* fresh botanical green, accents */
  --leaf-mist:    #EDF0E1;  /* pale sage band */
  --mustard:      #EDD35C;  /* wildflower yellow, primary buttons */
  --mustard-soft: #F6E7A1;  /* highlighter yellow */
  --lupine:       #8E86CB;  /* lupine lavender */
  --lupine-deep:  #5A529C;  /* lavender dark enough for text */
  --lupine-mist:  #EFEDF7;  /* pale lavender band */
  --sky:          #CBDDE8;  /* soft sky blue */
  --line:         #D9D6C6;  /* hairlines and input borders */
  --error:        #A23B2A;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body:    "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0:  clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-1:  clamp(1.25rem, 1.14rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
  --step-3:  clamp(2.25rem, 1.8rem + 2.2vw, 3.75rem);
  --step-4:  clamp(2.75rem, 2rem + 3.6vw, 5.25rem);
  --step-5:  clamp(3.25rem, 2rem + 6.4vw, 8rem);

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-space: clamp(5.5rem, 11vw, 10.5rem);
  --measure: 36rem;

  /* Shapes */
  --r-soft: 28px;
  --r-big: clamp(110px, 16vw, 240px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;

  color-scheme: light;
}

/* 2. BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--lupine-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--mustard-soft); color: var(--ink); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1.1rem; border-radius: 999px;
  background: var(--ink); color: var(--cream); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.section {
  position: relative;
  overflow-x: clip;
  padding-block: var(--section-space);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Readable text column */
.prose { display: flex; flex-direction: column; gap: 1.25em; max-width: var(--measure); min-width: 0; }
.prose p { text-wrap: pretty; }
.prose__lead {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "opsz" 48;
  font-size: var(--step-2);
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.prose__lead--italic { font-style: italic; color: var(--lupine-deep); }
.prose__statement {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-size: var(--step-3);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: .35em;
}
.prose__callout {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "opsz" 48;
  font-size: var(--step-2);
  line-height: 1.25;
  font-style: italic;
  padding-block: .35em;
}
.prose__sign {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "opsz" 36;
  font-style: italic;
  font-size: var(--step-1);
  color: var(--leaf);
}
.prose .btn { align-self: flex-start; margin-top: .75rem; }

mark {
  background: linear-gradient(transparent 58%, var(--mustard-soft) 58%, var(--mustard-soft) 92%, transparent 92%);
  color: inherit;
  padding: 0 .08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.section-title {
  font-size: var(--step-4);
  position: relative;
}
.section-title--large { font-size: clamp(3rem, 2rem + 4.8vw, 6.25rem); }

/* 3. COMPONENTS ---------------------------------------------------------- */

/* Buttons */
.btn {
  --btn-bg: var(--mustard);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px;
  padding: .85em 1.6em;
  border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1.0625rem/1.2 var(--font-body);
  letter-spacing: .01em;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s;
}
.btn--primary { box-shadow: 0 0 0 0 rgba(142, 134, 203, 0); }
.btn--primary::after {
  content: "";
  width: .5em; height: .5em; border-radius: 50%;
  background: var(--leaf);
  transition: transform .5s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 0 -2px var(--lupine); }
.btn--primary:hover::after { transform: scale(1.5); }
.btn--primary:active { transform: translateY(0); box-shadow: 0 4px 0 -1px var(--lupine); }
.btn--large { min-height: 60px; font-size: 1.125rem; padding-inline: 2em; }
.btn--outline {
  --btn-bg: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--outline:hover { --btn-bg: var(--mustard); box-shadow: inset 0 0 0 1.5px var(--mustard); }
.btn--small { min-height: 44px; padding: .55em 1.2em; font-size: .9375rem; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(251, 247, 238, 0);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 60;
  height: env(safe-area-inset-top, 0px); background: var(--cream);
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(251, 247, 238, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(35, 58, 43, .08);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.wordmark {
  display: inline-flex; flex-direction: column; gap: .3rem;
  text-decoration: none;
  padding-block: .35rem;
  line-height: 1;
}
.wordmark__name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-style: italic;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
}
/* a small yellow wildflower after the name */
.wordmark__name::after {
  content: ""; display: inline-block;
  width: .5em; height: .5em; margin-left: .1em;
  vertical-align: -.02em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23EDD35C' stroke='%23D2B12A' stroke-width='1'%3E%3Cellipse cx='12' cy='6.2' rx='3.7' ry='5.4' transform='rotate(0 12 12)'/%3E%3Cellipse cx='12' cy='6.2' rx='3.7' ry='5.4' transform='rotate(72 12 12)'/%3E%3Cellipse cx='12' cy='6.2' rx='3.7' ry='5.4' transform='rotate(144 12 12)'/%3E%3Cellipse cx='12' cy='6.2' rx='3.7' ry='5.4' transform='rotate(216 12 12)'/%3E%3Cellipse cx='12' cy='6.2' rx='3.7' ry='5.4' transform='rotate(288 12 12)'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.6' fill='%23B8922A'/%3E%3C/svg%3E") no-repeat center / contain;
}
.wordmark__tag {
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-left: .1em;
}
.site-nav ul {
  display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem);
  margin: 0; padding: 0; list-style: none;
}
.site-nav a:not(.btn) {
  font-weight: 500; text-decoration: none;
  background: linear-gradient(var(--leaf), var(--leaf)) 0 100% / 0 1.5px no-repeat;
  padding-block: .3em;
  transition: background-size .45s var(--ease);
}
.site-nav a:not(.btn):hover { background-size: 100% 1.5px; }

.nav-toggle {
  display: none;
  align-items: center; gap: .6rem;
  min-height: 44px; padding: .5rem .25rem .5rem .9rem;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  font: 600 1rem var(--font-body); cursor: pointer;
}
.nav-toggle__icon, .nav-toggle__icon::before {
  display: block; width: 22px; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease);
}
.nav-toggle__icon { position: relative; transform: translateY(-3px); }
.nav-toggle__icon::before { content: ""; position: absolute; top: 6px; }
.is-open .nav-toggle__icon { transform: translateY(0) rotate(45deg); }
.is-open .nav-toggle__icon::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(251, 247, 238, .97);
    padding: .5rem max(var(--gutter), env(safe-area-inset-right, 0px)) 1.75rem max(var(--gutter), env(safe-area-inset-left, 0px));
    box-shadow: 0 12px 24px -18px rgba(35, 58, 43, .4);
    display: none;
  }
  .is-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .site-nav a:not(.btn) {
    display: block; padding: .8rem 0;
    font-family: var(--font-display); font-size: 1.75rem; font-weight: 400;
    background: none;
  }
  .site-nav .btn { margin-top: 1rem; width: 100%; }
}

/* Photo shapes */
.media { overflow: hidden; position: relative; background: var(--leaf-mist); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--soft { border-radius: var(--r-soft); }
.media--leaf { border-radius: var(--r-big) var(--r-soft) var(--r-big) var(--r-soft); }
.media--leaf-mirror { border-radius: var(--r-soft) var(--r-big) var(--r-soft) var(--r-big); }
.media--arch { border-radius: 999px 999px var(--r-soft) var(--r-soft); }
.drift { will-change: transform; transform: scale(1.06); height: 100%; }

/* Hand-drawn doodles */
.doodle { fill: none; stroke: var(--leaf); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.doodle .leaf { fill: rgba(94, 127, 54, .14); }
.doodle--sprout {
  position: absolute; width: .62em; height: .78em;
  margin-left: .12em; top: -.32em;
  transform: rotate(8deg);
}
.doodle--bloom { width: 52px; height: 52px; stroke: var(--ink); stroke-width: 1.5; }
.doodle--bloom .petals { fill: var(--mustard-soft); }
.doodle--bloom .heart { fill: var(--leaf); stroke: none; }

/* 4. SECTIONS ------------------------------------------------------------ */

/* HERO: cream text panel + immersive photo with a petal corner */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: min(calc(100svh - var(--header-h)), 920px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  position: relative;
}
.hero__media {
  grid-column: 2; grid-row: 1;
  position: relative; overflow: hidden;
  border-bottom-left-radius: var(--r-big);
  min-height: 520px;
}
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: 68% 50%;
  animation: hero-settle 2.6s var(--ease) both;
}
.hero__text {
  grid-column: 1; grid-row: 1;
  align-self: center;
  display: flex; flex-direction: column; align-items: flex-start; gap: clamp(1.5rem, 2.6vw, 2.25rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 4.5rem) clamp(3rem, 6vw, 5rem) 0;
  position: relative; z-index: 2;
  min-width: 0;
}
.hero__title {
  font-size: var(--step-5);
  line-height: .96;
  letter-spacing: -0.035em;
  font-weight: 380;
}
.hero__lede { max-width: 30rem; font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }

.squiggle { position: relative; display: inline-block; isolation: isolate; font-style: italic; color: var(--leaf); }
.squiggle__line {
  position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .28em;
  fill: none; stroke: var(--mustard); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 220; stroke-dashoffset: 220;
  transition: stroke-dashoffset 1.6s var(--ease) .5s;
  z-index: -1;
}
.squiggle.is-visible .squiggle__line { stroke-dashoffset: 0; }

/* Small floating seeds near the hero text */
.seed { position: absolute; border-radius: 50%; pointer-events: none; animation: float 14s ease-in-out infinite; }
.seed--a { width: 14px; height: 14px; background: var(--mustard); top: 8%; right: 18%; }
.seed--b { width: 9px; height: 9px; background: var(--lupine); top: 18%; right: 8%; animation-delay: -5s; animation-duration: 17s; }
.seed--c { width: 7px; height: 7px; background: var(--sky); bottom: 10%; left: 42%; animation-delay: -9s; animation-duration: 19s; }

@media (max-width: 899px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-left: 0;
  }
  .hero__media {
    grid-column: 1; grid-row: 1;
    min-height: 0; aspect-ratio: 1 / 1; max-height: 74svh; width: 100%;
    border-radius: 0;
  }
  .hero__media img { object-position: 80% 50%; }
  .hero__text {
    grid-column: 1; grid-row: 2;
    margin-top: calc(var(--r-big) * -0.55);
    background: var(--cream);
    border-top-left-radius: var(--r-big);
    padding: clamp(2.25rem, 7vw, 3.5rem) max(var(--gutter), env(safe-area-inset-right, 0px)) clamp(3.5rem, 10vw, 5rem) max(var(--gutter), env(safe-area-inset-left, 0px));
  }
  .hero__title { font-size: clamp(3rem, 1.6rem + 7.6vw, 5.5rem); }
  .seed--a { top: 1.5rem; right: 12%; }
  .seed--c { display: none; }
}
@media (min-width: 900px) and (max-width: 1120px) {
  .hero { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
}

/* INTRO */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  max-width: 1320px; margin-inline: auto;
}
.intro__media { aspect-ratio: 1 / 1; }
.intro__media img { object-position: 50% 30%; }
.intro .section-title { margin-bottom: .2em; padding-right: .8em; white-space: nowrap; }

/* DREAM: lavender band with soft wave edges */
.dream {
  background: var(--lupine-mist);
  margin-block: clamp(2rem, 4vw, 3rem);
}
.wave { position: absolute; left: 0; width: 100%; height: clamp(36px, 5vw, 80px); fill: var(--lupine-mist); pointer-events: none; }
.wave--top { bottom: calc(100% - 1px); }
.wave--bottom { top: calc(100% - 1px); }
.dream__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  max-width: 1240px; margin-inline: auto;
}
.dream__text { max-width: 34rem; }
.dream .section-title { margin-bottom: .1em; }
.dream__media { position: relative; }
.dream__media .media { aspect-ratio: 4 / 5; }
.dream__media img { object-position: 66% 42%; }
.blob {
  position: absolute; z-index: 0;
  width: 62%; aspect-ratio: 1; right: -12%; bottom: -10%;
  border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%;
  background: var(--mustard-soft);
  opacity: .8;
}
.dream__media .media { z-index: 1; }

/* ROLE: text-led breathing room */
.role { padding-top: calc(var(--section-space) + 2rem); }
.role__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 1200px; margin-inline: auto;
}
.role__aside { position: relative; }
.role .section-title { position: sticky; top: calc(var(--header-h) + 2rem); }
.role__text { max-width: 40rem; font-size: var(--step-1); line-height: 1.6; }
.role__text .prose__statement { font-size: var(--step-3); }
.role__media { display: none; }

.role__belief {
  max-width: 22ch;
  margin: clamp(5rem, 10vw, 9rem) auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: var(--step-4);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.underline-draw { position: relative; display: inline-block; isolation: isolate; font-style: italic; color: var(--lupine-deep); }
.underline-draw svg {
  position: absolute; left: 0; bottom: -.18em; width: 100%; height: .22em;
  fill: none; stroke: var(--mustard); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  transition: stroke-dashoffset 1.8s var(--ease) .4s;
  z-index: -1;
}
.underline-draw.is-visible svg { stroke-dashoffset: 0; }

/* ABOUT: sage band, sticky portrait beside the story */
.about { background: var(--leaf-mist); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
  max-width: 1240px; margin-inline: auto;
}
.about__media {
  aspect-ratio: 4 / 5;
  position: sticky; top: calc(var(--header-h) + 2rem);
}
.about__media img { object-position: 50% 28%; }
.about .section-title { margin-bottom: .2em; }

/* READY: the invitation leads; the photo is a small arch beside it */
.ready { padding-bottom: clamp(4rem, 8vw, 7rem); }
.ready__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  max-width: 1160px; margin-inline: auto;
}
.ready__text { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(1.75rem, 3vw, 2.5rem); min-width: 0; }
.ready .doodle--bloom { margin-bottom: -.5rem; }
.ready__title {
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.ready__media {
  width: min(100%, 340px);
  aspect-ratio: 3 / 4;
  justify-self: end;
}
.ready__media img { object-position: 45% 60%; }

/* The most pronounced button on the page */
.btn--hero {
  min-height: 72px;
  padding: 1em 2.4em;
  font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.375rem);
  box-shadow: 0 10px 0 -2px var(--lupine), 0 24px 40px -18px rgba(90, 82, 156, .55);
}
.btn--hero::after { width: .55em; height: .55em; }
.btn--hero:hover { transform: translateY(-3px); box-shadow: 0 13px 0 -2px var(--lupine), 0 30px 46px -18px rgba(90, 82, 156, .6); }
.btn--hero:active { transform: translateY(2px); box-shadow: 0 5px 0 -1px var(--lupine), 0 14px 24px -16px rgba(90, 82, 156, .5); }

@media (max-width: 899px) {
  .ready__grid { grid-template-columns: minmax(0, 1fr); }
  .ready__media { width: min(62%, 280px); justify-self: end; }
}

/* INQUIRY */
.inquiry { padding-top: clamp(3rem, 6vw, 5rem); }
.inquiry__inner {
  max-width: 880px; margin-inline: auto;
  background: var(--paper);
  border-radius: var(--r-big) var(--r-soft) var(--r-soft) var(--r-soft);
  padding: clamp(2.25rem, 7vw, 6rem) clamp(1.25rem, 6vw, 5.5rem);
  box-shadow: 0 1px 0 rgba(35, 58, 43, .05), 0 30px 60px -40px rgba(35, 58, 43, .25);
}
.inquiry__header { max-width: 38rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); color: var(--ink-soft); }
.inquiry__header .section-title { color: var(--ink); margin-bottom: .15em; font-size: var(--step-3); }

/* FOOTER */
.site-footer { padding-block: 3rem 3.5rem; }
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  max-width: 1240px; margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  color: var(--ink-soft); font-size: var(--step--1);
}
.site-footer .wordmark { color: var(--ink); }
.site-footer .wordmark__name { font-size: 1.5rem; }
.site-footer__top { text-decoration: none; font-weight: 600; color: var(--ink); }
.site-footer__top:hover { color: var(--leaf); }

/* Tablet & mobile stacking for content sections */
@media (max-width: 899px) {
  .intro__grid, .dream__grid, .role__grid, .about__grid { grid-template-columns: minmax(0, 1fr); }
  .intro__media { aspect-ratio: 4 / 3.4; margin-right: calc(var(--gutter) * -1); }
  .intro__media img { object-position: 50% 25%; }
  .dream__media { order: -1; width: min(86%, 440px); margin-left: auto; }
  .dream__media .media { aspect-ratio: 4 / 5; }
  .role .section-title { position: static; }
  .about__media { position: relative; top: 0; width: min(88%, 460px); margin-left: calc(var(--gutter) * -1); }
  .about__media { border-radius: 0 var(--r-big) var(--r-soft) 0; }
}
@media (max-width: 520px) {
  :root { --r-big: 120px; }
  .prose__lead, .prose__callout { font-size: 1.4rem; }
  .role__text { font-size: 1.125rem; }
  .btn { width: 100%; }
  .prose .btn { align-self: stretch; }
  .hero__text .btn { align-self: stretch; }
  .role__belief { font-size: 2.35rem; }
  .ready__title { font-size: 2.75rem; }
}

/* 5. FORM ---------------------------------------------------------------- */
.inquiry-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 2.75rem) 1.5rem;
}
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--half { grid-column: span 1; }
/* side-by-side fields keep their inputs level: helper text sits below the box */
.field--half .field__help { order: 3; margin-top: .1rem; }
.field--half .field__error { order: 4; }
.field__label {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "opsz" 32;
  font-size: var(--step-1);
  line-height: 1.3;
  color: var(--ink);
  padding: 0;
  text-wrap: pretty;
}
.field__optional { font-family: var(--font-body); font-size: .8em; color: var(--ink-soft); font-style: normal; }
.field__help { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.5; max-width: 40rem; margin-top: -.1rem; }

.field__control {
  width: 100%;
  margin-top: .35rem;
  padding: .95rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-body);
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
textarea.field__control { resize: vertical; min-height: 7.5rem; }
.field__control:hover { border-color: #BDB9A6; }
.field__control:focus { outline: none; }
.field__control:focus-visible, .field__control:focus {
  border-color: var(--lupine-deep);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(142, 134, 203, .25);
}

.choices { display: grid; gap: .75rem; margin-top: .5rem; }
.choice {
  position: relative;
  display: flex; align-items: center; gap: .9rem;
  min-height: 56px;
  padding: .85rem 1.1rem;
  border: 1.5px solid var(--line); border-radius: 16px;
  background: var(--cream);
  cursor: pointer;
  transition: border-color .3s, background-color .3s;
}
.choice:hover { border-color: #BDB9A6; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__mark {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--ink-soft); background: var(--paper);
  display: grid; place-items: center;
  transition: border-color .3s;
}
.choice__mark::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--leaf); transform: scale(0); transition: transform .35s var(--ease);
}
.choice:has(input:checked) { border-color: var(--leaf); background: #F2F4E6; }
.choice input:checked + .choice__mark { border-color: var(--leaf); }
.choice input:checked + .choice__mark::after { transform: scale(1); }
.choice:has(input:focus-visible) { outline: 3px solid var(--lupine-deep); outline-offset: 3px; }

.field__error { color: var(--error); font-size: var(--step--1); font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.has-error .field__control, .has-error .choice { border-color: var(--error); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.inquiry-form__privacy { margin-top: 2.25rem; color: var(--ink-soft); font-size: var(--step--1); max-width: 34rem; }
.inquiry-form__status { margin-top: 2rem; font-weight: 600; }
.inquiry-form__status:empty { display: none; }
.inquiry-form__status.is-error { color: var(--error); }
.inquiry-form__actions { margin-top: 2.5rem; }

.inquiry-thanks {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem;
  padding-block: 1rem 2rem;
  outline: none;
}
.inquiry-thanks[hidden] { display: none; }
.inquiry-thanks .doodle--sprout { position: static; width: 48px; height: 60px; transform: none; margin: 0; }
.inquiry-thanks__message {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "opsz" 48;
  font-size: var(--step-2);
  line-height: 1.3;
  max-width: 30ch;
}

@media (max-width: 620px) {
  .inquiry-form__fields { grid-template-columns: minmax(0, 1fr); }
  .field--half { grid-column: 1 / -1; }
  .inquiry { padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
  .inquiry__inner { padding-inline: max(16px, 5vw); }
  .field__label { font-size: 1.2rem; }
}

/* Layout switcher (only shown when enabled in site-config.js) */
.layout-switcher {
  position: fixed; z-index: 80;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 4px;
  padding: 5px 5px 5px 14px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font: 600 .8125rem var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 10px 30px -12px rgba(35, 58, 43, .6);
}
.layout-switcher__label { margin-right: 6px; opacity: .8; }
.layout-switcher button {
  min-width: 36px; min-height: 36px; border: 0; border-radius: 999px;
  background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.layout-switcher button[aria-pressed="true"] { background: var(--mustard); color: var(--ink); }
.layout-switcher button:focus-visible { outline-color: var(--mustard); }

/* 6. LAYOUT VARIATIONS --------------------------------------------------- */

/* ---- B: more immersive, image-rich. Adds the front-facing running photo
        beside My Role. ---- */
[data-layout="b"] .role__media { display: block; aspect-ratio: 3 / 4.4; margin-top: clamp(2rem, 4vw, 3rem); }
[data-layout="b"] .role__media img { object-position: 62% 40%; }
[data-layout="b"] .role .section-title { position: static; }
/* Two columns only on wide screens; phones and tablets stack (heading, photo, text) */
@media (min-width: 900px) {
  [data-layout="b"] .role__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
  [data-layout="b"] .role__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  [data-layout="b"] .role__text { padding-top: clamp(0rem, 6vw, 6rem); }
}
@media (max-width: 899px) {
  [data-layout="b"] .role__media { width: min(72%, 360px); margin-left: auto; aspect-ratio: 4 / 5; }
}

/* ---- C: more editorial. Bigger type, larger crops, overlaps, asymmetry. ---- */
[data-layout="c"] {
  --step-4: clamp(3rem, 2rem + 5vw, 6.5rem);
  --step-5: clamp(3.5rem, 2rem + 8vw, 10rem);
}
@media (min-width: 900px) {
  /* Hero: photo runs full-bleed, text sits on a cream sheet overlapping it */
  [data-layout="c"] .hero { grid-template-columns: minmax(0, 1fr); padding-left: 0; min-height: min(calc(100svh - var(--header-h)), 960px); }
  [data-layout="c"] .hero__media { grid-column: 1; border-radius: 0; }
  [data-layout="c"] .hero__media img { object-position: 60% 50%; }
  [data-layout="c"] .hero__text {
    grid-column: 1; align-self: end;
    width: min(54%, 760px);
    margin-bottom: -1px;
    background: var(--cream);
    border-top-right-radius: var(--r-big);
    padding: clamp(2.5rem, 4vw, 4rem) clamp(2rem, 4vw, 4.5rem) clamp(2rem, 3vw, 3rem) max(var(--gutter), env(safe-area-inset-left, 0px));
  }
  /* Intro: image bleeds off the left edge */
  [data-layout="c"] .intro__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); max-width: none; }
  [data-layout="c"] .intro__media { margin-left: calc(var(--gutter) * -1); aspect-ratio: 5 / 4; border-radius: 0 var(--r-big) var(--r-soft) 0; }
  /* Dream: image larger, hangs below the band */
  [data-layout="c"] .dream__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  [data-layout="c"] .dream__media { margin-bottom: calc(var(--section-space) * -0.9); z-index: 2; }
  [data-layout="c"] .dream__media .media { aspect-ratio: 3 / 4; }
  [data-layout="c"] .role { padding-top: calc(var(--section-space) * 1.6); }
  [data-layout="c"] .role__belief { max-width: 18ch; text-align: left; margin-left: 8%; }
  /* About: portrait pulled up into the role section */
  [data-layout="c"] .about__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  [data-layout="c"] .about__media { margin-top: calc(var(--section-space) * -1.6); aspect-ratio: 3 / 4; position: relative; top: 0; z-index: 2; }
  /* Ready: larger arch, offset lower */
  [data-layout="c"] .ready__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  [data-layout="c"] .ready__media { width: min(100%, 440px); margin-top: 6rem; }
}

/* 7. MOTION -------------------------------------------------------------- */
@keyframes hero-settle {
  from { transform: scale(1.06); opacity: .001; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  33%      { transform: translate3d(6px, -10px, 0); }
  66%      { transform: translate3d(-5px, 6px, 0); }
}

.reveal { transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-waiting { opacity: 0; transform: translateY(22px); }
.reveal.is-waiting.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal.is-waiting { opacity: 1; transform: none; }
  .drift { transform: none !important; }
  .squiggle__line, .underline-draw svg { stroke-dashoffset: 0; }
}
