/* Homepage */

/* Hero: annotated slideshow */
.hero { position: relative; height: 100svh; min-height: 640px; background: var(--pine); color: var(--on-dark); overflow: clip; isolation: isolate; }
.hero__stage { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; margin: 0; overflow: clip; clip-path: circle(0% at var(--fx, 70%) var(--fy, 50%)); z-index: 1; }
.hero__slide.is-active { clip-path: circle(150% at var(--fx, 70%) var(--fy, 50%)); z-index: 2; }
.no-js .hero__slide:not(:first-child), html:not(.motion) .hero__slide:not(.is-active) { visibility: hidden; }
.hero__media { position: absolute; inset: -2%; will-change: transform; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: translateX(var(--tx, 0%)) scale(var(--z, 1)); transform-origin: 50% 50%; }
.hero__scrim { position: absolute; inset: 0; z-index: 3; pointer-events: none; background:
  linear-gradient(90deg, rgba(18, 36, 27, .9) 0%, rgba(18, 36, 27, .74) 34%, rgba(18, 36, 27, .18) 62%, rgba(18, 36, 27, 0) 78%),
  linear-gradient(0deg, rgba(18, 36, 27, .78) 0%, rgba(18, 36, 27, 0) 30%),
  linear-gradient(180deg, rgba(18, 36, 27, .55) 0%, rgba(18, 36, 27, 0) 22%); }
.hero__content { position: relative; z-index: 6; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--hdr) + 10px); padding-bottom: 128px; pointer-events: none; }
.hero__content > * { pointer-events: auto; }
.hero__title { font-size: clamp(2.5rem, min(5.4vw, 8.6vh), 5.6rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 .32em; max-width: 9.6em; text-wrap: initial; }
.hero__title .hl { display: block; overflow-x: visible; overflow-y: clip; padding: .3em 0 .5em; margin: -.8em 0 -.5em; }
.hero__title .hl:first-child { margin-top: -.3em; }
.hero__title .hl > span { display: inline-block; }
.motion .hero__title .hl > span { transform: translateY(115%); animation: hero-safe .01s 1.2s forwards; }
.motion .hero__title { opacity: 0; animation: hero-safe .01s 1.2s forwards; }
.gsap-on .hero__title { animation: none; }
.motion [data-hero-fade] { opacity: 0; animation: hero-safe .01s 1.2s forwards; }
.gsap-on .hero__title .hl > span, .gsap-on [data-hero-fade] { animation: none; }
@keyframes hero-safe { to { transform: none; opacity: 1; } }
html:not(.motion) .quals__track { flex-wrap: wrap; width: auto; justify-content: center; padding-inline: var(--gut); }
html:not(.motion) .qual[aria-hidden] { display: none; }
.hero__title .hl:last-child > span { color: var(--wheat); }
.hero__lede { font-size: clamp(1.08rem, 1.25vw, 1.25rem); color: var(--on-dark-soft); max-width: 36em; margin-bottom: 1.6em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* annotation: ring on the photo, hairline to a label card */
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; }
.hero__line { fill: none; stroke: var(--wheat); stroke-width: 1.2; }
.hero__notes { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.note { position: absolute; inset: 0; display: none; }
.note.is-active { display: block; }
.note__ring { position: absolute; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 2px solid var(--wheat); box-shadow: 0 0 0 6px rgba(217, 198, 143, .22), 0 6px 24px rgba(0, 0, 0, .3); }
.note__ring i { position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(217, 198, 143, .8); animation: ringPulse 2.6s var(--ease) infinite; }
.note__card { position: absolute; width: 290px; padding: 16px 18px 14px; border-radius: var(--r); background: rgba(242, 237, 226, .96); color: var(--ink); text-decoration: none; pointer-events: auto; box-shadow: 0 18px 40px rgba(18, 36, 27, .35); border-top: 3px solid var(--brass); display: grid; gap: 4px; transition: transform .4s var(--ease); }
.note__card:hover { transform: translateY(-4px); }
.note__card strong { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.32rem; line-height: 1.15; }
.note__card span { font-size: .95rem; line-height: 1.45; color: var(--ink-soft); }
.note__card em { font-style: normal; font-weight: 600; font-size: .92rem; color: var(--forest); display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.note__card em svg { width: 16px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease); }
.note__card:hover em svg { transform: translateX(4px); }

/* loupe */
.hero__loupe { position: absolute; z-index: 4; left: 0; top: 0; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; border: 2px solid var(--wheat); box-shadow: 0 0 0 1px rgba(18, 36, 27, .4), 0 20px 50px rgba(0, 0, 0, .45); overflow: hidden; opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.hero__loupe.is-on { opacity: 1; transform: scale(1); }
.hero__loupe-img { position: absolute; inset: 0; background-repeat: no-repeat; }

/* controls */
.hero__bar { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 7; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.hero__ctrl { display: flex; gap: 8px; }
.hero__segs { list-style: none; margin: 0; padding: 4px 14px; border-radius: var(--r); background: rgba(18, 36, 27, .72); display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.seg { width: 100%; background: none; border: 0; padding: 10px 0 8px; cursor: pointer; text-align: left; color: #E4E9E1; display: grid; gap: 8px; min-height: 44px; }
.seg__name { font-size: .9rem; font-weight: 500; transition: color .3s; }
.seg.is-active .seg__name, .seg:hover .seg__name { color: var(--white); }
.seg__track { height: 2px; background: rgba(242, 237, 226, .25); position: relative; overflow: hidden; }
.seg__track i { position: absolute; inset: 0; background: var(--wheat); transform: scaleX(0); transform-origin: left; }
.seg.is-done .seg__track i { transform: scaleX(1); }
.hero__count { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.3rem; font-variant-numeric: tabular-nums; color: var(--wheat); }
.icon-btn .i-play { display: none; }
.icon-btn[aria-pressed="true"] .i-play { display: block; }
.icon-btn[aria-pressed="true"] .i-pause { display: none; }

/* Toolkit bento */
.toolkit { background: var(--oat); padding: var(--sec) 0; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, minmax(250px, 34vh)) auto; gap: 18px; }
.card { position: relative; display: block; border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--on-dark); background: var(--forest); isolation: isolate; transform-style: preserve-3d; }
.card--a { grid-column: 1 / 8; grid-row: 1 / 3; }
.card--b { grid-column: 8 / 13; grid-row: 1; }
.card--c { grid-column: 8 / 13; grid-row: 2; }
.card--d { grid-column: 1 / 5; grid-row: 3; min-height: 320px; }
.card--e { grid-column: 5 / 9; grid-row: 3; min-height: 320px; }
.card--f { grid-column: 9 / 13; grid-row: 3; min-height: 320px; }
.card__media { position: absolute; inset: 0; border-radius: 0; }
.card__media { transition: transform 1.1s var(--ease); }
.card:hover .card__media { transform: scale(1.05); }
.card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 36, 27, .94) 0%, rgba(18, 36, 27, .62) 38%, rgba(18, 36, 27, .08) 72%); z-index: 1; transition: opacity .5s; }
.card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(20px, 2vw, 30px); display: grid; gap: 8px; }
.card__title { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.45rem, 1.9vw, 2.1rem); line-height: 1.1; }
.card--a .card__title { font-size: clamp(1.8rem, 2.6vw, 2.6rem); }
.card__text { font-size: .98rem; line-height: 1.5; color: var(--on-dark-soft); }
.card__go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--wheat); }
.card__go svg { transition: transform .35s var(--ease); }
.card:hover .card__go svg { transform: translateX(6px); }
.card__glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .18), transparent 45%); opacity: 0; transition: opacity .4s; }
.card:hover .card__glare { opacity: 1; }
.toolkit__more { margin: 28px 0 0; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.toolkit__more a { color: var(--forest); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; background: linear-gradient(var(--brass), var(--brass)) 0 calc(100% - 8px) / 100% 1px no-repeat; }

/* DMB signature scene */
.dmb { background: var(--forest); color: var(--on-dark); position: relative; }
.dmb__pin { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr) - 10px) 0 40px; overflow: clip; position: relative; }
.dmb__pin::before { content: ''; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -10vw; background: radial-gradient(closest-side, rgba(94, 143, 138, .25), transparent 70%); animation: drift 16s ease-in-out infinite alternate; pointer-events: none; }
.dmb__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 88px); align-items: center; position: relative; }
.dmb h2 em { color: var(--wheat); }
.dmb__lede { color: var(--on-dark-soft); font-size: clamp(1.05rem, 1.15vw, 1.15rem); }
.dmb__steps { list-style: none; margin: 26px 0 22px; padding: 0; display: flex; gap: 0; counter-reset: s; }
.dmb__steps li { flex: 1; position: relative; padding-top: 18px; font-size: .92rem; font-weight: 600; color: rgba(242, 237, 226, .55); transition: color .4s; }
.dmb__steps li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(242, 237, 226, .2); }
.dmb__steps li::after { content: ''; position: absolute; left: 0; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--forest); border: 2px solid rgba(242, 237, 226, .4); transition: background .4s, border-color .4s; }
.dmb__steps li.is-on { color: var(--white); }
.dmb__steps li.is-on::after { background: var(--wheat); border-color: var(--wheat); }
.dmb__result { font-size: 1.12rem; padding: 14px 18px; border-left: 2px solid var(--wheat); background: rgba(18, 36, 27, .35); border-radius: 0 var(--r) var(--r) 0; }
.dmb__result strong { color: var(--wheat); font-variant-numeric: tabular-nums; }
.dmb__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.dmb__stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); padding: 28px clamp(20px, 3vw, 40px) 22px; border-radius: var(--r); background: rgba(18, 36, 27, .45); border: 1px solid rgba(242, 237, 226, .12); }
.dmb__scale { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: var(--on-dark-soft); text-align: center; font-weight: 500; }
.col { display: grid; gap: 12px; justify-items: center; }
.col__name { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.5rem; }
.col__tube { width: min(190px, 100%); height: min(50vh, 460px); border: 1px solid rgba(242, 237, 226, .35); border-top: 0; border-radius: 0 0 var(--r) var(--r); position: relative; overflow: hidden; background: repeating-linear-gradient(0deg, transparent 0 calc(9% - 1px), rgba(242, 237, 226, .08) calc(9% - 1px) 9%); }
.col__tube::after { content: ''; position: absolute; left: 0; right: 0; top: 10%; border-top: 1px dashed rgba(217, 198, 143, .6); }
.col__dry, .col__water, .col__surface { position: absolute; left: 0; right: 0; bottom: 0; height: 90%; transform-origin: 50% 100%; will-change: transform; }
.col__dry { display: flex; flex-direction: column; }
.col__other { background: var(--sage); flex: none; }
.col__protein { background: var(--brass); flex: none; }
.col__water { background: linear-gradient(180deg, rgba(94, 143, 138, .8), rgba(94, 143, 138, .95)); }
.col__surface { pointer-events: none; }
.col__wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 10px; background: radial-gradient(circle at 10px -3px, transparent 9px, rgba(94, 143, 138, .8) 9.5px) 0 0 / 20px 10px repeat-x; animation: wave 1.6s linear infinite; }
@keyframes wave { to { background-position: 20px 0; } }
.col__figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; width: 100%; max-width: 220px; }
.col__figs div { text-align: center; }
.col__figs dt { font-size: .82rem; color: var(--on-dark-soft); }
.col__figs dd { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-variant-numeric: tabular-nums; line-height: 1.1; }
.col__figs dd.is-protein { color: var(--wheat); }
.dmb__key { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--on-dark-soft); }
.dmb__key li { display: inline-flex; align-items: center; gap: 8px; }
.dmb__key li::before { content: ''; width: 14px; height: 14px; border-radius: 3px; }
.k-water::before { background: var(--water); } .k-other::before { background: var(--sage); } .k-protein::before { background: var(--brass); }

/* Itchy Dog Kit */
.kit { background: var(--white); padding: clamp(56px, 6vw, 88px) 0; overflow: clip; }
.kit__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.tabs { margin: 20px 0 16px; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #D5DCCF; margin-bottom: 20px; }
.tabs__tab { position: relative; background: none; border: 0; padding: 12px 14px 14px; min-height: 48px; font-weight: 600; font-size: .98rem; color: var(--ink-soft); cursor: pointer; }
.tabs__tab.is-active { color: var(--forest); }
.tabs__timer { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.tabs__tab.is-active .tabs__timer { transform: scaleX(var(--t, 1)); }
.tabs__panels { display: grid; }
.tabs__panel { grid-area: 1 / 1; }
.tabs__panel:not(.is-active) { visibility: hidden; }
.tabs__panel h3 { margin-bottom: .45em; }
.kit__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0 0 18px; color: var(--ink-soft); }
.kit__price strong { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 2.4rem; color: var(--forest); line-height: 1; }
.kit__price span { display: inline-flex; align-items: center; gap: 8px; }
.kit__price span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
.kit__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.kit__note { font-size: .93rem; color: var(--ink-soft); margin: 16px 0 0; }
.kit__stage { position: relative; aspect-ratio: 1.15; max-height: var(--media-cap); width: 100%; border-radius: var(--r); background: radial-gradient(120% 90% at 70% 30%, #E6ECDF 0%, var(--sage) 55%, #C8D3C2 100%); }
.kit__shot { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; }
.kit__shot.is-active { opacity: 1; visibility: visible; }
.kit__shot--photo { inset: 0; border-radius: var(--r); overflow: hidden; }
.kit__shot--photo img { width: 100%; height: 100%; object-fit: cover; }
.kit__shot--cut img { position: absolute; left: 6%; top: 6%; width: 88%; height: 76%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(18, 36, 27, .28)); }
.kit__quote { position: absolute; left: 22px; bottom: 22px; max-width: 300px; margin: 0; padding: 16px 20px; background: var(--forest); color: var(--on-dark); border-radius: var(--r); box-shadow: 0 18px 40px rgba(18, 36, 27, .3); z-index: 3; }
.kit__quote p { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.2rem; line-height: 1.25; margin: 0 0 6px; }
.kit__quote cite { font-style: normal; font-size: .9rem; color: var(--on-dark-soft); }

/* Founder */
.founder { background: var(--sage); padding: var(--sec) 0 clamp(40px, 4vw, 56px); overflow: clip; }
.founder__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 104px); align-items: center; }
.founder__photo { margin: 0; position: relative; width: min(100%, calc(min(58vh, 560px) * .8)); }
.founder__frame { aspect-ratio: 4 / 5; }
.founder__photo::after { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--brass-deep); border-radius: var(--r); z-index: -1; }
.founder__photo figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--oat); padding: 8px 14px; border-radius: calc(var(--r) - 2px); font-size: .9rem; font-weight: 600; }
.founder__copy > p { font-size: 1.1rem; color: var(--ink-soft); }
.founder__quote { margin: 24px 0 28px; padding: 0 0 0 24px; border-left: 2px solid var(--brass); }
.founder__quote p { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.3; margin: 0 0 10px; }
.founder__quote cite { font-style: normal; font-weight: 600; color: var(--brass-deep); }
.quals { margin-top: clamp(36px, 4vw, 56px); overflow: clip; }
.quals__track { display: flex; gap: 16px; width: max-content; }
.qual { display: flex; align-items: center; gap: 14px; padding: 10px 20px 10px 10px; background: var(--white); border-radius: var(--r); flex: none; }
.qual__logo { width: 60px; height: 60px; display: grid; place-items: center; }
.qual__logo img { max-width: 56px; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.qual__name { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.quals__note { font-size: .9rem; color: var(--ink-soft); margin-top: 18px; }

/* Principles photo band */
.principles { position: relative; color: var(--on-dark); padding: clamp(96px, 12vw, 180px) 0; overflow: clip; background: var(--pine); }
.principles__bg { position: absolute; inset: -12% 0; z-index: 0; }
.principles__bg img { width: 100%; height: 100%; object-fit: cover; }
.principles::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(18, 36, 27, .92) 0%, rgba(18, 36, 27, .78) 55%, rgba(18, 36, 27, .55) 100%); }
.principles__inner { position: relative; z-index: 2; }
.principles__h { font-size: clamp(2.2rem, 4vw, 4rem); margin-bottom: .4em; }
.principles__h .w { opacity: var(--o, 1); transition: none; }
.principles__lede { font-size: clamp(1.08rem, 1.25vw, 1.25rem); color: var(--on-dark-soft); margin-bottom: clamp(36px, 4vw, 56px); }
.principles__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard { padding: 28px 26px; border-radius: var(--r); background: rgba(242, 237, 226, .08); border: 1px solid rgba(242, 237, 226, .18); backdrop-filter: blur(6px); position: relative; overflow: hidden; }
.pcard::before { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--wheat); transform: scaleX(var(--line, 0)); transform-origin: left; }
.pcard h3 { color: var(--white); }
.pcard p { color: var(--on-dark-soft); margin: 0; }

/* Community */
.community { background: var(--oat); padding: var(--sec) 0; overflow: clip; }
.community__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.community__copy > p { font-size: 1.1rem; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 10px; }
.stat { background: var(--white); padding: 20px 22px; border-radius: var(--r); display: flex; flex-direction: column-reverse; gap: 4px; border-bottom: 3px solid var(--brass); }
.stat dt { font-size: .95rem; color: var(--ink-soft); }
.stat dd { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2.2rem, 3.4vw, 3.3rem); line-height: 1; color: var(--forest); font-variant-numeric: tabular-nums; }
.stats__note { font-size: .9rem; color: var(--ink-soft); margin-bottom: 24px; }
.community__photo { margin: 0; position: relative; }
.community__frame { aspect-ratio: 4 / 5; max-height: min(64vh, 600px); width: auto; margin-inline: auto; }
.community__photo::before { content: ''; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid var(--brass); border-radius: var(--r); }

/* Calculators */
.calcs { background: var(--white); padding: var(--sec) 0; }
.calcs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.calc { display: grid; gap: 10px; align-content: start; text-decoration: none; padding-bottom: 8px; }
.calc__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; margin-bottom: 8px; }
.calc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.calc:hover .calc__media img { transform: scale(1.05); }
.calc__title { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.45rem, 1.8vw, 1.9rem); line-height: 1.1; }
.calc__text { color: var(--ink-soft); }
.calc .card__go { color: var(--forest); }
.calc:hover .card__go svg { transform: translateX(6px); }
.calc__viz { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 12px; border-radius: calc(var(--r) - 2px); background: rgba(242, 237, 226, .94); box-shadow: 0 10px 30px rgba(18, 36, 27, .2); }
.viz-transition { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; height: 78px; align-items: end; }
.viz-transition i { display: block; height: 52px; background: var(--sage); position: relative; border-radius: 2px; overflow: hidden; }
.viz-transition i::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--n); background: var(--brass); transform-origin: bottom; animation: grow 4.2s var(--ease) infinite; }
.viz-transition i:nth-child(2)::after { animation-delay: .15s; } .viz-transition i:nth-child(3)::after { animation-delay: .3s; } .viz-transition i:nth-child(4)::after { animation-delay: .45s; }
.viz-transition i:nth-child(5)::after { animation-delay: .6s; } .viz-transition i:nth-child(6)::after { animation-delay: .75s; } .viz-transition i:nth-child(7)::after { animation-delay: .9s; }
.viz-transition b { position: absolute; left: 0; right: 0; top: -20px; font-size: .68rem; text-align: center; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.viz-transition i { overflow: visible; }
.viz-transition i::before { content: ''; position: absolute; inset: 0; border-radius: 2px; background: var(--sage); }
@keyframes grow { 0% { transform: scaleY(0); } 40%, 80% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.viz-omega { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; font-size: .82rem; font-weight: 700; color: var(--forest); }
.viz-omega i { height: 10px; border-radius: 5px; background: var(--sage); position: relative; overflow: hidden; }
.viz-omega i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--water), var(--brass)); transform-origin: left; animation: fillx 3.6s var(--ease) infinite; }
.viz-omega i:nth-of-type(2)::after { animation-delay: .4s; }
@keyframes fillx { 0% { transform: scaleX(.08); } 55%, 80% { transform: scaleX(.86); } 100% { transform: scaleX(.08); } }
.viz-dmb { display: flex; flex-direction: column; height: 70px; width: 64px; left: auto; right: 14px; padding: 6px; }
.viz-dmb .w { display: block; background: var(--water); animation: drain 4s var(--ease) infinite; flex: none; height: 60%; }
.viz-dmb .p { display: block; background: var(--brass); flex: 1; }
@keyframes drain { 0%, 15% { height: 60%; } 55%, 85% { height: 0%; } 100% { height: 60%; } }

/* Question router */
.router { background: var(--wheat); padding: var(--sec) 0; overflow: clip; position: relative; }
.router::before { content: ''; position: absolute; width: 50vw; height: 50vw; left: -15vw; bottom: -30vw; background: radial-gradient(closest-side, rgba(255, 255, 255, .45), transparent 70%); animation: drift 15s ease-in-out infinite alternate; }
.router__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: center; position: relative; }
.router .lede { color: #3D3A26; }
.router__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { min-height: 48px; padding: 12px 18px; border-radius: var(--rb); border: 1px solid rgba(18, 36, 27, .4); background: rgba(255, 255, 255, .35); font-weight: 600; font-size: .98rem; cursor: pointer; color: var(--pine); text-align: left; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.chip:hover { background: rgba(255, 255, 255, .7); transform: translateY(-2px); }
.chip.is-active { background: var(--forest); color: var(--on-dark); border-color: var(--forest); }
.router__answer { position: relative; min-height: 470px; max-height: var(--media-cap); }
.ans { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; border-radius: var(--r); overflow: hidden; background: var(--white); box-shadow: 0 30px 60px rgba(18, 36, 27, .2); }
.ans[hidden] { display: none; }
.ans__media { display: block; overflow: hidden; min-height: 0; }
.ans__media img { width: 100%; height: 100%; object-fit: cover; }
.ans__body { padding: 24px 28px 28px; }
.ans__body p { color: var(--ink-soft); }

@media (max-width: 1100px) {
  .hero__segs .seg__name { font-size: .78rem; }
  .bento { grid-template-rows: repeat(2, minmax(220px, 30vh)) auto; }
}
@media (max-width: 900px) {
  .hero { min-height: 600px; }
  .hero__scrim { background: linear-gradient(0deg, rgba(18, 36, 27, .96) 0%, rgba(18, 36, 27, .86) 42%, rgba(18, 36, 27, .25) 66%, rgba(18, 36, 27, .1) 80%, rgba(18, 36, 27, .5) 100%); }
  .hero__img { object-position: var(--ox, 50%) 50%; transform: none; }
  .hero__media { bottom: 34%; }
  .hero__content { justify-content: flex-end; padding-bottom: 168px; }
  .hero__title { font-size: clamp(2.5rem, 10.5vw, 3.6rem); }
  .hero__lede { font-size: 1.02rem; }
  .hero__bar { grid-template-columns: auto 1fr; bottom: 16px; gap: 14px; }
  .hero__count { display: none; }
  .hero__segs { gap: 6px; }
  .seg__name { display: none; }
  .note__card { display: none; }
  .hero__lines { display: none; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .card { min-height: 300px; }
  .card--a, .card--b, .card--c, .card--d, .card--e, .card--f { grid-column: auto; grid-row: auto; }
  .card--a { grid-column: 1 / -1; min-height: 380px; }
  .dmb__grid, .kit__grid, .founder__grid, .community__grid, .router__grid { grid-template-columns: 1fr; }
  .dmb__pin { padding-top: calc(var(--hdr) - 16px); }
  .col__tube { height: min(30vh, 260px); }
  .kit__stage { aspect-ratio: 1.15; }
  .kit__quote { left: 12px; bottom: 12px; max-width: 250px; }
  .principles__list { grid-template-columns: 1fr; }
  .calcs__grid { grid-template-columns: 1fr; }
  .router__answer { min-height: 440px; }
  .founder__photo { width: min(100%, 460px); }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .card, .card--a { min-height: 340px; }
  .hero__cta .btn { width: auto; flex: 1 1 100%; }
  .dmb h2 { font-size: 1.85rem; }
  .dmb__lede { font-size: .98rem; margin-bottom: .6em; }
  .dmb__steps { margin: 14px 0 12px; }
  .dmb__steps li { font-size: .8rem; }
  .dmb__result { font-size: .98rem; padding: 10px 14px; }
  .dmb__stage { padding: 14px 12px; gap: 10px; }
  .col__name { font-size: 1.2rem; }
  .col__tube { width: 96px; height: 26vh; }
  .col__figs dd { font-size: 1.4rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px; }
}

.community h2 { text-wrap: pretty; }
