html::before {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(28, 63, 166, 0.3);
  content: "";
}

html::after {
  position: fixed;
  z-index: 2001;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background:
    linear-gradient(180deg, rgba(255, 251, 208, 0.55), transparent 65%),
    repeating-linear-gradient(110deg, transparent 0 13px, rgba(255, 251, 208, 0.2) 13px 16px, transparent 16px 29px),
    linear-gradient(90deg, var(--river-deep), var(--river-blue) 48%, #3862D1 76%, var(--river-blue));
  background-size: auto, 58px 100%, auto;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: no-repeat, repeat, no-repeat;
  clip-path: polygon(0 24%, 7% 6%, 14% 26%, 22% 5%, 30% 24%, 38% 4%, 46% 24%, 54% 5%, 62% 25%, 70% 4%, 78% 24%, 86% 5%, 94% 22%, 100% 8%, 100% 80%, 93% 100%, 85% 78%, 77% 100%, 69% 79%, 61% 100%, 53% 78%, 45% 100%, 37% 79%, 29% 100%, 21% 78%, 13% 100%, 6% 78%, 0 94%);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  filter: drop-shadow(0 1px 3px rgba(28, 63, 166, 0.55));
}

@supports (animation-timeline: scroll(root block)) {
  html::after {
    animation: scroll-progress linear both, river-shimmer 1.8s linear infinite;
    animation-timeline: scroll(root block), auto;
  }
}

@keyframes scroll-progress {
  to { transform: scaleX(1); }
}

@keyframes river-shimmer {
  to { background-position: 0 0, -58px 0, 0 0; }
}

body {
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--type-body);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-transform: uppercase;
}

.site-header {
  background: rgba(4, 32, 15, 0.88);
  border-bottom: 1px solid rgba(255, 251, 208, 0.12);
}

.nav-link,
.nav-cta {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--type-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-link::after,
.nav-cta::after {
  height: 2px;
  background: var(--river-blue);
}

.hero h1,
.section-heading h2,
.craft-heading h2,
.about-title,
.about-feature h3,
.craft-step-title,
.about-story-detail h3,
.contact-copy h2,
.owner-story h2,
.owner-story h3,
.product-front-caption h3,
.product-back h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}

 .section-heading h2,
.contact-copy h2,
.owner-story h2 {
  font-size: var(--type-h2);
}

.craft-heading h2,
.about-title {
  font-size: var(--type-h2);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
}
.about-title > em {
  margin-left: 0.12em;
}
.craft-heading h2 em,
.about-title > em {
  font-weight: 500;
}

.about-story-detail h3, 
.owner-story-profile h3,
.craft-step-title {
  font-size: var(--type-h3);
}

.about-feature h3,
.craft-step-title {
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.hero h1 {
  max-width: 11ch;
  color: transparent;
  font-size: var(--type-h1);
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-shadow: none;
  filter: none;
  background: url("../assets/images/hero-river.svg?v=light-river-20261025-5") 0 center / 110% 100% no-repeat;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-river-flow 8s ease-in-out infinite alternate;
}

.hero-word {
  text-shadow: 0 3px 4px rgba(0, 0, 0, 0.16);
}

@keyframes hero-river-flow {
  to { background-position: 100% center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 {
    animation: none;
    background-position: center;
  }
}

.lead {
  color: var(--cream);
  font-family: var(--font-body);
}

#collection.products-section {
  background: var(--sand);
  color: var(--ink);
}

#collection .section-kicker {
  color: var(--walnut-dark);
}

#collection .section-heading h2 {
  color: var(--ink);
  font-size: var(--type-h2);
}

.section-heading::after,
.craft-heading::after {
  display: none;
}

.product-front,
.product-back {
  overflow: hidden;
  border: 4px solid transparent;
  border-radius: 18px 10px 22px 12px;
}

.product-front {
  background:
    linear-gradient(var(--surface-card), var(--surface-card)) padding-box,
    repeating-linear-gradient(105deg, var(--walnut-dark) 0 7px, var(--walnut) 7px 10px, var(--walnut-dark) 10px 15px) border-box;
}

.product-back {
  background:
    linear-gradient(150deg, var(--bg-soft), var(--bg)) padding-box,
    repeating-linear-gradient(105deg, var(--walnut-dark) 0 7px, var(--walnut) 7px 10px, var(--walnut-dark) 10px 15px) border-box;
}

.wood-card {
  position: relative;
  isolation: isolate;
  border: 6px solid transparent;
  border-radius: 28px 14px 34px 12px;
  background:
    linear-gradient(var(--sand), var(--sand)) padding-box,
    repeating-linear-gradient(105deg, var(--walnut-dark) 0 8px, var(--walnut) 8px 11px, var(--walnut-dark) 11px 16px) border-box;
  box-shadow: 0 24px 52px rgba(16, 26, 23, 0.16);
}

.product-front-caption h3,
.product-back h3 {
  font-size: var(--type-h3);
}

.craft-section {
  background:
    radial-gradient(ellipse at 90% 8%, rgba(168, 98, 42, 0.16), transparent 32%),
    var(--forest);
  color: var(--cream);
}

.craft-heading h2,
.craft-intro,
.craft-step-label,
.craft-step-title,
.craft-step-teaser,
.craft-step-detail,
.craft-finish-signoff {
  color: var(--cream);
}

.craft-heading h2 em,
.craft-finish-mark,
.craft-finish-signoff em {
  color: var(--walnut);
}

.craft-finish-kicker,
.craft-finish-signoff em {
  color: var(--cream);
}

.craft-step-label > span {
  color: rgba(255, 251, 208, 0.72);
}

.craft-step-toggle {
  border-color: rgba(255, 251, 208, 0.42);
  color: var(--cream);
}

.craft-step[open] .craft-step-toggle {
  background: var(--river-blue);
  border-color: var(--river-blue);
  color: var(--white);
}

.craft-step {
  border-color: rgba(255, 251, 208, 0.22);
  background: rgba(255, 251, 208, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.craft-step[open],
.craft-step:hover {
  border-color: var(--walnut);
  background: rgba(255, 251, 208, 0.13);
}

.craft-road::before {
  background: repeating-linear-gradient(
    to bottom,
    var(--cream) 0 7px,
    transparent 7px 15px
  );
}

.craft-road::after {
  position: absolute;
  top: var(--craft-line-inset);
  left: var(--craft-line-position);
  width: 2px;
  height: var(--craft-progress, 0px);
  background: repeating-linear-gradient(
    to bottom,
    var(--river-blue) 0 7px,
    transparent 7px 15px
  );
  content: "";
  pointer-events: none;
}

.craft-stop::before {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--cream);
  transition: background-color 320ms ease, color 320ms ease, box-shadow 320ms ease, transform 320ms ease;
}

.craft-stop.is-scroll-active::before {
  background: var(--river-blue);
  color: var(--cream);
  box-shadow: 0 0 0 1px rgba(28, 63, 166, 0.48), 0 0 22px rgba(28, 63, 166, 0.5);
}

.craft-stop.is-scroll-active .craft-step {
  border-color: rgba(255, 251, 208, 0.48);
  background: linear-gradient(135deg, var(--river-blue), var(--river-deep));
  box-shadow: 0 16px 38px rgba(15, 37, 102, 0.3);
}

.craft-finish {
  border-color: rgba(255, 251, 208, 0.24);
  background: var(--walnut-dark);
  color: var(--cream);
}

.craft-step summary:focus-visible,
.about-note-trigger:focus-visible,
.owner-story-close:focus-visible,
.contact-links a:focus-visible,
.product-ring.is-ready .product-ring-stage:focus-visible {
  outline: 2px solid var(--river-blue);
  outline-offset: 3px;
}

.about-section {
  background:
    radial-gradient(ellipse at 8% 10%, rgba(168, 98, 42, 0.12), transparent 32%),
    var(--sand);
  color: var(--ink);
}

#about > .container {
  color: var(--ink);
}

.about-title,
.about-story-detail h3 {
  color: var(--ink);
}

.about-title::after,
.contact-copy h2::after {
  display: none;
  content: none;
}

.about-title em,
.about-feature-number,
.about-story-detail strong {
  color: var(--walnut);
}

.about-grid,
.about-origin,
.about-features {
  border-color: rgba(11, 26, 16, 0.2);
}

.about-note-trigger {
  border-color: rgba(11, 26, 16, 0.3);
  background: rgba(255, 251, 208, 0.6);
  color: var(--ink);
}

.about-visual {
  outline: 1px solid var(--walnut);
  outline-offset: -10px;
}

#about > .container .about-visual figcaption {
  color: var(--cream);
  font-family: var(--font-accent);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  background: linear-gradient(270deg, rgba(4, 32, 15, 0.84), rgba(4, 32, 15, 0.48) 78%, transparent);
}

.why-chikati {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--river-blue);
  background:
    repeating-linear-gradient(175deg, rgba(168, 98, 42, 0.08) 0 2px, transparent 2px 8px),
    rgba(255, 251, 208, 0.54);
}

.why-chikati h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

#about .why-chikati h3 span {
  margin-left: 0.3em;
  color: var(--walnut-dark);
  font-family: var(--font-devanagari);
  font-size: 0.88em;
  font-weight: 700;
  text-transform: none;
}

.why-chikati p {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-accent);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-style: italic;
  line-height: 1.45;
}

.owner-story {
  border-color: var(--walnut-dark);
  background: var(--sand);
  color: var(--ink);
}

.owner-story-header {
  background: var(--sand);
}

.owner-story h2,
.owner-story h3,
.owner-story-quote strong {
  color: var(--ink);
}

.owner-story-subtitle,
.owner-story-kicker,
.owner-story-profile .owner-story-role,
.owner-story-profile .owner-story-company {
  color: var(--walnut-dark);
  font-family: var(--font-accent);
}

.owner-story-quote p {
  color: var(--ink);
  font-family: var(--font-accent);
  font-size: 1rem;
  font-style: italic;
}

.owner-story-quote::before,
.owner-story-quote::after,
.craft-finish-signoff {
  font-family: var(--font-accent);
  font-style: italic;
}

.contact-section {
  position: relative;
  background: var(--forest);
  color: var(--cream);
}

.products-section,
.craft-section,
.about-section,
.workshop-map-section {
  position: relative;
}

.workshop-map-section {
  background: var(--sand);
  color: var(--ink);
}

.workshop-map-section .section-kicker {
  color: var(--walnut-dark);
}

.workshop-map-heading h2 {
  color: var(--ink);
  font-size: var(--type-h2);
}

.workshop-map-heading h2::after {
  display: none;
  content: none;
}

.workshop-map-heading > a {
  border-color: var(--walnut-dark);
  background: var(--cream);
  color: var(--ink);
}

.workshop-map-heading > a:hover,
.workshop-map-heading > a:focus-visible {
  border-color: var(--river-blue);
  background: var(--river-blue);
  color: var(--white);
}

.workshop-map-frame {
  border-color: var(--walnut-dark);
  background: var(--forest);
}

.workshop-map-coordinates {
  color: var(--text-dark-muted);
}

.contact-copy h2 {
  color: var(--cream);
  font-size: var(--type-h2);
}

.contact-brand-river .river-line-back {
  stroke: var(--walnut);
}

.contact-brand-river .river-line-front {
  stroke: var(--river-blue);
}

.contact-form {
  border-color: rgba(255, 251, 208, 0.2);
  border-radius: 10px 24px 12px 20px;
  background: rgba(255, 251, 208, 0.06);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--river-blue);
  box-shadow: 0 0 0 3px rgba(28, 63, 166, 0.28);
}

.contact-links a:focus-visible {
  outline-color: var(--cream);
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 7px solid transparent;
  border-image: repeating-linear-gradient(
    95deg,
    var(--walnut-dark) 0 12px,
    var(--walnut) 12px 18px,
    var(--walnut-dark) 18px 20px
  ) 7;
  background: var(--forest);
  color: var(--cream);
}

.site-footer-content {
  font-family: var(--font-body);
}

.river-divider {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 38px;
  margin: 0;
  overflow: clip;
  fill: var(--river-blue);
  pointer-events: none;
}

.river-divider-flow {
  transform-box: fill-box;
  animation: river-drift 12s linear infinite;
}

@keyframes river-drift {
  to { transform: translateX(-33.3333%); }
}

.btn {
  min-height: 46px;
  align-items: center;
  padding: 12px 20px;
  border: 1px solid var(--river-blue);
  border-radius: 5px 14px 5px 12px;
  background: var(--river-blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--type-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: inset 0 -3px 0 var(--walnut-dark);
}

.btn::after {
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--walnut-dark) 0 8px,
    var(--walnut) 8px 12px
  );
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--river-deep);
  background: var(--river-deep);
  color: var(--white);
}

.btn-secondary {
  border-color: var(--cream);
  background: var(--forest);
  color: var(--cream);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--river-deep);
  background: var(--river-deep);
  color: var(--white);
}

.loading-wave {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 48px;
  height: 14px;
  overflow: hidden;
  color: var(--river-blue);
  font-size: 0;
}

.loading-wave::before,
.loading-wave::after {
  position: absolute;
  top: 4px;
  left: 0;
  width: 38px;
  height: 12px;
  border: 2px solid currentColor;
  border-color: currentColor transparent transparent;
  border-radius: 50%;
  content: "";
  animation: wave-pulse 1.2s ease-in-out infinite;
}

.loading-wave::after {
  top: 7px;
  left: 10px;
  animation-delay: 350ms;
}

@keyframes wave-pulse {
  50% { transform: translateX(8px); }
  to { transform: translateX(16px); }
}

.not-found-message {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: var(--type-h2);
  line-height: 0.95;
  text-transform: uppercase;
}

.not-found-message::after {
  display: block;
  margin-top: 0.35em;
  color: var(--walnut);
  content: "This river changed course";
  font-family: var(--font-accent);
  font-size: 0.4em;
  font-style: italic;
  text-transform: none;
}

@media (max-width: 680px) {
  .hero h1 {
    font-size: clamp(3.15rem, 14vw, 4.5rem);
  }

  .about-title {
    font-size: var(--type-h2);
    line-height: 1.05;
    white-space: normal;
  }

  .about-title em {
    display: block;
    margin-left: 0;
    font-size: inherit;
    white-space: nowrap;
  }

  .craft-heading h2 {
    font-size: var(--type-h2);
    line-height: 1.05;
    white-space: normal;
  }

  .craft-heading h2 em {
    display: block;
    font-size: inherit;
    white-space: nowrap;
  }

  .about-visual {
    border-radius: 20px 10px 26px 10px;
  }

  .about-visual figcaption {
    top: 10px;
    padding: 10px 12px;
    font-size: clamp(1rem, 4.4vw, 1.2rem);
  }

  .wood-card {
    border-width: 4px;
  }

  .why-chikati {
    padding: 16px;
  }

  .btn {
    min-height: 44px;
  }
}

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

  .river-divider-flow,
  .loading-wave::before,
  .loading-wave::after,
  .contact-brand-river .river-line,
  .craft-stop::before {
    animation: none;
    transition: none;
  }

  html::after {
    animation: scroll-progress linear both;
    animation-timeline: scroll(root block);
  }
}
