@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-ExtraBold.ttf") format("truetype"); font-weight: 800; }

/* Every size is in mockup pixels (2000px-wide artboard) scaled to the viewport. */
:root {
  /* sized to the 2000 x 1293 mockup, by whichever of width or height runs out first */
  /* scales with the screen width; very wide screens are capped by their height so nothing balloons */
  --u: max(min(calc(100vw / 2000), calc(100vh / 1050)), 0.7px);
  --widget-bg: #f5f6fa;
  --ink: #1b0f12;
  --muted: #7fb3d9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "Poppins", sans-serif;
  background: #c7e6ff;
  color: var(--ink);
  overflow: hidden;
}

/* plain arrow everywhere, like the macOS desktop */
button { font: inherit; color: inherit; background: none; border: 0; cursor: default; }

.desktop { position: relative; width: 100vw; height: 100vh; }

/* menu bar */
.menubar {
  position: absolute; inset: 0 0 auto 0;
  height: max(calc(44 * var(--u)), 32px);
  padding: 0 calc(18 * var(--u));
  display: flex; align-items: center; justify-content: space-between;
  /* dark glass, half as dense as the menu panels */
  background: rgba(38, 38, 42, 0.26);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  color: #fff;
  font-size: max(calc(20 * var(--u)), 13px);
  font-weight: 500;
}
.menubar__left, .menubar__right { display: flex; align-items: center; }
.menubar__left { gap: calc(20 * var(--u)); }
.menubar__right { gap: calc(20 * var(--u)); }
.menubar__logo { width: max(calc(24 * var(--u)), 16px); margin-right: calc(4 * var(--u)); }
.menubar__right img { height: max(calc(20 * var(--u)), 14px); }
.menubar img { opacity: 0.95; }
.menubar__battery { display: flex; align-items: center; gap: calc(5 * var(--u)); font-size: max(calc(15 * var(--u)), 11px); }
.menubar__battery img { height: max(calc(24 * var(--u)), 17px); }

/* room illustration, placed as in the desktop reference (floor line sits above the dock) */
.room {
  position: absolute;
  left: 50%; transform: translateX(-50%); bottom: calc(185 * var(--u));
  /* as wide as the mockup, but never taller than the space above the dock */
  width: min(68.2vw, calc(1364 * var(--u)), calc((100vh - 185 * var(--u) - 110 * var(--u)) * 1.793));
  pointer-events: none; user-select: none;
}

/* project folders */
.folders {
  position: absolute;
  top: calc(120 * var(--u)); right: calc(36 * var(--u));
  /* fills top-to-bottom, then adds columns leftwards like a Mac desktop */
  display: grid; grid-template-rows: repeat(4, auto); grid-auto-flow: column;
  direction: rtl;
  gap: calc(22 * var(--u)) calc(12 * var(--u));
}
.folder {
  direction: ltr;
  width: max(calc(116 * var(--u)), 84px);
  text-align: center; line-height: 1.2;
  display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--u));
  padding: calc(6 * var(--u));
  border-radius: calc(12 * var(--u));
  color: #000; font-size: max(calc(20 * var(--u)), 13px); font-weight: 500;
}
.folder img { width: max(calc(74 * var(--u)), 54px); filter: drop-shadow(0 2px 4px rgba(30, 60, 100, 0.18)); }
.folder:hover, .folder:focus-visible { background: rgba(255, 255, 255, 0.35); outline: none; }

/* dock */
.dock {
  position: absolute;
  bottom: calc(40 * var(--u)); left: 50%; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: calc(21 * var(--u));
  padding: calc(12 * var(--u)) calc(16 * var(--u));
  background: rgba(38, 38, 42, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: calc(26 * var(--u));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 30px rgba(20, 40, 70, 0.18);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}
.dock__item { width: max(calc(72 * var(--u)), 50px); height: max(calc(72 * var(--u)), 50px); transition: transform 0.18s ease; transform-origin: bottom center; }
.dock__item img { width: 100%; height: 100%; object-fit: contain; }
.dock__item:hover { transform: scale(1.25) translateY(-8%); }
.dock__divider { align-self: stretch; width: 1px; background: rgba(255, 255, 255, 0.25); }

/* placeholder window */
.window {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(640px, 90vw);
  background: var(--widget-bg);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(20, 60, 110, 0.3);
  overflow: hidden;
}
.window[hidden] { display: none; }
.window__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #e8ebf2; }
.window__close, .window__dot { width: 12px; height: 12px; border-radius: 50%; background: #c9ced8; }
.window__close { background: #ff5f57; }
.window__title { margin-left: 12px; font-weight: 600; font-size: 14px; }
.window__body { padding: 48px 24px; text-align: center; color: #6a7384; }

/* project window: 75% of the screen, centred, dark */
.project {
  --p-bg: #2a2827;
  --p-surface: #353231;
  --p-line: #403c3a;
  --p-text: #f3f0ee;
  --p-muted: #a49d9a;
  --p-accent: #ff7a45;
  /* PostHog proportions: ~30px clear of the menu bar and the bottom, ~10% at the sides */
  position: absolute; top: calc(86 * var(--u)); bottom: calc(42 * var(--u)); z-index: 10;
  left: 0; right: 0; margin: 0 auto;
  width: min(calc(100vw - 418 * var(--u)), calc(1636 * var(--u)));
  display: flex; flex-direction: column;
  background: var(--p-bg); color: var(--p-text);
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(20, 40, 70, 0.35), 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: project-open 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project[hidden] { display: none; }
@keyframes project-open { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

.project__bar {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: #232120;
  border-bottom: 1px solid var(--p-line);
}
.project .window__dot { background: #4a4542; }
.project__title { margin-left: 14px; font-weight: 500; font-size: 14px; }

.project__scroll { flex: 1; overflow-y: auto; overflow-x: hidden; }
.project__content { max-width: 1100px; margin: 0 auto; padding: 40px 32px 96px; }

.project__head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.project__thumb { width: 88px; height: 88px; object-fit: contain; border-radius: 12px; }
.project__head h1 { font-size: 36px; font-weight: 800; line-height: 40px; }
.project__head p { font-size: 17px; color: var(--p-muted); }

.project__desc {
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 12px;
  padding: 24px 28px; margin-bottom: 28px;
  font-size: 17px; line-height: 1.65; color: #d6d0cd;
}
.project__desc p + p { margin-top: 12px; }

.project details { margin-bottom: 28px; }
.project summary { font-weight: 600; font-size: 17px; cursor: pointer; margin-bottom: 14px; }
.project__details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; padding-left: 20px; font-size: 16px; }
.project__details dt { font-weight: 500; }
.project__details dd { color: var(--p-muted); }

.project__section { margin: 24px 0 88px; }
.project__kicker { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--p-accent); margin-bottom: 6px; }
.project__section h2 { font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 12px; }
.project__section p { max-width: 720px; font-size: 17px; line-height: 1.65; color: var(--p-muted); margin-bottom: 24px; }

.project__media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.media { width: 100%; border-radius: 14px; display: block; }
.media--placeholder {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  border: 2px dashed #4a4542; background: #302d2c;
  color: #6f6a68; font-size: 15px; font-weight: 500;
}
.media--video { aspect-ratio: 16 / 9; }

/* scroll-in reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* infinite gallery canvas */
.gallery { margin: 72px 0; }
.gallery h3 { font-size: 20px; font-weight: 700; line-height: 1.2; margin-bottom: 6px; }
.gallery p { margin-bottom: 20px; }
.gallery__viewport {
  position: relative;
    height: calc((100vh - 128 * var(--u)) * 0.63); /* 63% of the window height */
  overflow: hidden;
  border-radius: 20px;
  background: var(--p-surface) center / cover no-repeat;
  cursor: grab;
  user-select: none;
}
@media (hover: hover) { .gallery__viewport { touch-action: none; } }
.gallery__viewport.is-dragging { cursor: grabbing; }
.gallery__plane { position: absolute; top: 0; left: 0; display: flex; gap: 30px; transform-origin: 0 0; will-change: transform; }
.gallery__zoom {
  position: absolute; right: 16px; bottom: 16px; z-index: 1;
  display: flex; align-items: center; gap: 2px;
  padding: 4px;
  background: rgba(18, 18, 21, 0.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: default;
}
.gallery__zoom button {
  min-width: 34px; height: 34px; padding: 0 8px;
  border-radius: 999px;
  color: #f3f0ee; font-size: 18px; line-height: 1;
}
.gallery__zoom button:hover { background: rgba(255, 255, 255, 0.12); }
.gallery__zoom .gallery__zoom-level { font-size: 13px; font-weight: 500; min-width: 52px; }
.gallery__col { flex: none; }
.gallery__track { display: flex; flex-direction: column; gap: 30px; will-change: transform; }
.gallery__track img {
  width: 100%; height: auto; display: block;
  border-radius: 12px; cursor: zoom-in;
  transition: transform 0.25s ease;
}
.gallery__viewport.is-dragging img { cursor: grabbing; }
.gallery__track img:hover { transform: scale(1.03); }

/* stickers sit on their own background with a soft shadow */
.gallery--stickers .gallery__track img { border-radius: 0; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18)); }

/* bento grids */
.bento {
  display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr);
  grid-auto-flow: dense; gap: 12px;
}
.bento__tile { overflow: hidden; border-radius: 16px; background: var(--p-surface); cursor: zoom-in; padding: 0; }
.bento__tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.bento__tile:hover img { transform: scale(1.04); }
.bento__tile--big { grid-column: span 2; grid-row: span 2; }
.bento__tile--wide { grid-column: span 2; }
.bento__tile--tall { grid-row: span 2; }
.bento__caption {
  display: flex; align-items: flex-end; padding: 20px; cursor: default;
  background: linear-gradient(160deg, #ff7a45, #d63bd1);
  color: #fff; font-size: clamp(16px, 1.6vw, 22px); font-weight: 700; line-height: 1.25;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center; padding: 32px;
  background: rgba(0, 0, 0, 0.88); cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

.project__outro { font-size: 24px; font-weight: 700; text-align: center; margin-top: 24px; }

@media (max-width: 640px) {
  .project__content { padding: 28px 16px 64px; }
  .project__media { grid-template-columns: 1fr; }
  .bento { --cols: 2 !important; }
}

/* branding projects: one long frame at full window width */
.project__content--frame { max-width: none; padding: 0; }
.project__frame { display: block; width: 100%; height: auto; }

/* design challenges: square slideshows, two side by side */
.challenges { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 32px; margin: 32px 0 96px; }
.challenge__text { margin-top: 20px; }
.challenge__text h2 { font-size: 24px; font-weight: 800; line-height: 1.15; margin-bottom: 10px; }
.challenge__text p { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--p-muted); }
.challenge--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.challenge--wide .challenge__text { margin-top: 0; }

.slideshow {
  position: relative; aspect-ratio: 1; cursor: pointer;
  border-radius: 20px; overflow: hidden;
  background: var(--p-surface);
}
.slideshow img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.slideshow img.is-prev { opacity: 1; transform: scale(1); z-index: 1; }
.slideshow img.is-current { opacity: 1; transform: scale(1); z-index: 2; }
.slideshow__dots {
  position: absolute; left: 50%; bottom: 14px; z-index: 3; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: rgba(12, 12, 14, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.slideshow__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); transition: background 0.3s, width 0.3s; }
.slideshow__dots span.is-on { width: 18px; border-radius: 3px; background: #fff; }

/* flipbook */
.flipbook { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 32px; }
.book { width: 100%; display: flex; justify-content: center; outline: none; perspective: 2600px; cursor: pointer; }
.book__inner {
  position: relative; width: calc(var(--pw) * 2); height: var(--ph);
  transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1);
}
.book.is-closed .book__inner { transform: translateX(calc(var(--pw) / -2)); }
.book.is-ended .book__inner { transform: translateX(calc(var(--pw) / 2)); }
.book__leaf {
  position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
  transform-origin: left center; transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1);
}
.book__leaf.is-turned { transform: rotateY(-180deg); }
.book__page {
  position: absolute; inset: 0; overflow: hidden;
  background: #f4f1ec;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.book__page img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.book__page--front { border-radius: 0 4px 4px 0; }
.book__page--back { transform: rotateY(180deg); border-radius: 4px 0 0 4px; }
.book__controls {
  display: flex; align-items: center; gap: 4px; padding: 4px;
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 999px;
}
.book__controls button { width: 38px; height: 38px; border-radius: 999px; color: var(--p-text); font-size: 22px; line-height: 1; }
.book__controls button:hover { background: rgba(255, 255, 255, 0.08); }
.book__label { min-width: 92px; text-align: center; font-size: 14px; font-weight: 500; color: var(--p-muted); }

@media (max-width: 640px) {
  .challenges, .challenge--wide { grid-template-columns: 1fr; }
}

/* UI screens */
.screens { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.screens__row { display: flex; gap: 16px; }
.screens__row img { min-width: 0; width: 100%; height: auto; border-radius: 16px; display: block; cursor: zoom-in; }

/* menu bar items and their pop-ups */
.menubar__item {
  display: flex; align-items: center; gap: calc(5 * var(--u));
  height: max(calc(32 * var(--u)), 24px); padding: 0 max(calc(8 * var(--u)), 6px);
  border-radius: calc(6 * var(--u));
}
.menubar__left .menubar__item:first-child { margin-right: calc(2 * var(--u)); }
.menubar__item:hover, .menubar__item.is-open { background: rgba(255, 255, 255, 0.2); }
.menubar__left, .menubar__right { gap: calc(4 * var(--u)) !important; }
.menubar__logo { margin-right: 0 !important; }

/* macOS-style dark glass, shared by every menu bar pop-up */
.menu-pop {
  --glass: rgba(38, 38, 42, 0.52);
  --glass-tile: rgba(255, 255, 255, 0.1);
  --glass-line: rgba(255, 255, 255, 0.16);
  --glass-muted: rgba(255, 255, 255, 0.58);
  position: fixed; z-index: 30;
  min-width: 240px; max-width: 360px;
  padding: 6px;
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(190%) brightness(0.95);
  -webkit-backdrop-filter: blur(40px) saturate(190%) brightness(0.95);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 50px rgba(10, 20, 40, 0.35), 0 0 0 0.5px rgba(0, 0, 0, 0.35);
  color: #fff; font-size: 13px; line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  animation: pop-in 0.16s ease-out;
}
.menu-pop[hidden] { display: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }

.menu-list { list-style: none; }
.menu-list__item {
  display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 4px;
  padding: 4px 10px 4px 6px; border-radius: 7px; cursor: default; white-space: nowrap;
}
.menu-list__item small { color: var(--glass-muted); font-size: 12px; padding-left: 18px; }
.menu-list__item:not(.is-disabled):hover { background: #0a64d6; }
.menu-list__item:not(.is-disabled):hover small { color: rgba(255, 255, 255, 0.85); }
.menu-list__item.is-disabled { color: rgba(255, 255, 255, 0.35); }
.menu-list__check { font-size: 11px; }
.menu-list__sep { height: 1px; margin: 5px 10px; background: rgba(255, 255, 255, 0.14); }
.menu-list__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 3px; font-weight: 600; font-size: 12px; color: var(--glass-muted); }
.menu-list__head:first-child { font-size: 13px; color: #fff; }
.menu-list__head small { font-weight: 500; }
.menu-list__toggle { width: 32px; height: 19px; border-radius: 10px; background: rgba(255, 255, 255, 0.2); position: relative; transition: background 0.2s; }
.menu-list__toggle::after { content: ""; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.menu-list__toggle.is-on { background: #0a64d6; }
.menu-list__toggle.is-on::after { transform: translateX(13px); }
.menu-list__search { padding: 4px 6px 2px; }
.menu-list__search input {
  width: 100%; padding: 5px 8px; border-radius: 7px;
  border: 1px solid var(--glass-line); background: rgba(255, 255, 255, 0.08);
  font: inherit; color: inherit; outline: none;
}
.menu-list__search input::placeholder { color: var(--glass-muted); }

/* Control Centre, after the macOS Tahoe one */
.menu-pop--control { width: 340px; max-width: none; padding: 12px; border-radius: 30px; }
.cc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc button { cursor: pointer; }
.cc__pill, .cc__now, .cc__slider-tile, .cc__round {
  background: var(--glass-tile);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.cc__pill {
  display: flex; align-items: center; gap: 10px;
  min-height: 64px; padding: 8px 12px 8px 8px; border-radius: 999px; text-align: left; color: #fff;
}
.cc__pill b, .cc__slider-tile b { display: block; font-size: 14px; font-weight: 600; }
.cc__pill small { display: block; font-size: 12px; color: var(--glass-muted); line-height: 1.25; }
.cc__icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14); color: #fff;
}
.cc__icon svg, .cc__round svg { width: 22px; height: 22px; }
.cc__icon--on { background: #fff; color: #0a7cff; }
.cc__now {
  grid-row: span 2; border-radius: 28px; padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between; min-width: 0;
}
.cc__art { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.cc__title { font-size: 14px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc__artist { font-size: 12px; color: var(--glass-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc__ctrl { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cc__ctrl button { width: 34px; height: 34px; display: grid; place-items: center; color: rgba(255, 255, 255, 0.75); border-radius: 50%; }
.cc__ctrl button:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.cc__ctrl svg { width: 20px; height: 20px; }
.cc__ctrl .cc__play svg { width: 26px; height: 26px; }
.cc__duo { display: flex; justify-content: space-between; gap: 10px; }
.cc__round { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.cc__round--light { background: #fff; color: #111; }
.cc__slider-tile { grid-column: 1 / -1; border-radius: 26px; padding: 12px 16px 14px; }
.cc__slider-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: #fff; }
.cc__slider-row svg { flex: none; width: 18px; height: 18px; }
.cc__slider { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); cursor: pointer; position: relative; touch-action: none; }
.cc__slider::before { content: ""; position: absolute; inset: -10px 0; }
.cc__slider span { display: block; height: 100%; border-radius: 3px; background: #fff; pointer-events: none; }

/* notification centre */
.menu-pop--clock { width: 340px; max-width: none; padding: 8px; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nc { display: flex; flex-direction: column; gap: 8px; }
.nc__widget, .nc__note {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 20px;
  backdrop-filter: blur(40px) saturate(190%); -webkit-backdrop-filter: blur(40px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 30px rgba(10, 20, 40, 0.25);
}
.nc__widget { padding: 14px 16px; }
.nc__widget small { display: block; color: #8cc3ff; font-size: 12px; }
.nc__widget b { display: block; font-size: 30px; font-weight: 500; line-height: 1.2; }
.nc__widget span { font-size: 12px; font-weight: 500; }
.nc__note { padding: 11px 14px; }
.nc__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.nc__top b { font-size: 13px; }
.nc__top small { font-size: 11px; color: var(--glass-muted); }
.nc__note p { font-size: 12px; color: rgba(255, 255, 255, 0.85); }

/* spotlight */
.menu-pop--spotlight {
  left: 50% !important; top: 20% !important; transform: translateX(-50%);
  width: min(640px, 90vw); max-width: none; padding: 0; border-radius: 22px;
  animation: none;
}
.spot__bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; }
.spot__bar img { width: 20px; filter: brightness(0) invert(1); opacity: 0.6; }
.spot__bar input { flex: 1; border: 0; background: none; outline: none; font: inherit; font-size: 22px; color: #fff; }
.spot__bar input::placeholder { color: rgba(255, 255, 255, 0.4); }
.spot__results:not(:empty) { padding: 6px 8px 10px; border-top: 1px solid var(--glass-line); }
.spot__label { display: block; padding: 6px 12px 4px; font-size: 11px; font-weight: 600; color: var(--glass-muted); }
.spot__hit { display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 12px; border-radius: 10px; text-align: left; color: #fff; }
.spot__hit img { width: 32px; height: 36px; object-fit: contain; }
.spot__hit b { display: block; font-size: 14px; font-weight: 600; }
.spot__hit small { display: block; font-size: 12px; color: var(--glass-muted); }
.spot__hit.is-sel, .spot__hit:hover { background: #0a64d6; }
.spot__hit.is-sel small, .spot__hit:hover small { color: rgba(255, 255, 255, 0.85); }
.spot__none { padding: 12px 12px 6px; font-size: 14px; color: rgba(255, 255, 255, 0.75); }

/* Wi-Fi off */
.menubar__item.is-off img { opacity: 0.3; }
.offline {
  position: absolute; inset: max(calc(44 * var(--u)), 32px) 0 0; z-index: 12;
  background: #000; color: #c9c9c9;
  display: grid; place-items: center;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
}
.offline[hidden] { display: none; }
.offline__inner { width: min(600px, 90vw); }
.offline canvas { width: 100%; height: auto; display: block; margin-bottom: 28px; }
.offline h2 { font-size: 24px; font-weight: 500; color: #e8e8e8; margin-bottom: 14px; }
.offline p, .offline li { font-size: 15px; line-height: 1.6; }
.offline ul { padding-left: 22px; margin-bottom: 18px; }
.offline small { font-size: 12px; color: #8a8a8a; letter-spacing: 0.02em; }

/* screen brightness, controlled from Control Centre */
.dimmer { position: fixed; inset: 0; z-index: 28; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.1s; }

/* small draggable app windows */
.app-window {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 15;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(10, 20, 40, 0.4), 0 0 0 0.5px rgba(0, 0, 0, 0.4);
  color: #fff;
  animation: app-open 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.app-window[hidden] { display: none; }
@keyframes app-open { from { opacity: 0; scale: 0.96; } to { opacity: 1; scale: 1; } }
.app-window__bar { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: grab; user-select: none; }
.app-window .window__dot { background: rgba(255, 255, 255, 0.22); }
.app-window__title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }

/* Spotify */
.app-window--spotify { width: min(560px, 92vw); background: #121212; border: 1px solid #2a2a2a; }
.app-window--spotify .app-window__bar { background: #000; }
.sp { display: flex; flex-direction: column; height: min(600px, 72vh); }
.sp__head { display: flex; align-items: flex-end; gap: 16px; padding: 20px 20px 16px; background: linear-gradient(#5b3b2e, #121212); }
.sp__art { width: 104px; height: 104px; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.sp__head small { font-size: 12px; font-weight: 600; }
.sp__head h3 { font-size: 28px; font-weight: 800; line-height: 1.15; margin: 2px 0 6px; }
.sp__head span { font-size: 12px; color: #b3b3b3; }
.sp__actions { padding: 4px 20px 8px; }
.sp__big { width: 48px; height: 48px; border-radius: 50%; background: #1ed760; color: #000; display: grid; place-items: center; transition: transform 0.15s; }
.sp__big:hover { transform: scale(1.05); }
.sp__big svg { width: 24px; height: 24px; }
.sp__list { list-style: none; flex: 1; overflow-y: auto; padding: 0 10px 8px; }
.sp__row {
  display: grid; grid-template-columns: 28px 40px 1fr auto 48px; align-items: center; gap: 12px;
  padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 14px;
}
.sp__row:hover { background: rgba(255, 255, 255, 0.08); }
.sp__row img { width: 40px; height: 40px; border-radius: 4px; }
.sp__num { color: #b3b3b3; text-align: right; font-size: 14px; }
.sp__name { min-width: 0; }
.sp__name b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp__name small { display: block; color: #b3b3b3; font-size: 12px; }
.sp__plays, .sp__dur { color: #b3b3b3; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.sp__row.is-current b { color: #1ed760; }
.sp__eq { display: inline-flex; gap: 2px; height: 12px; align-items: flex-end; }
.sp__eq b { width: 3px; background: #1ed760; animation: eq 0.8s ease-in-out infinite; }
.sp__eq b:nth-child(2) { animation-delay: -0.3s; }
.sp__eq b:nth-child(3) { animation-delay: -0.55s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.sp__bar {
  display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 4px 12px;
  padding: 10px 16px 12px; background: #000; border-top: 1px solid #222;
}
.sp__now-art { width: 44px; height: 44px; border-radius: 4px; grid-row: span 2; }
.sp__now { min-width: 0; }
.sp__now b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp__now small { display: block; font-size: 11px; color: #b3b3b3; }
.sp__ctrl { display: flex; align-items: center; gap: 6px; }
.sp__ctrl button { width: 32px; height: 32px; display: grid; place-items: center; color: #b3b3b3; border-radius: 50%; }
.sp__ctrl button:hover { color: #fff; }
.sp__ctrl svg { width: 18px; height: 18px; }
.sp__ctrl .sp__play { background: #fff; color: #000; }
.sp__progress { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; font-size: 11px; color: #b3b3b3; font-variant-numeric: tabular-nums; }
.sp__track { flex: 1; height: 4px; border-radius: 2px; background: #4d4d4d; cursor: pointer; position: relative; }
.sp__track::before { content: ""; position: absolute; inset: -8px 0; }
.sp__track span { display: block; height: 100%; border-radius: 2px; background: #fff; pointer-events: none; }
.sp__track:hover span { background: #1ed760; }

/* About This Bunny */
.app-window--glass { width: 340px; }
.app-window--about, .app-window--glass {
  width: 340px;
  background: rgba(52, 52, 56, 0.72);
  backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 30px 80px rgba(10, 20, 40, 0.4);
  border-radius: 22px;
}
.about { display: flex; flex-direction: column; align-items: center; padding: 6px 24px 22px; text-align: center; }
.about__img { width: 120px; margin: 8px 0 18px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3)); }
.about h3 { font-size: 24px; font-weight: 700; }
.about > small { font-size: 12px; color: rgba(255, 255, 255, 0.5); margin: 2px 0 16px; }
.about dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13px; text-align: left; margin-bottom: 18px; }
.about dt { text-align: right; font-weight: 500; }
.about dd { color: rgba(255, 255, 255, 0.6); }
.about dd a { color: inherit; text-decoration: none; white-space: nowrap; }
.about dd a:hover { color: #fff; text-decoration: underline; }
.about__btn {
  padding: 5px 16px; border-radius: 8px; font-size: 13px; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.12); margin-bottom: 16px;
}
.about__btn:hover { background: rgba(255, 255, 255, 0.24); }
.about p { font-size: 11px; color: rgba(255, 255, 255, 0.45); line-height: 1.5; }

/* instagram reels: video under the reel UI overlay */
.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.reel {
  position: relative; aspect-ratio: 1170 / 2271;
  border-radius: 20px; overflow: hidden; background: #000; cursor: pointer;
}
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.reel__overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.reel__sound {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: 11px; font-weight: 500;
}
.reel.is-active { box-shadow: 0 0 0 2px var(--p-accent); }
@media (max-width: 900px) { .reels { grid-template-columns: repeat(2, 1fr); } }

/* folders can be dragged around */
.folder { touch-action: none; }
.folder.is-dragging { z-index: 5; opacity: 0.85; }
.folder.is-dragging img { transform: scale(1.06); }

/* one-liner pop-ups from the menu bar */
.app-window--oneliner { width: 320px; }
.oneliner { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 24px 22px; }
.oneliner img { width: 40px; margin-bottom: 12px; }
.oneliner b { font-size: 15px; margin-bottom: 6px; }
.oneliner p { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.75); margin-bottom: 18px; }
.oneliner__ok { padding: 5px 28px; border-radius: 8px; background: #0a64d6; color: #fff; font-size: 13px; font-weight: 500; }

/* dock skills */
.skill { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 26px 24px; }
.skill > img { width: 88px; margin: 6px 0 14px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3)); }
.skill h3 { font-size: 20px; font-weight: 700; }
.skill small { font-size: 12px; color: rgba(255, 255, 255, 0.5); margin: 2px 0 14px; }
.skill__line { font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.skill__uses { width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); }
.skill__uses b { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.55); margin-bottom: 6px; }
.skill__uses ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.skill__uses li { font-size: 13px; padding-left: 18px; position: relative; }
.skill__uses li::before { content: "✓"; position: absolute; left: 0; color: #4cd964; }

/* Notes: after the bychudy "Information about" window */
.app-window--notes { width: min(620px, 92vw); background: #efebe8; color: #1d1d1f; border: 1px solid rgba(0, 0, 0, 0.12); }
.app-window--notes .app-window__bar { border-bottom: 1px solid #d6d0cc; }
.app-window--notes .app-window__title { color: #1d1d1f; font-weight: 500; white-space: nowrap; }
.app-window--notes .window__dot { background: #d0cbc7; }
.notes { display: grid; grid-template-columns: 170px 1fr; height: min(460px, 64vh); }
.notes__side { display: flex; flex-direction: column; padding: 10px 12px; border-right: 1px solid #d6d0cc; }
.notes__side button { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 6px; border-bottom: 1px solid #d6d0cc; font-size: 15px; text-align: left; border-radius: 6px; }
.notes__side button small { color: #8a837f; font-size: 14px; }
.notes__side button.is-on { background: rgba(0, 0, 0, 0.06); }
.notes__body { background: #fff; overflow-y: auto; padding: 18px 22px; font-size: 15px; line-height: 1.5; }
.notes__body p { margin-bottom: 12px; }
.notes__body a { color: #0a64d6; }
.notes__checks { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.notes__checks li { position: relative; padding-left: 30px; }
.notes__checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: #f2b632; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.notes__muted { color: #8a837f; font-size: 13px; }

/* Trash: a Finder list */
.app-window--trash { width: min(760px, 94vw); background: rgba(30, 30, 32, 0.92); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.trash { display: flex; flex-direction: column; height: min(480px, 66vh); font-size: 13px; }
.trash__toolbar { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 10px; }
.trash__count { color: rgba(255, 255, 255, 0.55); font-size: 12px; }
.trash__empty { padding: 4px 12px; border-radius: 7px; background: rgba(255, 255, 255, 0.14); font-size: 12px; font-weight: 500; }
.trash__empty:hover { background: rgba(255, 255, 255, 0.22); }
.trash__empty:disabled { opacity: 0.4; }
.trash__head, .trash__row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 150px 180px; gap: 12px; padding: 6px 16px; }
.trash__head { font-weight: 600; color: rgba(255, 255, 255, 0.85); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.trash__list { flex: 1; overflow-y: auto; padding: 4px 8px 8px; transition: opacity 0.4s, transform 0.4s; }
.trash__list.is-emptying { opacity: 0; transform: translateY(20px) scale(0.98); }
.trash__row { border-radius: 6px; padding: 5px 8px; color: rgba(255, 255, 255, 0.6); }
.trash__row:nth-child(odd) { background: rgba(255, 255, 255, 0.04); }
.trash__row:hover { background: #0a64d6; color: #fff; }
.trash__row span:first-child { color: #fff; }
.trash__name { display: flex; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trash__name i { font-style: normal; }
.trash__row span:nth-child(2) { text-align: right; }
.trash__done { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 40px; }
.trash__done span { font-size: 44px; }
.trash__done p { font-size: 15px; color: rgba(255, 255, 255, 0.8); max-width: 360px; line-height: 1.5; }

.notes__resume {
  margin-top: 4px; padding: 9px 16px; border-radius: 10px;
  background: #1d1d1f; color: #fff; font-size: 14px; font-weight: 500; cursor: pointer;
}
.notes__resume:hover { background: #0a64d6; }

/* focus mode countdown */
.app-window--focus { width: 300px; }
.focus { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px 22px; }
.focus small { font-size: 12px; color: rgba(255, 255, 255, 0.55); text-transform: uppercase; letter-spacing: 0.08em; }
.focus__time { font-size: 64px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 4px 0 8px; }
.focus__msg { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.75); min-height: 40px; margin-bottom: 14px; }
.focus__btns { display: flex; gap: 8px; }
.focus__btns button { padding: 5px 18px; border-radius: 8px; background: rgba(255, 255, 255, 0.16); font-size: 13px; }
.focus__btns button:first-child { background: #0a64d6; }

/* Control Centre detail views */
.cc__pill, .cc__round { cursor: default; }
.cc__art { cursor: default; }
.cc-detail { min-height: 200px; }
.cc-detail__head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; border-bottom: 1px solid var(--glass-line); margin-bottom: 6px; }
.cc-detail__head b { font-size: 15px; }
.cc-detail__head button { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); font-size: 18px; line-height: 1; }
.cc-detail ul { list-style: none; }
.cc-detail li button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: 10px; font-size: 13px; color: #fff;
}
.cc-detail li button:hover { background: rgba(255, 255, 255, 0.1); }
.cc-detail li button span { width: 14px; color: #4ea1ff; font-weight: 700; }

/* desktop: the pages wrapper is invisible, folders and dock sit where they always did */
.pages { display: contents; }
.page-dots { display: none; }

/* ---------- tablets ---------- */
@media (max-width: 1100px) and (min-width: 701px) {
  .project { width: 94vw; }
  .room { bottom: calc(185 * var(--u) + 20px); }
}

/* ---------- phones: an iPhone-style home screen ---------- */
@media (max-width: 700px) {
  body { overflow: hidden; }
  .desktop { height: 100dvh; }

  /* status bar: date & time on the left, Wi-Fi and battery on the right */
  .menubar { height: 44px; padding: 0 16px; font-size: 14px; font-weight: 600; }
  .menubar__left, .menubar [data-menu="spotlight"], .menubar [data-menu="control"] { display: none !important; }
  .menubar__right { width: 100%; gap: 6px !important; }
  #menubar-clock { order: -1; margin-right: auto; font-size: 14px; }
  .menubar__item { height: 30px; padding: 0 6px; border-radius: 8px; }
  .menubar__right img { height: 15px; }
  .menubar__battery { font-size: 12px; }
  .menubar__battery img { height: 20px; }

  .room { left: 5vw; transform: none; width: 90vw; bottom: 64px; }

  .pages {
    display: flex; position: absolute; inset: 44px 0 0 0; z-index: 2;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .pages::-webkit-scrollbar { display: none; }
  .pages > .folders, .pages > .dock {
    position: static; flex: 0 0 100%; scroll-snap-align: start;
    display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: none; grid-auto-flow: row;
    align-content: start; justify-items: center;
    gap: 22px 6px; padding: 24px 14px 0; direction: ltr;
    transform: none; background: none; border: 0; box-shadow: none; border-radius: 0;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .folder { width: 78px; transform: none !important; font-size: 12px; gap: 6px; padding: 4px; }
  .folder img { width: 56px; }
  .dock__divider { display: none; }
  .dock__item { width: 60px; height: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .dock__item img { width: 60px; height: 60px; }
  .dock__item:hover { transform: none; }
  .dock__item::after { content: attr(data-title); font-size: 12px; font-weight: 500; color: #000; text-transform: capitalize; white-space: nowrap; }

  .page-dots {
    display: flex; gap: 8px; position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3;
    padding: 6px 10px; border-radius: 999px; background: rgba(38, 38, 42, 0.26);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  }
  .page-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
  .page-dots span.is-on { background: #fff; }

  /* project windows become full-screen sheets */
  .project { inset: 44px 0 0 0; width: auto; margin: 0; border-radius: 16px 16px 0 0; z-index: 10; }
  .project__content { padding: 22px 16px 64px; }
  .project__head h1 { font-size: 28px; line-height: 32px; }
  .project__thumb { width: 64px; height: 64px; }
  .project__section h2 { font-size: 22px; }
  .project__section p, .project__desc, .challenge__text p { font-size: 15px; }
  .project__desc { padding: 16px 18px; }
  .gallery h3 { font-size: 18px; }
  .gallery__viewport { height: calc((100dvh - 44px) * 0.6); }
  .project__media, .reels { grid-template-columns: 1fr 1fr; gap: 10px; }
  .screens__row { flex-direction: column; }
  .screens__row img { flex: none !important; }

  /* small windows fill the screen width */
  .app-window { width: calc(100vw - 24px) !important; max-height: calc(100dvh - 70px); overflow-y: auto; }
  .notes { grid-template-columns: 1fr; height: auto; max-height: calc(100dvh - 120px); }
  .notes__side { flex-direction: row; border-right: 0; border-bottom: 1px solid #d6d0cc; padding: 6px 8px; gap: 4px; }
  .notes__side button { flex: 1; border-bottom: 0; font-size: 13px; padding: 8px 6px; }
  .app-window--notes .app-window__title { font-size: 12px; }
  .app-window__title { position: static; transform: none; flex: 1; min-width: 0; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .notes__side button span, .notes__side button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .notes__side button small { flex: none; margin-left: 4px; }
  .notes__body { overflow-wrap: anywhere; }
  .trash__head, .trash__row { grid-template-columns: minmax(0, 1fr) 70px; }
  .trash__head span:nth-child(n+3), .trash__row span:nth-child(n+3) { display: none; }
  .sp__row { grid-template-columns: 22px 40px 1fr 40px; }
  .sp__plays { display: none; }
  .menu-pop--control, .menu-pop--clock { width: calc(100vw - 16px); }
  .offline__inner { padding: 0 16px; }
}
