/* rahulsehjal.com
   System type, dark glass, hairlines. Nothing glows that wouldn't. */

:root {
  --bg: #0b0b0d;
  --text: #f5f5f7;
  --text-2: rgba(235, 235, 245, .64);
  --text-3: rgba(235, 235, 245, .38);
  --sep: rgba(255, 255, 255, .1);
  --fill: rgba(120, 120, 128, .26);
  --fill-2: rgba(120, 120, 128, .16);
  --blue: #0a84ff;
  --glass: rgba(28, 28, 30, .6);
  --sheet: rgba(28, 28, 30, .84);
  --f: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-d: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--f);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 980px;
  background: #f5f5f7;
  color: #1d1d1f;
  font: 500 14px/1 var(--f);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .2s var(--ease);
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(.97); }
.btn--gray { background: var(--fill); color: var(--text); }
.btn--gray:hover { background: rgba(120, 120, 128, .36); }
.link { color: var(--blue); font-size: 14px; text-decoration: none; }
.link:hover { text-decoration: underline; }


.toast {
  position: fixed;
  left: 50%;
  top: 20px;
  z-index: 60;
  padding: 8px 16px;
  border-radius: 980px;
  background: rgba(40, 40, 44, .9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16), 0 10px 30px rgba(0, 0, 0, .35);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity .25s, transform .4s var(--ease);
  pointer-events: none;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   The room and what sits over it
   ========================================================= */

#room, .loader, .tip, .hint, .corner, .back { display: none; }

html.room body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.room #room { display: block; position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; outline: none; cursor: default; }
html.room #room.pointing { cursor: pointer; }
html.room #room.grabbing { cursor: grabbing; }
html.room .foot { display: none; }

html.room .loader {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  transition: opacity .8s ease, visibility .8s;
}
.loader::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 2px;
  margin-left: -80px;
  border-radius: 1px;
  background: rgba(255, 255, 255, .12);
}
.loader i { position: absolute; left: calc(50% - 80px); top: 50%; width: 0; max-width: 160px; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .85); transition: width .3s ease; }
.loader.done { opacity: 0; visibility: hidden; }

html.room .sig {
  position: fixed;
  left: 24px;
  top: 20px;
  z-index: 5;
  opacity: 0;
  transition: opacity .8s ease .2s;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .55);
  cursor: pointer;
}
html.room.entered .sig { opacity: 1; }
.sig__name { margin: 0; font: 600 17px/1.2 var(--f-d); letter-spacing: -.01em; }
.sig__line { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }

html.room .tip {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(30, 30, 32, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 6px 20px rgba(0, 0, 0, .35);
  font-size: 12.5px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
}
.tip.on { opacity: 1; }

html.room .hint {
  display: block;
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 6;
  padding: 7px 14px;
  border-radius: 980px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16);
  font-size: 13px;
  color: var(--text-2);
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity .6s, transform .6s var(--ease);
  pointer-events: none;
}
.hint.on { opacity: 1; transform: translate(-50%, 0); }

html.room .corner { display: flex; position: fixed; top: 18px; right: 20px; z-index: 20; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 980px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background .2s;
}
.pill:hover { background: rgba(58, 58, 62, .7); }
.pill svg { width: 16px; height: 16px; }
.pill .wave { display: none; }
.pill.is-on .wave { display: inline; }
.pill.is-on .mute { display: none; }
.pill--text { color: var(--text-2); }

html.room .back {
  display: flex;
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 980px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity .35s, transform .5s var(--ease);
}
html.room.in-sec .back { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.back button { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 10px; border-radius: 980px; transition: background .2s; }
.back button:hover { background: rgba(255, 255, 255, .1); }
.back button svg { width: 15px; height: 15px; }
#prevBtn, #nextBtn { width: 28px; padding: 0; justify-content: center; }
.back__sep { width: 1px; height: 16px; margin: 0 4px; background: var(--sep); }
#pagerNum { min-width: 44px; text-align: center; color: var(--text-2); font-variant-numeric: tabular-nums; }

html.room .corner, html.room .index { opacity: 0; pointer-events: none; transition: opacity .8s; }
html.room.ready .corner, html.room.ready .index { opacity: 1; pointer-events: auto; }

/* the index: a segmented control */
.index {
  position: relative;
  display: flex;
  gap: 2px;
  width: max-content;
  padding: 3px;
  border-radius: 12px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16), 0 10px 30px rgba(0, 0, 0, .3);
}
html.room .index { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translateX(-50%); }
.index a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 32px;
  padding: 0 16px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color .3s;
}
.index a:hover { color: var(--text); }
.index a.on { color: #1d1d1f; }
.index a svg { display: none; width: 22px; height: 22px; }
.index__hl {
  position: absolute;
  z-index: 0;
  border-radius: 9px;
  background: #f5f5f7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  opacity: 0;
  transition: left .45s var(--ease), top .45s var(--ease), width .45s var(--ease), height .45s var(--ease), opacity .25s;
}
.index.has-on .index__hl { opacity: 1; }

/* =========================================================
   Projects: the desktop on the display
   ========================================================= */

.sec-h { margin: 0 0 16px; font: 700 34px/1.1 var(--f-d); letter-spacing: -.022em; }
html.room .sec-h { display: none; }

.mac {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  color: #f2f2f5;
  background:
    radial-gradient(60% 90% at 85% 105%, rgba(255, 92, 70, .65), transparent 70%),
    radial-gradient(50% 70% at 8% -10%, rgba(255, 70, 80, .35), transparent 70%),
    linear-gradient(150deg, #8f0c13, #6a080d 50%, #3d0407);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12);
}

html.room .desk { position: fixed; z-index: 10; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
html.room .desk.open { opacity: 1; visibility: visible; }
.desk.docked .mac { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; border-radius: 0; box-shadow: none; transform: scale(var(--s, 1)); transform-origin: 0 0; }
.desk.full { inset: 64px 10px 82px; }
.desk.full .mac { height: 100%; }

.menubar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  padding: 0 16px;
  background: rgba(12, 14, 20, .32);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  font-size: 13px;
  color: #fff;
}
.menubar__l { display: flex; align-items: center; }
.menubar__l b { font-weight: 600; margin-right: 22px; }
.menubar__l button { height: 22px; margin-right: 8px; padding: 0 6px; border-radius: 4px; margin-left: -6px; }
.menubar__l button + button { margin-left: 6px; }
.menubar__l button:hover { background: rgba(255, 255, 255, .18); }
.menubar__r { font-variant-numeric: tabular-nums; }

.mac__area { position: relative; flex: 1; min-height: 0; padding: 16px; overflow: auto; }
.desk.docked .mac__area { position: absolute; inset: 24px 0 0 0; padding: 0; overflow: visible; }

.win {
  display: none;
  flex-direction: column;
  min-height: 0;
  border-radius: 12px;
  background: rgba(31, 31, 35, .97);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .1), 0 22px 60px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.win.is-on { display: flex; animation: winIn .4s var(--ease); }
.desk.docked .win--finder { position: absolute; left: 140px; top: 28px; width: 1000px; height: 530px; }
.desk.docked .win--app { position: absolute; left: 80px; top: 22px; width: 1120px; height: 566px; }

.win__bar { position: relative; flex: none; display: flex; align-items: center; height: 40px; padding: 0 14px; }
.lights { display: flex; gap: 8px; z-index: 1; }
.lights button { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2); }
.lights button:nth-child(2) { background: #febc2e; }
.lights button:nth-child(3) { background: #28c840; }
.lights button::after { position: absolute; inset: 0; display: grid; place-items: center; font: 700 9px/1 var(--f); color: rgba(0, 0, 0, .55); opacity: 0; }
.lights button:nth-child(1)::after { content: "×"; font-size: 11px; }
.lights button:nth-child(2)::after { content: "−"; }
.lights button:nth-child(3)::after { content: "+"; }
.lights:hover button::after { opacity: 1; }
.win__title { position: absolute; left: 50%; display: flex; align-items: center; gap: 7px; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: #ececf0; white-space: nowrap; }
.win__title img { width: 16px; height: 16px; border-radius: 4px; }
.win__meta { margin-left: auto; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.finder { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 4px 20px 20px; overflow: auto; }
.desk.docked .finder { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); padding: 20px; overflow: hidden; }
.card { display: flex; flex-direction: column; min-height: 0; text-align: left; border-radius: 10px; }
.card__shot { flex: none; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: #2a2a2f; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08); }
.desk.docked .card__shot { flex: 1; min-height: 0; aspect-ratio: auto; }
.card__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__shot img { transform: scale(1.035); }
.card__meta { flex: none; display: flex; align-items: center; gap: 10px; height: 58px; }
.card__ico { flex: none; width: 28px; height: 28px; border-radius: 7px; }
.card__meta > span { min-width: 0; }
.card__meta b { display: block; font-size: 13px; font-weight: 600; color: #f2f2f5; }
.card__meta small { display: block; overflow: hidden; font-size: 11.5px; color: var(--text-2); white-space: nowrap; text-overflow: ellipsis; }

.app { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.desk.docked .app { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.desk.docked .win.zoomed .app { grid-template-columns: minmax(0, 1fr); }
.win.zoomed .app__info { display: none; }
.app__media { display: flex; flex-direction: column; min-height: 0; background: #141416; border-bottom: 1px solid var(--sep); }
.desk.docked .app__media { border-bottom: 0; border-right: 1px solid var(--sep); }
.gallery { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; touch-action: pan-y; }
.desk.docked .gallery { flex: 1; min-height: 0; aspect-ratio: auto; }
.gallery img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .4s ease; }
.gallery img.on { opacity: 1; }
.gallery__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  opacity: 0;
  transition: opacity .2s, background .2s;
}
.gallery__nav svg { width: 16px; height: 16px; }
.gallery:hover .gallery__nav, .gallery__nav:focus-visible { opacity: 1; }
.gallery__nav:hover { background: rgba(0, 0, 0, .65); }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__dots { position: absolute; left: 50%; bottom: 12px; display: flex; gap: 6px; transform: translateX(-50%); }
.gallery__dots button { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: background .2s; }
.gallery__dots button.on { background: #fff; }
.app__cap { flex: none; margin: 0; padding: 10px 16px; border-top: 1px solid var(--sep); font-size: 12px; color: var(--text-2); }

.app__info { min-height: 0; overflow: auto; padding: 22px 26px 26px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.app__kind { margin: 0 0 6px; font-size: 12px; color: var(--text-3); }
.app__info h3 { margin: 0; font: 700 28px/1.1 var(--f-d); letter-spacing: -.02em; color: #f5f5f7; }
.app__lede { margin: 4px 0 4px; font-size: 15px; color: var(--text-2); }
.app__info h4 { margin: 20px 0 6px; font-size: 13px; font-weight: 600; color: #f5f5f7; }
.app__info ul { margin: 0; padding-left: 18px; }
.app__info li { margin: 4px 0; padding-left: 2px; font-size: 13.5px; line-height: 1.5; color: rgba(235, 235, 245, .8); }
.app__info p { font-size: 13.5px; line-height: 1.5; color: rgba(235, 235, 245, .8); }
.app__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }

.dock {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 12px auto;
  padding: 9px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  overflow-x: auto;
  scrollbar-width: none;
}
.dock::-webkit-scrollbar { display: none; }
.desk.docked .dock { position: absolute; left: 50%; bottom: 8px; margin: 0; transform: translateX(-50%); overflow: visible; }
.dock__item { position: relative; flex: none; width: 46px; height: 46px; transform-origin: 50% 100%; transition: transform .3s var(--ease); }
.desk.docked .dock__item:hover, html:not(.room) .dock__item:hover { transform: scale(1.22) translateY(-4px); }
.dock__item img, .dock__folder { display: block; width: 100%; height: 100%; border-radius: 11px; }
.dock__folder { background: linear-gradient(#64aaf5, #3f8ae6); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3); }
.dock__folder::after { content: ""; position: absolute; left: 7px; right: 7px; top: 13px; bottom: 9px; border-radius: 4px; background: linear-gradient(#a3d0ff, #7db7f7); }
.dock__item i {
  position: absolute;
  bottom: 60px;
  left: 50%;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(40, 40, 44, .92);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity .15s;
  pointer-events: none;
}
.desk.docked .dock__item:hover i { opacity: 1; }
.dock__item.is-open::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.dock__sep { flex: none; align-self: center; width: 1px; height: 40px; margin: 0 2px; background: rgba(255, 255, 255, .28); }

/* =========================================================
   About and Contact: sheets beside the prop
   ========================================================= */

.sheet { position: relative; border-radius: 18px; background: var(--sheet); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12), 0 30px 80px rgba(0, 0, 0, .45); }
html.room .sheet {
  position: fixed;
  z-index: 10;
  top: 68px;
  right: 24px;
  bottom: 86px;
  width: min(430px, 38vw);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  backdrop-filter: blur(30px) saturate(1.8);
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px) scale(.98);
  transition: opacity .4s, transform .6s var(--ease), visibility .4s;
}
html.room .sheet.open { opacity: 1; visibility: visible; transform: none; }
.sheet__x { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--fill); color: var(--text-2); transition: background .2s; }
.sheet__x:hover { background: rgba(120, 120, 128, .4); color: var(--text); }
.sheet__x svg { width: 14px; height: 14px; }
html:not(.room) .sheet__x { display: none; }
.sheet__body { height: 100%; overflow: auto; padding: 28px 28px 30px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.sheet__eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.sheet h2 { margin: 0; font: 700 34px/1.1 var(--f-d); letter-spacing: -.022em; }
.sheet__sub { margin: 4px 0 18px !important; font-size: 17px !important; color: var(--text-2) !important; }
.sheet__body > p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: rgba(235, 235, 245, .82); }

.imsg { margin: 22px 0 6px; overflow: hidden; border-radius: 16px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08); }
.imsg__head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 12px 10px; border-bottom: 1px solid var(--sep); background: rgba(255, 255, 255, .03); text-align: center; }
.imsg__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(#a3a3a8, #6e6e73); }
.imsg__avatar svg { width: 30px; height: 30px; }
.imsg__head b { display: block; font-size: 12.5px; font-weight: 600; }
.imsg__head small { display: block; font-size: 11px; color: var(--text-3); }
.imsg__thread { display: flex; flex-direction: column; gap: 3px; max-height: 300px; padding: 14px 12px; overflow: auto; }
.bub { align-self: flex-start; max-width: 80%; margin: 0; padding: 8px 13px; border-radius: 18px; background: #3a3a3c; color: #fff; font-size: 15px; line-height: 1.35; animation: bubIn .35s var(--ease); }
.bub--me { align-self: flex-end; background: var(--blue); }
.bub--me + .bub:not(.bub--me), .bub:not(.bub--me) + .bub--me { margin-top: 8px; }
.bub--typing { display: flex; gap: 4px; padding: 12px 14px; }
.bub--typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); animation: dot 1.2s infinite; }
.bub--typing i:nth-child(2) { animation-delay: .15s; }
.bub--typing i:nth-child(3) { animation-delay: .3s; }
.imsg__asks { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 14px; border-top: 1px solid var(--sep); }
.imsg__asks button { height: 30px; padding: 0 12px; border-radius: 15px; box-shadow: inset 0 0 0 1px rgba(10, 132, 255, .55); color: #4ea4ff; font-size: 13.5px; transition: background .2s; }
.imsg__asks button:hover { background: rgba(10, 132, 255, .14); }

.facts { margin: 18px 0 0; overflow: hidden; border-radius: 12px; background: rgba(255, 255, 255, .055); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; font-size: 15px; }
.facts div + div { box-shadow: inset 0 .5px 0 var(--sep); }
.facts dt { color: var(--text); }
.facts dd { margin: 0; color: var(--text-2); text-align: right; }
.facts a { color: var(--blue); text-decoration: none; }
.facts a:hover { text-decoration: underline; }
.mail { display: inline-block; margin: 4px 0 18px; font: 600 22px/1.3 var(--f-d); letter-spacing: -.01em; color: var(--blue); text-decoration: none; overflow-wrap: anywhere; }
.mail:hover { text-decoration: underline; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   The flat page
   ========================================================= */

html:not(.room) body { overflow-x: hidden; }
html:not(.room) .sig { max-width: 1180px; margin: 0 auto; padding: 72px 20px 24px; }
html:not(.room) .sig__name { font-size: clamp(40px, 7vw, 72px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
html:not(.room) .sig__line { margin-top: 8px; font-size: 19px; }
html:not(.room) .index { position: sticky; top: 12px; z-index: 20; margin: 0 auto 8px; }
html:not(.room) main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; max-width: 1180px; margin: 0 auto; padding: 40px 20px 80px; }
html:not(.room) .sheet { max-width: 720px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; max-width: 1180px; margin: 0 auto; padding: 24px 20px 40px; border-top: 1px solid var(--sep); font-size: 13px; color: var(--text-2); }
.foot a { color: var(--blue); text-decoration: none; }
@media (min-width: 980px) {
  html:not(.room) .app { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  html:not(.room) .app__media { border-bottom: 0; border-right: 1px solid var(--sep); }
  html:not(.room) .gallery { aspect-ratio: auto; flex: 1; min-height: 360px; }
}

/* =========================================================
   Phones and narrow windows
   ========================================================= */

@media (max-width: 759px) {
  html.room .sig { left: 16px; top: 14px; }
  html.room .corner { top: 12px; right: 12px; }
  html.room .corner #modeLink { display: none; }
  html.room .back { top: 12px; left: 12px; transform: translateY(-6px); }
  html.room.in-sec .back { transform: none; }
  html.room.in-sec .sig { opacity: 0; pointer-events: none; }

  html.room .index, html:not(.room) .index {
    position: fixed;
    z-index: 20;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    margin: 0;
    justify-content: space-around;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-radius: 0;
    transform: none;
    box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .16);
  }
  html:not(.room) body { padding-bottom: 74px; }
  .index a { flex: 1; flex-direction: column; gap: 2px; min-width: 0; height: 50px; padding: 0; font-size: 10.5px; }
  .index a svg { display: block; }
  .index a.on { color: var(--blue); }
  .index__hl { display: none; }

  html.room .sheet { top: auto; left: 8px; right: 8px; bottom: 70px; width: auto; height: min(60vh, 600px); transform: translateY(24px); }
  .sheet__body { padding: 22px 20px 24px; }
  .sheet h2 { font-size: 30px; }
  html.room .hint { bottom: 82px; }

  .finder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 4px 12px 12px; }
  .card__meta small { display: none; }
  .card__meta { height: 48px; gap: 8px; }
  .card__ico { width: 24px; height: 24px; }
  .mac__area { padding: 10px; }
  .menubar__l button { display: none; }
  .app__info { padding: 18px 18px 22px; }
  .dock { gap: 8px; padding: 8px 10px; }
  .dock__item { width: 40px; height: 40px; }
  .dock__sep { height: 34px; }
}

/* =========================================================
   Motion
   ========================================================= */

@keyframes winIn { from { opacity: 0; transform: scale(.97); } }
@keyframes bubIn { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes dot { 0%, 100% { opacity: .35; } 40% { opacity: 1; } }

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