/* ============================================================
   velorah — a folder left out on the water
   Design tokens
   ============================================================ */
:root {
  /* water */
  --surface-1: #5ec6cf;
  --surface-2: #2d8b93;
  --deep-1: #08414f;
  --deep-2: #051f2b;
  --abyss: #02121b;

  /* folder */
  --folder-hi: #8fcaff;
  --folder-1: #6cb4fb;
  --folder-2: #3e8cf4;
  --folder-3: #2f76dd;

  /* ink */
  --ink: #eaf6f2;
  --ink-dim: rgba(234, 246, 242, 0.62);
  --ink-faint: rgba(234, 246, 242, 0.38);
  --hairline: rgba(234, 246, 242, 0.14);

  /* glass */
  --glass: rgba(10, 46, 50, 0.32);
  --glass-lite: rgba(255, 255, 255, 0.055);
  --glass-brd: rgba(255, 255, 255, 0.12);

  --accent: #6fdfe8;

  /* type */
  --serif: "Fraunces", "New York", Georgia, serif;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--abyss);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: rgba(111, 223, 232, 0.35); color: #04231f; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 100;
  padding: 10px 16px; background: var(--deep-2); color: var(--ink);
  border: 1px solid var(--glass-brd); border-radius: 10px;
  font-family: var(--mono); font-size: 12px; text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus-visible { top: 12px; }

/* ============================================================
   Water canvas + grain + fallback
   ============================================================ */
#water {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  display: block;
}

.no-webgl #water { display: none; }
.fallback-bg {
  display: none;
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 62% 22%, rgba(205, 240, 240, 0.5), transparent 55%),
    linear-gradient(175deg, var(--surface-1) 0%, var(--surface-2) 55%, #1a5c64 100%);
  transition: opacity 1.2s ease;
}
.no-webgl .fallback-bg { display: block; }
.no-webgl.in-deep .fallback-bg { opacity: 0; }
.fallback-deep {
  display: none;
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--deep-1), var(--abyss) 70%);
}
.no-webgl .fallback-deep { display: block; }

.grain {
  position: fixed; inset: -50%; z-index: 2;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px;
}

/* ============================================================
   Menu bar
   ============================================================ */
.menubar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 42px; padding: 0 18px;
  font-family: var(--ui); font-size: 13px; font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 2px rgba(4, 40, 34, 0.35);
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out),
              background-color 0.7s ease;
  pointer-events: none;
}
.scrolled .menubar { opacity: 1; transform: none; pointer-events: auto; }
.in-deep .menubar {
  background: rgba(6, 32, 38, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mb-home {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; letter-spacing: 0.04em;
}
.mb-home svg { width: 15px; height: 12px; }
.mb-right { display: flex; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; }
.mb-loc { color: rgba(255, 255, 255, 0.72); }

/* ============================================================
   Hero — the runway + sticky stage
   ============================================================ */
.runway { height: 460vh; position: relative; }
.reduced .runway { height: auto; }

.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: clip;
  z-index: 5;
}
.reduced .stage { position: relative; }

.scene {
  position: absolute; inset: 0;
  perspective: 1300px;
  perspective-origin: 50% 42%;
}

/* --- the folder ------------------------------------------- */
.folder-wrap {
  position: absolute; left: 50%; top: 46%;
  width: clamp(168px, 22vw, 250px);
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.folder {
  position: relative;
  width: 100%;
  aspect-ratio: 100 / 76;
  transform-style: preserve-3d;
  /* no filter here: filters flatten preserve-3d and kill the flap fold */
}

.f-back {
  position: absolute; inset: 10% 0 0 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #58a3f3, #3272da);
  box-shadow: 0 20px 34px rgba(6, 46, 40, 0.35);
  transform-style: preserve-3d;
}
.f-back::before {
  content: "";
  position: absolute; top: -9.5%; left: 0;
  width: 40%; height: 12%;
  border-radius: 10px 26px 0 0;
  background: #58a3f3;
}
.f-back::after {
  /* smooth slope where the tab meets the panel */
  content: "";
  position: absolute; top: -9.5%; left: 34%;
  width: 14%; height: 12%;
  background: radial-gradient(120% 200% at 100% -40%, transparent 62%, #58a3f3 64%);
}

.f-files {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
}
.file {
  position: absolute;
  width: 24%; aspect-ratio: 3 / 4;
  left: 38%; top: 18%;
  transform: translateZ(6px);
  border-radius: 7% / 5.5%;
  background:
    linear-gradient(rgba(112, 152, 200, 0.55) 1.4px, transparent 1.4px) 18% 34% / 62% 16% no-repeat,
    linear-gradient(rgba(112, 152, 200, 0.55) 1.4px, transparent 1.4px) 18% 52% / 52% 16% no-repeat,
    linear-gradient(rgba(112, 152, 200, 0.55) 1.4px, transparent 1.4px) 18% 70% / 58% 16% no-repeat,
    linear-gradient(178deg, #ffffff, #dfeaf6);
  box-shadow: 0 2px 8px rgba(20, 50, 90, 0.25);
  opacity: 0;
  will-change: transform, opacity;
}
.file:nth-child(1) { left: 22%; }
.file:nth-child(2) { left: 54%; }
.file:nth-child(3) { left: 38%; top: 13%; }
.file:nth-child(4) { left: 10%; top: 20%; }
.file:nth-child(5) { left: 66%; top: 20%; }

.f-front {
  position: absolute; inset: 21% 0 0 0;
  border-radius: 13px 13px 14px 14px;
  background: linear-gradient(180deg, #74b9fc 0%, #5ca4f8 40%, #4a92f2 100%);
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  will-change: transform;
}
.f-front::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 9%),
    linear-gradient(0deg, rgba(20, 60, 140, 0.10), rgba(20, 60, 140, 0) 10%);
}

.folder-shadow {
  position: absolute; left: 51%; bottom: -4.5%;
  width: 94%; height: 11%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(5, 44, 38, 0.42), transparent 68%);
  filter: blur(7px);
  z-index: -1;
  will-change: transform, opacity;
}

/* --- label + iCloud badge ---------------------------------- */
.folder-label {
  position: absolute; left: 50%; top: 104%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px;
  font-family: var(--ui);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(3, 41, 34, 0.55);
  white-space: nowrap;
  will-change: opacity;
}
.badge { position: relative; width: 1.15em; height: 1.15em; flex: none; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge .b-cloud { filter: drop-shadow(0 1px 2px rgba(3, 41, 34, 0.45)); }
.badge .b-ring { transform: rotate(-90deg); opacity: 0; }
.badge .b-ring .track { stroke: rgba(255, 255, 255, 0.3); }
.badge .b-ring .fill { stroke: #fff; }

.folder-caption {
  position: absolute; left: 50%; top: 122%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 3px rgba(3, 41, 34, 0.5);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.folder-caption.on { opacity: 1; }

/* --- dive line + hint --------------------------------------- */
.dive-line {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 900px);
  text-align: center;
  font-family: var(--serif);
  font-weight: 320;
  font-style: italic;
  font-size: clamp(2rem, 5.4vw, 4.4rem);
  line-height: 1.16;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-shadow: 0 2px 30px rgba(2, 24, 22, 0.45);
  opacity: 0;
  will-change: opacity, transform;
}

.hero-hint {
  position: absolute; left: 50%; bottom: max(30px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(3, 41, 34, 0.5);
  will-change: opacity;
}
.hero-hint .tick {
  width: 1px; height: 34px;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  animation: tickdrop 2.2s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes tickdrop {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(10px); opacity: 0; }
}
.reduced .hero-hint .tick { animation: none; }

/* ============================================================
   Deep sections — shared
   ============================================================ */
.deep {
  position: relative; z-index: 10;
}

.deep-sec {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(90px, 14vh, 170px) clamp(20px, 5vw, 48px);
}

.sec-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.sec-eyebrow::after {
  content: "";
  height: 1px; flex: 1;
  background: linear-gradient(90deg, var(--hairline), transparent);
}

.sec-title {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: clamp(36px, 6vh, 64px);
}
.sec-title em { font-style: italic; font-weight: 300; color: var(--accent); }

/* reveal */
.js .rev { opacity: 0; transform: translateY(34px); }
.js .rev.in {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js.reduced .rev { opacity: 1; transform: none; transition: none; }

/* ============================================================
   README window (about)
   ============================================================ */
.win {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid var(--glass-brd);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(1, 14, 16, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.win-bar {
  display: flex; align-items: center;
  height: 42px; padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}
.lights { display: flex; gap: 8px; }
.lights i {
  width: 12px; height: 12px; border-radius: 50%;
  background: #3b5b57;
}
.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.win-name {
  flex: 1;
  text-align: center;
  font-family: var(--ui);
  font-size: 13px;
  color: var(--ink-dim);
  padding-right: 44px; /* balance the lights */
}
.win-body { padding: clamp(28px, 5vw, 56px); }

.readme-hello {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 30px;
}
.readme-hello [data-fill] { border-bottom: 1px dashed rgba(111, 223, 232, 0.45); }

.readme-body p {
  max-width: 62ch;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.75;
}
.readme-body p + p { margin-top: 18px; }

.readme-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
}
.readme-meta > div { background: rgba(4, 26, 30, 0.55); padding: 16px 18px; }
.readme-meta dt {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.readme-meta dd { font-size: 14.5px; }
.status-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #33ddcb; margin-right: 7px;
  box-shadow: 0 0 10px rgba(51, 221, 203, 0.8);
}

/* ============================================================
   Work — file rows
   ============================================================ */
.filelist { border-top: 1px solid var(--hairline); }
.filerow {
  display: grid;
  grid-template-columns: 3.4rem 2.2rem 1fr auto auto 1.3rem;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  padding: clamp(20px, 3vw, 30px) 10px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  position: relative;
  transition: background-color 0.35s ease, padding-left 0.35s var(--ease-out);
}
.filerow:hover, .filerow:focus-visible {
  background: var(--glass-lite);
  padding-left: 22px;
}
.fr-idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}
.fr-icon { width: 30px; height: 24px; opacity: 0.9; }
.fr-title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}
.filerow:hover .fr-title { color: var(--accent); }
.fr-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
}
.fr-year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
}
.fr-arrow {
  justify-self: end;
  transform: translateX(-8px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
  color: var(--accent);
}
.filerow:hover .fr-arrow, .filerow:focus-visible .fr-arrow {
  opacity: 1; transform: translateX(0);
}

.work-note {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* hover preview */
.preview {
  position: fixed; left: 0; top: 0; z-index: 30;
  width: 300px; aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid var(--glass-brd);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
  box-shadow: 0 30px 60px rgba(1, 14, 16, 0.55);
}
.preview.on { opacity: 1; transform: scale(1); }
.preview .pv-fill {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 90% at 20% 12%, hsla(var(--hue, 170), 70%, 72%, 0.85), transparent 60%),
    radial-gradient(80% 80% at 85% 85%, hsla(calc(var(--hue, 170) + 40), 65%, 45%, 0.9), transparent 65%),
    linear-gradient(160deg, hsl(var(--hue, 170), 45%, 26%), hsl(calc(var(--hue, 170) + 25), 55%, 12%));
}
.preview .pv-tag {
  position: absolute; left: 12px; bottom: 10px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   Get info (capabilities)
   ============================================================ */
.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.info-rows { border-top: 1px solid var(--hairline); }
.info-rows > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.info-rows dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); padding-top: 2px; }
.info-rows dd { color: var(--ink-dim); }

.cap-list { display: flex; flex-direction: column; gap: 8px; }
.cap {
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(4, 26, 30, 0.4);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.cap:hover { border-color: rgba(111, 223, 232, 0.35); background: rgba(6, 34, 38, 0.55); }
.cap h3 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}
.cap p { font-size: 14.5px; color: var(--ink-dim); max-width: 46ch; }

/* ============================================================
   Contact
   ============================================================ */
#contact { text-align: center; padding-bottom: clamp(110px, 18vh, 220px); }
#contact .sec-eyebrow { justify-content: center; }
#contact .sec-eyebrow::after { display: none; }

.contact-line {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  max-width: 18ch;
  margin: 0 auto clamp(36px, 6vh, 60px);
}
.contact-line em { font-style: italic; color: var(--accent); }

.contact-mail {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 16px 30px;
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  background: var(--glass-lite);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s var(--ease-out);
}
.contact-mail:hover { border-color: rgba(111, 223, 232, 0.5); background: rgba(111, 223, 232, 0.08); transform: translateY(-2px); }

.socials {
  display: flex; justify-content: center; gap: 26px;
  margin-top: 34px;
  list-style: none;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.socials a { color: var(--ink-dim); text-decoration: none; transition: color 0.25s ease; }
.socials a:hover { color: var(--accent); }

.airdrop-note {
  margin-top: 46px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* ============================================================
   Footer
   ============================================================ */
.foot {
  position: relative; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 26px clamp(20px, 5vw, 48px) calc(104px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.foot .sync { font-variant-numeric: tabular-nums; }
.to-surface {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-dim);
  transition: color 0.25s ease;
}
.to-surface:hover { color: var(--accent); }
.to-surface svg { transition: transform 0.3s var(--ease-out); }
.to-surface:hover svg { transform: translateY(-3px); }

/* ============================================================
   Dock
   ============================================================ */
.dock {
  position: fixed; left: 50%; bottom: 14px; z-index: 40;
  transform: translate(-50%, 90px);
  display: flex; gap: 8px;
  padding: 9px;
  border-radius: 22px;
  background: rgba(8, 38, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 20px 50px rgba(1, 14, 16, 0.45);
  opacity: 0;
  transition: transform 0.7s var(--ease-out), opacity 0.7s ease;
}
.in-deep .dock { transform: translate(-50%, 0); opacity: 1; }

.dock-item {
  position: relative;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink);
  transition: transform 0.3s var(--ease-out), background-color 0.3s ease;
}
.dock-item:hover { transform: translateY(-7px) scale(1.08); background: rgba(255, 255, 255, 0.13); }
.dock-item svg { width: 21px; height: 21px; }
.dock-item::after {
  content: "";
  position: absolute; bottom: -6px; left: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  transform: translateX(-50%) scale(0);
  background: var(--accent);
  transition: transform 0.3s var(--ease-out);
}
.dock-item[aria-current="true"]::after { transform: translateX(-50%) scale(1); }
.dock-tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(5, 28, 32, 0.92);
  border: 1px solid var(--glass-brd);
  font-family: var(--ui); font-size: 11.5px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out);
}
.dock-item:hover .dock-tip, .dock-item:focus-visible .dock-tip {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Edit mode + toast
   ============================================================ */
.editing [data-fill] {
  outline: 1px dashed rgba(111, 223, 232, 0.55);
  outline-offset: 3px;
  border-radius: 3px;
  cursor: text;
}
.editing [data-fill]:focus { outline-style: solid; }

.toast {
  position: fixed; left: 50%; bottom: 80px; z-index: 60;
  transform: translateX(-50%) translateY(20px);
  max-width: min(92vw, 460px);
  padding: 13px 20px;
  border-radius: 12px;
  background: rgba(5, 28, 32, 0.92);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 13px; line-height: 1.5;
  color: var(--ink-dim);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr; }
  .readme-meta { grid-template-columns: 1fr; }
  .filerow { grid-template-columns: 2.4rem 1fr auto 1.3rem; }
  .fr-icon, .fr-meta { display: none; }
}

@media (max-width: 640px) {
  .runway { height: 390vh; }
  .folder-wrap { width: clamp(150px, 44vw, 200px); top: 44%; }
  .menubar { padding: 0 14px; height: 40px; }
  .mb-loc { display: none; }
  .filerow { gap: 14px; padding: 18px 6px; grid-template-columns: 2.4rem 1fr auto; }
  .fr-arrow { display: none; }
  .preview { display: none; }
  .dock { gap: 6px; bottom: 10px; }
  .dock-item { width: 44px; height: 44px; }
  .socials { flex-wrap: wrap; gap: 16px 22px; }
  .foot { justify-content: center; text-align: center; }
}

@media (max-width: 380px) {
  .contact-mail { font-size: 0.92rem; padding: 14px 20px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
