:root {
  --paper: #fbf6ee;
  --paper-2: #f5ece2;
  --ink: #1f1a1c;
  --ink-soft: #4a4045;
  --muted: #74686c;
  --pink: #f2a7bb;
  --rose: #d9587b;
  --blush: #fde7ed;
  --sage: #c9d6bd;
  --gold: #c39a50;
  --display: "Playfair Display", "Didot", Georgia, serif;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --hand: "Playfair Display", Georgia, serif;
  --script: "Parisienne", "Snell Roundhand", cursive;
  --caps: "Jost", "Futura", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bounce: cubic-bezier(.34, 1.4, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.15rem/1.65 var(--serif);
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.1; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.todo { color: var(--rose); font-style: italic; }

/* ---------- Elevator nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem clamp(16px, 3vw, 40px);
  background: rgba(251, 246, 238, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 3px 0 -2px var(--paper), 0 4px 0 -2px var(--ink);
  transform: translateY(-110%); transition: transform .9s var(--ease);
}
.show .nav { transform: none; }
.crest { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.crest__mono {
  display: grid; place-content: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--ink); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--rose);
  font: italic 400 1.05rem var(--display); color: var(--ink); letter-spacing: -.02em;
}
.crest__name { font: 400 1.3rem var(--display); letter-spacing: .02em; }
.elevator { display: flex; align-items: center; gap: 1rem; }
.floors { list-style: none; margin: 0; padding: 0; display: flex; gap: .55rem; }
.floors a { display: grid; justify-items: center; gap: 2px; text-decoration: none; }
.floors__btn {
  display: grid; place-content: center; width: 32px; height: 38px; border-radius: 16px 16px 3px 3px;
  border: 1px solid var(--ink); background: radial-gradient(circle at 35% 30%, #fff, #efe4d6);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold);
  font: 500 .9rem var(--caps); transition: background .4s, color .4s, box-shadow .4s;
}
.floors__label { font: 500 .62rem var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.floors a:hover .floors__btn, .floors a.active .floors__btn {
  background: radial-gradient(circle at 35% 30%, #ffd3df, var(--pink)); color: var(--ink);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold), 0 0 14px 4px rgba(242,167,187,.7);
}
@media (max-width: 720px) {
  .crest__name { display: none; }
  .floors { gap: .4rem; }
  .floors__btn { width: 30px; height: 30px; font-size: .8rem; }
  .floors__label { font-size: .55rem; letter-spacing: .08em; }
}
@media (max-width: 380px) {
  .nav { padding-inline: 10px; }
  .crest__mono { width: 36px; height: 36px; }
  .floors { gap: .25rem; }
  .floors__btn { width: 27px; height: 32px; font-size: .75rem; }
  .floors__label { font-size: .5rem; letter-spacing: .04em; }
}
@media (max-width: 360px) {
  .floors__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .floors { gap: .4rem; }
  .floors__btn { width: 30px; height: 36px; }
}

/* ---------- Hero stage ---------- */
.stage {
  position: relative; height: 100svh; min-height: 620px; overflow: hidden; padding: 0;
  display: flex; flex-direction: column;
  background: linear-gradient(#fbf6ee 0%, #fbeef0 55%, #f9e4e9 100%);
}
.hello { text-align: center; padding: clamp(78px, 10vh, 96px) 16px 0; position: relative; z-index: 3; }
.hello > :not(.hello__script) { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.show .hello > * { opacity: 1; transform: none; }
.show .hello > :nth-child(2) { transition-delay: .9s; }
.show .hello > :nth-child(3) { transition-delay: 1.05s; }
.show .hello > :nth-child(4) { transition-delay: 1.25s; }
.show .hello > :nth-child(1) { transition-delay: .75s; }
.hello__eyebrow { margin: 0; font: 500 .72rem var(--caps); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.hello__script { margin: .2rem 0 -.3rem; font: 400 clamp(1.4rem, 3vw, 1.9rem) var(--script); color: var(--rose); }
.hello__name { font-size: clamp(2.6rem, 6.5vw, 4.4rem); letter-spacing: -.01em; }
.hello__roles { margin: .5rem 0 0; font: italic 400 clamp(1rem, 2.2vw, 1.25rem) var(--serif); color: var(--ink-soft); }
.hello__roles i { color: var(--rose); font-style: normal; padding: 0 .3em; }

.scene-wrap { position: relative; flex: 1; min-height: 280px; margin-top: 1.5vh; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }

/* phones: swipeable street */
.scene-wrap.pan { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.scene-wrap.pan::-webkit-scrollbar { display: none; }
.scene-wrap.pan .scene { right: auto; overflow: hidden; }
.swipe-hint {
  display: none; position: absolute; left: 50%; bottom: 18px; z-index: 6; margin: 0; transform: translateX(-50%);
  padding: .35rem 1rem; border-radius: 999px; background: rgba(255,253,249,.92); border: 1px solid var(--ink);
  font: italic 500 .95rem var(--hand); color: var(--ink); white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .6s;
}
.swipe-hint span { display: inline-block; color: var(--rose); animation: nudge 1.2s ease-in-out infinite alternate; }
.swipe-hint span:last-child { animation-direction: alternate-reverse; }
@media (max-width: 760px) { .swipe-hint { display: block; } }
.show .swipe-hint { opacity: 1; transition-delay: 2.4s; }
.show.swiped .swipe-hint { opacity: 0; transition-delay: 0s; }
@keyframes nudge { from { transform: translateX(-3px); } to { transform: translateX(3px); } }

/* scene drawing styles */
.scene .ink { stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.scene .hair { stroke: var(--ink); stroke-width: 1.4; fill: none; stroke-linecap: round; }
.scene .line { stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.scene .pane { fill: #fffaf3; transition: fill .4s; cursor: pointer; }
.scene .pane:hover, .scene .pane.lit { fill: #ffd9e2; }
.scene .glow { animation: glow 7s ease-in-out infinite; }
.scene .canopy-text { font: 600 17px var(--display); letter-spacing: .28em; fill: #fff; }
.scene .cloud { animation: drift linear infinite; }
.scene .flag { transform-box: fill-box; transform-origin: left center; animation: flag 1.6s ease-in-out infinite alternate; }
.scene .revolve { transform-box: fill-box; transform-origin: center; animation: revolve 3s linear infinite; }
.scene .lamp { animation: lamp 3s ease-in-out infinite alternate; }
.scene .entrance { cursor: pointer; }
.scene .entrance:hover .canopy { fill: #e9799a; }

.scene .flyer { animation: fly linear infinite; }
.scene .flap { transform-box: fill-box; transform-origin: center bottom; animation: flap .32s ease-in-out infinite alternate; }
.scene .bob { animation: birdbob 1.4s ease-in-out infinite alternate; }
.scene .percher { transform-box: fill-box; transform-origin: center bottom; animation: hop 5s ease-in-out infinite; cursor: pointer; }

.scene .walker { animation: stroll 34s linear infinite; }
.scene .stride { animation: bounce .45s ease-in-out infinite alternate; }
.scene .leg { transform-box: fill-box; transform-origin: top center; animation: step .45s ease-in-out infinite alternate; }
.scene .leg--b { animation-delay: -.45s; }
.scene .pup-leg { transform-box: fill-box; transform-origin: top center; animation: trot .3s ease-in-out infinite alternate; }
.scene .pup-leg--b { animation-delay: -.3s; }
.scene .blink { transform-box: fill-box; transform-origin: center; animation: blink 4.2s infinite; }
.scene .blink--pup { animation-delay: 1.7s; }
.scene .tongue { transform-box: fill-box; transform-origin: top center; animation: pant .28s ease-in-out infinite alternate; }
.scene .hairswish { transform-box: fill-box; transform-origin: top center; animation: swish .45s ease-in-out infinite alternate; }
.scene .arm { transform-box: fill-box; transform-origin: top right; animation: armswing .45s ease-in-out infinite alternate; }
.scene .tail { transform-box: fill-box; transform-origin: right bottom; animation: wag .25s ease-in-out infinite alternate; }

/* street extras */
.scene .plaque-text { font: italic 600 19px var(--display); }
.scene .plaque-text--stitches { font: 400 21px "DM Serif Display", var(--display); letter-spacing: -.02em; }
.scene .plaque-script { font: 400 26px var(--script); }
.suite .script-title { font: 400 2.6rem var(--script); }
.suite__tagline { font: 600 1.6rem/1.15 var(--display); color: #2B2B2B; margin: 0 auto .2rem !important; }
.suite__tagline em { display: block; color: #8C857A; font-weight: 400; }
.suite__script { font: italic 500 1.6rem var(--hand); color: #E86A9A; margin: 0 auto .8rem !important; }
.suite__quote { font-style: italic; color: var(--ink-soft); border-block: 1px solid currentColor; padding: .6rem 0; max-width: 20rem !important; }
#stitches .door__leaf {
  background:
    linear-gradient(var(--ink), var(--ink)) 50% 64px / 1px calc(100% - 92px) no-repeat,
    radial-gradient(ellipse 5px 5px, rgba(232,106,154,.55) 96%, transparent) 0 0 / 34px 30px,
    var(--door);
}
.scene .shop-sign { font: italic 600 40px var(--display); fill: #c2456b; }
.scene .bld-link { cursor: pointer; }
.scene .bld-link .plaque { transform-box: fill-box; transform-origin: center; transition: transform .4s var(--bounce); }
.scene .bld-link:hover .plaque, .scene .bld-link:focus-visible .plaque { transform: scale(1.08) rotate(-2deg); }
.scene .bld-link:focus-visible { outline: none; }
.scene .bld-link:focus-visible .plaque rect:first-child { stroke: var(--rose); stroke-width: 4; }
.scene .wisteria { transform-box: fill-box; transform-origin: top center; animation: sway 3.5s ease-in-out infinite alternate; }
.scene .heart { transform-box: fill-box; transform-origin: center; animation: floaty 2.8s ease-in-out infinite; }
.scene .bellswing { transform-box: fill-box; transform-origin: top center; animation: bellswing 2.4s ease-in-out infinite alternate; }

/* storybook magic */
.scene .note { transform-box: fill-box; transform-origin: center; opacity: 0; animation: note 5.5s ease-out infinite; font-family: var(--serif); }
.scene .flit { animation: flit ease-in-out infinite; }
.scene .wing { transform-box: fill-box; transform-origin: right center; animation: wing .22s ease-in-out infinite alternate; }
.scene .wing--r { transform-origin: left center; }
.scene .twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle ease-in-out infinite; }
.ink-letter { opacity: 0; display: inline-block; transform: translateY(6px) rotate(-6deg); transition: opacity .5s, transform .6s var(--bounce); white-space: pre; }
.show .ink-letter { opacity: 1; transform: none; }
.dust { position: fixed; z-index: 60; pointer-events: none; font-size: 14px; transform: translate(-50%, -50%); animation: dust 1s ease-out forwards; }
.dust--burst { font-size: 18px; animation: burst 2s var(--ease) forwards; }
.suite__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.footer__links--small { margin-top: .5rem; font-size: .95rem; }
.footer__end { margin: 1.2rem 0 0; font: 400 1.5rem var(--script); color: var(--pink); }
.bell .seal { fill: var(--rose); stroke: none; }
.bell { fill: #fffdf9; }

/* ---------- Curtains + key tag ---------- */
.valance {
  position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 22;
  background:
    radial-gradient(ellipse 50% 100% at 50% 0, #e98ea8 96%, transparent 100%) 0 0 / 120px 40px repeat-x,
    linear-gradient(#e98ea8, #e98ea8) 0 0 / 100% 12px no-repeat;
  filter: drop-shadow(0 1px 0 var(--ink)) drop-shadow(0 6px 0 var(--gold));
}
.curtain {
  position: absolute; top: 0; bottom: 0; width: 51%; z-index: 20;
  background:
    repeating-linear-gradient(90deg, rgba(31,26,28,.18) 0 1px, transparent 1px 4.5%),
    repeating-linear-gradient(90deg, #f3b3c5 0, #f9d0dc 2.2%, #f3b3c5 3.6%, #e491aa 4.5%);
  transition: transform 2.2s var(--ease);
  border-bottom: 10px solid transparent;
  border-image: repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 5px) 10;
}
.curtain--left { left: 0; transform-origin: left center; border-right: 1px solid var(--ink); }
.curtain--right { right: 0; transform-origin: right center; border-left: 1px solid var(--ink); }
.show .curtain--left, .show .curtain--right { transform: scaleX(.1); }
@media (max-width: 720px) { .show .curtain--left, .show .curtain--right { transform: scaleX(.06); } }
.tassel {
  position: absolute; top: 56%; left: -40%; right: -40%; height: 12px;
  background: var(--gold); border: 1px solid var(--ink); border-radius: 8px;
  opacity: 0; transition: opacity .5s 1.8s;
}
.show .tassel { opacity: 1; }

.keytag {
  position: absolute; left: 50%; top: 0; z-index: 25; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; justify-items: center; transform: translateX(-50%);
  transform-origin: top center; animation: swing 2.6s ease-in-out infinite alternate;
  transition: opacity .5s, top .7s var(--ease);
}
.show .keytag { opacity: 0; top: -420px; pointer-events: none; }
.keytag__ring { width: 2px; height: 24vh; background: var(--gold); }
.keytag__tag {
  position: relative; display: grid; justify-items: center; gap: .1rem;
  width: 190px; padding: 1.6rem 1rem 1.2rem; border-radius: 95px 95px 95px 95px / 120px 120px 70px 70px;
  background: var(--paper); border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--rose), 0 10px 24px rgba(31,26,28,.25);
  font: italic 400 1.35rem var(--display); color: var(--ink);
}
.keytag__tag::before { content: ""; position: absolute; top: 9px; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--ink); background: var(--paper-2); }
.keytag__tag small { font: 500 .62rem var(--caps); font-style: normal; letter-spacing: .3em; text-transform: uppercase; color: var(--rose); margin-top: .3rem; }
.keytag__tag em { font: italic 500 1.2rem var(--hand); color: var(--rose); }

/* ---------- Ribbon ---------- */
.ribbon { overflow: hidden; background: var(--ink); color: var(--paper); padding: .7rem 0; border-block: 3px double var(--paper); }
.ribbon__track { display: flex; gap: 2.2rem; width: max-content; animation: ribbon 40s linear infinite; font: 500 .8rem var(--caps); letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.ribbon__track span:nth-child(even) { color: var(--pink); }

/* ---------- Shared ---------- */
section { padding: clamp(4.5rem, 10vw, 8rem) 16px; scroll-margin-top: 64px; }
.floor-tag {
  display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 0 2.6rem;
  font: 500 .75rem var(--caps); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft);
}
.floor-tag::before, .floor-tag::after { content: ""; width: 48px; height: 7px; border-block: 1px solid var(--rose); }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 500 .78rem var(--caps); letter-spacing: .2em; text-transform: uppercase;
  padding: .95em 1.7em; border: 1px solid var(--ink); border-radius: 999px;
  transition: background .35s, color .35s, transform .35s var(--bounce);
}
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--rose); border-color: var(--rose); }
.btn--line { background: transparent; }
.btn--line:hover { background: var(--blush); }
.btn--pink { background: var(--pink); color: var(--ink); }
.btn--pink:hover { background: var(--rose); color: #fff; }

/* ---------- Lobby: stationery on striped wallpaper ---------- */
.lobby { background: repeating-linear-gradient(90deg, #fbe1e8 0 28px, #fffaf6 28px 56px); }
.letter {
  position: relative; max-width: 620px; margin: 0 auto; background: #fffdf9;
  padding: clamp(2rem, 6vw, 3.6rem); border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 8px #fffdf9, inset 0 0 0 9px var(--pink), 0 18px 40px rgba(31,26,28,.14);
}
.letter__head { text-align: center; border-bottom: 1px solid var(--ink); padding-bottom: 1.1rem; margin-bottom: 1.6rem; }
.letter__crest {
  display: inline-grid; place-content: center; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--ink); font: italic 400 1.3rem var(--display); color: var(--ink); letter-spacing: -.02em;
}
.letter__name { margin: .5rem 0 0; font: 400 1.5rem var(--display); letter-spacing: .32em; text-transform: uppercase; }
.letter__place { margin: 0; font: 500 .68rem var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.portrait { float: right; margin: 0 0 1rem 1.4rem; shape-outside: ellipse(); }
.portrait__frame {
  width: 140px; height: 176px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  border: 1px solid var(--ink); box-shadow: inset 0 0 0 6px #fffdf9, inset 0 0 0 7px var(--gold);
  background: linear-gradient(160deg, var(--blush), #f6d3dd); font: italic 500 1.2rem/1.1 var(--hand); color: var(--rose);
}
@media (max-width: 520px) { .portrait { float: none; margin: 0 auto 1.2rem; display: grid; justify-content: center; } }
.letter__hand { font: 400 1.8rem var(--script); color: var(--rose); margin: 0 0 .6rem; }
.letter p { margin: 0 0 1rem; }
.letter__sign { margin-top: 1.6rem !important; font-style: italic; }
.letter__sign span { font: 400 3.2rem/1 var(--script); color: var(--rose); }
.office__say { margin: .2rem 0 0; font: italic 400 1rem var(--serif); color: var(--muted); }

/* ---------- Office: polished, professional ---------- */
.office { background: var(--paper); }
.office__frame {
  position: relative; max-width: 1080px; margin: 0 auto; background: #fffdf9;
  border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 6px;
  padding: clamp(2rem, 5vw, 3.6rem);
}
.office__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 820px) { .office__grid { grid-template-columns: 1fr; } }
.office h2 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.office__title { margin: .6rem 0 0; font: italic 400 1.3rem var(--display); color: var(--rose); }
.office__loc { margin: .1rem 0 1.2rem; font: 500 .7rem var(--caps); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.office__summary { margin: 0 0 .8rem; max-width: 30rem; }
.office__ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.career { list-style: none; margin: 0; padding: 0; }
.career li { padding: 0 0 1.3rem 1.6rem; border-left: 1px solid var(--ink); position: relative; }
.career li:last-child { padding-bottom: 0; }
.career li::before {
  content: ""; position: absolute; left: -6px; top: .45rem; width: 11px; height: 11px; transform: rotate(45deg);
  background: var(--pink); border: 1px solid var(--ink);
}
.career__dates { font: 500 .68rem var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.career h3 { font-size: 1.35rem; margin-top: .15rem; }
.career p { margin: .1rem 0 0; }
.career__org { font-style: italic; color: var(--ink-soft); }
.skills { list-style: none; padding: 1.6rem 0 0; margin: 2.2rem 0 0; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: .5rem; }
.skills li { font: 500 .72rem var(--caps); letter-spacing: .16em; text-transform: uppercase; padding: .45em 1em; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); }
.skills li.todo { font-style: normal; border-style: dashed; border-color: var(--rose); }

/* a little bird perched on the frame */
.perch {
  position: absolute; top: -34px; right: 12%; width: 42px; height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 34'%3E%3Cpath d='M8 22c0-8 6-13 14-13 4-6 12-6 14 0l5 2-5 2c0 10-8 17-18 17H4l6-4c-1-1-2-2-2-4z' fill='%23f2a7bb' stroke='%231f1a1c' stroke-width='1.6' stroke-linejoin='round'/%3E%3Ccircle cx='30' cy='9' r='1.4' fill='%231f1a1c'/%3E%3Cpath d='M14 20c4 3 9 3 12 0' fill='none' stroke='%231f1a1c' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M18 33v-4M24 33v-4' stroke='%231f1a1c' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat center / contain;
  transform-origin: bottom center; animation: hop 4s ease-in-out infinite;
}

/* ---------- Suites: doors that swing open ---------- */
.suites {
  background:
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(217,88,123,.14) 22px 23px),
    repeating-linear-gradient(-45deg, transparent 0 22px, rgba(217,88,123,.14) 22px 23px),
    var(--blush);
}
.suites__title { text-align: center; font: italic 400 clamp(1.6rem, 4vw, 2.4rem) var(--display); max-width: 30rem; margin: -1rem auto 3.4rem; }
.suites__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 3rem; max-width: 900px; margin: 0 auto; }
.suite { text-align: center; scroll-margin-top: 90px; }
.suite h3 { font-size: 2rem; margin-top: 1.6rem; }
.suite__kind { margin: .2rem 0 .8rem; font: 500 .7rem var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--door-ink, var(--rose)); }
.suite p { margin: 0 auto 1.4rem; max-width: 24rem; }
.door {
  position: relative; display: block; width: 200px; height: 300px; margin: 0 auto; perspective: 900px;
  border: 1px solid var(--ink); border-radius: 100px 100px 0 0; background: #fffdf9;
  box-shadow: 0 0 0 8px #fffdf9, 0 0 0 9px var(--ink), 0 22px 0 -10px var(--ink);
  text-decoration: none;
}
.door__room {
  position: absolute; inset: 0; border-radius: 100px 100px 0 0; overflow: hidden;
  display: grid; place-content: center; justify-items: center; gap: .3rem;
  background: radial-gradient(circle at 50% 40%, #fff6e2, var(--blush));
  font: italic 500 1.3rem var(--hand); color: var(--rose);
}
.door__room svg { width: 110px; }
.ink-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pink-fill { fill: var(--pink); }
.door__leaf {
  position: absolute; inset: 0; border-radius: 100px 100px 0 0; transform-origin: left center;
  background:
    linear-gradient(var(--ink), var(--ink)) 50% 64px / 1px calc(100% - 92px) no-repeat,
    var(--door, #f0a0b6);
  border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 14px var(--door, #f0a0b6), inset 0 0 0 15px var(--ink);
  transition: transform 1.1s var(--ease);
}
.door:hover .door__leaf, .door:focus-visible .door__leaf, .suite.peek .door__leaf { transform: rotateY(-78deg); }
.door__plate {
  position: absolute; top: 42px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-content: center;
  background: radial-gradient(circle at 35% 30%, #f5e2b5, var(--gold)); border: 1px solid var(--ink);
  font: 600 1.05rem var(--display);
}
.door__knob { position: absolute; right: 26px; top: 56%; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 1px solid var(--ink); }
.door__sign {
  position: absolute; right: 8px; top: 60%; width: 74px; padding: .3rem .2rem; transform: rotate(-6deg);
  background: #fffdf9; border: 1px solid var(--ink); border-radius: 6px;
  font: italic 500 .95rem/1 var(--hand); color: var(--rose); text-align: center;
  transform-origin: top center; animation: dangle 3s ease-in-out infinite alternate;
}
.door__sign::before { content: ""; position: absolute; left: 50%; top: -14px; width: 1px; height: 14px; background: var(--ink); transform: rotate(-20deg); }

/* ---------- Houses: storefronts with window displays ---------- */
.house--stitches {
  --wall: #F4EFE7; --roof: #E86A9A; --trim: #E86A9A; --brand: #2B2B2B; --brand-2: #8C857A; --shutter: #E86A9A; --soft: #F4EFE7; --accent: #E86A9A;
  background: repeating-linear-gradient(90deg, #F4EFE7 0 26px, #FBF9F6 26px 52px);
}
.house--ido {
  --wall: #f3ece2; --roof: #b7a097; --trim: #c2a67c; --brand: #2c2825; --brand-2: #8c7268; --shutter: #b7a097; --soft: #f3ece2; --accent: #e6d6cc;
  background: repeating-linear-gradient(90deg, #f1e9e4 0 26px, #fbf6ee 26px 52px);
}
.facade { position: relative; max-width: 1000px; margin: 0 auto; scroll-margin-top: 90px; }
.facade__roof {
  position: relative; height: 70px; margin: 0 -14px; background: var(--roof);
  border: 1.5px solid var(--ink); border-radius: 10px 10px 0 0;
  clip-path: polygon(4% 100%, 9% 0, 91% 0, 96% 100%);
  background-image: radial-gradient(circle at 10px 0, transparent 9px, rgba(255,255,255,.18) 10px 11px, transparent 12px);
  background-size: 20px 14px;
}
.facade__hoop, .facade__bell {
  position: absolute; left: 50%; top: 10px; width: 50px; height: 50px; margin-left: -25px; border-radius: 50%;
  background: #fffdf9; border: 1.5px solid var(--ink); box-shadow: inset 0 0 0 5px var(--trim);
}
.facade__hoop::after { content: "✕ ✕\A✕ ✕"; white-space: pre; position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font: 10px/1.1 var(--caps); color: var(--roof); }
.facade__bell { background: radial-gradient(circle at 50% 75%, var(--trim) 9px, #fffdf9 10px); animation: dangle 2.4s ease-in-out infinite alternate; transform-origin: top center; }
.facade__awning {
  height: 34px; position: relative; z-index: 1;
  background: repeating-linear-gradient(90deg, var(--roof) 0 26px, #fffdf9 26px 52px);
  border: 1.5px solid var(--ink); border-top: 0;
  -webkit-mask: radial-gradient(circle at 13px 22px, #000 12px, transparent 13px) 0 0 / 26px 100% repeat-x, linear-gradient(#000, #000) 0 0 / 100% 22px no-repeat;
          mask: radial-gradient(circle at 13px 22px, #000 12px, transparent 13px) 0 0 / 26px 100% repeat-x, linear-gradient(#000, #000) 0 0 / 100% 22px no-repeat;
}
.facade__body {
  margin-top: -20px; padding: 3.4rem clamp(1.2rem, 5vw, 3.4rem) 0; text-align: center;
  background: var(--wall); border: 1.5px solid var(--ink); border-top: 0;
  box-shadow: 0 10px 0 -2px #efe3d8, 0 10px 0 -.5px var(--ink);
}
.house--stitches .facade__body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='110' viewBox='0 0 120 110'%3E%3Cg opacity='.16'%3E%3Cpath d='M22 18h12l4 5-10 11-10-11z' fill='%23E86A9A'/%3E%3Cpath d='M86 70c-3-3-1-7 3-7 2 0 3 1 4 3 1-2 2-3 4-3 4 0 6 4 3 7l-7 7z' fill='%232F6FD6'/%3E%3Cpath d='M70 20l4-4 4 4-4 4z M30 84l3-3 3 3-3 3z' fill='%23D9D3C7'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 170px 150px,
    var(--wall);
}
.facade__sign {
  display: inline-block; padding: .3em 1.4em; background: #fffdf9; border: 1.5px solid var(--ink); border-radius: 999px;
  box-shadow: inset 0 0 0 5px #fffdf9, inset 0 0 0 6px var(--trim);
  font: 700 clamp(1.4rem, 4vw, 2.1rem) var(--display); color: var(--brand); letter-spacing: .08em; text-transform: uppercase;
}
.facade__sign--gem { position: relative; font: 400 clamp(2.4rem, 7vw, 3.6rem)/1 "DM Serif Display", var(--display); text-transform: none; letter-spacing: -.035em; color: #2B2B2B; padding: .18em .9em .26em; box-shadow: inset 0 0 0 5px #fffdf9, inset 0 0 0 6px #E86A9A; }
.jgems { position: absolute; inset: 0; pointer-events: none; }
.jgem { position: absolute; filter: drop-shadow(0 4px 5px rgba(40,30,20,.25)); animation: jfloat 4.6s ease-in-out infinite; }
.jgem--a { width: 34px; left: -18px; top: -16px; transform: rotate(-12deg); }
.jgem--b { width: 34px; right: -20px; top: -10px; animation-delay: -1.4s; }
.jgem--c { width: 26px; right: 14%; bottom: -14px; animation-delay: -2.2s; }
.jgem--d { width: 22px; left: 16%; bottom: -12px; animation-delay: -3s; }
.jgem--e { width: 20px; left: 46%; top: -14px; animation-delay: -.7s; }
.jglint { position: absolute; color: #fff; font-size: 16px; text-shadow: 0 0 6px #fff, 0 0 2px #E86A9A; animation: jtwinkle 2.6s ease-in-out infinite; }
.jglint--a { left: -6px; top: -10px; }
.jglint--b { right: -4px; top: -4px; animation-delay: -1.3s; }
@keyframes jfloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes jtwinkle { 0%,55%,100% { transform: scale(0) rotate(0); opacity: 0; } 70% { transform: scale(1.2) rotate(45deg); opacity: 1; } 85% { transform: scale(.2) rotate(90deg); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .jgem, .jglint { animation: none; } .jglint { opacity: 0; } }
.house--ido .facade__sign { font: 400 clamp(2.2rem, 6vw, 3rem) var(--script); text-transform: none; letter-spacing: 0; padding: .1em 1.1em; }
.facade__kind { margin: 1rem 0 .4rem; font: 500 .72rem var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--brand-2); }
.facade__tagline { margin: .2rem auto 0; max-width: 34rem; font: 600 clamp(1.4rem, 3.4vw, 1.9rem)/1.2 var(--display); color: var(--brand); }
.facade__tagline em { color: var(--brand-2); font-weight: 400; }
.house--stitches .facade__tagline em { display: block; }
.house--ido .facade__tagline { font-size: clamp(1.2rem, 2.8vw, 1.5rem); }
.facade__script { margin: .2rem 0 0; font: 400 1.8rem var(--script); color: var(--trim); }
.facade__note { margin: 1rem auto 0; max-width: 32rem; }
.facade__quote { margin: 1rem auto 0; max-width: 26rem; font-style: italic; color: var(--ink-soft); border-block: 1px solid var(--trim); padding: .6rem 0; }
.facade__door { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; padding: 1.6rem 0 2.6rem; }
.btn--brand { background: var(--brand); color: #fffdf9; border-color: var(--brand); }
.btn--brand:hover { background: var(--trim); border-color: var(--trim); color: var(--ink); }

.displays { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2.6rem 1.4rem; margin: 2.4rem 0 2.4rem; }
.display {
  position: relative; height: 300px; padding: 0; cursor: pointer; overflow: visible;
  background: #fffdf9; border: 1.5px solid var(--ink); border-radius: 4px;
  box-shadow: inset 0 0 0 6px #e3c27a, inset 0 0 0 7.5px var(--ink), inset 0 0 0 10px #fffdf9, 0 14px 30px -14px rgba(31,26,28,.5);
}
.display::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 10px; height: 26px; z-index: 3;
  background: radial-gradient(ellipse 50% 100% at 50% 0, var(--shutter) 96%, transparent 100%) 0 0 / 34px 26px repeat-x;
  filter: drop-shadow(0 1px 0 var(--ink)) drop-shadow(0 3px 0 var(--trim));
}
.display__inside {
  position: absolute; inset: 10px; overflow: hidden;
  display: grid; place-content: center; justify-items: center; gap: .3rem; padding: 1.4rem .6rem 0; text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0, rgba(255,246,214,.95), transparent 70%),
    linear-gradient(transparent 74%, rgba(31,26,28,.08) 74%, rgba(31,26,28,.04)),
    #f7ece4;
}
.display__inside svg { width: 84px; filter: drop-shadow(0 6px 4px rgba(31,26,28,.18)); transition: transform .8s var(--bounce); }
.display__inside svg::after { content: ""; }
.display.open .display__inside svg, .display:hover .display__inside svg { transform: translateY(-4px) scale(1.06); }
.display__inside strong { font: 600 1.05rem/1.2 var(--display); color: var(--brand); padding: 0 1.4rem; }
.display__inside > span { font: italic 500 .95rem/1.25 var(--hand); color: var(--brand-2); padding: 0 1.6rem; }
.display__inside::after {
  content: ""; position: absolute; left: 50%; bottom: 14%; width: 96px; height: 18px; margin-left: -48px; z-index: -0;
  background: radial-gradient(ellipse at 50% 50%, rgba(31,26,28,.14), transparent 70%);
}
.display__mono { font: italic 600 26px var(--display); fill: var(--brand); }
.fill-soft { fill: var(--soft); }
.fill-accent { fill: var(--accent); }
/* velvet curtains that part to reveal the display */
.display .shutter {
  position: absolute; top: 10px; bottom: 10px; width: calc(50% - 10px); z-index: 2;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.16) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, var(--shutter) 0, color-mix(in srgb, var(--shutter) 75%, #fff) 6px, var(--shutter) 12px);
  border: 1px solid var(--ink); transition: transform 1.4s var(--ease);
}
.display .shutter--l { left: 10px; transform-origin: left center; border-left: 0; }
.display .shutter--r { right: 10px; transform-origin: right center; border-right: 0; }
.display .shutter::after {
  content: ""; position: absolute; top: 55%; width: 140%; height: 7px; border-radius: 4px; opacity: 0;
  background: var(--trim); border: 1px solid var(--ink); transition: opacity .4s .9s;
}
.display .shutter--l::after { left: -20%; }
.display .shutter--r::after { right: -20%; }
.display:hover .shutter, .display:focus-visible .shutter, .display.open .shutter { transform: scaleX(.16); }
.display:hover .shutter::after, .display.open .shutter::after { opacity: 1; }
.flowerbox {
  position: absolute; left: -12px; right: -12px; bottom: -18px; height: 18px;
  background: linear-gradient(#3a3335, #1f1a1c); border: 1.5px solid var(--ink); border-radius: 2px;
}
.flowerbox::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: -6px; height: 5px; background: var(--trim); border: 1px solid var(--ink); border-radius: 2px;
}
@media (max-width: 600px) {
  .displays, .displays--three { grid-template-columns: repeat(2, 1fr); gap: 2.2rem .9rem; }
  .display { height: 230px; }
  .displays--three .display:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - .45rem); }
  .display__inside svg { width: 52px; }
  .display__inside strong { font-size: .92rem; }
  .display__inside > span { font-size: .88rem; padding: 0 .9rem; }
  .display__inside strong { padding: 0 .8rem; }
}
.house--ido .flowerbox::after {
  background:
    radial-gradient(circle, #fffdf9 4px, transparent 5px) 0 0 / 22px 14px,
    radial-gradient(circle, #b5c4a8 5px, transparent 6px) 11px 4px / 22px 14px;
}

.facade__motto { margin: -.2rem 0 .4rem; font: 400 2rem var(--script); color: var(--brand-2); }
.portrait__frame { position: relative; overflow: hidden; }
.portrait figcaption { text-align: center; font: italic 500 1.2rem var(--hand); color: var(--rose); }
.office__quote {
  position: relative; margin: 1.6rem 0 0; padding: .2rem 0 .2rem 1.4rem; max-width: 26rem;
  border-left: 2px solid var(--rose); font: italic 400 1.45rem/1.35 var(--display); color: var(--ink);
}
.office__quote::before { content: "\201C"; position: absolute; left: -.2rem; top: -1.6rem; font: italic 400 3.6rem/1 var(--display); color: var(--pink); }
.office__sub { margin: 2.6rem 0 1rem; padding-top: 1.6rem; border-top: 1px solid var(--ink); font: italic 400 1.8rem var(--display); }
.traits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }
.traits li { background: var(--paper); border: 1px solid var(--ink); border-radius: 10px; padding: .9rem 1rem; font-size: 1rem; line-height: 1.45; }
.traits strong { display: block; font: 600 1.1rem var(--display); color: var(--rose); margin-bottom: .2rem; }
.toolkit { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.toolkit h4 { margin: 0 0 .5rem; font: 500 .7rem var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.toolkit .skills { margin: 0; padding: 0; border: 0; }
.office__built { margin: 2rem 0 0; font: italic 500 1.3rem var(--hand); color: var(--rose); text-align: center; }
.register__mail { margin: -1.4rem 0 1.6rem; font-size: 1rem; }
.register__mail a { color: var(--rose); }

/* ---------- Same girl, different hats ---------- */
.persona { margin: 0; text-align: center; }
.persona__frame {
  position: relative; width: 170px; height: 196px; margin: 0 auto; overflow: hidden;
  border: 1px solid var(--ink); border-radius: 85px 85px 6px 6px;
  box-shadow: inset 0 0 0 6px #fffdf9, inset 0 0 0 7px #e3c27a;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, #fffaf0, var(--persona-bg, #fbe7ee));
}
.persona__svg { inset: 10px 8px 4px; width: calc(100% - 16px); height: calc(100% - 14px); }
.persona figcaption { margin-top: .4rem; font: 400 1.6rem/1 var(--script); color: var(--persona-ink, var(--rose)); }
.persona--office { float: right; margin: 0 0 1rem 1.4rem; --persona-bg: #f6dbe4; }
.persona--stitches { margin: 1.8rem auto 0; --persona-bg: #EFE9DF; --persona-ink: #2B2B2B; }
.persona--ido { margin: 1.8rem auto 0; --persona-bg: #ece2da; --persona-ink: #8c7268; }
@media (max-width: 600px) { .persona--office { float: none; margin: 0 auto 1.4rem; } }
.scene .idle { animation: idlebob 2.6s ease-in-out infinite alternate; }
.scene .steam { opacity: 0; animation: steam 2.4s ease-out infinite; }
.scene .steam--b { animation-delay: 1.2s; }
.scene .zz { opacity: 0; animation: zz 3s ease-out infinite; }
.scene .zz--b { animation-delay: 1.5s; }
.scene .lamp-glow { animation: lamp 2.6s ease-in-out infinite alternate; }
@keyframes idlebob { from { transform: translateY(0); } to { transform: translateY(-1.6px); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -12px); } }

/* ---------- Front desk ---------- */
.desk { background: var(--paper); }
.register {
  max-width: 560px; margin: 0 auto; background: #fffdf9; text-align: center;
  padding: clamp(2rem, 6vw, 3.4rem); border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 8px #fffdf9, inset 0 0 0 9px var(--ink), 10px 10px 0 var(--pink);
}
.register h2 { font: italic 400 clamp(2.2rem, 5vw, 3rem) var(--display); }
.register__note { margin: .3rem 0 2rem; font: italic 500 1.35rem var(--hand); color: var(--rose); }
form { display: grid; gap: 1.3rem; text-align: left; }
label { display: grid; gap: .2rem; font: 500 .68rem var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
input, textarea {
  font: 400 1.15rem var(--serif); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); padding: .4rem 0; border-radius: 0;
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-bottom: 2px solid var(--rose); }
.bell-btn {
  justify-self: center; display: grid; justify-items: center; gap: .3rem; cursor: pointer;
  background: none; border: 0; padding: .4rem 1rem;
  font: 500 .72rem var(--caps); letter-spacing: .26em; text-transform: uppercase;
}
.bell { width: 64px; fill: var(--gold); stroke: var(--ink); stroke-width: 1.5; transform-origin: bottom center; transition: transform .3s var(--bounce); }
.bell-btn:hover .bell { transform: rotate(-6deg) scale(1.05); }
.bell-btn.ding .bell { animation: ding .6s ease-in-out; }
.form-status { text-align: center; margin: 0; min-height: 1.6em; font: italic 500 1.35rem var(--hand); }
.form-status.error { color: var(--rose); }
.form-status.success { color: #5f8a55; }

.register { max-width: 860px; }
.door-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.4rem; margin: 2rem 0 1.6rem; }
.door-btn {
  --door: #3f5f87; display: grid; justify-items: center; gap: .35rem; text-decoration: none; color: var(--ink);
  padding: 1.4rem 1rem 1.2rem; border: 1px solid var(--ink); border-radius: 14px; background: #fffdf9;
  transition: transform .4s var(--bounce), box-shadow .4s;
}
.door-btn--stitches { --door: #E86A9A; }
.door-btn--ido { --door: #b7a097; }
.door-btn:hover, .door-btn:focus-visible { transform: translateY(-5px); box-shadow: 0 14px 24px -14px rgba(31,26,28,.45); }
.door-btn__door {
  position: relative; width: 58px; height: 84px; border-radius: 29px 29px 3px 3px; margin-bottom: .5rem;
  background: var(--door); border: 1.5px solid var(--ink); box-shadow: inset 0 0 0 6px var(--door), inset 0 0 0 7px rgba(255,255,255,.4);
  transform-origin: left center; transition: transform .7s var(--ease);
}
.door-btn:hover .door-btn__door, .door-btn:focus-visible .door-btn__door { transform: perspective(300px) rotateY(-35deg); }
.door-btn__knob { position: absolute; right: 9px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: #c9a24a; border: 1px solid var(--ink); }
.door-btn strong { font: 600 1.15rem/1.25 var(--display); }
.door-btn > span:last-child { font: 500 .66rem var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.register__mail { margin: 0; font-size: 1rem; }
.register__mail a { display: inline-block; padding: .5rem 0; }

.quiz { margin: 1.8rem 0 1.4rem; }
.quiz__q { display: grid; gap: .8rem; max-width: 520px; margin: 0 auto; }
.quiz__a {
  display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; cursor: pointer;
  padding: 1rem 1.2rem; background: #fffdf9; border: 1px solid var(--ink); border-radius: 14px;
  font: 500 1.15rem/1.3 var(--display); color: var(--ink);
  transition: transform .35s var(--bounce), background .3s, box-shadow .3s;
}
.quiz__a:hover, .quiz__a:focus-visible { transform: translateY(-3px) rotate(-.4deg); background: var(--blush); box-shadow: 0 12px 20px -14px rgba(31,26,28,.5); }
.quiz__emoji { font-size: 1.5rem; }
.quiz__result { text-align: center; animation: quizpop .7s var(--bounce); }
.quiz__frame { --persona-bg: #f6dbe4; }
.quiz__result--maker .quiz__frame { --persona-bg: #e9e4cf; }
.quiz__result--storyteller .quiz__frame { --persona-bg: #ece2da; }
.quiz__kicker { margin: 1rem 0 0; font: 500 .7rem var(--caps); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.quiz__title { font: 400 2.6rem/1.1 var(--script); color: var(--rose); margin: .1rem 0 .4rem; }
.quiz__result--maker .quiz__title { color: #C2457A; }
.quiz__result--storyteller .quiz__title { color: #8c7268; }
.quiz__line { max-width: 26rem; margin: 0 auto 1.2rem; }
.quiz__cta { margin-bottom: .6rem; }
.quiz__again { display: block; margin: .4rem auto 0; background: none; border: 0; cursor: pointer; padding: .5rem; font: italic 500 1rem var(--hand); color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
.quiz__skip { margin: 0 0 .6rem; font-size: .98rem; color: var(--muted); }
.quiz__skip a { color: var(--ink); display: inline-block; padding: .4rem .1rem; }
@media (max-width: 520px) {
  .floor-tag { letter-spacing: .2em; font-size: .68rem; gap: .6rem; text-align: center; }
  .floor-tag::before, .floor-tag::after { width: 24px; flex: none; }
}
@media (max-width: 420px) {
  .register { padding: 1.8rem 1.1rem; }
  .register h2 { font-size: 1.85rem; }
  .register__note { font-size: 1.05rem; margin-bottom: 1.2rem; }
  .quiz__a { font-size: 1.02rem; padding: .85rem .9rem; gap: .7rem; }
  .quiz__title { font-size: 2.2rem; }
}
@keyframes quizpop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 3rem 16px 2.4rem; background: var(--ink); color: var(--paper); border-top: 3px double var(--paper); }
.footer__crest { margin: 0 0 .6rem; font: 400 2.6rem/1.2 var(--script); }
.footer__links { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1rem; font-style: italic; }
.footer__links a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; display: inline-block; padding: .55rem .1rem; }
.footer__links a:hover { color: var(--pink); border-color: var(--pink); }
.footer__links i { color: var(--pink); font-style: normal; }
.footer__small { margin: 1rem 0 0; font: 500 .66rem var(--caps); letter-spacing: .26em; text-transform: uppercase; opacity: .65; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: perspective(1200px) rotateX(14deg) translateY(40px); transform-origin: top center; transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* tall blocks slide up instead of tilting, so they never spill over their neighbours */
.office__frame.reveal:not(.in), .facade.reveal:not(.in), .letter.reveal:not(.in), .register.reveal:not(.in) { transform: translateY(40px); }
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

/* ---------- Keyframes ---------- */
@keyframes swing { from { transform: translateX(-50%) rotate(-3deg); } to { transform: translateX(-50%) rotate(3deg); } }
@keyframes ribbon { to { transform: translateX(-50%); } }
@keyframes drift { from { transform: translateX(-260px); } to { transform: translateX(1700px); } }
@keyframes flag { from { transform: skewY(-6deg) scaleX(.94); } to { transform: skewY(5deg) scaleX(1); } }
@keyframes revolve { 0% { transform: scaleX(1); } 50% { transform: scaleX(.15); } 100% { transform: scaleX(1); } }
@keyframes lamp { from { opacity: .55; } to { opacity: 1; } }
@keyframes glow { 0%, 60%, 100% { fill: #fffaf3; } 70%, 90% { fill: #ffe0b8; } }
@keyframes fly { from { transform: translate(-120px, 0); } to { transform: translate(1640px, -60px); } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.7); } }
@keyframes birdbob { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
@keyframes hop { 0%, 70%, 100% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-8px) rotate(-4deg); } 80% { transform: translateY(0); } 86% { transform: rotate(10deg); } 92% { transform: rotate(0); } }
@keyframes stroll { from { transform: translateX(-260px); } to { transform: translateX(1720px); } }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-2.5px); } }
@keyframes step { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes trot { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
@keyframes wag { from { transform: rotate(-18deg); } to { transform: rotate(14deg); } }
@keyframes dangle { from { transform: rotate(-8deg); } to { transform: rotate(4deg); } }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes floaty { 0% { transform: translateY(0) scale(.8); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-50px) scale(1.1); opacity: 0; } }
@keyframes bellswing { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@keyframes note { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 15% { opacity: 1; } 60% { opacity: 0; transform: translate(14px, -46px) rotate(14deg); } 100% { opacity: 0; transform: translate(14px, -46px); } }
@keyframes flit { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(50px, -40px); } 40% { transform: translate(110px, -10px); } 60% { transform: translate(70px, 36px); } 80% { transform: translate(-20px, 20px); } }
@keyframes wing { from { transform: scaleX(1); } to { transform: scaleX(.25); } }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@keyframes dust { to { transform: translate(-50%, 10px) scale(.2) rotate(120deg); opacity: 0; } }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 60px)) scale(1) rotate(160deg); opacity: 0; } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes pant { from { transform: scaleY(.7); } to { transform: scaleY(1.15); } }
@keyframes swish { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes armswing { from { transform: rotate(-14deg); } to { transform: rotate(12deg); } }
@keyframes ding { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scene .walker { transform: translateX(980px); }
  .scene .flyer, .scene .cloud { transform: none; }
}

/* ---------- Brand refresh (Nov 2026): Stitches v3 + real I Do logo ---------- */
.house--stitches {
  --wall: #F4EFE7; --roof: #0E4A38; --trim: #C49A64; --brand: #1F1D24; --brand-2: #0E4A38; --shutter: #0E4A38; --soft: #FBF9F6; --accent: #C49A64;
  background: radial-gradient(circle, rgba(14,74,56,.10) 3px, transparent 4px) 0 0 / 30px 30px, #F4EFE7;
}
.house--stitches .facade__awning { background: url('brand/zebra-sq.svg') 0 0 / 180px auto, #FBF9F6; }
.house--stitches .facade__roof { background-color: #0E4A38; }
.house--stitches .facade__hoop::after { color: #0E4A38; }
.house--stitches .facade__body { background: #FBF9F6; }
.house--stitches .display .shutter { background: repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 1px, transparent 1px 12px), url('brand/cheetah-tile.svg') 0 0 / 120px auto, #C49A64; }
.house--stitches .flowerbox { background: linear-gradient(#14614b, #0E4A38); }
.facade__sign--gem { box-shadow: inset 0 0 0 5px #fffdf9, inset 0 0 0 6px #B8914A; padding: .35em 1.1em; }
.facade__logo { display: block; height: clamp(64px, 11vw, 96px); width: auto; margin: 0 auto; }
.facade__sign--logo { padding: .45em 1.6em; }
.facade__logo--ido { height: clamp(70px, 12vw, 104px); }
img.jgem { height: auto; }
.jgem--a { width: 40px; } .jgem--b { width: 38px; } .jgem--c { width: 28px; } .jgem--d { width: 26px; }
.jglint { text-shadow: 0 0 6px #fff, 0 0 2px #B8914A; }
.facade__script--gem { font: 400 1.6rem "DM Serif Display", var(--display); color: #0E4A38; letter-spacing: -.01em; }
.house--stitches .facade__tagline em { color: #8C857A; }
.door-btn--stitches { --door: #0E4A38; }
.suite__script { color: #0E4A38; }
#stitches .door__leaf { background: linear-gradient(var(--ink), var(--ink)) 50% 64px / 1px calc(100% - 92px) no-repeat, url('brand/zebra-sq.svg') 0 0 / 160px auto, var(--door); }
.house--ido { --roof: #2A241F; --trim: #B08D57; --brand: #2A241F; --brand-2: #7E2E2C; --shutter: #F1DCD6; --accent: #F1DCD6;
  background: repeating-linear-gradient(90deg, #F1DCD6 0 26px, #FBF7F0 26px 52px); }
.house--ido .facade__body { background: #FBF7F0; }
.house--ido .facade__tagline, .house--ido .facade__tagline em { color: #2A241F; }
.house--ido .facade__motto { color: #B08D57; }
