/* Brand tokens: the approved SandRoom palette. Logical properties throughout, so dir="rtl" mirrors the layout. */
:root {
  --basalt: #171717; --salt: #fcf8f5; --sand: #d3b793; --silt: #ebe1d6; --wet-sand: #76582f;
  --ghadeer: #1f4a4f; --ghadeer-deep: #12302f; --night: #2b2723; --ruby: #c8102e; --ruby-deep: #6e0c24;
  --line: var(--sand);
  --latin: 'Mona Sans', Alexandria, 'Segoe UI', sans-serif; --arabic: Alexandria, 'Segoe UI', Tahoma, sans-serif;
  --gutter: max(clamp(20px, 5vw, 80px), env(safe-area-inset-left, 0px));
  --ease: cubic-bezier(.22, .8, .24, 1);
}
* { box-sizing: border-box; margin: 0; }
html { --font: var(--latin); background: var(--salt); color: var(--basalt); font: 400 18px/1.55 var(--font); -webkit-text-size-adjust: 100%; }
html:lang(ar) { --font: var(--arabic); line-height: 1.75; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { font: inherit; background: var(--salt); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
h1, h2, h3 { font-weight: 600; font-stretch: 125%; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
html:lang(ar) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; font-weight: 500; }
html:lang(ar) :is(.lede, .room p, .beat p) { line-height: 1.75; } html:lang(ar) .beat h3 { line-height: 1.3; }
h1 { font-size: clamp(46px, 7.2vw, 124px); line-height: .95; }
h2 { font-size: clamp(36px, 4.7vw, 80px); }
p { text-wrap: pretty; }
.lede { font-size: clamp(19px, 1.55vw, 25px); line-height: 1.45; }
.wrap { padding-inline: var(--gutter); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--basalt); color: var(--salt); font: 500 17px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .25s, color .25s, transform .16s var(--ease); }
.btn:active { transform: scale(.97); }
.btn.light { background: var(--salt); color: var(--basalt); }
.btn.small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.link { font-weight: 500; text-underline-offset: 6px; text-decoration-thickness: 1px; padding-block: 12px; }
@media (hover: hover) { .btn:hover { background: var(--ghadeer); color: var(--salt); } .link:hover { text-decoration-thickness: 3px; } }
.skip { position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 30; background: var(--basalt); color: var(--salt); padding: 12px 18px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Header: a map of the rooms. Its ink follows the wall behind it. */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 32px; padding: max(20px, env(safe-area-inset-top, 0px)) var(--gutter) 16px; color: var(--basalt); transition: background-color .3s; pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar .logo, .bar nav { transition: color .3s; }
.bar[data-logo=dark] .logo, .bar[data-tone=dark] nav { color: var(--salt); }
.bar[data-logo=sand] { --line: var(--salt); }
.logo { display: block; }
.logo svg { height: 30px; width: auto; }
.logo .ink { fill: currentColor; } .logo .grain { fill: var(--line); transition: fill .35s; }
.bar nav { display: flex; gap: clamp(16px, 1.7vw, 28px); margin-inline-start: auto; font-size: 16px; }
.bar nav a { text-decoration: none; padding-block: 10px; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 0 2px no-repeat; transition: background-size .35s var(--ease); }
[dir=rtl] .bar nav a { background-position-x: 100%; }
.lang { text-decoration: none; font-size: 16px; padding-block: 10px; transition: color .3s; }
.lang:lang(ar) { font-family: var(--arabic); } .lang:lang(en) { font-family: var(--latin); }
.bar[data-tone=dark] .lang { color: var(--salt); }
.bar nav a[aria-current] { background-size: 100% 2px; }
@media (hover: hover) { .bar nav a:hover { background-size: 100% 2px; } }
.bar[data-tone=dark] .btn { background: var(--salt); color: var(--basalt); }
main :is(section, a)[id] { scroll-margin-top: 50px; }
main :is(.first, .above)[id] { scroll-margin-top: 0; }

.menu-open, .menu-close { all: unset; cursor: pointer; min-height: 44px; display: none; align-items: center; font-weight: 500; font-size: 16px; transition: color .3s; }
.bar[data-tone=dark] .menu-open { color: var(--salt); }
.menu-close { display: flex; }
:is(.menu-open, .menu-close):focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.menu { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--salt); color: var(--basalt); clip-path: inset(0 0 100% 0); transition: clip-path .22s ease-in, overlay .22s allow-discrete, display .22s allow-discrete; }
.menu[open] { display: flex; flex-direction: column; clip-path: inset(0); transition-duration: .42s; transition-timing-function: var(--ease); }
@starting-style { .menu[open] { clip-path: inset(0 0 100% 0); } }
.menu::backdrop { background: none; }
html:has(.menu[open]) { overflow: hidden; }
.menu-top { display: flex; align-items: center; justify-content: space-between; padding: max(20px, env(safe-area-inset-top, 0px)) var(--gutter) 16px; }
.menu nav { position: relative; flex: 1; display: grid; grid-auto-rows: minmax(46px, 1fr); overflow-y: auto; overscroll-behavior: contain; }
.menu nav a { display: flex; align-items: center; padding: 8px var(--gutter); background: var(--sky); text-decoration: none; font-size: clamp(22px, 4.2svh, 40px); font-weight: 600; font-stretch: 125%; letter-spacing: -.025em; line-height: 1.2; }
html:lang(ar) .menu nav a { font-weight: 500; letter-spacing: 0; }
.menu nav a.dark { color: var(--salt); }
.menu nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .28em; }
.menu nav a:focus-visible { outline-offset: -8px; }
.menu nav svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
[dir=rtl] .menu nav svg { transform: scaleX(-1); }

.menu-end { display: flex; gap: 28px; padding: 14px var(--gutter) max(14px, env(safe-area-inset-bottom, 0px)); font-size: 16px; }
.menu-end a { text-decoration: none; padding-block: 10px; }

/* The walk, read without 3D: the rooms as photographs */
.stage > canvas, .arrive { display: none; }
.room { position: relative; background: var(--sky); padding: clamp(96px, 14vh, 160px) var(--gutter) 0; min-height: 88svh; display: flex; flex-direction: column; justify-content: space-between; gap: 56px; overflow: hidden; }
.room.dark, .first, .close { color: var(--salt); }
.room .copy { display: grid; gap: 26px; justify-items: start; max-width: 640px; }
.room p { max-width: 30em; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.45; }
[dir=rtl] .dune { transform: scaleX(-1); }
.dune { width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(-1 * var(--gutter)); height: clamp(140px, 24vh, 260px); flex: none; }
.hero .actions { margin-top: 10px; font-size: 17px; }

/* Doors inside doors: the same view, drawn flat */
.doors { position: relative; aspect-ratio: 23 / 33; }
.doors i { position: absolute; inset: 0; transform: scale(var(--s)); transform-origin: 50% 52%; }
.doors i:nth-child(1) { --s: 1; background: var(--silt); } .doors i:nth-child(2) { --s: .6; background: var(--sand); }
.doors i:nth-child(3) { --s: .42; background: var(--wet-sand); } .doors i:nth-child(4) { --s: .3; background: var(--ghadeer); }
.doors i:nth-child(5) { --s: .21; background: var(--basalt); } .doors i:nth-child(6) { --s: .13; background: var(--ruby); }
.photos :is(.room, .above) { min-height: 100svh; background-size: cover; background-position: 70% 50%; justify-content: center; padding-top: 0; }
[dir=rtl].photos :is(.room, .above) { transform: scaleX(-1); } [dir=rtl].photos :is(.room, .above) > * { transform: scaleX(-1); }   /* mirror the photograph, not the words */
.photos .above { min-height: max(100svh, 64vw); background-size: 100% auto; background-repeat: no-repeat; background-position: 50% 100%; align-content: start; justify-content: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 36px 60px; padding: 120px var(--gutter) 46vw; } .photos .beat h3 { font-size: clamp(27px, 2.9vw, 50px); }
.photos .room .copy { max-width: min(46vw, 820px); padding-bottom: 8vh; }
[dir=rtl].photos :is(.room, .above) { direction: ltr; } [dir=rtl].photos :is(.room, .above) > * { direction: rtl; }

/* The walk, live */
.live .walk { height: calc(var(--walk, 20) * 74svh + 100svh); }
.live .stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: var(--salt); }
.live .stage > canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
[dir=rtl] .stage > canvas { transform: scaleX(-1); }

.live .room { position: absolute; inset: 0; height: 100svh; min-height: 0; background: none; padding-block: 0; justify-content: center; overflow: visible; opacity: 0; transform-origin: var(--vx, 70%) var(--vy, 50%); pointer-events: none; }
.live .room .copy { max-width: min(46vw, 820px); padding-bottom: 8vh; }
.live .room.here a { pointer-events: auto; }

/* Seen from above */
.above { position: relative; background: var(--salt); padding: 14vh var(--gutter) 46vh; display: grid; gap: 40px; }
.beat { max-width: 34em; display: grid; gap: 18px; } .beat h3 { font-size: clamp(32px, 4.1vw, 70px); line-height: 1.04; } .beat p { font-size: clamp(18px, 1.5vw, 24px); line-height: 1.45; max-width: 30em; }
.names { display: none; }
.live .above { position: absolute; inset: 0; padding: 0; background: none; pointer-events: none; display: block; }
.live .beat { position: absolute; inset-block-start: max(15svh, 104px); inset-inline-start: var(--gutter); max-width: min(62vw, 880px); opacity: 0; }
.live .beat .link { pointer-events: auto; }
.live .names { display: block; opacity: 0; transition: opacity .3s; }
.live .names.on { opacity: 1; }
.names a { position: absolute; left: 0; top: 0; padding: 12px 8px; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.names.on a { pointer-events: auto; } .names a.dark { color: var(--salt); }
.live .names a { margin: -22px 0 0; translate: -50% 0; }
@media (hover: hover) { .names a:hover { text-decoration: underline; text-underline-offset: 5px; } }
.live .arrive { display: block; position: absolute; inset: 0; background: var(--ruby); opacity: 0; pointer-events: none; }
.js .hero h1, .js .hero .lede, .js .hero .actions { animation: show .35s .9s both; }
.soon .stage::before, .late .stage::before { content: ''; position: absolute; inset: 0; background: url(../assets/rooms/room-0.webp) 70% 50% / cover; animation: show .5s .9s both; } .late .stage::before { animation: none; }
@media (max-aspect-ratio: 1/1) { .soon .stage::before, .late .stage::before { background: url(../assets/rooms/room-0-tall.webp) 50% 100% / cover; } }
[dir=rtl] .stage::before { transform: scaleX(-1); }
.soon .room.hero { opacity: 1; } .soon .hero a { pointer-events: auto; } .soon .stage > canvas { opacity: 0; } .late .stage > canvas { animation: show .7s both; }
.ready .hero h1, .ready .hero .lede, .ready .hero .actions { animation: none; }
@keyframes show { from { opacity: 0; } }

.first { --ground: var(--ruby-deep); background: var(--ruby); position: relative; overflow: hidden; }
.first .wrap { min-height: 100svh; display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: 48px; padding-top: clamp(110px, 16vh, 190px); }
.first .copy { display: grid; gap: 32px; max-width: 620px; padding-bottom: clamp(90px, 18vh, 200px); }
.first h2 { font-size: clamp(42px, 5.7vw, 100px); letter-spacing: -.04em; line-height: .96; max-width: 9em; }
.first .dune { position: absolute; inset: auto 0 0; margin: 0; width: 100%; height: clamp(150px, 26vh, 280px); }
.first .copy { position: relative; z-index: 3; } .gdoor { position: relative; z-index: 1; } .first .dune { z-index: 2; }
.gdoor { aspect-ratio: 23 / 33; width: min(100%, 50svh); justify-self: center; display: grid; place-items: center; }
/* Fogged glass */
.glass { --fog: #faf3f0; --ink: var(--ruby-deep); position: relative; display: grid; place-items: center; overflow: hidden; background: var(--fog); color: var(--ink); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.glass > :is(b, i) { grid-area: 1 / 1; font-style: normal; font-weight: 600; font-stretch: 125%; font-size: clamp(40px, 6.4vw, 104px); line-height: 1.6; white-space: nowrap; } .glass b { filter: blur(.095em); } .glass i { position: relative; filter: blur(.25em); opacity: .7; } .glass.wipe i { filter: blur(.19em); opacity: .42; } html:lang(en) .glass:not(.wipe) i { scale: .76; filter: blur(.34em); } .glass canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.window { background: var(--ruby-deep); } .window .glass { --fog: #9d0d26; --ink: #ffd9bd; background: #930c24; height: min(74svh, 60vw); min-height: 340px; cursor: crosshair; } .window .glass > :is(b, i) { font-size: clamp(90px, 23vw, 400px); line-height: 1.5; } html:lang(en) .window .glass > :is(b, i) { font-size: clamp(58px, 15.5vw, 280px); }
.window .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 60px; padding-block: clamp(40px, 7vh, 80px) clamp(70px, 12vh, 130px); } .window p { font-size: clamp(18px, 1.45vw, 23px); }

.idea { padding-block: clamp(110px, 19vh, 210px); }
.partners { padding-top: 40px; }
.idea .wrap { display: grid; gap: clamp(56px, 9vh, 110px); }
.intro { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px 64px; align-items: end; }
.intro p { max-width: 27em; font-size: clamp(18px, 1.4vw, 22px); }
.say > p { font-size: clamp(25px, 3vw, 50px); line-height: 1.62; letter-spacing: -.015em; max-width: 27em; text-wrap: wrap; }
.say input { font: inherit; letter-spacing: inherit; color: var(--ghadeer); background: none; border: 0; border-bottom: 2px solid var(--sand); border-radius: 0; padding: 0 .1em; line-height: 1.2; width: 9em; max-width: 100%; field-sizing: content; min-width: 5em; transition: border-color .2s; }
.say input.wide { width: 12em; }
@supports (field-sizing: content) { .say input, .say input.wide { width: auto; } }
html:lang(ar) .say input { line-height: 2; min-width: 3em; padding-block: 0; }
html:lang(ar) .say > p { line-height: 2.3; letter-spacing: 0; }
.say input::placeholder { color: var(--wet-sand); opacity: 1; }
html:lang(ar) .say input::placeholder { line-height: 2; padding-bottom: .4em; }
.say input:focus { outline: none; border-color: var(--ghadeer); }
.say input[aria-invalid=true] { border-color: var(--ruby); }
.say .btn { margin-top: 40px; }
.say output { display: block; min-height: 1.6em; margin-top: 18px; color: var(--wet-sand); }

.partners .intro { padding-bottom: clamp(44px, 7vh, 80px); }
.suite { position: relative; height: clamp(520px, 72vh, 720px); overflow: hidden; display: flex; }
.suite-line { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.suite article { position: relative; flex: none; width: 33.33%; padding: clamp(28px, 3vw, 52px); overflow: hidden; }
.suite article:first-of-type { padding-inline-start: var(--gutter); }
.suite .dark { color: var(--salt); }
.suite h3 { font-size: clamp(25px, 2.35vw, 40px); line-height: 1.1; }
.suite button { all: unset; cursor: pointer; display: block; width: min-content; min-width: 5.2em; }
html:lang(ar) .suite button { width: auto; }
.suite button::after { content: ''; position: absolute; inset: 0; }
.suite button:focus-visible::after { outline: 3px solid currentColor; outline-offset: -8px; }
.suite p { margin-top: 20px; width: min(22em, 30vw); font-size: clamp(17px, 1.3vw, 21px); transition: opacity .3s; }
.suite article:not(.on) p { opacity: 0; }
.suite p { max-width: 26em; }

.close { background: var(--basalt); overflow: hidden; }
.close .wrap { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 48px; padding-top: clamp(100px, 18vh, 200px); }
.close .copy { display: grid; gap: 40px; padding-bottom: clamp(80px, 16vh, 170px); }
.close h2 { font-size: clamp(46px, 7.2vw, 124px); line-height: .95; }
.close .doors { width: min(100%, 50svh); justify-self: center; }

/* ---------- inner pages ---------- */
.threshold { position: relative; min-height: 100svh; background: var(--sky); display: grid; align-items: center; overflow: hidden; padding-inline: var(--gutter); }
.threshold picture { position: absolute; inset: 0; } [dir=rtl] .threshold picture { transform: scaleX(-1); }
.threshold img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 100%; transform-origin: 68% 55%; }
.threshold .copy { position: relative; display: grid; gap: 26px; justify-items: start; max-width: min(41vw, 760px); padding-bottom: 10vh; }
.threshold h1 { font-size: clamp(42px, 4.9vw, 96px); line-height: .98; } html:lang(ar) .threshold h1 { line-height: 1.25; }
.threshold .lede { max-width: 29em; }
.threshold.wide { align-items: start; } .threshold.wide .copy { max-width: none; width: 100%; grid-template-columns: 1.3fr 1fr; gap: 24px 60px; align-items: end; padding: max(13vh, 100px) 0 0; }
:is(.threshold, .part, .window, .vows, .onward, .room, .doorsign a, .doorway).dark { color: var(--salt); }
.part { background: var(--sky); padding-block: clamp(90px, 16vh, 180px); }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px 80px; align-items: start; }
.prose { display: grid; gap: 24px; justify-items: start; font-size: clamp(18px, 1.45vw, 23px); line-height: 1.55; } html:lang(ar) .prose { line-height: 1.85; }
.prose p { max-width: 34em; }
.terms { display: grid; width: 100%; gap: clamp(24px, 4vh, 42px); } .terms div { display: grid; grid-template-columns: minmax(7em, 10.5em) 1fr; gap: 6px 28px; }
.terms dt { font-weight: 600; font-stretch: 112%; } html:lang(ar) .terms dt { font-weight: 500; } .terms dd { margin: 0; max-width: 30em; }
.planshot { width: 100%; height: auto; aspect-ratio: 2.3; object-fit: cover; object-position: 50% 92%; margin-top: 20px; } [dir=rtl] .planshot { transform: scaleX(-1); } .part:has(.planshot) { padding-bottom: 0; }
.name { background: var(--silt); --ground: var(--basalt); overflow: hidden; } .name .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 80px; padding-block: clamp(90px, 16vh, 180px) clamp(50px, 8vh, 90px); }
.name h2 { font-size: clamp(64px, 11.5vw, 210px); line-height: .95; letter-spacing: -.045em; } html:lang(ar) .name h2 { line-height: 1.25; } .name p { margin-top: 28px; max-width: 27em; font-size: clamp(18px, 1.45vw, 23px); }
.name .dune { margin: 0; width: 100%; }
.ledger { background: var(--silt); padding-block: clamp(90px, 16vh, 180px); } .ledger .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 80px; } .ledger h2 { grid-column: 1 / -1; max-width: 13em; }
.ledger h3 { font-size: 20px; letter-spacing: 0; font-stretch: 100%; color: var(--wet-sand); } .ledger ul { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 20px; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.3; } html:lang(ar) .ledger ul { line-height: 1.6; }
.path { position: relative; list-style: none; padding: 0; margin-top: clamp(60px, 9vh, 110px); counter-reset: s; }
.path li { counter-increment: s; display: grid; grid-template-columns: 3.2em 1fr 1.15fr; gap: 6px 40px; padding-inline-start: clamp(84px, 11vw, 190px); min-height: clamp(130px, 18vh, 190px); align-content: center; align-items: baseline; }
.path li::before { content: counter(s); color: var(--wet-sand); font-variant-numeric: tabular-nums; font-size: 20px; } .path h3 { font-size: clamp(26px, 2.9vw, 48px); } .path p { max-width: 28em; font-size: clamp(18px, 1.35vw, 21px); }
.path svg { position: absolute; inset-block: 0; inset-inline-start: 0; width: clamp(64px, 8vw, 130px); height: 100%; max-width: none; } [dir=rtl] .path svg { transform: scaleX(-1); }
.corridor { padding-block: clamp(90px, 16vh, 180px) 0; background: var(--salt); } .corridor h2 { max-width: 11em; }
.doorways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 360px)); gap: clamp(28px, 5vw, 80px); margin-top: clamp(44px, 8vh, 90px); padding-bottom: clamp(90px, 16vh, 180px); }
.doorway { display: grid; gap: 8px; align-content: start; color: var(--basalt) !important; text-decoration: none; } .doorway strong { font-size: 26px; font-weight: 600; font-stretch: 115%; margin-top: 18px; } html:lang(ar) .doorway strong { font-weight: 500; }
.leaf { display: grid; place-items: center; aspect-ratio: 23 / 33; background: var(--sky, var(--silt)); } .leaf .glass { width: 58%; aspect-ratio: 23 / 33; transition: scale .5s var(--ease); } .leaf .glass > :is(b, i) { font-size: 44px; } .shut .leaf { background: linear-gradient(var(--sand), var(--sand)) 50% / 2px 100% no-repeat var(--silt); }
@media (hover: hover) { .doorway:hover .leaf .glass { scale: 1.06; } }
.picks span { font: 400 clamp(16px, 1.3vw, 20px)/1.35 var(--font); }
.faq { width: 100%; display: grid; } .faq details { border-bottom: 2px solid var(--silt); } .faq summary { cursor: pointer; list-style: none; padding: 24px 0; font-size: clamp(20px, 1.8vw, 28px); font-weight: 500; display: flex; justify-content: space-between; gap: 24px; } .faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 22px; margin-top: .25em; border: 2px solid var(--wet-sand); border-inline-start-width: 7px; transition: border-width .2s; } .faq [open] summary::after { border-inline-start-width: 2px; } .faq p { padding-bottom: 28px; }
.vows { background: var(--night); padding-block: clamp(80px, 14vh, 160px); } .vows .wrap { display: grid; gap: clamp(50px, 9vh, 100px); } .vows .wrap > div { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px 80px; align-items: baseline; } .vows h2 { font-size: clamp(36px, 5.4vw, 96px); } .vows p { font-size: clamp(18px, 1.45vw, 23px); max-width: 27em; }
.doorsign .wrap { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; } .doorsign a { background: var(--sky); text-decoration: none; padding: 40px max(28px, 2.4vw) 48px; min-height: 34vh; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; } .doorsign a:first-child { padding-inline-start: var(--gutter); } .doorsign strong { font-size: clamp(26px, 2.6vw, 44px); font-weight: 600; font-stretch: 122%; line-height: 1.1; letter-spacing: -.02em; } html:lang(ar) .doorsign strong { font-weight: 500; letter-spacing: 0; line-height: 1.35; }
.write { background: var(--silt); padding-block: clamp(80px, 13vh, 150px); } .write .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px 90px; align-items: start; } .write.single .wrap { grid-template-columns: 1fr 1.5fr; } .write.single p { margin-top: 22px; max-width: 24em; }
.letterform { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 28px; } .letterform h2 { grid-column: 1 / -1; font-size: clamp(28px, 2.6vw, 42px); margin-top: 26px; } .letterform h2:first-child { margin-top: 0; } .letterform :is(.wide, .picks, .actions, output) { grid-column: 1 / -1; }
.f { display: grid; gap: 8px; align-content: start; font-weight: 500; } .f small { font-size: 15px; font-weight: 400; color: #6a4e28; } .f :is(input, textarea) { font: 400 18px/1.5 var(--font); color: var(--basalt); background: var(--salt); border: 0; border-bottom: 2px solid var(--wet-sand); border-radius: 0; padding: 13px 16px; width: 100%; resize: vertical; } html:lang(ar) .f :is(input, textarea) { line-height: 1.8; }
.f :is(input, textarea):focus { outline: 3px solid var(--ghadeer); outline-offset: 0; } .f [aria-invalid=true] { border-color: var(--ruby); }
.picks { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; } .picks legend { font-weight: 500; margin-bottom: 12px; padding: 0; } .picks label { position: relative; } .picks input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; } .picks span { display: block; padding: 11px 20px; border-radius: 999px; background: var(--salt); border: 1px solid var(--wet-sand); transition: background-color .2s, color .2s; } .picks input:checked + span { background: var(--ghadeer); color: var(--salt); border-color: var(--ghadeer); } .picks input:focus-visible + span { outline: 3px solid var(--basalt); outline-offset: 3px; }
.letterform output { min-height: 1.6em; font-weight: 500; color: #6a4e28; }
.letter { position: sticky; top: 108px; display: grid; gap: 18px; justify-items: start; } .sheet { background: var(--salt); padding: clamp(28px, 3vw, 54px); display: grid; gap: 1.1em; font-size: clamp(19px, 1.55vw, 25px); line-height: 1.6; width: 100%; overflow-wrap: anywhere; } html:lang(ar) .sheet { line-height: 2; } .sheet span { color: var(--wet-sand); } .sheet .filled { color: var(--ghadeer); font-weight: 500; }
.copy-letter { font: 500 16px/1 var(--font); background: none; border: 0; color: inherit; text-decoration: underline; text-underline-offset: 6px; padding: 14px 0; cursor: pointer; }
.onward { display: block; background: var(--sky); text-decoration: none; overflow: hidden; } .onward .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding-top: clamp(60px, 10vh, 110px); } .onward .wrap > span { display: grid; gap: 8px; padding-bottom: clamp(50px, 9vh, 100px); }
.onward small { font-size: 18px; } .onward strong { font-size: clamp(46px, 8.6vw, 150px); font-weight: 600; font-stretch: 125%; letter-spacing: -.04em; line-height: .95; } html:lang(ar) .onward strong { font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.onward i { width: clamp(90px, 13vw, 210px); aspect-ratio: 23 / 33; background: var(--salt); transform-origin: 50% 100%; transition: scale .5s var(--ease); } .onward.dark i { background: var(--sand); }
@media (hover: hover) { .onward:hover i { scale: 1.12; } }

/* ---------- footer: the whole house, and the way to every room ---------- */
footer { background: var(--salt); }
.house { position: relative; display: flex; } .house a { flex: 1; min-width: 0; min-height: 190px; padding: 20px 22px; background: var(--sky); text-decoration: none; font-weight: 500; } .house a:first-of-type { padding-inline-start: var(--gutter); flex: 1.28; } .house .dark { color: var(--salt); } .house svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; } .house a:focus-visible { outline-offset: -8px; }
[dir=rtl] .house svg { transform: scaleX(-1); }
@media (hover: hover) { .house a:hover, .foot a:hover { text-decoration: underline; text-underline-offset: 6px; } }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px 40px; padding-block: 64px max(40px, env(safe-area-inset-bottom, 0px)); font-size: 17px; } .foot ul { list-style: none; padding: 0; } .foot b { font-weight: 500; color: var(--wet-sand); } .foot a:not(.logo) { display: inline-block; padding-block: 7px; text-decoration: none; } .foot .fine { grid-column: 1 / -1; font-size: 15px; color: #6a4e28; max-width: 52em; } .foot .logo { justify-self: start; align-self: start; }

/* Moving between pages opens a door */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
.bar { view-transition-name: bar; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: door .55s cubic-bezier(.77, 0, .175, 1) both; }
@keyframes door { from { clip-path: inset(0 50%); } to { clip-path: inset(0); } }

/* ?review: wording that is waiting for the founder */
/* Privacy policy and terms */
.paper { padding-block: clamp(120px, 18vh, 200px) clamp(60px, 10vh, 120px); } .paper .lede { max-width: 32em; margin-top: 28px; } .paper .draft { margin-top: 28px; font-weight: 500; }
.paper section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 16px 60px; margin-top: clamp(44px, 7vh, 76px); } .paper h2 { font-size: clamp(22px, 1.8vw, 30px); line-height: 1.25; letter-spacing: -.01em; }
.paper section > div { display: grid; gap: 16px; max-width: 40em; } .paper :is(ul, ol) { display: grid; gap: 12px; padding-inline-start: 1.3em; margin: 0; } .paper b { font-weight: 600; } html:lang(ar) .paper b { font-weight: 500; } .paper mark, .also mark { background: var(--silt); color: inherit; padding: 1px 6px; } .also { padding-bottom: 90px; }
.agree { grid-column: 1 / -1; display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; font-size: 17px; line-height: 1.6; cursor: pointer; } .agree input { width: 26px; height: 26px; margin: 0; accent-color: var(--ghadeer); } .agree [aria-invalid=true] { outline: 3px solid var(--ruby); outline-offset: 2px; } .nobody { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .btn:disabled { opacity: .55; cursor: wait; }
.review [data-draft] { outline: 4px dashed var(--ruby); outline-offset: -4px; }

@media (max-width: 1240px) { .bar nav { display: none; } .bar .lang { margin-inline-start: auto; } .bar { gap: 22px; } .menu-open { display: flex; } }
@media (max-width: 480px) { .bar .lang { display: none; } .bar .btn { margin-inline-start: auto; } .bar { gap: 18px; } .bar .logo { width: 80px; overflow: hidden; } .bar .logo svg { max-width: none; } }
@media (max-width: 820px) {
  html { font-size: 17px; }
  .intro, .first .wrap, .close .wrap { grid-template-columns: 1fr; }
  .first .copy, .close .copy { padding-bottom: 12px; }
  .first .wrap { min-height: 0; }
  .gdoor { width: min(62vw, 300px); padding-bottom: 26%; } .first .dune { height: 120px; }
  .close .doors { width: min(62vw, 300px); }
  .suite { flex-direction: column; height: auto; } .suite-line { display: none; }
  .suite article { width: auto; min-height: 330px; padding-inline: var(--gutter); background: var(--sky); }
  .suite article p { opacity: 1 !important; width: auto; max-width: 24em; padding-bottom: 130px; }
  .suite article > .dune { position: absolute; inset: auto 0 0; width: 100%; margin: 0; height: 130px; }
  .suite button { width: auto; cursor: default; }
  :is(.split, .name .wrap, .ledger .wrap, .write .wrap, .write.single .wrap, .vows .wrap > div, .doorsign .wrap) { grid-template-columns: 1fr; }
  .terms div { grid-template-columns: 1fr; } .path li { grid-template-columns: 1fr; padding-block: 20px; } .doorsign a { min-height: 190px; padding-inline: var(--gutter); } .letter { position: static; }
  .house { flex-direction: column; } .house a, .house a:first-of-type { flex: none; min-height: 84px; padding-inline: var(--gutter); display: flex; align-items: center; font-size: 20px; } .foot { grid-template-columns: 1fr 1fr; } .foot .logo { grid-column: 1 / -1; }
  .onward i { width: 84px; } .letterform { grid-template-columns: 1fr; }
}
/* Portrait: the door moves below the words */
@media (max-aspect-ratio: 1/1) {
  .live .walk { height: calc(var(--walk, 20) * 62svh + 100svh); }
  .live .beat { max-width: 66vw; inset-block-start: max(11svh, 88px); } .beat h3 { font-size: clamp(27px, 7vw, 60px); } .beat { gap: 12px; } .beat p { font-size: clamp(16px, 2.3vw, 22px); } .names a.dark { color: var(--basalt); } .live .names a { translate: 0 0; font-size: 14px; } [dir=rtl].live .names a { translate: -100% 0; }
  .threshold, .threshold.wide { align-items: start; } .threshold .copy, .threshold.wide .copy { max-width: 640px; grid-template-columns: 1fr; padding: max(13svh, 104px) 0 0; gap: 20px; } .threshold h1 { font-size: clamp(42px, 11.5vw, 96px); } .threshold img { object-position: 50% 100%; transform-origin: 50% 72%; }
  .photos .room .copy { max-width: 640px; padding: 0; } .photos .room { justify-content: flex-start; padding-top: 12svh; background-position: 50% 100%; }
  .live .room { justify-content: flex-start; padding-top: max(12svh, 92px); }
  .live .room .copy { max-width: 620px; gap: 14px; padding: 0; } .live .room p { font-size: clamp(16.5px, 2.3vw, 22px); }
  .live .room h1 { font-size: clamp(46px, 13.5vw, 108px); } .live .room h2 { font-size: clamp(36px, 10vw, 80px); }
  html.live:lang(ar) .room h1 { font-size: clamp(46px, 12.4vw, 90px); }
}
/* Phones held sideways and other short screens */
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .bar { padding-top: 12px; padding-bottom: 8px; }
  .live .room { justify-content: flex-start; padding-top: 72px; }
  .live .room .copy { gap: 10px; padding-bottom: 0; }
  html.live .room :is(h1, h2) { font-size: min(7vw, 15vh); line-height: 1.02; }
  html.live .room h2 { font-size: min(5vw, 12vh); }
  html.live:lang(ar) .room h1 { font-size: min(6.4vw, 14vh); line-height: 1.3; }
  html.live:lang(ar) .room h2 { font-size: min(5vw, 12vh); line-height: 1.3; }
  html.live .room p { font-size: 16px; line-height: 1.45; }
  .live .hero .actions { margin-top: 0; } .live .hero .btn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
@media (max-width: 820px) { .paper section { grid-template-columns: 1fr; } }
.prose .mail { font-size: clamp(24px, 2.5vw, 42px); overflow-wrap: anywhere; }
.fine a { margin-inline-start: 1em; }
