/* Riverside Tax and Accounting. "Columbia at dusk". Hand written, no build step. */

@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0E1D1F;
  --ink-2: #364644;
  --ink-3: #56625F;
  --mist: #D9E2DE;
  --mist-2: #E8EEEB;
  --canvas: #F2F5F3;
  --surface: #FBFCFB;
  --deep: #0B3436;
  --deeper: #072628;
  --river: #1C5A57;
  --glacier: #8FD3C7;
  --glacier-2: #B9E6DE;
  --sun: #D9B26F;
  --on-dark: #EEF4F2;
  --on-dark-2: #CCDAD6;

  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(20px, 4.5vw, 64px);
  --wrap: 1280px;
  --section: clamp(104px, 12vw, 184px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --shadow-lg: 0 40px 80px -40px rgba(7, 38, 40, 0.45), 0 12px 24px -12px rgba(7, 38, 40, 0.18);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 18px/1.6 var(--body);
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--river); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .hero :focus-visible, .final :focus-visible { outline-color: var(--glacier); }
::selection { background: var(--glacier-2); color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--surface); padding: 12px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 560; letter-spacing: -0.035em; line-height: 1.02; color: var(--ink); margin: 0 0 20px; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 7.2vw, 6.4rem); font-weight: 520; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h3 { font-size: clamp(1.3rem, 1.7vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; }
p, li { max-width: 62ch; }
p { margin: 0 0 18px; text-wrap: pretty; }
ul, ol { margin: 0 0 24px; padding-left: 1.2em; }
.lede { font-size: clamp(1.12rem, 1.5vw, 1.35rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.kicker { font: 500 0.98rem/1.3 var(--body); color: var(--river); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: .7; }
.muted { color: var(--ink-3); }
.small { font-size: 0.92rem; }
.tnum { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 880px; }
.section { padding: var(--section) 0; }
.section-sm { padding: clamp(72px, 8vw, 120px) 0; }
.head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.head h2 { margin: 0; }
.head p { margin: 0; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

/* Dark sections: one full texture image per section, no tiling */
.dark { background: var(--deep) url("/assets/img/river-texture.jpg") center/cover no-repeat; color: var(--on-dark); }
.dark-b { background-image: url("/assets/img/river-texture-b.jpg"); }
.dark h1, .dark h2, .dark h3 { color: var(--on-dark); }
.dark p, .dark li { color: var(--on-dark-2); }
.dark .lede { color: var(--on-dark-2); }
.dark .kicker { color: var(--glacier); }
.dark a:not(.btn) { color: var(--on-dark); }

/* Buttons */
.btn {
  --bg: var(--deep); --fg: #fff; --bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: transform 400ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--river); transform: translateY(101%); border-radius: inherit; transition: transform 500ms var(--ease); }
.btn:hover { color: var(--fg); transform: translateY(-2px); }
.btn:hover::after { transform: translateY(0); }
.btn-light { --bg: var(--glacier); --fg: var(--ink); }
.btn-light::after { background: var(--glacier-2); }
.btn-line { --bg: transparent; --fg: var(--deep); --bd: rgba(11, 52, 54, .35); }
.btn-line::after { background: var(--deep); }
.btn-line:hover { --fg: #fff; border-color: var(--deep); }
.dark .btn-line, .final .btn-line { --fg: var(--on-dark); --bd: rgba(238, 244, 242, .4); }
.dark .btn-line::after, .final .btn-line::after { background: var(--on-dark); }
.dark .btn-line:hover, .final .btn-line:hover { --fg: var(--deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.text-link { font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 3px; transition: background-size 400ms var(--ease); }
.text-link:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 80; view-transition-name: site-header; transition: transform 500ms var(--ease), background-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.site-header.scrolled { background: rgba(242, 245, 243, .82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 rgba(14, 29, 31, .08); }
.site-header.away { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 36px; height: 88px; transition: height 400ms var(--ease); }
.scrolled .header-inner { height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }

.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font: 620 1.28rem/1 var(--display); letter-spacing: -0.03em; }
.logo-sub { font-size: .76rem; color: var(--ink-3); margin-top: 5px; letter-spacing: .01em; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; transition: background-color 250ms var(--ease); }
.nav a:hover { background: rgba(14, 29, 31, .06); }
.nav a[aria-current="page"] { background: rgba(14, 29, 31, .08); }
.header-cta { min-height: 48px; padding: 0 22px; font-size: .95rem; white-space: nowrap; }
.on-hero .site-header:not(.scrolled) .logo, .on-hero .site-header:not(.scrolled) .nav a { color: #fff; }
.on-hero .site-header:not(.scrolled) .logo-sub { color: rgba(255, 255, 255, .75); }
.on-hero .site-header:not(.scrolled) .nav a:hover { background: rgba(255, 255, 255, .12); }
.on-hero .site-header:not(.scrolled) .header-cta { --bg: var(--glacier); --fg: var(--ink); }
.on-hero .site-header:not(.scrolled) .header-cta::after { background: var(--glacier-2); }
.menu-btn { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .menu-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(14, 29, 31, .2); background: transparent; color: inherit; cursor: pointer; }
  .on-hero .site-header:not(.scrolled) .menu-btn { color: #fff; border-color: rgba(255, 255, 255, .45); }
  .menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
}
@media (max-width: 560px) { .header-cta { padding: 0 16px; font-size: .9rem; } .logo-sub { display: none; } }
@media (max-width: 440px) { .header-cta { display: none; } .menu-btn { margin-left: auto; } }

/* Mobile menu: a details element, works without JS */
.mobile-menu { display: none; }
@media (max-width: 1080px) {
  .mobile-menu { display: block; }
  .mobile-menu > summary { list-style: none; }
  .mobile-menu > summary::-webkit-details-marker { display: none; }
  .mobile-menu-panel { position: fixed; inset: 0; z-index: 90; background: var(--deep) url("/assets/img/river-texture.jpg") center/cover no-repeat; color: var(--on-dark); padding: 96px var(--gutter) 40px; display: flex; flex-direction: column; overflow-y: auto; }
  .mobile-menu[open] .mobile-menu-panel { animation: menuIn 500ms var(--ease) both; }
  .mobile-menu-panel ul { list-style: none; margin: 0 0 32px; padding: 0; }
  .mobile-menu-panel li { margin: 0; border-bottom: 1px solid rgba(238, 244, 242, .14); }
  .mobile-menu-panel a { display: flex; min-height: 64px; align-items: center; color: var(--on-dark); text-decoration: none; font: 560 1.8rem/1.1 var(--display); letter-spacing: -0.03em; }
  .mobile-menu-close { position: absolute; top: 20px; right: var(--gutter); width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(238, 244, 242, .4); display: grid; place-items: center; cursor: pointer; color: var(--on-dark); font-size: 1.6rem; line-height: 1; }
}
@keyframes menuIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* River line signature, desktop */
.river-line { display: none; }
@media (min-width: 1440px) {
  .river-line { display: block; position: fixed; left: 14px; top: 0; height: 100vh; width: 40px; z-index: 5; pointer-events: none; }
  .river-line path { fill: none; stroke: var(--river); stroke-width: 1.75; stroke-linecap: round; }
  .river-line .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
}

/* ---------------- Hero ---------------- */
.hero { position: relative; min-height: max(640px, 88vh); min-height: max(640px, 88svh); display: grid; align-items: end; color: #fff; background: var(--deeper); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; view-transition-name: hero-media; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { opacity: 0; transition: opacity 1600ms var(--ease); }
.hero-media video.playing { opacity: 1; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(7, 38, 40, .55) 0%, rgba(7, 38, 40, 0) 30%),
  linear-gradient(95deg, rgba(7, 38, 40, .86) 0%, rgba(7, 38, 40, .55) 42%, rgba(7, 38, 40, .1) 75%),
  linear-gradient(0deg, rgba(7, 38, 40, .9) 0%, rgba(7, 38, 40, 0) 50%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .7fr); gap: 56px; align-items: end; padding-top: 150px; padding-bottom: clamp(48px, 7vh, 88px); }
.hero h1 { color: #fff; margin-bottom: 28px; font-size: clamp(2.9rem, 6vw, 5.6rem); }
.hero .lede { color: rgba(238, 244, 242, .86); margin-bottom: 40px; }
.hero .kicker { color: var(--glacier); }
.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-line > span { display: block; }

.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 640px; }
.path {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; border-radius: var(--r-md);
  background: rgba(238, 244, 242, .1); border: 1px solid rgba(238, 244, 242, .22);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #fff; text-decoration: none; overflow: hidden;
  transition: background-color 400ms var(--ease), border-color 400ms var(--ease), transform 500ms var(--ease);
}
.path strong { font: 600 1.12rem/1.2 var(--display); letter-spacing: -0.015em; }
.path span { font-size: .92rem; color: rgba(238, 244, 242, .78); line-height: 1.4; }
.path svg { position: absolute; right: 18px; top: 20px; width: 20px; height: 20px; stroke: var(--glacier); transition: transform 500ms var(--ease); }
.path:hover { color: #fff; background: rgba(238, 244, 242, .18); border-color: rgba(143, 211, 199, .7); transform: translateY(-3px); }
.path:hover svg { transform: translate(3px, -3px); }
.hero-foot { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; font-size: .92rem; color: rgba(238, 244, 242, .75); list-style: none; padding: 0; }
.hero-foot li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.hero-foot li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--glacier); }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } .ledger { justify-self: start; } }
@media (max-width: 700px) { .ledger { display: none; } }
@media (max-width: 560px) { .paths { grid-template-columns: 1fr; } .hero-grid { padding-top: 120px; } }

/* The ledger: a month closing itself */
.ledger { background: rgba(251, 252, 251, .96); color: var(--ink); border-radius: var(--r-lg); padding: 26px 26px 22px; box-shadow: var(--shadow-lg); max-width: 400px; justify-self: end; width: 100%; }
.ledger-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.ledger-title { font: 600 1.05rem/1.2 var(--display); letter-spacing: -0.015em; margin: 0; }
.ledger-sub { font-size: .82rem; color: var(--ink-3); margin: 4px 0 0; }
.ledger-pill { font-size: .78rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--mist-2); color: var(--ink-2); white-space: nowrap; transition: background-color 400ms var(--ease), color 400ms var(--ease); }
.ledger.done .ledger-pill { background: var(--deep); color: #fff; }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--mist-2); margin: 0; max-width: none; font-size: .95rem; }
.ledger li small { display: block; color: var(--ink-3); font-size: .8rem; }
.ledger .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--mist); display: grid; place-items: center; transition: background-color 400ms var(--ease), border-color 400ms var(--ease); }
.ledger .tick svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; stroke-dasharray: 20; stroke-dashoffset: 0; }
.ledger li.on .tick, .no-js .ledger .tick { background: var(--river); border-color: var(--river); }
.ledger .state { font-size: .8rem; font-weight: 600; color: var(--river); }
.ledger-bar { height: 4px; border-radius: 4px; background: var(--mist-2); margin-top: 16px; overflow: hidden; }
.ledger-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--river), var(--glacier)); transform-origin: left; }
.js .ledger li .tick { background: transparent; border-color: var(--mist); }
.js .ledger li .tick svg { stroke-dashoffset: 20; transition: stroke-dashoffset 500ms var(--ease) 120ms; }
.js .ledger li .state { opacity: 0; transition: opacity 400ms var(--ease); }
.js .ledger li.on .tick { background: var(--river); border-color: var(--river); }
.js .ledger li.on .tick svg { stroke-dashoffset: 0; }
.js .ledger li.on .state { opacity: 1; }
.js .ledger-bar span { transform: scaleX(0); transition: transform 700ms var(--ease); }

/* Hero entrance: one orchestrated sequence */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .split-line > span { transform: translateY(105%); animation: lineUp 1100ms var(--ease) forwards; }
  .js .hero .split-line:nth-child(2) > span { animation-delay: 110ms; }
  .js .hero .fade { opacity: 0; transform: translateY(14px); animation: fadeUp 900ms var(--ease) forwards; }
  .js .hero .fade-1 { animation-delay: 380ms; }
  .js .hero .fade-2 { animation-delay: 520ms; }
  .js .hero .fade-3 { animation-delay: 660ms; }
  .js .hero .ledger { opacity: 0; transform: translateY(30px) scale(.98); animation: fadeUp 1200ms var(--ease) 600ms forwards; }
  .hero-media img.kb { animation: kenburns 24s linear both; }
}
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------------- Recognition: sound familiar ---------------- */
.familiar { background: var(--surface); border-bottom: 1px solid var(--mist-2); }
.quotes { padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--mist); }
.quotes li { list-style: none; margin: 0; max-width: none; padding: 32px 28px 8px 0; border-right: 1px solid var(--mist); }
.quotes li + li { padding-left: 28px; }
.quotes li:last-child { border-right: 0; }
.quotes blockquote { margin: 0 0 14px; font: 520 clamp(1.3rem, 1.9vw, 1.65rem)/1.18 var(--display); letter-spacing: -0.025em; color: var(--ink); }
.quotes p { font-size: .98rem; color: var(--ink-3); margin: 0; }
@media (max-width: 980px) { .quotes { grid-template-columns: repeat(2, 1fr); } .quotes li:nth-child(2) { border-right: 0; } .quotes li:nth-child(3) { padding-left: 0; } .quotes li:nth-child(n+3) { border-top: 1px solid var(--mist); } }
@media (max-width: 600px) { .quotes { grid-template-columns: 1fr; } .quotes li, .quotes li + li { border-right: 0; padding-left: 0; } .quotes li + li { border-top: 1px solid var(--mist); } }
.familiar-close { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--mist); }
.familiar-close p { margin: 0; font: 520 clamp(1.3rem, 2vw, 1.7rem)/1.25 var(--display); letter-spacing: -0.02em; max-width: 34ch; color: var(--ink); }

/* ---------------- Services bento ---------------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(240px, auto); gap: 14px; list-style: none; padding: 0; margin: 0; }
.bento > li { margin: 0; max-width: none; }
.tile { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--mist); overflow: hidden; color: var(--ink); text-decoration: none; isolation: isolate; transition: border-color 400ms var(--ease), transform 600ms var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(143, 211, 199, .28), transparent 60%); opacity: 0; transition: opacity 400ms var(--ease); }
.tile:hover { border-color: rgba(28, 90, 87, .45); transform: translateY(-4px); color: var(--ink); }
.tile:hover::before { opacity: 1; }
.tile h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.tile p { margin: 0; color: var(--ink-3); font-size: 1rem; max-width: 40ch; }
.tile .go { position: absolute; top: 26px; right: 26px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--mist); display: grid; place-items: center; transition: background-color 400ms var(--ease), border-color 400ms var(--ease), transform 600ms var(--ease); }
.tile .go svg { width: 18px; height: 18px; stroke: var(--deep); }
.tile:hover .go { background: var(--deep); border-color: var(--deep); transform: rotate(-45deg); }
.tile:hover .go svg { stroke: #fff; }
.tile-photo { color: #fff; min-height: 520px; border: 0; background: var(--deep); }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1400ms var(--ease); }
.tile-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 38, 40, .92) 0%, rgba(7, 38, 40, .35) 55%, rgba(7, 38, 40, .05) 100%); }
.tile-photo h3 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.tile-photo p { color: rgba(238, 244, 242, .85); }
.tile-photo:hover { color: #fff; }
.tile-photo:hover img { transform: scale(1.05); }
.tile-photo .go { border-color: rgba(255, 255, 255, .4); }
.tile-photo .go svg { stroke: #fff; }
.tile-photo:hover .go { background: var(--glacier); border-color: var(--glacier); }
.tile-photo:hover .go svg { stroke: var(--ink); }
.tile-deep { background: var(--deep); border-color: var(--deep); color: var(--on-dark); }
.tile-deep h3 { color: var(--on-dark); }
.tile-deep p { color: var(--on-dark-2); }
.tile-deep:hover { color: var(--on-dark); }
.tile-deep .go { border-color: rgba(238, 244, 242, .35); }
.tile-deep .go svg { stroke: var(--on-dark); }
.b-a { grid-column: span 7; grid-row: span 2; }
.b-b { grid-column: span 5; }
.b-c { grid-column: span 5; }
.b-d { grid-column: span 4; }
.b-e { grid-column: span 4; }
.b-f { grid-column: span 4; }
@media (max-width: 980px) { .b-a, .b-b, .b-c, .b-d, .b-e, .b-f { grid-column: span 6; grid-row: auto; } .b-a { grid-column: span 12; } .tile-photo { min-height: 420px; } }
@media (max-width: 620px) { .bento > li { grid-column: span 12 !important; } .bento { grid-auto-rows: auto; } .tile { min-height: 200px; } .tile-photo { min-height: 400px; } }

/* ---------------- Two buyers ---------------- */
.buyers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.buyer { border-radius: var(--r-lg); padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; }
.buyer-a { background: var(--surface); border: 1px solid var(--mist); }
.buyer-b { background: var(--deep) url("/assets/img/river-texture-b.jpg") center/cover no-repeat; color: var(--on-dark); }
.buyer-b h3, .buyer-b strong { color: var(--on-dark); }
.buyer-b p, .buyer-b li { color: var(--on-dark-2); }
.buyer h3 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 16px; }
.buyer .tag { font-size: .92rem; font-weight: 600; color: var(--river); margin-bottom: 18px; }
.buyer-b .tag { color: var(--glacier); }
.buyer-b .text-link { color: var(--on-dark); }
.buyer .btn-row { margin-top: auto; padding-top: 28px; }
@media (max-width: 900px) { .buyers { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 8px 0 0; }
.checks li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--mist-2); margin: 0; }
.buyer-b .checks li { border-color: rgba(238, 244, 242, .14); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 16px; height: 9px; border-left: 2px solid var(--river); border-bottom: 2px solid var(--river); transform: rotate(-45deg); }
.buyer-b .checks li::before { border-color: var(--glacier); }

/* ---------------- How it works: pinned story ---------------- */
.story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.story-pin { position: sticky; top: 120px; }
.story-meter { display: flex; gap: 8px; margin-top: 36px; }
.story-meter span { flex: 1; height: 3px; border-radius: 3px; background: rgba(238, 244, 242, .18); overflow: hidden; position: relative; }
.story-meter span::after { content: ""; position: absolute; inset: 0; background: var(--glacier); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease); }
.story-meter span.on::after { transform: scaleX(1); }
.no-js .story-meter span::after { transform: scaleX(1); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { margin: 0; max-width: none; padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid rgba(238, 244, 242, .16); transition: opacity 600ms var(--ease); }
.step:last-child { border-bottom: 1px solid rgba(238, 244, 242, .16); }
.js .step { opacity: .38; }
.js .step.on { opacity: 1; }
.step-num { font: 500 1rem/1 var(--display); color: var(--glacier); margin-bottom: 18px; display: block; }
.step h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.08; }
.step p { font-size: 1.08rem; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } .story-pin { position: static; } .js .step { opacity: 1; } }

/* ---------------- Sample month report ---------------- */
.report-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
@media (max-width: 960px) { .report-wrap { grid-template-columns: 1fr; } }
.report { background: var(--surface); border: 1px solid var(--mist); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-lg); }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--mist-2); }
.report-head h3 { margin: 0; font-size: 1.25rem; }
.report-head p { margin: 4px 0 0; font-size: .86rem; color: var(--ink-3); }
.badge { font-size: .76rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--mist-2); color: var(--ink-2); white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; }
.kpis div { padding: 22px 18px 20px 0; }
.kpis div + div { padding-left: 18px; border-left: 1px solid var(--mist-2); }
.kpis dt { font-size: .82rem; color: var(--ink-3); margin-bottom: 8px; }
.kpis dd { margin: 0; font: 560 clamp(1.4rem, 2.6vw, 2rem)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 6px; height: 140px; padding: 18px 0 8px; border-top: 1px solid var(--mist-2); }
.bars span { display: block; border-radius: 4px 4px 2px 2px; background: var(--mist); transform-origin: bottom; }
.bars span:nth-child(1) { height: 52%; transition-delay: 0ms; }
.bars span:nth-child(2) { height: 58%; transition-delay: 45ms; }
.bars span:nth-child(3) { height: 61%; transition-delay: 90ms; }
.bars span:nth-child(4) { height: 70%; transition-delay: 135ms; }
.bars span:nth-child(5) { height: 76%; transition-delay: 180ms; }
.bars span:nth-child(6) { height: 88%; transition-delay: 225ms; }
.bars span:nth-child(7) { height: 94%; transition-delay: 270ms; }
.bars span:nth-child(8) { height: 91%; transition-delay: 315ms; }
.bars span:nth-child(9) { height: 84%; transition-delay: 360ms; }
.bars span:nth-child(10) { height: 80%; transition-delay: 405ms; }
.bars span:nth-child(11) { height: 66%; transition-delay: 450ms; }
.bars span:nth-child(12) { height: 72%; transition-delay: 495ms; }

.bars span.cur { background: var(--river); }
.js .bars span { transform: scaleY(0); transition: transform 900ms var(--ease); }
.js .report.in .bars span { transform: scaleY(1); }
.bars-legend { display: flex; justify-content: space-between; font-size: .76rem; color: var(--ink-3); }
.report-notes { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--mist-2); font-size: .92rem; color: var(--ink-2); }
.report-notes p { margin: 0 0 6px; }
.sample-note { font-size: .84rem; color: var(--ink-3); margin-top: 14px; }

/* ---------------- Local band ---------------- */
.local { position: relative; min-height: 86vh; display: grid; align-items: end; color: #fff; overflow: hidden; isolation: isolate; }
.local-media { position: absolute; inset: -10% 0; z-index: -2; }
.local-media img { width: 100%; height: 100%; object-fit: cover; }
.local-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 38, 40, .95) 0%, rgba(7, 38, 40, .72) 50%, rgba(7, 38, 40, .2) 85%), linear-gradient(90deg, rgba(7, 38, 40, .5) 0%, rgba(7, 38, 40, 0) 60%); }
@media (max-width: 820px) { .local-shade { background: linear-gradient(0deg, rgba(7, 38, 40, .95) 0%, rgba(7, 38, 40, .75) 60%, rgba(7, 38, 40, .35) 100%); } }
.local-inner { padding-top: 200px; padding-bottom: clamp(64px, 9vw, 120px); }
.local h2 { color: #fff; max-width: 16ch; }
.local p { color: rgba(238, 244, 242, .86); }
.local .kicker { color: var(--glacier); }
.towns { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 32px 0 0; }
.towns li { margin: 0; }
.towns a { display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); color: #fff; text-decoration: none; font-weight: 500; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(255, 255, 255, .06); transition: background-color 400ms var(--ease), color 400ms var(--ease); }
.towns a:hover { background: #fff; color: var(--deep); }

/* ---------------- Deadlines ---------------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.timeline li { margin: 0; max-width: none; padding: 28px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--mist); display: flex; flex-direction: column; gap: 6px; }
.timeline li:first-child { background: var(--deep); border-color: var(--deep); color: var(--on-dark); }
.timeline li:first-child strong, .timeline li:first-child time { color: var(--on-dark); }
.timeline li:first-child p, .timeline li:first-child .weekday { color: var(--on-dark-2); }
.timeline .weekday { font-size: .86rem; color: var(--ink-3); }
.timeline time { font: 560 1.7rem/1.05 var(--display); letter-spacing: -0.03em; color: var(--ink); margin-bottom: 10px; }
.timeline strong { font-weight: 600; }
.timeline p { font-size: .95rem; color: var(--ink-3); margin: 0; }
@media (max-width: 1000px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }

/* ---------------- Price factors ---------------- */
.factors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(238, 244, 242, .18); list-style: none; padding: 0; margin: 0; }
.factors li { margin: 0; max-width: none; padding: 36px 32px 0 0; }
.factors li + li { padding-left: 32px; border-left: 1px solid rgba(238, 244, 242, .18); }
.factors h3 { font-size: 1.4rem; }
@media (max-width: 860px) { .factors { grid-template-columns: 1fr; } .factors li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(238, 244, 242, .18); } .factors li { padding: 28px 0; } }
.promise { margin-top: clamp(48px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: rgba(238, 244, 242, .07); border: 1px solid rgba(238, 244, 242, .16); }
.promise p { margin: 0; font: 520 clamp(1.25rem, 2vw, 1.6rem)/1.3 var(--display); letter-spacing: -0.02em; color: var(--on-dark); max-width: 36ch; }

/* ---------------- FAQ ---------------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq-grid .head-side { position: sticky; top: 120px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .head-side { position: static; } }
.faq { border-top: 1px solid var(--mist); }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 72px; padding: 22px 0; font: 560 clamp(1.1rem, 1.5vw, 1.3rem)/1.3 var(--display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { flex: none; position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--mist); transition: background-color 400ms var(--ease), border-color 400ms var(--ease), transform 500ms var(--ease); }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--deep); transform: translate(-50%, -50%); transition: transform 500ms var(--ease), background-color 400ms var(--ease); }
.faq .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .pm { background: var(--deep); border-color: var(--deep); transform: rotate(180deg); }
.faq details[open] .pm::before, .faq details[open] .pm::after { background: #fff; }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { padding: 0 60px 28px 0; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .faq .answer { padding-right: 0; } }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 500ms var(--ease), content-visibility 500ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
:root { interpolate-size: allow-keywords; }

/* ---------------- Final call to action + booking funnel ---------------- */
.final { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.final-media { position: absolute; inset: 0; z-index: -2; }
.final-media img { width: 100%; height: 100%; object-fit: cover; }
.final-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(5, 22, 26, .94) 0%, rgba(5, 22, 26, .78) 48%, rgba(5, 22, 26, .45) 100%); }
.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(40px, 7vw, 112px); align-items: center; }
.final h2 { color: #fff; }
.final p { color: rgba(238, 244, 242, .82); }
.final .kicker { color: var(--glacier); }
.final a:not(.btn) { color: #fff; }
.next-list { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: n; }
.next-list li { position: relative; padding: 0 0 22px 48px; margin: 0; color: rgba(238, 244, 242, .85); }
.next-list li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(143, 211, 199, .6); display: grid; place-items: center; font-size: .85rem; color: var(--glacier); }
.next-list strong { color: #fff; font-weight: 600; }
@media (max-width: 980px) { .final-grid { grid-template-columns: 1fr; } }

.funnel { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .6); }
.funnel h2, .funnel h3 { color: var(--ink); font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; margin: 0 0 8px; }
.funnel > p { color: var(--ink-3); font-size: .98rem; margin-bottom: 22px; }
.funnel-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font-size: .86rem; color: var(--ink-3); }
.funnel-progress .track { flex: 1; height: 4px; background: var(--mist-2); border-radius: 4px; overflow: hidden; }
.funnel-progress .fill { display: block; height: 100%; width: 33.34%; background: linear-gradient(90deg, var(--river), var(--glacier)); border-radius: 4px; transition: width 700ms var(--ease); }
.no-js .funnel-progress { display: none; }
.fstep { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.fstep legend { font: 600 1.12rem/1.3 var(--display); letter-spacing: -0.015em; margin-bottom: 14px; padding: 0; color: var(--ink); }
.js .fstep { display: none; margin: 0; }
.js .fstep.active { display: block; animation: stepIn 600ms var(--ease) both; }
.js .fstep.back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choices.one { grid-template-columns: 1fr; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 14px 16px 14px 46px; border-radius: 14px; border: 1.5px solid var(--mist); background: #fff; font-weight: 600; font-size: .98rem; line-height: 1.25; transition: border-color 300ms var(--ease), background-color 300ms var(--ease), box-shadow 300ms var(--ease); position: relative; }
.choice span small { font-weight: 400; color: var(--ink-3); font-size: .84rem; }
.choice span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 1.5px solid #8A9A96; background: #fff; transition: border-width 300ms var(--ease), border-color 300ms var(--ease); }
.choice input:checked + span { border-color: var(--river); background: #F3FAF8; box-shadow: 0 0 0 3px rgba(28, 90, 87, .12); }
.choice input:checked + span::before { border: 6px solid var(--river); }
.choice input:focus-visible + span { outline: 3px solid var(--river); outline-offset: 2px; }
.choice:hover span { border-color: rgba(28, 90, 87, .55); }
@media (max-width: 480px) { .choices { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 6px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea { width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid #74827F; background: #fff; color: var(--ink); font: 16px/1.4 var(--body); transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--river); box-shadow: 0 0 0 4px rgba(28, 90, 87, .16); }
.field .hint { font-size: .86rem; color: var(--ink-3); margin: 8px 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.consent { border: 0; padding: 0; margin: 4px 0 18px; }
.consent label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .76rem; line-height: 1.5; color: var(--ink-3); margin-bottom: 12px; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--river); }
.consent a { color: var(--ink-2); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.funnel-nav { display: flex; gap: 10px; align-items: center; }
.funnel-nav .btn { flex: 1; }
.funnel-back { background: none; border: 0; padding: 0 8px; min-height: 56px; font: 600 .95rem var(--body); color: var(--ink-3); cursor: pointer; }
.funnel-back:hover { color: var(--ink); }
.no-js .funnel-back, .no-js .funnel-next { display: none; }
.js .funnel-submit { display: none; }
.js .funnel.on-last .funnel-submit { display: inline-flex; }
.js .funnel.on-last .funnel-next { display: none; }
.js .funnel:not(.past-first) .funnel-back { visibility: hidden; }
.form-status { margin: 12px 0 0; font-size: .92rem; font-weight: 600; color: var(--river); min-height: 1.2em; }
.funnel-assure { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; font-size: .82rem; color: var(--ink-3); }
.funnel-assure svg { width: 14px; height: 14px; stroke: var(--river); }

/* ---------------- Inner pages ---------------- */
.page-hero { position: relative; color: #fff; background: var(--deeper); overflow: hidden; isolation: isolate; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; view-transition-name: hero-media; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(7, 38, 40, .94) 0%, rgba(7, 38, 40, .8) 45%, rgba(7, 38, 40, .35) 100%); }
.page-hero.plain { background: var(--deep) url("/assets/img/river-texture.jpg") center/cover no-repeat; }
.page-hero-inner { padding: clamp(150px, 16vw, 210px) 0 clamp(64px, 8vw, 112px); }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 5.2rem); max-width: 16ch; }
.page-hero .lede { color: rgba(238, 244, 242, .86); }
.page-hero .kicker { color: var(--glacier); }
.page-hero .btn-row { margin-top: 32px; }
.crumbs { font-size: .88rem; margin-bottom: 28px; color: rgba(238, 244, 242, .7); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .js .page-hero h1, .js .page-hero .lede, .js .page-hero .crumbs, .js .page-hero .kicker, .js .page-hero .btn-row { opacity: 0; transform: translateY(18px); animation: fadeUp 1000ms var(--ease) forwards; }
  .js .page-hero .kicker { animation-delay: 60ms; }
  .js .page-hero h1 { animation-delay: 120ms; }
  .js .page-hero .lede { animation-delay: 240ms; }
  .js .page-hero .btn-row { animation-delay: 340ms; }
  .page-hero-media img { animation: kenburns 24s linear both; }
}

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.layout aside { position: sticky; top: 104px; }
@media (max-width: 1060px) { .layout { grid-template-columns: 1fr; } .layout aside { position: static; } }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-top: 72px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 40px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose .checklist { list-style: none; padding: 0; border-top: 1px solid var(--mist); }
.prose .checklist li { position: relative; padding: 16px 0 16px 36px; border-bottom: 1px solid var(--mist); margin: 0; max-width: none; }
.prose .checklist li::before { content: ""; position: absolute; left: 2px; top: 24px; width: 16px; height: 9px; border-left: 2px solid var(--river); border-bottom: 2px solid var(--river); transform: rotate(-45deg); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 56px; }
.toc li { margin: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--mist); color: var(--ink-2); text-decoration: none; font-size: .92rem; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.toc a:hover { background: var(--deep); color: #fff; border-color: var(--deep); }
.aside-card { background: var(--surface); border: 1px solid var(--mist); border-radius: var(--r-lg); padding: 32px; }
.aside-card h2 { font-size: 1.5rem; margin: 0 0 10px; }
.aside-card .btn { width: 100%; margin-top: 12px; }
.links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.links li { margin: 0; max-width: none; }
.links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding: 14px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--mist); color: var(--ink); text-decoration: none; font-weight: 500; transition: border-color 300ms var(--ease), transform 400ms var(--ease); }
.links a::after { content: ""; flex: none; width: 8px; height: 8px; border-top: 1.5px solid var(--river); border-right: 1.5px solid var(--river); transform: rotate(45deg); transition: transform 400ms var(--ease); }
.links a:hover { border-color: var(--river); transform: translateY(-2px); }
.links a:hover::after { transform: translateX(3px) rotate(45deg); }
.figure { margin: 56px 0; border-radius: var(--r-lg); overflow: hidden; }
.figure img { width: 100%; }
.segments { border-top: 1px solid var(--mist); }
.segment { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 32px 64px; padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--mist); }
.segment h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0; }
@media (max-width: 800px) { .segment { grid-template-columns: 1fr; } }
.doc-list { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--mist); }
.doc-list li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--mist); margin: 0; max-width: none; }
.doc-list span { color: var(--ink-2); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
@media (max-width: 860px) { .cols-2 { grid-template-columns: 1fr; } }

/* Reveal on scroll: big images wipe in, headings settle. Kept to a few deliberate places. */
@media (prefers-reduced-motion: no-preference) {
  .js .wipe { clip-path: inset(12% 6% 12% 6% round 28px); transition: clip-path 1400ms var(--ease); }
  .js .wipe.in { clip-path: inset(0 0 0 0 round 28px); }
  .js .rise { opacity: 0; transform: translateY(28px); transition: opacity 1000ms var(--ease), transform 1000ms var(--ease); }
  .js .rise.in { opacity: 1; transform: none; }
  .js .rise-d1 { transition-delay: 90ms; }
  .js .rise-d2 { transition-delay: 180ms; }
}

/* View transitions: header stays put, content cross fades with a 12px rise */
::view-transition-old(root) { animation: 260ms var(--ease) both vtOut; }
::view-transition-new(root) { animation: 520ms var(--ease) both vtIn; }
::view-transition-group(hero-media) { animation-duration: 600ms; animation-timing-function: var(--ease); }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(12px); } }

/* Footer */
.site-footer { padding: clamp(80px, 10vw, 140px) 0 40px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, .8fr)); gap: 48px; }
.footer-cta h2 { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 12ch; margin-bottom: 28px; }
.site-footer h3 { font: 600 .95rem/1.3 var(--body); letter-spacing: 0; color: var(--on-dark-2); margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 10px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; border-top: 1px solid rgba(238, 244, 242, .16); font-size: .88rem; color: var(--on-dark-2); }
.footer-base p { margin: 0; color: var(--on-dark-2); max-width: none; }
.footer-warning { color: var(--on-dark) !important; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-cta { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* Sticky mobile bar */
.mobile-bar { display: none; }
@media (max-width: 820px) {
  .mobile-bar { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; transition: transform 600ms var(--ease), opacity 400ms var(--ease); }
  .mobile-bar .btn { width: 100%; box-shadow: 0 20px 40px -16px rgba(7, 38, 40, .6); }
  .js .mobile-bar { transform: translateY(140%); opacity: 0; }
  .js .mobile-bar.show { transform: none; opacity: 1; }
  .site-footer { padding-bottom: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .hero-media video { display: none; }
  .river-line .draw { stroke-dashoffset: 0 !important; }
  .js .fstep.active { animation: none; }
}
@media (min-width: 2200px) { :root { --wrap: 1440px; } body { font-size: 19px; } }
.layout aside .choices { grid-template-columns: 1fr; }
.final .funnel p, .dark .funnel p { color: var(--ink-3); }
.final .funnel a:not(.btn), .dark .funnel a:not(.btn) { color: var(--ink-2); }
.funnel .subq { font: 600 1rem/1.3 var(--display); color: var(--ink); margin: 20px 0 12px; }
/* Phone */
.header-phone { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone:hover { text-decoration: underline; }
.on-hero .site-header:not(.scrolled) .header-phone { color: #fff; }
@media (max-width: 1240px) and (min-width: 1081px) { .nav a { padding: 0 10px; } }
@media (max-width: 1080px) { .header-phone { margin-left: auto; } .header-cta { margin-left: 0; } }
@media (max-width: 720px) { .header-phone { display: none; } .header-cta { margin-left: auto; } }
.hero-call { margin: 22px 0 0; color: rgba(238, 244, 242, .8); font-size: .98rem; }
.hero-call a { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.funnel-call { text-align: center; font-size: .9rem; color: var(--ink-3); margin: 6px 0 0; }
.funnel-call a { font-weight: 600; color: var(--deep); }
.final .funnel .funnel-call a { color: var(--deep); }
.mobile-menu-panel .btn + .btn { margin-top: 10px; }
@media (max-width: 820px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
  .mobile-bar .btn-call { --bg: var(--surface); --fg: var(--deep); --bd: rgba(11, 52, 54, .25); }
  .mobile-bar .btn-call::after { background: var(--mist-2); }
}
.nav a, .logo-text { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 1081px) { .header-phone { display: none; } }
/* Brand lockup: engraved river emblem and RIVERSIDE wordmark */
.logo { flex: none; display: inline-flex; align-items: center; }
.logo-img { width: 264px; height: auto; transition: width 400ms var(--ease), opacity 300ms var(--ease); }
.scrolled .logo-img { width: 224px; }
.logo-light { display: none; }
.on-hero .site-header:not(.scrolled) .logo-light { display: block; }
.on-hero .site-header:not(.scrolled) .logo-teal { display: none; }
@media (max-width: 560px) { .logo-img, .scrolled .logo-img { width: 188px; } }
.site-footer .footer-logo { margin-top: clamp(64px, 9vw, 112px); margin-bottom: 40px; }
.site-footer .footer-logo img { width: min(100%, 420px); height: auto; opacity: .92; }
.brand-seal img { width: min(100%, 320px) !important; }
.brand-figure { margin: 8px 0 0; padding: clamp(32px, 5vw, 56px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--mist); }
.brand-figure img { width: min(100%, 560px); height: auto; margin: 0 auto; }
@media (max-width: 440px) { .mobile-menu { margin-left: auto; } }
