/* =============================================================
   Skyline Residences — full-screen app shell.
   No page scroll. Topbar + (stage | sidebar). Modal floats on top.
   ============================================================= */

:root {
  --bg:        #f5f5f7;
  --surface:   #ffffff;
  --surface-2: #fafafa;
  --line:      rgba(0, 0, 0, 0.07);
  --line-soft: rgba(0, 0, 0, 0.05);
  --line-strong: rgba(0, 0, 0, 0.14);

  --ink-1:     #1d1d1f;
  --ink-2:     #4b4b4f;
  --ink-3:     #86868b;
  --ink-4:     #b1b1b6;

  --accent:    #0066cc;

  --green:     #34c759;
  --green-soft:rgba(52, 199, 89, 0.16);
  --amber:     #ff9500;
  --amber-soft:rgba(255, 149, 0, 0.16);
  --red:       #ff3b30;
  --red-soft:  rgba(255, 59, 48, 0.16);

  --radius-s:  8px;
  --radius-m:  14px;
  --radius-l:  20px;
  --radius-xl: 26px;

  --shadow-1:  0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-2:  0 6px 16px rgba(0,0,0,0.06), 0 24px 48px rgba(0,0,0,0.10);
  --shadow-3:  0 16px 64px rgba(0,0,0,0.18);
  --shadow-glass: 0 0 0 1px rgba(255,255,255,0.5) inset, 0 8px 32px rgba(0,0,0,0.08);

  --font:      -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Inter", "Helvetica Neue", Arial, sans-serif;

  --topbar-h:  60px;
  --sidebar-w: 360px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;          /* full-screen app — no page scroll */
  overscroll-behavior: none;
}
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-1);
  background: var(--bg);
  letter-spacing: -0.01em;
}
img, canvas { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ======================== APP SHELL ======================== */
.app {
  height: 100vh;
  height: 100svh;            /* iOS safari, mobile vh */
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ======================== TOPBAR ======================== */
.topbar {
  flex: 0 0 var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 30;
}
.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.topbar__mark {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1d1d1f 0%, #2c2c2e 100%);
  position: relative;
}
.topbar__mark::after {
  content: '';
  position: absolute;
  inset: 7px;
  background:
    linear-gradient(transparent 40%, #fff 40% 60%, transparent 60%),
    linear-gradient(90deg, transparent 40%, #fff 40% 60%, transparent 60%);
}
.topbar__brand-text { min-width: 0; line-height: 1.15; }
.topbar__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-1);
}
.topbar__sub {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
  letter-spacing: 0.005em;
}

.topbar__legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  white-space: nowrap;
}
.chip__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-3);
}
.chip--available .chip__dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.chip--reserved  .chip__dot { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.chip--sold      .chip__dot { background: var(--red);   box-shadow: 0 0 0 3px var(--red-soft); }

/* ======================== WORKSPACE ======================== */
.workspace {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
}

/* stage wrap centers the square stage inside flex-1 area */
.stage-wrap {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;       /* enables cqw / cqh below */
  position: relative;
}

/* the stage is 1:1 (matches source render) and fills the smaller dim */
.stage {
  width: min(100cqw, 100cqh);
  height: min(100cqw, 100cqh);
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0,0,0,0.10), transparent 60%),
    linear-gradient(180deg, #f8f8fa 0%, #e9e9ec 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: grab;
}
.stage.is-dragging { cursor: grabbing; }
.stage.is-pointing { cursor: pointer; }

.stage__canvas, .stage__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stage__overlay {
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}
.stage.is-moving .stage__overlay { opacity: 0; }

/* ---------- drag hint ---------- */
.hint {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  z-index: 4;
}
.hint.is-hidden { opacity: 0; }

/* ---------- demo disclaimer (tiny grey, in topbar) ---------- */
.demo-note {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0.75;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 16px;
}

/* ---------- floating apt card ---------- */
.aptcard {
  position: absolute;
  z-index: 8;
  min-width: 240px;
  max-width: 280px;
  padding: 14px 14px 12px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-2);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  transition: opacity 0.18s var(--ease);
  opacity: 0;
}
.aptcard.is-visible { opacity: 1; }
.aptcard__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 6px;
}
.aptcard__name { font-size: 14px; font-weight: 600; letter-spacing: -0.015em; }
.aptcard__status {
  font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.aptcard__status--available { background: var(--green-soft); color: #1d8b3e; }
.aptcard__status--reserved  { background: var(--amber-soft); color: #b76300; }
.aptcard__status--sold      { background: var(--red-soft);   color: #b3201a; }
.aptcard__floor { font-size: 11px; color: var(--ink-3); margin-bottom: 10px; }
.aptcard__metrics { display: flex; gap: 14px; margin-bottom: 10px; }
.aptcard__metric { display: flex; flex-direction: column; }
.aptcard__metric-num { font-size: 14px; font-weight: 600; color: var(--ink-1); letter-spacing: -0.015em; }
.aptcard__metric-lbl { font-size: 9px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.aptcard__price-row { display: flex; align-items: baseline; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.aptcard__price { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.aptcard__cta { font-size: 11px; font-weight: 500; color: var(--accent); }
.aptcard__cta::after { content: ' →'; }

/* ---------- loader ---------- */
.loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #f8f8fa 0%, #e9e9ec 100%);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { width: min(360px, 80%); text-align: center; }
.loader__mark {
  width: 36px; height: 36px;
  background: var(--ink-1);
  border-radius: 9px;
  margin: 0 auto 18px;
  position: relative;
  animation: spin 2.4s linear infinite;
}
.loader__mark::after {
  content: '';
  position: absolute; inset: 8px;
  background:
    linear-gradient(transparent 40%, #fff 40% 60%, transparent 60%),
    linear-gradient(90deg, transparent 40%, #fff 40% 60%, transparent 60%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader__bar { height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.loader__fill { height: 100%; width: 0%; background: var(--ink-1); border-radius: 999px; transition: width 0.18s var(--ease); }
.loader__text { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ======================== SIDEBAR ======================== */
.sidebar {
  flex: 0 0 var(--sidebar-w);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--surface);
  min-height: 0;
  z-index: 20;
}
.sidebar__handle { display: none; }     /* mobile only */
.sidebar__header {
  flex: 0 0 auto;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.sidebar__title { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.sidebar__sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.sidebar__count {
  font-size: 11px; font-weight: 600;
  color: #1d8b3e;
  background: var(--green-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.sidebar__list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar__list::-webkit-scrollbar { width: 6px; }
.sidebar__list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.sidebar__footer {
  flex: 0 0 auto;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
}

/* ---------- residence card (in sidebar list) ---------- */
.rail__card {
  border-radius: var(--radius-m);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
  border: 1px solid transparent;
  background: var(--surface-2);
}
.rail__card:hover { background: var(--bg); border-color: var(--line); }
.rail__card.is-active {
  background: var(--bg);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-1);
}
.rail__card[data-status="sold"] { opacity: 0.55; }
.rail__card[data-status="sold"]:hover { opacity: 0.8; }

.rail__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rail__name { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.rail__pill {
  font-size: 9px; font-weight: 600;
  padding: 3px 7px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
}
.rail__pill--available { background: var(--green-soft); color: #1d8b3e; }
.rail__pill--reserved  { background: var(--amber-soft); color: #b76300; }
.rail__pill--sold      { background: var(--red-soft);   color: #b3201a; }

.rail__sub { font-size: 11px; color: var(--ink-3); }

.rail__metrics { display: flex; gap: 14px; }
.rail__metric { display: flex; flex-direction: column; }
.rail__metric-num {
  font-size: 13px; font-weight: 600;
  color: var(--ink-1); letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.rail__metric-lbl {
  font-size: 9px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 2px;
}

.rail__price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.rail__price {
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.rail__price-lbl {
  font-size: 9px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ======================== BUTTONS ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink-1); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink-1); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg); }

/* ======================== MODAL ======================== */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 20, 22, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade 0.25s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal__sheet {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  animation: pop 0.32s var(--ease);
  display: flex; flex-direction: column;
}
@keyframes pop {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  color: var(--ink-1);
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.modal__close:hover { background: #fff; transform: scale(1.05); }
.modal__scroll { overflow: auto; -webkit-overflow-scrolling: touch; flex: 1; }

/* modal content layout */
.apt { display: grid; grid-template-columns: 1.1fr 1fr; }
.apt__hero {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 100%);
  overflow: hidden;
}
.apt__hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.apt__hero-tag {
  position: absolute;
  top: 16px; left: 16px;
  padding: 5px 10px;
  font-size: 10px; font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.06em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.apt__body { padding: 32px 32px 32px; overflow-y: auto; }
.apt__statusrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.apt__statusrow .chip { background: var(--bg); border: 1px solid var(--line); }
.apt__title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 4px;
}
.apt__floor { color: var(--ink-3); font-size: 12px; margin-bottom: 4px; }
.apt__tag   { color: var(--ink-2); font-size: 13px; margin-bottom: 18px; }
.apt__metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.apt__metric { text-align: left; }
.apt__metric-num { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.apt__metric-lbl { font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.apt__pricerow { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.apt__price { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; }
.apt__pricelabel { font-size: 11px; color: var(--ink-3); }
.apt__desc { color: var(--ink-2); font-size: 14px; margin: 0 0 20px; }
.apt__sectiontitle {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); margin: 0 0 8px;
}
.apt__features {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
}
.apt__features li {
  font-size: 12px; color: var(--ink-2);
  padding-left: 18px; position: relative;
}
.apt__features li::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 10px; height: 10px;
  transform: translateY(-50%);
  background: var(--ink-1);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}
.apt__rooms {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px;
  font-size: 12px; color: var(--ink-2);
  margin: 0 0 20px; padding: 0; list-style: none;
}
.apt__rooms li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.apt__plan {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px;
  margin-bottom: 20px;
}
.apt__plan svg { display: block; width: 100%; height: auto; }
.apt__cta { display: flex; gap: 8px; flex-wrap: wrap; }

/* ======================== MOBILE ======================== */
@media (max-width: 900px) {
  :root {
    --topbar-h: 52px;
  }

  .topbar { padding: 0 14px; }
  .topbar__sub { display: none; }
  .topbar__name { font-size: 13px; }
  .topbar__legend { padding: 3px; gap: 2px; }
  .topbar__legend .chip { padding: 3px 7px; font-size: 10px; }
  .topbar__legend .chip span:not(.chip__dot) { display: none; }  /* dots only on mobile */

  /* swap the long disclaimer for a short tag on mobile so it fits the topbar */
  .demo-note { font-size: 0; margin: 0 8px; letter-spacing: 0.02em; }
  .demo-note::before { content: 'Demo-Vorschau'; font-size: 9px; }

  .stage-wrap { padding: 10px; }

  /* sidebar becomes a bottom sheet that overlays the stage */
  .sidebar {
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    height: 88vh;
    height: 88svh;
    /* default peek: about 44svh visible (handle + header + a few cards + CTA) */
    transform: translateY(calc(100% - 44svh));
    transition: transform 0.34s var(--ease);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);
    /* nudge content above iOS home-indicator */
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .sidebar.is-expanded { transform: translateY(0); }
  .sidebar__handle {
    display: flex;
    justify-content: center;
    padding: 10px 0 8px;
    width: 100%;
    cursor: grab;
  }
  .sidebar__handle-bar {
    width: 44px; height: 5px;
    background: var(--ink-4);
    border-radius: 999px;
  }
  .sidebar__header { padding: 6px 18px 14px; }
  .sidebar__title { font-size: 15px; }
  .sidebar__list { padding: 8px 12px 12px; }
  .sidebar__footer { padding: 12px 14px 18px; }
  .sidebar__footer .btn { padding: 13px 14px; font-size: 13px; }

  .sheet-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 19;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  .sheet-backdrop.is-visible { opacity: 1; visibility: visible; }

  /* don't push the stage */
  .workspace { display: block; height: 100%; }
  .stage-wrap {
    position: absolute;
    inset: 0;
    height: 100%;
    padding: 8px 8px calc(44svh + 8px); /* leave room for sheet peek */
  }

  /* hint smaller on mobile */
  .hint { font-size: 10px; padding: 5px 10px; bottom: 10px; }

  /* aptcard repositioning for thumbs */
  .aptcard { min-width: 200px; max-width: 240px; padding: 12px; }
  .aptcard__metric-num { font-size: 13px; }

  /* modal becomes a near-fullscreen sheet */
  .modal__sheet {
    width: calc(100vw - 8px);
    max-height: calc(100vh - 8px);
    max-height: calc(100svh - 8px);
    border-radius: var(--radius-l);
  }
  .apt { grid-template-columns: 1fr; }
  .apt__hero { aspect-ratio: 5/4; }
  .apt__body { padding: 22px 20px; }
  .apt__metrics { grid-template-columns: 1fr 1fr; }
  .apt__features { grid-template-columns: 1fr; }
}

/* tablet/desktop sheet-backdrop hidden */
@media (min-width: 901px) {
  .sheet-backdrop { display: none; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
