/* ==========================================================================
   Digital Random Things Playground Studio — Glass Lab
   Fonts are loaded via <link> in each HTML <head> (Fraunces variable + Pretendard).
   ========================================================================== */

:root {
  --base: #ECEEF8;
  --ink: #12141C;
  --ink-2: #2B2F3C;
  --muted: #565C6E;

  --pink: #FF8DB2;
  --pink-deep: #E8467E;
  --blue: #9DB6FF;
  --violet: #B7A6FF;
  --sage: #9FE0C4;
  --amber: #FFE29A;

  --glass-bg: linear-gradient(150deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.32) 100%);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-blur: blur(26px) saturate(170%);
  --chip-bg: rgba(255, 255, 255, 0.55);
  --shadow-glass:
    0 0 0 1px rgba(18, 20, 28, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25),
    0 28px 48px -28px rgba(58, 62, 140, 0.32),
    0 2px 6px rgba(58, 62, 140, 0.06);

  --r-xl: 36px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --display: "Fraunces", "Pretendard", Georgia, "Times New Roman", serif;
  --body: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  --soft: "SOFT" 100, "WONK" 1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--base);
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  background: transparent;
  overflow-x: clip;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

/* Aurora: the one ambient motion on the page */
body::before {
  position: fixed;
  inset: -15%;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 18% 20%, rgba(255, 141, 178, 0.62), transparent 70%),
    radial-gradient(34% 40% at 82% 14%, rgba(157, 182, 255, 0.70), transparent 70%),
    radial-gradient(40% 44% at 74% 72%, rgba(159, 224, 196, 0.55), transparent 70%),
    radial-gradient(30% 34% at 22% 84%, rgba(255, 226, 154, 0.55), transparent 70%),
    radial-gradient(26% 30% at 50% 46%, rgba(183, 166, 255, 0.34), transparent 72%);
  transition: filter 900ms ease;
  animation: aurora-drift 42s ease-in-out infinite alternate;
}

/* Fine grain so the glass has something to catch */
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
.project-row:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Glass surfaces (shared)
   -------------------------------------------------------------------------- */
.mini-mark,
.dock,
.section-note,
.useless-note,
.project-list,
.project-preview,
.lab-folders,
.archive-section,
.links-section,
.site-footer,
.project-dialog,
.lost-card,
.noscript-projects {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--shadow-glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mini-mark,
  .dock,
  .section-note,
  .useless-note,
  .project-list,
  .project-preview,
  .lab-folders,
  .archive-section,
  .links-section,
  .site-footer,
  .project-dialog,
  .lost-card,
  .noscript-projects {
    background: rgba(250, 251, 255, 0.92);
  }
}

/* Small pills and notes */
.hero-chip,
.folder-tab,
.status-stamp,
.dialog-stamp,
.project-row__status,
.project-preview__status,
.archive-tag,
.reserved-label,
.lost-sticker,
.lost-folder__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  box-shadow: 0 0 0 1px rgba(18, 20, 28, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-transform: lowercase;
}

.archive-tag,
.reserved-label,
.lost-sticker {
  padding: 12px 18px;
  border-radius: var(--r-md);
  line-height: 1.5;
  text-align: left;
}

/* --------------------------------------------------------------------------
   Brand mark + bottom dock
   -------------------------------------------------------------------------- */
.workbench {
  position: relative;
  z-index: 5;
  display: flex;
  width: min(100% - 48px, 1320px);
  padding-top: 22px;
  margin: 0 auto;
}

.mini-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 5px 20px 5px 6px;
  border-radius: var(--r-pill);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
}

.mini-mark > span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #fff, rgba(255, 255, 255, 0.35) 62%), linear-gradient(140deg, var(--pink), var(--violet));
  box-shadow: 0 8px 18px -8px rgba(232, 70, 126, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--pink-deep);
  font-size: 1.05rem;
}

.dock {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 20px);
  padding: 7px;
  border-radius: var(--r-pill);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56));
  transform: translateX(-50%);
}

.desk-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.desk-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 240ms ease, color 240ms ease, box-shadow 240ms ease;
}

.desk-nav a:hover,
.desk-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.desk-nav a[aria-current="true"] {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(18, 20, 28, 0.05), 0 8px 16px -10px rgba(58, 62, 140, 0.55);
  color: var(--ink);
}

.random-button,
.tiny-button,
.dialog-close,
.party-star,
.scribble-link {
  min-height: 44px;
}

.random-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, #2A2E3C, var(--ink));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 22px -10px rgba(18, 20, 28, 0.7);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.random-button > span:first-child {
  color: var(--pink);
  font-size: 1.05rem;
}

.random-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 14px 26px -10px rgba(232, 70, 126, 0.65);
}

.random-button:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}

.random-button:disabled,
.tiny-button:disabled,
.party-star:disabled {
  cursor: progress;
  opacity: 0.6;
}

main,
.site-footer {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  width: min(100% - 48px, 1320px);
  padding: 24px 0 64px;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker,
.eyebrow {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-transform: lowercase;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  padding: 8px 15px 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  box-shadow: 0 0 0 1px rgba(18, 20, 28, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-meta {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2FBF8B;
  box-shadow: 0 0 0 4px rgba(47, 191, 139, 0.2);
}

.hero-title {
  position: relative;
  z-index: 2;
  margin: 26px 0 0;
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-wrap: balance;
}

.hero-line {
  display: block;
  max-width: 100%;
}

.hero-line--farm {
  font-size: clamp(2.5rem, 5.8vw, 6.2rem);
}

.hero-line--soso {
  margin-top: 0.02em;
  padding-left: 0.6em;
  font-size: clamp(4.1rem, 10.8vw, 11.8rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.86;
}

.hero-line--random {
  margin-top: 0.02em;
  font-size: clamp(2.5rem, 6.7vw, 7.2rem);
}

.hero-line--studio {
  margin-top: 0.02em;
  padding-left: 1.1em;
  font-size: clamp(3.2rem, 8.2vw, 8.8rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.hero-bottom {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  align-items: end;
  gap: 40px;
  margin-top: 40px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-lede {
  max-width: 460px;
  margin: 0;
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero-sub {
  max-width: 360px;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.scribble-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  box-shadow: 0 0 0 1px rgba(18, 20, 28, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 14px 26px -16px rgba(58, 62, 140, 0.45);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 200ms ease, transform 220ms var(--ease);
}

.scribble-link:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.scribble-link span {
  transition: transform 220ms var(--ease);
}

.scribble-link:hover span {
  transform: translateY(3px);
}

/* The lens: hero's single memorable object */
.hero-lens {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: clamp(104px, 15vw, 210px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 70% 78%, rgba(183, 166, 255, 0.32), rgba(255, 255, 255, 0) 55%),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 -18px 34px rgba(157, 182, 255, 0.28),
    inset 0 14px 30px rgba(255, 255, 255, 0.55),
    0 34px 60px -26px rgba(58, 62, 140, 0.5);
  -webkit-backdrop-filter: blur(1px) saturate(200%) brightness(1.08);
  backdrop-filter: blur(1px) saturate(200%) brightness(1.08);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0);
  transition: opacity 600ms ease;
  animation: lens-float 6s ease-in-out infinite alternate;
}

.hero-lens::after {
  position: absolute;
  top: 9%;
  left: 17%;
  width: 34%;
  height: 16%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  content: "";
  transform: rotate(-24deg);
}

.hero-lens.is-ready {
  opacity: 1;
}

.hero-lens.is-following {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   Domain band
   -------------------------------------------------------------------------- */
.domain-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 1px 0 rgba(18, 20, 28, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.domain-track {
  display: flex;
  width: max-content;
  padding: 15px 0 14px;
  animation: marquee 48s linear infinite;
}

.domain-track span {
  padding-right: 2.2rem;
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.domain-track span::after {
  padding-left: 2.2rem;
  color: var(--pink-deep);
  content: "✦";
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.things-section,
.labs-section {
  width: min(100% - 48px, 1260px);
  margin: 0 auto;
}

.things-section {
  padding: 96px 0 72px;
}

.labs-section {
  padding: 72px 0 80px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.section-heading--compact {
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 18px;
}

.section-heading h2,
.archive-copy h2,
.links-shelf h2 {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-size: clamp(2.7rem, 5.6vw, 5.4rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.section-note {
  max-width: 290px;
  padding: 16px 20px;
  margin: 0 0 8px;
  border-radius: var(--r-md);
  color: var(--muted);
  font-size: 0.9rem;
}

.useless-note {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px 24px;
  width: 100%;
  padding: 22px 26px 26px;
  border-radius: var(--r-lg);
}

.useless-note .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

.useless-note .tiny-button {
  grid-column: 2;
  grid-row: 1;
}

.useless-output {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.useless-symbol {
  display: grid;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, #fff, rgba(255, 255, 255, 0.3) 66%), linear-gradient(140deg, var(--amber), var(--pink));
  box-shadow: 0 10px 20px -10px rgba(232, 70, 126, 0.5), inset 0 1px 0 #fff;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
}

.tiny-button {
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  box-shadow: 0 0 0 1px rgba(18, 20, 28, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 200ms ease, transform 220ms var(--ease);
}

.tiny-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Project console: list + inspector
   -------------------------------------------------------------------------- */
.project-console {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 20px;
  align-items: start;
}

.project-console:not(.is-enhanced) {
  grid-template-columns: minmax(0, 1fr);
}

.project-console:not(.is-enhanced) .project-preview {
  display: none;
}

.project-list {
  display: flex;
  padding: 8px;
  border-radius: var(--r-xl);
  flex-direction: column;
}

.project-row {
  --tint: rgba(255, 141, 178, 0.6);
  --glyph: #D63B74;
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 18px;
  width: 100%;
  min-height: 84px;
  padding: 14px 18px 14px 14px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 260ms ease, box-shadow 260ms ease;
}

.project-row[data-accent="pink"] { --tint: rgba(255, 141, 178, 0.62); --glyph: #D63B74; }
.project-row[data-accent="pink-soft"] { --tint: rgba(255, 186, 214, 0.66); --glyph: #C9508C; }
.project-row[data-accent="blue"] { --tint: rgba(140, 168, 255, 0.66); --glyph: #4560D0; }
.project-row[data-accent="yellow"] { --tint: rgba(255, 214, 118, 0.7); --glyph: #A9750A; }
.project-row[data-accent="sage"] { --tint: rgba(128, 222, 182, 0.62); --glyph: #24866A; }

.project-row + .project-row::before {
  position: absolute;
  top: -1px;
  right: 22px;
  left: 84px;
  height: 1px;
  background: rgba(18, 20, 28, 0.07);
  content: "";
  transition: opacity 200ms ease;
}

.project-row.is-active::before,
.project-row.is-active + .project-row::before,
.project-row:hover::before,
.project-row:hover + .project-row::before {
  opacity: 0;
}

.project-row:hover,
.project-row.is-active {
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.95) inset, 0 18px 30px -22px var(--tint);
}

.project-row.is-picked {
  animation: picked-glow 1200ms var(--ease) both;
}

.project-row__glyph {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.3) 68%);
  box-shadow: inset 0 1px 0 #fff, 0 10px 20px -10px var(--tint);
  color: var(--glyph);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
}

.project-row__main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.project-row__title {
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

.project-row__category {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.project-row__summary,
.project-row__peek {
  display: none;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.project-row--static {
  cursor: default;
}

.project-row--static .project-row__summary,
.project-row--static .project-row__peek {
  display: block;
}

.project-row--static .project-row__peek {
  color: var(--ink-2);
  font-weight: 500;
}

.project-row__status {
  color: var(--ink-2);
  font-size: 0.72rem;
  white-space: nowrap;
}

.project-row__status::before,
.project-preview__status::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--glyph);
  content: "";
}

.project-preview {
  --tint: rgba(255, 141, 178, 0.6);
  --glyph: #D63B74;
  position: sticky;
  top: 24px;
  display: flex;
  min-height: 560px;
  padding: 28px;
  overflow: clip;
  border-radius: var(--r-xl);
  flex-direction: column;
}

.project-preview[data-accent="pink"] { --tint: rgba(255, 141, 178, 0.66); --glyph: #D63B74; }
.project-preview[data-accent="pink-soft"] { --tint: rgba(255, 186, 214, 0.7); --glyph: #C9508C; }
.project-preview[data-accent="blue"] { --tint: rgba(140, 168, 255, 0.7); --glyph: #4560D0; }
.project-preview[data-accent="yellow"] { --tint: rgba(255, 214, 118, 0.74); --glyph: #A9750A; }
.project-preview[data-accent="sage"] { --tint: rgba(128, 222, 182, 0.66); --glyph: #24866A; }

.project-preview::before {
  position: absolute;
  top: -22%;
  right: -26%;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--tint), transparent);
  content: "";
  pointer-events: none;
}

.project-preview > * {
  position: relative;
}

.project-preview__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-preview__category {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.project-preview__status {
  color: var(--ink-2);
  font-size: 0.74rem;
}

.project-preview__glyph {
  display: grid;
  width: 128px;
  height: 128px;
  margin-top: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.28) 68%);
  box-shadow: inset 0 1px 0 #fff, 0 26px 40px -20px var(--tint);
  color: var(--glyph);
  font-family: var(--display);
  font-size: 3.6rem;
  line-height: 1;
}

.project-preview__body {
  margin-top: auto;
  padding-top: 32px;
}

.project-preview__title {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-size: clamp(2.2rem, 3.6vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.project-preview__summary {
  margin: 16px 0 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
}

.project-preview__detail {
  padding-top: 16px;
  margin: 16px 0 0;
  border-top: 1px solid rgba(18, 20, 28, 0.1);
  color: var(--muted);
  font-size: 0.9rem;
}

.project-preview.is-swap .project-preview__glyph,
.project-preview.is-swap .project-preview__body {
  animation: preview-in 460ms var(--ease) both;
}

.project-preview.is-swap::before {
  animation: preview-glow 700ms var(--ease) both;
}

.noscript-projects {
  padding: 26px;
  border-radius: var(--r-md);
}

/* --------------------------------------------------------------------------
   Labs: one split panel
   -------------------------------------------------------------------------- */
.lab-folders {
  display: flex;
  min-height: 430px;
  overflow: clip;
  border-radius: var(--r-xl);
}

.lab-folder {
  --tint: rgba(128, 222, 182, 0.62);
  --glyph: #24866A;
  position: relative;
  display: flex;
  min-width: 0;
  padding: 32px 38px 36px;
  flex: 1 1 0;
  flex-direction: column;
  transition: flex-grow 700ms var(--ease);
}

.lab-folder--soso {
  --tint: rgba(255, 141, 178, 0.6);
  --glyph: #D63B74;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.85), -1px 0 0 rgba(18, 20, 28, 0.07);
}

.lab-folder:hover {
  flex-grow: 1.14;
}

.lab-folder::before {
  position: absolute;
  right: -20%;
  bottom: -38%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--tint), transparent);
  content: "";
  pointer-events: none;
}

.lab-folder > * {
  position: relative;
}

.lab-folder__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.folder-tab {
  padding-left: 11px;
}

.folder-tab::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glyph);
  content: "";
}

.folder-glyph {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.28) 68%);
  box-shadow: inset 0 1px 0 #fff, 0 18px 30px -14px var(--tint);
  color: var(--glyph);
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1;
}

.lab-folder h3 {
  max-width: 100%;
  margin: auto 0 18px;
  padding-top: 64px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.16;
  word-break: keep-all;
}

.lab-folder p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.status-stamp {
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   Archive + Links: paired modules
   -------------------------------------------------------------------------- */
.tail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  width: min(100% - 48px, 1260px);
  padding: 0 0 110px;
  margin: 0 auto;
}

.archive-section,
.links-section {
  position: relative;
  display: flex;
  min-height: 400px;
  padding: 36px 40px 40px;
  overflow: clip;
  border-radius: var(--r-xl);
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.archive-section::before,
.links-section::before {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.archive-section::before {
  top: -38%;
  left: -14%;
  background: radial-gradient(closest-side, rgba(255, 141, 178, 0.42), transparent);
}

.links-section::before {
  right: -20%;
  bottom: -34%;
  background: radial-gradient(closest-side, rgba(140, 168, 255, 0.5), transparent);
}

.archive-section > *,
.links-section > * {
  position: relative;
}

.archive-copy h2,
.links-shelf h2 {
  font-size: clamp(2.4rem, 4.2vw, 4rem);
}

.archive-copy > p:last-child {
  max-width: 430px;
  margin: 18px 0 0;
  color: var(--muted);
}

.archive-objects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.archive-slot {
  position: relative;
  display: flex;
  min-height: 132px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(18, 20, 28, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  flex-direction: column;
  justify-content: space-between;
}

.archive-slot::after {
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(18, 20, 28, 0.14);
  border-radius: calc(var(--r-md) - 6px);
  content: "";
  pointer-events: none;
}

.archive-slot span {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}

.archive-slot strong {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.archive-tag {
  grid-column: 1 / -1;
  justify-self: start;
}

.links-section {
  justify-content: flex-start;
  gap: 0;
}

.links-shelf {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.links-shelf p {
  margin: 16px 0 0;
  color: var(--muted);
}

.reserved-label {
  align-self: flex-start;
  border-style: dashed;
  border-color: rgba(18, 20, 28, 0.2);
  background: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  width: min(100% - 32px, 1360px);
  padding: 96px clamp(28px, 5vw, 72px) 34px;
  margin: 0 auto 112px;
  overflow: hidden;
  border-radius: 44px;
}

.site-footer::before {
  position: absolute;
  right: -10%;
  bottom: -60%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 141, 178, 0.5), rgba(183, 166, 255, 0.28) 55%, transparent);
  content: "";
  pointer-events: none;
}

.site-footer > * {
  position: relative;
}

.footer-question {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.footer-domain {
  max-width: 100%;
  margin: 0;
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-size: clamp(2.7rem, 7.4vw, 7.8rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  padding-top: 28px;
  margin-top: 64px;
  border-top: 1px solid rgba(18, 20, 28, 0.1);
  color: var(--muted);
  justify-content: space-between;
  gap: 30px;
  font-size: 0.84rem;
  font-weight: 500;
}

.footer-bottom p {
  margin: 0;
}

.party-star {
  position: absolute;
  top: 34px;
  right: clamp(28px, 5vw, 72px);
  display: grid;
  width: 56px;
  min-height: 56px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, #fff, rgba(255, 255, 255, 0.3) 66%), linear-gradient(140deg, var(--amber), var(--pink));
  box-shadow: 0 14px 26px -12px rgba(232, 70, 126, 0.6), inset 0 1px 0 #fff;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 320ms var(--ease);
}

.party-star:hover:not(:disabled) {
  transform: rotate(72deg) scale(1.06);
}

.party-star:active:not(:disabled) {
  transform: rotate(72deg) scale(0.96);
}

/* --------------------------------------------------------------------------
   Dialog
   -------------------------------------------------------------------------- */
.project-dialog {
  --tint: rgba(255, 141, 178, 0.55);
  --glyph: #D63B74;
  width: min(calc(100% - 32px), 650px);
  padding: 40px;
  overflow: hidden;
  border-radius: var(--r-xl);
  color: var(--ink);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.55));
  box-shadow:
    0 0 0 1px rgba(18, 20, 28, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 50px 90px -30px rgba(40, 44, 110, 0.5);
}

.project-dialog[data-accent="pink"] { --tint: rgba(255, 141, 178, 0.6); --glyph: #D63B74; }
.project-dialog[data-accent="pink-soft"] { --tint: rgba(255, 186, 214, 0.66); --glyph: #C9508C; }
.project-dialog[data-accent="sage"] { --tint: rgba(128, 222, 182, 0.6); --glyph: #24866A; }
.project-dialog[data-accent="yellow"] { --tint: rgba(255, 214, 118, 0.7); --glyph: #A9750A; }
.project-dialog[data-accent="blue"] { --tint: rgba(140, 168, 255, 0.66); --glyph: #4560D0; }

.project-dialog::before {
  position: absolute;
  top: -34%;
  right: -26%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--tint), transparent);
  content: "";
  pointer-events: none;
}

.project-dialog > * {
  position: relative;
}

.project-dialog[open] {
  animation: dialog-in 380ms var(--ease) both;
}

.project-dialog::backdrop {
  background: rgba(24, 26, 44, 0.3);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
}

.project-dialog form {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.dialog-close {
  display: grid;
  width: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(18, 20, 28, 0.05), inset 0 1px 0 #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 200ms ease, transform 300ms var(--ease);
}

.dialog-close:hover {
  background: #fff;
  transform: rotate(90deg);
}

.dialog-meta {
  padding-right: 54px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: lowercase;
}

.dialog-glyph {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.28) 68%);
  box-shadow: inset 0 1px 0 #fff, 0 18px 30px -14px var(--tint);
  color: var(--glyph);
  font-family: var(--display);
  font-size: 2.8rem;
  line-height: 1;
}

.project-dialog h2 {
  margin: 22px 0 14px;
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-size: clamp(2.4rem, 6.4vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.project-dialog > p:not(.dialog-meta, .dialog-detail) {
  font-size: 1.05rem;
  font-weight: 600;
}

.dialog-detail {
  padding-top: 18px;
  border-top: 1px solid rgba(18, 20, 28, 0.1);
  color: var(--muted);
}

.dialog-stamp {
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   Party mode
   -------------------------------------------------------------------------- */
.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 999;
  overflow: hidden;
  pointer-events: none;
}

.confetti-layer span {
  position: absolute;
  top: -8vh;
  left: var(--x);
  color: var(--pink);
  font-size: clamp(0.9rem, 2.4vw, 2rem);
  filter: drop-shadow(0 6px 10px rgba(58, 62, 140, 0.25));
  transform: rotate(var(--tilt));
  animation: confetti-fall 2.6s var(--delay) ease-in forwards;
}

.confetti-layer span:nth-child(3n) { color: var(--blue); }
.confetti-layer span:nth-child(3n + 1) { color: var(--amber); }
.confetti-layer span:nth-child(5n) { color: var(--sage); }

.party-mode::before {
  filter: saturate(1.5) hue-rotate(38deg);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.lost-body {
  min-height: 100svh;
}

.lost-page {
  display: grid;
  width: min(100% - 32px, 1160px);
  min-height: 100svh;
  padding: 52px 0;
  margin: 0 auto;
  place-items: center;
}

.lost-card {
  position: relative;
  width: 100%;
  padding: clamp(36px, 7vw, 82px);
  overflow: hidden;
  border-radius: 44px;
}

.lost-card h1 {
  position: relative;
  max-width: 820px;
  margin: 24px 0 26px;
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.lost-card > p:not(.eyebrow) {
  position: relative;
  max-width: 500px;
  margin: 0 0 30px;
  color: var(--muted);
}

.lost-home {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, #2A2E3C, var(--ink));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 24px -10px rgba(18, 20, 28, 0.7);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.lost-home:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 16px 28px -10px rgba(232, 70, 126, 0.65);
}

.lost-folder {
  position: absolute;
  top: 12%;
  right: 8%;
  display: grid;
  width: clamp(150px, 22vw, 260px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 70% 78%, rgba(255, 141, 178, 0.45), rgba(255, 255, 255, 0) 60%),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 -18px 34px rgba(157, 182, 255, 0.3),
    inset 0 14px 30px rgba(255, 255, 255, 0.55),
    0 40px 70px -28px rgba(58, 62, 140, 0.5);
}

.lost-folder__tab {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.lost-folder__face {
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-size: clamp(4.4rem, 9vw, 8rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
}

.lost-folder__star {
  position: absolute;
  right: 4%;
  bottom: 6%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, #fff, rgba(255, 255, 255, 0.3) 66%), linear-gradient(140deg, var(--amber), var(--pink));
  box-shadow: 0 12px 22px -10px rgba(232, 70, 126, 0.55), inset 0 1px 0 #fff;
  font-size: 1.3rem;
}

.lost-sticker {
  position: absolute;
  right: 9%;
  bottom: 9%;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes aurora-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, 2.5%, 0) scale(1.08) rotate(3deg); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes lens-float {
  from { translate: 0 -6px; }
  to { translate: 0 8px; }
}

@keyframes picked-glow {
  0% { box-shadow: var(--shadow-glass), 0 0 0 0 rgba(232, 70, 126, 0.5); }
  35% { box-shadow: var(--shadow-glass), 0 0 0 8px rgba(232, 70, 126, 0.28), 0 0 60px 6px rgba(255, 141, 178, 0.5); }
  100% { box-shadow: var(--shadow-glass), 0 0 0 14px rgba(232, 70, 126, 0), 0 0 60px 6px rgba(255, 141, 178, 0); }
}

@keyframes preview-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes preview-glow {
  from { opacity: 0.2; transform: scale(0.9); }
  to { opacity: 1; transform: none; }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes confetti-fall {
  to { translate: 0 118vh; rotate: 680deg; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .project-console {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  }
}

@media (max-width: 1024px) {
  .hero-bottom {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 28px;
  }

  .lab-folder {
    padding-inline: 30px;
  }

  .archive-section,
  .links-section {
    padding-inline: 32px;
  }
}

@media (max-width: 960px) {
  .project-console {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-preview {
    display: none;
  }

  .project-row__status {
    display: inline-flex;
  }

  .project-row {
    align-items: start;
    padding-block: 16px;
  }

  .project-row__glyph {
    margin-top: 2px;
  }

  .project-row__summary {
    display: block;
    margin-top: 4px;
  }

}

@media (max-width: 900px) {
  .tail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .archive-section,
  .links-section {
    min-height: 0;
  }
}

@media (hover: none) {
  .lab-folder:hover {
    flex-grow: 1;
  }
}

@media (max-width: 768px) {
  .workbench {
    width: min(100% - 28px, 680px);
    padding-top: 14px;
  }

  .mini-mark {
    min-height: 46px;
  }

  .hero {
    width: min(100% - 28px, 680px);
    padding: 36px 0 52px;
  }

  .hero-title {
    margin-top: 36px;
    line-height: 0.95;
  }

  .hero-line--farm { font-size: clamp(2.4rem, 11.5vw, 4.6rem); }
  .hero-line--soso { padding-left: 0.12em; font-size: clamp(3.4rem, 15.5vw, 8rem); }
  .hero-line--random { font-size: clamp(2.5rem, 12.4vw, 5rem); }
  .hero-line--studio { padding-left: 0.3em; font-size: clamp(2.8rem, 13.5vw, 6rem); }

  .hero-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-top: 44px;
  }

  .hero-lede { max-width: 400px; }

  .useless-note {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 22px;
  }

  .useless-note .eyebrow,
  .useless-note .tiny-button,
  .useless-output {
    grid-column: 1;
    grid-row: auto;
  }

  .tiny-button { justify-self: start; }

  .things-section,
  .labs-section,
  .tail-grid {
    width: min(100% - 28px, 680px);
  }

  .things-section { padding: 72px 0 56px; }
  .labs-section { padding: 56px 0 64px; }
  .tail-grid { padding-bottom: 84px; }

  .section-heading {
    display: block;
    margin-bottom: 32px;
  }

  .section-heading h2 {
    font-size: clamp(2.6rem, 12.5vw, 4.6rem);
  }

  .section-note {
    margin: 22px 0 0;
  }

  .lab-folders {
    min-height: 0;
    flex-direction: column;
  }

  .lab-folder {
    min-height: 340px;
    padding: 26px 26px 30px;
    flex: none;
  }

  .lab-folder--soso {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 -1px 0 rgba(18, 20, 28, 0.07);
  }

  .folder-glyph {
    width: 72px;
    height: 72px;
    font-size: 2rem;
  }

  .lab-folder h3 {
    padding-top: 44px;
    font-size: clamp(1.7rem, 7.6vw, 2.4rem);
  }

  .archive-section,
  .links-section {
    padding: 28px 24px 30px;
  }

  .archive-copy h2,
  .links-shelf h2 {
    font-size: clamp(2.4rem, 11vw, 3.6rem);
  }

  .site-footer {
    width: min(100% - 20px, 680px);
    padding: 100px 24px 28px;
    margin-bottom: 104px;
    border-radius: 34px;
  }

  .footer-domain {
    font-size: clamp(2.5rem, 13.5vw, 5rem);
    line-height: 0.96;
  }

  .footer-bottom {
    display: grid;
    padding-top: 24px;
    margin-top: 44px;
    gap: 10px;
  }

  .party-star {
    top: 28px;
    right: 24px;
  }

  .desk-nav a {
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .random-button {
    padding: 0 16px;
  }

  .project-dialog {
    padding: 32px 24px;
  }

  .lost-page {
    width: min(100% - 24px, 680px);
    padding: 24px 0;
  }

  .lost-card {
    min-height: 660px;
    padding: 32px 24px;
    border-radius: 34px;
  }

  .lost-card h1 {
    margin-top: 200px;
    font-size: clamp(3.4rem, 17vw, 6.4rem);
  }

  .lost-folder {
    top: 84px;
    right: 24px;
    width: 150px;
  }

  .lost-sticker {
    position: relative;
    right: auto;
    bottom: auto;
    display: flex;
    margin-top: 26px;
  }
}

@media (max-width: 520px) {
  .hero-lens { width: 84px; }

  .random-button {
    width: 46px;
    padding: 0;
    flex: 0 0 46px;
    justify-content: center;
  }

  .random-button__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .desk-nav a {
    padding: 0 9px;
    font-size: 0.78rem;
  }

  .hero-kicker { font-size: 0.74rem; }
  .project-row { grid-template-columns: 46px minmax(0, 1fr); padding-right: 14px; gap: 0 14px; }
  .project-row__glyph { width: 46px; height: 46px; }
  .project-row__status {
    grid-column: 2;
    margin-top: 10px;
    justify-self: start;
  }
  .archive-slot { padding: 14px; }
  .archive-slot strong { font-size: 1.05rem; }
}

@media (max-width: 380px) {
  .desk-nav a[href="#home"] {
    display: none;
  }
}

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

  body::before,
  .domain-track,
  .hero-lens,
  .project-row.is-picked,
  .project-preview.is-swap *,
  .project-preview.is-swap::before,
  .confetti-layer span {
    animation: none !important;
  }

  .domain-track {
    transform: translateX(0);
  }
}
