/* =============================================================================
   Sett Studio - Design System
   Organic luxury / biophilic editorial. Warm bone base, deep forest, champagne gold.
   Implements PROJECT_BRIEF §2. Fonts are <link>ed in the HTML head; this file
   declares the family stacks and consumes them. Mobile-first, fluid, no build step.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color - §2 verbatim. Two accents only: forest + gold. */
  --bone:        #F6F2EB;            /* primary warm off-white base */
  --bone-2:      #EDE6DA;            /* alternating section bg */
  --ink:         #1B1A16;            /* headlines, near-black warm */
  --ink-2:       #57544C;            /* body, muted */
  --forest:      #2C3A30;            /* primary accent - deep biophilic green */
  --forest-2:    #3E5244;            /* hover / lighter green */
  --gold:        #C4A96B;            /* secondary accent - champagne gold */
  --gold-2:      #D4BE8C;            /* gold light / hover */
  --line:        rgba(27, 26, 22, 0.12);   /* hairline rules */
  --line-strong: rgba(27, 26, 22, 0.22);
  --shadow:      rgba(27, 26, 22, 0.10);

  /* On-dark variants (forest bands, footer) */
  --on-dark:        #F6F2EB;
  --on-dark-muted:  rgba(246, 242, 235, 0.66);
  --line-on-dark:   rgba(246, 242, 235, 0.16);

  /* Type families. Fraunces is Sett Well only. Inter is the approved fallback. */
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body:    "Schibsted Grotesk", "Inter", system-ui, sans-serif;
  --font-serif:   "Fraunces", Georgia, serif;

  /* Fluid type scale (clamp). */
  --fs-display: clamp(2.6rem, 6vw, 5.25rem);
  --fs-h2:      clamp(2rem, 4vw, 3.25rem);
  --fs-h3:      clamp(1.4rem, 2.2vw, 1.875rem);
  --fs-lede:    clamp(1.125rem, 1.6vw, 1.4375rem);
  --fs-body:    clamp(1.0625rem, 1.1vw, 1.1875rem);
  --fs-small:   0.9375rem;
  --fs-eyebrow: 0.78125rem;

  --lh-tight:   1.04;
  --lh-snug:    1.18;
  --lh-body:    1.6;
  --tracking-display: -0.02em;
  --tracking-eyebrow:  0.14em;

  /* Spacing - fluid section rhythm + a small static scale. */
  --space-section: clamp(4.5rem, 9vw, 9rem);
  --space-3xl: 6rem;
  --space-2xl: 4rem;
  --space-xl:  2.5rem;
  --space-lg:  1.75rem;
  --space-md:  1.25rem;
  --space-sm:  0.75rem;
  --space-xs:  0.5rem;

  /* Layout */
  --container:  1200px;
  --container-narrow: 760px;
  --gutter:     clamp(1.25rem, 5vw, 4rem);

  /* Shape - architectural, not bubbly. */
  --radius:     5px;
  --radius-sm:  3px;
  --radius-lg:  12px;

  /* Shadows - low / soft, used sparingly. */
  --shadow-soft:  0 1px 2px var(--shadow), 0 12px 32px -18px var(--shadow);
  --shadow-lift:  0 2px 4px var(--shadow), 0 24px 48px -24px var(--shadow);

  /* Motion */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:      160ms;
  --t-med:       320ms;
  --t-slow:      600ms;

  /* Z-index ladder */
  --z-nav:       100;
  --z-menu:      200;
  --z-overlay:   300;
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* clip (not hidden) prevents horizontal scroll WITHOUT breaking position: sticky descendants */
  overflow-x: clip;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select { font: inherit; color: inherit; }

button { cursor: pointer; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

ul[role="list"],
ol[role="list"] { list-style: none; padding: 0; }

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

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

/* -----------------------------------------------------------------------------
   3. Typography primitives
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  text-transform: lowercase;   /* echoes the bold lowercase wordmark */
  color: var(--ink);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-display);
  text-transform: lowercase;
  color: var(--ink);
}

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  line-height: 1;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--ink-2);
}

.body  { font-size: var(--fs-body); color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); }

p { max-width: 68ch; }
p + p { margin-top: var(--space-md); }

/* Inline link with gold underline that grows on hover */
.link {
  color: var(--ink);
  font-weight: 600;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 2px;
  transition: background-size var(--t-med) var(--ease), color var(--t-fast) var(--ease);
}
.link:hover { background-size: 100% 2px; color: var(--forest); }

/* Link with arrow, for cards / CTAs in copy */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.01em;
}
.link-arrow::after {
  content: "\2192"; /* → */
  transition: transform var(--t-med) var(--ease);
}
.link-arrow:hover { color: var(--gold); }
.link-arrow:hover::after { transform: translateX(4px); }

/* -----------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section {
  padding-block: var(--space-section);
  background: var(--bone);
}
.section--alt    { background: var(--bone-2); }
.section--forest {
  background: var(--forest);
  color: var(--on-dark);
}
.section--forest .h2,
.section--forest .h3,
.section--forest .display { color: var(--on-dark); }
.section--forest .body,
.section--forest p { color: var(--on-dark-muted); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* Full-bleed media that escapes the container */
.bleed {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* Asymmetric editorial splits. Collapse to single column on mobile. */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (min-width: 860px) {
  .split--60-40 { grid-template-columns: 6fr 4fr; }
  .split--40-60 { grid-template-columns: 4fr 6fr; }
  .split--55-45 { grid-template-columns: 55fr 45fr; }
  .split--50-50 { grid-template-columns: 1fr 1fr; }
}

/* Section heading block */
.section-head { max-width: 52ch; }
.section-head .eyebrow { margin-bottom: var(--space-md); }
.section-head .h2 + p,
.section-head .display + p { margin-top: var(--space-md); }
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.hairline {
  border: 0;
  height: 1px;
  background: var(--line);
}
.section--forest .hairline { background: var(--line-on-dark); }

/* Generic responsive auto-grid for tiles */
.grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* -----------------------------------------------------------------------------
   5. Media wells - aspect-locked, look intentional when empty/loading.
      Bone fill + hairline, never a broken-image gap.
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--bone-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-image:
    linear-gradient(135deg, rgba(196, 169, 107, 0.05), rgba(44, 58, 48, 0.05));
}
.media::after { /* subtle placeholder label slot; hidden once an <img> paints over it */
  content: attr(data-label);
  position: absolute;
  inset: auto var(--space-md) var(--space-md) var(--space-md);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: 0.45;
  pointer-events: none;
}
.media > img,
.media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--16-9 { aspect-ratio: 16 / 9; }
.media--4-3  { aspect-ratio: 4 / 3; }
.media--3-2  { aspect-ratio: 3 / 2; }
.media--4-5  { aspect-ratio: 4 / 5; }   /* portrait, e.g. team */
.media--9-16 { aspect-ratio: 9 / 16; }
.media--1-1  { aspect-ratio: 1 / 1; }
/* Portraits anchor to the top so heads are never cropped */
.media--4-5 > img { object-position: top center; }

/* Slow parallax-able image (drift applied by JS within ~8% bounds) */
.media--parallax > img { will-change: transform; }

/* -----------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--on-dark);
  transition: background var(--t-med) var(--ease),
              color var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--forest-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Ghost: gold hairline + gold text, fills on hover */
.btn--ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

/* On dark bands */
.section--forest .btn,
.btn--on-dark {
  background: var(--gold);
  color: var(--ink);
}
.section--forest .btn:hover,
.btn--on-dark:hover { background: var(--gold-2); }

.section--forest .btn--ghost,
.btn--ghost.btn--on-dark {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--line-on-dark);
}
.section--forest .btn--ghost:hover,
.btn--ghost.btn--on-dark:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn--lg { padding: 1.05em 2em; font-size: var(--fs-body); }

/* -----------------------------------------------------------------------------
   7. Nav - frosted/transparent over hero, solidifies to bone on scroll.
      Behavior (.is-solid, .is-open) toggled by main.js in step 3.
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: background var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: 76px;
  padding-block: var(--space-sm);
}
.nav__logo img { height: 44px; width: auto; }

.nav__links {
  display: none;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}
.nav__links a {
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--ink);
  letter-spacing: 0.01em;
}
.nav__links a:hover { color: var(--forest); }

.nav__actions { display: flex; align-items: center; gap: var(--space-md); }

/* Frosted state over the hero: light text, blur */
.nav:not(.is-solid) {
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}
.nav:not(.is-solid) .nav__links a { color: var(--on-dark); }
/* Logo asset is swapped (ink ⇄ white) by main.js based on scroll state. */

/* Solid state after scroll */
.nav.is-solid {
  background: color-mix(in srgb, var(--bone) 88%, transparent);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom-color: var(--line);
}

/* Hamburger */
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  width: 24px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav:not(.is-solid) .nav__toggle span { background: var(--on-dark); }

@media (min-width: 980px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
}

/* Mobile full-screen menu */
.nav-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--gutter);
  background: var(--bone);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--t-slow) var(--ease),
              opacity var(--t-med) var(--ease),
              visibility 0s linear var(--t-slow);
}
.nav-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform var(--t-slow) var(--ease),
              opacity var(--t-med) var(--ease);
}
/* Inner nav is a column so each link sits on its own line */
.nav-menu nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: flex-start;
}
.nav-menu a {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.05;
  text-transform: lowercase;
  color: var(--ink);
  letter-spacing: var(--tracking-display);
}
.nav-menu a:hover { color: var(--forest); }
.nav-menu__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--gutter);
  width: 44px; height: 44px;
  background: transparent; border: 0;
  font-size: 1.75rem; color: var(--ink);
}
@media (min-width: 980px) { .nav-menu { display: none; } }

/* -----------------------------------------------------------------------------
   8. Hero - poster-first, aspect/viewport-locked. Scrub is a pure enhancement.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--forest); /* fallback behind poster/video */
}
.hero__media,
.hero__media > img,
.hero__media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(27, 26, 22, 0.55) 0%,
    rgba(27, 26, 22, 0.20) 40%,
    rgba(27, 26, 22, 0.10) 100%
  );
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  /* Tightened so eyebrow + headline + sub + CTA always fit within 100svh on laptops */
  padding-bottom: clamp(2.25rem, 6vh, 4.5rem);
  padding-top: 96px;
}
.hero__content { max-width: 24ch; }
.hero .eyebrow { color: var(--gold-2); margin-bottom: var(--space-sm); }
.hero__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  text-transform: lowercase;
  color: var(--on-dark);
  white-space: pre-line; /* honor the \n in content.js headline */
}
.hero__sub {
  margin-top: var(--space-md);
  max-width: 46ch;
  font-size: var(--fs-lede);
  color: rgba(246, 242, 235, 0.86);
}
.hero__actions { margin-top: var(--space-lg); display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* Scroll cue */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-lg);
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.hero__cue::after {
  content: "";
  width: 1px;
  height: 40px;
  background: var(--on-dark-muted);
  animation: cue-pulse 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue-pulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* When JS pins the hero for scroll-scrub it adds .hero--pinned to a tall wrapper */
.hero-scrub { position: relative; height: 150vh; }
.hero-scrub .hero { position: sticky; top: 0; height: 100svh; min-height: 100svh; }

/* -----------------------------------------------------------------------------
   9. Editorial cards (three offerings, featured work)
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: transparent;
}
.card .media { transition: transform var(--t-slow) var(--ease); }
.card:hover .media { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card__body { display: flex; flex-direction: column; gap: var(--space-sm); }
.card__title { font-family: var(--font-display); font-weight: 700;
               font-size: var(--fs-h3); text-transform: lowercase; color: var(--ink); }
.card__blurb { font-size: var(--fs-body); }
.card .link-arrow { margin-top: var(--space-xs); }

/* Overlay caption variant for featured work */
.card--overlay { position: relative; }
.card--overlay .media { border: 0; }
.card--overlay .card__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(27,26,22,0.7), transparent);
  color: var(--on-dark);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.card--overlay:hover .card__caption { opacity: 1; transform: translateY(0); }
.card--overlay .card__title { color: var(--on-dark); }

/* -----------------------------------------------------------------------------
   10. "Inside the Walls" cutaway scaffolding
       Stacked layers; no-JS / reduced-motion default shows the composed wall.
       Scroll-driven peel applied by main.js via inline custom props / classes.
   -------------------------------------------------------------------------- */
.wall {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bone-2);
  border: 1px solid var(--line);
}
.wall__layer {
  position: absolute;
  inset: 0;
}
.wall__layer > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Default composed state: all layers visible, stacked in source order. */
.wall__label {
  position: absolute;
  left: var(--space-lg);
  bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 36ch;
}
.wall__label .eyebrow { color: var(--gold); }
.wall__label .name { font-family: var(--font-display); font-weight: 700;
                     font-size: var(--fs-h3); text-transform: lowercase; color: var(--ink); }
.wall__label .benefit { font-size: var(--fs-small); color: var(--ink-2); }

/* Discrete steps: only one layer is shown at a time; the step change does a quick, time-based
   crossfade so each step reads as a clean image and the switch is fast (not a lingering blend). */
.wall.is-active .wall__layer { transition: opacity 0.25s ease; }

/* Inside the Walls cutaway.
   Default: a normal section (no-JS / reduced-motion safe). When main.js adds .walls--scroll,
   the section grows tall and the inner stays sticky so layers cross-fade as you scroll through.
   Uses position: sticky (NOT a ScrollTrigger pin) so it never overlaps the section above. */
.walls--scroll { height: 300vh; padding-block: 0; }
.walls--scroll .walls-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.walls--scroll .walls-sticky > .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 4vh, 2.5rem);
}

/* Walls legend - full opacity by default (no-JS); main.js dims inactive when synced. */
.wall-legend { list-style: none; padding: 0; margin: 0; }
.wall-legend__item { display: flex; flex-direction: column; gap: 0.4rem; }
.wall-legend.is-synced .wall-legend__item {
  opacity: 0.4;
  transition: opacity var(--t-med) var(--ease);
}
.wall-legend.is-synced .wall-legend__item.is-active { opacity: 1; }

/* -----------------------------------------------------------------------------
   11. Stats - hairline-framed count-up blocks
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: clamp(1.75rem, 4vw, 2.75rem) var(--space-lg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat__value .suffix { color: var(--gold); }
.stat__label {
  margin-top: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.section--forest .stats,
.section--forest .stat { border-color: var(--line-on-dark); }
.section--forest .stat__value { color: var(--on-dark); }
.section--forest .stat__label { color: var(--on-dark-muted); }

/* -----------------------------------------------------------------------------
   12. Press strip - quiet greyscale logos
   -------------------------------------------------------------------------- */
.press {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.press__item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--ink-2);
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity var(--t-med) var(--ease);
}
.press__item:hover { opacity: 0.85; }
.press__item img { height: 28px; width: auto; filter: grayscale(1); opacity: 0.7; }

/* Larger label for "As seen in" / "Media mentions" / "Press coverage" */
.press-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: center;
  max-width: none; /* override base p{max-width:68ch} so it centers across the container */
  margin-bottom: var(--space-lg);
}

/* -----------------------------------------------------------------------------
   13. Forms - minimal hairline fields, forest focus
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-lg); }
@media (min-width: 640px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); } }
.field { display: flex; flex-direction: column; gap: var(--space-xs); }
.field label {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85em 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(87, 84, 76, 0.5); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--forest);
}
.field select { appearance: none; cursor: pointer; }

/* On forest band (CTA contact) */
.section--forest .field input,
.section--forest .field select,
.section--forest .field textarea {
  color: var(--on-dark);
  border-bottom-color: var(--line-on-dark);
}
.section--forest .field label { color: var(--on-dark-muted); }
.section--forest .field input:focus,
.section--forest .field select:focus,
.section--forest .field textarea:focus { border-bottom-color: var(--gold); }

/* Submit success state (toggled by main.js) */
.form__status {
  font-size: var(--fs-small);
  color: var(--forest);
}
.form.is-success .form__fields { display: none; }
.form__success { display: none; }
.form.is-success .form__success {
  display: block;
  padding: var(--space-lg) 0;
  font-size: var(--fs-lede);
  color: var(--forest);
}

/* -----------------------------------------------------------------------------
   14. Footer - dark forest, white logo, columned
   -------------------------------------------------------------------------- */
.footer {
  background: var(--forest);
  color: var(--on-dark-muted);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.footer a { color: var(--on-dark-muted); }
.footer a:hover { color: var(--gold); }
.footer__grid {
  display: grid;
  gap: var(--space-2xl);
}
@media (min-width: 720px)  { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__logo img { height: 40px; width: auto; margin-bottom: var(--space-lg); }
.footer__col h4 {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
}
.footer__col ul { list-style: none; padding: 0; display: grid; gap: var(--space-sm); }
.footer__bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--fs-small);
}
.footer__legal { display: flex; gap: var(--space-lg); }

/* -----------------------------------------------------------------------------
   15. Reveal + motion base
       Initial states animated by main.js (GSAP). Everything degrades to visible.
   -------------------------------------------------------------------------- */
/* Progressive enhancement: reveals only hide once main.js adds .reveal-ready to
   <html>. With no JS (or before it runs) all content is fully visible. */
.reveal {
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}
.reveal-ready .reveal { opacity: 0; transform: translateY(24px); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }
[data-stagger] > * { transition-delay: var(--stagger-delay, 0ms); }

/* -----------------------------------------------------------------------------
   16. Sett Well tonal shift - same family, one room over.
       Warmer base, gold-led, Fraunces headlines, calmer spacing.
   -------------------------------------------------------------------------- */
.sett-well {
  --bone:   #FAF7F1;
  --bone-2: #F2ECE1;
  --ink:    #2A2620;
  --space-section: clamp(5.5rem, 11vw, 11rem);
  background: var(--bone);
}
.sett-well .display,
.sett-well .h2,
.sett-well .h3,
.sett-well .card__title {
  font-family: var(--font-serif);
  font-weight: 460;
  letter-spacing: -0.005em;
  text-transform: none; /* serif headlines are not lowercased */
  font-optical-sizing: auto;
}
.sett-well .display { line-height: 1.06; }
.sett-well .eyebrow { color: var(--gold); }
/* Gold leads over forest in the Sett Well lane */
.sett-well .btn { background: var(--gold); color: var(--ink); }
.sett-well .btn:hover { background: var(--gold-2); }
.sett-well .btn--ghost {
  background: transparent; color: var(--forest); border-color: var(--gold);
}
.sett-well .btn--ghost:hover { background: var(--gold); color: var(--ink); }
.sett-well .link-arrow { color: var(--gold); }
.sett-well .link-arrow:hover { color: var(--forest); }

.well-lockup img { height: clamp(56px, 9vw, 84px); width: auto; }

/* -----------------------------------------------------------------------------
   17. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0  { margin-top: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap, var(--space-md)); }
.flow > * + * { margin-top: var(--space-md); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100%;
  z-index: var(--z-overlay);
  padding: 0.75em 1.25em;
  background: var(--forest);
  color: var(--on-dark);
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--space-md); }

/* -----------------------------------------------------------------------------
   18. Inner pages - page header, features, process, gallery, prose
   -------------------------------------------------------------------------- */
/* Compact page header (clears the fixed nav). Light by default. */
.page-hero {
  padding-top: calc(76px + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  background: var(--bone);
}
.page-hero .eyebrow { margin-bottom: var(--space-md); }
.page-hero h1 { margin-top: 0; }
.page-hero__sub { margin-top: var(--space-lg); max-width: 56ch; }
.page-hero--alt { background: var(--bone-2); }
.page-hero[data-dark] {
  background: var(--forest);
  color: var(--on-dark);
}
.page-hero[data-dark] .display,
.page-hero[data-dark] .h2 { color: var(--on-dark); }
.page-hero[data-dark] .page-hero__sub { color: var(--on-dark-muted); }

/* Feature points (offering pages) */
.features {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}
.feature__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  text-transform: lowercase;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

/* Numbered process steps */
.process { counter-reset: step; display: grid; gap: var(--space-xl); }
@media (min-width: 720px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process__step { counter-increment: step; }
.process__step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}
.process__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  text-transform: lowercase;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

/* Sett Well system rows - alternating media/text */
.system + .system { margin-top: var(--space-3xl); }
.system:nth-child(even) .system__media { order: 2; }

/* Portfolio gallery */
.filter { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.filter__btn {
  padding: 0.55em 1.1em;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all var(--t-fast) var(--ease);
}
.filter__btn:hover { border-color: var(--line-strong); color: var(--ink); }
.filter__btn.is-active { background: var(--forest); color: var(--on-dark); border-color: var(--forest); }

.gallery { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item { position: relative; cursor: zoom-in; }
.gallery__item.is-hidden { display: none; }
.gallery__item .card__caption {
  position: absolute; inset: auto 0 0 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(27,26,22,0.72), transparent);
  color: var(--on-dark);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.gallery__item:hover .card__caption { opacity: 1; transform: none; }
.gallery__cap-title { font-family: var(--font-display); font-weight: 700; text-transform: lowercase; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  display: none; align-items: center; justify-content: center;
  padding: var(--gutter);
  background: rgba(15, 14, 11, 0.92);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: var(--space-lg); right: var(--gutter);
  width: 48px; height: 48px; font-size: 2rem;
  color: var(--on-dark); background: transparent; border: 0;
}

/* Houzz awards badge (proof section) - centered, large, rounded */
.proof__badge { display: flex; align-items: center; justify-content: center; gap: var(--space-md); }
.houzz-badge { height: clamp(300px, 42vw, 520px); width: auto; border-radius: var(--radius-lg); }

/* Health & Wellness Partners section.
   The supplied logo strip has a white background; mix-blend-mode multiply drops the
   white into the bone section so only the logos read. (If logos look muddy, swap in a
   transparent-background export.) */
.partners-media {
  max-width: 920px;
  margin-inline: auto;
}
.partners-media img {
  width: 100%;
  height: auto;
}

/* Larger, full-color logo rows for the Press page (vs the quiet homepage strip) */
.press--lg { gap: clamp(2rem, 6vw, 4.5rem); }
.press--lg .press__item { opacity: 0.95; filter: none; }
.press--lg .press__item img { height: clamp(40px, 6vw, 64px); filter: none; opacity: 0.95; }

/* FAQ accordion (native <details>, no JS required) */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.2;
  text-transform: lowercase;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--forest); }
.faq__item[open] .faq__q { color: var(--forest); }
.faq__icon {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform var(--t-med) var(--ease);
}
.faq__icon::before,
.faq__icon::after { content: ""; position: absolute; background: var(--gold); border-radius: 2px; }
.faq__icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq__icon::after  { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__item[open] .faq__icon { transform: rotate(135deg); }
.faq__a { padding-bottom: var(--space-lg); max-width: 68ch; }
.faq__a p { color: var(--ink-2); margin: 0; }
.faq__item[open] .faq__a { animation: faq-in var(--t-med) var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Long-form prose (legal pages) */
.prose { max-width: 72ch; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  text-transform: lowercase;
  color: var(--ink);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.25rem; margin-top: var(--space-sm); }
.prose li + li { margin-top: var(--space-xs); }
.prose__updated { font-size: var(--fs-small); color: var(--ink-2); opacity: 0.7; }

/* -----------------------------------------------------------------------------
   19. Reduced motion - neutralize reveals, scrub, parallax. Show posters.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }

  .reveal-ready .reveal,
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-scrub { height: auto; }
  .hero-scrub .hero { position: relative; }
  .hero__cue::after { animation: none; }
  .media--parallax > img { transform: none !important; }
  .wall.is-active .wall__layer { transition: none; }
}


/* Brand-colored magnifier cursor on click-to-zoom photos (replaces removed on-card badges). */
.gallery__item { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Ccircle cx='13' cy='13' r='8' stroke='%23ffffff' stroke-width='4'/%3E%3Cline x1='19' y1='19' x2='29' y2='29' stroke='%23ffffff' stroke-width='4'/%3E%3Ccircle cx='13' cy='13' r='8' stroke='%23C4A96B' stroke-width='2.4'/%3E%3Cline x1='19' y1='19' x2='29' y2='29' stroke='%23C4A96B' stroke-width='2.4'/%3E%3C/g%3E%3C/svg%3E") 13 13, zoom-in !important; }

/* Mobile: show ONE legend item at a time (number + name + its own description), synced to the
   wall image. Each new step slides up from the bottom to replace the previous (01 -> 02 -> 03 ->
   04). Keeps the wall image and the legend as two clean stacked sections. */
@media (max-width: 760px) {
  .walls--scroll { height: 300vh; }
  .walls--scroll .walls-sticky { justify-content: center; }
  .walls--scroll .walls-sticky > .container { justify-content: center; gap: 1.4rem; }
  /* Shorter wall so headline + image + the single legend card fit one screen. */
  .wall { aspect-ratio: 3 / 2; max-height: 40vh; width: 100%; margin-inline: auto; }

  .wall-legend__item .small { display: block; }   /* each step keeps its own description */
  /* Single animated legend card (only when JS syncs it to the scroll): stack all items in one
     spot, show only the active one, slide the new one up from the bottom. The no-JS / reduced-
     motion fallback keeps the default full legend list. */
  .wall-legend.is-synced { position: relative; display: block; min-height: 7.5rem; }
  .wall-legend.is-synced .wall-legend__item {
    position: absolute; left: 0; right: 0; top: 0;
    display: flex; flex-direction: column; gap: 0.4rem;
    opacity: 0; transform: translateY(45%);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
    pointer-events: none;
  }
  .wall-legend.is-synced .wall-legend__item.is-active {
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
}
