/* =================================================================
   Ans Ishfaq — Rooms
   An office you can walk through. The rooms are the content layer;
   everything you press floats above them on glass.
   ================================================================= */

@font-face { font-family: "Cormorant"; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("assets/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  color-scheme: light dark;
  --ink: #161411;
  --ink-2: #5d574c;           /* 6.7:1 on --paper */
  --gold: #7a5a12;            /* 5.9:1 on --paper */
  --gold-2: #a8822f;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: rgba(122, 90, 18, .2);
  --hair: rgba(22, 20, 17, .1);
  --f1: #7a5a14; --f2: #c9a24a; --f3: #f9e9b6;
  --seal-ink: rgba(70, 48, 6, .78);
  --foil: linear-gradient(115deg, #6f5216 0%, #a8822f 26%, #e2c172 46%, #fff3cf 52%, #c9a24a 64%, #7a5a14 100%);
  --foil-text: linear-gradient(115deg, #5e440a 0%, #8a6a1f 35%, #a8822f 55%, #6f5216 100%);   /* stays readable on cream */

  --glass: rgba(255, 255, 255, .68);
  --glass-thick: rgba(252, 250, 245, .9);
  --glass-dark: rgba(18, 16, 12, .46);
  --glass-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1px rgba(122, 90, 18, .14), 0 18px 40px -18px rgba(20, 14, 4, .45);
  --ink-btn: linear-gradient(180deg, #2d2c2a, #0c0c0b);
  --ink-btn-text: #fff;

  --b: 1.0625rem;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant", ui-serif, "New York", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.165, .84, .44, 1);
  --safe-t: env(safe-area-inset-top);
  --safe-b: env(safe-area-inset-bottom);
  --safe-l: env(safe-area-inset-left);
  --safe-r: env(safe-area-inset-right);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4efe4;
    --ink-2: #b5ad9d;          /* 8.1:1 on --paper */
    --gold: #e3c37b;
    --paper: #14120e;
    --surface: #1c1a15;
    --line: rgba(227, 195, 123, .2);
    --hair: rgba(255, 255, 255, .1);
    --seal-ink: rgba(42, 28, 2, .82);
    --glass: rgba(28, 26, 21, .62);
    --glass-thick: rgba(20, 18, 14, .9);
    --glass-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 0 0 1px rgba(227, 195, 123, .16), 0 18px 40px -18px rgba(0, 0, 0, .9);
    --ink-btn: linear-gradient(180deg, #f3e3b4, #d7b360);
    --ink-btn-text: #161411;
    --foil-text: linear-gradient(115deg, #c9a24a 0%, #e9cf88 45%, #f6e3a6 55%, #c9a24a 100%);
  }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #3a362f; --glass: rgba(255,255,255,.96); --glass-thick: #fff; }
}
@supports (font: -apple-system-body) {
  @media (hover: none) and (pointer: coarse) { html { font: -apple-system-body; } :root { --b: 1rem; } }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; overflow: hidden;
  background: #0b0a08; color: var(--ink);
  font-family: var(--sans); font-size: var(--b); line-height: 1.5; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.no-js body { overflow: auto; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
p, h1, h2, h3, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid #e3c37b; outline-offset: 3px; border-radius: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 300; padding: 12px 18px; border-radius: 999px; background: #fff; color: #161411; font-weight: 600; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* seal paint (shared sprite) */
.f1 { stop-color: var(--f1); } .f2 { stop-color: var(--f2); } .f3 { stop-color: var(--f3); }
.seal-ink { stroke: rgba(70, 48, 6, .78); }
.seal-text { font-family: var(--sans); font-size: 11.5px; font-weight: 700; fill: rgba(70, 48, 6, .78); letter-spacing: .5px; }
.seal-mono { font-family: var(--serif); font-weight: 700; font-size: 25px; fill: rgba(70, 48, 6, .78); }
.seal-star { fill: rgba(70, 48, 6, .78); }

/* scene text */
.wall-name { font-family: var(--serif); font-weight: 600; letter-spacing: -2px; }
.wall-sub { font-family: var(--sans); font-weight: 700; letter-spacing: 6px; }
.plaque-text { font-family: var(--sans); font-weight: 800; fill: #3d2c07; letter-spacing: 3px; }
.card-mini { font-family: var(--sans); font-weight: 800; fill: #7a5a12; letter-spacing: 1.5px; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 250;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: #fbfaf6; color: #161411;
  transition: opacity 1s var(--ease), visibility 0s 1s;
}
@media (prefers-color-scheme: dark) { .loader { background: #0b0a08; color: #f4efe4; } }
.loader.is-done { opacity: 0; visibility: hidden; }
.no-js .loader { display: none; }
.loader-seal { width: 110px; height: 110px; animation: loader-turn 3s var(--ease) infinite; filter: drop-shadow(0 14px 22px rgba(80, 56, 10, .35)); }
@keyframes loader-turn { 0% { transform: rotate(0) scale(.96); } 50% { transform: rotate(180deg) scale(1); } 100% { transform: rotate(360deg) scale(.96); } }
.loader-title { font-family: var(--serif); font-weight: 600; font-size: 2rem; letter-spacing: -.01em; }
.loader-bar { width: 140px; height: 2px; border-radius: 2px; background: rgba(168, 130, 47, .2); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 100%; background: var(--foil); transform-origin: 0 50%; transform: scaleX(var(--p, .1)); transition: transform .4s var(--ease); }

/* ---------- Rooms ---------- */
main { position: fixed; inset: 0; outline: none; }
.no-js main { position: static; }
.room { position: absolute; inset: 0; }
.room[hidden] { display: none; }
.no-js .room { position: relative; height: 100vh; }
.no-js .room[hidden] { display: block; }
.room-viewport { position: absolute; inset: 0; overflow: hidden; }
.room-stage {
  position: absolute; left: 0; top: 0;
  /* covers the screen even before (or without) the script: rooms are 16:10 */
  width: var(--sw, max(100vw, 160vh)); height: var(--sh, max(62.5vw, 100vh));
  transform-origin: 50% 50%;
  will-change: transform, filter, opacity;
}
.layer { position: absolute; inset: 0; will-change: transform; }
.layer-fore { pointer-events: none; }
.layer-fore .hotspot { pointer-events: auto; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hotspots { position: absolute; inset: 0; }
@media (prefers-color-scheme: dark) {
  .room-stage .scene { filter: brightness(.86) saturate(1.05); }
}

/* Touch: the room is a canvas you swipe across */
.rooms-fallback .room-viewport { overflow: auto; }
.touch .room-viewport { overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.touch .room-viewport::-webkit-scrollbar { display: none; }

/* ---------- Hotspots (Drake-style expanding pills) ---------- */
.hotspot {
  position: absolute; z-index: 5;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;   /* full 44pt hit area */
  display: block;
  color: #fff;
  font-size: calc(var(--b) * .86); font-weight: 700; letter-spacing: -.005em;
}
.hs-dot {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .95);
  background: rgba(20, 16, 8, .28);
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
  box-shadow: 0 0 14px rgba(0, 0, 0, .3);
  transition: transform .5s var(--ease), background-color .3s;
  z-index: 2;
}
.hs-dot .i { width: 16px; height: 16px; stroke-width: 2.4; }
.hs-dot::after {   /* pulse */
  content: ""; position: absolute; inset: -2px; border-radius: inherit;
  border: 1.5px solid rgba(255, 255, 255, .8);
  animation: hs-pulse 2.6s var(--ease) infinite;
}
@keyframes hs-pulse { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(2.1); opacity: 0; } }
.hs-label {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-15px, -50%);
  height: 30px; display: flex; align-items: center;
  padding: 0 16px 0 40px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(20, 16, 8, .42);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  border: 1.5px solid rgba(255, 255, 255, .95);
  text-shadow: 0 0 10px rgba(0, 0, 0, .3);
  box-shadow: 0 0 14px rgba(0, 0, 0, .25);
  clip-path: inset(0 calc(100% - 30px) 0 0 round 999px);
  opacity: 0;
  transition: clip-path .5s var(--ease), opacity .3s;
  pointer-events: none;
}
.hs-left .hs-label { left: auto; right: 50%; transform: translate(15px, -50%); padding: 0 40px 0 16px; clip-path: inset(0 0 0 calc(100% - 30px) round 999px); }
.hotspot:hover .hs-label, .hotspot:focus-visible .hs-label, .hotspot.is-peek .hs-label { clip-path: inset(0 0 0 0 round 999px); opacity: 1; }
.hotspot:hover .hs-dot, .hotspot:focus-visible .hs-dot { background: rgba(20, 16, 8, .5); }
.hotspot:hover .hs-dot::after, .hotspot:focus-visible .hs-dot::after { animation: none; opacity: 0; }
.hotspot:focus-visible { outline: none; }
.hotspot:focus-visible .hs-label { outline: 3px solid #e3c37b; outline-offset: 3px; }
.hotspot:active .hs-dot { transform: scale(.9); }
/* On touch screens labels stay visible so every action is readable */
.touch .hs-label { clip-path: inset(0 0 0 0 round 999px); opacity: 1; }
/* when two labels would overlap on a small screen, the lower-priority one shows only its marker */
.touch .hotspot.hs-quiet .hs-label { clip-path: inset(0 calc(100% - 30px) 0 0 round 999px); opacity: 0; }
.touch .hs-left.hs-quiet .hs-label { clip-path: inset(0 0 0 calc(100% - 30px) round 999px); }

/* ---------- Floating chrome ---------- */
.topbar {
  position: fixed; z-index: 60;
  top: calc(var(--safe-t) + 14px); left: calc(var(--safe-l) + 14px); right: calc(var(--safe-r) + 14px);
  display: flex; align-items: center; gap: 10px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand, .topnav, .pill {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: var(--glass-shadow);
  border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 7px; }
.brand-seal { width: 38px; height: 38px; filter: drop-shadow(0 3px 5px rgba(80,56,10,.3)); transition: transform 1s var(--ease); }
.brand:hover .brand-seal { transform: rotate(-120deg); }
.brand span { font-family: var(--serif); font-weight: 700; font-size: calc(var(--b) * 1.32); white-space: nowrap; }
.topnav { display: flex; align-items: center; height: 52px; padding: 0 4px; }
.topnav button { height: 44px; padding: 0 16px; border-radius: 999px; font-size: calc(var(--b) * .88); font-weight: 600; transition: background-color .2s; }
.topnav button:hover { background: rgba(122, 90, 18, .1); }
.top-cta { margin-left: auto; }

.bottombar {
  position: fixed; z-index: 60;
  left: calc(var(--safe-l) + 14px); right: calc(var(--safe-r) + 14px); bottom: calc(var(--safe-b) + 14px);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  pointer-events: none;
}
.bottombar > * { pointer-events: auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px; font-weight: 600; font-size: calc(var(--b) * .88); }
.pill .i { color: var(--gold); width: 20px; height: 20px; }
.room-switch { padding: 0 4px; gap: 0; }
.rs-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; transition: background-color .2s; }
.rs-btn:hover { background: rgba(122, 90, 18, .1); }
.rs-name { min-width: 170px; text-align: center; display: flex; flex-direction: column; line-height: 1.1; }
.rs-count { font-size: calc(var(--b) * .66); font-weight: 700; letter-spacing: .14em; color: var(--ink-2); }
.rs-title { font-family: var(--serif); font-weight: 700; font-size: calc(var(--b) * 1.15); white-space: nowrap; }
.call-btn span { white-space: nowrap; }

.look-hint {
  position: fixed; z-index: 55; left: 50%; bottom: calc(var(--safe-b) + 84px);
  transform: translateX(-50%);
  padding: 10px 18px; border-radius: 999px;
  background: var(--glass-dark); color: #fff;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: calc(var(--b) * .8); font-weight: 600;
  pointer-events: none; white-space: nowrap;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.look-hint.is-gone { opacity: 0; transform: translate(-50%, 10px); }
.look-hint-touch { display: none; }
.touch .look-hint-desk { display: none; }
.touch .look-hint-touch { display: inline; }
.no-js .look-hint, .no-js .bottombar .room-switch { display: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: max(50px, 2.8em); padding: .5em 1.4em; border-radius: 999px;
  font-size: calc(var(--b) * .94); font-weight: 600; line-height: 1.15; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink-btn); color: var(--ink-btn-text); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 0 0 1px rgba(201,162,74,.55), 0 12px 26px -12px rgba(0,0,0,.55); }
.btn-ink .i { color: #c9a24a; }
@media (prefers-color-scheme: dark) { .btn-ink .i { color: #6f5216; } }
.btn-ink:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px #c9a24a, 0 18px 34px -12px rgba(168,130,47,.55); }
.btn-glass { background: var(--glass); color: var(--ink); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn-glass .i { color: var(--gold); }
.btn-sm { min-height: 52px; padding: 0 1.3em; font-size: calc(var(--b) * .88); }
.btn-block { width: 100%; }

/* ---------- Dialogs: sheets and the Explore drawer ---------- */
dialog { padding: 0; border: 0; color: var(--ink); background: none; max-width: none; max-height: none; overflow: visible; }
dialog::backdrop { background: rgba(10, 8, 4, .35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet {
  position: fixed; inset: 12px 12px 12px auto; margin: 0;
  width: min(480px, calc(100vw - 24px)); height: auto;
}
.sheet-inner, .drawer-inner {
  position: relative; height: 100%;
  background: var(--glass-thick);
  -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
  box-shadow: var(--glass-shadow);
  border-radius: 30px;
  overflow: auto; overscroll-behavior: contain;
}
.sheet-body { padding: 72px 32px 36px; display: flex; flex-direction: column; gap: 18px; }
.sheet-grabber { display: none; }
.sheet-close {
  position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(122, 90, 18, .1);
}
.sheet-close:hover { background: rgba(122, 90, 18, .18); }
.sheet-close .i { width: 20px; height: 20px; }
.sheet-body { clear: both; margin-top: -58px; }
.eyebrow { font-size: calc(var(--b) * .74); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.sheet-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.3rem, 1.6rem + 2vw, 3.1rem); line-height: 1; letter-spacing: -.02em; margin-top: -8px; }
.sheet-title em { font-style: italic; color: var(--gold); }
@supports (-webkit-background-clip: text) { .sheet-title em { background: var(--foil-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .05em; } }
.sheet-no { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 3rem; line-height: 1; color: var(--gold); }
.sheet-lead { font-family: var(--serif); font-weight: 600; font-size: calc(var(--b) * 1.45); line-height: 1.2; }
.sheet-text { color: var(--ink-2); }
.sheet-h3 { font-family: var(--serif); font-weight: 600; font-size: calc(var(--b) * 1.4); margin-top: 6px; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sheet-actions .btn { flex: 1 1 auto; }
.room-jump { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--gold); }
.room-jump:hover { text-decoration: underline; text-underline-offset: .2em; }
.logo-plate { display: grid; place-items: center; padding: 28px; border-radius: 22px; background: #fbf7ee; box-shadow: inset 0 0 0 1px rgba(168,130,47,.35), inset 0 0 0 8px #fbf7ee, inset 0 0 0 9px rgba(168,130,47,.2); }
.logo-plate img { max-width: 100%; max-height: 180px; width: auto; height: auto; }

.about-head { display: flex; align-items: center; gap: 18px; }
.about-photo { width: 104px; height: 138px; object-fit: cover; object-position: 50% 25%; border-radius: 999px 999px 18px 18px; box-shadow: 0 0 0 1px rgba(168,130,47,.4), 0 14px 28px -12px rgba(0,0,0,.5); flex: none; }
.roles { font-size: calc(var(--b) * .7); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats > div { padding: 16px 18px; border-radius: 20px; background: rgba(122, 90, 18, .07); }
.stat-num { font-family: var(--serif); font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; }
.stat-num sup { font-size: .5em; }
.stat-label { font-size: calc(var(--b) * .8); color: var(--ink-2); margin-top: 4px; }
.three { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.three li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-weight: 600; font-size: calc(var(--b) * 1.2); }
.three span { font-family: var(--sans); font-size: calc(var(--b) * .74); font-weight: 700; color: var(--gold); }
.signoff { display: flex; flex-direction: column; color: var(--ink-2); font-size: calc(var(--b) * .8); padding-top: 12px; border-top: 1px solid var(--line); }
.signoff span { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; color: var(--ink); line-height: 1.1; }

.list { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: rgba(122, 90, 18, .06); }
.list li + li { border-top: 1px solid var(--line); }
.list button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-height: 72px; text-align: left; transition: background-color .2s; }
.list button:hover { background: rgba(122, 90, 18, .08); }
.list-no { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.5rem; color: var(--gold); width: 1.8em; }
.list-text { flex: 1; display: flex; flex-direction: column; }
.list-text strong { font-weight: 600; }
.list-text span { color: var(--ink-2); font-size: calc(var(--b) * .82); }
.list .i { color: var(--ink-2); }

/* Contact card */
.card-scene { container-type: inline-size; perspective: 1400px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.card3d { position: relative; width: 100%; aspect-ratio: 1.75; transform-style: preserve-3d; transition: transform .9s var(--ease); transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))); cursor: pointer; }
.card3d.is-flipped { --flip: 180deg; }
.card-face { position: absolute; inset: 0; border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: linear-gradient(140deg, #fffef9 0%, #fbf5e6 55%, #f3e7c6 100%); color: #161411;
  box-shadow: 0 20px 40px -20px rgba(60,42,8,.55), inset 0 0 0 1px rgba(168,130,47,.45), inset 0 0 0 7px transparent, inset 0 0 0 8px rgba(168,130,47,.22);
  -webkit-backface-visibility: hidden; backface-visibility: hidden; font-size: clamp(.5rem, 2.55cqi, .74rem); }
.card-back { transform: rotateY(180deg); flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; }
.card-row { display: flex; justify-content: space-between; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.15em; }
.card-row-end { align-items: flex-end; }
.card-row-end span:last-child { text-align: right; }
.card-center { text-align: center; display: flex; flex-direction: column; gap: .2em; }
.card-name { font-family: var(--serif); font-weight: 700; font-size: clamp(1.2rem, 8cqi, 2rem); line-height: 1; color: #7a5a12; }
@supports (-webkit-background-clip: text) { .card-name { background: var(--foil-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; } }
.card-name-sm { font-size: clamp(1rem, 5.6cqi, 1.4rem); }
.card-role { font-family: var(--serif); font-weight: 600; font-size: 1.2em; letter-spacing: .08em; text-transform: uppercase; }
.card-role i { font-style: normal; color: #a8822f; font-size: .7em; margin-inline: .4em; }
.card-gloss { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(300px circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,.55), transparent 45%); mix-blend-mode: soft-light; }
.card-qr { width: 38%; flex: none; padding: 8px; border-radius: 10px; background: #fff; color: #161411; box-shadow: inset 0 0 0 1px rgba(168,130,47,.4); }
.card-back-copy { display: flex; flex-direction: column; gap: 6px; }
.card-back-sub { color: #5d574c; font-size: 1.05em; line-height: 1.35; }
.card-flip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: calc(var(--b) * .8); font-weight: 600; color: var(--ink-2); background: rgba(122, 90, 18, .08); }
.card-flip .i { color: var(--gold); transition: transform .8s var(--ease); }
.card-flip[aria-pressed="true"] .i { transform: rotate(180deg); }
.quick-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.quick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 68px; border-radius: 18px; font-size: calc(var(--b) * .78); font-weight: 600; background: rgba(122, 90, 18, .08); transition: background-color .2s, transform .3s var(--ease); }
.quick:hover { background: rgba(122, 90, 18, .14); }
.quick:active { transform: scale(.96); }
.quick .i { width: 22px; height: 22px; color: var(--gold); }
.share-status { color: var(--ink-2); font-size: calc(var(--b) * .82); min-height: 1.2em; margin-top: -8px; }
.share-details { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: calc(var(--b) * .82); }
.details { border-top: 1px solid var(--line); }
.details > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.details dt { font-size: calc(var(--b) * .72); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.details dd { font-family: var(--serif); font-weight: 600; font-size: calc(var(--b) * 1.12); line-height: 1.25; overflow-wrap: anywhere; }
.details dd a { display: inline-block; padding-block: 10px; margin-block: -10px; }
.details dd a:hover { color: var(--gold); }

/* Explore drawer, sliding from the left like Drake's */
.drawer { position: fixed; inset: 12px auto 12px 12px; margin: 0; width: min(380px, calc(100vw - 24px)); height: auto; }
.drawer-inner { padding: 28px 28px calc(28px + var(--safe-b)); }
.drawer .sheet-close { margin: 0; position: absolute; top: 14px; right: 14px; }
.drawer-h { font-size: calc(var(--b) * .74); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: 26px 0 8px; }
.drawer-h:first-of-type { margin-top: 6px; }
.drawer-rooms a { display: flex; align-items: baseline; gap: 14px; min-height: 52px; padding: 6px 0; font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 1.05; letter-spacing: -.01em; transition: color .2s, transform .4s var(--ease); }
.drawer-rooms a:hover { color: var(--gold); transform: translateX(4px); }
.drawer-rooms a[aria-current] { color: var(--gold); }
.d-no { font-family: var(--sans); font-size: calc(var(--b) * .7); font-weight: 700; color: var(--gold); letter-spacing: .1em; width: 1.9em; }
.drawer-companies { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-companies button { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 104px; padding: 12px; border-radius: 18px; background: #fbf7ee; color: #161411; box-shadow: inset 0 0 0 1px rgba(168,130,47,.3); font-size: calc(var(--b) * .76); font-weight: 600; transition: transform .3s var(--ease); }
.drawer-companies button:hover { transform: translateY(-2px); }
.drawer-companies img { max-width: 100%; max-height: 48px; width: auto; height: auto; }
.drawer-links button { min-height: 48px; font-weight: 600; font-size: calc(var(--b) * 1.05); }
.drawer-links button:hover { color: var(--gold); }
.drawer-foot { display: flex; flex-direction: column; gap: 2px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: calc(var(--b) * .86); color: var(--ink-2); }
.drawer-foot a { min-height: 44px; display: flex; align-items: center; color: var(--gold); font-weight: 600; }

/* dialog motion */
.sheet[open] .sheet-inner { animation: sheet-in .6s var(--ease); }
.drawer[open] .drawer-inner { animation: drawer-in .55s var(--ease); }
.drawer[open] li, .drawer[open] .drawer-h { animation: item-in .8s var(--ease) backwards; }
.drawer[open] li:nth-child(2) { animation-delay: .05s; } .drawer[open] li:nth-child(3) { animation-delay: .1s; }
.drawer[open] li:nth-child(4) { animation-delay: .15s; } .drawer[open] li:nth-child(5) { animation-delay: .2s; }
dialog[open]::backdrop { animation: fade-in .4s ease; }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes drawer-in { from { transform: translateX(-60px); opacity: 0; } }
@keyframes item-in { from { transform: translateX(-12px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.sheet.is-closing .sheet-inner { animation: sheet-out .3s ease forwards; }
.drawer.is-closing .drawer-inner { animation: drawer-out .3s ease forwards; }
@keyframes sheet-out { to { transform: translateX(40px); opacity: 0; } }
@keyframes drawer-out { to { transform: translateX(-60px); opacity: 0; } }

.noscript { position: fixed; inset: auto 0 0 0; z-index: 100; padding: 16px; background: #fff; color: #161411; text-align: center; }

/* ---------- Phones ---------- */
@media (max-width: 759px) {
  .topbar { top: calc(var(--safe-t) + 10px); left: calc(var(--safe-l) + 10px); right: calc(var(--safe-r) + 10px); }
  .topnav { display: none; }
  .brand { height: 48px; }
  .brand-seal { width: 34px; height: 34px; }
  .top-cta { min-height: 48px; padding: 0 1.1em; }
  .bottombar { left: calc(var(--safe-l) + 10px); right: calc(var(--safe-r) + 10px); bottom: calc(var(--safe-b) + 10px); gap: 8px; }
  .pill { height: 52px; }
  .explore-btn { padding: 0 16px; }
  .call-btn { display: none; }
  .room-switch { flex: 1; justify-content: space-between; min-width: 0; }
  .rs-name { min-width: 0; flex: 1; }
  .rs-title { overflow: hidden; text-overflow: ellipsis; }
  .look-hint { bottom: calc(var(--safe-b) + 76px); }

  .sheet { inset: auto 0 0 0; width: 100%; max-height: calc(100dvh - var(--safe-t) - 24px); }
  .sheet-inner { border-radius: 30px 30px 0 0; max-height: calc(100dvh - var(--safe-t) - 24px); padding-bottom: var(--safe-b); }
  .sheet-grabber { display: block; position: sticky; top: 0; z-index: 3; height: 24px; margin-bottom: -24px; touch-action: none; }
  .sheet-grabber::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(120, 110, 90, .45); }
  .sheet-body { padding: 64px 22px 28px; }
  .sheet[open] .sheet-inner { animation: sheet-up .5s var(--ease); }
  .sheet.is-closing .sheet-inner { animation: sheet-down .3s ease forwards; }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  @keyframes sheet-down { to { transform: translateY(100%); } }
  .drawer { inset: 0 auto 0 0; width: min(360px, calc(100vw - 48px)); }
  .drawer-inner { border-radius: 0 30px 30px 0; padding-top: calc(var(--safe-t) + 24px); }
  .drawer .sheet-close { top: calc(var(--safe-t) + 14px); }
  .hotspot { font-size: calc(var(--b) * .8); }
}
/* short landscape phones: slimmer chrome */
@media (max-height: 500px) and (orientation: landscape) {
  .brand, .topnav, .pill, .top-cta { height: 44px; min-height: 44px; }
  .brand-seal { width: 30px; height: 30px; }
  .topbar { top: calc(var(--safe-t) + 8px); }
  .bottombar { bottom: calc(var(--safe-b) + 8px); }
  .rs-count { display: none; }
  .look-hint { bottom: calc(var(--safe-b) + 62px); }
}
@media (max-width: 380px) {
  .top-cta { font-size: .85rem; padding: 0 .9em; }
  .top-cta .i { display: none; }
  .quick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-transparency: reduce) {
  .brand, .topnav, .pill, .sheet-inner, .drawer-inner, .hs-label, .hs-dot, .look-hint, .btn-glass { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .brand, .topnav, .pill, .sheet-inner, .drawer-inner, .btn-glass { background: var(--paper) !important; }
  .hs-label, .hs-dot, .look-hint { background: rgba(20, 16, 8, .85) !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .hs-dot, .hs-label, .pill, .brand, .btn { border: 1px solid CanvasText; }
}
