/* Landing page only. Hidden start states sit under html.motion, so without the script everything shows.
   The hero's reveal is CSS keyframes, so it never waits for a script to download. */

/* Design fonts. Each only downloads when something on screen uses it. */
@font-face { font-family: 'M Cinzel'; src: url('fonts/m-cinzel.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'M Cormorant'; src: url('fonts/m-cormorant.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'M Cormorant'; src: url('fonts/m-cormorant-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'M Archivo'; src: url('fonts/m-archivo.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'M Caveat'; src: url('fonts/m-caveat.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'M Fraunces'; src: url('fonts/m-fraunces-soft.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'M Fraunces'; src: url('fonts/m-fraunces-soft-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

body { background-image: none; }
img[data-src]:not([src]) { display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* Reveal on view */
html.motion [data-in] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.3s var(--ease) var(--d, 0s); }
html.motion [data-in].is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.top--over { background: transparent; border-bottom: 0; position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.top--over .wrap { min-height: 60px; }
.hero { position: relative; padding-block: 60px clamp(40px, 5vw, 72px); overflow: hidden; }
@supports (overflow: clip) { .hero { overflow: clip; overflow-clip-margin: 0; } }
.hero__wash { position: absolute; inset: 0; background-color: #ecdcbc; transition: background-color 1.2s ease; pointer-events: none;
  -webkit-mask: radial-gradient(70% 75% at 82% 34%, #000 0, rgba(0,0,0,.55) 40%, transparent 78%); mask: radial-gradient(70% 75% at 82% 34%, #000 0, rgba(0,0,0,.55) 40%, transparent 78%); }
.hero[data-wash="studio"] .hero__wash { background-color: #dbe6ea; }
.hero[data-wash="hearth"] .hero__wash { background-color: #f6d3b6; }
.hero[data-wash="nocturne"] .hero__wash { background-color: #cdbba6; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.hero__grid > * { min-width: 0; }
.hero .eyebrow { margin-bottom: 12px; }
h1 { font-size: clamp(1.75rem, 8.05vw, 2.5rem); }
h1 em { font-weight: 300; color: var(--brass); }
.ln { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; padding-right: .05em; }
.ln > span { display: block; animation: lineUp 1.15s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes lineUp { from { transform: translateY(112%); } }
.rise { animation: enter 1.1s var(--ease) both; animation-delay: var(--d, 0s); }

.facts { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 22px; margin-top: 14px; font-size: .97rem; font-weight: 500; }
.facts li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.facts li::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }

/* Device stack */
.stack { position: relative; padding: 0 16% 7% 0; animation: settle 1.5s var(--ease) both .08s; }
@keyframes settle { from { opacity: 0; transform: translateY(34px) scale(.975); } }
.dev { background: var(--surface); }
.dev--main { border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(28,39,37,.1), 0 40px 80px -36px rgba(28,39,37,.55); }
.dev__bar { display: flex; align-items: center; gap: 5px; height: 26px; padding-inline: 10px; background: #f4efe5; border-bottom: 1px solid rgba(28,39,37,.08); }
.dev__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(28,39,37,.2); }
.dev__addr { flex: 1; margin: 0 26px 0 8px; text-align: center; font-size: .66rem; line-height: 1; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dev__screen { position: relative; overflow: hidden; container-type: inline-size; isolation: isolate; background: #fff; }
.dev--main .dev__screen { aspect-ratio: 16 / 10.4; }
.dev--phone { position: absolute; z-index: 3; right: 0; bottom: 0; width: 29%; border-radius: 18px; padding: 4px; background: #1a1a18; box-shadow: 0 28px 50px -22px rgba(0,0,0,.6); animation: settlePhone 1.7s var(--ease) both .22s; }
.dev--phone .dev__screen { aspect-ratio: 9 / 18.4; border-radius: 14px; }
@keyframes settlePhone { from { opacity: 0; transform: translate(14px, 60px) rotate(3deg); } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
html:not(.js) .chips, html:not(.js) .namer { display: none; }
.chip { min-height: 40px; padding: 6px 13px; background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; font-weight: 500; cursor: pointer; transition: background .35s ease, color .35s ease, border-color .35s ease; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.hero__stage figcaption { margin-top: 8px; font-size: .86rem; color: var(--muted); }

/* Name field */
.namer label { display: block; font-weight: 600; margin-bottom: 7px; }
.namer input { display: block; width: 100%; min-height: 58px; padding: 12px 18px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; font-family: var(--display); font-size: 1.3rem; font-weight: 400; letter-spacing: -.01em; box-shadow: 0 14px 30px -24px rgba(28,39,37,.5); transition: border-color .3s ease, box-shadow .4s ease; }
.namer input::placeholder { color: rgba(28,39,37,.38); }
.namer input:hover { border-color: var(--teal); }
.namer input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,67,63,.16), 0 14px 30px -24px rgba(28,39,37,.5); }
.namer__hint { margin-top: 7px; font-size: .92rem; color: var(--muted); }
.hero__cta { margin-top: 20px; }
.hero__cta .btn, .designs__cta .btn, .final .btn { width: 100%; }

/* ---------- Mocks. Sizes are em, and em follows the screen width, so each one scales like a real thumbnail. ---------- */
.m { position: absolute; inset: 0; display: none; overflow: hidden; font-size: 1.4vw; font-size: 1.9cqw; line-height: 1.3; --fit: 1; text-align: left; }
.m.is-on { display: block; animation: mockIn .9s var(--ease) both; z-index: 2; }
.m.is-out { display: block; z-index: 1; }
@keyframes mockIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
html:not(.motion) .m.is-on { animation: none; }
.m img { max-width: none; }
.dev--main .m > :first-child { flex: none; }
/* First-paint mocks don't need the wipe: the whole stack is already settling in. */
.stack:not(.has-swapped) .m.is-on:first-child { animation: none; }
.dev--phone .m { font-size: 3vw; font-size: 5.6cqw; }

/* Elegant */
.m--elegant { background: #f8f3ea; color: #0f0f0e; font-family: 'M Cormorant', Garamond, 'Times New Roman', serif; }
.me__top { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 1.25em 2em .9em; position: relative; z-index: 2; }
.me__logo { display: inline-flex; flex-direction: column; align-items: center; gap: .36em; line-height: 1; min-width: 0; max-width: 42%; }
.me__logo b { font-family: 'M Cinzel', 'Trajan Pro', serif; font-weight: 700; font-size: calc(1.22em * var(--fit)); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.me__logo small { display: flex; align-items: center; gap: .5em; font-family: 'M Cinzel', 'Trajan Pro', serif; font-weight: 700; font-size: .42em; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; color: #87652a; }
.me__logo small i { width: 1em; height: 1px; background: currentColor; }
.me__nav { display: flex; gap: 1.5em; font: 500 .68em/1 'Hanken Grotesk', Arial, sans-serif; }
.me__cta { padding: .55em 1.05em; border-radius: 99px; background: #0f0f0e; color: #fff; font: 600 .66em/1 'Hanken Grotesk', Arial, sans-serif; white-space: nowrap; }
.me__body { position: absolute; inset: 0; display: grid; grid-template-columns: 1.14fr 1fr; }
.me__copy { align-self: center; padding: 3.6em 1em 0 2em; min-width: 0; }
.me__eye { font: 500 .56em/1.3 'Hanken Grotesk', Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.me__h { margin-top: .32em; font-size: calc(3.7em * var(--fit)); line-height: .98; letter-spacing: -.022em; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; padding-bottom: .1em; }
.me__h span { display: block; font-size: min(1em, 3.7rem); }
.me__h em { display: inline; color: #a4782f; }
.me__sub { margin-top: .85em; font: 400 .74em/1.42 'Hanken Grotesk', Arial, sans-serif; max-width: 30em; }
.me__btn { display: inline-block; margin-top: 1.25em; padding: .78em 1.3em; border-radius: 99px; background: #0f0f0e; color: #fff; font: 600 .72em/1 'Hanken Grotesk', Arial, sans-serif; }
.me__photo { position: relative; background: #efe6d5; padding: 4.5em 1.8em 1.6em 0; }
.me__photo::before { content: ''; position: absolute; left: -1em; top: 3.7em; right: 1em; bottom: .8em; border: 1px solid #b89a5e; }
.me__frame { position: relative; height: 100%; overflow: hidden; margin-left: -.2em; }
.me__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.me__seal { position: absolute; left: -2.2em; bottom: 1.2em; display: grid; place-items: center; width: 4.6em; height: 4.6em; border-radius: 50%; background: #17150f; box-shadow: inset 0 0 0 .3em #17150f, inset 0 0 0 .36em #a4782f; color: #e0bf7a; font: 700 .9em/1 'M Cinzel', serif; letter-spacing: .02em; }

.dev--phone .m--elegant .me__top { justify-content: center; padding: 1.1em .8em .9em; }
.dev--phone .m--elegant .me__logo { max-width: 100%; }
.dev--phone .m--elegant .me__copy { padding: .4em 1em 0; }
.dev--phone .m--elegant .me__h { font-size: calc(2.1em * var(--fit)); }
.dev--phone .m--elegant .me__btn { margin-top: .7em; font-size: .62em; }
.dev--phone .m--elegant .me__frame { position: absolute; left: 1em; right: 1em; bottom: 1em; top: 42%; height: auto; margin: 0; }

/* Studio */
.m--studio { background: #fff; color: #1d2a31; font-family: 'Hanken Grotesk', Arial, sans-serif; }
.ms__top { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .85em 1.6em; border-bottom: 1px solid rgba(10,10,10,.14); }
.ms__logo { display: flex; flex-direction: column; min-width: 0; max-width: 40%; line-height: 1.15; }
.ms__logo b { font-weight: 600; font-size: calc(1em * var(--fit)); letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms__logo small { font-size: .5em; color: #5d5d59; white-space: nowrap; }
.ms__nav { display: flex; gap: 1.5em; font-size: .62em; font-weight: 500; }
.ms__cta { padding: .6em 1em; border-radius: 4px; background: #2f6b7e; color: #fff; font-size: .62em; font-weight: 600; white-space: nowrap; }
.ms__copy { padding: 1.5em 2em 1.2em; text-align: center; }
.ms__kick { font-size: .58em; font-weight: 500; color: #2a6072; }
.ms__h { margin: .2em auto 0; max-width: 16em; font-size: calc(2.9em * var(--fit)); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; overflow-wrap: anywhere; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ms__photo { position: absolute; left: 1.6em; right: 1.6em; bottom: 0; top: 46%; border-radius: .35em .35em 0 0; overflow: hidden; }
.ms__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.ms__before { clip-path: inset(0 50% 0 0); }
.ms__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 1.5px; background: #fff; }

/* Hearth */
.m--hearth { background: #fdfaf4; color: #23302f; font-family: 'Hanken Grotesk', Arial, sans-serif; }
.mh__pill { position: relative; z-index: 2; display: flex; align-items: center; gap: .7em; margin: 1em 1.6em 0; padding: .4em .5em .4em .5em; border-radius: 99px; background: #fffdf8; box-shadow: 0 0 0 1px rgba(35,48,47,.14), 0 .6em 1.4em -.8em rgba(35,48,47,.5); }
.mh__mark { display: grid; place-items: center; flex: none; width: 2.1em; height: 2.1em; border-radius: 48% 52% 55% 45% / 52% 46% 54% 48%; background: #b34a2b; color: #fff; font: 500 .82em/1 'M Fraunces', Georgia, serif; }
.mh__mark[data-len="3"] { font-size: .6em; }
.me__seal[data-len="3"] { font-size: .72em; }
.mh__pill b { font: 500 1em/1.05 'M Fraunces', Georgia, serif; font-size: calc(1em * var(--fit)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: auto; min-width: 0; }
.mh__nav { display: flex; gap: 1.2em; font-size: .62em; font-weight: 700; white-space: nowrap; }
.mh__call { padding: .62em 1.1em; border-radius: 99px; background: #0f4a4d; color: #fff; font-size: .62em; font-weight: 700; white-space: nowrap; }
.mh__body { position: absolute; inset: 0; display: grid; grid-template-columns: 1.36fr 1fr; padding: 4.6em 13% 1.4em 2em; gap: 1em; }
.mh__copy { align-self: center; min-width: 0; }
.mh__eye { font: 600 1.05em/1.1 'M Caveat', cursive; color: #b34a2b; }
.mh__h { margin-top: .22em; font: 500 3em/1.02 'M Fraunces', Georgia, serif; font-size: calc(3em * var(--fit)); letter-spacing: -.015em; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; padding-bottom: .1em; }
.mh__h em { font-weight: 400; color: #b34a2b; }
.mh__btn { display: inline-block; margin-top: .95em; padding: .85em 1.3em; border-radius: 99px; background: #b34a2b; box-shadow: 0 .28em 0 #84331c; color: #fff; font-size: .72em; font-weight: 700; line-height: 1; }
.mh__pics { position: relative; }
.mh__pic { position: absolute; background: #fff; padding: .36em; border-radius: .7em; box-shadow: 0 1em 2em -1em rgba(35,48,47,.6); }
.mh__pic img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; border-radius: .46em; }
.mh__pic i { position: absolute; top: -.5em; left: .8em; padding: .08em .6em .16em; border-radius: 99px; background: #efe6d5; font: 600 1em/1.05 'M Caveat', cursive; }
.mh__pic--a { left: 0; top: 14%; width: 70%; transform: rotate(-5deg); }
.mh__pic--b { right: 0; top: 40%; width: 82%; transform: rotate(3deg); z-index: 1; }
.mh__pic--b i { left: auto; right: .8em; background: #b34a2b; color: #fff; }
.mh__pic--c { left: 2%; top: 66%; width: 34%; transform: rotate(-4deg); z-index: 2; }

/* Nocturne */
.m--nocturne { background: #161514; color: #f3efe7; font-family: 'M Archivo', Arial, sans-serif; }
.mn__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m--nocturne::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,21,20,.72) 0, rgba(22,21,20,.05) 26%, rgba(22,21,20,.1) 44%, rgba(22,21,20,.82) 92%); }
.mn__top, .mn__copy { position: relative; z-index: 1; }
.mn__top { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 1em 1.6em; }
.mn__logo { font-weight: 500; font-size: calc(1.22em * var(--fit)); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 46%; }
.mn__logo i { font-style: normal; color: #df8a5e; }
.mn__nav { display: flex; gap: 1.8em; font-size: .52em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.mn__cta { padding: .7em 1.1em; background: #df8a5e; color: #161514; font-size: .56em; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.mn__copy { position: absolute; left: 1.6em; right: 1.6em; bottom: 1.5em; }
.mn__eye { font-size: .52em; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.mn__h { margin-top: .3em; max-width: 13em; font-size: calc(3.1em * var(--fit)); font-weight: 500; letter-spacing: -.022em; line-height: 1.04; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.dev--phone .m--nocturne .mn__top { padding: 1em .9em; }
.dev--phone .mn__logo { max-width: 100%; font-size: calc(1.1em * var(--fit)); }
.dev--phone .mn__copy { left: .9em; right: .9em; bottom: 1em; }
.dev--phone .mn__h { font-size: calc(1.72em * var(--fit)); }
.dev--phone .mn__copy .mn__cta { display: inline-block; margin-top: .9em; font-size: .56em; }

/* On a small screen the thumbnails drop the fine detail, like a site at that size would. */
@container (max-width: 520px) {
  .m { font-size: 2.45cqw; }
  .me__eye, .ms__kick, .mn__eye { font-size: .68em; }
  .me__logo small { font-size: .5em; }
  .me__nav, .ms__nav, .mh__nav, .mn__nav, .me__cta, .ms__cta, .mh__call, .mn__top .mn__cta { display: none; }
  .ms__photo { top: 55%; right: 1.6em; }
  .me__sub { display: none; }
  .me__h { font-size: calc(2.95em * var(--fit)); }
  .me__copy { padding: 3em .6em 0 1.4em; }
  .me__top { padding: 1em 1.4em .8em; }
  .ms__h { font-size: calc(2.6em * var(--fit)); }
  .mh__h { font-size: calc(2.45em * var(--fit)); }
  .mh__body { padding: 4.2em 1.5em 1em; }
  .mn__h { font-size: calc(2.7em * var(--fit)); }
}

/* ---------- Price ---------- */
.price { background: var(--pine); color: var(--on-teal); border-radius: 26px 26px 0 0; padding-block: clamp(52px, 7vw, 104px); position: relative; z-index: 1; }
.price__head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 56px); }
.price__head p { margin-top: 14px; color: var(--on-teal-soft); font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); }
.price__list { display: grid; gap: 0; }
.pcard { padding-block: 24px; border-top: 1px solid var(--line-teal); display: grid; grid-template-columns: 96px 1fr; gap: 14px; }
.price__fig { font-family: var(--display); font-weight: 300; font-size: 2.3rem; line-height: 1.1; color: var(--brass-light); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.pcard--big .price__fig { font-size: 3.1rem; line-height: 1; }
.price__fig--words { font-size: 1.45rem; line-height: 1.2; padding-top: .3em; }
.pcard h3 { font-family: var(--body); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.pcard p { color: var(--on-teal-soft); font-size: 1rem; margin-top: 3px; }

.roll { display: inline-flex; }
.roll__d { display: inline-block; height: 1.1em; line-height: 1.1em; overflow: hidden; }
.roll__d > span { display: block; white-space: pre-line; line-height: 1.1em; transition: transform 2.1s cubic-bezier(.2, .9, .2, 1) var(--dl, 0s); }
.roll.is-rolled .roll__d > span { transform: translateY(var(--to)); }

/* ---------- The four designs ---------- */
.tour { padding: 0; background: #f8f3ea; color: #1d1b17; --bg: #f8f3ea; }
.tour__intro { padding-block: clamp(64px, 9vw, 120px) clamp(24px, 3vw, 44px); }
.tour__intro > div { max-width: 660px; }
.tour__intro p { margin-top: 14px; color: #665e52; }
.tour__nav { display: none; }

/* Plain version (no script, or reduced motion): four blocks one under the other */
.slide { padding-block: 48px; padding-inline: var(--gutter); background: var(--sl-bg); color: var(--sl-ink); }
.slide--elegant { --sl-bg: #f8f3ea; --sl-ink: #1d1b17; --sl-acc: #87652a; --sl-dim: #665e52; --sl-frame: #efe6d5; --sl-rule: rgba(135,101,42,.45); }
.slide--studio { --sl-bg: #ffffff; --sl-ink: #1d2a31; --sl-acc: #2a6072; --sl-dim: #5d6569; --sl-frame: #eef1f2; --sl-rule: rgba(42,96,114,.35); }
.slide--hearth { --sl-bg: #fdf1df; --sl-ink: #23302f; --sl-acc: #b34a2b; --sl-dim: #566160; --sl-frame: #f7e6cf; --sl-rule: rgba(179,74,43,.4); }
.slide--nocturne { --sl-bg: #161514; --sl-ink: #f3efe7; --sl-acc: #df8a5e; --sl-dim: #aba79d; --sl-frame: #2b2a27; --sl-rule: rgba(223,138,94,.5); }
.slide__n { font-size: .92rem; color: var(--sl-acc); margin-bottom: .35em; }
.slide__copy h3 { font-family: var(--sl-font, var(--display)); font-size: clamp(2.4rem, 1.6rem + 3vw, 4.2rem); font-weight: var(--sl-w, 300); line-height: 1.02; letter-spacing: var(--sl-ls, -.02em); }
.slide__desc { margin-top: 12px; color: var(--sl-dim); font-size: clamp(1.05rem, 1rem + .25vw, 1.22rem); max-width: 26em; }
.slide__devs { position: relative; margin-top: 26px; }
.tdev { background: var(--sl-frame); }
.tdev img { width: 100%; max-width: none; height: auto; }
.tdev--desk { display: none; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(128,128,128,.22), 0 50px 90px -40px rgba(0,0,0,.55); }
.tdev__bar { display: flex; gap: 6px; align-items: center; height: 30px; padding-inline: 12px; }
.tdev__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--sl-ink); opacity: .22; }
.tdev__screen { position: relative; overflow: hidden; background: var(--sl-bg); }
.tdev--desk .tdev__screen { aspect-ratio: 16 / 9.4; }
.tdev--phone { width: min(290px, 74vw); margin-inline: auto; padding: 7px; border-radius: 36px; background: #1a1a18; box-shadow: 0 0 0 1px rgba(128,128,128,.25), 0 40px 70px -30px rgba(0,0,0,.6); }
.tdev--phone .tdev__screen { aspect-ratio: 9 / 17; border-radius: 30px; }

.tour--near .slide--elegant { --sl-font: 'M Cormorant', Garamond, serif; --sl-w: 400; }
.tour--near .slide--studio { --sl-font: 'Hanken Grotesk', Arial, sans-serif; --sl-w: 500; --sl-ls: -.03em; }
.tour--near .slide--hearth { --sl-font: 'M Fraunces', Georgia, serif; --sl-w: 500; --sl-ls: -.015em; }
.tour--near .slide--hearth .slide__n { font-family: 'M Caveat', cursive; font-weight: 600; font-size: 1.3rem; line-height: 1.1; }
.tour--near .slide--nocturne { --sl-font: 'M Archivo', Arial, sans-serif; --sl-w: 500; --sl-ls: -.022em; }
.tour--near .slide--nocturne .slide__n, .tour--near .slide--elegant .slide__n { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.tour--near .slide--elegant .slide__copy h3 { font-size: clamp(2.9rem, 1.9rem + 3.6vw, 5rem); }
html:not(.js) .slide--elegant { --sl-font: 'M Cormorant', Garamond, serif; --sl-w: 400; }
html:not(.js) .slide--studio { --sl-font: 'Hanken Grotesk', Arial, sans-serif; --sl-w: 500; }
html:not(.js) .slide--hearth { --sl-font: 'M Fraunces', Georgia, serif; --sl-w: 500; }
html:not(.js) .slide--nocturne { --sl-font: 'M Archivo', Arial, sans-serif; --sl-w: 500; }

/* Live version: the stage holds still while the page scrolls past it, and everything morphs */
.tour--live .tour__track { height: calc(100vh + 4 * 140vh); height: calc(100svh + 4 * 140svh); }
.tour--live .tour__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #f8f3ea; transition: background-color 1s ease; }
.tour--live .tour__stage[data-active="studio"] { background: #fff; }
.tour--live .tour__stage[data-active="hearth"] { background: #fdf1df; }
.tour--live .tour__stage[data-active="nocturne"] { background: #161514; }
.tour--live .tour__slides { position: absolute; inset: 0; }
.tour--live .slide { position: absolute; inset: 0; padding: 0; background: transparent; visibility: hidden; display: grid; grid-template-rows: auto 1fr; padding: clamp(16px, 3.5svh, 30px) var(--gutter) 0; }
.tour--live .slide.is-active, .tour--live .slide.was-active { visibility: visible; }
.tour--live .slide.is-active { z-index: 2; }
.tour--live .slide.was-active { z-index: 1; }
.tour--live .slide__copy { position: relative; }
.tour--live .slide__copy > * { opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .35s ease; }
.tour--live .slide.is-active .slide__copy > * { opacity: 1; transform: none; transition: opacity 1s var(--ease) .22s, transform 1.2s var(--ease) .22s; }
.tour--live .slide.is-active .slide__copy > :nth-child(2) { transition-delay: .3s; }
.tour--live .slide.is-active .slide__copy > :nth-child(3) { transition-delay: .4s; }
.tour--live .slide__devs { margin-top: 14px; min-height: 0; transform-origin: 50% 40%; }
.tour--live .slide.is-active .tdev img, .tour--live .slide.was-active .tdev img { will-change: transform; }
/* The new device paints up over the old one, frame and all. The negative insets leave room for its shadow. */
.tour--live .slide.is-active .tdev { animation: wipeUp 1s cubic-bezier(.65, 0, .2, 1) both; }
.tour--live .slide:first-child.is-active:not(.has-moved) .tdev { animation: none; }
@keyframes wipeUp { from { clip-path: inset(100% -90px -130px -90px); } to { clip-path: inset(-90px -90px -130px -90px); } }
.tour--live .slide__copy h3 { font-size: clamp(2.1rem, 8.6vw, 2.6rem); }
.tour--near.tour--live .slide--elegant .slide__copy h3 { font-size: clamp(2.5rem, 10vw, 3rem); }
.tour--live .slide__desc { margin-top: 6px; font-size: 1rem; line-height: 1.4; min-height: 2.8em; }
.tour--live .slide__n { margin-bottom: 2px; }

/* Phone: the handset runs off the bottom of the screen, under the sticky bar */
.tour--live .tdev--phone { position: absolute; top: 0; left: 50%; width: min(300px, 78vw); margin: 0 0 0 calc(min(300px, 78vw) / -2); border-radius: 38px 38px 0 0; padding: 7px 7px 0; height: calc(100% + 60px); transition: background-color 1s ease; }
.tour--live .tdev--phone .tdev__screen { aspect-ratio: auto; height: 100%; border-radius: 31px 31px 0 0; }
.tour--live .tour__nav { display: flex; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 72px; z-index: 5; gap: 4px; padding: 6px; border-radius: 16px; background: rgba(255,253,248,.94); box-shadow: 0 10px 30px -14px rgba(0,0,0,.45); }
.tour__nav button { position: relative; flex: 1; min-height: 44px; padding: 0 2px; background: none; border: 0; border-radius: 11px; font-size: .84rem; font-weight: 500; color: #4a4f4c; cursor: pointer; overflow: hidden; }
.tour__nav button[aria-current] { color: #111; font-weight: 600; }
.tour__nav button i { position: absolute; left: 10%; right: 10%; bottom: 5px; height: 2px; background: currentColor; transform: scaleX(var(--fill, 0)); transform-origin: left; opacity: .85; }

.slide--nocturne .tdev--phone { background: #2b2a27; box-shadow: 0 0 0 1px rgba(243,239,231,.2), 0 40px 70px -30px #000; }
.slide--nocturne .tdev--desk { box-shadow: 0 0 0 1px rgba(243,239,231,.14), 0 50px 90px -40px #000; }

/* After the tour: stays on Nocturne's dark ground */
.tour__tail { background: #161514; color: #f3efe7; padding-block: clamp(56px, 7vw, 96px); }
.notes { display: grid; gap: 28px; }
.notes h3 { font-family: var(--display); font-weight: 300; font-size: 1.5rem; margin-bottom: 8px; }
.notes p { color: #bdb8ad; max-width: 46ch; }
.designs__cta { margin-top: clamp(32px, 4vw, 52px); }
.sec-cta { margin-top: clamp(30px, 4vw, 52px); }
.sec-cta .btn { width: 100%; }
.walls__copy .sec-cta { margin-top: 24px; }
.after .sec-cta { margin-top: 28px; }
@media (min-width: 620px) { .sec-cta .btn { width: auto; } }

/* ---------- Try the wall colours ---------- */
.walls { background: #fdf1df; color: #23302f; }
.walls__grid { display: grid; gap: 26px; }
.walls__grid > * { min-width: 0; }
.walls__tag { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 99px; background: rgba(179,74,43,.11); color: #94391f; font-size: .9rem; font-weight: 600; }
.walls__copy > p:not(.walls__tag) { margin-top: 12px; color: #566160; max-width: 44ch; }
.walls__now { margin-top: 14px; font-size: 1.05rem; }
.walls__now strong { font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.walls__panel { min-width: 0; }
.walls__sw { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px 2px; margin-top: 10px; }
.walls__sw button { display: grid; justify-items: center; width: 100%; min-height: 48px; padding: 4px 0; background: none; border: 0; border-radius: 12px; font-size: 0; line-height: 1.15; cursor: pointer; }
.walls__sw span { width: 40px; height: 40px; border-radius: 48% 52% 55% 45% / 52% 46% 54% 48%; box-shadow: inset 0 0 0 1px rgba(35,48,47,.16); transition: transform .6s var(--ease), box-shadow .3s ease; }
.walls__sw button:hover span { transform: scale(1.1) rotate(-8deg); }
.walls__sw button[aria-pressed="true"] span { box-shadow: 0 0 0 2px #fdf1df, 0 0 0 4px #0f4a4d; transform: scale(1.04); }
.walls__stage { position: relative; aspect-ratio: 1200 / 670; border-radius: var(--radius); overflow: hidden; background: #d9d4c7; isolation: isolate; box-shadow: var(--shadow); }
.walls__stage > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.walls__paint { background: var(--wall, transparent); opacity: var(--on, 0); transition: background-color .7s ease, opacity .7s ease; }
.walls__stage.is-near .walls__paint { -webkit-mask: url('img/room/shade.webp') center / 100% 100% no-repeat; mask: url('img/room/shade.webp') center / 100% 100% no-repeat; }
.walls__shade { mix-blend-mode: multiply; opacity: var(--on, 0); transition: opacity .7s ease; }
.walls__fig figcaption { margin-top: 12px; font-size: .88rem; color: #566160; }
html:not(.js) .walls__pick { display: none; }

/* ---------- How it works ---------- */
.how { background: var(--paper); }
.steps-wrap { position: relative; }
.steps__line { position: absolute; left: 21px; top: 22px; bottom: 60px; width: 1.5px; background: var(--line); }
.steps__line i { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, #b48d46, var(--brass)); transform-origin: top; }
.steps { position: relative; display: grid; gap: 30px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 2px 16px; }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brass); color: #fff; font-family: var(--display); font-size: 1.15rem; transition: background .6s ease, color .6s ease, box-shadow .6s ease, transform .9s var(--ease); }
.steps h3 { padding-top: 7px; }
.steps p { color: var(--muted); }
.is-live .steps li::before { background: var(--paper); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.is-live .steps li h3, .is-live .steps li p { opacity: .42; transition: opacity .8s ease; }
.is-live .steps li.is-on::before { background: var(--brass); color: #fff; box-shadow: 0 0 0 6px rgba(138,100,38,.14); }
.is-live .steps li.is-on h3, .is-live .steps li.is-on p { opacity: 1; }

/* ---------- Petr ---------- */
.petr { background: var(--paper); padding-block: 0 clamp(64px, 9vw, 128px); }
.petr__grid { display: grid; gap: clamp(40px, 6vw, 72px); }
.video .sec-head { margin-bottom: 22px; }
.video__box { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 20px; background: var(--yellow); border: 2px dashed var(--yellow-line); border-radius: var(--radius); font-weight: 600; }
.video__box span { display: block; font-weight: 400; font-size: .95rem; }
.after { background: var(--pine); color: var(--on-teal); border-radius: 24px; padding: clamp(28px, 4vw, 56px); }
.after .eyebrow { color: var(--brass-light); }
.after h2 { margin-top: 10px; font-size: clamp(1.6rem, 1.4rem + 1vw, 2.3rem); }
.after__intro { margin-top: 14px; color: var(--on-teal-soft); }
.after__list { margin-top: 22px; }
.after__list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding-block: 13px; border-top: 1px solid var(--line-teal); }
.after__list svg { width: 20px; height: 20px; margin-top: 4px; color: var(--brass-light); }
html.motion .after:not(.is-in) .after__list path { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.motion .after__list path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease) .5s; }
html.motion .after__list li:nth-child(2) path { transition-delay: .62s; } html.motion .after__list li:nth-child(3) path { transition-delay: .74s; }
html.motion .after__list li:nth-child(4) path { transition-delay: .86s; } html.motion .after__list li:nth-child(5) path { transition-delay: .98s; }

/* ---------- FAQ ---------- */
.faq-sec { background: var(--surface); }
.faq__grid { display: grid; gap: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 60px; padding-block: 16px; font-weight: 600; cursor: pointer; list-style: none; transition: color .3s ease; }
.faq summary:hover { color: var(--brass); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform .6s var(--ease); }
.faq details[open]:not(.is-closing) summary::after { transform: rotate(135deg); }
.faq details > p { padding-bottom: 22px; color: var(--muted); max-width: 62ch; }

/* ---------- Final ---------- */
.final { position: relative; overflow: hidden; background: var(--pine); color: var(--on-teal); text-align: center; padding-block: clamp(80px, 11vw, 150px) clamp(72px, 9vw, 120px); }
.final__bands { position: absolute; top: 0; left: 0; right: 0; height: 6px; display: flex; }
.final__bands i { flex: 1; }
.final__bands i:nth-child(1) { background: #e0bf7a; } .final__bands i:nth-child(2) { background: #8cc3d4; }
.final__bands i:nth-child(3) { background: #d97f58; } .final__bands i:nth-child(4) { background: #161514; }
.final h2 { max-width: 20ch; margin-inline: auto; font-size: clamp(2rem, 1.6rem + 2vw, 3.3rem); }
.final h2 em { color: var(--brass-light); }
.final .btn { margin-top: 30px; }
.final .cta-note { margin-inline: auto; color: var(--on-teal-soft); }
.final__wa { margin-top: 18px; color: var(--on-teal-soft); }
.final__wa a { font-weight: 600; color: var(--on-teal); }
.final a:focus-visible, .tour__tail a:focus-visible { outline-color: var(--brass-light); }

/* ---------- Sticky bar on phones ---------- */
.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) 16px; background: var(--surface); box-shadow: 0 -1px 0 var(--line), 0 -14px 30px -18px rgba(28,39,37,.35); transform: translateY(110%); visibility: hidden; transition: transform .7s var(--ease), visibility 0s linear .7s; }
.stickybar.is-on { transform: none; visibility: visible; transition: transform .7s var(--ease); }
.stickybar p { display: grid; font-size: .84rem; line-height: 1.25; color: var(--muted); }
.stickybar b { font-size: .98rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.stickybar .btn { min-height: 46px; min-width: 0; padding: 8px 18px; font-size: .98rem; white-space: nowrap; }
html:not(.js) .stickybar { display: none; }

/* ---------- Larger screens ---------- */
@media (min-width: 620px) {
  .hero__cta .btn, .designs__cta .btn, .final .btn { width: auto; }
  .notes { grid-template-columns: 1fr 1fr; gap: 56px; }
  .pcard { grid-template-columns: 130px 1fr; }
}
@media (min-width: 900px) {
  .stickybar { display: none; }
  h1 { font-size: clamp(2.35rem, 3.72vw, 3.5rem); }
  .top--over .wrap, .hero .wrap { width: min(1500px, 100%); }
  .top--over .wrap { min-height: 76px; }
  .hero { padding-block: 84px clamp(52px, 6vw, 84px); }
  .hero__grid { grid-template-columns: minmax(0, .74fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: clamp(36px, 4.4vw, 76px); row-gap: 18px; align-items: start; }
  .hero__head { grid-column: 1; grid-row: 1; }
  .hero__sell { grid-column: 1; grid-row: 2; display: contents; }
  .hero__sell > * { animation: enter 1.1s var(--ease) both .5s; }
  .hero__sell .lede { grid-column: 1; grid-row: 2; font-size: 1.06rem; }
  .namer { grid-column: 1; grid-row: 3; }
  .hero__cta { grid-column: 1; grid-row: 4; margin-top: 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
  .hero__cta .cta-note { margin: 0; flex: 1 1 200px; font-size: .9rem; }
  .hero__stage { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
  .facts { font-size: .95rem; margin-top: 18px; gap: 4px 16px; }
  .stack { padding: 0 11% 6% 0; }
  .dev__bar { height: 32px; gap: 6px; padding-inline: 14px; }
  .dev__bar i { width: 9px; height: 9px; }
  .dev__addr { font-size: .74rem; }
  .dev--main { border-radius: 14px; }
  .dev--phone { width: 23%; border-radius: 24px; padding: 5px; }
  .dev--phone .dev__screen { border-radius: 19px; }
  .chips { margin-top: 14px; }
  .chip { min-height: 38px; }

  .price { border-radius: 36px 36px 0 0; }
  .price__list { grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
  .pcard--big { display: block; padding-block: 28px 34px; }
  .pcard--big .price__fig { display: block; font-size: clamp(4.4rem, 3rem + 3vw, 6rem); margin-bottom: 18px; }
  .pcard--big h3 { font-size: 1.2rem; }
  .pcard--big p { max-width: 42ch; }

  .slide { padding-block: 72px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: 56px; align-items: center; }
  .tdev--desk { display: block; }
  .tdev--phone { position: absolute; right: -12px; bottom: -22px; width: 19%; margin: 0; padding: 5px; border-radius: 24px; }
  .tdev--phone .tdev__screen { border-radius: 19px; }

  .tour--live .tour__track { height: calc(100vh + 4 * 170vh); }
  .tour--live .slide { padding: 0 var(--gutter); grid-template-rows: none; grid-template-columns: minmax(0, 3.6fr) minmax(0, 9fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
  .tour--live .slide__copy { padding-bottom: 76px; }
  .tour--live .slide__copy h3 { font-size: clamp(3rem, 1.8rem + 2.9vw, 4.6rem); }
  .tour--near.tour--live .slide--elegant .slide__copy h3 { font-size: clamp(3.6rem, 2.2rem + 3.4vw, 5.4rem); }
  .tour--live .slide__desc { margin-top: 14px; font-size: 1.14rem; min-height: 0; line-height: 1.5; }
  .tour--live .slide__devs { margin: 0; height: min(84vh, 760px); display: flex; align-items: center; }
  .tour--live .tdev--desk { width: 100%; }
  .tour--live .tdev--desk .tdev__screen { aspect-ratio: auto; height: min(calc(84vh - 30px), 730px); }
  .tour--live .tdev--phone { top: auto; left: auto; right: -14px; bottom: 16px; margin: 0; width: clamp(150px, 15vw, 210px); height: 62%; border-radius: 26px; padding: 5px; }
  .tour--live .tdev--phone .tdev__screen { height: 100%; aspect-ratio: auto; border-radius: 21px; }
  .tour--live .tour__nav { flex-direction: column; left: var(--gutter); right: auto; bottom: 40px; width: clamp(180px, 20vw, 260px); padding: 0; gap: 2px; background: none; box-shadow: none; color: inherit; }
  .tour--live .tour__stage[data-active="nocturne"] .tour__nav button { color: #aba79d; }
  .tour--live .tour__stage[data-active="nocturne"] .tour__nav button[aria-current] { color: #f3efe7; }
  .tour--live .tour__nav button { flex: none; text-align: left; font-size: .95rem; min-height: 38px; padding: 0 0 6px; border-radius: 0; transition: color .6s ease; }
  .tour--live .tour__nav button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: currentColor; opacity: .2; }
  .tour--live .tour__nav button i { left: 0; right: 0; bottom: 5px; height: 1.5px; }

  .walls__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7.6fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
  .walls__stage { border-radius: 24px; }
  .walls__pick { display: flex; align-items: center; gap: 28px; margin-top: 14px; }
  .walls__now { margin: 0; flex: 0 0 7.5em; line-height: 1.25; }
  .walls__now strong { display: block; }
  .walls__sw { flex: 1; grid-template-columns: repeat(9, minmax(0, 1fr)); margin: 0; }
  .walls__sw span { width: 38px; height: 38px; }

  .steps__line { left: 22px; right: calc(20% - 22px - 19px); top: 21px; bottom: auto; width: auto; height: 1.5px; }
  .steps__line i { transform-origin: left; background: linear-gradient(90deg, #b48d46, var(--brass)); }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps li { display: block; }
  .steps li::before { margin-bottom: 20px; }
  .steps h3 { padding-top: 0; margin-bottom: 8px; }

  .petr__grid { grid-template-columns: 1.15fr 1fr; align-items: center; }
  .faq__grid { grid-template-columns: 1fr 2fr; gap: 64px; }
  .faq__grid > :first-child { position: sticky; top: 40px; align-self: start; }
}

@media (min-width: 1280px) {
  .facts { grid-template-columns: repeat(4, auto); }
}
@media (max-width: 899px) {
  .is-typing .chips, .is-typing .hero__stage figcaption { display: none; }
}
@media (max-width: 350px) {
  .stickybar { padding-left: 12px; gap: 8px; }
  .stickybar b { font-size: .9rem; }
  .stickybar .btn { padding: 8px 13px; font-size: .9rem; }
}

/* Short phones and in-app browsers: tighten the stage so the device keeps its room */
@media (max-width: 899px) and (max-height: 620px) {
  .tour--live .slide__desc { display: none; }
  .tour--live .slide__copy h3 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ln > span, .rise, .stack, .dev--phone, .m.is-on { animation: none !important; }
}
