/* ============================================================
   DM HOME IMPROVEMENTS: landing page styles. Light mode only.
   Mobile-first. Forest green carries the structure, burnt orange
   is for CTAs and a few accents only.
   ============================================================ */
:root {
  --green: #1F3D2E;
  --green-deep: #16301F;
  --green-ink: #0F2117;
  --orange: #C8632A;
  --orange-dk: #B0561F;
  --grey: #6B6E6A;
  --ink: #1E2220;
  --ground: #F5F2EC;
  --white: #FFFFFF;
  --line: rgba(30, 34, 32, .12);
  --line-on-green: rgba(245, 242, 236, .16);
  --cream-dim: #AEB3AA;
  --serif: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 14px;
  --r-sm: 9px;
  --sh: 0 1px 2px rgba(15, 33, 23, .06), 0 10px 30px -12px rgba(15, 33, 23, .22);
  --sh-lg: 0 30px 70px -24px rgba(15, 33, 23, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; margin: 0; }
h1 em, h2 em { font-style: italic; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[id] { scroll-margin-top: 18px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.17em; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.safe-fill-top, .safe-fill-bottom { position: fixed; left: 0; right: 0; background: var(--green); z-index: 70; pointer-events: none; }
.safe-fill-top { top: 0; height: env(safe-area-inset-top); }
.safe-fill-bottom { bottom: 0; height: env(safe-area-inset-bottom); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 max(18px, env(safe-area-inset-left)); }
.container--narrow { max-width: 820px; }

/* ---------- buttons ---------- */
/* Label is 19px bold so white on #C8632A (4.0:1) meets WCAG AA for large text. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 19px/1.1 var(--sans); letter-spacing: -.005em; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s ease;
}
.btn--cta { background: var(--orange); color: #fff; box-shadow: 0 10px 22px -12px rgba(30, 34, 32, .45); }
.btn--cta:hover { background: var(--orange-dk); transform: translateY(-1px); }
.btn--cta:active { transform: translateY(1px); }
.btn--cta .ico { transition: transform .25s var(--ease); }
.btn--cta:hover .ico { transform: translateX(3px); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- header ---------- */
.nav { background: var(--green); padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line-on-green); }
.nav__in { display: flex; align-items: center; justify-content: center; height: 58px; }
.nav__logo { height: 34px; width: auto; }
@media (min-width: 900px) { .nav__in { justify-content: flex-start; height: 72px; } .nav__logo { height: 42px; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; background: var(--green-deep); color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 33, 23, .72) 0%, rgba(15, 33, 23, .45) 34%, rgba(15, 33, 23, .82) 62%, var(--green-deep) 100%);
}
.hero__in { padding-top: 18px; padding-bottom: 22px; display: grid; gap: 14px; }
.hero h1 { font-size: clamp(29px, 8vw, 64px); line-height: 1.04; max-width: 15ch; text-shadow: 0 2px 22px rgba(0, 0, 0, .35); }
.hero h1 em { color: #F3B48C; }
.hero__sub { margin-top: 8px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .9); max-width: 46ch; }

@media (min-width: 900px) {
  .hero__scrim { background: linear-gradient(90deg, rgba(15, 33, 23, .9) 0%, rgba(15, 33, 23, .66) 42%, rgba(15, 33, 23, .18) 72%, rgba(15, 33, 23, .32) 100%); }
  .hero__in { grid-template-columns: minmax(0, 1fr) 440px; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 84px; min-height: min(760px, calc(100vh - 72px)); }
  .hero__sub { font-size: 18px; margin-top: 18px; }
}

/* ---------- forms ---------- */
.qform { background: var(--white); color: var(--ink); border-radius: var(--r); padding: 16px; box-shadow: var(--sh-lg); display: grid; gap: 10px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field__lab { font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: .005em; }
.field__lab .opt { font-style: normal; font-weight: 500; color: var(--grey); margin-left: 4px; }
.field__in {
  width: 100%; min-width: 0; height: 46px; padding: 0 13px; border: 1px solid rgba(30, 34, 32, .22); border-radius: var(--r-sm);
  background: #FBFAF7; font-size: 16px; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field__in::placeholder { color: #9A9C98; }
.field__in:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(31, 61, 46, .16); }
.field__in.is-bad { border-color: #C2410C; box-shadow: 0 0 0 3px rgba(194, 65, 12, .14); }
.field__ta { height: auto; min-height: 88px; padding: 11px 13px; resize: vertical; line-height: 1.45; }
.selwrap { position: relative; display: block; }
.selwrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid var(--grey); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); pointer-events: none; }
.field__sel { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; }
.consent { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; }
.consent input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--green); }
.consent__txt { font-size: 11px; line-height: 1.45; color: var(--grey); }
.consent a, .qform__fine a { color: var(--ink); text-underline-offset: 2px; }
.qform__fine { font-size: 11.5px; color: var(--grey); text-align: center; }
.form-status { font-size: 13.5px; min-height: 0; color: var(--grey); }
.form-status:empty { display: none; }
.form-status.is-err { color: #B23A0C; }
.form-status.is-ok { color: var(--green); }
@media (min-width: 900px) {
  .qform { padding: 26px; gap: 13px; }
  .consent__txt { font-size: 11.5px; }
}

/* ---------- trust banner ---------- */
.marq { background: var(--green); color: var(--ground); overflow: hidden; border-top: 1px solid var(--line-on-green); }
.marq__track { display: flex; width: max-content; animation: marq 32s linear infinite; }
.marq__row { display: flex; list-style: none; margin: 0; padding: 0; }
.marq__row li { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; padding: 15px 22px; font-size: 14.5px; font-weight: 600; letter-spacing: .01em; }
.marq__row li .ico { color: var(--orange); width: 18px; height: 18px; }
.marq__row li::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(245, 242, 236, .35); margin-left: 22px; }
@keyframes marq { to { transform: translateX(-50%); } }
.marq:hover .marq__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marq__track { animation: none; width: auto; }
  .marq__row { flex-wrap: wrap; justify-content: center; }
  .marq__row[aria-hidden] { display: none; }
}

/* ---------- sections ---------- */
.sec { padding: 56px 0; }
.sec--white { background: var(--white); }
.sec--green { background: var(--green); color: var(--ground); }
.sec__h { font-size: clamp(28px, 6.6vw, 48px); max-width: 24ch; margin: 0 auto 28px; text-align: center; }
.sec__cta { display: flex; justify-content: center; margin-top: 30px; }
@media (min-width: 900px) { .sec { padding: 96px 0; } .sec__h { margin-bottom: 48px; } .sec__cta { margin-top: 48px; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; counter-reset: s; }
.step { background: var(--ground); border-radius: var(--r); padding: 16px 14px 18px; }
.step__n { display: block; font: 500 13px/1 var(--sans); color: var(--orange-dk); letter-spacing: .08em; margin-bottom: 14px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { font-size: 14px; line-height: 1.5; color: var(--grey); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .step { padding: 26px 24px 28px; }
  .step h3 { font-size: 24px; }
  .step p { font-size: 15.5px; }
}

/* ---------- owner promise ---------- */
.owner__in { display: grid; gap: 28px; }
.owner__copy h2 { font-size: clamp(32px, 8vw, 58px); margin-bottom: 16px; color: #fff; }
.owner__copy p { font-size: 16.5px; line-height: 1.65; color: var(--cream-dim); max-width: 56ch; }
.owner__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.owner__facts li { border-top: 1px solid rgba(200, 99, 42, .65); padding-top: 12px; }
.owner__facts b { display: block; font: 500 clamp(40px, 11vw, 72px)/1 var(--serif); color: #fff; letter-spacing: -.02em; }
.owner__facts span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--cream-dim); }
.owner .sec__cta { margin-top: 4px; justify-content: flex-start; }
@media (min-width: 900px) {
  .owner__in { grid-template-columns: 1.1fr 1fr; column-gap: 72px; align-items: end; }
  .owner .sec__cta { grid-column: 1; }
  .owner__facts { gap: 24px; }
  .owner__facts span { font-size: 14.5px; }
}

/* ---------- reassurance ---------- */
.assure { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.assure__i { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 14px 18px; }
.assure__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--ground); margin-bottom: 14px; }
.assure__ico svg { width: 21px; height: 21px; }
.assure__i h3 { font-size: 19px; margin-bottom: 6px; }
.assure__i p { font-size: 14px; line-height: 1.5; color: var(--grey); }
@media (min-width: 900px) {
  .assure { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .assure__i { padding: 26px 24px 28px; }
  .assure__i h3 { font-size: 23px; }
  .assure__i p { font-size: 15.5px; }
}

/* ---------- gallery rails ---------- */
.galgrp { margin: 0 0 30px; }
.galgrp__h { font-size: 23px; margin: 0 0 12px; }
.rail { position: relative; }
.gal {
  display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; overflow-x: auto;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.gal::-webkit-scrollbar { display: none; }
.gal:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: var(--r); }
.gal__i { flex: 0 0 84%; scroll-snap-align: start; min-width: 0; }
@media (min-width: 600px) { .gal__i { flex-basis: calc(50% - 6px); } }
@media (min-width: 1024px) { .gal__i { flex-basis: calc((100% - 24px) / 3); } }
.gal__i button { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--ground); }
.gal__i img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #E7E2D8; transition: transform .6s var(--ease); }
.gal__i button:hover img { transform: scale(1.03); }

.galnav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.galnav[hidden] { display: none; }
.galdots { display: flex; align-items: center; gap: 7px; flex-wrap: nowrap; }
.galdot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(30, 34, 32, .22); cursor: pointer; transition: width .3s var(--ease), background-color .3s ease; }
.galdot[aria-current="true"] { width: 24px; background: var(--green); }
.galarw { display: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; color: var(--ink); }
.galarw[disabled] { opacity: .3; cursor: default; }
.galarw--p .ico { transform: rotate(180deg); }
@media (min-width: 900px) { .galarw { display: inline-grid; } }

/* before / after */
.ba { --ba: 50%; position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: #E7E2D8; user-select: none; -webkit-user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; pointer-events: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--ba)) 0 0); }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--ba); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .35); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: var(--ba); z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; color: var(--green); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); pointer-events: none; }
.ba__tag { position: absolute; top: 10px; z-index: 2; padding: 4px 9px; border-radius: 99px; background: rgba(15, 33, 23, .74); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; pointer-events: none; }
.ba__tag--b { left: 10px; }
.ba__tag--a { right: 10px; }
.ba__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba:has(.ba__range:focus-visible) { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 64px 12px; background: rgba(10, 20, 14, .92); opacity: 0; transition: opacity .3s ease; }
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb__img { max-width: min(100%, 1100px); max-height: 86vh; object-fit: contain; border-radius: var(--r-sm); }
.lb__x, .lb__nav { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.lb__x { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.lb__nav--p { left: 12px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lb__nav--n { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.fq { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s ease; }
.fq[open] { border-color: rgba(31, 61, 46, .35); }
.fq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 18px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; }
.fq summary::-webkit-details-marker { display: none; }
.fq__x { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ground); transition: transform .3s var(--ease); }
.fq__x svg { width: 14px; height: 14px; }
.fq[open] .fq__x { transform: rotate(135deg); }
.fq__b { padding: 0 18px 18px; }
.fq__b p { font-size: 15px; line-height: 1.65; color: var(--grey); max-width: 66ch; }

/* ---------- contact ---------- */
.quote__in { display: grid; gap: 26px; }
.quote__copy h2 { font-size: clamp(32px, 8vw, 54px); color: #fff; margin-bottom: 18px; }
.quote__copy h2 em { color: #F3B48C; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--cream-dim); }
.ticks .ico { color: var(--orange); margin-top: 3px; }
@media (min-width: 900px) { .quote__in { grid-template-columns: 1fr 480px; gap: 72px; align-items: center; } }

/* ---------- footer ---------- */
.foot { background: var(--green-ink); color: var(--cream-dim); padding: 40px 0 0; text-align: center; }
.foot__in { display: grid; gap: 12px; justify-items: center; padding-bottom: 30px; }
.foot__logo { height: 38px; width: auto; }
.foot__area { font-size: 14px; }
.foot__legal { font-size: 12.5px; color: rgba(245, 242, 236, .6); }
.foot__legal a { margin-left: 10px; color: rgba(245, 242, 236, .85); text-underline-offset: 2px; }
/* Blank Pages pill: last element on every page. */
.bp { margin: 0; display: flex; justify-content: center; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .06); background: var(--green-ink); }
.bp__pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 18px; border-radius: 100px; border: 1px solid rgba(200, 99, 42, .32); background: rgba(255, 255, 255, .03); color: rgba(255, 255, 255, .62); font-size: 12px; font-weight: 600; letter-spacing: .03em; text-decoration: none; transition: all .25s ease; }
.bp__pill span { color: var(--orange); }
.bp__pill .ico { color: var(--orange); opacity: .8; width: 14px; height: 14px; transition: transform .25s ease; }
.bp__pill:hover { color: rgba(255, 255, 255, .9); border-color: rgba(200, 99, 42, .65); background: rgba(200, 99, 42, .07); box-shadow: 0 0 18px rgba(200, 99, 42, .16); }
.bp__pill:hover .ico { transform: translateX(3px); }

/* ---------- sticky phone CTA ---------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(245, 242, 236, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky[hidden] { display: none; }
.sticky.is-up { transform: none; }
.sticky .btn { min-height: 52px; }
@media (min-width: 900px) { .sticky { display: none; } }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal { background: var(--white); padding: 40px 0 64px; }
.legal__back { display: inline-block; margin-bottom: 22px; font-size: 14px; color: var(--grey); text-underline-offset: 3px; }
.legal h1 { font-size: clamp(32px, 7vw, 46px); margin-bottom: 8px; }
.legal__date { font-size: 13.5px; color: var(--grey); margin-bottom: 26px; }
.legal h2 { font-size: 22px; margin: 30px 0 10px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: #3A3E3B; }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--green); }

/* ============================================================
   THANK-YOU: "Blueprint to room"
   A white line drawing of the room draws itself on dark green,
   warm light floods in, the sketch becomes the photo, the
   message rises in. ~3.5s. All timing lives here; thank-you.js
   only starts it, skips it, and tidies up.
   ============================================================ */
.ty { background: var(--green-deep); color: #fff; min-height: 100vh; min-height: 100dvh; }
.ty-stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--green-deep); pointer-events: none; }
.ty-stage__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); }
.ty-stage__glow { position: absolute; inset: -10%; opacity: 0; background: radial-gradient(60% 55% at 50% 42%, rgba(255, 214, 160, .85), rgba(242, 176, 104, .35) 45%, rgba(242, 176, 104, 0) 75%); mix-blend-mode: screen; }
.ty-stage__plan { position: absolute; inset: 0; width: 100%; height: 100%; }
.ty-stage__plan path, .ty-stage__plan line, .ty-stage__plan rect, .ty-stage__plan circle, .ty-stage__plan polyline {
  fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.ty-stage__plan .grid line { stroke: rgba(255, 255, 255, .09); stroke-width: 1; stroke-dashoffset: 0; }
.ty-stage__plan .fine { stroke-width: 1.3; stroke: rgba(255, 255, 255, .72); }
.ty-stage__scrim { position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, rgba(15, 33, 23, .55) 0%, rgba(15, 33, 23, .35) 30%, rgba(15, 33, 23, .8) 62%, rgba(15, 33, 23, .94) 100%); }

/* The drawing: each stroke group draws in turn (pathLength="1" on every shape). */
.ty-run .ty-stage__plan [data-d] { animation: ty-draw .55s var(--ease) forwards; }
.ty-run .ty-stage__plan [data-d="1"] { animation-delay: .10s; }
.ty-run .ty-stage__plan [data-d="2"] { animation-delay: .38s; }
.ty-run .ty-stage__plan [data-d="3"] { animation-delay: .66s; }
.ty-run .ty-stage__plan [data-d="4"] { animation-delay: .94s; }
.ty-run .ty-stage__plan [data-d="5"] { animation-delay: 1.18s; }
.ty-run .ty-stage__plan [data-d="6"] { animation-delay: 1.40s; }
.ty-run .ty-stage__plan { animation: ty-out .8s ease 2.25s forwards; }
.ty-run .ty-stage__glow { animation: ty-glow 1.5s ease 1.75s forwards; }
.ty-run .ty-stage__photo { animation: ty-photo 1.1s var(--ease) 2.05s forwards; }
.ty-run .ty-stage__scrim { animation: ty-in .9s ease 2.45s forwards; }
.ty-run .ty-main { animation: ty-rise .8s var(--ease) 2.7s both; }
@keyframes ty-draw { to { stroke-dashoffset: 0; } }
@keyframes ty-out { to { opacity: 0; } }
@keyframes ty-in { to { opacity: 1; } }
@keyframes ty-glow { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ty-photo { to { opacity: 1; transform: none; } }
@keyframes ty-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Settled state: what reduced motion and the end of the run both show. */
.ty-done .ty-stage__plan { display: none; }
.ty-done .ty-stage__glow { display: none; }
.ty-done .ty-stage__photo, .ty-done .ty-stage__scrim { opacity: 1; transform: none; animation: none; }
.ty-done .ty-main { animation: none; opacity: 1; transform: none; }

.ty-main { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; padding: max(22px, env(safe-area-inset-top)) 0 0; }
.ty-brand { display: flex; justify-content: center; padding: 6px 0 0; margin-bottom: auto; }
.ty-brand img { height: 36px; width: auto; }
.ty-card { padding-top: 40px; padding-bottom: 28px; display: grid; gap: 18px; }
.ty-card, .ty-card p, .ty-card h1, .ty-card h2, .ty-card li { color: #fff; }
.ty-card h1 { font-size: clamp(36px, 10vw, 68px); line-height: 1.02; max-width: 14ch; }
.ty-lede { font-size: 17px; line-height: 1.55; max-width: 44ch; }
.ty-next { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ty-next li { border-top: 1px solid rgba(200, 99, 42, .8); padding-top: 9px; font-size: 13px; line-height: 1.4; }
.ty-next b { display: block; font: 500 12px/1 var(--sans); letter-spacing: .08em; color: #F3B48C; margin-bottom: 6px; }
.ty-share h2 { font-size: clamp(22px, 5.6vw, 30px); margin-bottom: 6px; }
.ty-share p { font-size: 15px; margin-bottom: 14px; }
.ty-actions { display: grid; gap: 10px; }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.share-status { font-size: 14px; min-height: 0; }
.share-status:empty { display: none; }
/* An author `display` would outrank the UA's [hidden]{display:none}. */
.share-fallback[hidden] { display: none; }
.share-fallback { width: 100%; height: 46px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .25); color: #fff; font-size: 14px; }
.ty-note { font-size: 13px; }
.ty-note a { color: #fff; text-underline-offset: 2px; margin-left: 8px; }
.ty .bp { background: transparent; border-top-color: rgba(255, 255, 255, .1); position: relative; z-index: 1; }
@media (min-width: 900px) {
  .ty-card { padding-bottom: 44px; grid-template-columns: 1.15fr 1fr; column-gap: 64px; align-items: end; }
  .ty-card h1, .ty-lede, .ty-next { grid-column: 1; }
  .ty-share { grid-column: 2; grid-row: 1 / span 3; align-self: end; background: rgba(15, 33, 23, .55); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r); padding: 26px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .ty-note { grid-column: 1 / -1; }
  .ty-actions { grid-template-columns: auto auto; justify-content: start; }
  .ty-actions .btn { white-space: nowrap; }
  .ty-brand img { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ty-stage__plan, .ty-stage__glow { display: none; }
  .ty-stage__photo, .ty-stage__scrim { opacity: 1; transform: none; animation: none !important; }
  .ty-main { animation: none !important; opacity: 1; transform: none; }
}

/* Narrowest phones (320-359px): keep the hero submit above the fold. */
@media (max-width: 359px) {
  .hero__in { padding-top: 12px; gap: 10px; }
  .hero h1 { font-size: 26px; }
  .hero__sub { font-size: 13.5px; margin-top: 4px; }
  .qform { padding: 12px; gap: 8px; }
  .field__in { height: 42px; }
  .consent__txt { font-size: 11px; }
}
