/* sillbrowser.io: the room. The 3D room fills the screen; the words sit on its left wall, crisp
   over the pixels, their ink following the room's light (dark by day, light at night). */

:root {
  --ink: #241c16;
  --ink-2: rgba(36, 28, 22, 0.66);
  --ink-3: rgba(36, 28, 22, 0.48);
  --ink-night: #fbf3e8;
  --ink-night-2: rgba(251, 243, 232, 0.72);
  --button: #241c16;
  --button-ink: #fbf6ee;
  --paper: #fbf7ef;
  --paper-ink: #2a221b;
  --red: #d9563f;
  --accent: #2f6fe8;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden;
  background: #2a2420; color: var(--ink);
  font: 400 17px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
}
body.is-night { --ink: var(--ink-night); --ink-2: var(--ink-night-2); --ink-3: rgba(251, 243, 232, 0.5); --button: #fbf3e8; --button-ink: #241c16; }
#room { position: fixed; inset: 0; display: block; image-rendering: pixelated; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------------------------------------------------------------- the words, on the wall */

.words {
  position: fixed; z-index: 2;
  left: max(6vw, 28px, env(safe-area-inset-left, 0px)); top: 50%;
  transform: translateY(-96%);
  width: min(30vw, 420px);
  display: grid; gap: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .8, .2, 1);
}
.words h1 {
  margin: 0;
  font: 500 clamp(64px, 8.2vw, 128px)/0.88 var(--display);
  letter-spacing: -0.05em;
  color: var(--ink);
  transition: color 1.2s;
}
.slogan { margin: 16px 0 0; font: 400 clamp(18px, 1.7vw, 24px)/1.3 var(--text); letter-spacing: -0.015em; color: var(--ink-2); transition: color 1.2s; }
.get { margin-top: clamp(22px, 3.4vh, 34px); display: grid; justify-items: start; gap: 10px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px 14px 20px; border-radius: 999px;
  background: var(--button); color: var(--button-ink);
  font: 600 16px/1 var(--text); letter-spacing: -0.01em; text-decoration: none;
  box-shadow: 0 10px 26px rgba(20, 12, 6, 0.28);
  transition: transform 0.3s cubic-bezier(.2, .9, .3, 1.35), background 1.2s, color 1.2s;
}
.button:hover { transform: translateY(-1px) scale(1.03); }
.button:active { transform: scale(0.96); transition-duration: 0.08s; }
.button svg { width: 16px; height: 16px; margin-top: -2px; }
.fine { font-size: 13px; color: var(--ink-3); transition: color 1.2s; }
.look { margin-top: 16px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.look a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color 1.2s; }
.look a:hover { color: var(--ink); }

/* without WebGL: the room as a picture */
body.no-webgl { background: #e9dccb url("/assets/room-still.jpg") center / cover no-repeat; }
body.no-webgl #room, body.no-webgl .clockface { display: none; }
/* (the still being taken: the room alone) */
body.is-still .words, body.is-still .hint { display: none; }

/* the opening: the words wait until the room is there */
body.is-intro .words { opacity: 0; transform: translateY(-92%); }
/* close to the laptop or the calendar: the words step aside */
body.is-close .words { opacity: 0; pointer-events: none; }

/* the alarm clock's digits: the room's own pixels, glowing a little */
.clockface {
  position: fixed; left: 0; top: 0; z-index: 1; pointer-events: none;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 3px rgba(255, 106, 61, 0.55));
}
body.is-close .clockface { opacity: 0; transition: opacity 0.3s; }

.hint {
  position: fixed; z-index: 4; left: 0; top: 0; pointer-events: none;
  padding: 6px 10px; border-radius: 8px;
  background: #241c16; color: #fbf6ee; font: 600 13px/1 var(--text);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ---------------------------------------------------------------- what opens over things */

.panel {
  position: fixed; z-index: 3;
  opacity: 0; transform: scale(0.985);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.2, .8, .2, 1);
}
.panel.is-open { opacity: 1; transform: none; }

/* the laptop's lid, laid over the one in the room (desk.js maps it onto its corners) */
.screen { transform-origin: 0 0; transition: none; }
.screen.is-open { transform: none; }
.bezel {
  position: absolute; left: 0; top: 0; width: 1050px; height: 700px; padding: 30px 34px 38px;
  border-radius: 26px 26px 6px 6px;
  background: linear-gradient(#26272b, #1b1c1f);
  box-shadow: inset 0 0 0 1.5px #3a3b40, inset 0 0 0 3px #111;
}
.bezel::before { content: ""; position: absolute; left: 50%; top: 12px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #0c0d0f; box-shadow: inset 0 0 0 1.5px #222; }
.display { position: relative; height: 100%; overflow: hidden; border-radius: 8px; background: #fff; }

/* ---- Sill's window, at its real size (points as px): 1228 × 790, shown at 0.8 to fill the display */
.win {
  --space: #f97316; --label: 29, 29, 31; --glass: rgba(250, 250, 252, 0.6); --snappy: cubic-bezier(0.2, 0.9, 0.3, 1);
  position: absolute; left: 0; top: 0; width: 1228px; height: 790px; transform: scale(0.8); transform-origin: 0 0;
  overflow: hidden; background: #fff; color: rgb(var(--label)); font: 400 14px/1.45 var(--text);
}
.win svg { display: block; }
/* (Liquid Glass, as near as a page can get: a frosted, bright, slightly lensed sheet) */
.glass { background: var(--glass); backdrop-filter: blur(22px) saturate(1.9) brightness(1.06); -webkit-backdrop-filter: blur(22px) saturate(1.9) brightness(1.06); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.85), 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 8px 28px rgba(0, 0, 0, 0.14); }

.viewport { position: absolute; inset: 0; }
.site { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
.site.on { visibility: visible; z-index: 2; }
.site.leaving { visibility: visible; z-index: 1; }
.site.fade-in { animation: page-in 0.38s ease-out; }
@keyframes page-in { from { opacity: 0; } }
.page { transition: transform 3.2s cubic-bezier(0.45, 0, 0.2, 1); }
.fav { flex: none; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; background: var(--f); color: #fff; font: 700 11px/1 var(--text); font-style: normal; }
.fav svg { width: 12px; height: 12px; }

/* Meadowlark */
.ml { background: #f7f3ea; color: #23281f; min-height: 790px; }
.ml-nav { height: 70px; padding: 0 56px 0 120px; display: flex; align-items: center; gap: 36px; border-bottom: 1px solid #e6dfd0; }
.ml-nav b { font: 600 25px/1 Georgia, "Times New Roman", serif; letter-spacing: -0.01em; }
.ml-nav nav { display: flex; gap: 26px; font-size: 14px; color: #5d6253; }
.ml-sub { margin-left: auto; padding: 9px 16px; border-radius: 6px; background: #2f5d3a; color: #fff; font: 600 13px/1 var(--text); font-style: normal; }
.ml-hero { position: relative; margin: 0; height: 430px; }
.ml-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; image-rendering: pixelated; }
.ml-hero figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 120px 34px; background: linear-gradient(transparent, rgba(10, 20, 10, 0.62)); color: #fff; }
.ml-hero figcaption span { font: 600 12px/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.ml-hero h1 { margin: 12px 0 10px; max-width: 760px; font: 600 54px/1.04 Georgia, "Times New Roman", serif; letter-spacing: -0.02em; }
.ml-hero figcaption p { margin: 0; font-size: 14px; opacity: 0.85; }
.ml-cols { display: grid; grid-template-columns: 1fr 300px; gap: 64px; padding: 40px 120px 120px; }
.ml-cols article p { margin: 0 0 18px; font: 19px/1.62 Georgia, "Times New Roman", serif; color: #2e3329; }
.ml-cols article .ml-lede { font-size: 23px; line-height: 1.45; color: #1d2219; }
.ml-cols article .ml-lede::first-letter { float: left; margin: 6px 10px 0 0; font: 600 64px/0.8 Georgia, serif; color: #2f5d3a; }
.ml-cols aside h4 { margin: 0 0 14px; font: 600 12px/1 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: #7d7a6c; }
.ml-card { display: grid; gap: 6px; margin-bottom: 20px; }
.ml-card img { width: 100%; height: 130px; object-fit: cover; border-radius: 6px; image-rendering: pixelated; }
.ml-card b { font: 600 17px/1.25 Georgia, serif; }
.ml-card span { font-size: 13px; color: #7d7a6c; }

/* Hollow Lane */
.hl { background: #fff; color: #222; min-height: 790px; }
.hl-nav { height: 72px; padding: 0 56px 0 120px; display: flex; align-items: center; gap: 28px; font-size: 14.5px; color: #555; border-bottom: 1px solid #eee; }
.hl-nav b { margin-right: 24px; display: flex; align-items: center; gap: 9px; font: 800 21px/1 var(--display); letter-spacing: -0.03em; color: #c2410c; }
.hl-nav b i { width: 22px; height: 22px; border-radius: 6px 6px 2px 2px; background: #c2410c; }
.hl-nav em { margin-left: auto; font-style: normal; font-weight: 600; color: #222; }
.hl-head { padding: 26px 120px 18px; }
.hl-head h1 { margin: 0 0 6px; font: 700 34px/1.1 var(--display); letter-spacing: -0.03em; }
.hl-head p { margin: 0; font-size: 14.5px; color: #555; } .hl-head p span { color: #222; font-weight: 600; }
.hl-photos { margin: 0 120px; height: 330px; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; border-radius: 14px; overflow: hidden; }
.hl-photos img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.hl-photos .big { grid-row: 1 / 3; }
.hl-body { display: grid; grid-template-columns: 1fr 320px; gap: 48px; padding: 28px 120px; }
.hl-about h3 { margin: 0 0 6px; font: 650 21px/1.2 var(--display); letter-spacing: -0.02em; }
.hl-about p { margin: 0 0 14px; color: #666; }
.hl-about ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; color: #444; } .hl-about b { color: #222; }
.hl-book { padding: 22px; border-radius: 14px; box-shadow: 0 0 0 1px #e8e8e8, 0 8px 26px rgba(0, 0, 0, 0.1); display: grid; gap: 14px; margin-top: -12px; }
.hl-book p { margin: 0; color: #666; } .hl-book p b { font: 700 22px/1 var(--display); color: #222; }
.hl-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #ddd; border-radius: 10px; }
.hl-dates span { padding: 9px 12px; font-size: 14px; } .hl-dates span + span { border-left: 1px solid #ddd; }
.hl-dates i { display: block; font: 700 10px/1.4 var(--text); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; }
.hl-book button { height: 46px; border: 0; border-radius: 10px; background: linear-gradient(90deg, #ea580c, #c2410c); color: #fff; font: 600 16px/1 var(--text); }
.hl-book small { text-align: center; color: #888; font-size: 12.5px; }

/* Forecast */
.fc { background: #eef3f9; color: #12263f; min-height: 790px; }
.fc-nav { height: 64px; padding: 0 56px 0 120px; display: flex; align-items: center; gap: 26px; background: #12263f; color: rgba(255, 255, 255, 0.75); font-size: 14px; }
.fc-nav b { font: 750 21px/1 var(--display); letter-spacing: -0.02em; color: #fff; margin-right: 8px; }
.fc-nav .fc-place { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); color: #fff; }
.fc-ad { margin: 18px 120px 0; height: 90px; border-radius: 12px; background: linear-gradient(100deg, #ffe066, #ff8fab 55%, #7c5cff); position: relative; overflow: hidden; transition: height 0.5s cubic-bezier(0.32, 0.72, 0, 1), margin 0.5s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s; }
.fc-ad span { position: absolute; left: 12px; top: 9px; font: 700 10px/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(0, 0, 0, 0.45); }
.fc-ad-art i { position: absolute; top: 24px; width: 120px; height: 40px; border-radius: 20px; background: rgba(255, 255, 255, 0.55); }
.fc-ad-art i:nth-child(1) { left: 40px; } .fc-ad-art i:nth-child(2) { left: 180px; width: 260px; } .fc-ad-art i:nth-child(3) { right: 40px; width: 150px; background: #12263f; }
.ads-gone .fc-ad { height: 0; margin-top: 0; opacity: 0; }
.fc-now { margin: 18px 120px 0; height: 210px; border-radius: 16px; background: center 40% / cover; image-rendering: pixelated; display: flex; align-items: flex-end; gap: 22px; padding: 22px 28px; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3); }
.fc-temp { font: 200 104px/0.9 var(--display); letter-spacing: -0.05em; }
.fc-cond b { display: block; font: 600 22px/1.2 var(--text); } .fc-cond span { font-size: 14.5px; opacity: 0.92; }
.fc-row { margin: 18px 120px; display: grid; grid-template-columns: 1fr 340px; gap: 18px; }
.fc-hours, .fc-days { padding: 16px 18px; border-radius: 16px; background: #fff; }
.fc-row h4 { margin: 0 0 8px; font: 600 12px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: #6a7f99; }
.fc-hours svg { width: 100%; height: 64px; }
.fc-h { display: flex; justify-content: space-between; font-size: 12px; color: #6a7f99; }
.fc-h span { display: grid; justify-items: center; gap: 2px; } .fc-h b { font: 600 15px/1 var(--text); color: #12263f; }
.fc-days p { margin: 0; padding: 7px 0; display: grid; grid-template-columns: 44px 30px 1fr 30px; align-items: center; gap: 8px; font-size: 14.5px; }
.fc-days i { font-style: normal; color: #6a7f99; } .fc-days i:last-child { color: #12263f; font-weight: 600; }
.rng { position: relative; height: 5px; border-radius: 3px; background: #e3e9f1; }
.rng em { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #60a5fa, #f59e0b); }

/* Plainnote */
.nt { display: grid; grid-template-columns: 236px 1fr; height: 790px; background: #fff; color: #2b2b2b; }
.nt-side { padding: 64px 12px; background: #f7f6f3; display: grid; align-content: start; gap: 1px; font-size: 14px; color: #5f5e5b; }
.nt-side b { display: flex; align-items: center; gap: 8px; padding: 0 10px 16px; font-size: 15px; color: #2b2b2b; }
.nt-side b i { width: 20px; height: 20px; border-radius: 5px; background: #2b2b2b; }
.nt-side span { padding: 6px 10px; border-radius: 6px; }
.nt-side span.on { background: #ebe9e4; color: #2b2b2b; font-weight: 500; }
.nt-side h5 { margin: 18px 10px 6px; font: 600 11.5px/1 var(--text); color: #9b9a97; }
.nt-cover { height: 190px; background: center 55% / cover; image-rendering: pixelated; }
.nt-doc { position: relative; padding: 0 96px; }
.nt-icon { position: absolute; top: -38px; width: 76px; height: 76px; border-radius: 18px; background: linear-gradient(140deg, #fbbf24, #f97316); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15); }
.nt-doc h1 { margin: 0; padding-top: 58px; font: 700 40px/1.1 var(--display); letter-spacing: -0.03em; }
.nt-props { margin: 18px 0 8px; display: grid; gap: 8px; font-size: 14px; }
.nt-props span { display: grid; grid-template-columns: 110px auto; align-items: center; } .nt-props i { font-style: normal; color: #9b9a97; }
.nt-props em { font-style: normal; display: inline-flex; align-items: center; gap: 7px; }
.nt-props .pill { width: max-content; padding: 2px 9px; border-radius: 4px; background: #fdecc8; color: #8a5a00; font-size: 13px; }
.nt-props u { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #8b5cf6; color: #fff; font: 700 10px/1 var(--text); text-decoration: none; }
.nt-doc h3 { margin: 22px 0 10px; font: 650 19px/1 var(--display); }
.nt-todo { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 16px; }
.nt-todo li { display: flex; align-items: center; gap: 11px; }
.nt-todo li::before { content: ""; width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px #c9c7c2; }
.nt-todo li.done { color: #9b9a97; text-decoration: line-through; }
.nt-todo li.done::before { background: #2f80ed; box-shadow: none; }

/* Split View: two pages, 6 apart, their inner corners rounded 10; the focused one ringed in the space colour at 45% */
.site.left, .site.right { visibility: visible; transition: left 0.5s cubic-bezier(0.32, 0.72, 0, 1), right 0.5s cubic-bezier(0.32, 0.72, 0, 1), border-radius 0.5s; }
.site.right { left: 100%; z-index: 2; }
.is-split .site.left { right: calc(50% + 3px); border-radius: 0 10px 10px 0; }
.is-split .site.right { left: calc(50% + 3px); border-radius: 10px 0 0 10px; }
.is-split .viewport { background: #d9d9dc; }
.site.left::after, .site.right::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.is-split .site.focus::after { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--space) 45%, transparent); border-radius: 16px 10px 10px 16px; }
.is-split .site.right.focus::after { border-radius: 10px 16px 16px 10px; }
/* (each page laid out at half the width, as a page is in a narrower window — kept on as they
   separate, until they're apart: no page drawn wide in half the room) */
.split-layout .fc-nav { padding-left: 110px; gap: 16px; } .split-layout .fc-nav span:not(.fc-place) { display: none; }
.split-layout .fc-now, .split-layout .fc-row, .split-layout .fc-ad { margin-left: 28px; margin-right: 28px; }
.split-layout .fc-row { grid-template-columns: 1fr; }
.split-layout .fc-days { display: none; }
.split-layout .nt { grid-template-columns: 0 1fr; } .split-layout .nt-side { visibility: hidden; padding: 0; }
.split-layout .nt-doc { padding: 0 44px; }

/* ---- the Overview: the page blurred behind (4% dimmer), the sheet of glass: the bar's width, 560 tall, 10 above the bar */
.ov-back { position: absolute; z-index: 3; inset: -40px; opacity: 0; pointer-events: none; overflow: hidden; background: #e9e9ec; }
/* (a blur goes see-through toward its edges: the page is drawn a little larger, so they fall outside the window) */
.ov-back > * { position: absolute; inset: 40px; filter: blur(28px) saturate(1.1); transform: scale(1.12); }
.ov-back::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.04); }
.ov { position: absolute; z-index: 4; left: 234px; width: 760px; bottom: 136px; height: 560px; border-radius: 26px; overflow: hidden; opacity: 0; transform-origin: 50% 100%; }
.ov.glass { --glass: rgba(246, 246, 248, 0.72); }
.ov-head { position: relative; height: 56px; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.09); }
.ov-search { height: 36px; width: 236px; padding: 0 12px; border-radius: 18px; background: rgba(var(--label), 0.05); display: flex; align-items: center; gap: 7px; font-size: 14.5px; color: rgba(var(--label), 0.45); }
.ov-search svg { width: 13px; height: 13px; fill: none; stroke: rgba(var(--label), 0.55); stroke-width: 1.8; stroke-linecap: round; }
.ov-spaces { position: relative; margin-left: auto; margin-right: 4px; display: flex; gap: 4px; }
.ov-sp { position: relative; z-index: 1; height: 28px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; transition: opacity 0.4s, transform 0.5s cubic-bezier(0.32, 0.72, 0, 1.3); }
.ov-sp svg { width: 11px; height: 11px; fill: var(--c); }
.ov-sp.on { font-weight: 600; }
.ov-hl { position: absolute; top: 0; height: 28px; border-radius: 14px; background: rgba(var(--label), 0.09); transition: left 0.32s var(--snappy), width 0.32s var(--snappy); }
.ov-plus { width: 28px; height: 28px; display: grid; place-items: center; font-size: 17px; color: rgba(var(--label), 0.6); }
.ov-body { display: grid; grid-template-columns: 200px 1fr; height: 504px; }
.ov-left { border-right: 1px solid rgba(0, 0, 0, 0.09); display: grid; grid-template-rows: 1fr 52px; }
.ov-places { padding: 8px; display: grid; align-content: start; gap: 2px; }
.ov-pl { height: 32px; padding: 0 10px 0 0; border-radius: 9px; display: grid; grid-template-columns: 37px 1fr auto; align-items: center; font-size: 13.5px; transition: opacity 0.4s, transform 0.5s cubic-bezier(0.32, 0.72, 0, 1.3); }
.ov-pl svg { justify-self: center; width: 14px; height: 14px; fill: none; stroke: rgba(var(--label), 0.75); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.ov-pl em { font: 400 12px/1 var(--text); font-style: normal; font-variant-numeric: tabular-nums; color: rgba(var(--label), 0.45); }
.ov-pl.on { background: rgba(var(--label), 0.09); font-weight: 600; }
.ov-pl.new { color: rgba(var(--label), 0.5); } .ov-pl.new svg { stroke: rgba(var(--label), 0.5); }
.ov-rule { height: 1px; margin: 5px 16px; background: rgba(0, 0, 0, 0.09); }
.ov-me { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-top: 1px solid rgba(0, 0, 0, 0.09); font: 500 13.5px/1 var(--text); }
.ov-me u { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #8b5cf6; color: #fff; font: 700 11px/1 var(--text); text-decoration: none; }
.ov-me svg { margin-left: auto; width: 11px; height: 11px; fill: none; stroke: rgba(var(--label), 0.5); stroke-width: 1.6; }
.ov-right { position: relative; overflow: hidden; }
.ov-title { height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 2px; font-size: 15px; }
.ov-title b { font-weight: 600; } .ov-count { color: rgba(var(--label), 0.5); }
.ov-title em { margin-left: auto; font: 400 12px/1 var(--text); font-style: normal; color: rgba(var(--label), 0.5); }
.ov-grid { padding: 8px 16px; display: grid; grid-template-columns: repeat(3, 167px); gap: 12px; }
.card { position: relative; height: 128px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.7); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); transition: opacity 0.4s, transform 0.5s cubic-bezier(0.32, 0.72, 0, 1.3); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 0.5px rgba(var(--label), 0.1); pointer-events: none; }
.card.on::after { box-shadow: inset 0 0 0 2px var(--space); }
.card .pic { position: absolute; left: 0; right: 0; top: 0; height: 92px; overflow: hidden; background: rgba(var(--label), 0.05); }
.card .pic > * { position: absolute; left: 0; top: 0; width: 1228px; transform: scale(0.136); transform-origin: 0 0; }
.card .ttl { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 10px 0 9px; font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.card .ttl .fav { width: 14px; height: 14px; border-radius: 4px; font-size: 8.5px; }
.card .ttl span { overflow: hidden; text-overflow: ellipsis; }
.card.newtab { background: none; box-shadow: none; display: grid; place-content: center; justify-items: center; gap: 6px; font-size: 13px; color: rgba(var(--label), 0.5); }
.card.newtab::after { box-shadow: none; border: 1.5px dashed rgba(var(--label), 0.18); }
.card.newtab b { font: 500 22px/1 var(--text); }
/* (opening: up from 14 lower at 0.96; with a pinch, the page flies into its card) */
.is-overview .ov { opacity: 1; animation: ov-in 0.36s cubic-bezier(0.3, 1.2, 0.4, 1); }
.is-overview .ov-back { opacity: 1; transition: opacity 0.25s; }
@keyframes ov-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
.ov-closing .ov { opacity: 0; transform: scale(0.98); transition: opacity 0.22s ease-out, transform 0.22s ease-out; }
.ov-closing .ov-back { opacity: 0; transition: opacity 0.22s ease-out; }
.is-pinch .ov { animation: none; transition: opacity 0.3s 0.1s; }
.fly { position: absolute; z-index: 5; left: 0; top: 0; width: 1228px; height: 790px; border-radius: 16px; overflow: hidden; visibility: hidden; transform-origin: 0 0; background: #fff; }
.fly-pic { position: absolute; inset: 0; overflow: hidden; }
.fly-title { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(255, 255, 255, 0.92); }
.flying .fly { visibility: visible; transition: transform 0.55s cubic-bezier(0.3, 1, 0.4, 1), border-radius 0.55s; }
/* (Arc's things arriving: spaces, then folders, then cards) */
.is-import .ov-sp:not(:nth-child(2)), .is-import .ov-pl.imp, .is-import .card.imp { opacity: 0; transform: translateY(6px) scale(0.94); }
.is-import .ov-sp.in, .is-import .ov-pl.in, .is-import .card.in { opacity: 1; transform: none; }

/* ---- the back arrow: a 46 disc of glass with a 17pt chevron; ready, it fills with the accent and turns white */
.arrow { position: absolute; z-index: 7; left: 0; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; opacity: 0; transform: translateX(-4px) scale(0.8); --glass: rgba(250, 250, 252, 0.7); }
.arrow i { position: absolute; inset: 0; border-radius: 50%; background: #007aff; opacity: 0; transition: opacity 0.16s; }
.arrow svg { position: relative; width: 19px; height: 19px; fill: none; stroke: rgb(var(--label)); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.16s; }
.arrow.ready i { opacity: 1; } .arrow.ready svg { stroke: #fff; }

.fingers { position: absolute; z-index: 9; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
.fingers.on { opacity: 1; }
.fingers i { position: absolute; width: 34px; height: 34px; margin: -17px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2); }
.cursor { position: absolute; z-index: 10; width: 18px; left: 820px; top: 500px; opacity: 0; transition: left 0.9s cubic-bezier(0.45, 0, 0.2, 1), top 0.9s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s; }
.cursor.on { opacity: 1; }

/* ---- the traffic lights' pill: glass, 80 × 32, radius 16, at 10, 11; the buttons 14 across, 23 apart */
.win .lights { position: absolute; z-index: 6; left: 10px; top: 11px; width: 80px; height: 32px; border-radius: 16px; transition: opacity 0.18s; }
.win .lights > * { position: absolute; top: 9px; width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.14); }
.win .lights > :nth-child(1) { left: 10px; }
/* (the red one closes the laptop, back to the desk: the × shows on hover, as on a Mac) */
.win .lights button { cursor: pointer; }
.win .lights button::after { content: ""; position: absolute; inset: 3.5px; opacity: 0; transition: opacity 0.12s;
  background: linear-gradient(45deg, transparent 43%, #7e0508 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, #7e0508 43% 57%, transparent 57%); }
.win .lights:hover button::after, .win .lights button:focus-visible::after { opacity: 0.85; }
.win .lights > :nth-child(2) { left: 33px; background: #febc2e; } .win .lights > :nth-child(3) { left: 56px; background: #28c840; }
.win:has(.bar.is-pill) .lights { opacity: 0; pointer-events: none; }

/* ---- the bar: 760 × 112, radius 28, 14 above the foot; two rows of 41, 8 apart, 12 in */
.win .bar { position: absolute; z-index: 6; left: 50%; bottom: 14px; width: 760px; height: 112px; margin-left: -380px; border-radius: 28px; overflow: hidden; transition: width 0.42s cubic-bezier(0.3, 1.1, 0.4, 1), height 0.42s cubic-bezier(0.3, 1.1, 0.4, 1), margin-left 0.42s cubic-bezier(0.3, 1.1, 0.4, 1), border-radius 0.42s; }
.win .bar.is-pill { width: 280px; height: 38px; margin-left: -140px; border-radius: 19px; }
.bar-full { position: absolute; left: 0; bottom: 0; width: 760px; height: 112px; padding: 11px 12px; display: grid; grid-template-rows: 41px 41px; gap: 8px; transition: opacity 0.2s 0.06s; }
.is-pill .bar-full { opacity: 0; transition: opacity 0.12s; }
.bar-pill { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 7px; font: 500 13px/1 var(--text); opacity: 0; transition: opacity 0.12s; }
.is-pill .bar-pill { opacity: 1; transition: opacity 0.22s 0.12s; }
.bar-pill .lock { width: 10px; height: 10px; fill: rgba(var(--label), 0.55); color: rgba(var(--label), 0.55); }
.pdots { display: inline-flex; gap: 3px; margin-left: 2px; }
.pdots i { width: 4px; height: 4px; border-radius: 2px; background: rgba(var(--label), 0.28); transition: background 0.25s var(--snappy); }
.pdots i.on { background: rgb(var(--label)); }
.win .row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.navs { flex: none; position: relative; width: 80px; height: 40px; border-radius: 20px; background: rgba(var(--label), 0.05); }
.navs i { position: absolute; top: 2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.navs .back { left: 2px; } .navs .fwd { right: 2px; }
.navs svg { width: 15px; height: 15px; fill: none; stroke: rgb(var(--label)); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.navs .off { opacity: 0.32; }
.win .div { flex: none; width: 1px; height: 24px; background: rgba(var(--label), 0.12); }
.address { position: relative; flex: 1; min-width: 0; height: 40px; border-radius: 20px; background: rgba(var(--label), 0.045); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.addr-in { display: flex; align-items: center; gap: 7px; font: 400 14.5px/1 var(--text); transition: transform 0.28s var(--snappy), opacity 0.28s var(--snappy); }
.addr-in .lock { width: 12px; height: 12px; fill: rgba(var(--label), 0.55); color: rgba(var(--label), 0.55); }
.addr-in.from-r { transform: translateX(16px); opacity: 0; transition: none; } .addr-in.from-l { transform: translateX(-16px); opacity: 0; transition: none; }
.addr-end { position: absolute; right: 6px; top: 0; bottom: 0; display: flex; align-items: center; gap: 4px; }
.shield { display: flex; align-items: center; gap: 4px; padding: 0 4px; color: rgba(var(--label), 0.55); }
.shield svg { width: 12px; height: 12px; fill: rgba(var(--label), 0.55); color: rgba(var(--label), 0.55); }
.shield em { font: 600 11px/1 var(--text); font-style: normal; font-variant-numeric: tabular-nums; }
.reload { width: 28px; height: 28px; display: grid; place-items: center; color: rgba(var(--label), 0.6); }
.reload svg { width: 13px; height: 13px; }
/* the context chip: the space's icon in its colour, the folder, ↕ */
.chip { flex: none; height: 36px; padding: 0 12px; border-radius: 18px; background: rgba(var(--label), 0.06); display: flex; align-items: center; gap: 7px; font: 500 13.5px/1 var(--text); overflow: hidden; }
.chip-in { display: flex; align-items: center; gap: 7px; transition: transform 0.3s var(--snappy), opacity 0.3s var(--snappy); }
.chip-in.from-r { transform: translateX(12px); opacity: 0; transition: none; } .chip-in.from-l { transform: translateX(-12px); opacity: 0; transition: none; }
.sp-icon { width: 15px; height: 15px; fill: var(--space); }
.chip .folder { display: inline-block; transition: transform 0.3s var(--snappy), opacity 0.3s var(--snappy); }
.chip .folder.from-b { transform: translateY(10px); opacity: 0; transition: none; } .chip .folder.from-t { transform: translateY(-10px); opacity: 0; transition: none; }
.sp-name { color: rgba(var(--label), 0.55); max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.3s var(--snappy); }
.sp-sep { width: 9px; height: 9px; fill: none; stroke: rgba(var(--label), 0.3); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; max-width: 0; transition: max-width 0.3s var(--snappy); }
.chip.named .sp-name { max-width: 90px; } .chip.named .sp-sep { max-width: 9px; }
.updown { width: 10px; height: 10px; fill: none; stroke: rgba(var(--label), 0.55); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* the strip: chips 38 tall, 6 apart; a tab not open just its favicon (40 wide); the open one raised, its title beside */
.strip { position: relative; flex: 1; min-width: 0; height: 41px; display: flex; align-items: center; gap: 6px; padding: 0 1px; }
.strip.from-r { transform: translateX(24px); opacity: 0; } .strip.from-l { transform: translateX(-24px); opacity: 0; }
.strip.from-b { transform: translateY(14px); opacity: 0; } .strip.from-t { transform: translateY(-14px); opacity: 0; }
.strip.slide { transition: transform 0.3s var(--snappy), opacity 0.3s var(--snappy); }
.tab { flex: none; position: relative; height: 38px; width: 40px; border-radius: 19px; display: flex; align-items: center; padding-left: 11px; overflow: hidden; transition: width 0.28s var(--snappy), background 0.28s var(--snappy), box-shadow 0.28s var(--snappy); }
.tab.on { background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 0.5px rgba(var(--label), 0.1), 0 1px 2px rgba(0, 0, 0, 0.1); padding-left: 12px; }
.tab b { margin-left: 8px; font: 500 13.5px/1 var(--text); white-space: nowrap; opacity: 0; transition: opacity 0.22s; }
.tab.on b { opacity: 1; }
/* (a title too long for its tab fades out before the end, as in Sill) */
.tab.cut b { flex: 1; min-width: 0; overflow: hidden; margin-right: 10px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); }
.tab .pair { margin-left: 4px; }
.keep { flex: none; height: 36px; padding: 0 12px; border-radius: 18px; display: flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--space) 14%, transparent); color: var(--space); font: 500 13px/1 var(--text); }
.keep svg { width: 12px; height: 12px; }
.plus { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.plus svg { width: 14px; height: 14px; color: rgb(var(--label)); }
/* the split tab: a tray, each half its own capsule; the focused half raised */
.tab.split { padding: 3px; gap: 2px; background: rgba(var(--label), 0.06); box-shadow: none; }
.tab.split .half span { animation: page-in 0.3s 0.1s both; }
.tab.split .half { height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 12px 0 8px; border-radius: 16px; font: 500 13.5px/1 var(--text); white-space: nowrap; }
.tab.split .half.focus { background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 0.5px rgba(var(--label), 0.1), 0 1px 2px rgba(0, 0, 0, 0.1); }

/* ---- the caption: docked at the foot of the view, under the laptop — the same size every step */
.say-bar {
  position: fixed; z-index: 5; left: 0; right: 0; bottom: 0;
  padding: 70px 24px max(22px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(16, 12, 9, 0.82), rgba(16, 12, 9, 0.62) 55%, rgba(16, 12, 9, 0));
  color: #fff; pointer-events: none;
  animation: say-in 0.6s 0.7s both;
}
@keyframes say-in { from { opacity: 0; transform: translateY(10px); } }
.say-bar[hidden] { display: none; }
.say-in { pointer-events: auto; max-width: 980px; margin: 0 auto; display: flex; align-items: flex-end; gap: 32px; }
.say { flex: 1; min-width: 0; display: grid; }
.say > div { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }
.say > div.on { opacity: 1; visibility: visible; transition: opacity 0.4s 0.1s; }
.say h2 { margin: 0 0 6px; font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; }
.say p { margin: 0; max-width: 40em; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, 0.8); text-wrap: pretty; }
.say-go { flex: none; display: flex; align-items: center; gap: 8px; }
.say-go .dots { display: flex; gap: 2px; margin-right: 8px; }
.say-go .dots button { width: 18px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.say-go .dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); transition: background 0.2s, transform 0.2s; }
.say-go .dots button[aria-selected="true"]::before { background: #fff; transform: scale(1.15); }
.say-go > button { height: 38px; min-width: 38px; padding: 0 12px; border: 0; border-radius: 19px; background: rgba(255, 255, 255, 0.14); color: #fff; font: 600 15px/1 var(--text); cursor: pointer; }
.say-go > button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.24); }
.say-go > button:disabled { opacity: 0.35; cursor: default; }
.say-go .room { padding: 0 16px; font-size: 14px; font-weight: 500; }

/* a phone: the screen at a readable size (tour.js pans it to what's happening), the caption below */
.screen.is-sheet { inset: 0; width: auto; height: auto; transform: none; overflow: hidden; background: #17120e; }
.is-sheet .bezel { width: 982px; height: 632px; transform-origin: 0 0; transition: transform 0.7s cubic-bezier(0.32, 0.72, 0, 1); padding: 0; background: none; box-shadow: none; }
.is-sheet .bezel::before { display: none; }
.is-sheet .display { border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
@media (max-width: 759px) {
  .say-bar { padding: 22px 18px max(18px, env(safe-area-inset-bottom)); background: #17120e; }
  .say-in { flex-direction: column; align-items: stretch; gap: 16px; }
  .say { min-height: 128px; align-content: start; }
  .say h2 { font-size: 20px; }
  .say p { font-size: 15px; }
  .say-go .room { margin-left: auto; }
}

/* the calendar's page */
.paper {
  border-radius: 6px; overflow: hidden;
  background: var(--paper); color: var(--paper-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 24px 60px rgba(0, 0, 0, 0.3);
  display: grid; grid-template-rows: auto 1fr;
}
.paper header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--red); color: #fff;
  font: 700 15px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
}
.paper header button { border: 0; background: none; color: #fff; font: 400 26px/1 var(--text); cursor: pointer; padding: 0 2px; }
.paper-body { overflow: auto; padding: 18px 22px 22px; display: grid; gap: 18px; align-content: start; }
.paper h3 { margin: 0 0 8px; display: flex; align-items: baseline; gap: 10px; font: 600 13px/1 var(--mono); letter-spacing: 0.06em; color: #8a7d70; text-transform: uppercase; }
.paper h3 span { font: 700 28px/1 var(--display); letter-spacing: -0.03em; color: var(--paper-ink); }
.paper ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.45; }
.paper .all { font-size: 14px; color: var(--paper-ink); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- a tall screen: the words above the window */

@media (max-aspect-ratio: 19/20) {
  .words { left: 50%; top: max(5.5vh, calc(env(safe-area-inset-top, 0px) + 22px)); transform: translateX(-50%); width: min(88vw, 520px); text-align: center; justify-items: center; }
  .get { justify-items: center; }
  .look { justify-content: center; }
  body.is-intro .words { transform: translate(-50%, 8px); }
  .words h1 { font-size: clamp(56px, 16vw, 96px); }
}
@media (prefers-reduced-motion: reduce) {
  .words, .panel, .button { transition: none; }
}

/* a panel closed is gone: it mustn't catch the room's clicks */
.panel[hidden] { display: none !important; }
.panel:not(.is-open) { pointer-events: none; }

.panel:focus { outline: none; }

/* the desk view: the words up in the sky, over the window, centred */
[data-frame="desk"] .words { left: 50%; top: max(7.5vh, 34px); transform: translateX(-50%); width: min(92vw, 760px); text-align: center; justify-items: center; --ink: #fff; --ink-2: rgba(255, 255, 255, 0.92); --ink-3: rgba(255, 255, 255, 0.8); --button: #fff; --button-ink: #1d1f24; text-shadow: 0 1px 14px rgba(20, 30, 50, 0.32); }
[data-frame="desk"] .words h1 { font-size: clamp(56px, 6.4vw, 96px); }
[data-frame="desk"] .slogan { margin-top: 8px; }
[data-frame="desk"] .get { margin-top: 22px; justify-items: center; }
[data-frame="desk"] .look { justify-content: center; margin-top: 10px; }
[data-frame="desk"] body.is-intro .words { transform: translate(-50%, 8px); }
[data-frame="desk"] .button { text-shadow: none; }

/* the desk view's changelog: the desk calendar's own green */
[data-frame="desk"] .paper header { background: #2f5d4f; }

/* (the Overview closing as the tour moves on) */
.ov-ghost { opacity: 1 !important; animation: ov-out 0.24s ease-out forwards !important; }
@keyframes ov-out { to { opacity: 0; transform: scale(0.98); } }
