/* Flowers Home Care Agency: the Careers page (designs/c/careers/). Loads after styles.css and site.css.

   1. Hero                 the sunflower beside the portrait
   2. Why this work matters  an arch on the left, the idea in large type
   3. Who should apply     the wide arch (group photographs on this page sit in a wide arch)
   4. What we look for     SIGNATURE: five points the applicant ticks. Each tick is drawn and
                           brings out a flower; a row of small arches gathers the five
   5. The care you would give   the seven services as an index of links
   6. Where you would work the ten counties in large type, the two offices as two doors
   7. How to apply         the closing line under the shared four steps
   8. The application form its scene, the yes or no choice, the errors
   9. For families         the closing band

   Entrances come from the shared kit (reveal.js). The motion written here answers a tap or a
   pointer and moves transform, opacity and clip-path; colours change with plain colour
   transitions, as the shared buttons do. */

/* ==========================================================================
   1. Hero
   ========================================================================== */
.phero__art .stem--sun { left: -30%; bottom: -9%; height: 86%; transform: rotate(-8deg); }
@media (max-width: 899px) {
  .phero__art .stem--sun { left: -21%; }
}

/* ==========================================================================
   2. Why this work matters
   ========================================================================== */
.mission { z-index: 2; padding-top: clamp(1rem, 3vw, 3rem); }
.mission__grid { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7fr); gap: clamp(2.5rem, 7.5vw, 8rem); align-items: center; }
.mission__art { position: relative; justify-self: center; width: min(100%, 24.5rem); }
.mission__art .arch { aspect-ratio: 4 / 5.3; }
.mission__art .arch img { object-position: 56% 50%; }
.mission__art .stem { right: -25%; bottom: -8%; height: 72%; transform: rotate(9deg); transform-origin: 50% 100%; z-index: 3; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 99%); mask-image: linear-gradient(180deg, #000 80%, transparent 99%); }
.mission h2 { font-size: clamp(2.25rem, 4.1vw, 3.875rem); }
.mission__big { margin-top: clamp(1.5rem, 3vw, 2.25rem); max-width: 41rem; font-family: var(--serif); font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.28; color: var(--cream); text-wrap: balance; }
.mission .prose { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-gold); }
@media (max-width: 899px) {
  .mission__grid { grid-template-columns: minmax(0, 1fr); gap: 3.25rem; }
  .mission__art { order: 2; width: min(70%, 18.5rem); }
}

/* ==========================================================================
   3. Who should apply
   ========================================================================== */
.suits { z-index: 3; }
.suits__grid { display: grid; grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr); gap: clamp(2.5rem, 5.5vw, 6rem); align-items: center; }
.suits h2 { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); font-size: clamp(2.375rem, 4.1vw, 3.875rem); }
.suits__art { margin: 5% 4% 0 2%; }

/* a group photograph sits in a wide arch: the same half circle on a short foot */
.archbox--wide .arch { aspect-ratio: 3 / 2; }
.arch-lines--wide { left: -7.333%; top: -11%; width: 114.667%; height: 111%; }

.suits .stem--x { right: -7.5rem; bottom: -16rem; height: 33rem; transform: rotate(-30deg); transform-origin: 50% 100%; z-index: 3; }
@media (max-width: 899px) {
  .suits__grid { grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
  .suits__art { margin: 0 7% 0; }
  .suits .stem--x { display: none; }
}

/* ==========================================================================
   4. What we look for (signature)

   Each point is a real checkbox with its label, so it works by tap, by keyboard
   and without scripts. The drawn box, the check and the flower are decoration
   that follows :checked. careers.js only counts the ticks and fills the small
   arches in the closing panel.
   ========================================================================== */
.look { z-index: 2; padding-top: calc(var(--sec-y) + 1rem); }
.look__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: clamp(2.5rem, 6vw, 6.5rem); row-gap: clamp(2rem, 3.4vw, 3rem); align-items: start; }
.look__head { grid-column: 1; grid-row: 1; }
.look__list { grid-column: 2; grid-row: 1 / span 2; }
.look__close { grid-column: 1; grid-row: 2; }

.look__intro { margin-top: 1.5rem; max-width: 30rem; font-size: var(--fs-lead); }
.look__hint { display: flex; align-items: center; gap: .7rem; margin-top: 1.5rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: .01em; color: var(--gold-light); }
.look__hint svg { flex: none; width: 2rem; height: 2rem; padding: .3rem; border: 1px solid rgba(232, 181, 82, .7); border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.look__list { border-top: 1px solid var(--line-gold); }
.look__item { position: relative; border-bottom: 1px solid var(--line-gold); }
.look__row { position: relative; display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); column-gap: clamp(1.25rem, 2.4vw, 2.25rem); align-items: center; min-height: 9rem; padding: 1.5rem 1.25rem 1.5rem 2.25rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* the real checkbox lies under the drawn box, at the same place and size */
.look__input { position: absolute; left: 2.25rem; top: 50%; width: 5.25rem; height: 6.25rem; margin: -3.125rem 0 0; opacity: 0; cursor: pointer; }

/* a soft light crosses the row from the box outward */
.look__wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(112, 56, 112, .52) 0%, rgba(112, 56, 112, .2) 52%, rgba(112, 56, 112, 0) 100%); clip-path: inset(0 100% 0 0); transition: clip-path 240ms var(--ease-out); pointer-events: none; }
.look__input:checked ~ .look__wash { clip-path: inset(0 0 0 0); transition: clip-path 760ms var(--ease-out); }

.look__box { position: relative; display: block; width: 5.25rem; height: 6.25rem; border-radius: 999px 999px .9rem .9rem; background: var(--aub-2); box-shadow: inset 0 0 0 1px rgba(232, 181, 82, .78), 0 16px 22px -14px rgba(12, 3, 14, .85); transition: transform 320ms var(--ease-out), background-color 280ms ease; }
.look__box::before { content: ""; position: absolute; inset: .3rem .3rem auto .3rem; height: 62%; border: 1px solid rgba(232, 181, 82, .3); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.look__box svg { position: absolute; left: 50%; top: 55%; width: 3.1rem; height: 3.1rem; margin: -1.55rem 0 0 -1.55rem; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.look__ghost { stroke: rgba(251, 244, 234, .3); stroke-width: 2.2; transition: opacity 200ms ease, stroke 200ms ease; }
/* the check is one stroke that runs from left to right, so a wipe from the left draws it */
.look__tick { stroke: var(--gold-light); stroke-width: 3.7; clip-path: inset(0 100% 0 0); transition: clip-path 180ms var(--ease-out); }
.look__flower { position: absolute; left: -48%; bottom: -15%; height: 70%; width: auto; max-width: none; filter: drop-shadow(0 8px 9px rgba(12, 3, 14, .55)); opacity: 0; transform: translateY(8px) rotate(-52deg) scale(.5); transform-origin: 62% 84%; transition: transform 200ms var(--ease-out), opacity 150ms ease; pointer-events: none; }

.look__input:checked ~ .look__box { background-color: var(--purple); }
.look__input:checked ~ .look__box .look__ghost { opacity: 0; }
.look__input:checked ~ .look__box .look__tick { clip-path: inset(0 0 0 0); transition: clip-path 480ms var(--ease-out) 60ms; }
.look__input:checked ~ .look__box .look__flower { opacity: 1; transform: rotate(-13deg) scale(1); transition: transform 760ms var(--ease-spring) 180ms, opacity 200ms ease 180ms; }
.look__input:focus-visible ~ .look__box { outline: 3px solid var(--gold-light); outline-offset: 4px; }
.look__row:active .look__box { transform: scale(.95); transition-duration: 140ms; }

.look__text { position: relative; display: block; }
.look__name { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.1vw, 1.875rem); line-height: 1.15; letter-spacing: -.004em; color: var(--cream); text-wrap: balance; transition: color 280ms ease; }
.look__line { display: block; margin-top: .55rem; max-width: 35rem; font-size: 1.125rem; line-height: 1.5; }
.look__input:checked ~ .look__text .look__name { color: var(--gold-light); }

@media (hover: hover) and (pointer: fine) {
  .look__row:hover .look__box { transform: translateY(-3px); }
  .look__row:hover .look__ghost { stroke: rgba(251, 244, 234, .92); }
  .look__row:active .look__box { transform: scale(.95); }
}

/* a few gold leaves leave the box with the tick (careers.js) */
.look__spark { position: absolute; left: 50%; top: 52%; width: 8px; height: 8px; margin: -4px; border-radius: 50% 50% 50% 0; background: var(--gold-light); pointer-events: none; z-index: 2; }

/* the closing panel: five small arches gather the flowers, then the line from the copy */
.look__close { position: relative; max-width: 30rem; padding: clamp(1.5rem, 2.4vw, 2.1rem); border: 1px solid rgba(232, 181, 82, .5); border-radius: var(--r-card); background: linear-gradient(180deg, rgba(112, 56, 112, .34), rgba(42, 14, 48, 0) 82%); transition: border-color 420ms ease, box-shadow 620ms ease; }
.look__meter { display: flex; gap: .6rem; margin-bottom: 1.1rem; padding-top: .9rem; }
.look__slot { position: relative; display: block; width: 3.1rem; height: 3.7rem; border: 1px dashed rgba(232, 181, 82, .6); border-radius: 999px 999px .55rem .55rem; transition: border-color 260ms ease, background-color 260ms ease; }
.look__slot img { position: absolute; left: 50%; bottom: 12%; height: 108%; width: auto; max-width: none; filter: drop-shadow(0 6px 7px rgba(12, 3, 14, .55)); opacity: 0; transform: translate(-50%, 8px) rotate(-36deg) scale(.5); transform-origin: 50% 80%; transition: transform 200ms var(--ease-out), opacity 150ms ease; }
.look__slot.is-on { border-style: solid; border-color: rgba(232, 181, 82, .9); background-color: var(--aub-2); }
.look__slot.is-on img { opacity: 1; transform: translate(-50%, 0) rotate(var(--r, 0deg)) scale(1); transition: transform 700ms var(--ease-spring) 340ms, opacity 200ms ease 340ms; }
.look__status { font-size: 1rem; font-weight: 600; letter-spacing: .04em; color: var(--gold-light); }
.look__say { margin-top: .8rem; font-family: var(--serif); font-size: clamp(1.4rem, 1.9vw, 1.7rem); line-height: 1.28; color: var(--cream); text-wrap: balance; }
.no-js .look__say { margin-top: 0; }
.look__close .btn { margin-top: 1.4rem; }
/* the panel follows the ticking down the list; --header-h is everything pinned at the top */
@media (min-width: 900px) and (min-height: 600px) {
  .look__close { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.look.is-complete .look__close { border-color: var(--gold-light); box-shadow: 0 36px 64px -40px rgba(232, 181, 82, .7); }
.look.is-complete .look__slot.is-on img { transform: translate(-50%, -5px) rotate(var(--r, 0deg)) scale(1.16); transition: transform 760ms var(--ease-spring) calc(var(--i, 0) * 70ms + 380ms), opacity 200ms ease 340ms; }

@media (max-width: 899px) {
  .look__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .look__head, .look__list, .look__close { grid-column: 1; grid-row: auto; }
  .look__close { max-width: none; }
  .look__row { grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: 1.15rem; align-items: start; min-height: 0; padding: 1.5rem .25rem 1.6rem 1rem; }
  .look__input { left: 1rem; top: 1.5rem; width: 4.5rem; height: 5.4rem; margin: 0; }
  .look__box { width: 4.5rem; height: 5.4rem; }
  .look__box svg { width: 2.7rem; height: 2.7rem; margin: -1.35rem 0 0 -1.35rem; }
  .look__line { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .look__wash, .look__box, .look__tick, .look__input:checked ~ .look__wash, .look__input:checked ~ .look__box .look__tick { transition: none; }
  .look__flower, .look__input:checked ~ .look__box .look__flower, .look__slot img, .look__slot.is-on img, .look.is-complete .look__slot.is-on img { transition: opacity 200ms ease; }
}

/* ==========================================================================
   5. The care you would give
   ========================================================================== */
.care { z-index: 3; }
.care__list { border-top: 1px solid rgba(200, 144, 48, .55); }
.care__list > li { border-bottom: 1px solid rgba(200, 144, 48, .55); }
.care__row { position: relative; display: grid; grid-template-columns: 5rem minmax(0, 20rem) minmax(0, 1fr) 3rem; column-gap: clamp(1.25rem, 3.2vw, 3.25rem); align-items: center; min-height: 8.25rem; padding: 1.1rem 1.1rem 1.1rem 2.1rem; color: var(--ink); text-decoration: none; transition: background-color 240ms ease; -webkit-tap-highlight-color: transparent; }
.care__row:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 1rem; }
.care__fig { position: relative; display: block; width: 5rem; height: 6rem; }
.care__arch { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 10%; border-radius: 999px 999px .7rem .7rem; background: var(--aub-2); box-shadow: inset 0 0 0 1px rgba(232, 181, 82, .8), 0 14px 18px -12px rgba(43, 16, 48, .55); transition: transform 460ms var(--ease-out); }
.care__arch::before { content: ""; position: absolute; inset: .26rem .26rem auto .26rem; height: 64%; border: 1px solid rgba(232, 181, 82, .3); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.care__arch .lottie { width: 74%; aspect-ratio: 1; }
.care__flower { position: absolute; left: -40%; bottom: -11%; height: 58%; width: auto; max-width: none; filter: drop-shadow(0 6px 7px rgba(43, 16, 48, .34)); transform: rotate(-14deg); transform-origin: 60% 80%; transition: transform 560ms var(--ease-spring); }
.care__flower--tall { left: -18%; height: 90%; transform: rotate(-20deg); }
.care__name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.1vw, 1.875rem); line-height: 1.12; letter-spacing: -.004em; color: var(--purple); text-wrap: balance; }
.care__line { max-width: 37rem; font-size: 1.125rem; line-height: 1.5; color: var(--ink-soft); }
.care__go { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid rgba(78, 26, 88, .4); border-radius: 50%; color: var(--purple); transition: transform 380ms var(--ease-out), background-color 220ms ease, color 220ms ease, border-color 220ms ease; }
.care__go svg { width: 1.15rem; height: 1.15rem; }
.care__row:active .care__arch { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .care__row:hover { background-color: #FFFDF9; }
  .care__row:hover .care__arch { transform: translateY(-3px); }
  .care__row:hover .care__flower { transform: rotate(6deg) scale(1.16); }
  .care__row:hover .care__flower--tall { transform: rotate(-4deg) scale(1.12); }
  .care__row:hover .care__go { transform: translateX(.3rem); background-color: var(--purple); border-color: var(--purple); color: var(--cream); }
}
.care__after { margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.care .stem--k { right: -7.5rem; bottom: -15rem; height: 33rem; transform: rotate(-31deg); transform-origin: 50% 100%; z-index: 3; }
@media (max-width: 1099px) {
  .care__row { grid-template-columns: 5rem minmax(0, 1fr) 3rem; grid-template-areas: "fig name go" "fig line go"; row-gap: .45rem; align-content: center; }
  .care__fig { grid-area: fig; align-self: center; }
  .care__name { grid-area: name; align-self: end; }
  .care__line { grid-area: line; align-self: start; }
  .care__go { grid-area: go; align-self: center; }
}
@media (max-width: 899px) {
  .care .stem--k { display: none; }
}
@media (max-width: 559px) {
  .care__row { grid-template-columns: 4.25rem minmax(0, 1fr); grid-template-areas: "fig name" "fig line"; column-gap: 1.1rem; padding: 1.4rem .25rem 1.5rem 1.1rem; }
  .care__fig { width: 4.25rem; height: 5.1rem; align-self: start; margin-top: .2rem; }
  .care__go { display: none; }
  .care__name { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .22em; }
}
@media (prefers-reduced-motion: reduce) {
  .care__arch, .care__flower, .care__go { transition: none; }
}

/* ==========================================================================
   6. Where you would work
   ========================================================================== */
.where { z-index: 1; padding-top: calc(var(--sec-y) + 1rem); }
.where .sec__head { max-width: 58rem; }
.where__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5.4fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.where__big { font-family: var(--serif); font-size: clamp(1.625rem, 2.7vw, 2.5rem); line-height: 1.24; color: var(--cream); }
.where__big b { font-weight: 400; color: var(--gold-light); }
.where .prose { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line-gold); }
.where__lead { font-size: var(--fs-lead); color: var(--cream); }

/* the two offices as two doors */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.9rem, 1.6vw, 1.5rem); margin-top: 2rem; }
.door { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 22rem; padding: 3.25rem clamp(1rem, 1.6vw, 1.5rem) 1.75rem; border-radius: 999px 999px 1.25rem 1.25rem; background: var(--cream); color: var(--ink); text-align: center; box-shadow: 0 40px 60px -40px rgba(0, 0, 0, .8); }
.door::before { content: ""; position: absolute; inset: .6rem .6rem auto .6rem; height: 62%; border: 1px solid rgba(200, 144, 48, .6); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.door:nth-child(2) { margin-top: 2.5rem; margin-bottom: -2.5rem; }
.door__icon { width: 5.25rem; height: 5.25rem; }
.door p { margin-top: 1.1rem; font-size: 1.0625rem; line-height: 1.5; }
.door strong { display: block; margin-bottom: .55rem; font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 1.8vw, 1.625rem); line-height: 1.15; color: var(--purple); }
@media (max-width: 899px) {
  .where__grid { grid-template-columns: minmax(0, 1fr); }
  .where { padding-bottom: calc(var(--sec-y) + 2.5rem); }
}
@media (max-width: 479px) {
  .doors { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .door, .door:nth-child(2) { min-height: 0; margin: 0; padding: 2.6rem 1.25rem 1.6rem; border-radius: 9rem 9rem 1.25rem 1.25rem; }
  .door::before { height: 8.4rem; border-radius: 8.4rem 8.4rem 0 0; }
  .where { padding-bottom: var(--sec-y); }
}

/* ==========================================================================
   7. How to apply (the shared four steps) and its closing line
   ========================================================================== */
.how__end { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(1.75rem, 3vw, 2.5rem); border-top: 1px solid rgba(200, 144, 48, .55); }
.how__end p { flex: 1 1 22rem; max-width: 41rem; font-size: var(--fs-lead); }
@media (max-width: 559px) {
  .how__end .btn { width: 100%; }
}

/* ==========================================================================
   8. The application form (a preview: nothing is sent)
   ========================================================================== */
.appform { z-index: 1; padding-bottom: calc(var(--sec-y) + 1rem); background: radial-gradient(52rem 40rem at 10% 88%, rgba(112, 56, 112, .5), transparent 70%), linear-gradient(180deg, var(--aub) 0%, var(--aub-2) 100%); }
.appform__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.appform__copy { position: relative; z-index: 2; }
.appform__lead { margin-top: 1.5rem; max-width: 30rem; font-size: var(--fs-lead); }
.appform__scene { position: relative; margin-top: clamp(3rem, 6vw, 5rem); padding-left: clamp(4.5rem, 7.5vw, 7rem); }
.appform__scene .archbox { z-index: 1; }
.appform__scene .stem { bottom: -4.5rem; transform-origin: 50% 100%; z-index: 2; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 98%); mask-image: linear-gradient(180deg, #000 78%, transparent 98%); }
.appform__scene .stem:nth-of-type(1) { left: -2.25rem; height: 25rem; transform: rotate(-11deg); z-index: 0; }
.appform__scene .stem:nth-of-type(2) { left: -.75rem; height: 21rem; transform: rotate(7deg); }
/* the heading and the team stay beside the form while it is filled in, but only in a window
   tall enough to show the whole column under the pinned header (about 38rem of column) */
@media (min-width: 1024px) and (min-height: 50rem) {
  .appform__copy { position: sticky; top: calc(var(--header-h) + 2rem); }
}
@media (max-width: 1023px) {
  .appform__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .appform__scene { margin-top: 2.5rem; padding-left: 3.75rem; max-width: 30rem; }
  .appform__scene .stem:nth-of-type(1) { left: -2.5rem; height: 19rem; }
  .appform__scene .stem:nth-of-type(2) { left: -1.25rem; height: 16rem; }
  .appform .formcard { margin-top: 3.5rem; }
}

/* yes or no: two large choices */
.yn { gap: .55rem; }
.yn__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; max-width: 23rem; }
.yn__opt { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.field .yn__opt input { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 999px; background: none; box-shadow: none; cursor: pointer; }
.yn__opt span { display: flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3.5rem; padding: 0 1.25rem; border: 1px solid rgba(78, 26, 88, .42); border-radius: 999px; background: #fff; font-size: 1.125rem; font-weight: 600; color: var(--purple); pointer-events: none; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.yn__opt span::before { content: ""; flex: none; width: 1.05rem; height: 1.05rem; border: 1.5px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 3px #fff; transition: background-color 200ms ease, box-shadow 200ms ease; }
.yn__opt input:checked + span { background: var(--purple); border-color: var(--purple); color: var(--cream); }
.yn__opt input:checked + span::before { background: var(--gold-light); border-color: var(--gold-light); box-shadow: inset 0 0 0 3px var(--purple); }
.field .yn__opt input:focus-visible { box-shadow: none; }
.yn__opt input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 3px; }
.yn__opt:active span { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .yn__opt:hover input:not(:checked) + span { border-color: var(--purple); background: #FBF6FB; }
}

/* errors sit under their field; a field keeps its own height when its neighbour grows */
#apply-form .field { align-content: start; }
.field__err { display: flex; align-items: flex-start; gap: .5rem; font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--burgundy); }
.field__err::before { content: "!"; flex: none; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; margin-top: .08rem; border-radius: 50%; background: var(--burgundy); color: #fff; font-size: .8125rem; font-weight: 800; line-height: 1; }
.field__err--full { grid-column: 1 / -1; margin-top: -.45rem; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--burgundy); box-shadow: 0 0 0 1px var(--burgundy); }
.consent input[aria-invalid="true"] { border-color: var(--burgundy); box-shadow: 0 0 0 1px var(--burgundy); }
.form__alert { grid-column: 1 / -1; padding: .95rem 1.2rem; border: 1px solid var(--burgundy); border-radius: 1rem; background: rgba(96, 16, 32, .06); font-weight: 600; line-height: 1.45; color: var(--burgundy); }
.form__msg .tlink { white-space: nowrap; }

/* the long heading of the questions: a little smaller, so it sits in three lines */
@media (min-width: 1024px) {
  .faq__head h2 { font-size: clamp(2.375rem, 3.7vw, 3.5rem); }
}

/* ==========================================================================
   9. For families
   ========================================================================== */
.fam { z-index: 1; padding-bottom: calc(var(--sec-y) + 1rem); background: radial-gradient(48rem 36rem at 84% 64%, rgba(112, 56, 112, .46), transparent 70%), linear-gradient(180deg, var(--aub) 0%, var(--aub-2) 100%); }
.fam__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.fam h2 { margin-bottom: 1.75rem; }
.fam .lead { max-width: 41rem; }
.fam .actions { margin-top: 2.25rem; }
.fam__art { position: relative; justify-self: center; width: min(100%, 20rem); }
.fam__art .arch { aspect-ratio: 4 / 5; }
.fam__art .stem { left: -19%; bottom: -8%; height: 92%; transform: rotate(-8deg); transform-origin: 50% 100%; z-index: 3; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 99%); mask-image: linear-gradient(180deg, #000 80%, transparent 99%); }
@media (max-width: 899px) {
  .fam__grid { grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
  .fam__art { width: min(62%, 16rem); }
  .fam .actions .btn { width: 100%; }
}
