/* The rooms behind the doors (web, app, UI/UX, graphic design): top bar, intro, stacked project cards, device frames. */

:root {
  --bg: #E8E4E0;
  --fg: #1A1818;
  --fg-rgb: 26, 24, 24;
  --card: #F3F0EC;
  --card-line: rgba(26, 24, 24, .08);
  --accent: #6B4F4F;
  --room: #FBFAF8;
  --shadow: 0 -1px 0 rgba(255, 255, 255, .6) inset, 0 30px 60px -30px rgba(26, 24, 24, .35), 0 -12px 40px -24px rgba(26, 24, 24, .25);
  color-scheme: light;
}
html[data-mode="dark"] {
  --bg: #1A1818;
  --fg: #E8E4E0;
  --fg-rgb: 232, 228, 224;
  --card: #232020;
  --card-line: rgba(232, 228, 224, .08);
  --accent: #D9C6C6;
  --room: #050505;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 30px 60px -30px rgba(0, 0, 0, .8), 0 -12px 40px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  overscroll-behavior-y: none;
  scrollbar-width: none;
  background: #1A1818;
}
html[data-mode="dark"] { background: #0F0E0E; }
html::-webkit-scrollbar { display: none; }
body {
  min-height: 100vh;
  overflow-x: clip;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #6B5C5C; outline-offset: 3px; }

/* arriving: the room's own colour, the same as the doorway you walked through, fades away */
.room-glow {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--room);
  pointer-events: none;
  animation: glowOut .8s ease .15s forwards;
}
@keyframes glowOut { to { opacity: 0; visibility: hidden; } }
html.embed .room-glow { animation: none; transition: opacity .45s ease, visibility 0s linear .45s; }
html.embed.in .room-glow { visibility: hidden; opacity: 0; }
html.embed.out .room-glow { visibility: visible; opacity: 1; transition: opacity .4s ease; }

/* ---------- top bar ---------- */
.roombar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  transition: background .35s ease, box-shadow .35s ease;
}
.roombar.stuck { box-shadow: 0 1px 0 rgba(var(--fg-rgb), .1); }
.roombar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 0;
  max-width: 88rem;
  margin: 0 auto;
  padding: 1.1rem max(16px, env(safe-area-inset-right)) 1.1rem max(16px, env(safe-area-inset-left));
  transition: padding .35s ease;
}
.roombar.stuck .roombar__in { padding-block: .8rem; }
@media (min-width: 1024px) { .roombar__in { padding-inline: 88px; } }
.roombar nav { min-width: 0; }
.roombar nav ul {
  display: none;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
.roombar nav button {
  padding: 0;
  color: var(--fg);
  font-size: 1rem;
  font-weight: 500;
  opacity: .8;
  transition: opacity .2s;
}
.roombar nav button:hover,
.roombar nav button[aria-current] { opacity: 1; }
.roombar nav button[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
}
.roombar__clock {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .9rem;
  border: 1px solid rgba(var(--fg-rgb), .12);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
}
.roombar__clock span { color: rgba(var(--fg-rgb), .68); }
.roombar__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 2.75rem;
  padding: 0 1.05rem 0 .95rem;
  border: 1px solid rgba(var(--fg-rgb), .12);
  border-radius: 999px;
  color: var(--fg);
  font: 500 .9375rem/1 var(--font);
}
.roombar__menu svg { width: 1.1rem; height: 1.1rem; }

/* the menu, full screen, on small screens */
.roombar__panel {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  padding: max(1rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  background: var(--bg);
  color: var(--fg);
  opacity: 0;
  transition: opacity .4s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .4s;
}
.roombar.open .roombar__panel { visibility: visible; opacity: 1; transition-delay: 0s; }
/* a wash of colour sweeps up behind the items as it opens */
.roombar__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 12% 100%, rgba(164, 85, 44, .2), transparent 70%),
    radial-gradient(60% 50% at 95% 4%, rgba(196, 176, 176, .18), transparent 72%);
  opacity: 0;
  transform: translateY(12%) scale(1.08);
  transition: opacity .6s ease, transform .9s var(--ease-soft);
}
.roombar.open .roombar__panel::before { opacity: 1; transform: none; }
.roombar__phead {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  margin-bottom: auto;
}
.roombar__plabel {
  color: rgba(var(--fg-rgb), .5);
  font: 600 .75rem/1 var(--font);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.roombar__pclose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(var(--fg-rgb), .14);
  border-radius: 999px;
  color: var(--fg);
  transition: background .25s, transform .35s var(--ease-soft);
}
.roombar__pclose:hover { background: rgba(var(--fg-rgb), .08); transform: rotate(90deg); }
.roombar__pclose svg { width: 1.15rem; height: 1.15rem; }
.roombar__plist {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .1rem;
  padding-block: 2rem;
  counter-reset: rbc;
}
/* each line rises into place, one after the other */
.roombar__plist button {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: .85rem;
  width: 100%;
  padding: .45rem 0;
  color: var(--fg);
  font: 600 clamp(2rem, 9.5vw, 2.9rem)/1.06 var(--font);
  letter-spacing: -.03em;
  text-align: left;
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity .5s ease, transform .66s var(--ease-soft), color .25s ease;
}
.roombar.open .roombar__plist button { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 55ms + 90ms); }
.roombar__plist button::before {
  content: counter(rbc, decimal-leading-zero);
  counter-increment: rbc;
  color: rgba(var(--fg-rgb), .38);
  font: 600 .8125rem/1 var(--mono);
  letter-spacing: .1em;
  transition: color .25s;
}
.roombar__plist button[aria-current]::before { color: #A4552C; }
@media (hover: hover) {
  .roombar__plist button:hover,
  .roombar__plist button:hover::before { color: #A4552C; }
}
.roombar__pfoot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(var(--fg-rgb), .1);
  color: rgba(var(--fg-rgb), .55);
  font: 500 .8125rem/1.4 var(--font);
  opacity: 0;
  transform: translateY(.6rem);
  transition: opacity .5s ease .34s, transform .6s var(--ease-soft) .34s;
}
.roombar.open .roombar__pfoot { opacity: 1; transform: none; }
html.menu-lock,
html.menu-lock body { overflow: hidden; }

/* "Back to the doors": in the bar on small screens, floating bottom-left on large ones */
.backlink {
  order: -2;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .5rem;
  height: 2.75rem;
  padding: 0 1.1rem 0 .85rem;
  border: 1px solid rgba(var(--fg-rgb), .14);
  border-radius: 999px;
  background: rgba(var(--fg-rgb), .05);
  color: var(--fg);
  font: 500 .9375rem/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-.5rem);
  transition: opacity .35s ease, transform .45s var(--ease-soft), background .25s ease, border-color .25s ease;
}
.backlink.show { opacity: 1; transform: none; }
.backlink svg { width: 1.05rem; height: 1.05rem; transition: transform .35s var(--ease-soft); }
@media (hover: hover) {
  .backlink:hover { border-color: rgba(var(--fg-rgb), .26); background: rgba(var(--fg-rgb), .1); }
  .backlink:hover svg { transform: translateX(-3px); }
}
.backlink:focus-visible { outline: 2px solid #C4B0B0; outline-offset: 3px; }
@media (min-width: 1200px) {
  .roombar nav ul { display: flex; }
  .roombar__menu,
  .roombar__panel { display: none !important; }
  .backlink {
    position: fixed;
    top: auto;
    bottom: max(1.5rem, calc(env(safe-area-inset-bottom) + 1rem));
    left: max(1.5rem, env(safe-area-inset-left));
    z-index: 60;
    height: 3rem;
    padding: 0 1.25rem 0 1rem;
    border-color: transparent;
    background: var(--back-bg, rgba(26, 24, 24, .9));
    color: var(--back-fg, #E8E4E0);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
  }
  .backlink:hover { border-color: transparent; background: var(--back-bg, rgba(26, 24, 24, 1)); }
}
html[data-mode="dark"] .backlink { --back-bg: rgba(232, 228, 224, .92); --back-fg: #1A1818; }
@media (max-width: 1199.98px) {
  .roombar nav,
  .roombar__clock { display: none; }
  .roombar__menu { order: 99; margin-left: auto; }
}
@media (max-width: 359.98px) {
  .backlink, .roombar__menu { font-size: .8125rem; }
  .backlink { padding: 0 .85rem 0 .7rem; }
  .roombar__menu { padding: 0 .85rem; }
}

/* ---------- intro ---------- */
.room-wrap {
  max-width: 88rem;
  margin: 0 auto;
  padding: 24px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
@media (min-width: 1024px) { .room-wrap { padding-inline: 88px; } }
.room-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: clamp(28px, 4vw, 44px);
  text-align: left;
}
.room-intro h1 {
  font-size: clamp(34px, 8.2vw, 104px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.room-intro p {
  max-width: 52ch;
  color: rgba(var(--fg-rgb), .68);
  font-size: 17px;
  line-height: 1.55;
}

/* ---------- stacked project cards ---------- */
.stack { position: relative; padding-bottom: 12vh; }
.project {
  position: sticky;
  top: calc(var(--bar-h, 72px) + 16px + var(--i) * 14px);
  overflow: hidden;
  margin-bottom: 6vh;
  border: 1px solid var(--card-line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  transform-origin: 50% 0;
  will-change: transform;
}
.project__in {
  display: grid;
  gap: 28px;
  min-height: min(calc(100vh - var(--bar-h, 72px) - 120px), 720px);
  padding: 28px;
}
@media (min-width: 900px) {
  .project__in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 40px;
    padding: 48px 52px;
  }
  .project.flip .project__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .project.flip .project__info { order: 2; }
}
.project__dim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #000;
  pointer-events: none;
  opacity: 0;
}
.project__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.project h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.02em;
}
.project__sub { margin-bottom: 22px; color: rgba(var(--fg-rgb), .7); font-size: 15px; font-weight: 500; }
.project__desc { max-width: 44ch; margin-bottom: 26px; color: rgba(var(--fg-rgb), .75); font-size: 16px; line-height: 1.6; }
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; padding: 0; list-style: none; }
.project__tags li {
  padding: 7px 12px;
  border: 1px solid rgba(var(--fg-rgb), .14);
  border-radius: 999px;
  color: rgba(var(--fg-rgb), .8);
  font-size: 13px;
  font-weight: 500;
}
.project__live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  transition: transform .3s var(--ease-soft);
}
.project__live:hover { transform: translateY(-2px); }
.project__live svg { width: 16px; height: 16px; }
/* a live link and a quieter link to the code, side by side */
.project__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.project__links + .project__note { margin-top: 18px; }
.project__code {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(var(--fg-rgb), .78);
  font-size: 14px;
  font-weight: 600;
  transition: color .3s ease;
}
.project__code::after {
  content: "";
  position: absolute;
  inset: auto 0 11px;
  height: 1px;
  background: currentColor;
  opacity: .35;
  transition: opacity .3s ease;
}
.project__code:hover { color: var(--fg); }
.project__code:hover::after { opacity: 1; }
.project__note { display: flex; align-items: center; gap: 8px; color: rgba(var(--fg-rgb), .68); font-size: 13px; font-weight: 500; }
.project__note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7a8670; }

/* the desktop: a monitor turned slightly side-on */
.stage { position: relative; padding: 10px 0 28px; perspective: 1900px; perspective-origin: 50% 40%; }
.monitor {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  transform: rotateY(-17deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 1.2s var(--ease-soft);
}
.project.flip .monitor { transform: rotateY(17deg) rotateX(4deg); }
.project:hover .monitor { transform: rotateY(-12deg) rotateX(3deg); }
.project.flip:hover .monitor { transform: rotateY(12deg) rotateX(3deg); }
.monitor__body {
  --mp: clamp(5px, 1.3vw, 11px);
  position: relative;
  padding: var(--mp);
  border-radius: calc(var(--mp) + 8px);
  background: linear-gradient(160deg, #2a2828, #0d0c0c 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .12);
  transform-style: preserve-3d;
}
/* its thickness: an edge you see because it is turned */
.monitor__body::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  bottom: 10px;
  width: 22px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, #bdb9b5, #8d8985 50%, #6f6b68);
  transform: rotateY(-90deg);
  transform-origin: 100% 50%;
}
.project.flip .monitor__body::before { right: auto; left: 0; transform: rotateY(90deg); transform-origin: 0 50%; }
.monitor__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: #000;
  transform: translateZ(.5px);
}
.monitor__screen img.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.monitor__screen video { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: contain; }
.monitor__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 28%, transparent 42%),
    linear-gradient(0deg, rgba(0, 0, 0, .12), transparent 30%);
}
.monitor__neck {
  position: relative;
  width: 15%;
  height: clamp(40px, 7vw, 78px);
  margin: -2px auto 0;
  background: linear-gradient(90deg, #8e8a86, #d9d5d0 45%, #b7b2ad 60%, #7e7a76);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  transform: translateZ(-30px);
}
.monitor__foot {
  width: 36%;
  height: 12px;
  margin: 0 auto;
  border-radius: 3px 3px 8px 8px;
  background: linear-gradient(180deg, #e5e1dc, #a9a49f);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
  transform: translateZ(-30px);
}
.stage::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 14px;
  left: 18%;
  z-index: -1;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .35), transparent);
  filter: blur(6px);
}
html[data-mode="dark"] .stage::after { background: radial-gradient(closest-side, rgba(0, 0, 0, .8), transparent); }

/* the phone: turned slightly side-on (app rooms) */
.room-app .project__in { --w: clamp(210px, calc((100svh - var(--bar-h, 72px) - 240px) * .5), 320px); --sw: calc(var(--w) * .916); }
.room-app .stage { display: grid; place-items: center; padding: 6px 0 34px; perspective: 1600px; perspective-origin: 50% 45%; }
.phone {
  position: relative;
  width: var(--w);
  transform: rotateY(-21deg) rotateX(6deg) rotateZ(1.2deg);
  transform-style: preserve-3d;
  transition: transform 1.2s var(--ease-soft);
}
.project.flip .phone { transform: rotateY(21deg) rotateX(6deg) rotateZ(-1.2deg); }
.project:hover .phone { transform: rotateY(-12deg) rotateX(3deg) rotateZ(.5deg); }
.project.flip:hover .phone { transform: rotateY(12deg) rotateX(3deg) rotateZ(-.5deg); }
.phone__body {
  position: relative;
  padding: calc(var(--w) * .012);
  border-radius: calc(var(--w) * .168);
  background: linear-gradient(145deg, #e4e0db 0%, #8f8a85 22%, #5b5753 48%, #9d9893 74%, #e6e2dd 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 50px 80px -40px rgba(26, 24, 24, .55), 0 18px 30px -18px rgba(26, 24, 24, .35);
  transform-style: preserve-3d;
}
html[data-mode="dark"] .phone__body {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 50px 80px -40px rgba(0, 0, 0, .9), 0 18px 30px -18px rgba(0, 0, 0, .7);
}
.phone__body::before {
  content: "";
  position: absolute;
  top: calc(var(--w) * .16);
  right: 0;
  bottom: calc(var(--w) * .16);
  width: calc(var(--w) * .05);
  background: linear-gradient(180deg, #cfcac5, #8c8783 30%, #6d6965 70%, #b9b4af);
  transform: rotateY(-90deg);
  transform-origin: 100% 50%;
}
.project.flip .phone__body::before { right: auto; left: 0; transform: rotateY(90deg); transform-origin: 0 50%; }
.phone__btn { position: absolute; width: calc(var(--w) * .014); border-radius: 2px; background: linear-gradient(90deg, #6e6a66, #bdb8b3); transform: translateZ(-1px); }
.phone__btn.l { left: calc(var(--w) * -.008); }
.phone__btn.r { right: calc(var(--w) * -.008); }
.phone__screen {
  position: relative;
  box-sizing: content-box;
  overflow: hidden;
  aspect-ratio: 1180 / 2556;
  border: calc(var(--w) * .03) solid #050505;
  border-radius: calc(var(--w) * .156);
  background: #141414 center / cover no-repeat;
  transform: translateZ(.5px);
}
.phone__screen img,
.phone__screen video { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: calc(var(--w) * .126); object-fit: cover; }
.phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .03) 30%, transparent 44%);
}
.phone__island { position: absolute; top: calc(var(--sw) * .028); left: 34%; width: 32%; aspect-ratio: 126 / 37; border-radius: 999px; background: #000; }
.room-app .stage::after { right: auto; bottom: 10px; left: 50%; width: calc(var(--w) * 1.05); filter: blur(7px); transform: translateX(-50%); }
.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.app-id img { width: 58px; height: 58px; border-radius: 13px; box-shadow: 0 8px 18px -10px rgba(26, 24, 24, .5), 0 0 0 1px rgba(var(--fg-rgb), .06); }
.app-id .project__meta { margin-bottom: 0; }

/* arriving: the words rise in, the device slides in from its side */
.project .project__info > *,
.project .stage { transition: opacity .8s ease, transform 1s var(--ease-soft); }
.project:not(.seen) .project__info > * { opacity: 0; transform: translateY(18px); }
.project:not(.seen) .stage { opacity: 0; transform: translateX(40px); }
.project.flip:not(.seen) .stage { transform: translateX(-40px); }
.project .project__info > *:nth-child(2) { transition-delay: .05s; }
.project .project__info > *:nth-child(3) { transition-delay: .1s; }
.project .project__info > *:nth-child(4) { transition-delay: .15s; }
.project .project__info > *:nth-child(5) { transition-delay: .2s; }
.project .project__info > *:nth-child(6) { transition-delay: .25s; }

@media (max-width: 899.98px) {
  .project { top: calc(var(--bar-h, 64px) + 10px + var(--i) * 10px); border-radius: 22px; }
  /* phones: each card fits one screen, the device on top, the essentials below */
  .project__in { gap: 4px; min-height: auto; max-height: calc(100svh - var(--bar-h, 64px) - 40px); padding: 16px 18px 20px; }
  .stage { order: -1; padding: 4px 6% 18px; }
  .monitor__neck { height: 30px; }
  .project__meta { margin-bottom: 8px; font-size: 11px; }
  .project h2 { margin-bottom: 4px; font-size: 26px; }
  .project__sub { margin-bottom: 10px; font-size: 13px; }
  .project__desc {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.5;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }
  .project__tags { display: none; }
  .project__live { height: 44px; padding: 0 18px; font-size: 13px; }
  .monitor, .project.flip .monitor { transform: rotateY(-10deg) rotateX(3deg); }
  .project.flip .monitor__body::before { right: 0; left: auto; transform: rotateY(-90deg); transform-origin: 100% 50%; }
  .project:not(.seen) .stage, .project.flip:not(.seen) .stage { transform: translateY(20px); }
  .room-app .project__in { --w: clamp(150px, calc((100svh - var(--bar-h, 64px) - 370px) * .47), 230px); }
  .phone, .project.flip .phone { transform: rotateY(-14deg) rotateX(4deg) rotateZ(.6deg); }
  .project.flip .phone__body::before { right: 0; left: auto; transform: rotateY(-90deg); transform-origin: 100% 50%; }
  .app-id { gap: 12px; margin-bottom: 10px; }
  .app-id img { width: 42px; height: 42px; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .room-glow { display: none; }
  .project .project__info > *, .project .stage { opacity: 1 !important; transform: none !important; transition: none; }
}
