/* Root & Branch Ventures
   One dark theme. One accent ("sap"). One radius scale (soft: 14px cards, pill buttons). */

:root {
  --ground: #121513;
  --surface: #1a1f1c;
  --surface-2: #212823;
  --line: #2a312d;
  --text: #ecefe9;
  --muted: #9aa39c;
  --sap: #b5cc6a;
  --sap-ink: #1a2109;
  --radius: 14px;
  --display: "Cabinet Grotesk", "Inter Tight", system-ui, sans-serif;
  --body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--sap); color: var(--sap-ink); }
:focus-visible { outline: 2px solid var(--sap); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--sap); color: var(--sap-ink); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 0; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 700; line-height: 1.15; }
p { margin: 0; }
.lede { color: var(--muted); font-size: 1.125rem; max-width: 58ch; }
.accent { color: var(--sap); }
.eyebrow { font: 600 0.78rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sap); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.4em; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--sap); color: var(--sap-ink); }
.btn-primary:hover { background: #c4d97c; transform: translateY(-2px); }
.btn-primary svg { transition: transform 0.25s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { border-color: rgba(236, 239, 233, 0.28); color: var(--text); background: rgba(18, 21, 19, 0.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--text); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px;
  display: flex; align-items: center;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(18, 21, 19, 0.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.2rem/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.logo img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-phone { text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav-phone:hover { color: var(--sap); }
.nav .btn { min-height: 42px; font-size: 0.93rem; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav.is-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.is-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-links, .nav-phone { display: none; }
  .menu-btn { display: block; margin-left: 0; }
  .nav .btn { margin-left: auto; transition: opacity 0.3s, transform 0.25s; }
  body.has-mobile-cta .nav .btn { opacity: 0; pointer-events: none; }
  .nav .wrap { gap: 12px; }
  .nav.is-open { background: var(--ground); }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; top: 72px; left: 0; right: 0; padding: 12px var(--gutter) 24px;
    background: var(--ground); border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav-links a { display: block; padding: 12px 0; font-size: 1.15rem; color: var(--text); border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .logo span { display: none; }
  .nav .btn { padding: 0 1em; font-size: 0.88rem; }
}

/* ---------- film (scroll-scrubbed hero) ---------- */
.film { position: relative; height: 520vh; }
.film-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: var(--ground); }
.film-media, .film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-poster { transition: opacity 0.6s; }
.film.is-ready .film-poster { opacity: 0; }
.film-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 21, 19, 0.95) 0%, rgba(18, 21, 19, 0.82) 30%, rgba(18, 21, 19, 0.35) 52%, rgba(18, 21, 19, 0) 68%),
    linear-gradient(0deg, rgba(18, 21, 19, 0.75) 0%, rgba(18, 21, 19, 0) 30%);
}
.film-load { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--sap); transition: width 0.3s, opacity 0.5s; z-index: 3; }
.film.is-ready .film-load { opacity: 0; }
.chapters { position: absolute; inset: 0; z-index: 2; }
.chapter {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(calc(-50% + var(--shift, 0px)));
  opacity: var(--o, 0); visibility: hidden;
  transition: opacity 0.15s linear;
}
.chapter.is-on { visibility: visible; }
.chapter .wrap > div { max-width: 560px; }
.chapter:first-child .wrap > div { max-width: 760px; }
.chapter h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
@media (min-width: 761px) { .film-media, .film-poster { object-position: 18% center; } }
.chapter h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.chapter p { margin-top: 20px; font-size: 1.15rem; color: #cfd5cd; max-width: 46ch; }
.chapter .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chapter-step { display: inline-flex; align-items: center; gap: 10px; color: var(--sap); font-weight: 600; font-size: 0.95rem; margin-bottom: 18px; }
.chapter-step::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.film-progress { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 3; display: grid; gap: 10px; }
.film-progress i { display: block; width: 3px; height: 26px; border-radius: 3px; background: rgba(236, 239, 233, 0.22); transition: background-color 0.3s, height 0.3s; }
.film-progress i.is-on { background: var(--sap); height: 40px; }

@media (max-width: 760px) {
  .film-scrim { background: linear-gradient(0deg, rgba(18, 21, 19, 0.96) 0%, rgba(18, 21, 19, 0.75) 42%, rgba(18, 21, 19, 0) 70%); }
  .chapter { top: auto; bottom: 7vh; transform: translateY(var(--shift, 0px)); }
  .chapter p { font-size: 1.05rem; }
  .film-progress { display: none; }
}

/* Reduced motion or no JS: stack chapters statically over the closing frame. */
.film.is-static { height: auto; }
.film.is-static .film-stage { position: relative; height: auto; min-height: 100dvh; }
.film.is-static .film-media { display: none; }
.film.is-static .film-poster { opacity: 1; position: absolute; inset: 0; }
.film.is-static .chapters { position: relative; padding: 140px 0 80px; display: grid; gap: 22vh; }
.film.is-static .chapter { position: relative; top: auto; bottom: auto; transform: none; opacity: 1; visibility: visible; }
.film.is-static .film-progress, .film.is-static .film-load { display: none; }

/* ---------- sections ---------- */
section.block { position: relative; padding: clamp(80px, 12vw, 150px) 0; background: var(--ground); }
.block-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 64px); max-width: 720px; }

/* work: Filly's */
.work-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.devices { position: relative; padding-bottom: 8%; }
.device-desktop { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.device-desktop .bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.device-desktop .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.device-phone {
  position: absolute; right: -4%; bottom: 0; width: 27%;
  border-radius: 26px; overflow: hidden; border: 6px solid #0c0e0d; background: #0c0e0d;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.work-copy h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; }
.work-copy .meta { color: var(--muted); margin-top: 10px; }
.built-list { list-style: none; padding: 0; margin: 28px 0 32px; border-top: 1px solid var(--line); }
.built-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.built-list svg { margin-top: 5px; color: var(--sap); }
.built-list strong { display: block; font-weight: 600; }
.built-list span { color: var(--muted); font-size: 0.95rem; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.text-link { color: var(--sap); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .device-phone { right: 2%; }
}

/* pricing */
.anchor { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 28px; background: var(--surface); }
.anchor div { display: grid; gap: 2px; }
.anchor small { color: var(--muted); font-size: 0.85rem; }
.anchor .them strong { font: 700 1.6rem/1.1 var(--display); color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(154, 163, 156, 0.6); }
.anchor .us { text-align: right; }
.anchor .us strong { font: 800 1.6rem/1.1 var(--display); color: var(--sap); }
.anchor .vs { color: var(--muted); font-size: 0.9rem; }
.plans { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plan.is-featured { border-color: var(--sap); background: linear-gradient(180deg, rgba(181, 204, 106, 0.08), rgba(181, 204, 106, 0) 40%), var(--surface); transform: translateY(-12px); box-shadow: 0 30px 70px -40px rgba(181, 204, 106, 0.45); }
.plan .badge { position: absolute; top: -13px; left: 26px; background: var(--sap); color: var(--sap-ink); font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.5rem; }
.plan .for { color: var(--muted); font-size: 0.95rem; margin-top: 6px; min-height: 3.3em; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.price strong { font: 800 3rem/1 var(--display); letter-spacing: -0.04em; }
.price span { color: var(--muted); }
.price-note { color: var(--muted); font-size: 0.85rem; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 0.95rem; }
.plan li svg { margin-top: 5px; color: var(--sap); }
.plan .btn { width: 100%; }
.plan:not(.is-featured) .btn-primary { background: transparent; color: var(--text); border-color: rgba(236, 239, 233, 0.3); }
.plan:not(.is-featured) .btn-primary:hover { border-color: var(--sap); color: var(--sap); }
.terms { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; color: var(--muted); font-size: 0.95rem; }
.terms p strong { color: var(--text); font-weight: 600; }
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan.is-featured { transform: none; order: -1; }
  .terms { grid-template-columns: 1fr; }
  .anchor { grid-template-columns: 1fr; text-align: left; }
  .anchor .us { text-align: left; }
  .anchor .vs { display: none; }
}

/* how it works: horizontal timeline with a growing root line */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 46px; }
.steps-line { position: absolute; left: 0; right: 0; top: 0; height: 24px; width: 100%; overflow: visible; }
.steps-line path { fill: none; stroke: var(--sap); stroke-width: 2; stroke-linecap: round; }
.step { position: relative; }
.step::before { content: ""; position: absolute; top: -40px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--ground); border: 2px solid var(--sap); }
.step .when { color: var(--sap); font-weight: 600; font-size: 0.95rem; }
.step h3 { margin: 8px 0 10px; font-size: 1.6rem; }
.step p { color: var(--muted); max-width: 34ch; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; padding-top: 0; padding-left: 34px; gap: 40px; }
  .steps-line { display: none; }
  .steps::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--sap), rgba(181, 204, 106, 0.1)); }
  .step::before { top: 6px; left: -34px; }
}

/* ventures: horizontal strip */
.ventures-intro { display: grid; gap: 18px; max-width: 640px; margin-bottom: 40px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 24px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.strip { list-style: none; margin-block: 0; }
.strip > li { display: flex; }
.venture { flex: 1; scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); text-decoration: none; transition: border-color 0.3s, transform 0.4s var(--ease); }
a.venture:hover { border-color: rgba(181, 204, 106, 0.6); transform: translateY(-4px); }
.venture-art { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.venture-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
a.venture:hover .venture-art img { transform: scale(1.04); }
.venture-art.is-phones { display: flex; gap: 10px; justify-content: center; align-items: flex-end; padding: 18px 18px 0; background: linear-gradient(160deg, #2b3a5c, #1b2236); }
.venture-art.is-phones img { width: 30%; height: auto; border-radius: 12px 12px 0 0; object-fit: contain; }
.venture-art.is-icon { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #3a2f22, #1d1915); }
.venture-art.is-icon img { width: 42%; height: auto; border-radius: 22%; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6); }
.venture-body { padding: 22px; display: grid; gap: 8px; }
.venture-body .status { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.venture-body .status.live { color: var(--sap); }
.venture-body p { color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 90px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.08rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--sap); font-size: 1.5rem; line-height: 1; transition: transform 0.3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding: 0 0 22px; max-width: 62ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* final CTA + form */
.closer { position: relative; overflow: hidden; padding: clamp(90px, 13vw, 160px) 0; isolation: isolate; }
.closer-bg { position: absolute; inset: 0; z-index: -1; background: url("/assets/img/canopy-wide.webp") right center / cover no-repeat; }
.closer-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 21, 19, 0.96) 30%, rgba(18, 21, 19, 0.55) 70%, rgba(18, 21, 19, 0.35)); }
.closer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.closer h2 { font-size: clamp(2.3rem, 5vw, 4rem); }
.closer .lede { margin-top: 20px; color: #c6ccc4; }
.promise { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.promise li { display: flex; gap: 12px; align-items: flex-start; }
.promise svg { color: var(--sap); flex: none; margin-top: 5px; }
.direct { margin-top: 30px; color: var(--muted); }
.direct a { color: var(--text); font-weight: 600; }
.form-card { background: rgba(26, 31, 28, 0.86); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.92rem; font-weight: 600; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--ground); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sap); box-shadow: 0 0 0 3px rgba(181, 204, 106, 0.18); }
.field input[aria-invalid="true"] { border-color: #e08a7a; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { width: 100%; margin-top: 6px; }
.form-note { color: var(--muted); font-size: 0.85rem; margin-top: 14px; text-align: center; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 0.95rem; display: none; }
.form-status.is-error { display: block; background: rgba(224, 138, 122, 0.12); border: 1px solid rgba(224, 138, 122, 0.4); }
.form-done { display: none; text-align: center; padding: 30px 6px; }
.form-done svg { margin: 0 auto 16px; color: var(--sap); }
.form-done h3 { font-size: 1.8rem; margin-bottom: 10px; }
.form-done p { color: var(--muted); }
.form-card.is-done form { display: none; }
.form-card.is-done .form-done { display: block; }
.noscript-note { margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 0.92rem; }
@media (max-width: 900px) {
  .closer-grid { grid-template-columns: 1fr; }
  .closer-bg { background-position: 70% center; }
  .closer-bg::after { background: rgba(18, 21, 19, 0.85); }
}
@media (max-width: 480px) { .two { grid-template-columns: 1fr; gap: 0; } }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .logo { color: var(--text); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* sticky mobile CTA */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    padding: 8px; border-radius: 999px; background: rgba(18, 21, 19, 0.9); backdrop-filter: blur(10px); border: 1px solid var(--line);
    transform: translateY(140%); transition: transform 0.4s var(--ease);
  }
  .mobile-cta.is-on { transform: none; }
  .mobile-cta .btn { flex: 1; min-height: 46px; }
  .mobile-cta .btn-call { flex: none; width: 46px; padding: 0; border: 1px solid var(--line); }
}

/* reveal on scroll (only when JS marks the page ready and motion is allowed) */
.js-motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js-motion .reveal.is-in { opacity: 1; transform: none; }
.js-motion .reveal[data-delay="1"] { transition-delay: 0.1s; }
.js-motion .reveal[data-delay="2"] { transition-delay: 0.2s; }

/* subpages */
.page-hero { padding: 150px 0 60px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 16ch; }
.page-hero .lede { margin-top: 20px; }
.case-photos { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 300px; gap: 16px; }
.case-photos figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.case-photos figure:first-child { grid-row: span 2; }
.case-photos img { width: 100%; flex: 1; min-height: 0; object-fit: cover; }
.case-photos figcaption { font-size: 0.85rem; color: var(--muted); padding: 10px 14px; background: var(--surface); }
.prose { max-width: 68ch; display: grid; gap: 18px; color: #cfd5cd; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--text); margin-top: 24px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.plain-page { min-height: 100dvh; display: grid; place-items: center; }
.plain-wrap { width: min(100% - 32px, 620px); padding: 60px 0; display: grid; gap: 18px; }
.plain-wrap h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.plain-wrap p { color: var(--muted); }
.plain-wrap a:not(.btn) { color: var(--sap); }
.plain-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.1rem/1 var(--display); color: var(--text) !important; margin-bottom: 20px; }
.case-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-split figure { margin: 0; }
@media (max-width: 760px) { .case-photos, .case-split { grid-template-columns: 1fr; } .case-photos { grid-auto-rows: 260px; } .case-photos figure:first-child { grid-row: auto; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
