/* =============================================================
   The Healy Group — hand-coded rebuild
   Design system + page styles
   Brand: Fraunces (display) + Inter (text), dark brown / forest
   green / warm cream. Tokens lifted from the Framer source.
   ============================================================= */

@import url("fonts.css");

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --dark-100: rgb(39, 30, 20);   /* page background  */
  --dark-90:  rgb(35, 27, 18);
  --dark-80:  rgb(32, 24, 16);   /* recessed bands   */
  --dark-70:  rgb(28, 21, 14);

  /* Ink */
  --cream:        #ede0c4;        /* primary text    */
  --cream-82:     rgba(237, 224, 196, .82);
  --cream-72:     rgba(237, 224, 196, .72);
  --cream-65:     rgba(237, 224, 196, .65);
  --cream-55:     rgba(237, 224, 196, .55);
  --cream-40:     rgba(237, 224, 196, .40);

  /* Accent */
  --green:        rgb(45, 110, 62);
  --green-bright: rgb(58, 132, 78);
  --green-deep:   rgb(38, 96, 54);    /* AA-safe with cream text — solid-button hover */
  --green-link:   rgb(120, 196, 142); /* AA-safe link green on the dark palette */
  --green-08:     rgba(45, 110, 62, .08);
  --green-20:     rgba(45, 110, 62, .20);
  --green-50:     rgba(45, 110, 62, .50);
  --auvora-green: #2e8157;        /* AUVORA wordmark full stop — keep exact for the studio signature */

  /* Lines & glass surfaces (cooler off-white) */
  --beige:    245, 240, 232;
  --line:     rgba(var(--beige), .10);
  --line-soft:rgba(var(--beige), .07);
  --surface:  rgba(var(--beige), .03);
  --surface-2:rgba(var(--beige), .05);
  --field:    rgba(237, 224, 196, .06);
  --field-bd: rgba(237, 224, 196, .18);

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Fluid scale */
  --fs-eyebrow: 12px;
  --fs-body:    clamp(15px, 1.1vw, 16px);
  --fs-lead:    clamp(16px, 1.5vw, 19px);
  --fs-h3:      clamp(22px, 2.6vw, 30px);
  --fs-h2:      clamp(28px, 3.4vw, 44px);
  --fs-h1:      clamp(33px, 5.6vw, 68px);
  --fs-display: clamp(28px, 4.4vw, 58px);

  /* Rhythm */
  --gutter:   clamp(20px, 5vw, 48px);
  --maxw:     1200px;
  --section-y: clamp(64px, 9vw, 128px);

  /* Radii */
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;

  /* Motion */
  --ease: cubic-bezier(.2, .75, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --nav-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 28px);
  scrollbar-width: none;          /* native scrollbar hidden — replaced by .scrollbar */
}
html::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--dark-100);
  color: var(--cream);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--green); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }

/* Eyebrow + section heading pattern */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-65);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--green);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.section-head__lead {
  font-size: var(--fs-lead);
  color: var(--cream-72);
  max-width: 46ch;
}
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
}

.lead { font-size: var(--fs-lead); color: var(--cream-72); }
.muted { color: var(--cream-65); }

/* Buttons */
.btn {
  --btn-bg: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--cream);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--green-deep);
  box-shadow: 0 14px 30px rgba(10, 7, 4, .35), 0 2px 0 var(--green-50);
}
.btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--ghost {
  --btn-bg: transparent;
  border-color: var(--field-bd);
  color: var(--cream);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--cream-40); box-shadow: none; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(39, 30, 20, .72);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav__inner {
  position: relative;
  width: 100%;
  padding-inline: clamp(20px, 4vw, 46px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { width: 52px; height: auto; display: block; }
/* links are absolutely centred in the bar, independent of the side items */
.nav__links {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__link {
  position: relative;
  font-size: 15px;
  color: var(--cream);
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: .01em;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--green-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { flex-shrink: 0; }

/* Hamburger */
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none; border: none;
  cursor: pointer;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav__burger span:nth-child(3) { top: 28px; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(28, 21, 14, .98);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 var(--gutter);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(30px, 9vw, 46px);
  font-weight: 500;
  color: var(--cream);
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; font-size: 17px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 480px;
  height: 80vh; /* on desktop this is taken over by the .hero-stack flex rule below */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  background: var(--dark-100);
}

/* Hero + trust bar share exactly one screen, done in pure CSS so it can't mis-size the
   way the old window.innerHeight script did in Safari (which clipped the trust bar).
   The stack is one viewport tall; the stats bar keeps its natural height and the hero
   takes whatever is left, so the trust bar is always fully visible on first load. */
@media (min-width: 861px) {
  .hero-stack {
    display: flex;
    flex-direction: column;
    min-height: 100vh;   /* fallback */
    min-height: 100svh;  /* excludes browser chrome, so it's exact in Safari too */
  }
  .hero-stack > .hero { flex: 1 1 auto; height: auto; min-height: 0; }
}
/* Photo lives on the right; the left stays solid dark for legible text */
.hero__media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  z-index: -2;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  will-change: opacity;
}
.hero__slide.is-active { opacity: 1; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--dark-100) 47%, rgba(39,30,20,.45) 54%, rgba(39,30,20,0) 64%),
    linear-gradient(0deg, rgba(28,21,14,.45) 0%, rgba(28,21,14,0) 30%);
}
/* full-width: text hugs the left edge (aligns with the nav logo), bottom-aligned */
.hero__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--gutter) clamp(48px, 8vh, 92px);
}
/* 42vw keeps the text comfortably left of the 50% image at every width */
.hero__content { max-width: min(560px, 42vw); }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hero__sub {
  margin-top: 22px;
  max-width: 42ch;
  font-size: var(--fs-lead);
  color: var(--cream-82);
}
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
/* Narrow screens: full-bleed photo with the headline over a dark scrim — same look as desktop */
@media (max-width: 860px) {
  .hero {
    height: auto;
    min-height: 86vh;
    align-items: flex-end;
  }
  .hero__media { width: 100%; }   /* full-bleed instead of right-half */
  .hero__scrim {
    background: linear-gradient(0deg, var(--dark-100) 3%, rgba(39,30,20,.86) 24%, rgba(39,30,20,.46) 52%, rgba(39,30,20,.18) 100%);
  }
  .hero__inner { max-width: none; margin: 0; padding: 0 var(--gutter) clamp(40px, 7vh, 66px); }
  .hero__content { max-width: none; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats {
  background: var(--dark-80);
  border-bottom: 1px solid var(--line-soft);
}
.stats__row {
  display: flex;
  align-items: stretch;
  padding-block: clamp(28px, 4vw, 48px);
}
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding-inline: 8px;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 48px;
  background: var(--line);
}
.stat__value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: clamp(11px, 1.4vw, 14px);
  color: var(--cream-55);
  letter-spacing: .02em;
}
@media (max-width: 600px) {
  .stats__row { flex-wrap: wrap; gap: 28px 0; padding-block: 32px; }
  .stat { flex: 0 0 50%; }
  .stat:nth-child(odd)::before { display: none; }
  .stat:nth-child(3)::before, .stat:nth-child(4)::before {
    content: ""; left: 50%; top: 0; transform: none; width: 0; height: 0;
  }
}

/* ============================================================
   STORY (founding story + pinned photo scrub)
   ============================================================ */
.story { position: relative; background: var(--dark-100); padding-block: var(--section-y); overflow: hidden; }
.story__intro {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}
.story__text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.5;
  letter-spacing: -.01em;
  max-width: 62ch;
  color: var(--cream);
}
.story__text b { color: var(--cream); font-weight: 600; }
/* Horizontal photo rail that pans continuously with scroll — no pin, never freezes */
.story__rail-wrap {
  width: 100%;
  overflow: hidden;
  margin-top: clamp(36px, 5vw, 64px);
  padding-block: 34px;            /* room for the up/down stagger */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.story__rail {
  display: flex;
  gap: clamp(14px, 1.6vw, 24px);
  padding-inline: var(--gutter);
  width: max-content;
  will-change: transform;
}
.story__card {
  flex: 0 0 auto;
  width: clamp(260px, 31vw, 540px);
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  background: var(--surface);
}
.story__card:nth-child(even) { width: clamp(220px, 25vw, 440px); transform: translateY(30px); }
.story__card:nth-child(odd) { transform: translateY(-30px); }
.story__card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.story__card figcaption {
  position: absolute;
  left: 12px; bottom: 10px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
  letter-spacing: .01em;
}
/* Reduced motion / no JS: let the rail be swiped instead of auto-panning */
@media (prefers-reduced-motion: reduce) {
  .story__rail { transform: none !important; }
  .story__rail-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: none; mask-image: none;
  }
  .story__rail-wrap::-webkit-scrollbar { display: none; }
}

/* ============================================================
   FAMILY
   ============================================================ */
.family__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.family__photo {
  border-radius: var(--r);
  overflow: hidden;
  min-height: 320px;
  min-width: 0;
  position: relative;
}
.family__photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.family__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.member {
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .35s var(--ease), background-color .35s var(--ease), transform .35s var(--ease);
}
.member:hover { border-color: var(--green-50); background: var(--green-08); transform: translateY(-2px); }
.member__name { font-size: 15px; font-weight: 600; color: var(--cream); letter-spacing: .01em; }
.member__role { font-size: 13px; color: var(--cream-65); }
@media (max-width: 900px) {
  .family__grid { grid-template-columns: 1fr; }
  .family__photo { min-height: 0; height: clamp(200px, 52vw, 300px); aspect-ratio: auto; }
}
@media (max-width: 460px) {
  .family__cards { grid-template-columns: 1fr; }
}

/* ============================================================
   ESTATE (pub portfolio)
   ============================================================ */
.estate { background: var(--dark-90); }
.estate__hint {
  font-family: "Bubblegum Sans", var(--serif);
  font-size: 20px;
  color: var(--cream-82);
  transform: rotate(-1.2deg);
  margin: 2px 0 18px;
  display: block;
  text-align: center;
}
.estate__scroller {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  /* no scroll-snap: the row scrolls freely and stays exactly where you leave it */
  padding-bottom: 6px;
}
.estate__scroller::-webkit-scrollbar { display: none; }
.estate__scroller.is-grabbing { cursor: grabbing; }
.estate__rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: max-content;
  padding: 6px 2px 4px;
}
.estate__row { display: flex; gap: 14px; }
.pub-card {
  flex: 0 0 auto;
  width: 268px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.pub-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-50);
  background: var(--green-08);
  box-shadow: 0 14px 32px rgba(10, 7, 4, .28), 0 2px 0 var(--green-50);
}
.pub-card__frame {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(45,110,62,.28), rgba(237,224,196,.06));
}
.pub-card__frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.pub-card:hover .pub-card__frame img { transform: scale(1.05); }
.pub-card__tag {
  position: absolute; top: 8px; left: 8px;
  background: rgba(45, 110, 62, .92);
  color: var(--cream);
  border-radius: var(--r-sm);
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pub-card__body { padding: 11px 13px 14px; display: flex; flex-direction: column; gap: 3px; }
.pub-card__name { font-family: var(--serif); font-size: 16px; font-weight: 500; line-height: 1.25; }
.pub-card__loc { font-size: 11.5px; color: var(--cream-65); }
.estate__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  max-width: 760px;
}
.estate__cue { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--cream-55); }
.estate__cue span:last-child { color: var(--green-bright); animation: arrowcue 2.4s var(--ease) infinite; }
@keyframes arrowcue { 0%, 100% { transform: translate(0,0); opacity: .65; } 50% { transform: translate(3px,-3px); opacity: 1; } }
.estate__progress { flex: 1; max-width: 320px; display: flex; align-items: center; gap: 12px; }
.estate__track { flex: 1; height: 3px; background: var(--line); border-radius: 99px; overflow: hidden; }
.estate__fill { height: 100%; background: var(--green-bright); transform-origin: left; transform: scaleX(0); transition: transform .16s var(--ease); }
.estate__pct { font-size: 11px; color: var(--cream-72); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
@media (prefers-reduced-motion: reduce) {
  .estate__cue span:last-child { animation: none; }
}

/* ============================================================
   OPERATING COMPANIES
   ============================================================ */
.companies__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(8px, 1vw, 14px);
}
.company {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(72px, 9vw, 112px);
  padding: clamp(10px, 1.4vw, 18px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}
.company:hover { border-color: var(--line); background: var(--surface-2); }
.company img {
  width: 100%;
  height: clamp(34px, 5vw, 64px);
  object-fit: contain;
  opacity: .9;
}
@media (max-width: 760px) {
  .companies__grid { grid-template-columns: repeat(3, 1fr); }
  .company:nth-child(4), .company:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 420px) {
  .companies__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   PARTNERS (marquee)
   ============================================================ */
.partners { background: var(--dark-80); overflow: hidden; }
.partners__viewport {
  position: relative;
  overflow: hidden;
  margin-top: clamp(28px, 4vw, 48px);
}
.partners__viewport::before,
.partners__viewport::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(40px, 8vw, 96px);
  z-index: 2;
  pointer-events: none;
}
.partners__viewport::before { left: 0; background: linear-gradient(90deg, var(--dark-80), transparent); }
.partners__viewport::after  { right: 0; background: linear-gradient(270deg, var(--dark-80), transparent); }
.partners__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee var(--marquee-dur, 46s) linear infinite;
}
/* the marquee runs continuously and is NOT paused on hover */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% / 3)); }
}
.partner-card {
  width: clamp(260px, 32vw, 360px);
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.partner-card__logo {
  height: clamp(120px, 16vw, 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 36px);
  background: rgba(var(--beige), .06);
}
.partner-card__logo img { max-width: 78%; max-height: 100%; object-fit: contain; }
.partner-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 11px; }
.partner-card__stars { display: flex; gap: 4px; color: var(--green-bright); }
.partner-card__name { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.partner-card__desc { font-size: 14.5px; color: var(--cream-72); line-height: 1.6; }
@media (prefers-reduced-motion: reduce) {
  .partners__track { animation: none; flex-wrap: nowrap; overflow-x: auto; }
}

/* ============================================================
   OPPORTUNITIES + WHAT WE OFFER
   ============================================================ */
.opps__body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.opps__quote {
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--r);
  background: var(--green-08);
  border: 1px solid var(--green-20);
}
.opps__quote p {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.45;
}
.req-list { display: flex; flex-direction: column; }
.req {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(16px, 2.2vw, 24px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.req:first-child { border-top: 1px solid var(--line-soft); }
.req__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); flex-shrink: 0; }
.req p { font-family: var(--serif); font-weight: 500; font-size: clamp(16px, 2.1vw, 22px); line-height: 1.3; }
@media (max-width: 760px) {
  .opps__body { grid-template-columns: 1fr; }
  .opps__quote { position: static; }
}

.offer-list { display: flex; flex-direction: column; }
.offer-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 12px 28px;
  padding: clamp(16px, 2vw, 22px) 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.offer-row:first-child { border-top: 1px solid var(--line-soft); }
.offer__title { font-family: var(--serif); font-weight: 500; font-size: clamp(16px, 1.8vw, 19px); }
.offer__body { color: var(--cream-72); font-size: var(--fs-body); line-height: 1.65; }
@media (max-width: 620px) {
  .offer-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--dark-90); }
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.contact__card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.contact__card h3 { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); }
.contact__item { display: flex; flex-direction: column; gap: 4px; }
.contact__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-55); }
.contact__value { font-size: clamp(16px, 1.8vw, 19px); color: var(--cream); transition: color .3s var(--ease); }
a.contact__value:hover { color: var(--green-bright); }
.contact__socials { display: flex; gap: 18px; margin-top: 2px; }
.contact__socials a { opacity: .8; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.contact__socials a:hover { opacity: 1; transform: translateY(-2px); }

/* Form */
.form {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form__row { display: flex; gap: 16px; }
.form button[type="submit"] { align-self: flex-start; margin-top: 4px; }
.field { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; color: var(--cream-65); }
.field input, .field textarea {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--field-bd);
  border-radius: var(--r-sm);
  padding: 0 15px;
  height: 48px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--cream);
  outline: none;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field textarea { height: 130px; padding: 13px 15px; resize: none; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--cream-55); }
.field input:focus, .field textarea:focus { border-color: var(--green-bright); background: rgba(45,110,62,.06); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 2px; }
.field[data-error="true"] input, .field[data-error="true"] textarea { border-color: #d98b8b; }
.field__error { font-size: 13px; color: #e6a6a6; min-height: 0; }
.form__consent { font-size: 12px; color: var(--cream-55); line-height: 1.5; }
.form__status { font-size: 14px; }
.form__status[data-state="error"] { color: #e6a6a6; }
.form__success {
  padding: 36px 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form__success h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3vw, 30px); }
.form__success p { color: var(--cream-72); }
@media (max-width: 920px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form__row { flex-direction: column; }
  .form button[type="submit"] { align-self: stretch; justify-content: center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-80);
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 80px) 6px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-soft);
}
.footer__brand img { width: 64px; height: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--cream-55); max-width: 32ch; font-size: 14px; }
.footer__col h3 {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream-55); margin-bottom: 16px; font-weight: 500;
}
.footer__col a, .footer__col p { display: block; color: var(--cream-72); font-size: 14.5px; margin-bottom: 8px; transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--cream); }
.footer__socials { display: flex; gap: 16px; margin-top: 18px; }
.footer__socials a { opacity: .75; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.footer__socials a:hover { opacity: 1; transform: translateY(-2px); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--cream-55);
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover { color: var(--cream); }
@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* AUVORA studio signature — the same footer mark used across the studio's builds
   (cream text on the site's palette, the brand green full stop, per-letter rise) */
.foot-credit { margin-top: 12px; display: flex; justify-content: center; }
.auvora-sig {
  display: inline-flex; align-items: baseline; gap: 7px; line-height: 1;
  font-family: "Cormorant Garamond", Georgia, serif; color: var(--cream);
}
.auvora-sig .sig-by { font-size: 17px; font-weight: 500; letter-spacing: .01em; }
.auvora-sig .sig-name {
  font-weight: 600; font-size: 20px; letter-spacing: .01em; display: inline-flex;
  transition: transform .3s var(--ease); text-shadow: 0 1px 1px rgba(0, 0, 0, .5);
}
.auvora-sig .sig-name span { display: inline-block; }
.auvora-sig .sig-name .fstop { color: var(--auvora-green); }
/* visible by default; .is-in replays the rise as it scrolls in/out of view */
@keyframes sigRise { from { opacity: 0; transform: translateY(.6em); } to { opacity: 1; transform: none; } }
.auvora-sig.is-in .sig-by { animation: sigRise .5s var(--ease) both; }
.auvora-sig.is-in .sig-name span { animation: sigRise .55s var(--ease) both; }
.auvora-sig.is-in .sig-name span:nth-child(1) { animation-delay: .06s; }
.auvora-sig.is-in .sig-name span:nth-child(2) { animation-delay: .11s; }
.auvora-sig.is-in .sig-name span:nth-child(3) { animation-delay: .16s; }
.auvora-sig.is-in .sig-name span:nth-child(4) { animation-delay: .21s; }
.auvora-sig.is-in .sig-name span:nth-child(5) { animation-delay: .26s; }
.auvora-sig.is-in .sig-name span:nth-child(6) { animation-delay: .31s; }
.auvora-sig.is-in .sig-name span:nth-child(7) { animation-delay: .38s; }
.auvora-sig:hover .sig-name { transform: translateY(-1px); }
.auvora-sig:hover .sig-by { color: var(--auvora-green); }
@media (prefers-reduced-motion: reduce) {
  .auvora-sig .sig-by, .auvora-sig .sig-name span { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal { padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(56px, 8vw, 96px); }
.legal__grid {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.3fr);
  gap: clamp(32px, 5vw, 72px);
}
.legal__title { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 6vw, 64px); line-height: 1.08; letter-spacing: -.01em; margin: 18px 0; }
.legal__meta { font-size: 13px; color: var(--cream-55); }
.legal__section { padding: 26px 0; border-top: 1px solid var(--line); }
.legal__section:first-child { border-top: none; padding-top: 0; }
.legal__section h2 { font-family: var(--serif); font-weight: 500; font-size: 23px; margin-bottom: 12px; }
.legal__section p { color: var(--cream-72); line-height: 1.75; font-size: 15.5px; }
.legal__section a { color: var(--green-link); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) { .legal__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   404
   ============================================================ */
.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
  gap: 18px;
}
.notfound__code { font-family: var(--serif); font-weight: 500; font-size: clamp(72px, 18vw, 160px); line-height: .9; color: var(--green-bright); }
.notfound h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 4vw, 36px); }
.notfound p { color: var(--cream-72); max-width: 42ch; }

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* the skip link (the only focusable .sr-only) becomes visible when tabbed to */
.sr-only:focus {
  position: fixed; top: 10px; left: 10px; width: auto; height: auto;
  margin: 0; padding: 10px 16px; overflow: visible; clip: auto; white-space: normal;
  background: var(--green); color: var(--cream); border-radius: var(--r-sm);
  z-index: 400; outline: 2px solid var(--green-bright); outline-offset: 2px;
}
[hidden] { display: none !important; }

/* ---------- Custom scroll progress bar (replaces native scrollbar) ---------- */
.scrollbar {
  position: fixed;
  top: 0; right: 0;
  width: 7px;
  height: 100vh;
  height: 100dvh;
  background: #4a3826;            /* brown track (empty) */
  z-index: 300;
}
.scrollbar__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green-bright);
  transform: scaleY(0);
  transform-origin: top center;
  will-change: transform;
}
@media (max-width: 600px) { .scrollbar { width: 5px; } }

/* Mobile nav switch */
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}
