@import url('../ink-wash-motion-v5/motion.css');
/* Ground coordinates come from the painting, not viewport-fixed positioning. */
.embrace-ground{position:absolute;z-index:0;left:50%;top:calc(1420px + 80.73vw);pointer-events:none;--figure-width:clamp(191.25px,19.125vw,272px);--figure-height:var(--figure-width);--contact-y:0.96688;--orb-width:calc(var(--figure-width)*1.94520548);--orb-height:calc(var(--figure-width)*1.5875);--orb-top:calc(var(--figure-width)*-.46688);--orb-opacity:1}
.embrace-woman{position:absolute;display:block;width:var(--figure-width);height:var(--figure-height);left:0;top:0;transform:translate(-50%,calc(-100% * var(--contact-y)));z-index:2;object-fit:contain}
.contact-wash{position:absolute;width:calc(var(--figure-width)*.83);height:calc(var(--figure-width)*.065);left:0;top:-3px;transform:translate(-50%,-50%);background:radial-gradient(ellipse,#62694e44, #94917019 47%,transparent 72%);z-index:1;border-radius:50%}
.orb-static,.orb-front,.orb-volume{position:absolute;left:0;top:var(--orb-top);width:var(--orb-width);height:var(--orb-height);transform:translate(-50%,-50%);overflow:visible}
.orb-static{z-index:0;opacity:.92}.orb-front{z-index:3;opacity:.62}.orb-volume{z-index:0;opacity:.65}
.has-traveler .orb-static{visibility:hidden}
.aurora-journey{position:absolute;z-index:-1;pointer-events:none;transform:translate(-50%,-50%);opacity:0;overflow:visible;contain:layout style}
.aurora-journey>svg{display:block;width:100%;height:100%;overflow:visible}
.journey-pigment{opacity:var(--ribbon-strength,.6)}
.ribbon-soft{opacity:.65}.ribbon-core{opacity:.55}.ribbon-texture{opacity:.23;mix-blend-mode:multiply}
.motion-on .aurora-journey:not(.is-settled) .ribbon-ambient{animation:embrace-flow 8s ease-in-out infinite alternate;transform-origin:50% 50%}
@keyframes embrace-flow{from{transform:translateY(calc(-6px * var(--sway,1))) skewX(calc(-1.2deg * var(--sway,1)))}to{transform:translateY(calc(6px * var(--sway,1))) skewX(calc(1.2deg * var(--sway,1)))}}
@media(min-width:721px) and (max-width:1319px){.embrace-ground{top:calc(1660px + 80.73vw);--figure-width:clamp(191.25px,19.125vw,272px)}}
@media(max-width:720px){.embrace-ground{top:calc(1400px + 99.6vw);--figure-width:min(144.5px,36.55vw);--figure-height:var(--figure-width);--orb-width:calc(var(--figure-width)*1.945);--orb-height:calc(var(--figure-width)*1.5875);--orb-top:calc(var(--figure-width)*-.46688)}}
@media(prefers-reduced-motion:reduce){.aurora-journey{display:none}}

/* Allow broad pigment to leave the canvas without creating horizontal scroll. */
.painted-world{overflow-x:clip}
/* The legacy aurora is the still fallback; avoid animating its invisible copies. */
.motion-on .aurora-layer img{animation:none}
.flying-birds{z-index:0}

/* Actual sky pigment leads; the painted serpent gathers into the final orb. */
.aurora-origin{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.journey-svg>.ribbon-ambient{opacity:var(--geometry-opacity,0)}
.aurora-particle{fill:var(--particle-color,#eef0c8);opacity:.5}
.particle-halo{opacity:.12}
.motion-on .aurora-particle{animation:particle-breathe var(--duration) ease-in-out var(--delay) infinite alternate}
@keyframes particle-breathe{from{opacity:.14}to{opacity:.7}}
@media(max-width:720px){.aurora-particle:nth-child(n+17){display:none}}
.aurora-origin{filter:none}

/* Farthest land plane: a separate watercolor mountain, behind every tree layer. */
.mountain-layer{position:absolute;z-index:-1;left:7%;top:12%;width:86%;display:block;pointer-events:none;opacity:.78;mask-image:linear-gradient(#000 55%,transparent 96%)}
.mountain-layer img{display:block;width:100%;height:auto}
@media(max-width:720px){.mountain-layer{left:3%;width:94%;top:12%;opacity:.76}}

/* Feathered painted folds converge before the geometric handoff. */
.aurora-fold{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;transform-origin:55% 50%}
/* The folds breathe independently, changing the silhouette during the first seconds.
   Large source-space movement is scaled down by the journey plane on phones. */
.motion-on .aurora-origin{animation:origin-drift 13s ease-in-out -3s infinite alternate;transform-origin:55% 42%;will-change:transform}
.motion-on .fold-one{animation:fold-flow-one 8s ease-in-out -3s infinite alternate;transform-origin:24% 28%}
.motion-on .fold-two{animation:fold-flow-two 11s ease-in-out -7s infinite alternate;transform-origin:72% 48%}
.motion-on .fold-three{animation:fold-flow-three 9s ease-in-out -2s infinite alternate;transform-origin:57% 72%}
@keyframes origin-drift{from{transform:translateX(calc(-8px * var(--fold-motion,1)))}to{transform:translateX(calc(8px * var(--fold-motion,1)))}}
@keyframes fold-flow-one{
 from{transform:translate(calc(-24px * var(--fold-motion,1)),calc(14px * var(--fold-motion,1))) skewX(calc(-5deg * var(--fold-motion,1))) scaleY(calc(1 - .13 * var(--fold-motion,1)))}
 to{transform:translate(calc(26px * var(--fold-motion,1)),calc(-22px * var(--fold-motion,1))) skewX(calc(5deg * var(--fold-motion,1))) scaleY(calc(1 + .13 * var(--fold-motion,1)))}}
@keyframes fold-flow-two{
 from{transform:translate(calc(27px * var(--fold-motion,1)),calc(-19px * var(--fold-motion,1))) skewX(calc(6deg * var(--fold-motion,1))) scaleY(calc(1 + .12 * var(--fold-motion,1)))}
 to{transform:translate(calc(-26px * var(--fold-motion,1)),calc(21px * var(--fold-motion,1))) skewX(calc(-5deg * var(--fold-motion,1))) scaleY(calc(1 - .12 * var(--fold-motion,1)))}}
@keyframes fold-flow-three{
 from{transform:translate(calc(-21px * var(--fold-motion,1)),calc(18px * var(--fold-motion,1))) skewX(calc(-5deg * var(--fold-motion,1))) scaleY(calc(1 - .10 * var(--fold-motion,1)))}
 to{transform:translate(calc(25px * var(--fold-motion,1)),calc(-20px * var(--fold-motion,1))) skewX(calc(4deg * var(--fold-motion,1))) scaleY(calc(1 + .14 * var(--fold-motion,1)))}}
.motion-on .handoff-complete .aurora-origin,.motion-on .handoff-complete .aurora-fold{animation-play-state:paused}
.journey-svg .ribbon-core{opacity:.40}.journey-svg .ribbon-soft{opacity:.60}.journey-svg .ribbon-texture{opacity:.20}
@media(max-width:720px){
 .hero{padding-top:163px}
 .intro-video{top:940px;right:72px}
 .breathing-space{top:1280px;width:calc(100% - 88px);left:26px;transform:none;padding:0;font-size:24px}
 .flying-birds{top:1425px}
 .rainbow-frame{top:1430px}
 .forest-stage{top:1520px}
 .painted-world{height:calc(1520px + 207.2vw)}
 .approach{top:calc(1550px + 110vw)}
 .embrace-ground{top:calc(1520px + 99.6vw)}
 .aurora-origin{filter:none}
}
@media(max-width:720px){.root-host{top:calc(1520px + 94.73vw)}}

/* Fixed drawing plane: scroll updates only its transform, never layout dimensions. */
.aurora-journey{left:0;top:0;width:1000px;height:1000px;transform-origin:0 0}
/* Quiet stars: most stay steady; a minority brighten gently on long cycles. */
.star{opacity:.22;filter:none;transform:none}
.glint{opacity:.16;filter:none}
.motion-on .star,.motion-on .glint{animation:none}
.motion-on .star:nth-child(5n+1){animation:quiet-twinkle calc(var(--duration) * 5 + 3s) ease-in-out var(--delay) infinite}
.motion-on .glint:nth-of-type(3n){animation:quiet-glint calc(var(--duration) * 4 + 5s) ease-in-out var(--delay) infinite}
@keyframes quiet-twinkle{0%,60%,100%{opacity:.18}80%{opacity:.40}}
@keyframes quiet-glint{0%,65%,100%{opacity:.12}83%{opacity:.28}}

/* The opening sky is complete on first paint: no timed expanding radial reveal. */
.sky-base,.sky-cloud-depth{mask-image:none}

/* User-supplied sketch wordmark, fitted inside the existing header height. */
header .brand-art{display:flex;align-items:center;line-height:0;flex-shrink:0}
header .brand-art picture{display:block}
header .brand-logo{display:block;width:190px;height:auto}
@media(max-width:720px){header .brand-logo{width:160px}}

/* A fresh, quiet blue wash; still states use the same light as the moving scene. */
.aurora-layer{mix-blend-mode:normal;opacity:1}
.aurora-still{position:absolute;left:76%;top:175px;width:68%;height:520px;transform:translate(-50%,-50%)}
.aurora-still .aurora-still-fold{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}
@media(max-width:720px){.aurora-still{left:52%;top:88px;width:112%;height:270px}}

/* One editorial grid gives the accepted headline and introduction room to breathe. */
.hero-layout{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr);gap:clamp(48px,5.5vw,80px);align-items:center;width:88.9%;max-width:1280px;margin:0 auto;padding-top:104px}
.hero-layout .hero{padding:0;max-width:620px;min-width:0}
.hero-layout .hero .eyebrow{font-size:11px;letter-spacing:.14em;margin-bottom:22px;line-height:1.5}
.hero-layout .hero h1{font-size:clamp(36px,3.1vw,42px);line-height:1.23;letter-spacing:-.025em;max-width:100%;text-wrap:balance}
.hero-title-lead,.hero-title-detail{display:block}
.hero-title-lead{margin-bottom:8px}
.hero-title-detail{font-size:36px;line-height:1.3;color:#f0f3ea}
.hero-layout .intro{font-size:18px;line-height:1.65;max-width:46ch;margin-top:26px;color:#edf1e9}
.hero-layout .actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:28px;max-width:530px}
.hero-layout .actions a{min-height:56px;padding:13px 17px;gap:15px;font-size:13px;line-height:1.5}
.hero-layout .note{font-size:12px;line-height:1.6;margin-top:15px;color:#e4ece6}
.hero-layout .scroll-link{margin-top:24px;font-size:12px;color:#e4ece6}
.hero-layout .intro-video{position:relative;top:auto;left:auto;right:auto;transform:none;width:100%;max-width:none;margin:0;color:#f3f4eb;align-self:center}
.hero-layout .video-placeholder{border-color:#e5eee25c;background:linear-gradient(140deg,#d9e5df12,#17334d24);box-shadow:none;border-radius:4px}
.hero-layout .intro-video figcaption{font-size:14px;line-height:1.6;margin-top:14px;color:inherit}
.hero-layout .intro-video svg{width:44px;height:44px;stroke:currentColor}
.hero-layout .intro-video svg path{fill:#eef1e633}
@media(max-width:1100px){
 .hero-layout{grid-template-columns:1fr;gap:44px;max-width:660px;padding-top:108px;width:calc(100% - 80px)}
 .hero-layout .hero{max-width:none}
 .hero-layout .hero h1{font-size:40px;max-width:620px}
 .hero-title-detail{font-size:34px}
 .hero-layout .intro-video{width:min(100%,560px);justify-self:start;color:#294b61}
 .hero-layout .video-placeholder{border-color:#55778d88;background:#d9e9ed22}
}
@media(max-width:720px){
 .hero-layout{width:calc(100% - 52px);padding-top:158px;gap:40px}
 .hero-layout .hero .eyebrow{font-size:10px;letter-spacing:.11em;margin-bottom:19px}
 .hero-layout .hero h1{font-size:31px;line-height:1.26;letter-spacing:-.025em}
 .hero-title-lead{margin-bottom:7px}
 .hero-title-detail{font-size:28px;line-height:1.3}
 .hero-layout .intro{font-size:17px;line-height:1.65;margin-top:22px;max-width:38ch}
 .hero-layout .actions{grid-template-columns:1fr;gap:10px;margin-top:24px}
 .hero-layout .actions a{min-height:52px;font-size:13px;padding:12px 17px}
 .hero-layout .note{font-size:12px;margin-top:15px}
 .hero-layout .scroll-link{margin-top:18px}
 /* Leave the right-hand light route clear beside the video. */
 .hero-layout .intro-video{width:calc(100% - 46px)}
 .hero-layout .intro-video figcaption{font-size:13px}
}
@media(max-width:350px){
 .hero-layout{width:calc(100% - 44px)}
 .hero-layout .hero h1{font-size:28px}
 .hero-title-detail{font-size:26px}
 .hero-layout .intro{font-size:17px}
}

/* A few lavender motes accompany the broad purple/aqua pigment into the orb. */
.aurora-particle:nth-child(3n){fill:#b7a4d2}

/* Near-black night opens gradually into indigo and clear daylight below. */
.ink-wash{background:linear-gradient(90deg,#03080e59,transparent 85%),linear-gradient(180deg,#03070c22,#10243a55 500px,transparent 1000px)}
@media(max-width:720px){.ink-wash{background:linear-gradient(180deg,#02050a20,#08152666 470px,#142d3c33 650px,transparent 960px)}}

/* Let the sketch wordmark lead a restrained serif + readable sans identity. */
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400;font-display:swap;src:url('../type-reference-pairings-v4/assets/fonts/cormorantgaramond-1.woff2') format('woff2')}
h1,h2,h3,.breathing-space,.brand{font-family:'Cormorant Garamond',Georgia,serif;font-weight:400}
header nav,header details,.actions a,.button,.text-link,.scroll-link,.motion-toggle,footer>a:not(.brand){font-family:Hind,Arial,sans-serif;font-weight:400}
.hero-layout .hero h1{font-size:clamp(38px,3.2vw,44px);letter-spacing:-.015em}
.hero-title-detail{font-size:38px;letter-spacing:-.012em}
.hero-layout .actions a{font-size:15px}
header nav{font-size:16px}
.motion-toggle{font-size:14px}
.hero-layout .scroll-link,.text-link{font-size:14px}
.button{font-size:15px}
.aurora-fold,.aurora-still-fold{opacity:.88}
@media(max-width:1100px){.hero-layout .hero h1{font-size:42px}.hero-title-detail{font-size:36px}}
@media(max-width:720px){
 .hero-layout .hero h1{font-size:34px;line-height:1.2}
 .hero-title-detail{font-size:31px;line-height:1.25}
 .hero-layout .actions a,.button{font-size:15px}
 .hero-layout .scroll-link,.text-link{font-size:14px}
}
@media(max-width:350px){.hero-layout .hero h1{font-size:32px}.hero-title-detail{font-size:29px}}

/* A single headline rhythm, quieter reading area and lighter equal entry choices. */
.hero-layout .hero .eyebrow{display:flex;align-items:center;gap:12px;font-size:10px;letter-spacing:.16em;margin-bottom:24px;color:#d4dfdb}
.hero-layout .hero .eyebrow::before{content:'';width:25px;height:1px;background:#b7cebd;flex:none}
.hero-layout .hero h1{line-height:1.12;letter-spacing:-.018em}
.hero-title-lead{margin-bottom:2px}
.hero-title-detail{line-height:1.14;color:#e3e9e1;letter-spacing:-.018em}
.hero-layout .intro{font-size:18px;line-height:1.6;max-width:43ch;margin-top:28px;color:#e1e8e3}
.hero-layout .actions{max-width:500px;margin-top:30px;gap:14px}
.hero-layout .actions a{min-height:54px;padding:13px 17px;border:1px solid #d6e2d18c;background:#e6eee00d;color:#f3f4eb;border-radius:2px;box-shadow:none;transition:background-color .18s ease,border-color .18s ease}
.hero-layout .actions a span{font-size:18px;line-height:1;font-weight:400;color:#c5d9cf}
.hero-layout .actions a:hover{background:#e6eee022;border-color:#e3ecde}
.hero-layout .actions a:focus-visible{outline:2px solid #f5f5e9;outline-offset:4px;background:#e6eee022}
.hero-layout .note{margin-top:16px;font-size:12px;line-height:1.6;color:#c5d2d0}
.hero-layout .scroll-link{margin-top:32px;color:#c5d2d0;font-size:13px;gap:24px}
/* Fixed masks preserve the existing vertical fade; no extra animation or blur. */
.stars{mask-image:linear-gradient(#000 48%,transparent 76%),radial-gradient(ellipse 66% 490px at 14% 280px,#0000 30%,#0003 67%,#000 100%);mask-composite:intersect}
@media(max-width:1100px){.stars{mask-image:linear-gradient(#000 48%,transparent 76%),linear-gradient(#000 1%,#0002 12%,#0002 38%,#000 55%)}}
@media(max-width:720px){
 .hero-layout .hero .eyebrow{font-size:10px;letter-spacing:.1em;gap:9px;margin-bottom:22px}
 .hero-layout .hero .eyebrow::before{width:18px}
 .hero-layout .hero h1{line-height:1.14}
 .hero-title-detail{line-height:1.18}
 .hero-layout .intro{font-size:17px;line-height:1.6;margin-top:24px}
 .hero-layout .actions{margin-top:26px;gap:10px}
 .hero-layout .actions a{min-height:52px}
 .hero-layout .scroll-link{margin-top:24px}
}

/* Selected September 25: same fine paper grain across dark, painted and plain surfaces. */
body,header{background-image:url('assets/paper-grain.png');background-size:512px 512px}
.painted-world::after{content:'';position:absolute;inset:0;z-index:1;background-image:url('assets/paper-grain.png');background-size:512px 512px;opacity:.72;pointer-events:none}
/* Content remains above the decorative surface; no moving noise or filter. */
.hero-layout,.approach,.breathing-space{z-index:2}
/* Prevent body grain doubling under transparent portions of the scene. */
.painted-world{background-color:var(--paper)}

/* First light: open blue-gray paper sky, warm horizon and a quieter aurora. */
.ink-wash{background:none}
.hero-layout .hero{color:#223b48}
.hero-title-detail{color:#29434f}
.hero-layout .hero .eyebrow{color:#1c313d}
.hero-layout .intro{color:#203641}
.hero-layout .hero .eyebrow::before{background:#47646a}
.hero-layout .note,.hero-layout .scroll-link{color:#29434f}
.hero-layout .actions a{border-color:#405f6cb3;background:#f7f7f01a;color:#223b48}
.hero-layout .actions a span{color:#345560}
.hero-layout .actions a:hover{background:#f7f7f04d;border-color:#294954}
.hero-layout .actions a:focus-visible{outline-color:#223b48;background:#f7f7f04d}
.hero-layout .intro-video{color:#29434f}
.hero-layout .video-placeholder{border-color:#49657180;background:#f7f7f00d}
.hero-layout .intro-video svg{stroke:#29434f}
.hero-layout .intro-video svg path{fill:#34556322}
.aurora-fold,.aurora-still-fold{opacity:.42}
.aurora-still{top:130px;width:60%;height:360px}
.star,.glint{display:none}
.star:nth-child(8n+3){display:initial;opacity:.10}
@keyframes quiet-twinkle{0%,60%,100%{opacity:.06}80%{opacity:.16}}
@media(max-width:720px){.aurora-still{top:72px;width:100%;height:200px}}

/* Charcoal top section; soft light and warm daylight continue below. */
.hero-layout .hero{color:#f4f3e9}
.hero-title-detail,.hero-layout .intro{color:#edf0e8}
.hero-layout .hero .eyebrow{color:#f4f3e9}
.hero-layout .hero .eyebrow::before{background:#b7cebd}
.hero-layout .note,.hero-layout .scroll-link{color:#e0e8e3}
.hero-layout .actions a{border-color:#d6e2d18c;background:#e6eee00d;color:#f3f4eb}
.hero-layout .actions a span{color:#c5d9cf}
.hero-layout .actions a:hover{background:#e6eee022;border-color:#e3ecde}
.hero-layout .actions a:focus-visible{outline-color:#f5f5e9;background:#e6eee022}
.star{display:none}
.star:nth-child(8n+3){display:none}
.star:nth-child(4n+2){display:initial;opacity:.20}
@keyframes quiet-twinkle{0%,60%,100%{opacity:.15}80%{opacity:.28}}
@media(min-width:1101px){
 .hero-layout .intro-video{color:#edf0e8}
 .hero-layout .video-placeholder{border-color:#dce5df70;background:#f7f7f008}
 .hero-layout .intro-video svg{stroke:#edf0e8}
 .hero-layout .intro-video svg path{fill:#edf0e822}
}
.hero-layout .hero .eyebrow{width:fit-content;max-width:100%}
@media(max-width:1100px){.hero-layout .video-placeholder{background:#f7f7f050}}

/* Gradient-only sky layers preserve vertical color positions at every width. */
.sky-underpaint,.sky-base,.sky-clouds{object-fit:fill}
/* Keep the stacked video readable as the sky progresses through blue. */
@media(max-width:1100px){.hero-layout .video-placeholder{background:#f7f7f08c}}
@media(min-width:721px) and (max-width:1100px){.hero-layout .intro-video figcaption{color:#f4f3e9}}
@media(max-width:720px){.hero-layout .intro-video figcaption{color:#050c0e}}

/* Sparse transparent watercolor wisps frame the open route through the sky. */
.sky-wisps{position:absolute;inset:0;z-index:-2;pointer-events:none}
.sky-wisp{position:absolute;display:block;pointer-events:none}
.sky-wisp img{display:block;width:100%;height:auto}
.wisp-long{left:-9%;top:760px;width:58%;max-width:1000px;opacity:.36}
.wisp-distant{right:-8%;top:670px;width:42%;max-width:680px;opacity:.26}
@media(min-width:721px) and (max-width:1100px){.wisp-long{top:1150px}.wisp-distant{top:1090px}}
@media(max-width:720px){
 .wisp-long{left:-20%;top:1160px;width:80%;opacity:.32}
.wisp-distant{right:-18%;top:1090px;width:53%;opacity:.24}
}

/* Quiet pencil marks connect the heading to the sketched wordmark. */
.hero-emphasis{position:relative}
.hero-emphasis::after{
 content:'';position:absolute;left:0;right:0;bottom:-.055em;height:.12em;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4 Q43 2 86 3 T179 2' fill='none' stroke='%23d5ded0' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
 opacity:.65;pointer-events:none
}
