/* SaveAs For Biz — editorial portfolio (not the cockpit) */
:root {
  --ink: #0b0d10;
  --paper: #efece4;
  --fog: #c9c4b8;
  --lime: #d4ff3a;
  --signal: #ff3d2e;
  --steel: #1a1f28;
  --line: rgba(239, 236, 228, 0.14);
  --font-d: "Syne", "Pretendard Variable", Pretendard, sans-serif;
  --font-b: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --font-m: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(1rem, 3.5vw, 2.75rem);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-b);
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* runway grain */
.bg-runway {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 60% at 80% -10%, rgba(212, 255, 58, 0.09), transparent 55%),
    radial-gradient(70% 50% at 0% 100%, rgba(255, 61, 46, 0.08), transparent 50%),
    linear-gradient(180deg, #0b0d10 0%, #10141b 50%, #0b0d10 100%);
}
.bg-runway::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 47px,
      rgba(239, 236, 228, 0.035) 47px,
      rgba(239, 236, 228, 0.035) 48px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 47px,
      rgba(239, 236, 228, 0.03) 47px,
      rgba(239, 236, 228, 0.03) 48px
    );
}
.bg-runway::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    180deg,
    var(--lime) 0 18px,
    transparent 18px 36px
  );
  opacity: 0.18;
}

.site { position: relative; z-index: 1; }

/* floating dock */
.dock {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 0.2rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(14, 16, 20, 0.82);
  border: 1px solid rgba(239, 236, 228, 0.16);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.dock a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(239, 236, 228, 0.72);
  transition: background 0.2s, color 0.2s;
}
.dock a:hover,
.dock a.is-on {
  background: var(--lime);
  color: var(--ink);
}
.dock .dock-lab {
  border: 1px solid rgba(212, 255, 58, 0.35);
}

/* HERO — one composition */
.hero {
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding:
    max(1.2rem, env(safe-area-inset-top))
    var(--gutter)
    clamp(5.5rem, 12vh, 7rem);
  position: relative;
  overflow: hidden;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: clamp(1.5rem, 4vh, 2.8rem);
}
.hero-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(239, 236, 228, 0.25);
}
.hero-brand strong {
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  font-weight: 500;
}
.hero-mark {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(3.4rem, 14vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-mark em {
  font-style: normal;
  color: var(--lime);
}
.hero-line {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  color: rgba(239, 236, 228, 0.78);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime {
  background: var(--lime);
  color: var(--ink);
}
.btn-ghost {
  border: 1px solid rgba(239, 236, 228, 0.28);
  color: var(--paper);
}
.hero-meta {
  position: absolute;
  right: var(--gutter);
  top: max(1.4rem, env(safe-area-inset-top));
  font-family: var(--font-m);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(239, 236, 228, 0.45);
  text-align: right;
  line-height: 1.7;
}
.hero-slash {
  position: absolute;
  right: -8%;
  bottom: 8%;
  width: min(42vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(212, 255, 58, 0.2);
  pointer-events: none;
  animation: orbitSpin 28s linear infinite;
}
.hero-slash::before {
  content: "LAB · 3D · CESIUM · THREE";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(239, 236, 228, 0.18);
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

/* sections */
.section {
  padding: clamp(3.5rem, 9vh, 6.5rem) 0;
  border-top: 1px solid var(--line);
}
.section-head {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin: 0 auto 1.6rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-m);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--lime);
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-d);
  font-weight: 750;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.heading-ko {
  margin: 0.4rem 0 0;
  font-family: var(--font-b);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(239, 236, 228, 0.5);
}
.section-head > p {
  margin: 0;
  max-width: 28rem;
  color: rgba(239, 236, 228, 0.62);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* centered work stage: active + dimmed neighbors */
.work-stage {
  position: relative;
  width: min(100%, 1780px);
  margin: 0 auto;
  padding: 0.35rem max(0.5rem, calc(var(--gutter) - 0.5rem)) 1.4rem;
  min-height: clamp(720px, 86vh, 1040px);
}
.work-track {
  position: relative;
  height: clamp(700px, 82vh, 1000px);
  perspective: 1600px;
}
.work-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(98vw, 1280px);
  background: var(--steel);
  border: 1px solid rgba(239, 236, 228, 0.1);
  border-radius: 22px;
  padding: 1.15rem 1.25rem 1.4rem;
  display: grid;
  gap: 0.85rem;
  transform: translateX(-50%) scale(0.72);
  opacity: 0;
  filter: brightness(0.45);
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s, filter 0.45s, border-color 0.3s;
  z-index: 1;
  overflow: hidden;
}
.work-card.is-side {
  transform: translateX(calc(-50% + (var(--slot) * 62%))) scale(0.78);
  opacity: 0.45;
  filter: brightness(0.5);
  z-index: 5;
}
.work-card.is-far {
  transform: translateX(calc(-50% + (var(--slot) * 78%))) scale(0.64);
  opacity: 0;
  z-index: 1;
}
.work-card.is-active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  filter: brightness(1);
  pointer-events: auto;
  border-color: rgba(212, 255, 58, 0.4);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 255, 58, 0.12);
  z-index: 20;
}
.work-card[style*="--slot: 0"] { /* noop */ }
.work-nav {
  position: absolute;
  top: 42%;
  z-index: 30;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(239, 236, 228, 0.22);
  background: rgba(11, 13, 16, 0.75);
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}
.work-nav:hover {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.work-nav-prev { left: max(0.2rem, calc(var(--gutter) - 0.4rem)); }
.work-nav-next { right: max(0.2rem, calc(var(--gutter) - 0.4rem)); }
.work-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.work-dots button {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(239, 236, 228, 0.25);
  padding: 0;
}
.work-dots button.is-on {
  width: 1.2rem;
  background: var(--lime);
}

.work-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}
.work-no {
  font-family: var(--font-d);
  font-size: 2.2rem;
  line-height: 0.9;
  color: var(--lime);
  letter-spacing: -0.04em;
}
.work-card h3 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  letter-spacing: -0.02em;
}
.work-card .tag {
  font-family: var(--font-m);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--lime);
}
.work-card .lede {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(239, 236, 228, 0.78);
}
.story-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.story-step {
  font-family: var(--font-m);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 236, 228, 0.12);
  color: rgba(239, 236, 228, 0.55);
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.story-step:hover {
  color: rgba(239, 236, 228, 0.85);
  border-color: rgba(239, 236, 228, 0.28);
}
.story-step.is-on {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
  margin-top: 0.15rem;
}
.btn-expand {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(239, 236, 228, 0.75);
  border-bottom: 1px solid rgba(239, 236, 228, 0.25);
  padding: 0;
}
.btn-expand:hover { color: var(--lime); border-color: rgba(212, 255, 58, 0.45); }
.story-screen { cursor: zoom-in; }

/* lightbox */
.story-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 8, 14, 0.88);
  backdrop-filter: blur(8px);
}
.story-lightbox[hidden] { display: none !important; }
body.is-lightbox { overflow: hidden; }
.story-lightbox-panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: 1.1rem 1.1rem 1.25rem;
  border: 1px solid rgba(239, 236, 228, 0.14);
  background: #10141b;
  border-radius: 14px;
}
.story-lightbox-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  font-family: var(--font-m);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}
.story-lightbox-body {
  clear: both;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(100px, 0.45fr);
  gap: 0.75rem;
  align-items: start;
  margin-top: 0.35rem;
}
.story-lightbox-body img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(239, 236, 228, 0.1);
  background: #05080e;
}
.lb-pc img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.lb-mo img { aspect-ratio: 9 / 16; object-fit: cover; object-position: top; max-width: 260px; margin-inline: auto; }
.story-lightbox-cap {
  margin: 0.75rem 0 0.45rem;
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--lime);
}
.story-lightbox-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.story-lightbox-steps button {
  font-family: var(--font-m);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 236, 228, 0.16);
  color: rgba(239, 236, 228, 0.55);
}
.story-lightbox-steps button.is-on {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}
@media (max-width: 720px) {
  .story-lightbox-body {
    grid-template-columns: 1fr;
  }
  .lb-mo img { max-width: 140px; }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.chips span {
  font-size: 0.68rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(239, 236, 228, 0.06);
  border: 1px solid rgba(239, 236, 228, 0.1);
  color: rgba(239, 236, 228, 0.75);
}

/* PC + MO device duo */
.device-duo {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.58fr);
  gap: 1.15rem;
  align-items: start;
}
.device-pc, .device-mo {
  position: relative;
  background: #070a10;
  overflow: hidden;
  border: 1px solid rgba(239, 236, 228, 0.08);
}
.device-label {
  position: absolute;
  z-index: 4;
  font-family: var(--font-m);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  background: rgba(212, 255, 58, 0.92);
  color: var(--ink);
  pointer-events: none;
  line-height: 1.2;
  white-space: nowrap;
}
/* PC label: under chrome, not on URL text */
.device-pc .device-label {
  top: auto;
  bottom: 0.55rem;
  right: 0.55rem;
}
.device-mo .device-label {
  top: 1.05rem;
  right: 0.5rem;
  font-size: 0.62rem;
}
.device-pc { border-radius: 12px; }
.device-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: #141a24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 2.1rem;
}
.device-chrome i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 12px 0 0 #febc2e, 24px 0 0 #28c840;
}
.device-chrome b {
  flex: 1;
  min-width: 0;
  margin-left: 2.1rem;
  font-family: var(--font-m);
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(210, 225, 240, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}
.device-pc .screen {
  aspect-ratio: 16 / 10;
  background: #05080e;
  position: relative;
  min-height: 280px;
}
.device-mo {
  border-radius: 26px;
  padding: 12px 11px 14px;
  max-width: 360px;
  justify-self: end;
  width: 100%;
}
.device-mo .notch {
  width: 38%;
  height: 7px;
  margin: 0 auto 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
}
.device-mo .screen {
  aspect-ratio: 9 / 16;
  border-radius: 7px;
  overflow: hidden;
  background: #05080e;
  position: relative;
}
.story-screen .story-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 2.2s ease;
  background: #0a0e16;
}
.device-pc .screen .story-frame {
  object-fit: contain;
  object-position: top left;
}
.device-mo .screen .story-frame {
  object-fit: contain;
  object-position: top center;
}
.story-screen .story-frame.is-on {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.work-card.is-active .story-screen .story-frame.is-on {
  /* ken burns while live */
  animation: storyKen 2.2s ease-out;
}
@keyframes storyKen {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
.story-caption {
  position: absolute;
  left: 0.45rem;
  bottom: 0.4rem;
  z-index: 2;
  font-family: var(--font-m);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--lime);
  border: 1px solid rgba(212, 255, 58, 0.25);
}
.work-link {
  display: inline-flex;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lime);
  border-bottom: 1px solid rgba(212, 255, 58, 0.4);
  width: fit-content;
}

/* skills */
.skills-grid {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.2rem);
}
.skill-block h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-d);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.skill-block .note {
  margin: -0.4rem 0 1rem;
  font-size: 0.75rem;
  color: rgba(239, 236, 228, 0.45);
  font-family: var(--font-m);
  letter-spacing: 0.04em;
}
.skill {
  margin-bottom: 0.85rem;
}
.skill-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.28rem;
  font-size: 0.86rem;
}
.skill-row b {
  font-family: var(--font-m);
  font-weight: 500;
  color: var(--lime);
  font-size: 0.78rem;
}
.bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(239, 236, 228, 0.08);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--signal), var(--lime));
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* lab */
.lab-panel {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: stretch;
}
.lab-copy {
  padding: 1.4rem 1.5rem;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(212, 255, 58, 0.1), rgba(26, 31, 40, 0.9));
  border: 1px solid rgba(212, 255, 58, 0.22);
}
.lab-copy h3 {
  margin: 0.35rem 0 0.7rem;
  font-family: var(--font-d);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.lab-copy p {
  margin: 0 0 1rem;
  color: rgba(239, 236, 228, 0.72);
  line-height: 1.55;
}
.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}
.stack-list li {
  font-family: var(--font-m);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(239, 236, 228, 0.12);
}
.lab-shot {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(239, 236, 228, 0.12);
  background: #05070c;
  min-height: 220px;
  position: relative;
}
.lab-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 240px;
}
.lab-shot span {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  font-family: var(--font-m);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(212, 255, 58, 0.3);
  color: var(--lime);
}

/* contact */
.contact-box {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
}
.contact-box h2 {
  margin: 0;
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 0.95;
  max-width: 12ch;
}
.contact-box p {
  margin: 1rem 0 1.4rem;
  max-width: 36rem;
  color: rgba(11, 13, 16, 0.7);
  font-size: 1.05rem;
  line-height: 1.55;
}
.contact-box .btn-lime {
  background: var(--ink);
  color: var(--paper);
}
.contact-box .btn-ghost {
  border-color: rgba(11, 13, 16, 0.2);
  color: var(--ink);
}

.site-foot {
  padding: 2rem var(--gutter) calc(5.5rem + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(239, 236, 228, 0.4);
  font-family: var(--font-m);
  letter-spacing: 0.04em;
}

@media (max-width: 1024px) {
  /* MO / TB: mobile UI only */
  .device-duo {
    display: block;
  }
  .device-pc {
    display: none !important;
  }
  .device-mo {
    max-width: min(380px, 78vw);
    width: 100%;
    margin: 0 auto;
    justify-self: center;
    padding: 14px 12px 16px;
  }
  .device-mo .screen {
    max-width: none;
  }
  .device-mo .device-label {
    top: 1.05rem;
  }
}

@media (max-width: 820px) {
  .skills-grid,
  .lab-panel {
    grid-template-columns: 1fr;
  }
  .hero-meta { display: none; }
  .hero-mark {
    font-size: clamp(2.6rem, 15.5vw, 4.4rem);
    max-width: 100%;
  }
  .hero-slash {
    width: 58vw;
    opacity: 0.55;
    bottom: 22%;
    right: -18%;
  }
  .work-card {
    flex-basis: unset;
    width: min(96vw, 520px);
  }
  .work-card.is-side {
    transform: translateX(calc(-50% + (var(--slot) * 48%))) scale(0.82);
    opacity: 0.4;
  }
  .work-stage { min-height: 640px; }
  .work-track { height: 620px; }
  .device-mo {
    max-width: min(400px, 84vw);
    padding: 14px 13px 16px;
    border-radius: 26px;
  }
  .dock a { padding: 0.5rem 0.7rem; font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slash { animation: none; }
  .bar > i { transition: none; }
}
