/* JustinOS — Claude Design v2 spec + liquid-glass pass */
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  background: #141417;
  overflow: hidden;
}
a { color: #0a68ff; text-decoration: none; }
a:hover { color: #0553cc; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes winzoom {
  from { transform: scale(.1); opacity: 0; }
  60%  { opacity: 1; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes winvanish {
  to { transform: scale(.12); opacity: 0; }
}

#desktop {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #141417;
  user-select: none;
  -webkit-user-select: none;
}

/* wallpaper — full color, 10% tint for legibility */
.wallpaper {
  position: absolute; inset: 0;
  background:
    url("assets/wallpaper.webp") center / cover no-repeat,
    linear-gradient(160deg, #e3e3e6 0%, #bdbdc4 45%, #8f8f98 100%);
}
.dim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(16,16,20,.08) 0%,
    rgba(16,16,20,.045) 45%,
    rgba(16,16,20,.12) 100%);
}

/* ---------- desktop folders ---------- */
.icon {
  position: absolute;
  width: 104px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: grab;
  touch-action: none;
  z-index: 10;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1);
  animation: fadein .5s ease both;
  outline: none;
}
.icon.dragging { transform: scale(1.09); cursor: grabbing; }
.icon:hover:not(.dragging), .icon:focus-visible:not(.dragging) { transform: translateY(-4px); }

.folder {
  width: 78px; height: 62px;
  overflow: visible;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.28));
  transition: filter .22s ease;
}
.icon:hover .folder, .icon.dragging .folder { filter: drop-shadow(0 10px 18px rgba(0,0,0,.36)); }
.folder-front-g {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform .32s cubic-bezier(.34,1.56,.64,1);
}
.icon.open .folder-front-g { transform: skewX(-7deg) scaleY(.94); }

.icon-label {
  font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,.95);
  padding: 2px 9px;
  border-radius: 99px;
  background: transparent;
  text-shadow: 0 1px 4px rgba(0,0,0,.45);
  white-space: nowrap;
  transition: background .15s;
}
.icon:hover .icon-label,
.icon:focus-visible .icon-label,
.icon.dragging .icon-label { background: rgba(10,104,255,.9); text-shadow: none; }

/* ---------- liquid glass primitives ----------
   Layering per the macOS liquid-glass reference:
   ::after = backdrop blur/veil + SVG displacement (refraction)
   ::before = inset specular edge                                  */
.glass { position: relative; background: transparent; }
.glass::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  border-radius: inherit;
  isolation: isolate;
}
/* one hairline ring + a slightly brighter top edge — nothing else,
   so the edge reads as a single crisp line */
.glass::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 0.5px rgba(255,255,255,.45),
    inset 0 1px 0 rgba(255,255,255,.5);
}

/* ---------- windows ---------- */
.window {
  position: absolute;
  max-width: calc(100% - 20px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0,0,0,.38);
  animation: winzoom .38s cubic-bezier(.32,1.32,.62,1) both;
}
.window.closing { animation: winvanish .2s ease-in both; }
/* cards hold text — properly frosted, no refraction */
.window::after {
  background: rgba(252,252,253,.88);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  backdrop-filter: blur(30px) saturate(1.5);
}

.win-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  cursor: grab;
  touch-action: none;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.win-bar:active { cursor: grabbing; }
button.tl-close {
  all: unset;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  border: 0.5px solid rgba(0,0,0,.12);
  box-sizing: border-box;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.tl-close span {
  font-size: 9px; font-weight: 700; line-height: 1;
  color: rgba(77,0,0,.65);
  opacity: 0;
  transition: opacity .12s;
  transform: translateY(-.5px);
}
.win-bar:hover .tl-close span { opacity: 1; }
.tl-close:active { filter: brightness(.85); }
.win-file {
  flex: 1; text-align: center;
  font-size: 12.5px; font-weight: 600;
  color: rgba(0,0,0,.55);
  margin-right: 20px;
}
.win-body {
  padding: 24px 28px 26px;
  max-height: 62vh;
  overflow: auto;
  overscroll-behavior: contain;
}
.win-body h2 {
  margin: 0 0 10px;
  font-size: 33px; font-weight: 700;
  letter-spacing: -0.03em;
  color: #111;
}
.win-desc {
  margin: 0 0 18px;
  font-size: 14px; line-height: 1.65;
  color: rgba(0,0,0,.66);
  max-width: 56ch;
}
.win-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px 22px;
  margin-bottom: 20px;
}
.meta-k {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(0,0,0,.42);
  margin-bottom: 3px;
}
.meta-v { font-size: 13px; font-weight: 500; color: #1b1b1e; line-height: 1.45; }
.win-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.win-links a {
  font-size: 12.5px; font-weight: 500;
  color: #0a68ff;
  background: rgba(10,104,255,.08);
  border: 1px solid rgba(10,104,255,.18);
  border-radius: 99px;
  padding: 8px 16px;
  transition: background .15s;
}
.win-links a:hover { background: rgba(10,104,255,.16); color: #0a68ff; }

/* ---------- shared content bits ---------- */
.kicker {
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #b4552f;
  margin-bottom: 6px;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip {
  font-size: 11px; font-weight: 500;
  color: rgba(0,0,0,.62);
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 99px;
  padding: 3px 10px;
  white-space: nowrap;
}
.foot-note {
  margin: 16px 0 0;
  font-size: 11.5px;
  color: rgba(0,0,0,.42);
}
.reveal-in { animation: fadein .5s ease both; }

/* ---------- The Studio ---------- */
.shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 719px) { .shelf { grid-template-columns: 1fr; } }
.course-card {
  display: block;
  border-radius: 13px;
  overflow: hidden;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.08);
  color: inherit;
  transition: transform .22s cubic-bezier(.34,1.4,.64,1), box-shadow .22s;
}
.course-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.18); color: inherit; }
.course-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .3s ease; }
.course-card:hover .course-cover img { transform: scale(1.03); }
.course-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(.96);
  padding: 8px 18px;
  border-radius: 99px;
  background: rgba(17,17,20,.78);
  color: #fff;
  font-size: 12.5px; font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .18s, transform .18s;
}
.course-card:hover .course-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.course-meta { padding: 12px 14px 14px; }
.course-title { font-size: 14.5px; font-weight: 700; color: #16150f; letter-spacing: -0.01em; }
.course-sub { font-size: 12px; color: rgba(0,0,0,.55); margin-top: 3px; line-height: 1.5; }

/* ---------- The Receipts ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi {
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 11px;
  padding: 12px 13px 11px;
}
.kpi-v { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: #111; display: flex; align-items: baseline; }
.kpi-v em { font-style: normal; order: -1; }
.kpi-l { font-size: 11px; font-weight: 500; color: rgba(0,0,0,.6); margin-top: 2px; line-height: 1.35; }
.kpi-n { font-size: 10px; color: #b4552f; font-weight: 600; margin-top: 4px; letter-spacing: .02em; }
.dash-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 10px; }
@media (max-width: 719px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-card {
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 11px;
  padding: 12px 13px;
}
.dash-t { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(0,0,0,.45); margin-bottom: 8px; }
.trend { width: 100%; height: 110px; display: block; }
.trend-line {
  fill: none;
  stroke: #0a68ff;
  stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke-dashoffset 1.4s cubic-bezier(.3,.7,.3,1);
}
.trend-dot { fill: #0a68ff; }
.trend-axis { display: flex; justify-content: space-between; font-size: 10px; color: rgba(0,0,0,.4); margin-top: 2px; }
.lvl { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 9px; }
.lvl:last-child { margin-bottom: 0; }
.lvl-tag {
  flex: none;
  font-size: 10px; font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #b45309);
  border-radius: 6px;
  padding: 3px 6px;
  margin-top: 1px;
}
.lvl-body { flex: 1; min-width: 0; }
.lvl-bar { height: 5px; border-radius: 99px; background: rgba(0,0,0,.07); overflow: hidden; margin: 4px 0 5px; }
.lvl-bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, #fbbf24, #d97706); animation: growbar .9s cubic-bezier(.3,.7,.3,1) both; }
@keyframes growbar { from { width: 0; } }
.lvl-stat { font-size: 11.5px; color: rgba(0,0,0,.62); line-height: 1.45; }
.lvl-stat b { color: #16150f; }

/* ---------- The Agent ---------- */
.chat {
  border-radius: 13px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.07);
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 13px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 12.5px; font-weight: 700; color: #16150f;
}
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.chat-badge { font-size: 10px; font-weight: 600; color: rgba(0,0,0,.42); margin-left: auto; letter-spacing: .03em; }
.chat-log { padding: 12px 13px 4px; max-height: 240px; overflow: auto; overscroll-behavior: contain; }
.chat-log:empty { padding: 0; }
.bub {
  max-width: 85%;
  border-radius: 13px;
  padding: 9px 12px;
  margin-bottom: 9px;
  font-size: 13px; line-height: 1.5;
  animation: fadein .25s ease both;
}
.bub.me { margin-left: auto; background: #0a68ff; color: #fff; border-bottom-right-radius: 5px; }
.bub.bot { background: rgba(0,0,0,.055); color: #1b1b1e; border-bottom-left-radius: 5px; }
.bub.typing span {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(0,0,0,.35); margin-right: 3px;
  animation: blink 1s infinite;
}
.bub.typing span:nth-child(2) { animation-delay: .18s; }
.bub.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 70%, 100% { opacity: .25; } 35% { opacity: 1; } }
.bub-src { font-size: 10.5px; color: rgba(0,0,0,.42); margin-top: 6px; }
.bub-fb { display: flex; gap: 6px; margin-top: 8px; }
.fb {
  all: unset; cursor: pointer;
  font-size: 13px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.1);
  transition: transform .12s;
}
.fb:hover { transform: scale(1.12); }
.fb-done { font-size: 11px; font-weight: 600; color: rgba(0,0,0,.55); }
.chat-chips { display: flex; flex-direction: column; gap: 7px; padding: 11px 13px 13px; border-top: 1px solid rgba(0,0,0,.05); }
.chat-chip {
  all: unset; cursor: pointer;
  font-size: 12.5px; font-weight: 500;
  color: #0a68ff;
  background: rgba(10,104,255,.07);
  border: 1px solid rgba(10,104,255,.18);
  border-radius: 10px;
  padding: 8px 12px;
  transition: background .15s;
}
.chat-chip:hover { background: rgba(10,104,255,.14); }
.chat-chip:disabled { opacity: .38; cursor: default; }
.reveal {
  margin-top: 12px;
  border-radius: 13px;
  background: linear-gradient(160deg, #101828, #1b2740);
  color: rgba(255,255,255,.88);
  padding: 15px 17px;
}
.reveal-t { font-size: 14.5px; font-weight: 700; color: #fff; margin-bottom: 8px; letter-spacing: -0.01em; }
.reveal ul { margin: 0; padding-left: 17px; font-size: 12.5px; line-height: 1.6; }
.reveal li { margin-bottom: 3px; }
.reveal .chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.85); }

/* ---------- Field Notes: the dossier ---------- */
.dossier { position: relative; min-height: 430px; }

/* manila cover */
.dcover {
  position: relative;
  margin: 26px auto 0;
  width: min(420px, 92%);
  cursor: pointer;
  transition: transform .45s cubic-bezier(.5,0,.8,.4), opacity .45s ease;
  transform-origin: bottom center;
}
.dcover.opened { transform: translateY(26px) rotateX(58deg); opacity: 0; perspective: 600px; }
.dcover-tab {
  display: inline-block;
  background: #e8d9ae;
  border: 1px solid rgba(120,100,50,.35); border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 6px 22px 4px;
  margin-left: 26px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: rgba(84,66,27,.85);
}
.dcover-body {
  background: linear-gradient(180deg, #eddfb6, #e3d3a4);
  border: 1px solid rgba(120,100,50,.35);
  border-radius: 4px 10px 10px 10px;
  padding: 34px 30px 30px;
  box-shadow: 0 14px 30px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.4);
}
.dcover-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 24px; font-weight: 800; letter-spacing: .18em;
  color: rgba(70,54,20,.9);
}
.dcover-stamp {
  display: inline-block;
  margin-top: 12px;
  border: 2.5px solid rgba(150,40,30,.55);
  color: rgba(150,40,30,.65);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; font-weight: 800; letter-spacing: .1em;
  padding: 4px 10px;
  transform: rotate(-3deg);
  border-radius: 3px;
}
.dcover-sub { margin-top: 16px; font-size: 12px; line-height: 1.6; color: rgba(84,66,27,.75); }
.dcover-open { margin-top: 18px; font-size: 12.5px; font-weight: 600; color: rgba(84,66,27,.9); }
.dcover:hover .dcover-open { text-decoration: underline; }

/* open dossier: side tabs + sheet */
.dinner[hidden] { display: none !important; }
.dinner { display: flex; gap: 0; align-items: flex-start; }
.dtabs { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; flex: none; width: 148px; }
.dtab {
  all: unset; cursor: pointer;
  display: block; box-sizing: border-box; width: 100%;
  background: #e8d9ae;
  border: 1px solid rgba(120,100,50,.3); border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 7px 10px 7px 12px;
  font-size: 11px; font-weight: 600; line-height: 1.3;
  color: rgba(84,66,27,.8);
  transform: translateX(6px);
  transition: transform .18s, background .18s;
}
.dtab span { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 9px; letter-spacing: .12em; color: rgba(84,66,27,.55); }
.dtab:hover { transform: translateX(2px); }
.dtab.on { background: #fbf7ec; transform: translateX(0); font-weight: 700; color: #3c3115; }

.dsheet-wrap { position: relative; flex: 1; min-width: 0; }
.dsheet-under {
  position: absolute; inset: 6px -4px -6px 4px;
  background: #f6f1e2; border: 1px solid rgba(0,0,0,.07);
  transform: rotate(.7deg); z-index: 0;
}
.dsheet-under.d2 { inset: 12px 2px -10px 8px; transform: rotate(-.6deg); background: #f2ecda; }
.dsheet {
  position: relative; z-index: 2;
  background: #fbf7ec;
  border: 1px solid rgba(0,0,0,.1);
  padding: 22px 24px 18px;
  min-height: 380px;
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
  opacity: 0; transform: translateY(10px) rotate(.4deg);
}
.dsheet.in { opacity: 1; transform: none; transition: opacity .28s ease, transform .32s cubic-bezier(.3,1.2,.5,1); }
.dsheet::after { /* folded corner */
  content: "";
  position: absolute; top: 0; right: 0;
  border-style: solid; border-width: 0 22px 22px 0;
  border-color: transparent rgba(0,0,0,.07) transparent transparent;
}
.ds-head { border-bottom: 2px solid rgba(60,49,21,.7); padding-bottom: 10px; margin-bottom: 14px; }
.ds-no { font-family: ui-monospace, Menlo, monospace; font-size: 10px; font-weight: 700; letter-spacing: .18em; color: rgba(150,40,30,.75); }
.ds-code { font-family: ui-monospace, Menlo, monospace; font-size: 19px; font-weight: 800; letter-spacing: .02em; color: #2c2411; margin-top: 3px; }
.ds-status {
  display: inline-block; margin-top: 8px;
  border: 2px solid rgba(30,70,120,.45); color: rgba(30,70,120,.7);
  font-family: ui-monospace, Menlo, monospace; font-size: 10px; font-weight: 800; letter-spacing: .1em;
  padding: 2px 8px; transform: rotate(-1.6deg); border-radius: 3px;
}
.ds-sec { margin-bottom: 14px; position: relative; }
.ds-label {
  display: block;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(60,49,21,.5);
  margin-bottom: 4px;
}
.ds-sec p { margin: 0; font-size: 13px; line-height: 1.62; color: #33301f; }
.ds-tell {
  padding: 10px 12px 10px 14px;
  background: rgba(150,40,30,.05);
  border-left: 3px solid rgba(150,40,30,.65);
  border-radius: 0 6px 6px 0;
}
.ds-tell .ds-label { color: rgba(150,40,30,.8); }
.ds-tell p {
  color: #3a2c22;
  text-decoration: underline;
  text-decoration-color: rgba(150,40,30,.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.ds-margin {
  position: absolute; right: 6px; top: -9px;
  font-size: 11px; font-style: italic;
  color: rgba(150,40,30,.75);
  transform: rotate(-2deg);
}
.ds-stamps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ds-stamp {
  border: 2px solid rgba(60,90,60,.5);
  color: rgba(50,80,50,.8);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 3px;
  transform: rotate(-1deg);
}
.ds-stamp:nth-child(2n) { transform: rotate(1.2deg); }
.ds-foot { margin-top: 16px; font-size: 10px; color: rgba(60,49,21,.45); font-family: ui-monospace, Menlo, monospace; }

/* ---------- The Receipts: thermal spike ---------- */
.rspike { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 10px; min-height: 380px; }
.rspike-pin {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d6d3cd, #6b6862);
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
  margin-bottom: -5px; z-index: 3;
}
.receipt {
  width: 300px;
  background: #fdfcf6;
  color: #2b2925;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; line-height: 1.55;
  padding: 16px 16px 22px;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  position: relative;
  transform-origin: top center;
  cursor: pointer;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 9px), transparent calc(100% - 9px)),
    conic-gradient(from 135deg at 50% 100%, #000 90deg, transparent 90deg);
  -webkit-mask-size: 100% 100%, 14px 9px;
  -webkit-mask-position: 0 0, 0 100%;
  -webkit-mask-repeat: no-repeat, repeat-x;
  mask-image: linear-gradient(#000 calc(100% - 9px), transparent calc(100% - 9px)),
    conic-gradient(from 135deg at 50% 100%, #000 90deg, transparent 90deg);
  mask-size: 100% 100%, 14px 9px;
  mask-position: 0 0, 0 100%;
  mask-repeat: no-repeat, repeat-x;
}
.receipt.torn {
  transition: transform .6s cubic-bezier(.45,0,.9,.6), opacity .6s ease;
  transform: translateY(140px) rotate(7deg);
  opacity: 0;
}
.r-title { font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; }
.r-blurb { font-size: 10px; line-height: 1.5; color: rgba(43,41,37,.68); margin-bottom: 8px; padding-bottom: 7px; border-bottom: 1.5px dashed rgba(43,41,37,.5); }
.r-ln { display: flex; justify-content: space-between; gap: 10px; white-space: pre-wrap; }
.r-ln b { font-weight: 700; text-align: right; flex: none; }
.r-sep { border-top: 1.5px dashed rgba(43,41,37,.5); margin: 7px 0; }
.r-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 13.5px; margin-top: 2px; }
.r-totalsub { text-align: right; font-size: 10.5px; color: rgba(43,41,37,.7); }
.r-foot { text-align: center; margin-top: 12px; font-weight: 700; letter-spacing: .05em; font-size: 10.5px; }
.r-house { text-align: center; margin-top: 8px; font-size: 8.5px; color: rgba(43,41,37,.45); letter-spacing: .02em; }
.r-title, .r-ln, .r-sep, .r-total, .r-totalsub, .r-foot, .r-house {
  opacity: 0; transform: translateY(-2px);
}
.r-title.printed, .r-ln.printed, .r-sep.printed, .r-total.printed,
.r-totalsub.printed, .r-foot.printed, .r-house.printed {
  opacity: .94; transform: none;
  transition: opacity .05s steps(2), transform .12s ease;
}
.rhint {
  margin-top: 12px; font-size: 11px; color: rgba(0,0,0,.4);
  opacity: 0; transition: opacity .3s;
}
.rhint.show { opacity: 1; }

/* ---------- Terminal ---------- */
.window--term { border-radius: 12px; }
.window--term::after {
  background: rgba(18, 16, 22, .92);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
}
.window--term .win-bar { border-bottom-color: rgba(255,255,255,.08); }
.window--term .win-file { color: rgba(255,255,255,.6); }
.window--term .win-body { padding: 14px 16px 16px; }
.term {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; line-height: 1.6;
  color: #d6f5d6;
  min-height: 280px;
}
.term-out { white-space: pre-wrap; word-break: break-word; }
.term-out b { color: #8fe98f; }
.term-inrow { display: flex; gap: 8px; align-items: baseline; margin-top: 2px; }
.term-ps1 { color: #8fe98f; flex: none; }
.term-in {
  flex: 1;
  background: transparent; border: none; outline: none;
  font: inherit; color: #d6f5d6;
  caret-color: #8fe98f;
  padding: 0;
}
.dock-icon[data-grad="term"] {
  background: linear-gradient(135deg, #3f3f46, #131316);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  letter-spacing: -1px;
}

/* ---------- Caddie ---------- */
.stepper { border-radius: 13px; overflow: hidden; background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.07); }
.step-main { aspect-ratio: 16 / 9.2; overflow: hidden; cursor: pointer; background: rgba(0,0,0,.04); }
.step-main img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: opacity .18s; }
.step-cap { font-size: 12.5px; font-weight: 500; color: rgba(0,0,0,.65); padding: 10px 14px 4px; min-height: 20px; }
.step-dots { display: flex; gap: 7px; padding: 8px 14px 12px; }
.sdot {
  all: unset; cursor: pointer;
  width: 7px; height: 7px; border-radius: 99px;
  background: rgba(0,0,0,.18);
  transition: background .2s, width .2s;
}
.sdot.on { background: #f97316; width: 22px; }
.cta-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.cta {
  font-size: 13.5px; font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, #f97316, #c2410c);
  border-radius: 99px;
  padding: 10px 20px;
  box-shadow: 0 6px 18px rgba(194,65,12,.35);
  transition: transform .15s, box-shadow .15s;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(194,65,12,.42); }
.cta-side { font-size: 11.5px; color: rgba(0,0,0,.45); }

/* ---------- About ---------- */
.about-wrap { display: flex; gap: 16px; align-items: flex-start; }
.about-photo {
  flex: none;
  width: 108px; height: 132px;
  border-radius: 12px;
  background: linear-gradient(135deg, #71717a, #27272a);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
  font-size: 26px; font-weight: 700; letter-spacing: -0.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 20px rgba(0,0,0,.22);
}
.arc { margin: 14px 0 18px; }
.arc-row {
  display: flex; gap: 12px; align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(0,0,0,.08);
}
.arc-row:last-child { border-bottom: none; }
.arc-y { flex: none; width: 40px; font-size: 11px; font-weight: 800; color: #b4552f; letter-spacing: .02em; }
.arc-t { font-size: 12.5px; line-height: 1.5; color: rgba(0,0,0,.68); }

/* ---------- dock ---------- */
.dock {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 10px;
  padding: 12px 14px;
  height: 48px;
  border-radius: 13px;
  overflow: visible;
  box-shadow: 0 10px 32px rgba(0,0,0,.28);
  z-index: 8500;
}
/* refraction lives on an oversized layer clipped inside the bar,
   so displaced sampling can never expose a ragged edge */
.dock-glass {
  position: absolute; inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.dock-glass::before {
  content: "";
  position: absolute; inset: -26px;
  background: rgba(255,255,255,.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-filter: url(#liquid-dock);
  filter: url(#liquid-dock);
}
.dock-item {
  position: relative;
  width: 48px; height: 48px;
  transition: width .12s ease-out;
}
.dock-icon {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  border: 0.5px solid rgba(255,255,255,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 12px rgba(0,0,0,.28);
  font-size: 17px; font-weight: 700;
  color: #fff !important;
  letter-spacing: -0.02em;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  transition: width .12s ease-out, height .12s ease-out, font-size .12s ease-out, filter .15s;
  will-change: width, height;
}
.dock.settle .dock-item,
.dock.settle .dock-icon { transition-duration: .32s; transition-timing-function: cubic-bezier(.3,1.3,.6,1); }
.dock-icon:active { filter: brightness(.82); }
.dock-icon.bounce { animation: dockBounce .5s cubic-bezier(.3,1.2,.55,1); }
@keyframes dockBounce {
  0%   { bottom: 0; }
  42%  { bottom: 22px; }
  100% { bottom: 0; }
}
.dock-icon[data-grad="in"]   { background: linear-gradient(135deg, #38bdf8, #0369a1); }
.dock-icon[data-grad="gh"]   { background: linear-gradient(135deg, #52525b, #18181b); }
.dock-icon[data-grad="x"]    { background: linear-gradient(135deg, #27272a, #000); }
.dock-icon[data-grad="mail"] { background: linear-gradient(135deg, #93c5fd, #2563eb); }
.dock-icon[data-grad="cal"] {
  background: linear-gradient(135deg, #fafafa, #d4d4d8);
  color: #292524 !important;
  text-shadow: none;
}

.dock-tip {
  position: fixed;
  transform: translateX(-50%);
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 12px; font-weight: 500;
  color: rgba(20,20,24,.85);
  z-index: 8600;
  pointer-events: none;
  opacity: 0;
  transition: opacity .14s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.dock-tip::after {
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
}
.dock-tip.show { opacity: 1; }

/* ---------- misc ---------- */
.noscript {
  position: relative; z-index: 9999;
  max-width: 640px; margin: 8vh auto;
  padding: 28px 32px;
  background: rgba(252,252,253,.94);
  border-radius: 15px;
  font-size: 15px; line-height: 1.6; color: #1b1b1e;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
