/* House of Hayvn. Layout concept: a Mayfair townhouse in racing green and brass.
   Ceremonial centred opener, then left-aligned editorial rooms divided by fine gold rules.
   Single committed dark look. */
:root {
  --bg: #1B3A2D;
  --glow: #2B5A44;
  --surface: #20443A;
  --fg: #F3EEE2;
  --muted: #B6C2B8;
  --gold: #CDAE62;
  --gold-hi: #E4CB7F;
  --gold-lo: #B48F3E;
  --ink: #17301F;
  --line: rgba(205, 174, 98, 0.30);
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Palatino Linotype", Georgia, serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.78rem;
  --step-0: 1.02rem;
  --step-1: 1.55rem;
  --step-2: clamp(2rem, 1.3rem + 2.6vw, 3.2rem);
  --step-3: clamp(2.6rem, 1.3rem + 5.5vw, 5.2rem);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 70% 40% at 50% 0%, var(--glow), transparent 70%);
  background-repeat: no-repeat;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.8;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 16px; }

.eyebrow { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }

/* Header */
header.site { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1.4rem; position: relative; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand span { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }
nav.main { display: flex; gap: 1.9rem; align-items: center; }
nav.main a { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .25s; padding-block: .4rem; border-bottom: 1px solid transparent; }
nav.main a:hover { color: var(--gold-hi); }
nav.main a[aria-current="page"] { color: var(--gold-hi); border-bottom-color: var(--gold); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--fg); font: inherit; font-size: var(--step--1); letter-spacing: .2em; text-transform: uppercase; padding: .65rem 1.1rem; border-radius: 999px; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; padding: 1.05rem 2.6rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; cursor: pointer; font-family: inherit;
  color: var(--ink); background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo));
  border: 1px solid transparent; transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: transparent; color: var(--gold-hi); border-color: var(--gold); }
.btn.ghost { background: transparent; color: var(--gold-hi); border-color: var(--gold); }
.btn.ghost:hover { background: var(--gold); color: var(--ink); }
.btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }

/* Opener */
.hero { text-align: center; padding-block: clamp(2.5rem, 8vw, 5.5rem) clamp(4rem, 10vw, 7rem); display: flex; flex-direction: column; align-items: center; }
.hero .mark { width: clamp(150px, 26vw, 210px); height: auto; }
.wordmark { margin-top: 1.1rem; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold); padding-left: 0.42em; }
.tagline { margin-top: 0.4rem; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); opacity: .85; padding-left: 0.4em; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1.08; margin: clamp(2.5rem, 6vw, 4.2rem) 0 0; max-width: 15ch; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--gold-hi); }
.hero .sub { margin: 1.75rem 0 0; max-width: 33rem; color: var(--muted); font-size: 1.08rem; }
.hero .btns { justify-content: center; }

/* Inner page opener */
.page-head { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4.5rem); }
.crumb { font-size: var(--step--1); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.crumb:hover { color: var(--gold-hi); }
.page-head h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1.06; margin: 1.1rem 0 0; max-width: 16ch; text-wrap: balance; }
.page-head h1 em { font-style: italic; color: var(--gold-hi); }
.page-head .sub { margin: 1.6rem 0 0; max-width: 36rem; color: var(--muted); font-size: 1.1rem; }

/* Sections */
section.s { border-top: 1px solid var(--line); padding-block: clamp(3.2rem, 8vw, 6rem); }
h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.15; margin: 1rem 0 0; text-wrap: balance; }
h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); line-height: 1.25; margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.prose p { margin: 0 0 1.3rem; max-width: 37rem; }
.prose p.muted, .muted { color: var(--muted); }
.lead { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.4; font-weight: 400; max-width: 32rem; margin: 0 0 1.6rem; }
.pull { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 1rem + 1.3vw, 2rem); line-height: 1.35; color: var(--gold-hi); max-width: 34rem; margin: 2rem 0; padding-left: 1.4rem; border-left: 1px solid var(--gold); }
.list { margin: 0 0 1.4rem; padding: 0; list-style: none; display: grid; gap: .55rem; max-width: 37rem; }
.list li { padding-left: 1.5rem; position: relative; color: var(--fg); }
.list li::before { content: ""; position: absolute; left: 0; top: .85em; width: .7rem; height: 1px; background: var(--gold); }

/* Cards (rooms) */
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(2.2rem, 5vw, 3.5rem); }
.room { background: var(--bg); padding: 2.1rem 1.9rem 2.3rem; display: flex; flex-direction: column; gap: .75rem; min-width: 0; transition: background .3s; text-decoration: none; }
a.room:hover { background: var(--surface); }
.room .where { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.room p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.room .more { margin-top: auto; padding-top: 1rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi); }
.status { align-self: flex-start; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* Rows (framework, values, steps) */
.rows { border-top: 1px solid var(--line); margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.row { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: .6rem 2.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.row h3 { font-size: 1.45rem; }
.row .q { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.row p { margin: 0; color: var(--muted); max-width: 40rem; }

/* People */
.person { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.person.flip { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); }
.person.flip .photo { order: 2; }
.photo { margin: 0; border: 1px solid var(--line); padding: .6rem; }
.photo img { width: 100%; height: auto; }
.photo figcaption { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); padding: .8rem .3rem .2rem; }
.role { font-size: var(--step--1); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: .8rem 0 1.8rem; }
.person h2 { margin-top: 0; }
.together { margin: 0 0 clamp(2rem, 5vw, 3.5rem); border: 1px solid var(--line); padding: .6rem; }
.together { max-width: 820px; } .together img { width: 100%; height: auto; }

/* Glasses */
.glasses { width: 100%; max-width: 640px; height: auto; display: block; margin: 2rem 0 0; }
.glasses text { font-family: var(--font-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; fill: var(--gold); text-anchor: middle; }

/* Form */
form.enquiry { display: grid; gap: 1.4rem; max-width: 34rem; }
.field { display: grid; gap: .5rem; }
label { font-size: var(--step--1); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--fg); background: rgba(0,0,0,.16); border: 1px solid var(--line); border-radius: 2px; padding: .9rem 1rem; width: 100%; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
select option { color: #111; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-hi); }
textarea { min-height: 9rem; resize: vertical; }
.email { font-family: var(--font-display); font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); color: var(--gold-hi); overflow-wrap: anywhere; user-select: all; margin: .6rem 0 0; }
.note { font-size: .86rem; color: var(--muted); max-width: 34rem; }
.safety { border: 1px solid var(--gold); padding: clamp(1.5rem, 4vw, 2.5rem); background: rgba(0,0,0,.14); }
.safety h2 { margin-top: 0; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2rem; }
.numbers > div { background: var(--bg); padding: 1.6rem 1.5rem; }
.numbers .n { font-family: var(--font-display); font-size: 2rem; color: var(--gold-hi); line-height: 1.1; }
.numbers .l { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.numbers p { margin: .4rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }

.cta { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: 20ch; }
.cta p { color: var(--muted); max-width: 32rem; margin: 1.4rem 0 0; }

footer.site { border-top: 1px solid var(--line); padding-block: 3rem 3rem; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
footer.site h4 { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; font-weight: 500; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
footer.site a { text-decoration: none; color: var(--muted); font-size: .92rem; }
footer.site a:hover { color: var(--gold-hi); }
footer.site .co { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 2; }
footer.site .co strong { color: var(--fg); font-weight: 500; }
.fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.6rem; font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 860px) {
  .split, .person, .person.flip { grid-template-columns: minmax(0, 1fr); }
  .person.flip .photo { order: 0; }
  .photo { max-width: 420px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  footer.site { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1060px) {
  .menu-btn { display: inline-block; }
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10; flex-direction: column; align-items: flex-start; gap: .4rem; padding: 1.4rem 1.2rem; background: var(--bg); border: 1px solid var(--line); }
  nav.main.open { display: flex; }
  nav.main a { font-size: .82rem; padding-block: .6rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 1s ease both; }
  .hero > *:nth-child(2) { animation-delay: .1s; }
  .hero > *:nth-child(3) { animation-delay: .18s; }
  .hero > *:nth-child(4) { animation-delay: .3s; }
  .hero > *:nth-child(5) { animation-delay: .42s; }
  .hero > *:nth-child(6) { animation-delay: .54s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* Arrival animation */
#intro { display: none; }
html[data-sky="day"] { --i-bg: #1F4234; --i-glow: #2F6249; }
html[data-sky="dawn"] { --i-bg: #243F34; --i-glow: #56704C; }
html[data-sky="dusk"] { --i-bg: #2A3B2B; --i-glow: #6E5A33; }
html[data-sky="night"] { --i-bg: #12291F; --i-glow: #1F4535; }
html.intro-on { overflow: hidden; }
html.intro-on #intro, #intro.leaving { display: flex; position: fixed; inset: 0; z-index: 100; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; overflow: hidden; background-color: var(--i-bg, var(--bg)); background-image: radial-gradient(ellipse 60% 50% at 50% 38%, var(--i-glow, var(--glow)), transparent 72%); }
#intro::before { content: ""; position: absolute; inset: 0; background: #07140e; opacity: .55; animation: dawnup 3.4s ease .3s forwards; pointer-events: none; }
#intro > * { position: relative; z-index: 1; }
#intro.leaving { opacity: 0; transition: opacity .8s ease .15s; pointer-events: none; }
html.intro-on .hero > * { animation: none; opacity: 0; }
.intro-house { width: min(76vw, 400px); height: auto; overflow: visible; }
.intro-house .d { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s cubic-bezier(.5,.1,.2,1) forwards; }
.intro-house .d1 { animation-delay: .2s; animation-duration: .7s; }
.intro-house .d2 { animation-delay: .7s; animation-duration: .9s; }
.intro-house .d3 { animation-delay: 1.4s; animation-duration: .7s; }
.intro-house .d4 { animation-delay: 1.8s; animation-duration: .6s; }
.intro-house .d5 { animation-delay: 2.1s; animation-duration: .8s; }
.intro-house .glow { opacity: 0; animation: glow .9s ease 3s forwards; }
.intro-house .glow.lit { animation: glowlit 1.2s ease 3.4s forwards; filter: drop-shadow(0 0 7px rgba(240,217,143,.75)); }
.intro-house .smoke { stroke: #CDAE62; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .5; animation: draw 1.4s ease 3.3s forwards; }
.intro-house .roof { clip-path: inset(0 100% 0 0); animation: paint 1s cubic-bezier(.4,.1,.2,1) 2.3s forwards; }
.intro-house .doorlight, .intro-house .spill { opacity: 0; transform-box: fill-box; transform-origin: left center; }
.intro-house .doorlight { transform: scaleX(.12); }
.opening .intro-house .doorlight { animation: crack 1s ease forwards; filter: drop-shadow(0 0 8px rgba(240,217,143,.9)); }
.opening .intro-house .spill { animation: spill 1s ease forwards; }
.intro-house .bloom { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); }
.opening .intro-house .bloom { animation: bloom 1.1s cubic-bezier(.5,0,.3,1) .45s forwards; }
.intro-word { font-size: .9rem; font-weight: 500; letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: var(--gold); opacity: 0; animation: fade .9s ease 3.2s forwards; }
.intro-tag { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.25rem; letter-spacing: .08em; color: var(--fg); min-height: 1.6em; }
.intro-tag span { display: inline-block; opacity: 0; transform: translateY(6px); animation: word .7s ease forwards; }
.intro-tag span:nth-child(1) { animation-delay: 3.6s; }
.intro-tag span:nth-child(2) { animation-delay: 3.9s; }
.intro-tag span:nth-child(3) { animation-delay: 4.2s; }
.intro-skip { margin-top: 1.6rem; align-self: center; background: none; border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; padding: .7rem 1.3rem; border-radius: 999px; cursor: pointer; }
.intro-skip:hover { color: var(--gold-hi); border-color: var(--gold); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes paint { to { clip-path: inset(0 0 0 0); } }
@keyframes dawnup { to { opacity: 0; } }
@keyframes glow { to { opacity: .14; } }
@keyframes glowlit { to { opacity: .85; } }
@keyframes fade { to { opacity: 1; } }
@keyframes word { to { opacity: 1; transform: none; } }
@keyframes crack { to { opacity: 1; transform: scaleX(.38); } }
@keyframes spill { to { opacity: 1; } }
@keyframes bloom { 0% { opacity: 0; transform: scale(.2); } 25% { opacity: .8; } 100% { opacity: .6; transform: scale(90); } }

/* Gold line draw on headings + lit-window motif */
.s h2::after { content: ""; display: block; width: 3.2rem; height: 1px; margin-top: 1.1rem; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transform-origin: left center; transition: transform 1.1s cubic-bezier(.5,.1,.2,1) .15s; }
.s.cta h2::after, .cta h2::after { margin-inline: auto; transform-origin: center; }
.s .eyebrow::before { content: ""; display: inline-block; width: .8em; height: 1.05em; margin-right: .85em; vertical-align: -.2em; border: 1.5px solid var(--gold); background-color: rgba(240,217,143,.55); background-image: linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)); background-size: 1.5px 100%, 100% 1.5px; background-position: center, center; background-repeat: no-repeat; box-shadow: 0 0 10px rgba(240,217,143,.55); transition: background-color 1s ease .1s, box-shadow 1s ease .1s; }
.js .s:not(.in) h2::after { transform: scaleX(0); }
.js .s:not(.in) .eyebrow::before { background-color: transparent; box-shadow: none; }

/* Four Doors */
.room { position: relative; }
.room .door { position: absolute; top: 1.9rem; right: 1.9rem; width: 30px; height: 46px; border: 1.5px solid var(--gold); border-radius: 15px 15px 0 0; background: rgba(240,217,143,0); perspective: 160px; transition: background .5s ease, box-shadow .5s ease; }
.room .door i { position: absolute; inset: -1.5px; border: 1.5px solid var(--gold); border-radius: 15px 15px 0 0; background: var(--bg); transform-origin: left center; transition: transform .8s cubic-bezier(.3,.7,.2,1), background .3s; }
.room .door i::after { content: ""; position: absolute; right: 5px; top: 52%; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
a.room:hover .door i, a.room:focus-visible .door i { transform: rotateY(-64deg); background: var(--surface); }
a.room:hover .door, a.room:focus-visible .door { background: radial-gradient(ellipse at 50% 70%, rgba(240,217,143,.95), rgba(205,174,98,.55) 70%); box-shadow: 0 0 22px rgba(240,217,143,.45); }

/* Repair the house */
.fw { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.fw-house { position: sticky; top: 14vh; }
.fw-house svg { width: 100%; max-width: 440px; height: auto; display: block; overflow: visible; }
.fw .rows { margin-top: 0; }
.fw .row { grid-template-columns: minmax(0, 1fr); min-height: 40vh; align-content: center; transition: opacity .6s ease; }
.fw .gl { opacity: .8; } .fw .dl { opacity: .9; } .fw .spill { opacity: 1; }
.js .fw .row { opacity: .4; }
.js .fw .row.on { opacity: 1; }
.js .fw .l .d { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.5,.1,.2,1); }
.js .fw .l.on .d { stroke-dashoffset: 0; }
.js .fw .gl, .js .fw .dl, .js .fw .spill { opacity: 0; transition: opacity 1.2s ease .8s; }
.js .fw .l3.on .gl { opacity: .8; } .js .fw .l4.on .dl { opacity: .9; } .js .fw .l4.on .spill { opacity: 1; }
.js .fw .roof { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.4,.1,.2,1); }
.js .fw .l5.on .roof { clip-path: inset(0 0 0 0); }
@media (max-width: 860px) {
  .fw { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fw-house { top: 0; z-index: 3; background: var(--bg); padding: .6rem 0 .8rem; border-bottom: 1px solid var(--line); }
  .fw-house svg { max-height: 30vh; margin: 0 auto; }
  .fw .row { min-height: 26vh; }
}

/* Door transitions between pages */
html.door-out::before, html.door-out::after, html.door-in::before, html.door-in::after { content: ""; position: fixed; top: 0; bottom: 0; width: 50.3%; z-index: 300; background: var(--bg); pointer-events: none; }
html.door-out::before, html.door-in::before { left: 0; box-shadow: inset -1px 0 0 rgba(205,174,98,.7), 14px 0 40px rgba(240,217,143,.18); }
html.door-out::after, html.door-in::after { right: 0; box-shadow: inset 1px 0 0 rgba(205,174,98,.7), -14px 0 40px rgba(240,217,143,.18); }
html.door-out::before { animation: doorL .5s cubic-bezier(.6,0,.3,1) both; }
html.door-out::after { animation: doorR .5s cubic-bezier(.6,0,.3,1) both; }
html.door-in::before { animation: doorLo .95s cubic-bezier(.6,0,.2,1) .12s both; }
html.door-in::after { animation: doorRo .95s cubic-bezier(.6,0,.2,1) .12s both; }
@keyframes doorL { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes doorR { from { transform: translateX(100%); } to { transform: none; } }
@keyframes doorLo { from { transform: none; } to { transform: translateX(-100%); } }
@keyframes doorRo { from { transform: none; } to { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  .s h2::after, .s .eyebrow::before, .room .door, .room .door i, .fw .row, .fw .l .d, .fw .roof, .fw .gl, .fw .dl, .fw .spill { transition: none !important; }
}

/* ---- House-led hero: walk to the door ---- */
.walk { position: relative; overflow-x: clip; }
.walk-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(.9rem, 2.6vh, 1.7rem); text-align: center; min-height: calc(100svh - 90px); padding-block: 1rem 2.5rem; }
.walk-house-wrap { width: min(86vw, calc(40svh * 1.075), 480px); transform-origin: 50% 74%; will-change: transform; }
.walk-house { width: 100%; height: auto; display: block; overflow: visible; }
.walk-text { max-width: 44rem; }
.walk-text .wordmark { font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.walk-text h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 5.2vw + .4rem, 4.2rem); line-height: 1.05; margin: .8rem 0 0; text-wrap: balance; }
.walk-text h1 em { font-style: italic; color: var(--gold-hi); }
.walk-text .sub { margin: 1.2rem auto 0; max-width: 34rem; color: var(--muted); font-size: 1.05rem; }
.walk-text .btns { justify-content: center; margin-top: 1.8rem; }
.walk-cue { display: none; flex-direction: column; align-items: center; gap: .5rem; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.walk-cue i { width: 1px; height: 28px; background: linear-gradient(var(--gold), transparent); }
.walk-light { display: none; }
.walk-house .glow { opacity: .14; }
.walk-house .glow.lit { opacity: .85; filter: drop-shadow(0 0 7px rgba(240,217,143,.75)); }
.walk-house .doorlight { transform-box: fill-box; transform-origin: left center; transform: scaleX(.38); opacity: 1; filter: drop-shadow(0 0 8px rgba(240,217,143,.9)); }
.walk-house .spill { opacity: 1; }
.walk-house .smoke { stroke: #CDAE62; opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .walk-stage > * { animation: rise 1.1s ease backwards; }
  .walk-stage > .walk-light { animation: none; }
  .walk-text { animation-delay: .15s; }
  .walk-house .glow.lit { animation: breathe 6s ease-in-out infinite; }
  .walk-house .smoke { stroke-dasharray: 3 5; animation: drift 9s linear infinite; }
  .walk.on { height: 300vh; }
  .walk.on .walk-stage { position: sticky; top: 0; height: 100svh; min-height: 0; padding-block: 0 1.6rem; overflow: clip; }
  .walk.on .door { opacity: min(1, calc((1 - var(--p, 0)) * 12)); }
  .walk.on .walk-house-wrap { transform: scale(var(--s, 1)); }
  .walk.on .fade { opacity: max(0, calc(1 - (var(--p, 0) - .22) * 1.7)); }
  .walk.on .walk-text { opacity: max(0, calc(1 - var(--p, 0) * 4.5)); transform: translateY(calc(var(--p, 0) * -50px)); }
  .walk.on .walk-cue { display: none; opacity: max(0, calc(1 - var(--p, 0) * 6)); position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); }
  .walk.on .walk-light { display: block; position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: var(--lt, 0); background: radial-gradient(circle at 50% 52%, rgba(244,226,160,.98), rgba(205,174,98,.6) 38%, rgba(27,58,45,0) 72%); }
}
html.intro-on .walk-stage > * { animation: none; opacity: 0; }
@keyframes breathe { 0%, 100% { opacity: .72; } 50% { opacity: .95; } }
@keyframes drift { to { stroke-dashoffset: -80; } }

/* ---- Header call button ---- */
nav.main a.nav-cta { border: 1px solid var(--gold); color: var(--gold-hi); padding: .55rem 1.15rem; border-radius: 999px; letter-spacing: .16em; }
nav.main a.nav-cta:hover, nav.main a.nav-cta[aria-current="page"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
nav.main { gap: 1.5rem; }

/* ---- Guided first step ---- */
.step-cta { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; }
.step-cta .btns { flex-direction: column; align-items: flex-start; }
.quiz { max-width: 44rem; border: 1px solid var(--line); background: var(--surface); padding: clamp(1.4rem, 4vw, 2.6rem); }
.quiz .prog { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.quiz .bar { height: 2px; background: var(--line); margin: .8rem 0 1.6rem; }
.quiz .bar i { display: block; height: 100%; background: var(--gold); transition: width .5s ease; }
.quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz legend { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.25; padding: 0; margin-bottom: 1.2rem; }
.quiz legend:focus { outline: none; }
.quiz .opt { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; margin-bottom: .6rem; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.quiz .opt:hover { border-color: var(--gold); }
.quiz .opt input { margin-top: .3rem; accent-color: #CDAE62; flex: none; }
.quiz .opt:has(input:checked) { border-color: var(--gold); background: rgba(205,174,98,.1); }
.quiz .opt:has(input:focus-visible) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.quiz .nav { display: flex; gap: .8rem; margin-top: 1.4rem; flex-wrap: wrap; }
.quiz .nav .btn[disabled] { opacity: .4; cursor: not-allowed; }
.quiz h2:focus { outline: none; }
.quiz .res { border: 1px solid var(--gold); padding: 1.4rem; margin-top: 1.2rem; }
.quiz .res h3 { font-size: 1.6rem; margin: .3rem 0 .6rem; }
.quiz .res p { margin: 0 0 1rem; color: var(--muted); }
.quiz .also { margin-top: 1.6rem; font-size: .95rem; color: var(--muted); }
.quiz .also a { color: var(--gold-hi); }

/* ---- Kind words ---- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(1.6rem, 4vw, 2.4rem); }
.quote { background: var(--bg); margin: 0; padding: clamp(1.5rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 1.2rem; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.45; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 2.6rem; line-height: .6; color: var(--gold); margin-bottom: .6rem; }
.quote figcaption { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.quote .qwho { color: var(--fg); }
.quote .qsrc { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

@media (max-width: 860px) {
  .step-cta { grid-template-columns: minmax(0, 1fr); }
  nav.main a.nav-cta { align-self: flex-start; margin-top: .4rem; }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 861px) and (min-height: 840px) {
  .walk.on .walk-cue { display: flex; }
}
