:root {
  --ink: #191917;
  --ink-soft: #3d3c37;
  --muted: #6f6b61;
  --paper: #f1ede3;
  --paper-light: #faf7ef;
  --paper-deep: #e6dfd1;
  --porcelain: #f1ede3;
  --porcelain-deep: #e6dfd1;
  --mist: #d9d3c6;
  --mist-blue: #d6d8cf;
  --line: rgba(45, 42, 36, .18);
  --seal: #9f3428;
  --seal-dark: #7f281f;
  --seal-deep: #7f281f;
  --jade: #65756a;
  --jade-light: #d9dfd6;
  --jade-soft: #aab5aa;
  --qing: #5f7469;
  --qing-deep: #374c43;
  --bronze: #927758;
  --white: #fffdf8;
  --visual-shadow: 0 30px 90px rgba(9, 10, 9, .24);
  --visual-border: rgba(179, 151, 111, .32);
}

body {
  background-color: var(--paper);
  color: var(--ink);
}

.site-header {
  color: #eee7da;
  background: rgba(20, 20, 18, .96);
  background-image: none;
  border-bottom: 1px solid rgba(232, 220, 199, .12);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: min-height .3s ease, background .3s ease, box-shadow .3s ease;
}

.site-header.is-scrolled {
  background: rgba(16, 16, 15, .985);
  box-shadow: 0 14px 45px rgba(0, 0, 0, .22);
}

.site-header .brand strong { color: #f3ede1; }
.site-header .brand small { color: rgba(238, 231, 218, .52); }
.site-header .brand img { filter: grayscale(.18) brightness(1.08); }
.site-header .nav-links { color: rgba(238, 231, 218, .72); }
.site-header .nav-links a:hover,
.site-header .nav-links a[aria-current="page"] { color: #fffaf0; }
.site-header .nav-links a::after { background: var(--seal); }
.site-header .nav-cta { color: #f7f0e4; background: var(--seal); border-color: var(--seal); }
.site-header .nav-cta:hover { background: var(--seal-dark); border-color: var(--seal-dark); }
.site-header .menu-toggle { color: #f3ede1; border-color: rgba(238, 231, 218, .28); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid #c9a477;
  outline-offset: 4px;
}

.scroll-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--seal), #b7815e 58%, #d9cab4);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.visual-panel {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --spot-x: 50%;
  --spot-y: 50%;
  --visual-y: 0px;
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--visual-border);
  background: #181817;
  box-shadow: var(--visual-shadow);
  transform: perspective(1300px) translateY(var(--visual-y)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: opacity .85s ease, clip-path 1s cubic-bezier(.2, .75, .2, 1), transform .22s ease, box-shadow .35s ease;
}

.visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(227, 202, 163, .13), transparent 31%);
  opacity: .35;
  transition: opacity .3s ease;
}

.visual-panel::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: -32%;
  top: 0;
  width: 24%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(238, 224, 200, .12), transparent);
  transform: skewX(-14deg);
}

.visual-panel:hover {
  box-shadow: 0 36px 110px rgba(8, 9, 8, .33);
}

.visual-panel:hover::before { opacity: .9; }
.visual-panel:hover::after { animation: visual-sweep 1.35s ease; }
.visual-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2, .72, .2, 1), filter .6s ease;
}
.visual-panel:hover img { transform: scale(1.018); }

.visual-motion-ready [data-visual] {
  opacity: 0;
  clip-path: inset(7% 5% 7% 5% round 2px);
  --visual-y: 30px;
}

.visual-motion-ready [data-visual].is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0 round 0);
  --visual-y: 0px;
}

.visual-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
}
.visual-caption::before { content: ""; width: 28px; height: 1px; background: var(--seal); }

.home-hero {
  min-height: min(900px, calc(100vh - 76px));
  max-height: none;
  background: var(--paper);
  border-bottom-color: rgba(45, 42, 36, .2);
}

.home-hero::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(241, 237, 227, .98) 0%, rgba(241, 237, 227, .94) 34%, rgba(241, 237, 227, .53) 54%, rgba(241, 237, 227, .05) 75%),
    linear-gradient(0deg, rgba(241, 237, 227, .68), transparent 28%);
}

.home-hero::after {
  z-index: 1;
  display: block;
  left: auto;
  right: 4.5vw;
  top: 8%;
  bottom: 8%;
  width: 1px;
  height: auto;
  background: linear-gradient(transparent, rgba(159, 52, 40, .32), transparent);
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  min-height: min(900px, calc(100vh - 76px));
  padding-top: clamp(90px, 12vh, 150px);
  padding-bottom: 86px;
}

.home-hero-copy { max-width: 650px; padding-top: 0; }
.home-hero h1 span { color: var(--ink); }
.home-hero h1 em { color: var(--seal); }
.home-hero h1 small { color: var(--qing-deep); }
.hero-label { color: var(--qing-deep); }
.hero-label span { color: var(--seal-dark); }
.action-primary { background: var(--ink); border-color: var(--ink); }
.action-primary:hover { background: var(--seal-dark); border-color: var(--seal-dark); }

.home-hero-art {
  --parallax-y: 0;
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
}

.home-hero .ink-map { display: none; }

.home-hero-art img {
  width: 100%;
  height: calc(100% + 28px);
  object-fit: cover;
  object-position: center bottom;
  filter: contrast(.98) saturate(.72);
  transform: translate3d(0, calc(var(--parallax-y) * -12px), 0) scale(1.035);
  animation: hero-breathe 18s ease-in-out infinite alternate;
}

.evidence-ribbon { background: #1a1b19; }
.method-stage { background: #1a2622; }
.method-stage::before { opacity: .09; }
.method-river b { background: #1a2622; box-shadow: 0 0 0 9px rgba(26, 38, 34, .92); }
.core-business { background: #293830; }
.business-stage { background: var(--paper-deep); }
.pricing-bridge { background: var(--seal); }
.site-footer { background: #141715; border-top-color: var(--bronze); }

.visual-story {
  position: relative;
  padding: 112px 0;
  overflow: hidden;
  color: #eee7da;
  background: #171816;
}
.visual-story::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 20%, rgba(159, 52, 40, .12), transparent 28%), url("assets/rice-paper.webp");
  background-size: auto, 512px;
  opacity: .35;
}
.visual-story-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 6vw, 88px);
  align-items: center;
}
.visual-story figure { margin: 0; }
.visual-story-copy .overline { color: #b79b77; }
.visual-story-copy h2 { margin: 0; color: #f3ece0; font-size: clamp(38px, 5vw, 64px); line-height: 1.18; }
.visual-story-copy > p:last-of-type { margin-top: 24px; color: rgba(238, 231, 218, .65); }
.visual-story .visual-panel { aspect-ratio: 16 / 9; }
.visual-story .visual-caption { color: rgba(238, 231, 218, .5); }

.page-hero {
  padding-top: 88px;
  padding-bottom: 86px;
  background-color: var(--paper);
  background-image: radial-gradient(circle at 12% 14%, rgba(159, 52, 40, .06), transparent 22%), url("assets/rice-paper.webp");
  border-bottom: 1px solid rgba(45, 42, 36, .18);
}
.page-hero::after { right: 1vw; color: rgba(25, 25, 23, .045); }
.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(430px, 1.12fr);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(42px, 6vw, 86px);
  align-items: center;
}
.page-hero .eyebrow { grid-column: 1; margin: 0 0 18px; justify-self: start; }
.page-hero h1 { grid-column: 1; max-width: 690px; font-size: clamp(38px, 4.7vw, 62px); }
.page-hero p:not(.eyebrow) { grid-column: 1; max-width: 650px; color: var(--ink-soft); }
.page-hero-art {
  grid-column: 2;
  grid-row: 1 / 4;
  width: 100%;
  aspect-ratio: 16 / 9;
  align-self: center;
}
.page-hero-art.photo-panel img { filter: grayscale(.28) sepia(.12) contrast(1.04); }

.section-visual-wrap { margin: 48px 0 0; }
.section-visual { width: 100%; aspect-ratio: 16 / 9; }
.section-visual + .visual-caption { margin-bottom: 4px; }

.band.teal,
.band.ink { background-color: #1c2824; }
.on-dark .section-kicker { color: #c5aa83; }

.content-block,
.method-step,
.business-item,
.metric {
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.content-block:hover,
.method-step:hover,
.business-item:hover,
.metric:hover {
  z-index: 1;
  transform: translateY(-5px);
  border-color: rgba(146, 119, 88, .5);
  box-shadow: 0 18px 46px rgba(29, 27, 23, .10);
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2, .72, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready [data-reveal].is-visible.content-block:hover,
.motion-ready [data-reveal].is-visible.method-step:hover,
.motion-ready [data-reveal].is-visible.business-item:hover,
.motion-ready [data-reveal].is-visible.metric:hover {
  transform: translateY(-5px);
}

.about-hero {
  min-height: 620px;
  background: var(--paper);
}
.about-hero-copy {
  width: min(100%, var(--max));
  max-width: var(--max);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(440px, 1.18fr);
  grid-template-rows: auto auto 1fr;
  gap: 0 clamp(42px, 6vw, 86px);
  align-items: center;
}
.about-hero-copy h1 { font-size: clamp(44px, 5vw, 72px); }
.about-hero-copy > .overline,
.about-hero-copy > h1,
.about-hero-copy > p:not(.overline) { grid-column: 1; }
.about-hero-art { grid-column: 2; grid-row: 1 / 4; width: 100%; aspect-ratio: 16 / 9; }

@keyframes visual-sweep {
  0% { left: -32%; opacity: 0; }
  18% { opacity: 1; }
  100% { left: 112%; opacity: 0; }
}

@keyframes hero-breathe {
  from { filter: contrast(.98) saturate(.72); }
  to { filter: contrast(1.02) saturate(.79); }
}

@media (max-width: 980px) {
  .site-header .nav-links {
    color: rgba(238, 231, 218, .78);
    background: rgba(20, 20, 18, .985);
    background-image: none;
    border-bottom-color: rgba(238, 231, 218, .12);
  }
  .site-header .nav-links a { border-bottom-color: rgba(238, 231, 218, .12); }
  .home-hero::before {
    background: linear-gradient(180deg, rgba(241, 237, 227, .98) 0%, rgba(241, 237, 227, .9) 48%, rgba(241, 237, 227, .16) 78%, rgba(241, 237, 227, .32) 100%);
  }
  .home-hero-inner { padding-top: 78px; }
  .visual-story-grid { grid-template-columns: 1fr; }
  .page-hero-inner { grid-template-columns: 1fr; grid-template-rows: auto; }
  .page-hero .eyebrow,
  .page-hero h1,
  .page-hero p:not(.eyebrow),
  .page-hero-art { grid-column: 1; grid-row: auto; }
  .page-hero-art { width: min(100%, 620px); margin: 46px auto 0; aspect-ratio: 2 / 3; }
  .page-hero-art.photo-panel { aspect-ratio: 4 / 3; }
  .about-hero-copy { grid-template-columns: 1fr; grid-template-rows: auto; }
  .about-hero-copy > .overline,
  .about-hero-copy > h1,
  .about-hero-copy > p:not(.overline),
  .about-hero-art { grid-column: 1; grid-row: auto; }
  .about-hero-art { margin-top: 42px; }
}

@media (max-width: 680px) {
  .home-hero { min-height: 820px; }
  .home-hero-inner { min-height: 820px; padding-top: 68px; padding-bottom: 42px; }
  .home-hero-copy { max-width: 100%; }
  .home-hero-art img { object-position: center bottom; transform: scale(1.015); }
  .visual-story { padding: 82px 0; }
  .visual-story .visual-panel { aspect-ratio: 2 / 3; width: min(100%, 520px); margin: 0 auto; }
  .page-hero { padding-top: 68px; padding-bottom: 72px; }
  .page-hero h1 { font-size: 40px; }
  .page-hero p:not(.eyebrow) { font-size: 15px; }
  .page-hero-art { margin-top: 34px; max-height: 72vh; }
  .section-visual-wrap { margin-top: 34px; }
  .about-hero { min-height: auto; }
  .about-hero-art { aspect-ratio: 16 / 10; }
  .visual-panel { transform: none; }
  .visual-panel:hover img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .home-hero-art img { animation: none; transform: none; }
  .motion-ready [data-reveal],
  .motion-ready [data-reveal].is-visible { opacity: 1; transform: none; transition-delay: 0ms; }
  .visual-motion-ready [data-visual],
  .visual-motion-ready [data-visual].is-visible { opacity: 1; clip-path: none; transform: none; }
  .visual-panel,
  .visual-panel:hover { transform: none; }
  .visual-panel:hover::after { animation: none; }
}
