/* Preview-only integration; the original homepage never loads this file. */
.tx-preview .mf-hero{display:block;background:#174cf2;color:#fff;padding:0}
.tx-preview .tx-hero{--bg:#174cf2;--ink:#fff;--muted:#fff;--font:Barlow,Arial,sans-serif;display:block;min-height:0;padding:0;background:#174cf2;color:#fff}
.tx-preview .tx-hero .tx-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.tx-preview .tx-hero .film{width:100%;height:auto;aspect-ratio:4/5;max-height:none;margin:0;flex:none;border:0;border-radius:0;box-shadow:none;background:#174cf2}
/* Override the global 24px icon sizing for the full-stage calendar. */
.tx-preview .tx-hero #viz{width:100%;height:100%;max-width:none;max-height:none;display:block}
.tx-preview .tx-hero .mega,.tx-preview .tx-hero .wm,.tx-preview .tx-hero .svw{font-family:Barlow,Arial,sans-serif;text-shadow:none}
.tx-preview .tx-hero .ch.g,.tx-preview .tx-hero .svn{background:none;color:#d5ff83;text-shadow:none;filter:none}
.tx-preview .tx-hero .dim .ch:not(.g),.tx-preview .tx-hero .svc,.tx-preview .tx-hero .url,.tx-preview .tx-hero .fine,.tx-preview .tx-hero .chead span{color:#fff}
.tx-preview .tx-hero .fw{color:#fff;text-shadow:none}
.tx-preview .tx-hero .fw::before{background:#d5ff83;color:#151815;box-shadow:none}
.tx-preview .tx-hero .scard{border-color:#ffffff66;background:#174cf2;border-radius:3px}
.tx-preview .tx-hero .scard.on{border-color:#d5ff83;background:#ffffff12;box-shadow:none}
.tx-preview .tx-hero .scard .am,.tx-preview .tx-hero .chead b{color:#d5ff83;text-shadow:none}
.tx-preview .tx-hero .chead b i{color:#fff}
.tx-preview .tx-hero .svbar{background:linear-gradient(180deg,transparent,#d5ff83 30%,#fff 50%,#d5ff83 70%,transparent);box-shadow:0 0 40px #d5ff8366}
.tx-preview .tx-hero .cta,.tx-preview .tx-hero .tx-btn{background:#fff;color:#151815;border-radius:0;box-shadow:none}
.tx-preview .tx-hero .tx-copy{max-width:none;padding:24px;display:grid;gap:24px}
.tx-preview .tx-hero .tx-lede{max-width:48em;margin:0;color:#fff;font-family:Manrope,Arial,sans-serif;font-size:16px;line-height:1.65}
.tx-preview .tx-hero .tx-cta{margin:0;gap:16px;align-content:start;font-family:Manrope,Arial,sans-serif}
.tx-preview .tx-hero .tx-btn{justify-content:space-between;width:100%;padding:20px;font-size:16px;line-height:1.3}
.tx-preview .tx-hero .tx-btn::after{content:'→';font-size:24px;margin-left:16px}
.tx-preview .tx-hero .tx-fine{color:#fff;font-size:12px;line-height:1.5}
.tx-preview .tx-hero .tx-calc{display:block;width:100%;min-height:44px;border:0;background:transparent;color:#fff;font:700 14px Manrope,Arial,sans-serif;text-align:left;text-decoration:underline;text-underline-offset:5px;cursor:pointer}
.tx-preview .tx-hero .f-ctrl{right:24px;bottom:10px}
.tx-preview .tx-hero .f-btn{min-width:44px;height:44px;background:#174cf2;color:#fff;border-color:#ffffff88;backdrop-filter:none;border-radius:0}
.tx-preview .tx-hero :focus-visible{outline:3px solid #d5ff83;outline-offset:4px}
.tx-preview .mf-hero>.ms-hero-papers,.tx-preview .mf-hero>.ms-hero-proof,.tx-preview .mf-hero>.mf-hero-meta{background:#174cf2;color:#fff}
.tx-preview .mf-hero>.ms-hero-papers{padding:clamp(24px,4vw,64px);margin:0}
.tx-preview .mf-hero>.ms-hero-proof{padding:0 clamp(24px,4vw,64px)}
.tx-preview .mf-hero>.ms-hero-proof .mf-trust{padding-block:22px;align-items:center}
.tx-preview .mf-hero>.mf-hero-meta{padding:20px clamp(24px,4vw,64px);margin:0}
@media(min-width:900px){
 .tx-preview .tx-hero .film{aspect-ratio:16/9;max-height:760px;min-height:560px}
 .tx-preview .tx-hero .tx-copy{grid-template-columns:1.2fr 1fr;gap:8%;padding:24px clamp(24px,4vw,64px) 40px;align-items:start}
 .tx-preview .tx-hero .tx-lede{font-size:18px}
 .tx-preview .tx-hero .tx-cta{max-width:480px;justify-self:end}
}
.tx-preview .tx-hero .film.no-gl{background:#174cf2}
@media(max-width:899px){.tx-preview .tx-hero .film{height:calc(125vw + 56px);aspect-ratio:auto}}
/* The existing service cards join the desktop end screen without duplicating links. */
.tx-preview .tx-hero .tx-end-services{position:absolute;left:0;top:0;width:520px;height:640px;transform-origin:0 0;z-index:2}
.tx-preview .tx-hero .tx-end-services .ms-need-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));width:100%;max-width:none;height:100%;gap:16px;padding:0;margin:0}
.tx-preview .tx-hero .tx-end-services .ms-need-card{display:flex;flex-direction:column;justify-content:flex-start;gap:14px;padding:24px;min-height:0;transform:none;box-shadow:none}
.tx-preview .tx-hero .tx-end-services .ms-need-card strong{font:700 32px/1.08 Barlow,sans-serif;letter-spacing:-.015em}
.tx-preview .tx-hero .tx-end-services .ms-need-description{font:500 20px/1.55 Manrope,sans-serif}
.tx-preview .tx-hero .tx-end-services .ms-need-card>svg{width:22px;height:22px;margin-top:auto;align-self:flex-end}
.tx-preview .tx-hero .tx-end-services .ms-need-card:hover{transform:translateY(-3px)}
.tx-preview .tx-hero .tx-end-services{--ink:#151815;--ivory:#fff}
.tx-preview .tx-hero #cashFlow{position:absolute;inset:0;width:100%;height:100%;max-width:none;overflow:visible;pointer-events:none;visibility:hidden}
.tx-preview .tx-hero #svNum,.tx-preview .tx-hero #svWord{z-index:1}
/* Calendar page turns are driven by the same pausable story clock. */
.tx-preview .tx-hero .tx-flip-calendar{width:440px;height:330px;perspective:1100px;isolation:isolate}
.tx-preview .tx-hero .tx-calendar-page{position:absolute;inset:0;background:#fff;color:#112b73;border-radius:8px;overflow:hidden;box-shadow:0 14px 28px #071d6633}
.tx-preview .tx-hero .tx-calendar-turn{transform-origin:50% 12px;backface-visibility:hidden;z-index:1;will-change:transform}
.tx-preview .tx-hero .tx-calendar-month{height:82px;display:flex;align-items:center;justify-content:center;background:#d5ff83;color:#112b73;font:800 50px/1 Barlow,Arial,sans-serif;text-transform:uppercase;padding-top:6px}
.tx-preview .tx-hero .tx-calendar-week,.tx-preview .tx-hero .tx-calendar-days{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;padding:0 22px;font-family:Manrope,Arial,sans-serif}
.tx-preview .tx-hero .tx-calendar-week{height:40px;align-items:center;font-size:15px;color:#174cf2}
.tx-preview .tx-hero .tx-calendar-days{grid-template-rows:repeat(6,29px);font-size:18px;font-weight:700;align-items:center}
.tx-preview .tx-hero .tx-calendar-rings{position:absolute;top:-13px;left:62px;right:62px;display:flex;justify-content:space-between;z-index:2}
.tx-preview .tx-hero .tx-calendar-rings i{display:block;width:13px;height:34px;border-radius:6px;background:#112b73;border:2px solid #fff}
/* Let the desktop end screen use the page width, rather than a scaled 1280px stage. */
@media(min-width:900px){
 .tx-preview .tx-hero .film.is-final{height:auto;min-height:0;max-height:none;aspect-ratio:auto;padding:48px 0 80px}
 .tx-preview .tx-hero .film.is-final>.stage,.tx-preview .tx-hero .film.is-final>canvas{visibility:hidden}
 .tx-preview .tx-hero .tx-final-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(48px,6vw,112px);width:calc(100% - 96px);max-width:1760px;margin:0 auto;align-items:stretch;animation:tx-final-in .45s ease-out}
 .tx-preview .tx-hero .tx-final-brand{font:800 28px/1 Barlow,Arial,sans-serif;letter-spacing:.1em;margin-bottom:20px}
 .tx-preview .tx-hero .tx-final-copy h2{font:800 clamp(72px,6.5vw,108px)/.88 Barlow,Arial,sans-serif;letter-spacing:-.03em;text-transform:uppercase;margin:0 0 24px}
 .tx-preview .tx-hero .tx-final-copy h2 span{display:block}
 .tx-preview .tx-hero .tx-final-copy h2 span:last-child{color:#d5ff83}
 .tx-preview .tx-hero .tx-final-service-line{font:600 13px/1.6 Manrope,Arial,sans-serif;color:#fff;margin-bottom:16px}
 .tx-preview .tx-hero .tx-final-copy .tx-copy{display:block;padding:0;max-width:660px}
 .tx-preview .tx-hero .tx-final-copy .tx-lede{font-size:clamp(16px,1.2vw,20px);line-height:1.6;max-width:55ch}
 .tx-preview .tx-hero .tx-final-copy .tx-cta{display:flex;margin-top:24px;max-width:540px;gap:10px}
 .tx-preview .tx-hero .tx-final-copy .tx-btn{min-height:64px}
 .tx-preview .tx-hero .tx-final-copy .tx-calc{margin-top:4px}
 .tx-preview .tx-hero .tx-final-layout .tx-end-services{position:relative;inset:auto;width:auto;height:auto;transform:none}
 .tx-preview .tx-hero .tx-final-layout .ms-need-grid{gap:16px;grid-template-rows:repeat(2,minmax(240px,1fr))}
 .tx-preview .tx-hero .tx-final-layout .ms-need-card{padding:clamp(20px,2vw,36px);gap:16px}
 .tx-preview .tx-hero .tx-final-layout .ms-need-card strong{font-size:clamp(28px,2.2vw,38px)}
 .tx-preview .tx-hero .tx-final-layout .ms-need-description{font-size:clamp(16px,1.15vw,20px);line-height:1.6}
 .tx-preview .tx-hero .film.is-final .f-ctrl{right:max(48px,calc((100% - 1760px)/2));bottom:20px}
}
@keyframes tx-final-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.tx-preview .tx-hero .tx-final-layout{animation:none}}
@media(min-width:900px){
 .tx-preview .tx-hero .tx-final-copy h2 span:not(:last-child){display:inline-block}
 .tx-preview .tx-hero .tx-final-copy h2 span:first-child{margin-right:.18em}
 .tx-preview .tx-hero .tx-final-copy .tx-cta{justify-self:start;margin-left:0;margin-right:0}
}
.tx-preview .tx-hero .tx-goodbye-hand{pointer-events:none}
.tx-preview .tx-hero .tx-goodbye-hand img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;transform-origin:50% 90%;will-change:transform}
.tx-preview .tx-hero #storyFx{position:absolute;inset:0;width:100%;height:100%;max-width:none;overflow:visible;pointer-events:none;visibility:hidden}
.tx-preview .tx-hero #words{position:relative;z-index:2}
.tx-preview .tx-hero .tx-waiting-couple{background:url('/modernist-assets/waiting-couple-sprite.webp') 100% 50%/200% 100% no-repeat}
/* Author display rules must not override the hidden attribute on end-screen containers. */
.tx-preview .tx-hero .tx-final-layout[hidden],.tx-preview .tx-hero .tx-end-services[hidden]{display:none!important}
.tx-preview .mf-hero:not(.tx-story-ended)>.ms-need-grid,
.tx-preview .mf-hero:not(.tx-story-ended) .tx-hero>.tx-copy{display:none}
.tx-preview .tx-start{position:absolute;inset:8% 20px auto;text-align:center;font:800 clamp(44px,8vw,110px)/.95 Barlow,Arial,sans-serif;text-transform:uppercase;color:#fff}
.tx-preview .tx-start span{display:block;color:#d5ff83;margin-top:.15em}
.tx-preview .film.is-ready .tx-start{display:none}
.tx-preview .tx-hero #txCelebration{position:absolute;inset:0;width:100%;height:100%;max-width:none;pointer-events:none;z-index:2;visibility:hidden}
@media(prefers-reduced-motion:reduce){.tx-preview .tx-hero #txCelebration{display:none}}

.tx-preview .tx-hero .film.is-final>.stage,.tx-preview .tx-hero .film.is-final>canvas{visibility:hidden}
.tx-preview .tx-hero .tx-final-layout{animation:none}
@media(max-width:899px){
 .tx-preview .tx-hero .film.is-final{height:auto;min-height:0;max-height:none;aspect-ratio:auto;padding:32px 20px 76px}
 .tx-preview .tx-hero .tx-final-layout{display:grid;grid-template-columns:1fr;gap:28px;position:relative;animation:none}
 .tx-preview .tx-hero .tx-final-brand{font:800 24px/1 Barlow,Arial,sans-serif;letter-spacing:.1em;margin-bottom:20px}
 .tx-preview .tx-hero .tx-final-copy h2{font:800 clamp(60px,17vw,96px)/.9 Barlow,Arial,sans-serif;letter-spacing:-.03em;text-transform:uppercase;margin:0 0 24px}
 .tx-preview .tx-hero .tx-final-copy h2 span{display:block}
 .tx-preview .tx-hero .tx-final-copy h2 span:last-child{color:#d5ff83}
 .tx-preview .tx-hero .tx-final-service-line{font:600 13px/1.6 Manrope,Arial,sans-serif;margin:0 0 16px;color:#fff}
 .tx-preview .tx-hero .tx-final-copy .tx-copy{display:block;padding:0}
 .tx-preview .tx-hero .tx-final-copy .tx-cta{margin-top:20px}
 .tx-preview .tx-hero .tx-final-layout .tx-end-services{position:relative;inset:auto;width:auto;height:auto;transform:none}
 .tx-preview .tx-hero .tx-final-layout .ms-need-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:12px;height:auto}
 .tx-preview .tx-hero .tx-final-layout .ms-need-card{padding:18px;min-height:230px;gap:12px}
 .tx-preview .tx-hero .tx-final-layout .ms-need-card strong{font-size:26px}
 .tx-preview .tx-hero .tx-final-layout .ms-need-description{font-size:15px}
}

/* Fonts first (see the inline script in the page head): no fallback-font flash on the opening words or the proof numbers. */
html.js:not(.fonts-ok) .tx-preview .tx-proof .tx-stat-num{visibility:hidden}
/* With JavaScript the film's own intro reveals the opening words, so the static no-JS frame (drawn at a different spot) never shows first. */
html.js .tx-preview .tx-start{visibility:hidden}
