/*
  Rivers and Roots landing page

  The visual system turns the selected Rooted Hearth direction into a quiet,
  media-led public page. The video owns the first viewport, while the sections
  below trade spectacle for warm editorial structure and direct coaching copy.
*/

:root {
  --cedar: #3f5c47;
  --cedar-deep: #26382d;
  --bark: #594a3e;
  --ivory: #f5f0e7;
  --paper: #eee7dc;
  --ochre: #c89b45;
  --rose: #b37a75;
  --ink: #2b2722;
  --muted: #6d665e;
  --line: rgba(43, 39, 34, 0.18);
  --content-width: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
}

.section-label,
.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Full-viewport moving-water hero */

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(rgba(27, 34, 28, 0.25), rgba(27, 34, 28, 0.25)),
    url("assets/river-hero-poster-v1.webp") center / cover no-repeat;
  color: #fffaf1;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
  opacity: 0;
  filter: saturate(0.72) contrast(0.98) brightness(0.78) sepia(0.08);
  transition: opacity 800ms ease;
}

.video-ready .hero-video {
  opacity: 1;
}

/*
  The layered wash keeps copy readable across every moving frame. The left-side
  density supports the text, while the lower wash protects the motion controls.
*/
.hero-wash {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 28, 23, 0.84) 0%, rgba(28, 33, 27, 0.62) 43%, rgba(28, 33, 27, 0.12) 76%),
    linear-gradient(180deg, rgba(15, 20, 16, 0.42) 0%, rgba(15, 20, 16, 0.04) 48%, rgba(15, 20, 16, 0.64) 100%);
}

.site-nav {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--content-width));
  min-height: 96px;
  margin-inline: auto;
  border-bottom: 1px solid rgba(255, 250, 241, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fffaf1;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.brand-copy {
  display: grid;
  line-height: 1.03;
}

.brand-copy span:first-child {
  font-family: var(--serif);
  font-size: 1.13rem;
  letter-spacing: 0.01em;
}

.brand-copy span:last-child {
  margin-top: 5px;
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
}

.nav-links a {
  color: rgba(255, 250, 241, 0.84);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.hero-content {
  align-self: center;
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
  padding-block: 142px 108px;
}

.eyebrow {
  max-width: 560px;
  margin-bottom: 22px;
  color: rgba(255, 250, 241, 0.76);
}

.hero h1 {
  max-width: 960px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.9rem, 8.2vw, 8.2rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.88;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  color: #e8d9bb;
  font-style: italic;
}

.hero-lede {
  max-width: 600px;
  margin: 28px 0 30px;
  color: rgba(255, 250, 241, 0.84);
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid #fffaf1;
  border-radius: 999px;
  background: #fffaf1;
  color: var(--cedar-deep);
  font-size: 0.87rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.hero-action svg,
.scroll-cue svg,
.motion-control svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero-action:hover,
.hero-action:focus-visible {
  background: transparent;
  color: #fffaf1;
  transform: translateY(-2px);
}

.scroll-cue,
.motion-control {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  color: rgba(255, 250, 241, 0.78);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-cue {
  left: max(24px, calc((100% - var(--content-width)) / 2));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.motion-control {
  right: max(24px, calc((100% - var(--content-width)) / 2));
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 250, 241, 0.38);
  border-radius: 999px;
  background: rgba(26, 32, 27, 0.38);
  font: inherit;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.video-controls-ready .motion-control {
  display: inline-flex;
}

.motion-control:hover,
.motion-control:focus-visible {
  border-color: rgba(255, 250, 241, 0.78);
  color: #fff;
}

.motion-control .play-shape,
.motion-control[data-state="paused"] .pause-shape {
  display: none;
}

.motion-control[data-state="paused"] .play-shape {
  display: block;
}

/* Editorial content sections */

.approach {
  display: grid;
  grid-template-columns: minmax(140px, 0.38fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 120px);
  padding-block: clamp(92px, 12vw, 170px);
}

.section-label {
  padding-top: 10px;
  color: var(--bark);
}

.approach-copy h2,
.focus-heading h2,
.process-intro h2,
.boundary-layout h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.approach-copy h2 {
  max-width: 850px;
  font-size: clamp(2.7rem, 5.4vw, 5.8rem);
}

.approach-copy p {
  max-width: 700px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.65;
}

.focus {
  padding-block: clamp(88px, 10vw, 144px);
  background: var(--cedar-deep);
  color: #f9f3e8;
}

.focus-heading {
  display: grid;
  grid-template-columns: minmax(140px, 0.38fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 120px);
}

.focus .section-label {
  color: #d3bd91;
}

.focus-heading h2 {
  max-width: 850px;
  font-size: clamp(2.6rem, 4.8vw, 5rem);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(68px, 8vw, 112px);
  border-top: 1px solid rgba(249, 243, 232, 0.24);
}

.focus-item {
  min-width: 0;
  padding: 24px clamp(18px, 2.5vw, 32px) 12px;
  border-left: 1px solid rgba(249, 243, 232, 0.18);
}

.focus-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.focus-number {
  color: #d3bd91;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.focus-item h3 {
  min-height: 2.3em;
  margin: 50px 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  font-weight: 400;
  line-height: 1.1;
}

.focus-item p {
  margin: 0;
  color: rgba(249, 243, 232, 0.67);
  line-height: 1.7;
}

.process {
  padding-block: clamp(96px, 12vw, 170px);
  background: var(--paper);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: clamp(70px, 11vw, 160px);
}

.process-intro {
  align-self: start;
  position: sticky;
  top: 48px;
}

.process-intro h2 {
  max-width: 520px;
  margin-top: 28px;
  font-size: clamp(2.7rem, 4.5vw, 4.8rem);
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 22px;
  padding-block: 34px;
  border-top: 1px solid var(--line);
}

.process-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.process-list > li > span {
  padding-top: 5px;
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.process-list h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  font-weight: 400;
}

.process-list p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.coaching-boundary {
  padding-block: clamp(72px, 8vw, 110px);
  background: var(--ochre);
}

.boundary-layout {
  display: grid;
  grid-template-columns: minmax(140px, 0.38fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 120px);
}

.boundary-layout h2 {
  font-size: clamp(2.3rem, 4.2vw, 4.2rem);
}

.boundary-layout p:last-child {
  max-width: 790px;
  margin: 26px 0 0;
  color: rgba(43, 39, 34, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
}

.site-footer {
  padding-block: 28px;
  background: var(--ink);
  color: rgba(245, 240, 231, 0.72);
  font-size: 0.78rem;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-layout p {
  margin: 0;
}

.footer-layout > p:first-child {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1rem;
}

.footage-credit a {
  text-underline-offset: 3px;
}

/* Responsive changes keep the first useful action inside the phone viewport. */

@media (max-width: 900px) {
  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .focus-item:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(249, 243, 232, 0.18);
  }

  .focus-item:nth-child(4) {
    border-top: 1px solid rgba(249, 243, 232, 0.18);
  }

  .process-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .process-intro {
    position: static;
  }
}

@media (max-width: 680px) {
  .section-shell,
  .site-nav,
  .hero-content {
    width: min(calc(100% - 36px), var(--content-width));
  }

  .hero-video {
    object-position: 60% center;
  }

  .hero-wash {
    background:
      linear-gradient(180deg, rgba(18, 23, 19, 0.62) 0%, rgba(18, 23, 19, 0.16) 34%, rgba(18, 23, 19, 0.72) 100%),
      linear-gradient(90deg, rgba(25, 31, 26, 0.48), rgba(25, 31, 26, 0.18));
  }

  .site-nav {
    min-height: 78px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-copy span:first-child {
    font-size: 1rem;
  }

  .brand-copy span:last-child {
    font-size: 0.56rem;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    display: none;
  }

  .nav-links a:first-child {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding-inline: 13px;
    border: 1px solid rgba(255, 250, 241, 0.38);
    border-radius: 999px;
  }

  .hero-content {
    align-self: end;
    padding-block: 118px 112px;
  }

  .eyebrow {
    max-width: 310px;
    margin-bottom: 16px;
    font-size: 0.64rem;
  }

  .hero h1 {
    max-width: 510px;
    font-size: clamp(3.05rem, 15.8vw, 5.2rem);
    line-height: 0.91;
  }

  .hero-lede {
    max-width: 450px;
    margin-block: 22px 24px;
    font-size: 0.98rem;
  }

  .hero-action {
    min-height: 49px;
    padding-inline: 19px;
  }

  .scroll-cue {
    display: none;
  }

  .motion-control {
    right: 18px;
    bottom: 18px;
    width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
  }

  .motion-control span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .approach,
  .focus-heading,
  .boundary-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-label {
    padding-top: 0;
  }

  .approach-copy h2 {
    font-size: clamp(2.55rem, 12.5vw, 4rem);
  }

  .approach-copy p {
    margin-top: 26px;
    font-size: 1.02rem;
  }

  .focus-grid {
    grid-template-columns: 1fr;
    margin-top: 58px;
  }

  .focus-item,
  .focus-item:first-child,
  .focus-item:nth-child(3) {
    min-height: 0;
    padding: 24px 0 30px;
    border-top: 1px solid rgba(249, 243, 232, 0.18);
    border-left: 0;
  }

  .focus-item:first-child {
    border-top: 0;
  }

  .focus-item h3 {
    min-height: 0;
    margin: 24px 0 12px;
  }

  .process-layout {
    gap: 34px;
  }

  .process-list li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 13px;
    padding-block: 27px;
  }

  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
