/* ============================================================
   Andfoods — shared stylesheet
   Design tokens and global styles for all pages.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Matter Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/MatterSQTRIAL-Regular.woff2) format('woff2'),
       url(fonts/MatterSQTRIAL-Regular.woff) format('woff');
}
@font-face {
  font-family: 'Matter Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/MatterMonoTRIAL-Light.woff2) format('woff2'),
       url(fonts/MatterMonoTRIAL-Light.woff) format('woff');
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #eadfd2;
  --text: #511c06;
  --muted: #6f4f40;
  --brand: #511c06;
  --brand-dark: #351102;
  --border: #d8c7ba;
  --shadow: 0 24px 44px -34px rgba(53, 17, 2, .45);

  --header-h: 5.4rem;
  --radius-pill: 60px;
  --radius-lg: 50px;
  --radius-md: 22px;
  --radius-sm: 10px;

  --container-pad: 5%;
  --content-max: 1600px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overscroll-behavior-x: none;
}
body {
  font-family: 'Matter Sans', Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p { margin: 0; font-weight: 400; }
main { max-width: 1700px; margin: 0 auto; }
b, strong { font-weight: 400; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: 3.5rem 0;
}
.section--alt,
.section--soft { background: transparent; }

.eyebrow,
.team-section__label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
  line-height: 1.4;
  font-family: 'Matter Mono', 'Matter Sans', monospace;
  color: var(--muted);
  margin: 0 0 20px;
}
.eyebrow--light { color: #faf4efeb; }

.section-head {
  max-width: 78ch;
  margin-bottom: 2rem;
}
.section-head--left-half {
  width: 50%;
  max-width: none;
  padding-right: 10%;
}
.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.95rem);
  line-height: 1.07;
  letter-spacing: -.02em;
  margin-top: .5rem;
}
.section-head p {
  margin-top: .9rem;
  color: var(--muted);
  max-width: 64ch;
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ---------- Site header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 30px var(--container-pad) 1rem;
  transition: padding .25s ease, top .25s ease, background .25s ease;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-logo {
  height: 80px;
  width: auto;
  transition: height .25s ease;
}
.site-nav {
  display: flex;
  gap: 1.4rem;
}
.site-nav__link {
  font-size: .95rem;
  color: var(--brand-dark);
  padding: .5rem .25rem;
  transition: color .2s ease, opacity .2s ease;
}
.site-nav__link:hover { opacity: .65; }
.site-nav__link--active { color: var(--brand); }

.site-header--scrolled {
  top: 0;
  padding-top: 10px;
  padding-bottom: 15px;
  background: transparent;
}
.site-header--scrolled::before {
  content: "";
  position: absolute;
  inset: 0 0 -24px 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}
.site-header--scrolled .site-header__inner { position: relative; z-index: 1; }
.site-header--scrolled .brand-logo { height: 60px; }
body:not(.home) .brand-logo { height: 60px; }

/* Home page: white nav + logo over the hero; revert when scrolled */
body.home .site-header:not(.site-header--scrolled) .site-nav__link {
  color: #fff;
  background: transparent;
}
body.home .site-header:not(.site-header--scrolled) .brand-logo {
  filter: brightness(0) invert(1);
}
body.home .site-header:not(.site-header--scrolled) {
  padding-top: 40px;
}

/* ---------- Mobile nav ---------- */
.menu-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand-dark);
  position: relative;
}
.menu-toggle span::before { content: ""; position: absolute; top: -6px; left: 0; }
.menu-toggle span::after  { content: ""; position: absolute; top: 6px;  left: 0; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: min(88vw, 420px);
  height: 100dvh;
  background: var(--bg);
  padding: 2rem 1.5rem;
  z-index: 60;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
  flex-direction: column;
  gap: 1.2rem;
}
.mobile-menu--open { transform: translateX(0); }
.mobile-menu__close {
  align-self: flex-end;
  width: 2.1rem; height: 2.1rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
}
.mobile-menu__link {
  display: block;
  padding: .78rem .2rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.1rem;
  color: var(--brand-dark);
}
.mobile-menu__link--active { color: var(--brand); }
.mobile-menu-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: #351102a6;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  z-index: 55;
}
.mobile-menu-backdrop--open { opacity: 1; pointer-events: auto; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  margin: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 80dvh;
  max-height: 80dvh;
  display: grid;
  align-items: end;
  color: #fff;
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #24140c40 0%, #24140c00 40%, #351102cc 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: clamp(5rem, 8vh, 7rem);
  padding-bottom: calc(5vw - 20px);
  padding-left: calc(5vw - 20px);
  padding-right: calc(5vw - 20px);
}
.hero-inner h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin-top: .6rem;
}

/* ---------- Sub-hero (all other pages) ---------- */
.sub-hero {
  position: relative;
  margin: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 50dvh;
  max-height: 50dvh;
  display: grid;
  align-items: end;
  color: #fff;
}
.sub-hero__image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.sub-hero__overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 18% 16%, #f2ece640, #f2ece600 42%),
              linear-gradient(130deg, #351102ad, #511c068c 46%, #351102cc);
}
.sub-hero__content {
  position: relative;
  z-index: 1;
  width: 50%;
  max-width: 760px;
  margin-left: 0;
  margin-right: auto;
  padding-top: clamp(5rem, 8vh, 7rem);
  padding-bottom: calc(5vw - 20px);
  padding-left: calc(5vw - 20px);
  padding-right: calc(5vw - 20px);
}
.sub-hero__content h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-top: .6rem;
}
.sub-hero__content p {
  margin-top: .9rem;
  color: #fcf5f0f2;
  font-size: 1.02rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface-soft); }

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.hero .btn--primary {
  background: #fff;
  color: var(--brand-dark);
}
.hero .btn--primary:hover {
  background: var(--surface-soft);
}
.hero .btn--ghost {
  color: #fff;
  border-color: #ffffff66;
}
.hero .btn--ghost:hover {
  background: #ffffff1a;
  border-color: #fff;
}

/* ---------- Team grid ---------- */
.team-section { padding: 4rem 0; }
.team-section__label {
  margin: 2.5rem 0 1.2rem;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}
.team-item {
  display: flex;
  flex-direction: column;
}
.team-item__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}
.team-item__name {
  margin-top: .8rem;
  font-size: 1.05rem;
  color: var(--brand-dark);
}
.team-item__role {
  color: var(--muted);
  font-size: .9rem;
  margin-top: .2rem;
}
.team-item__bio {
  margin-top: .6rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}
.team-item details {
  margin-top: .55rem;
}
.team-item details summary {
  cursor: pointer;
  list-style: none;
  font-size: .85rem;
  color: var(--brand);
  user-select: none;
  padding: .25rem 0;
}
.team-item details summary::-webkit-details-marker { display: none; }
.team-item details summary::after {
  content: "Read bio +";
}
.team-item details[open] summary::after {
  content: "Close −";
}
.team-item details[open] summary { margin-bottom: .4rem; }

/* ---------- Recipe detail ---------- */
.recipe-image {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  align-self: start;
}
.recipe-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  width: 80%;
  margin: 20px 30px;
  margin-left: 0px;
  display: block;
}
.recipe-copy { padding: 0 5%; }
.recipe-copy > p:first-of-type {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.2;
  font-size: 1.3rem;
}

@media (max-width: 1060px) {
  .recipe-image { position: static; top: auto; }
  .recipe-image img { width: 100%; margin: 0 0 1rem; }
  .recipe-copy > p:first-of-type { padding-right: 0; }
}

/* ---------- Story / copy grids ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.story-copy h2 {
  font-size: clamp(2rem, 3.4vw, 2.95rem);
  line-height: 1.07;
  max-width: 18ch;
}
.story-copy p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.78;
  font-size: 1.02rem;
  padding-right: 20%;
}

.story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.story-split__text h2 {
  font-size: clamp(2rem, 3.4vw, 2.95rem);
  line-height: 1.07;
  margin-top: .5rem;
}
.story-split__text p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.78;
  font-size: 1.02rem;
}
.pill-list--stacked {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
}

.story-centered {
  width: 50%;
  margin-inline: auto;
  text-align: center;
}
.story-centered h2 {
  font-size: 5rem;
  line-height: 0.8;
  margin-top: .5rem;
}
.story-centered p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.1;
  font-size: 1.65rem;
  padding: 20px;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}
.pill {
  display: inline-block;
  padding: .9rem 1.5rem;
  border-radius: 15px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -.005em;
}
.pill--white  { background: var(--brand-dark); color: #ffffff; }
.pill--pink   { background: #f2d4cd; color: var(--brand-dark); }
.pill--purple { background: #C591F5; color: #ffffff; }
.pill--cream  { background: #ede1d3; color: var(--brand-dark); }

.pill-list--left { justify-content: flex-start; }
.pill--filter {
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: var(--surface-soft);
  color: var(--brand-dark);
  padding: .6rem 1.2rem;
  font-size: 1rem;
  transition: background .2s ease, color .2s ease;
}
.pill--filter[aria-pressed="true"] {
  background: var(--brand-dark);
  color: #fff;
}

/* ---------- Recipes ---------- */
.recipes-heading {
  font-size: clamp(1.4rem, 2.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--brand-dark);
  margin: 4rem 0 1.5rem;
  max-width: 30ch;
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.recipe-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.recipe-card[hidden] { display: none; }
.recipe-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-soft);
}
.recipe-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s ease;
}
.recipe-card .eyebrow {
  margin: 1rem 0 .4rem;
}
.recipe-card__title {
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--brand-dark);
}
.recipe-card:hover { transform: translateY(-4px); }
.recipe-card:hover img { transform: scale(1.06); }
.recipe-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}
@media (max-width: 1060px) {
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .recipe-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Applications horizontal scroller ---------- */
.applications-heading {
  font-size: clamp(2rem, 3.4vw, 2.95rem);
  line-height: 1.07;
  letter-spacing: -.02em;
  color: var(--brand-dark);
  margin-bottom: 2rem;
  text-align: left;
}
.recipe-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  contain: layout paint;
}
.recipe-scroller::-webkit-scrollbar { display: none; }
.recipe-scroller__track {
  display: flex;
  gap: 1.5rem;
  padding: .5rem 5% 2rem;
  width: max-content;
}
.recipe-scroller__track .recipe-card {
  flex: 0 0 clamp(240px, 22vw, 340px);
  scroll-snap-align: start;
}
@media (max-width: 600px) {
  .recipe-scroller__track .recipe-card { flex: 0 0 48vw; }
}

/* Infinite marquee (home-page applications scroller) */
.recipe-scroller:has(.recipe-scroller__track--marquee) {
  overflow: hidden;
  scroll-snap-type: none;
}
.recipe-scroller__track--marquee {
  width: max-content;
  padding-left: 5%;
  padding-right: 0;
  animation: recipe-marquee 60s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.recipe-scroller__track--marquee:hover,
.recipe-scroller__track--marquee:focus-within {
  animation-play-state: paused;
}
@keyframes recipe-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - .75rem)); }
}
@media (max-width: 720px) {
  /* Swap marquee for native swipe on mobile */
  .recipe-scroller:has(.recipe-scroller__track--marquee) {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .recipe-scroller__track--marquee {
    animation: none;
    width: max-content;
    transform: none;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .applications-section .container { padding-left: 20px; padding-right: 20px; }
  .recipe-scroller__track--marquee .recipe-card[aria-hidden="true"] { display: none; }
  .recipe-scroller__track--marquee .recipe-card { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .recipe-scroller__track--marquee { animation: none; }
}

/* ---------- Scroll-sync feature (images pinned left, text scrolls right) ---------- */
.scroll-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.scroll-feature__media {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  aspect-ratio: 1.06;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-soft);
}
.scroll-feature__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
.scroll-feature__image[data-scroll-image="0"] { opacity: 1; }

.scroll-feature__content {
  display: flex;
  flex-direction: column;
}
.scroll-feature__text {
  padding: 30vh 10% 30vh 0;
  opacity: 0.4;
  transition: opacity .4s ease;
}
.scroll-feature__image-mobile { display: none; }
.scroll-feature__text h2 {
  font-size: clamp(2rem, 3.4vw, 2.95rem);
  line-height: 1.07;
  letter-spacing: -.02em;
  margin-top: .5rem;
}
.scroll-feature__intro {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-top: .75rem;
  margin-bottom: 5rem;
}
.scroll-feature__text[data-active="true"] { opacity: 1; }
.scroll-feature__text h3 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.scroll-feature__body p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* ---------- Sticky-text feature (text pinned left, cards scroll right) ---------- */
.sticky-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.sticky-feature__text {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  align-self: start;
}
.sticky-feature__text h2 {
  font-size: clamp(2rem, 3.4vw, 2.95rem);
  line-height: 1.07;
  letter-spacing: -.02em;
  margin-top: .5rem;
}
.sticky-feature__text p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  padding-right: 10%;
}
.sticky-feature__cards {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.sticky-feature__cards .feature-card__image {
  aspect-ratio: 16 / 10;
}
.sticky-feature__cards .feature-card__title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-top: 1.2rem;
}
.feature-card__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.feature-card__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}
.feature-card__bullets li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: .6rem;
}
.feature-card__bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand);
}

/* Pill-style bullets (home + our-plants) */
body.home .feature-card__bullets,
body.our-plants .feature-card__bullets {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  color: inherit;
  font-size: inherit;
}
body.our-plants .feature-card__bullets {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
body.home .feature-card__bullets li,
body.our-plants .feature-card__bullets li {
  padding: .5rem 1rem;
  background: var(--surface-soft);
  color: var(--brand-dark);
  border-radius: 5px;
  font-size: .9rem;
  line-height: 1.3;
  margin: 0;
}
body.home .feature-card__bullets li::before,
body.our-plants .feature-card__bullets li::before { display: none; }

/* ---------- Feature grid (3-col, stacks on mobile) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.feature-card {
  display: flex;
  flex-direction: column;
}
.feature-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}
.feature-card__title {
  margin-top: 1rem;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--brand-dark);
}
.feature-card__text {
  margin-top: .6rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Feature split (alternating content + asset-grid rows) ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}
.feature-split:last-of-type { margin-bottom: 0; }
.feature-split--reversed .feature-split__content { order: 2; }

.feature-split__content { padding: 1rem 0; }
.feature-split__tag {
  display: inline-block;
  padding: .35rem .85rem;
  background: var(--surface-soft);
  color: var(--brand-dark);
  border-radius: 6px;
  font-size: .9rem;
  letter-spacing: .01em;
  margin-bottom: 1.2rem;
}
.feature-split__content h3 {
  font-size: clamp(2rem, 3.4vw, 2.95rem);
  line-height: 1.07;
  letter-spacing: -.02em;
}
.feature-split__content p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  padding-right: 10%;
}
.feature-split__link {
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--brand-dark);
  font-size: .95rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.feature-split__link:hover { border-bottom-color: var(--brand); }

.feature-split__assets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  gap: 1rem;
}
.feature-split__asset {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}
.feature-split__asset--lg {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 2;
}

@media (max-width: 1060px) {
  .feature-split {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
  }
  .feature-split--reversed .feature-split__content { order: 0; }
  .feature-split__content p { padding-right: 0; }
}

/* ---------- Content card (inset colored panel within container) ---------- */
.content-card {
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 4rem);
}
.content-card--pink { background: #F7D0D0; }
.content-card--brown {
  background: var(--brand-dark);
  color: #fff;
}
.content-card--brown h2,
.content-card--brown h3,
.content-card--brown p,
.content-card--brown .eyebrow,
.content-card--brown .split-card__text p { color: #fff; }

/* ---------- Contact form on brown card ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form-card {
  padding: clamp(2rem, 3vw, 2.75rem);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  color: #fff;
}
.contact-form label span {
  font-size: .85rem;
  color: #ffffffb3;
  letter-spacing: .01em;
}
.contact-form input,
.contact-form textarea {
  padding: .8rem 1rem;
  border: 1px solid #ffffff33;
  border-radius: 8px;
  background: #ffffff10;
  color: #fff;
  font: inherit;
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #ffffff80; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #fff;
  background: #ffffff1a;
}
.contact-form textarea { resize: vertical; }
.contact-form__submit {
  align-self: flex-start;
  background: #fff;
  color: var(--brand-dark);
  margin-top: .5rem;
}
.contact-form__submit:hover { background: var(--surface-soft); }

@media (max-width: 1060px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.split-card__text h2 {
  font-size: clamp(2rem, 3.4vw, 2.95rem);
  line-height: 1.07;
  letter-spacing: -.02em;
  margin-top: .5rem;
}
.split-card__text p {
  margin-top: 1.2rem;
  color: var(--brand-dark);
  font-size: 1.02rem;
  line-height: 1.7;
}
.split-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}
@media (max-width: 1060px) {
  .split-card { grid-template-columns: 1fr; }
}

/* ---------- CTA banner (pre-footer on every page) ---------- */
.cta-banner {
  margin: 20px var(--container-pad);
  border-radius: var(--radius-lg);
  background: var(--brand-dark);
  color: #fff;
  padding: clamp(2rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-banner__text { max-width: 760px; }
.cta-banner__text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-top: .5rem;
  color: #fff;
}
.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  flex-shrink: 0;
}
.cta-banner .btn--primary {
  background: #fff;
  color: var(--brand-dark);
}
.cta-banner .btn--primary:hover {
  background: var(--surface-soft);
}
.cta-banner .btn--ghost {
  color: #fff;
  border-color: #ffffff66;
}
.cta-banner .btn--ghost:hover {
  background: #ffffff1a;
  border-color: #fff;
}
@media (max-width: 820px) {
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 1.2rem 0 1.75rem;
  margin: 4rem var(--container-pad) 0;
  background: #F2ECE6;
  padding: 40px 5%;
  border-radius: 40px 40px 0px 0px;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  color: var(--muted);
  font-size: .9rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}
.footer-links a {
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--brand-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid { grid-template-columns: 1fr; }
  .story-copy p { padding-right: 0; }
}
@media (max-width: 820px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu { display: flex; }
  .mobile-menu-backdrop { display: block; }
  .sub-hero__content { width: 100%; }
}
@media (max-width: 1060px) {
  .feature-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .story-centered { width: 100%; }
  .story-split { grid-template-columns: 1fr; gap: 2rem; }
  .section-head--left-half { width: 100%; padding-right: 0; }
  .sticky-feature { grid-template-columns: 1fr; gap: 2.5rem; }
  .sticky-feature__text { position: static; }
  .feature-card__body { grid-template-columns: 1fr; gap: 1rem; }
  .scroll-feature { grid-template-columns: 1fr; gap: 1.5rem; }
  .scroll-feature__media { display: none; }
  .scroll-feature__text { padding: 1rem 0 2.5rem; opacity: 1 !important; }
  .scroll-feature__image-mobile {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
  }
}
@media (max-width: 680px) {
  .hero { margin: 10px; border-radius: 28px; }
  .sub-hero { margin: 10px; border-radius: 28px; }
  .team-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  body.home .site-header:not(.site-header--scrolled) { padding-top: 20px; }
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    white-space: nowrap;
  }
  .site-footer__inner > span { white-space: nowrap; }
  .footer-links { justify-content: flex-start; }
  .story-centered { padding-left: 20px; padding-right: 20px; }
  .story-centered h2 { font-size: calc(4rem - 10px); }
  .story-centered p:not(.eyebrow) { font-size: 1.4rem; }
  .hero-inner,
  .sub-hero__content {
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 5%;
  }
}

/* ---------------------------------------------------------
   Page loader + reveal-on-scroll
   --------------------------------------------------------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity .6s ease;
  pointer-events: auto;
}
.page-loader--hidden {
  opacity: 0;
  pointer-events: none;
}
.page-loader__mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  animation: pl-breathe 1.6s ease-in-out infinite;
}
.page-loader__mark img {
  width: 100%;
  height: auto;
  display: block;
}
.page-loader__ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.10);
  border-top-color: var(--brand-dark, #4a2f1a);
  animation: pl-spin 1.1s linear infinite;
}
@keyframes pl-breathe {
  0%, 100% { transform: scale(1); opacity: .9; }
  50%      { transform: scale(1.06); opacity: 1; }
}
@keyframes pl-spin {
  to { transform: rotate(360deg); }
}

/* Reveal-on-scroll — elegant fade + rise */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .9s cubic-bezier(.22,.61,.36,1),
    transform .9s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal--in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Page transition: fade out before navigating */
body {
  transition: opacity .4s ease;
}
body.page-leaving {
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  body, body.page-leaving { transition: none; opacity: 1; }
}
