/* =========================================================
   林屿 LIN YU — Portfolio
   01 tokens · 02 base · 03 chrome · 04 hero · 05 work
   06 about · 07 services · 08 contact · 09 footer
   10 dialog · 11 motion · 12 responsive
   ========================================================= */

/* ---------- 01. Tokens ---------- */
:root {
  --bg: #08080b;
  --bg-elev: #0d0d12;
  --card: #101016;
  --surface: rgba(255, 255, 255, 0.045);
  --text: #f3f1ea;
  --muted: #9898a4;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #c9ff4a;
  --accent-2: #8b6bff;
  --accent-3: #5eead4;
  --accent-ink: #0a0a0c;
  --nav-bg: rgba(8, 8, 11, 0.72);
  --lime: #c9ff4a;
  --violet: #8b6bff;

  --pad: clamp(20px, 4.5vw, 64px);
  --nav-h: 84px;
  --radius: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", Georgia, "Times New Roman", serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f2efe7;
  --bg-elev: #faf8f2;
  --card: #fffdf7;
  --surface: rgba(12, 12, 16, 0.045);
  --text: #141418;
  --muted: #5f5f6b;
  --line: rgba(12, 12, 16, 0.14);
  --line-strong: rgba(12, 12, 16, 0.26);
  --accent: #4a2bff;
  --accent-2: #ff5c35;
  --accent-3: #0f9b8e;
  --accent-ink: #ffffff;
  --nav-bg: rgba(242, 239, 231, 0.74);
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

/* ---------- 02. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

dl,
dd {
  margin: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

[tabindex="-1"]:focus {
  outline: none;
}

.container {
  width: min(1240px, 100% - var(--pad) * 2);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 2px;
  background: transparent;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.cursor-dot,
.cursor-ring {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
    background-color 0.3s var(--ease), opacity 0.3s ease;
}

body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring {
  display: block;
}

body.cursor-active .cursor-dot,
body.cursor-active .cursor-ring {
  opacity: 1;
}

body.cursor-ready .cursor-ring.is-hover {
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- shared type & buttons ---------- */
.eyebrow,
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.status-dot,
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 255, 74, 0.12);
  flex: none;
}

.status-dot {
  position: relative;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(201, 255, 74, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

html[data-theme="light"] .status-dot,
html[data-theme="light"] .dot {
  background: #2f9e44;
  box-shadow: 0 0 0 4px rgba(47, 158, 68, 0.12);
}

html[data-theme="light"] .status-dot::after {
  border-color: rgba(47, 158, 68, 0.45);
}

h1,
h2,
h3 {
  font-weight: 800;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.accent {
  color: var(--accent);
}

.nowrap {
  white-space: nowrap;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.3s ease,
    border-color 0.3s ease, color 0.3s ease, box-shadow 0.35s ease;
}

.btn-icon {
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: transform 0.35s var(--ease);
}

.btn:hover .btn-icon {
  transform: translate(2px, -2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover {
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.26);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--text);
  background: var(--surface);
}

.btn-sm {
  padding: 11px 18px;
  font-size: 12px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface);
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.cart-count.is-on {
  opacity: 1;
  transform: scale(1);
}

.icon-sun {
  display: none;
}

html[data-theme="light"] .icon-sun {
  display: block;
}

html[data-theme="light"] .icon-moon {
  display: none;
}

/* ---------- 03. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease,
    backdrop-filter 0.4s ease;
}

.site-header.is-scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.45s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-text span {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav-links a {
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: var(--surface);
}

.nav-links a.is-active {
  background: var(--bg-elev);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.menu-btn {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-btn span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.menu-btn span:first-child {
  top: 17px;
}

.menu-btn span:last-child {
  top: 23px;
}

body.menu-open .menu-btn span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

body.menu-open .menu-btn span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 28px) var(--pad) 32px;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), visibility 0.4s, transform 0.4s var(--ease);
}

body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.menu-index {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
  align-self: flex-start;
  margin-top: 10px;
}

.menu-arrow {
  margin-left: auto;
  font-size: 22px;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.3s ease;
}

.mobile-nav a:active .menu-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

.mobile-menu-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.mobile-menu-foot a {
  color: var(--text);
}

/* ---------- 04. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 56px) 0 104px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(30px);
}

.hero::before {
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  max-height: 900px;
  right: -14vw;
  top: -20vw;
  background: radial-gradient(circle, rgba(139, 107, 255, 0.3), transparent 66%);
}

.hero::after {
  width: 46vw;
  height: 46vw;
  max-width: 680px;
  max-height: 680px;
  left: -22vw;
  bottom: -20vw;
  background: radial-gradient(circle, rgba(201, 255, 74, 0.12), transparent 66%);
}

html[data-theme="light"] .hero::before {
  background: radial-gradient(circle, rgba(74, 43, 255, 0.16), transparent 66%);
}

html[data-theme="light"] .hero::after {
  background: radial-gradient(circle, rgba(255, 92, 53, 0.12), transparent 66%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 78% 68% at 54% 44%, #000 8%, transparent 74%);
  mask-image: radial-gradient(ellipse 78% 68% at 54% 44%, #000 8%, transparent 74%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.hero-copy h1 {
  margin: 22px 0 26px;
  font-size: clamp(2.75rem, 6.4vw, 6.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-3) 42%, var(--accent-2) 88%);
  background-size: 180% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 9s ease-in-out infinite alternate;
}

.lede {
  max-width: 520px;
  font-size: clamp(14px, 1.15vw, 16.5px);
  line-height: 1.85;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}

.hero-meta dt {
  margin-bottom: 4px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta dd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

/* orb stage */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.orb-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.orb-glow {
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 255, 74, 0.32), rgba(139, 107, 255, 0.36) 46%, transparent 70%);
  filter: blur(46px);
  opacity: 0.9;
}

.orb {
  position: relative;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 205deg at 50% 50%, #c9ff4a, #38d6c0, #7a5cff, #2b1a5e, #c9ff4a);
  box-shadow: inset -30px -38px 70px rgba(0, 0, 0, 0.62),
    inset 24px 26px 54px rgba(255, 255, 255, 0.22),
    0 36px 100px rgba(74, 45, 170, 0.4);
  animation: float 9s ease-in-out infinite;
  z-index: 2;
}

.orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.6), transparent 36%),
    radial-gradient(circle at 70% 82%, rgba(0, 0, 0, 0.6), transparent 58%);
  mix-blend-mode: overlay;
}

.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.orb-shine {
  position: absolute;
  top: 14%;
  left: 18%;
  width: 24%;
  height: 15%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(9px);
  transform: rotate(-32deg);
}

.orb-rim {
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.ring {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  z-index: 1;
}

.ring::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.ring-a {
  width: 86%;
  aspect-ratio: 1;
  animation: spin 44s linear infinite;
}

.ring-b {
  width: 74%;
  aspect-ratio: 1;
  border-color: rgba(255, 255, 255, 0.12);
  animation: spin 32s linear infinite reverse;
}

html[data-theme="light"] .ring {
  border-color: rgba(12, 12, 16, 0.28);
}

html[data-theme="light"] .ring::before {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.chip {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(14, 14, 20, 0.58);
  color: #f3f1ea;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  animation: float 7s ease-in-out infinite;
}

.chip b {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chip span {
  font-size: 9.5px;
  color: #a3a3af;
}

.chip-1 {
  top: 15%;
  left: 0;
  animation-delay: -1.4s;
}

.chip-2 {
  top: 52%;
  right: 0;
  animation-delay: -3.2s;
}

.chip-3 {
  bottom: 11%;
  left: 9%;
  animation-delay: -5s;
}

.stage-label {
  position: absolute;
  right: 3%;
  bottom: 2%;
  font-size: 8px;
  letter-spacing: 0.26em;
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--muted), transparent);
  animation: scroll-line 2.2s ease-in-out infinite;
  transform-origin: top;
}

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}

.marquee-group i {
  font-style: normal;
  font-size: 9px;
  color: var(--accent);
}

/* ---------- 05. Sections & work ---------- */
.section {
  position: relative;
  padding: clamp(88px, 10vw, 148px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 32px 48px;
  margin-bottom: clamp(40px, 5.5vw, 68px);
}

.section-head h2 {
  margin-top: 18px;
}

.section-note {
  justify-self: end;
  max-width: 360px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  gap: clamp(18px, 2.4vw, 30px);
}

.work-card {
  position: relative;
  grid-column: span 6;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.45s ease, transform 0.55s var(--ease),
    box-shadow 0.55s var(--ease);
}

.work-card:nth-child(1),
.work-card:nth-child(4) {
  grid-column: span 7;
}

.work-card:nth-child(2),
.work-card:nth-child(3) {
  grid-column: span 5;
}

.work-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] .work-card:hover {
  box-shadow: 0 28px 60px rgba(30, 26, 18, 0.12);
}

.work-art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  transition: transform 0.9s var(--ease), filter 0.6s ease;
}

.work-card:nth-child(1) .work-art,
.work-card:nth-child(4) .work-art {
  aspect-ratio: 16 / 9;
}

.work-card:nth-child(2) .work-art,
.work-card:nth-child(3) .work-art {
  aspect-ratio: 5 / 4;
}

.work-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.work-card:hover .work-art {
  transform: scale(1.035);
}

.art-tag {
  position: absolute;
  top: 16px;
  left: 17px;
  z-index: 4;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* neon */
.art-neon {
  background: radial-gradient(58% 72% at 16% 88%, rgba(201, 255, 74, 0.5), transparent 62%),
    radial-gradient(54% 64% at 84% 14%, rgba(139, 107, 255, 0.64), transparent 66%),
    #090914;
}

.art-neon::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(76% 76% at 50% 50%, #000, transparent 78%);
  mask-image: radial-gradient(76% 76% at 50% 50%, #000, transparent 78%);
}

.art-neon::after {
  content: "";
  position: absolute;
  left: 61%;
  top: 42%;
  width: 44%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.035),
    0 0 0 23px rgba(255, 255, 255, 0.08),
    0 0 90px rgba(201, 255, 74, 0.16);
  transition: transform 1.2s var(--ease);
}

.work-card:hover .art-neon::after {
  transform: translate(-50%, -50%) scale(1.06);
}

.art-word {
  position: absolute;
  left: 6%;
  bottom: 5%;
  z-index: 3;
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.42);
}

/* mist */
.art-mist {
  background: #e6ddca;
}

.art-mist::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(0deg, rgba(16, 18, 14, 0.22), transparent 44%);
}

.art-mist svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.art-mist .art-tag {
  border-color: rgba(12, 12, 16, 0.28);
  color: rgba(12, 12, 16, 0.72);
}

/* orbit */
.art-orbit {
  background: radial-gradient(circle at 72% 16%, #221747, #06060c 62%);
}

.art-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 0.7px, transparent 0.8px),
    radial-gradient(rgba(255, 255, 255, 0.3) 0.6px, transparent 0.7px);
  background-size: 90px 90px, 53px 53px;
  background-position: 12px 20px, 40px 8px;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(74% 78% at 50% 45%, #000, transparent 80%);
  mask-image: radial-gradient(74% 78% at 50% 45%, #000, transparent 80%);
}

.orbit-sphere {
  position: absolute;
  left: 54%;
  top: 44%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 34% 30%, #f2eaff, #9a7cff 34%, #4b2b9e 62%, #120826 84%);
  box-shadow: 0 0 70px rgba(139, 107, 255, 0.6),
    inset -14px -18px 34px rgba(0, 0, 0, 0.7),
    inset 8px 10px 22px rgba(255, 255, 255, 0.18);
  z-index: 2;
}

.orbit-line {
  position: absolute;
  left: 54%;
  top: 44%;
  width: 68%;
  height: 26%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  z-index: 1;
}

.orbit-line-b {
  width: 84%;
  height: 34%;
  transform: translate(-50%, -50%) rotate(48deg);
  border-color: rgba(201, 255, 74, 0.24);
}

/* type */
.art-type {
  background: #f0ebe0;
}

.art-type::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(20, 20, 15, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 15, 0.08) 1px, transparent 1px);
  background-size: 33.333% 25%;
}

.art-type .art-tag {
  border-color: rgba(12, 12, 16, 0.28);
  color: rgba(12, 12, 16, 0.72);
}

.type-glyph {
  position: absolute;
  left: 5%;
  bottom: -9%;
  font-family: var(--font-serif);
  font-size: clamp(130px, 22vw, 280px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: #17170f;
  z-index: 2;
}

.type-bar {
  position: absolute;
  right: 7%;
  bottom: 11%;
  width: 18%;
  height: 7px;
  background: #cf5a2e;
  z-index: 3;
}

.type-meta {
  position: absolute;
  right: 7%;
  top: 17%;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.2em;
  color: rgba(20, 20, 15, 0.62);
  text-align: right;
  z-index: 3;
}

.work-body {
  padding: 20px 22px 23px;
}

.work-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.work-title-row h3 {
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.work-title-row h3 span {
  margin-left: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 15px;
  color: var(--muted);
  flex: none;
  transition: background-color 0.35s ease, color 0.35s ease,
    border-color 0.35s ease, transform 0.4s var(--ease);
}

.work-card:hover .work-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translate(2px, -2px);
}

.work-hit {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: var(--radius);
}

.work-hit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

.work-foot {
  margin-top: 42px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.work-foot a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.work-foot a:hover {
  color: var(--accent);
}

/* reserved case slots */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.slot-card {
  --slot-accent: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(250px, 27vw, 340px);
  padding: clamp(22px, 2.6vw, 32px);
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.4s ease, transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

.slot-card:nth-child(2) {
  --slot-accent: var(--accent-2);
}

.slot-card:nth-child(3) {
  --slot-accent: var(--accent-3);
}

.slot-card:nth-child(4) {
  --slot-accent: var(--accent);
}

.slot-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(circle at 20% 12%, var(--slot-accent), transparent 38%);
  opacity: 0.09;
  transition: opacity 0.5s ease;
}

.slot-card > * {
  position: relative;
  z-index: 1;
}

.slot-card:hover {
  border-color: var(--slot-accent);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

html[data-theme="light"] .slot-card:hover {
  box-shadow: 0 24px 54px rgba(30, 26, 18, 0.1);
}

.slot-card:hover::before {
  opacity: 0.16;
}

.slot-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.slot-hit:focus-visible {
  outline: 2px solid var(--slot-accent);
  outline-offset: -4px;
}

.slot-card.is-filled {
  border-style: solid;
  border-color: var(--line-strong);
  background: linear-gradient(155deg, var(--surface), transparent 58%), var(--card);
}

.slot-card.is-filled .slot-plus {
  color: var(--slot-accent);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 400;
}

.slot-card.is-filled .slot-middle {
  gap: 9px;
}

.slot-card.is-filled .slot-middle h3 {
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.slot-desc {
  max-width: 30em;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slot-tag {
  display: inline-flex;
  margin-top: 2px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.slot-card.is-filled .slot-foot {
  color: var(--slot-accent);
}

.slot-foot.has-link {
  z-index: 4;
  pointer-events: none;
}

.slot-url {
  position: relative;
  z-index: 5;
  pointer-events: auto;
  color: var(--slot-accent);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.slot-url:hover {
  color: var(--text);
}

.slot-head,
.slot-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.slot-num {
  color: var(--slot-accent);
  font-weight: 600;
}

.slot-state {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 8px;
}

.slot-middle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin: auto 0;
  padding: 26px 0;
}

.slot-plus {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(38px, 4.4vw, 54px);
  font-weight: 300;
  line-height: 0.8;
  color: var(--muted);
  transition: transform 0.5s var(--ease), color 0.4s ease;
}

.slot-card:hover .slot-plus {
  color: var(--slot-accent);
  transform: rotate(90deg);
}

.slot-middle p {
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.slot-middle span:last-child {
  font-size: 11.5px;
  color: var(--muted);
}

.slot-foot {
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

/* ---------- 06. About ---------- */
.about {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about-intro h2 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
}

.profile-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  margin-top: clamp(32px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: #0b0b11;
  color: #f3f1ea;
}

html[data-theme="light"] .profile-card {
  box-shadow: 0 24px 60px rgba(30, 26, 18, 0.16);
}

.profile-glow {
  position: absolute;
  left: -22%;
  top: -18%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 255, 74, 0.45), rgba(139, 107, 255, 0.2) 48%, transparent 70%);
  filter: blur(30px);
}

.profile-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 80%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 80%);
}

.profile-initials {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
  font-family: var(--font-serif);
  font-size: clamp(90px, 10vw, 150px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 241, 234, 0.85);
}

.profile-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.profile-caption {
  position: absolute;
  inset: auto 18px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(243, 241, 234, 0.62);
}

.about-body {
  padding-top: clamp(34px, 5vw, 54px);
}

.about-body p {
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.about-body .about-lead {
  margin-bottom: 20px;
  color: var(--text);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.skills li {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.skills li:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.stats dt {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.stats dd {
  margin-top: 5px;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat-suffix {
  color: var(--accent);
}

/* ---------- 07. Services ---------- */
.services {
  border-top: 1px solid var(--line);
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 54px minmax(150px, 0.9fr) minmax(0, 1.35fr) minmax(0, 0.9fr) 40px;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  padding: clamp(26px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s ease;
}

.service-row::before {
  content: "";
  position: absolute;
  left: calc(var(--pad) * -0.5);
  right: calc(var(--pad) * -0.5);
  top: 0;
  bottom: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--surface), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-row:hover::before {
  opacity: 1;
}

.service-num {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.service-row h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.service-row:hover h3 {
  color: var(--accent);
}

.service-row p {
  max-width: 420px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags li {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9.5px;
  color: var(--muted);
}

.service-arrow {
  justify-self: end;
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.4s var(--ease), color 0.3s ease;
}

.service-row:hover .service-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

/* ---------- 08. Contact ---------- */
.contact {
  padding-bottom: clamp(64px, 8vw, 100px);
}

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6.5vw, 92px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: clamp(24px, 3vw, 40px);
  background: #0a0a10;
  color: #f3f1ea;
}

.contact-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.contact-glow-a {
  width: 52%;
  aspect-ratio: 1;
  right: -12%;
  top: -30%;
  background: radial-gradient(circle, rgba(201, 255, 74, 0.24), transparent 68%);
}

.contact-glow-b {
  width: 46%;
  aspect-ratio: 1;
  left: -14%;
  bottom: -34%;
  background: radial-gradient(circle, rgba(139, 107, 255, 0.32), transparent 68%);
}

.label-light {
  position: relative;
  color: rgba(243, 241, 234, 0.55);
}

.label-light::before {
  background: var(--lime);
}

.contact-panel h2 {
  position: relative;
  margin-top: 22px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.contact-panel h2 span {
  color: var(--lime);
}

.contact-copy {
  position: relative;
  max-width: 480px;
  margin-top: 26px;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(243, 241, 234, 0.58);
}

.contact-actions {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.email-link {
  font-size: clamp(1.35rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  border-bottom: 1px solid rgba(243, 241, 234, 0.4);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.email-link:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(243, 241, 234, 0.24);
  border-radius: 999px;
  font-size: 11px;
  color: rgba(243, 241, 234, 0.72);
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.copy-btn:hover {
  color: #f3f1ea;
  border-color: rgba(243, 241, 234, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.copy-btn.is-copied {
  color: var(--lime);
  border-color: var(--lime);
}

.contact-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: clamp(48px, 6vw, 76px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 241, 234, 0.46);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.socials a {
  color: rgba(243, 241, 234, 0.72);
  transition: color 0.3s ease;
}

.socials a:hover {
  color: var(--lime);
}

.socials span {
  font-size: 9px;
}

.contact-note {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 241, 234, 0.46);
}

/* ---------- shop ---------- */
.shop {
  border-top: 1px solid var(--line);
}

.shop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-bar > span b {
  color: var(--text);
}

.shop-bar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.shop-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(20px, 2.5vw, 30px);
}

.shop-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(240px, 100%);
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
}

.shop-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.shop-search input::placeholder {
  color: var(--muted);
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  transition: color 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease;
}

.filter-chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.filter-chip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.filter-chip b {
  font-size: 9px;
}

.fav-filter.is-on {
  border-color: #ff8b7a;
  color: #ff9b8a;
}

.shop-sort {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-sort select {
  padding: 8px 26px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 10px;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
}

.shop-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: color 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease;
}

.shop-external span {
  color: var(--accent);
}

.shop-external:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.fav-btn {
  position: absolute;
  right: 13px;
  bottom: 13px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(10, 10, 16, 0.55);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: color 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease, transform 0.3s var(--ease);
}

.fav-btn:hover {
  transform: scale(1.08);
  color: #ffb0a4;
  border-color: #ff8b7a;
}

.fav-btn.is-on {
  color: #ff8b7a;
  border-color: #ff8b7a;
  background: rgba(60, 18, 18, 0.65);
}

.cart-text-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-text-btn b {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 9px;
}

.cart-text-btn span {
  color: var(--accent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.product-card {
  --product-accent: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(280px, 28vw, 340px);
  padding: clamp(22px, 2.8vw, 34px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.4s ease, transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

.product-card.has-cover {
  min-height: 0;
  padding: 0;
}

.product-cover {
  position: relative;
  height: clamp(190px, 20vw, 245px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #0c0c13, #151022);
}

.product-cover::before,
.product-detail-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(80% 80% at 60% 40%, #000, transparent 80%);
  mask-image: radial-gradient(80% 80% at 60% 40%, #000, transparent 80%);
}

.product-cover::after,
.product-detail-cover::after {
  content: "";
  position: absolute;
  width: 160%;
  aspect-ratio: 1;
  right: -45%;
  top: -60%;
  border-radius: 50%;
  background: var(--cover-glow, rgba(201, 255, 74, 0.4));
  filter: blur(34px);
  opacity: 0.55;
}

.cover-0 {
  --cover-glow: rgba(201, 255, 74, 0.38);
  background: radial-gradient(circle at 78% 18%, rgba(201, 255, 74, 0.34), transparent 46%),
    linear-gradient(135deg, #0b0b14, #17122a);
}

.cover-1 {
  --cover-glow: rgba(139, 107, 255, 0.46);
  background: radial-gradient(circle at 78% 18%, rgba(139, 107, 255, 0.44), transparent 46%),
    linear-gradient(135deg, #0b0b14, #211334);
}

.cover-2 {
  --cover-glow: rgba(94, 234, 212, 0.34);
  background: radial-gradient(circle at 78% 18%, rgba(94, 234, 212, 0.3), transparent 46%),
    linear-gradient(135deg, #0b0b14, #10222a);
}

.cover-3 {
  --cover-glow: rgba(255, 122, 90, 0.3);
  background: radial-gradient(circle at 78% 18%, rgba(255, 122, 90, 0.28), transparent 46%),
    linear-gradient(135deg, #0d0b12, #28151a);
}

.product-cover-index {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 18px;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.68);
}

.product-cover-type {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 15px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.product-cover-glyph {
  position: absolute;
  z-index: 1;
  left: 7%;
  bottom: -17%;
  font-family: var(--font-serif);
  font-size: clamp(130px, 17vw, 220px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: rgba(243, 241, 234, 0.9);
  text-shadow: 0 0 50px var(--cover-glow);
}

.product-cover-glyph.outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 241, 234, 0.58);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 28px);
}

.product-card.has-cover .product-top {
  margin-bottom: 0;
}

.product-card.has-cover h3 {
  margin-top: 14px;
}

.product-card.has-cover .product-foot {
  padding-top: 20px;
}

.product-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.product-hit:focus-visible {
  outline: 2px solid var(--product-accent);
  outline-offset: -4px;
}

.product-view {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--product-accent);
}

.product-card.has-cover:hover .product-cover-glyph {
  transform: translateY(-6px) rotate(-2deg);
}

.product-cover-glyph {
  transition: transform 0.6s var(--ease);
}

.shop-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 42px clamp(22px, 3vw, 34px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}

.shop-empty p {
  font-size: 18px;
  color: var(--text);
}

.shop-empty span {
  font-size: 12px;
}

.product-card:nth-child(2) {
  --product-accent: var(--accent-2);
}

.product-card:nth-child(3) {
  --product-accent: var(--accent-3);
}

.product-card:nth-child(4) {
  --product-accent: var(--accent);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: -25%;
  pointer-events: none;
  background: radial-gradient(circle at 82% 10%, var(--product-accent), transparent 38%);
  opacity: 0.07;
  transition: opacity 0.5s ease;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-card:hover {
  border-color: var(--product-accent);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

html[data-theme="light"] .product-card:hover {
  box-shadow: 0 24px 54px rgba(30, 26, 18, 0.1);
}

.product-card:hover::before {
  opacity: 0.13;
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-num {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--product-accent);
}

.product-type {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-card h3 {
  margin-top: 24px;
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.product-card p {
  max-width: 32em;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.product-tags li {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  color: var(--muted);
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}

.product-price {
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.add-to-cart {
  flex: none;
}

.shop-custom {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.shop-custom a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.shop-custom a:hover {
  color: var(--accent);
}

.shop-disclaimer {
  margin-top: 12px;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0.75;
}

/* ---------- cart ---------- */
.cart-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(440px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 24px 0 0 24px;
  background: var(--card);
  color: var(--text);
  box-shadow: -30px 0 90px rgba(0, 0, 0, 0.4);
}

.cart-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: cart-in 0.45s var(--ease) both;
}

.cart-dialog::backdrop {
  background: rgba(4, 4, 7, 0.62);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 26px 18px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  margin-top: 10px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.cart-head .dialog-close {
  position: static;
  flex: none;
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.cart-head .dialog-close:hover {
  background: var(--surface);
  color: var(--text);
}

.cart-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: auto;
  padding: 8px 26px 26px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 56px 0;
  color: var(--muted);
}

.cart-empty-mark {
  display: block;
  margin-bottom: 8px;
  font-size: 46px;
  font-weight: 300;
  line-height: 0.8;
  color: var(--accent);
}

.cart-empty p {
  font-size: 16px;
  color: var(--text);
}

.cart-empty span {
  font-size: 12px;
}

.cart-items {
  display: flex;
  flex-direction: column;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item-info h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cart-item-info p {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.cart-item-total {
  align-self: start;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.cart-item-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  grid-column: 1 / -1;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cart-qty button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.cart-qty button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.cart-qty span {
  min-width: 14px;
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cart-remove {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-remove:hover {
  color: #ff9b8a;
}

.checkout {
  margin-top: 4px;
}

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 10px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-total-row strong {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
}

.cart-pay-note {
  margin: 2px 0 4px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}

.checkout .field {
  margin-top: 13px;
}

.checkout .field input,
.checkout .field textarea {
  padding: 10px 12px;
  font-size: 13px;
}

.checkout .field textarea {
  min-height: 66px;
}

.cart-actions {
  display: flex;
  gap: 9px;
  margin-top: 8px;
}

.cart-actions .btn {
  flex: 1;
  padding: 12px 16px;
}

.cart-actions .btn-ghost {
  flex: 0 0 auto;
}

@keyframes cart-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 09. Footer ---------- */
.site-footer {
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 9px;
}

.footer-note {
  font-size: 10.5px;
  color: var(--muted);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-meta b {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.to-top:hover {
  color: var(--accent);
}

/* ---------- 10. Dialog ---------- */
.work-dialog {
  width: min(940px, calc(100% - 32px));
  max-height: 90svh;
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

.work-dialog::backdrop {
  background: rgba(4, 4, 7, 0.7);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.dialog-art {
  position: relative;
  height: clamp(200px, 34vw, 330px);
  overflow: hidden;
}

.dialog-art .work-art {
  height: 100%;
  aspect-ratio: auto;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(8, 8, 12, 0.5);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, transform 0.3s var(--ease);
}

.dialog-close:hover {
  background: rgba(8, 8, 12, 0.78);
  transform: rotate(90deg);
}

.dialog-body {
  padding: clamp(24px, 4vw, 44px);
}

.dialog-body h2 {
  margin-top: 16px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.dialog-desc {
  max-width: 640px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.dialog-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.dialog-facts dt {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.dialog-facts dd {
  margin-top: 4px;
  font-size: 12.5px;
}

.dialog-back {
  margin-top: 32px;
}

[open].work-dialog {
  animation: dialog-in 0.45s var(--ease) both;
}

/* ---------- skill editor dialog ---------- */
.skill-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: 90svh;
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

.skill-dialog::backdrop {
  background: rgba(4, 4, 7, 0.72);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.skill-dialog-body {
  padding: clamp(24px, 4vw, 42px);
}

.skill-dialog-body h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
}

.skill-dialog-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 18px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-status {
  min-height: 20px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.form-status.is-error {
  color: #ff8b7a;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn-danger {
  margin-left: auto;
  border-color: rgba(255, 120, 100, 0.32);
  color: #ff9b8a;
}

.btn-danger:hover {
  border-color: #ff8b7a;
  background: rgba(255, 120, 100, 0.08);
}

[open].skill-dialog {
  animation: dialog-in 0.45s var(--ease) both;
}

.product-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: 90svh;
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

.product-dialog::backdrop {
  background: rgba(4, 4, 7, 0.72);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.product-detail-cover {
  position: relative;
  height: clamp(190px, 26vw, 270px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #0c0c13, #151022);
}

.product-detail-glyph {
  position: absolute;
  z-index: 1;
  left: 7%;
  bottom: -20%;
  font-family: var(--font-serif);
  font-size: clamp(150px, 20vw, 270px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: rgba(243, 241, 234, 0.9);
  text-shadow: 0 0 60px var(--cover-glow);
}

.product-detail-index {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 20px;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.65);
}

.product-dialog-body {
  padding: clamp(24px, 4vw, 40px);
}

.product-dialog-body h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.product-detail-desc {
  max-width: 580px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.product-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.product-detail-price {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.product-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.product-detail-actions .btn-danger {
  margin-left: auto;
}

[open].product-dialog {
  animation: dialog-in 0.45s var(--ease) both;
}

/* ---------- 11. Motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  70%, 100% { transform: scale(1.8); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes scroll-line {
  0% { transform: scaleY(0.2); opacity: 0.2; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

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

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

/* ---------- 12. Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 8px 13px; }
  .nav-cta { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr); }
  .orb-stage { max-width: 440px; }
}

@media (max-width: 920px) {
  :root { --nav-h: 72px; }

  .nav-links { display: none; }
  .menu-btn { display: block; }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 64px);
    padding-bottom: 88px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy h1 { font-size: clamp(2.9rem, 9vw, 5.2rem); }

  .hero-visual { justify-content: center; }
  .orb-stage { max-width: 420px; margin-inline: auto; }

  .scroll-cue { display: none; }

  .section-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-note {
    justify-self: start;
    max-width: 520px;
  }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-body { padding-top: 0; }
  .profile-card { max-width: 340px; }
  .about-intro h2 { max-width: 620px; }

  .service-row {
    grid-template-columns: 42px minmax(140px, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }

  .service-row p { max-width: none; }
  .service-row .tags { grid-column: 3; justify-content: flex-start; }
  .service-arrow { display: none; }
}

@media (max-width: 720px) {
  .work-card,
  .work-card:nth-child(1),
  .work-card:nth-child(2),
  .work-card:nth-child(3),
  .work-card:nth-child(4) {
    grid-column: span 12;
  }

  .work-art { aspect-ratio: 16 / 11; }

  .slot-grid { grid-template-columns: 1fr; }

  .slot-card { min-height: 230px; }

  .product-grid { grid-template-columns: 1fr; }

  .work-card:nth-child(1) .work-art,
  .work-card:nth-child(2) .work-art,
  .work-card:nth-child(3) .work-art,
  .work-card:nth-child(4) .work-art {
    aspect-ratio: 16 / 11;
  }

  .service-row {
    grid-template-columns: 34px 1fr;
    gap: 8px 14px;
    padding: 24px 0;
  }

  .service-row h3 { grid-column: 2; }
  .service-row p { grid-column: 2; margin-top: 6px; }
  .service-row .tags { grid-column: 2; margin-top: 10px; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }

  .contact-foot { align-items: flex-start; flex-direction: column; }

  .dialog-facts { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 560px) {
  :root { --radius: 20px; }

  .brand-text span { display: none; }

  .hero-copy h1 { font-size: clamp(2.55rem, 10.6vw, 3.5rem); }

  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1; min-width: 140px; padding-inline: 18px; }

  .hero-meta { gap: 24px; }

  .orb-stage { max-width: 320px; }
  .chip { padding: 9px 12px; }
  .chip b { font-size: 10px; }
  .chip span { display: none; }
  .chip-1 { left: -2%; }
  .chip-2 { right: -2%; }
  .chip-3 { display: none; }

  .marquee-group { gap: 20px; padding-right: 20px; font-size: 10px; }

  .work-title-row h3 span { display: block; margin: 3px 0 0; }

  .work-body { padding: 17px 17px 19px; }

  .contact-panel { padding: 30px 22px 26px; }
  .contact-panel h2 { font-size: clamp(2.1rem, 9.6vw, 3rem); }
  .email-link { font-size: clamp(1.15rem, 6vw, 1.5rem); }
  .contact-actions { gap: 12px; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .skill-dialog-body { padding: 26px 20px; }
  .form-actions { gap: 8px; }
  .btn-danger { margin-left: 0; }

  .cart-dialog {
    width: 100%;
    border-left: 0;
    border-radius: 0;
  }

  .cart-head { padding: 24px 22px 16px; }
  .cart-body { padding: 8px 22px 24px; }

  .shop-bar { font-size: 9px; }
  .product-card { min-height: 250px; }

  .shop-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0 16px;
  }

  .shop-bar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .product-dialog-body { padding: 24px 20px; }
  .product-detail-actions .btn { flex: 1; }
  .product-detail-actions .btn-danger { margin-left: 0; }

  .footer-grid { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-meta { flex-wrap: wrap; gap: 14px; }
}

@media (hover: none) {
  .work-card:hover { transform: none; box-shadow: none; }
  .work-card:hover .work-art { transform: none; }
}

@media (max-width: 380px) {
  .nav-actions { gap: 6px; }

  .nav-actions .icon-btn {
    width: 36px;
    height: 36px;
  }

  .menu-btn {
    width: 38px;
    height: 38px;
  }

  .menu-btn span {
    left: 11px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    flex: none;
  }

  .contact-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
}
