[hidden] { display: none !important; }

/* ============ Tokens ============
   Warm off-white page, grey condensed labels, a script title, macOS-style windows. */
:root {
  --bg: #f2f2ec;
  --ink: #1a1a17;
  --gray: #85857c;
  --line: #e8e8e2;
  --tan: #c9b99a;
  --placeholder: #cbccd0;
  --display: var(--cond)
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 8px 22px rgba(40,40,25,.13), 0 1px 3px rgba(40,40,25,.1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--cond); font-size: 18px; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid #2a6df4; outline-offset: 3px; border-radius: 6px; }
.noscroll { overflow: hidden; }
.wrap { width: min(1200px, 100%); margin-inline: auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* ---------- top bar ---------- */
.top { display: flex; justify-content: space-between; align-items: center; padding-top: 44px; font-family: var(--display); font-size: 30px; letter-spacing: .02em; text-transform: uppercase; color: var(--gray); }
.top a { text-decoration: none; transition: color .2s; }
.top a:hover { color: var(--ink); }
.links { display: flex; gap: clamp(18px, 4vw, 48px); }
.links a.todo { opacity: .55; cursor: help; }
@media (max-width: 520px) { .top { font-size: 20px; gap: 10px; } .links { gap: 12px; } .foot { font-size: 22px; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 460px) 1fr; align-items: center; gap: 24px; padding-block: 56px 28px; }
.welcome { font-family: var(--script); font-weight: 400; font-size: clamp(54px, 6.2vw, 88px); line-height: 1.45; letter-spacing: -.01em; }
.welcome span { display: block; }
.welcome span + span { padding-left: .12em; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-block: 36px 12px; }
  .welcome { font-size: clamp(52px, 15vw, 72px); line-height: 1.25; }
  .welcome span + span { padding-left: 0; }
}
/* ============ HERO SECTION ============ */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* ============ iMac (generic all-in-one monitor) ============ */
.imac-wrap {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  justify-self: center;
  box-sizing: border-box;
}

.imac {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Screen frame */
.screen-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 3.4% 3.4% 3.8%;
  border-radius: 14px 14px 0 0;
  background: #0b0b0b;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 #444 inset;
  text-align: left;
}

/* Screen reflection */
.screen-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    transparent 72%,
    rgba(255, 255, 255, 0.2) 73%,
    rgba(255, 255, 255, 0.04) 82%,
    transparent 83%
  );
}

/* Display */
.display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: filter 0.3s;
}

.screen-btn:hover .display {
  filter: brightness(0.97);
}

/* Photo strips */
.strips {
  width: 100%;
  height: 100%;
  color: var(--ink);
}

.strips g.s {
  transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.screen-btn:hover .strips g.s:nth-of-type(1) {
  transform: translateY(-5px) rotate(-2deg);
}

.screen-btn:hover .strips g.s:nth-of-type(2) {
  transform: translateY(-8px);
}

.screen-btn:hover .strips g.s:nth-of-type(3) {
  transform: translateY(-5px) rotate(2deg);
}

/* Call-to-action text */
.cta-text {
  font-size: clamp(12px, 1.5vw, 15px);
  line-height: 1.55;
  padding-left: 14%;
  color: var(--ink);
}

/* Monitor chin */
.chin {
  width: 100%;
  padding-top: 9%;
  background: linear-gradient(#e9e9eb, #b8b8bd);
  border-radius: 0 0 10px 10px;
  border-top: 1px solid #77777b;
  box-sizing: border-box;
}

/* Monitor neck */
.neck {
  width: 24%;
  height: clamp(34px, 11vw, 52px);
  margin-top: -1px;
  background: linear-gradient(
    90deg,
    #8f8f94,
    #ececef 38%,
    #c6c6cb 70%,
    #86868b
  );
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}

/* Monitor base */
.base {
  width: 38%;
  height: 14px;
  margin-top: -1px;
  border-radius: 50% 50% 50% 50% / 25% 25% 75% 75%;
  background: linear-gradient(#d6d6da, #98989d);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.18);
}

/* Keyboard and mouse */
.peripherals {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7%;
  width: 100%;
  margin: 12px auto 0;
}

.keyboard {
  width: 58%;
  height: 30px;
  border-radius: 5px;
  background: linear-gradient(#f7f7f8, #d0d0d4);
  border: 1px solid #b5b5ba;
  position: relative;
  transform: perspective(240px) rotateX(40deg);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.keyboard::before {
  content: "";
  position: absolute;
  inset: 4px;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0 7px,
      rgba(0, 0, 0, 0.14) 7px 8px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 6px,
      rgba(0, 0, 0, 0.12) 6px 7px
    );
}

.mouse {
  width: 17%;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 30% 25%,
    #fff,
    #d4d4d8 70%,
    #a9a9ae
  );
  transform: rotate(10deg);
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.18);
}

/* Responsive sizing for mobile */
@media (max-width: 600px) {
  .imac-wrap {
    width: 90%;
    max-width: 450px;
  }

  .hero {
    padding-inline: 0;
  }
}
/* ---------- dock ---------- */
.dock-wrap { display: flex; justify-content: center; padding: 40px 16px 44px;   position: sticky;
  top: -28px;              /* the 40px top padding slides off-screen, the dock rests ~12px from the top */
  z-index: 50;
  pointer-events: none;}
  .dock-wrap.stuck .dock {
  transform: scale(.94);
  box-shadow: 0 6px 12px rgba(40,40,25,.2), inset 0 1px 0 #fff;
}
.dock { display: flex; gap: clamp(16px, 4vw, 34px); position: relative;padding: 12px clamp(18px, 4vw, 30px) 10px; border-radius: 999px; background: linear-gradient(#f1f1ec, #deded8); box-shadow: 0 10px 16px rgba(40,40,25,.22), inset 0 1px 0 #fff; }
.dock-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 64px; font-family: var(--cond); font-size: 15px; line-height: 1; color: var(--ink); }
.dock-item svg.folder { width: 56px; height: 46px; transition: transform .25s cubic-bezier(.3,1.6,.5,1); filter: drop-shadow(0 3px 3px rgba(0,0,0,.18)); position: relative; z-index: 1; }
.dock-item:hover svg.folder { transform: translateY(-7px) scale(1.12); }
.dock-item[aria-selected="true"] svg.folder { transform: translateY(-4px); }
.dock-item[aria-selected="true"]::after { content: ""; position: absolute; bottom: -8px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.folder .tab { fill: var(--tab); } .folder .body { fill: var(--body); } .folder .gloss { fill: #fff; opacity: .22; }
.folder.pink { --tab: #ffb6cb; --body: #ffd2df; }
.folder.blue { --tab: #4aaeef; --body: #79cbfb; }
.folder.wine { --tab: #6a1230; --body: #8a1c40; }

/* ---------- walking cat ---------- */
.cat-track {
  position: absolute;
  left: 30px; right: 30px;          /* stay on the flat part of the pill */
  bottom: calc(100% - 3px);         /* paws overlap the dock edge a little */
  height: 34px;
  pointer-events: none;
  z-index: 2;
}
.cat {
  --w: 38px;
  position: absolute; bottom: 0; left: 0;
  width: var(--w);
  animation: cat-patrol 14s ease-in-out infinite;
}
.cat-flip { display: block; animation: cat-turn 14s linear infinite; }
.cat-sprite {
  display: block; width: 100%; height: auto; overflow: visible;
  transform-origin: 50% 100%;
  animation: cat-bob .45s ease-in-out infinite alternate;
}
.cat-tail { transform-origin: 14px 15px; animation: cat-wag .6s ease-in-out infinite alternate; }

@keyframes cat-patrol {
  0%, 6%   { left: 0; }
  44%, 56% { left: calc(100% - var(--w)); }
  94%, 100%{ left: 0; }
}
@keyframes cat-turn {            /* flips while paused at the right end */
  0%, 49.9% { transform: scaleX(1); }
  50%, 100% { transform: scaleX(-1); }
}
@keyframes cat-bob  { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-2px) rotate(3deg); } }
@keyframes cat-wag  { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }

@media (prefers-reduced-motion: reduce) {
  .cat, .cat-flip, .cat-sprite, .cat-tail { animation: none; }
  .cat { left: calc(50% - 19px); }
}
/* ---------- quests: finder window ---------- */

.qf {
  display: grid; grid-template-columns: 200px minmax(0, 1fr);
  width: min(950px, 100%); height: 700px; margin: 0 auto;
  border-radius: 12px; overflow: hidden;
  background: #f6f6f6; font-family: var(--cond);
  box-shadow: 0 18px 30px rgba(40,25,25,.2), 0 0 0 1px rgba(0,0,0,.08);
}
.qf-side { display: flex; flex-direction: column; gap: 10px; padding: 12px 8px; background: #e6ddd8; border-right: 1px solid rgba(0,0,0,.12); min-width: 0; }
.qf-lights { display: flex; gap: 6px; padding: 0 4px; }
.qf-lights i { width: 10px; height: 10px; border-radius: 50%; }
.qf-lights .r { background: #ff5f57; } .qf-lights .y { background: #febc2e; } .qf-lights .g { background: #28c840; }
.qf-search { display: flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 7px; background: rgba(0,0,0,.08); color: #8a8481; font-size: 12px; }
.qf-search svg { width: 11px; height: 11px; flex: none; }
.qf-search input { all: unset; flex: 1; min-width: 0; color: var(--ink); }
.qf-nav { display: flex; flex-direction: column; gap: 2px; }
.qf-nav button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; font-size: 14px; color: var(--ink); cursor: pointer; }
.qf-nav button:hover { background: rgba(0,0,0,.05); }
.qf-nav button:focus-visible { outline: 2px solid #2f97f7; outline-offset: 1px; }
.qf-nav button[aria-current="true"] { background: #2f97f7; color: #fff; }
.qf-ico { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; color: #fff; background: var(--c, #888); }

.qf-main { min-width: 0; padding: 4px; overflow: hidden; }
.qf-pane { height: 100%; box-sizing: border-box; padding: 12px 18px; background: #f7f7f7; overflow-y: auto; }
.qf-eyebrow { margin: 0; font-size: 20px; color: #9a9a9a; line-height: 1.1; }
.qf-title { margin: 0 0 14px; font-family: system-ui, sans-serif; font-size: 12px; font-weight: 700; line-height: 1.2; color: #000; }
.qf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 12px 8px; }
.qf-item { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 3px; border-radius: 8px; cursor: pointer; text-align: center; font-size: 12px; color: #555; }
.qf-item svg.folder { width: 46px; height: 38px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.12)); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.qf-item:hover svg.folder { transform: translateY(-3px) scale(1.08); }
.qf-item:focus-visible { outline: 2px solid #2f97f7; }
.qf-empty { grid-column: 1 / -1; color: #9a9a9a; font-size: 13px; }
/* ---------- views ---------- */
.view.enter { animation: rise .45s cubic-bezier(.22,1.1,.36,1); }
.windows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 34px; padding-block: 8px 80px; }
.windows.one { grid-template-columns: minmax(0, 560px); justify-content: center; }
.span2 { grid-column: 1 / -1; }
@media (max-width: 760px) { .windows { grid-template-columns: 1fr; gap: 36px; } }

.win { background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.win-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); flex: none; }
.lights { display: flex; gap: 7px; align-items: center; }
.lights i, .light { width: 10px; height: 10px; border-radius: 50%; display: block; position: relative; }
.r { background: #ff5f57; } .y { background: #febc2e; } .g { background: #28c840; }
button.light:hover::after { content: "×"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 10px/1 var(--sans); color: rgba(0,0,0,.55); }
.win-title { display: flex; align-items: center; gap: 6px; font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .02em; }
.win-title svg { width: 13px; height: 11px; fill: none; stroke: var(--ink); stroke-width: 1.2; }
.win-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.win-img { position: relative; width: 100%; aspect-ratio: 506 / 293; background: var(--placeholder); border-radius: 8px; overflow: hidden; }
.win-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.win-text { font-size: 17px; line-height: 1.35; }
.win-text.big { font-size: 20px; }
.win-text.soon { color: var(--gray); }
.win.project { cursor: pointer; transition: transform .3s cubic-bezier(.22,1.1,.36,1), box-shadow .3s; }
.win.project:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(40,40,25,.18), 0 1px 3px rgba(40,40,25,.1); }
.rows li { display: flex; flex-direction: column; padding: 10px 0; }
.rows li + li { border-top: 1px solid var(--line); }
.rows strong { font-weight: 600; font-size: 20px; }
.rows span { color: var(--gray); font-size: 17px; }

/* ---------- hobbies ---------- */
.hobbies { width: min(620px, 100%); margin: 0 auto; padding-top: 8px; font-family: var(--sans); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tan); }
.hob-line { margin-top: 14px; font-size: 17px; }
.carousel { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: center; margin-top: 44px; }
.deck { position: relative; width: 206px; aspect-ratio: 1; margin: 0 auto; }
.hcard { --x: 0px; --y: 0px; --r: 0deg; --s: 1; position: absolute; inset: 0; border-radius: 16px; overflow: hidden; border: 3px solid rgba(255,255,255,.92); box-shadow: 0 12px 26px rgba(0,0,0,.22); background: linear-gradient(135deg, var(--g1), var(--g2)); transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s)); transition: transform .55s cubic-bezier(.22,1.1,.36,1), opacity .4s; cursor: pointer; }
.hcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hcard .ph-label { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 22px; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.hcard.has-photo .ph-label { display: none; }
.car-text h3 { font-size: 17px; font-weight: 700; }
.car-text p { margin-top: 8px; font-size: 19px; line-height: 1.45; color: #8b8b93; min-height: 4.4em; }
.arrows { display: flex; gap: 34px; margin-top: 26px; }
.arrows button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; transition: background .2s, transform .2s; }
.arrows button:hover { background: rgba(0,0,0,.06); }
.arrows button:active { transform: scale(.9); }
.arrows svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rule { border: 0; border-top: 1px solid #cfcfc7; margin: 64px 0 56px; }
@media (max-width: 640px) { .carousel { grid-template-columns: 1fr; gap: 28px; text-align: center; } .arrows { justify-content: center; } .car-text p { min-height: 0; } }

/* ---------- footer ---------- */
.foot { text-align: right; padding-block: 24px 48px; font-family: var(--display); font-size: 26px; letter-spacing: .02em; text-transform: uppercase; color: var(--gray); }

/* ---------- sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(26,26,23,0); overflow-y: auto; transition: background .25s; }
.sheet.show { background: rgba(26,26,23,.38); }
.sheet .win { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; transform: scale(.96) translateY(14px); opacity: 0; transition: transform .35s cubic-bezier(.22,1.1,.36,1), opacity .2s; }
.sheet .win.wide { width: min(820px, 100%); }
.sheet.show .win { transform: none; opacity: 1; }
.sheet .win-bar { position: sticky; top: 0; background: #fff; z-index: 2; }
.help { font-size: 18px; text-align: center; color: var(--gray); }
.row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.row.left { justify-content: flex-start; }
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 8px; background: #f4f4ef; border: 1px solid #dcdcd3; transition: background .2s, transform .15s; text-decoration: none; color: var(--ink); }
.btn:hover { background: #ebebe4; }
.btn:active { transform: scale(.97); }
.btn.dark, .btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.cam { position: relative; background: #000; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; }
.cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.cam .count { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--script); font-size: 120px; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,.6); pointer-events: none; }
#stripCanvas { display: block; max-width: 100%; max-height: 52vh; margin: 0 auto; border-radius: 6px; box-shadow: var(--shadow); }
.shots { display: flex; flex-direction: column; gap: 14px; }
.shots img { width: 100%; height: auto; border-radius: 8px; display: block; background: var(--placeholder); }
.proto { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 8px; background: #fafafa; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
#psPhone
#psPhone video
.phone-empty