/*
 * The Nursery: front-end styles.
 * Everything visual reads from CSS custom properties printed by inc/design-tokens.php
 * (palette --c-*, roles --color-*, type scale --fs/--fw/--lh/--ff-*, layout --container etc.).
 * Edit values in Dashboard > Theme Settings, not here.
 */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
.hero__inner > *, .feature > *, .columns > *, .block > * { min-width: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--color-page); color: var(--color-text);
  font: var(--fw-body) var(--fs-body)/var(--lh-body) var(--ff-body);
}
img, svg, video, iframe { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--c-white); color: var(--c-ink); padding: .75rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid currentColor; opacity: .2; }

/* ---------- Type scale (semantic tag and .t-* utility share one definition) ---------- */
h1, .t-h1, h2, .t-h2, h3, .t-h3, h4, .t-h4, h5, .t-h5, h6, .t-h6, .t-display, .t-lead, .t-small { margin-bottom: .5em; }
.t-display { font: var(--fw-display) var(--fs-display)/var(--lh-display) var(--ff-display); letter-spacing: -.01em; }
h1, .t-h1 { font: var(--fw-h1) var(--fs-h1)/var(--lh-h1) var(--ff-h1); }
h2, .t-h2 { font: var(--fw-h2) var(--fs-h2)/var(--lh-h2) var(--ff-h2); }
h3, .t-h3 { font: var(--fw-h3) var(--fs-h3)/var(--lh-h3) var(--ff-h3); }
h4, .t-h4 { font: var(--fw-h4) var(--fs-h4)/var(--lh-h4) var(--ff-h4); }
h5, .t-h5 { font: var(--fw-h5) var(--fs-h5)/var(--lh-h5) var(--ff-h5); }
h6, .t-h6 { font: var(--fw-h6) var(--fs-h6)/var(--lh-h6) var(--ff-h6); text-transform: uppercase; letter-spacing: .08em; }
.t-lead { font: var(--fw-lead) var(--fs-lead)/var(--lh-lead) var(--ff-lead); }
.t-small, .meta { font: var(--fw-small) var(--fs-small)/var(--lh-small) var(--ff-small); }
.meta { opacity: .85; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--container) + 2rem); margin-inline: auto; padding-inline: 1.25rem; }
.wrap--narrow { max-width: calc(var(--narrow) + 2.5rem); }
.section { padding-block: var(--section-y); }
/* Consecutive sections on the plain page background share one gap instead of stacking two paddings */
.section:not(.has-surface) + .section:not(.has-surface) { padding-top: 0; }
.has-surface { background: var(--section-bg); color: var(--section-fg); }
.section__title { margin-bottom: 1.5rem; }
.stack > * + * { margin-top: 1rem; }
.cols-2 { display: grid; gap: 2rem; }
@media (min-width: 768px) { .cols-2 { grid-template-columns: 1fr 1fr; } }

.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose a { font-weight: 700; }
.prose img { height: auto; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; }

/* ---------- Buttons, links, pills ---------- */
.button, .chip {
  display: inline-flex; align-items: center; gap: .6em; cursor: pointer; text-decoration: none;
  font: 800 var(--fs-small)/1 var(--ff-h5); padding: .9rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--color-accent); color: var(--color-on-accent);
}
.button:hover { filter: brightness(1.15); }
.button--ghost { background: transparent; color: inherit; border-color: currentColor; }
.has-surface .button:not(.button--ghost) { background: var(--section-fg); color: var(--section-bg); }
.link-arrow { display: inline-flex; align-items: center; gap: .6em; font-weight: 800; font-family: var(--font-heading); margin-top: 1.25rem; }
.link-arrow .icon { width: 1.5rem; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.icon { width: 1em; height: 1em; flex: none; }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin-top: .75rem; }
.pills li { background: var(--color-accent); color: var(--color-on-accent); border-radius: 999px; padding: .15rem .7rem; font: 700 .8125rem/1.5 var(--font-heading); }
.hero .pills li, .has-surface .pills li { background: transparent; border: 1px solid currentColor; color: inherit; }
.callout { background: var(--c-stone); color: var(--c-ink); padding: 1.5rem; border-radius: var(--radius); margin-top: 2rem; }

/* ---------- Header / navigation ---------- */
.site-header { --header-h: 62px; position: sticky; top: 0; z-index: 50; min-height: var(--header-h); background: var(--color-header); color: var(--color-on-header); transition: box-shadow .25s; }
.admin-bar .site-header { top: 32px; }
/* Same solid header on every page; a soft shadow appears once the page is scrolled. */
.site-header.is-scrolled { box-shadow: 0 2px 16px rgb(0 0 0 / .12); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 62px; }
.site-header__logo { display: block; line-height: 0; }
.site-header__logo img { width: 130px; height: auto; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: .75rem; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 24px; height: 2px; background: currentColor; content: ''; position: relative; transition: transform .2s, opacity .2s; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.site-nav__list { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav__item { position: relative; }
.site-nav__link { display: inline-flex; align-items: center; gap: .35em; background: none; border: 0; color: inherit; cursor: pointer; font: 800 1.0625rem/1.2 var(--font-heading); text-decoration: none; padding: .9rem 0; }
.site-nav__link:hover { text-decoration: underline; text-underline-offset: .3em; }
.site-nav__link[aria-current="page"], .site-nav__link[data-current] { text-decoration: underline; text-underline-offset: .3em; }
.site-nav__toggle .icon { width: .7em; transition: transform .2s; opacity: .8; }
.site-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.site-nav__sub { display: none; list-style: none; margin: 0; padding: .75rem 0; position: absolute; top: 100%; left: -1rem; min-width: 15rem; background: var(--color-page); color: var(--color-text); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 12px 32px rgb(0 0 0 / .18); }
.site-nav__sub.is-open { display: block; }
.site-nav__sub a { display: block; padding: .55rem 1.25rem; text-decoration: none; font-weight: 700; }
.site-nav__sub a:hover { background: var(--c-stone); }
.site-nav__sub li:first-child a { border-bottom: 1px solid rgb(0 0 0 / .1); font-weight: 900; }

@media (max-width: 899px) {
  .nav-toggle { display: block; position: relative; z-index: 60; }
  .site-nav { position: fixed; inset: 0; background: var(--color-page); color: var(--color-text); padding: 5.5rem 1.5rem 2rem; overflow-y: auto; transform: translateY(-100%); visibility: hidden; transition: transform .3s, visibility .3s; z-index: 55; }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link { width: 100%; justify-content: space-between; font-size: 1.25rem; padding: 1rem 0; border-bottom: 1px solid rgb(0 0 0 / .1); }
  .site-nav__sub { position: static; box-shadow: none; min-width: 0; padding: .25rem 0 .75rem 1rem; }
}
@media (min-width: 900px) { .site-nav { display: block !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: max(30rem, calc(var(--hero-min) - 62px)); padding-block: 3rem 4.5rem; }
/* Cursor string (see main.js): canvas overlay; native cursor hidden while the string is active, except over controls */
.hero__string { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.hero.has-string { cursor: none; }
.hero.has-string :is(a, button, input, select, textarea, summary, label) { cursor: pointer; }
.hero--compact { min-height: max(22rem, 50vh); padding-block: 4rem 5rem; }
/* Phones, full-height heroes only: stop short of the fold so the next section peeks in, and sit the text low in the hero. */
@media (max-width: 767px) {
  .hero:not(.hero--compact) { min-height: max(26rem, calc(100svh - 62px - 5rem)); align-items: flex-end; padding-block: 3rem 3.5rem; }
}
.hero__inner { pointer-events: none; position: relative; z-index: 2; display: grid; gap: 2rem; align-items: center; }
.hero__text { pointer-events: auto; transition: transform .3s ease; transform-origin: left center; }
.hero.has-next .hero__text { cursor: pointer; }
.hero.has-next .hero__text:hover { transform: scale(1.02); }
/* Bouncing down arrow, revealed while the hero text is hovered, pointing at the content below the fold */
.hero__down { position: absolute; left: 50%; bottom: 2.5rem; z-index: 3; width: 1.75rem; margin-left: -.875rem; opacity: 0; transform: translateY(-.5rem); transition: opacity .3s, transform .3s; pointer-events: none; }
.hero__down .icon { display: block; width: 100%; height: auto; }
.hero:has(.hero__text:hover) .hero__down { opacity: 1; transform: none; }
.hero:has(.hero__text:hover) .hero__down .icon { animation: hero-bounce 1s ease-in-out infinite; }
@keyframes hero-bounce { 50% { transform: translateY(.6rem); } }
.hero__title { font-size: clamp(3rem, 2rem + 5vw, 6.5rem); font-weight: 800; line-height: .95; letter-spacing: -.03em; margin-bottom: .25em; max-width: 12ch; text-wrap: balance; }
.hero--compact .hero__title { font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.hero--compact .hero__title, .hero--standard .hero__title { max-width: 14ch; }
.hero__intro { max-width: 46rem; font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem); line-height: 1.35; }
.hero__intro p + p { margin-top: .75em; }
/* Art hero. Phones and tablets: text always on the left, illustration sits behind it (own size/position controls).
   Laptops and up (1024px): illustration fills one half, bleeding off its edge; text keeps to the other. */
.hero--art .hero__inner { display: block; }
.hero__art { position: absolute; inset: 0; z-index: 1; }
.hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: right center; transform: translate(var(--m-x, 0%), var(--m-y, 0%)) scale(var(--m-scale, 1.5)); transform-origin: right center; }
.hero--art::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--section-bg, transparent) 65%, transparent) 10%, transparent 85%); }
.hero--art .hero__text { max-width: 36rem; }
@media (min-width: 1024px) {
  .hero--art::after { content: none; }
  .hero--art { align-items: stretch; }
  .hero--art .hero__inner { display: flex; align-items: center; }
  .hero--art .hero__text { max-width: min(44rem, 48%); }
  .hero--art .hero__title { max-width: 10ch; }
  .hero__art { inset: 0 0 0 auto; width: 60%; }
  .hero__art--left { inset: 0 auto 0 0; }
  .hero__art img { transform: translate(var(--art-x, 0), var(--art-y, 0)) scale(var(--art-scale, 1)); }
  .hero__art--left img { object-position: left center; transform: translate(calc(var(--art-x, 0%) * -1), var(--art-y, 0)) scale(var(--art-scale, 1)); transform-origin: left center; }
  .hero--art:has(.hero__art--left) .hero__inner { justify-content: flex-end; }
}
.hero__cover, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* Tint over cover photos and background video; colour chosen per page (Hero > Photo overlay). */
.hero--overlay-teal { --hero-tint: var(--c-teal); }
.hero--overlay-teal-dark { --hero-tint: var(--c-teal-dark); }
.hero--overlay-coral { --hero-tint: var(--c-coral); }
.hero--overlay-cream { --hero-tint: var(--c-cream); --hero-a1: 60%; --hero-a2: 85%; }
.hero--overlay-white { --hero-tint: var(--c-white); --hero-a1: 60%; --hero-a2: 85%; }
.hero--cover::before, .hero:has(.hero__video)::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, color-mix(in srgb, var(--hero-tint, var(--c-teal)) var(--hero-a1, 40%), transparent), color-mix(in srgb, var(--hero-tint, var(--c-teal)) var(--hero-a2, 78%), transparent)); }
.hero--overlay-none::before { content: none !important; }
.hero__badges { position: absolute; right: 1.5rem; bottom: 1.25rem; z-index: 3; display: flex; align-items: center; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.hero__badges img { width: auto; height: 2.5rem; }
.hero__badges li:last-child img { height: 3.5rem; }
.hero__pause { position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 3; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid currentColor; background: rgb(0 0 0 / .35); color: #fff; cursor: pointer; display: grid; place-items: center; }
.hero__pause .icon { width: .8rem; }

/* ---------- Feature panels (split colour / image) ---------- */
.section--feature, .section--feature-slider { padding: 0; }
.feature { display: grid; min-height: 28rem; }
@media (min-width: 768px) { .feature:not(.feature--solo) { grid-template-columns: 1fr 1fr; } .feature--reverse .feature__media { order: -1; } }
.feature__text { display: flex; align-items: center; padding: var(--section-y) 1.25rem; }
.feature__text-inner { width: 100%; max-width: calc(var(--container) / 2 - 1rem); margin-left: auto; padding-right: 1.5rem; }
.feature--reverse .feature__text-inner { margin-left: 0; margin-right: auto; padding-left: 1.5rem; padding-right: 0; }
.feature--solo .feature__text-inner { max-width: var(--narrow); margin-inline: auto; }
.feature__list { list-style: none; padding: 0; margin: 0 0 1.25rem; font-weight: 700; }
.feature__list li + li { margin-top: .35rem; }
.feature__media { position: relative; overflow: hidden; background: var(--panel-bg, #1f1f1f); color: var(--panel-fg, #fff); min-height: 20rem; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__media--link { display: block; color: var(--panel-fg, #fff); text-decoration: none; }
.feature__media--link img { transition: transform .6s; }
.feature__media--link:hover img, .feature__media--link:focus-visible img { transform: scale(1.05); }
.feature__media--link .feature__caption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.feature__caption { position: absolute; inset: auto 0 0; margin: 0; padding: 1rem 1.5rem; background: var(--panel-bg, #1f1f1f); color: var(--panel-fg, #fff); }

/* ---------- Slider ---------- */
.slider { position: relative; }
.slider__track { list-style: none; margin: 0; padding: 0; display: grid; }
.slider__slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .35s; }
.slider__slide.is-active { visibility: visible; opacity: 1; }
.no-js .slider__slide:first-child, .slider:not([data-ready]) .slider__slide:first-child { visibility: visible; opacity: 1; }
.slider__controls { position: absolute; inset: auto 0 .75rem 0; display: flex; align-items: center; justify-content: center; gap: 1rem; pointer-events: none; }
.slider__controls > * { pointer-events: auto; }
.slider__btn { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: rgb(255 255 255 / .85); color: var(--c-ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.slider__btn .icon { width: .7rem; }
.slider__dots { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.slider__dots button { width: .85rem; height: .85rem; border-radius: 50%; border: 2px solid currentColor; background: transparent; padding: 0; cursor: pointer; }
.slider__dots button[aria-current="true"] { background: currentColor; }

/* ---------- Columns, text + image, blocks ---------- */
.columns { display: grid; gap: 2.5rem; }
/* Linked columns act as one group: the whole column is clickable, the title underlines and the text shifts from cream to white on hover */
.columns__col { position: relative; transition: color .2s; }
.columns__col:has(.link-arrow) { cursor: pointer; color: var(--c-cream, #f4e0d8); }
.columns__col .link-arrow::after { content: ''; position: absolute; inset: 0; }
.columns__col:has(.link-arrow):hover { color: var(--c-white, #fff); }
.columns__col:hover > :is(h2, h3) { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }
.columns__col:hover .link-arrow .icon { transform: translateX(4px); }
@media (min-width: 768px) { .columns { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 3rem; } }
.text-image { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .text-image { grid-template-columns: 1fr 1fr; } .text-image--right .text-image__media { order: 2; } }
.blocks { display: grid; }
.block { display: grid; }
.block__media img { width: 100%; height: 100%; object-fit: cover; min-height: 16rem; }
.block__text { padding: 2.5rem 1.25rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { .block { grid-template-columns: 1fr 1fr; } .block--reverse .block__media { order: 2; } .block__text { padding: 3rem 4rem; } }
.psr { display: grid; gap: 2rem; }
@media (min-width: 768px) { .psr { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.testimonial { font-style: normal; }
.testimonial p + p { font-size: var(--fs-body); margin-top: 1rem; font-weight: 800; }
.figure img, .figure video { width: 100%; height: auto; }
.figure figcaption { margin-top: .5rem; }
.embed iframe { width: 100%; aspect-ratio: 16/9; height: auto; }
.splash { position: relative; padding-block: 6rem; color: #fff; }
.splash__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.splash::before { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / .45); z-index: 1; }
.splash__inner { position: relative; z-index: 2; max-width: 40rem; }
.splash--right .splash__inner { margin-left: auto; }
.milestones { list-style: none; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .milestones { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); } }
.milestone { border-top: 4px solid currentColor; padding-top: 1rem; }

/* ---------- Cards and grids ---------- */
.card-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--c-white); color: var(--c-ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-stone); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.25rem; flex: 1; }
.card__title { margin-bottom: .35rem; }
.card__link { text-decoration: none; }
.card__link::after { content: ''; position: absolute; inset: 0; }
.card__link:hover { text-decoration: underline; }
.card--row { flex-direction: row; box-shadow: none; border: 1px solid rgb(0 0 0 / .12); }
/* Featured article rows: flush, full-bleed colour; the image sits in a circle that bleeds off the screen edge. */
.section--article-features { padding: 0; }
.feature-row { position: relative; overflow: hidden; padding-block: 3.5rem 0; }
.feature-row__text { max-width: 34rem; padding-bottom: 2rem; }
.feature-row__circle { position: relative; width: min(24rem, 80vw); aspect-ratio: 1; margin: 0 -3rem -4rem auto; border-radius: 50%; overflow: hidden; background: rgb(255 255 255 / .35); }
.feature-row__circle img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
@media (min-width: 768px) {
  .feature-row { min-height: 30rem; padding-block: 5rem; display: flex; align-items: center; }
  .feature-row__inner { width: 100%; }
  .feature-row__text { max-width: min(36rem, 52%); padding-bottom: 0; }
  .feature-row__circle { position: absolute; top: 50%; right: -7rem; width: min(38rem, 46vw); margin: 0; transform: translateY(-50%); }
  .feature-row--flip .feature-row__text { margin-left: auto; }
  .feature-row--flip .feature-row__circle { right: auto; left: -7rem; }
}
.feature-row a { text-decoration-thickness: 1px; }
.feature-row__title { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin-bottom: .6em; }
.feature-row__title a { text-decoration: none; text-decoration-thickness: 3px; text-underline-offset: .12em; }
.feature-row__title a:hover { text-decoration: underline; }

.logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 1rem; }
.logos li { background: var(--c-white); border-radius: var(--radius); display: grid; place-items: center; height: 7rem; padding: 1rem; overflow: hidden; }
.logos img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

.team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
@media (min-width: 768px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .team { grid-template-columns: repeat(4, 1fr); } }
.team-group + .team-group { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid currentColor; }
.team-group__title { margin: 0 0 1.5rem; }
.slider--team .slider__slide { padding-bottom: .5rem; }
.slider--team .slider__controls { position: static; margin-top: 2rem; color: inherit; }
.slider--team .slider__btn { background: var(--c-ink); color: var(--c-white); }
.person { text-align: center; }
.person__photo { width: min(100%, 11rem); aspect-ratio: 1; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; background: var(--c-stone); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__name { margin-bottom: .1rem; }
.person__role { opacity: .85; }

/* carousel (case studies) */
.carousel { display: flex; align-items: center; gap: .75rem; }
.carousel__track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; padding-block: .25rem; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > li { flex: 0 0 min(100%, 34rem); scroll-snap-align: start; }
.no-js .carousel .slider__btn { display: none; }

/* filter */
.filter { margin-bottom: 1.5rem; }
.filter[hidden] { display: none; }
.filter__toggle { margin-left: auto; display: flex; background: var(--c-white); color: var(--c-ink); border-color: transparent; }
.filter__panel { margin-top: 1rem; }
.filter__list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { background: transparent; color: inherit; border-color: currentColor; padding: .4rem .9rem; font-size: .875rem; }
.chip[aria-pressed="true"] { background: var(--section-fg, var(--c-ink)); color: var(--section-bg, var(--c-white)); }
[hidden] { display: none !important; }

/* ---------- Forms ---------- */
.form p { margin-bottom: 1.1rem; }
.form__grid { display: grid; gap: 0 1.5rem; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font: 800 var(--fs-small)/1.3 var(--font-heading); margin-bottom: .35rem; }
.form input[type=text], .form input[type=email], .form input[type=file], .form textarea {
  width: 100%; padding: .75rem .9rem; border: 0; border-radius: var(--radius); background: var(--c-white); color: var(--c-ink); font: inherit;
}
.form__check { display: flex; gap: .6rem; align-items: flex-start; }
.form__check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; }
.form__check label { font-weight: 400; font-family: var(--font-body); margin: 0; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-weight: 700; background: var(--c-white); color: var(--c-ink); border-left: 6px solid var(--c-mint); }
.notice--error { border-left-color: var(--c-coral); }
.map { width: 100%; height: 28rem; border: 0; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-footer); color: var(--color-on-footer); padding-block: 4rem; }
.site-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1fr 1.2fr 1fr; align-items: start; } }
.site-footer address { margin-top: 1rem; }
.site-footer__contact p { margin: 0; }
.site-footer__logos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: center; }
.site-footer__logos img { height: 3.25rem; width: auto; max-width: 8rem; object-fit: contain; }
.site-footer__legal { text-align: left; }
@media (min-width: 768px) { .site-footer__legal { text-align: right; } }
.site-footer__links { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.social { list-style: none; padding: 0; display: flex; gap: 1rem; margin: 1.5rem 0 0; }
.social img { width: 1.75rem; height: auto; }

.back-link { display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.25rem; font-weight: 800; font-family: var(--font-heading); }
.back-link .icon { width: 1.5rem; transform: scaleX(-1); transition: transform .2s; }
.back-link:hover .icon { transform: scaleX(-1) translateX(4px); }
