:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background: #101111;
  color-scheme: dark;
  --cream: #f5eee4;
  --brown: #81583e;
  --dim: 0.18;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #efc8a2;
  outline-offset: 5px;
}
button {
  border: 0;
}
button[hidden],
[hidden] {
  display: none !important;
}
::selection {
  background: #ad7954;
  color: white;
}
.stage {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 440px 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1500px;
  padding: 44px 65px;
  margin: auto;
  position: relative;
}
.stage:before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, #4133282a, transparent 60%);
  z-index: -1;
}
.intro .eyebrow,
.micro {
  font: 10px/1.6 monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999b92;
}
.intro h1 {
  font-size: clamp(50px, 5.6vw, 82px);
  line-height: 1;
  letter-spacing: -0.065em;
  font-weight: 400;
  margin: 25px 0;
}
.intro h1 em {
  font:
    italic 1em Georgia,
    serif;
  color: #d5b89f;
}
.intro p {
  font-size: 13px;
  line-height: 1.9;
  color: #979b93;
  max-width: 230px;
}
.intro .line {
  width: 45px;
  height: 1px;
  background: #71614f;
  margin: 30px 0;
}
.side-note {
  align-self: end;
  margin-bottom: 30px;
  max-width: 210px;
}
.side-note .number {
  font:
    italic 68px Georgia,
    serif;
  color: #665b4d;
  margin: 0 0 20px;
}
.side-note p {
  font-size: 12px;
  line-height: 1.9;
  color: #93988d;
}
.side-note a {
  display: inline-block;
  font: 10px monospace;
  letter-spacing: 0.08em;
  margin-top: 17px;
  border-bottom: 1px solid #555a4f;
  padding-bottom: 10px;
}
.device {
  position: relative;
  width: 410px;
  height: min(850px, calc(100svh - 70px));
  min-height: 720px;
  border: 1px solid #6c6e6b;
  border-radius: 59px;
  padding: 10px;
  background: linear-gradient(
    100deg,
    #444544,
    #131513 8%,
    #090b0a 90%,
    #535550
  );
  box-shadow:
    0 0 0 3px #080908,
    0 0 0 4px #383a35,
    0 40px 100px #000b;
  margin: auto;
}
.device:before {
  content: "";
  position: absolute;
  left: -5px;
  top: 170px;
  width: 3px;
  height: 85px;
  border-radius: 4px;
  background: #646760;
}
.device:after {
  content: "";
  position: absolute;
  right: -5px;
  top: 200px;
  width: 3px;
  height: 60px;
  background: #646760;
  border-radius: 4px;
}
.screen {
  width: 100%;
  height: 100%;
  border-radius: 49px;
  overflow: hidden;
  position: relative;
  background: #1e2421;
  isolation: isolate;
}
.wallpaper {
  position: absolute;
  inset: -4%;
  background: url("wallpaper.jpg") center center/cover;
  z-index: -2;
  transition:
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 1s;
  filter: brightness(calc(1 - var(--dim)));
  transform: scale(1.02);
}
.screen:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#0002, transparent 40%, #0005);
  z-index: -1;
}
.screen.unlocked .wallpaper {
  filter: brightness(0.64) blur(8px);
  transform: scale(1.13);
}
.island {
  position: absolute;
  z-index: 25;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 106px;
  height: 29px;
  background: #030403;
  border-radius: 24px;
  box-shadow: 0 0 0 1px #ffffff04;
}
.island:after {
  content: "";
  position: absolute;
  right: 13px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1e334d, #05070a 70%);
}
.statusbar {
  position: absolute;
  top: 17px;
  left: 30px;
  right: 26px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  z-index: 24;
  pointer-events: none;
}
.status-time {
  min-width: 45px;
}
.status-right {
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-right svg {
  height: 12px;
  width: 16px;
}
.battery {
  width: 22px;
  height: 11px;
  border: 1px solid #ffffffb0;
  border-radius: 3px;
  position: relative;
  padding: 2px;
}
.battery:before {
  content: "";
  position: absolute;
  left: 2px;
  right: 3px;
  top: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 1px;
}
.battery:after {
  content: "";
  position: absolute;
  width: 2px;
  height: 4px;
  right: -4px;
  top: 3px;
  background: #fff8;
  border-radius: 0 2px 2px 0;
}
.lock {
  position: absolute;
  inset: 0;
  z-index: 10;
  text-align: center;
  padding: 65px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  touch-action: none;
  transition:
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.5s;
  user-select: none;
}
.screen.unlocked .lock {
  transform: translateY(-105%);
  opacity: 0;
  pointer-events: none;
}
.lock-owner {
  font-size: 10px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fffdf2df;
  margin-top: 4px;
}
.lock-owner svg {
  width: 11px;
  height: 13px;
}
.lock-date {
  font-size: 17px;
  margin-top: 24px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.lock-time {
  font-size: 96px;
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -6px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  color: #fff8ea;
  text-shadow: 0 3px 30px #0001;
}
.seconds-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  color: #fff5e3d0;
  font: 10px monospace;
  letter-spacing: 0.12em;
}
.second-dot {
  width: 4px;
  height: 4px;
  background: #fff0d3;
  border-radius: 50%;
  animation: pulse 1s ease infinite;
}
.lock-tagline {
  font:
    italic 22px Georgia,
    serif;
  letter-spacing: -0.5px;
  margin-top: 27px;
  color: #fff4e6;
}
.lock-bottom {
  margin-top: auto;
  width: 100%;
}
.notification {
  width: 100%;
  padding: 16px 17px;
  border: 1px solid #ffffff28;
  border-radius: 22px;
  background: #e4d8cc23;
  backdrop-filter: blur(22px);
  text-align: left;
  margin-bottom: 38px;
  box-shadow: 0 5px 20px #0001;
}
.notification-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #ffffffb0;
}
.notice-mark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: #ead9c7;
  color: #3b2b20;
  border-radius: 6px;
  font-size: 15px;
  margin-right: 7px;
}
.notification strong {
  font-size: 13px;
  display: block;
  margin: 10px 0 5px;
}
.notification p {
  font-size: 11px;
  line-height: 1.6;
  color: #ffffffe0;
  margin: 0;
}
.lock-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.round {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff20;
  border: 1px solid #ffffff18;
  backdrop-filter: blur(10px);
}
.round svg {
  height: 19px;
  width: 19px;
}
.unlock-btn {
  background: none;
  padding: 5px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.unlock-btn .chevron {
  font-size: 20px;
  animation: up 2.6s infinite;
}
.sample-note {
  position: absolute;
  bottom: 13px;
  left: 0;
  right: 0;
  font: 7px monospace;
  letter-spacing: 0.12em;
  color: #fff9;
  pointer-events: none;
}
.home {
  position: absolute;
  inset: 0;
  padding: 72px 22px 115px;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition:
    opacity 0.6s,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: auto;
  scrollbar-width: none;
}
.screen.unlocked .home {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.greeting {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #ffead6c7;
  text-transform: uppercase;
  margin: 0 0 7px;
}
.home h1 {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -1.5px;
  margin: 0 0 22px;
}
.widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 30px;
}
.widget {
  background: #eee6d72b;
  border: 1px solid #ffffff23;
  backdrop-filter: blur(20px);
  border-radius: 23px;
  padding: 16px;
  min-height: 137px;
  text-align: left;
}
.calendar-day {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #f6d0b5;
  text-transform: uppercase;
}
.calendar-num {
  font-size: 49px;
  letter-spacing: -2px;
  margin: 3px 0 1px;
  line-height: 1;
}
.calendar-month {
  font-size: 11px;
  color: #fffad7bb;
}
.heab-widget {
  background: #81583ebd;
  position: relative;
  overflow: hidden;
}
.heab-widget:after {
  content: "✳";
  position: absolute;
  right: -13px;
  bottom: -28px;
  font-size: 120px;
  color: #fff1dc12;
}
.heab-widget .micro {
  font-size: 8px;
  color: #f9e2cc;
}
.heab-widget strong {
  font-size: 20px;
  line-height: 1.1;
  display: block;
  margin-top: 18px;
  letter-spacing: -0.6px;
  color: #fff2df;
  position: relative;
  z-index: 1;
}
.apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 23px 14px;
}
.app-button {
  padding: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
}
.app-icon {
  height: 61px;
  width: 61px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 1px 1px #ffffff45,
    0 4px 12px #0002;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.app-button:hover .app-icon {
  transform: translateY(-4px) rotate(-3deg);
}
.app-button:active .app-icon {
  transform: scale(0.9);
}
.app-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-label {
  font-size: 10px;
  text-shadow: 0 1px 5px #0008;
}
.about-icon {
  background: linear-gradient(145deg, #7d9dbe, #3e6082);
  color: #edf6ff;
}
.work-icon {
  background: linear-gradient(145deg, #f1c47c, #d89948);
  color: #593d20;
}
.heab-icon {
  background: linear-gradient(145deg, #b68b64, #70462d);
  color: #fff1d8;
  font-weight: 900;
  font-size: 33px;
  letter-spacing: -2px;
}
.photos-icon {
  background: #f5eee6;
}
.photos-icon .flower {
  position: relative;
  width: 36px;
  height: 36px;
}
.flower i {
  position: absolute;
  width: 16px;
  height: 23px;
  left: 10px;
  top: 0;
  border-radius: 14px;
  transform-origin: 8px 18px;
  opacity: 0.85;
  background: var(--c);
  transform: rotate(var(--r));
}
.ideas-icon {
  background: linear-gradient(145deg, #e8eaa2, #a8b869);
  color: #39451e;
}
.notes-icon {
  background: linear-gradient(#f4cb65 0 25%, #faf4df 25%);
  color: #8c8060;
}
.now-icon {
  background: #24292a;
  color: #d9e6dc;
}
.settings-icon {
  background: linear-gradient(145deg, #b1b6b9, #687078);
  color: #f4f6f7;
}
.compass-icon {
  background: linear-gradient(145deg, #87c9df, #377b9b);
  color: #eaf7ff;
}
.dock {
  position: absolute;
  bottom: 28px;
  left: 16px;
  right: 16px;
  border-radius: 29px;
  padding: 14px 17px;
  display: flex;
  justify-content: space-around;
  background: #eee5d725;
  backdrop-filter: blur(25px);
  border: 1px solid #ffffff22;
  z-index: 2;
  opacity: 0;
  transform: translateY(120%);
  transition:
    transform 0.7s 0.1s,
    opacity 0.5s;
}
.screen.unlocked .dock {
  opacity: 1;
  transform: none;
}
.dock .app-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
}
.dock .app-button {
  gap: 6px;
}
.dock .app-label {
  font-size: 8px;
}
.home-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 138px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  opacity: 0;
}
.screen.unlocked .home-dots {
  opacity: 1;
}
.home-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff45;
}
.home-dots i:first-child {
  background: #fff;
}
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  height: 5px;
  width: 112px;
  border: 0;
  padding: 0;
  background: #ffffffe5;
  border-radius: 8px;
  z-index: 28;
}
.app-view {
  position: absolute;
  inset: 0;
  z-index: 18;
  background: #f4f0e8;
  color: #282d28;
  display: flex;
  flex-direction: column;
  padding-top: 55px;
  transform-origin: 50% 80%;
  animation: appOpen 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.screen.app-open .statusbar {
  color: #30332d;
}
.screen.app-open .status-right svg {
  color: #30332d;
}
.screen.app-open .battery {
  border-color: #30332d;
}
.screen.app-open .battery:before,
.screen.app-open .battery:after {
  background: #30332d;
}
.screen.app-open .home-indicator {
  background: #30332d;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 16px;
  border-bottom: 1px solid #282d2813;
  background: #f4f0e8f2;
  z-index: 1;
  gap: 10px;
  flex-shrink: 0;
}
.home-btn {
  background: #282d2809;
  border-radius: 50%;
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  color: #495247;
}
.home-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.app-header h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.lock-btn {
  background: none;
  color: #76806f;
  font-size: 10px;
}
.app-content {
  padding: 26px 23px 40px;
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #c0b8aa transparent;
}
.app-content h3 {
  font-size: 35px;
  letter-spacing: -1.7px;
  font-weight: 500;
  margin: 15px 0 20px;
  line-height: 1.05;
}
.app-content p {
  font-size: 13px;
  line-height: 1.8;
  color: #6a7064;
}
.app-content .micro {
  font-size: 9px;
  color: #8a8c7e;
}
.initials {
  height: 85px;
  width: 85px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  color: #f9ebdb;
  background: #81583e;
  font:
    38px Georgia,
    serif;
  margin: 7px 0 24px;
}
.pill-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.pill-row span {
  border: 1px solid #282d2820;
  border-radius: 20px;
  padding: 7px 10px;
  font-size: 9px;
}
.content-card {
  background: #fffdf8;
  border: 1px solid #282d2814;
  border-radius: 20px;
  margin: 14px 0;
  padding: 19px;
}
.content-card h4 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 0 0 9px;
}
.content-card p {
  font-size: 12px;
  margin: 0;
}
.content-card details {
  border-top: 1px solid #282d2812;
  margin-top: 15px;
  padding-top: 12px;
}
.content-card summary {
  font-size: 11px;
  cursor: pointer;
  color: #81583e;
}
.content-card details p {
  margin-top: 12px;
}
.project-banner {
  height: 100px;
  border-radius: 14px;
  margin-bottom: 17px;
  display: grid;
  place-items: center;
  font:
    28px Georgia,
    serif;
  color: #e8e4d8;
  background: #19283b;
}
.project-banner.frost {
  background: #cbdcd3;
  color: #2f5149;
  font: 600 36px Arial;
  letter-spacing: -2px;
}
.project-banner.store {
  background: #d4b56b;
  color: #3a4323;
  font: bold 28px Arial;
  letter-spacing: -1px;
}
.heab-page {
  background: #81583e;
  color: #fff1dc;
  border-radius: 24px;
  padding: 25px;
  margin-top: 15px;
  position: relative;
  overflow: hidden;
}
.heab-page:after {
  content: "✳";
  position: absolute;
  right: -40px;
  top: 5px;
  font-size: 240px;
  color: #fff1dc08;
  pointer-events: none;
}
.heab-page h3 {
  font-size: 49px;
  line-height: 0.98;
  letter-spacing: -3px;
  margin: 30px 0;
}
.heab-page h3 em {
  font-family: Georgia, serif;
  font-weight: 400;
}
.heab-page p {
  color: #f1e1cb;
  font-size: 12px;
  position: relative;
  z-index: 1;
}
.heab-page .micro {
  color: #f9d6b5;
}
.notes-list {
  border-radius: 18px;
  background: #fffdf6;
  border: 1px solid #282d2810;
  overflow: hidden;
}
.note-item {
  display: block;
  text-align: left;
  width: 100%;
  padding: 20px;
  background: none;
  border-bottom: 1px solid #282d2810;
  color: #30362e;
}
.note-item:last-child {
  border: 0;
}
.note-item strong {
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
.note-item span {
  font-size: 10px;
  color: #8a8b79;
}
.note-back {
  color: #81583e;
  background: none;
  padding: 0;
  font-size: 12px;
  margin-bottom: 15px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.photo-tile {
  padding: 0;
  background: #ddd;
  aspect-ratio: 0.85;
  overflow: hidden;
  border-radius: 14px;
}
.photo-tile:first-child {
  grid-column: span 2;
  aspect-ratio: 1.4;
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.photo-tile:hover img {
  transform: scale(1.08);
}
.photo-tile:nth-child(2) img {
  object-position: left;
  transform: scale(1.5);
}
.photo-tile:nth-child(3) img {
  object-position: right;
  transform: scale(1.5);
}
.gallery-credit {
  font-size: 10px !important;
}
.gallery-credit a {
  text-decoration: underline;
}
.settings-group {
  border-radius: 18px;
  background: #fffdf8;
  padding: 0 17px;
  margin-top: 20px;
}
.setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid #282d2810;
  gap: 20px;
  font-size: 12px;
}
.setting:last-child {
  border: 0;
}
.switch {
  height: 25px;
  width: 43px;
  appearance: none;
  border: 0;
  background: #c5c8bf;
  border-radius: 30px;
  position: relative;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.switch:before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  height: 19px;
  width: 19px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px #0002;
  transition: transform 0.2s;
}
.switch:checked {
  background: #81583e;
}
.switch:checked:before {
  transform: translateX(18px);
}
.setting.range {
  flex-direction: column;
  align-items: stretch;
  gap: 13px;
}
.setting input[type="range"] {
  accent-color: #81583e;
  width: 100%;
}
.settings-lock {
  display: block;
  width: 100%;
  padding: 15px;
  background: #81583e;
  color: #fff1dc;
  border-radius: 14px;
  margin-top: 25px;
  font-size: 12px;
}
.now-big {
  font-size: clamp(36px, 4.2vw, 55px);
  letter-spacing: -4px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  margin: 25px 0 5px;
}
.now-date {
  font-size: 13px;
  color: #777e6f;
}
.quiet-list {
  padding: 0;
  list-style: none;
}
.quiet-list li {
  padding: 16px 0;
  border-bottom: 1px solid #282d2814;
  font-size: 12px;
  line-height: 1.6;
}
.quiet-list li span {
  color: #81583e;
  font: 10px monospace;
  margin-right: 10px;
}
.photo-dialog {
  border: 1px solid #ffffff20;
  background: #101511;
  color: white;
  width: min(600px, 95vw);
  padding: 15px;
  border-radius: 20px;
  max-height: 90svh;
}
.photo-dialog::backdrop {
  background: #000d;
  backdrop-filter: blur(10px);
}
.photo-dialog img {
  display: block;
  width: 100%;
  max-height: 72svh;
  object-fit: contain;
  border-radius: 10px;
}
.photo-dialog button {
  display: block;
  margin: 12px 0 0 auto;
  background: #ffffff20;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 12px;
}
.toast {
  position: absolute;
  top: 65px;
  left: 28px;
  right: 28px;
  z-index: 29;
  background: #f4f0e8f5;
  color: #424a3b;
  backdrop-filter: blur(15px);
  padding: 17px;
  border-radius: 18px;
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
  box-shadow: 0 8px 30px #0003;
  animation: appOpen 0.35s;
}
.no-motion *,
.no-motion *:before,
.no-motion *:after {
  animation: none !important;
  transition: none !important;
}
.no-seconds .seconds-line {
  visibility: hidden;
}
@keyframes appOpen {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
@keyframes up {
  0%,
  100% {
    transform: translateY(3px);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}
@media (min-height: 980px) {
  .device {
    height: 870px;
  }
  .home {
    padding-top: 90px;
  }
  .apps {
    gap: 30px 14px;
  }
  .lock-date {
    margin-top: 38px;
  }
  .notification {
    margin-bottom: 55px;
  }
}
@media (max-width: 1100px) {
  .stage {
    grid-template-columns: 1fr 420px;
    padding: 30px 40px;
    gap: 40px;
  }
  .side-note {
    display: none;
  }
  .intro h1 {
    font-size: 60px;
  }
}
@media (max-width: 760px) {
  .stage {
    display: flex;
    padding: 25px;
    justify-content: center;
  }
  .intro {
    display: none;
  }
  .device {
    min-height: 700px;
    height: calc(100svh - 50px);
    max-height: 870px;
  }
}
@media (max-width: 480px) {
  body {
    overflow: hidden;
    background: #1e2421;
  }
  .stage {
    padding: 0;
    display: block;
    min-height: 100svh;
  }
  .device {
    height: 100svh;
    min-height: 0;
    width: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .device:before,
  .device:after {
    display: none;
  }
  .screen {
    border-radius: 0;
  }
  .island {
    display: none;
  }
  .statusbar {
    top: max(17px, env(safe-area-inset-top));
    left: 25px;
    right: 25px;
  }
  .lock {
    padding-top: calc(65px + env(safe-area-inset-top));
    padding-bottom: max(25px, env(safe-area-inset-bottom));
  }
  .home {
    padding-top: calc(72px + env(safe-area-inset-top));
    padding-bottom: 125px;
  }
  .lock-time {
    font-size: clamp(88px, 24vw, 110px);
  }
  .dock {
    bottom: calc(27px + env(safe-area-inset-bottom));
  }
  .home-indicator {
    bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .app-view {
    padding-top: calc(55px + env(safe-area-inset-top));
  }
  .home-dots {
    bottom: calc(138px + env(safe-area-inset-bottom));
  }
  .sample-note {
    bottom: calc(13px + env(safe-area-inset-bottom));
  }
  .toast {
    top: calc(65px + env(safe-area-inset-top));
  }
}
@media (max-height: 730px) {
  .device {
    min-height: 0;
  }
  .home h1 {
    margin-bottom: 14px;
    font-size: 25px;
  }
  .home {
    padding-top: 62px;
  }
  .widgets {
    margin-bottom: 20px;
  }
  .widget {
    min-height: 108px;
    padding: 12px 15px;
  }
  .calendar-num {
    font-size: 39px;
  }
  .heab-widget strong {
    font-size: 18px;
    margin-top: 10px;
  }
  .apps {
    gap: 15px 10px;
  }
  .app-icon {
    width: 53px;
    height: 53px;
    border-radius: 15px;
  }
  .lock-date {
    margin-top: 16px;
  }
  .lock-time {
    font-size: 84px;
  }
  .lock-tagline {
    margin-top: 18px;
  }
  .notification {
    margin-bottom: 20px;
  }
  .dock .app-icon {
    height: 46px;
    width: 46px;
  }
  .dock {
    padding: 11px;
  }
  .lock {
    padding-top: 58px;
  }
  .notification {
    padding: 13px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
/* Gallery dropdown and album cards */
.unlived-gallery {
  container-type: inline-size;
}

.unlived-gallery .gallery-filter {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin-bottom: 14px;
}

.unlived-gallery .gallery-filter summary,
.unlived-gallery .gallery-back {
  box-sizing: border-box;
  min-width: 108px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #52604c;
  border-radius: 11px;
  background: #263225;
  color: #edf3e5;
  font: inherit;
  cursor: pointer;
}

.unlived-gallery .gallery-filter summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}

.unlived-gallery .gallery-filter summary::-webkit-details-marker {
  display: none;
}

.unlived-gallery .gallery-filter[open] summary svg {
  transform: rotate(180deg);
}

.unlived-gallery .gallery-options {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 145px;
  padding: 4px;
  border: 1px solid #52604c;
  border-radius: 12px;
  background: #1c261d;
  box-shadow: 0 8px 24px #080d08a0;
}

.unlived-gallery .gallery-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #edf3e5;
  font: inherit;
  text-align: left;
}

.unlived-gallery .gallery-options button[aria-pressed="true"] {
  background: #354634;
}

.unlived-gallery .gallery-options button svg {
  visibility: hidden;
}

.unlived-gallery .gallery-options button[aria-pressed="true"] svg {
  visibility: visible;
}

.unlived-gallery :is(.gallery-filter, .gallery-field) svg {
  width: 15px;
  height: 15px;
  color: #bfd6a6;
}

.unlived-gallery .gallery-album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}

.unlived-gallery .gallery-album {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #404b3b;
  border-radius: 14px;
  background: #1c271e;
  color: #f1f2e8;
  font: inherit;
  text-align: left;
  white-space: normal;
}

.unlived-gallery .gallery-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 108px;
  padding: 10px;
  background: linear-gradient(145deg, #46583f, #171f17);
}

.unlived-gallery .gallery-cover img,
.unlived-gallery .gallery-cover::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.unlived-gallery .gallery-cover img {
  z-index: -2;
  object-fit: cover;
}

.unlived-gallery .gallery-cover::after {
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, #0b110bea, transparent 80%);
}

.unlived-gallery .gallery-cover strong {
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.unlived-gallery .gallery-album-info {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.72fr);
}

.unlived-gallery .gallery-field {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 8px 5px;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.unlived-gallery .gallery-field + .gallery-field {
  border-left: 1px solid #3b4937;
}

.unlived-gallery :is(button, summary):focus-visible {
  outline: 2px solid #c3e9ac;
  outline-offset: -3px;
}

.unlived-gallery .gallery-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@container (max-width: 359px) {
  .unlived-gallery .gallery-album-grid {
    grid-template-columns: 1fr;
  }

  .unlived-gallery .gallery-field {
    padding-inline: 8px;
  }
}
.app-content .project-teaser {
  --teaser-accent: #cbe9ac;
  --teaser-glow: #2c422c;
  --teaser-base: #121812;
  --teaser-border: #465642;

  padding: 23px 19px;
  border: 1px solid var(--teaser-border);
  background: radial-gradient(
    ellipse at top right,
    var(--teaser-glow),
    var(--teaser-base) 75%
  );
}

.app-content .project-teaser--heab {
  --teaser-accent: #edb887;
  --teaser-glow: #513523;
  --teaser-base: #211711;
  --teaser-border: #71503a;
}

.app-content .project-teaser h4 {
  margin: 5px 0 8px;
  color: #f5efe8;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.app-content .project-teaser p {
  color: #d0c9be;
}

.project-teaser-loader {
  width: min(100%, 220px);
  height: 4px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--teaser-border);
}

.project-teaser-loader::after {
  display: block;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--teaser-accent),
    transparent
  );
  animation: project-teaser-scan 1.8s linear infinite;
  content: "";
}

.app-content .project-teaser .project-teaser-status {
  margin-top: 8px;
  color: var(--teaser-accent);
  font-size: 12px;
  font-weight: 600;
}

@keyframes project-teaser-scan {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(225%);
  }
}

.no-motion .project-teaser-loader::after {
  animation: none;
  transform: translateX(60%);
}

@media (prefers-reduced-motion: reduce) {
  .project-teaser-loader::after {
    animation: none;
    transform: translateX(60%);
  }
}
.heab-genesis {
  margin: 14px 0 20px;
}

.heab-genesis-slides {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border: 1px solid #71503a;
  border-radius: 16px;
  background: #211711;
}

.heab-genesis-slides > img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  scroll-snap-align: start;
}

.heab-genesis-controls {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
