/* =========================================================
   Isabella Art Studio - main stylesheet
   Dark portfolio theme. Light theme via [data-theme=light].
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --bg: #09090b;
  --fg: #fafafa;
  --card: #18181b;
  --muted: #27272a;
  --muted-soft: rgba(39, 39, 42, 0.5);
  --muted-fg: #a1a1aa;
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --red: #f43f5e;
  --red-soft: rgba(244, 63, 94, 0.08);
  --green: #10b981;
  --white: #ffffff;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: "Archivo Black", "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --fg: #09090b;
  --card: #ffffff;
  --muted: #f4f4f5;
  --muted-soft: rgba(244, 244, 245, 0.7);
  --muted-fg: #71717a;
  --border: rgba(0, 0, 0, 0.09);
  --border-soft: rgba(0, 0, 0, 0.05);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.06);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -moz-user-select: none; }

/* artwork protection - watermarks are burned into the files; this stops
   long-press save menus and direct image interaction on touch devices */
.work-card img, .hero-portrait img, .service-thumb img, .work-modal-img img {
  pointer-events: none;
  -webkit-touch-callout: none;
}
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.red { color: var(--red); }

html[lang="zh"] body .display { font-weight: 700; }

::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in oklab, currentColor 18%, transparent); border-radius: 8px; }

.container { max-width: 1152px; margin: 0 auto; padding-left: 16px; padding-right: 16px; width: 100%; }
@media (min-width: 768px) { .container { padding-left: 24px; padding-right: 24px; } }

.ico { width: 16px; height: 16px; flex-shrink: 0; }

/* site main takes remaining height */
.site-main { flex: 1; }

/* ---------- page sections ---------- */
.station { scroll-margin-top: 96px; }
.station-page { padding-top: 40px; padding-bottom: 96px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar-inner {
  max-width: 1152px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
@media (min-width: 768px) { .topbar-inner { padding: 12px 24px; } }

.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
@media (min-width: 768px) { .topbar-right { gap: 8px; } }

.chip-btn, .icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: transparent; color: var(--fg);
  border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chip-btn:hover, .icon-btn:hover { border-color: color-mix(in oklab, var(--fg) 30%, transparent); }
.icon-btn { width: 36px; height: 36px; padding: 0; justify-content: center; }
.chip-btn .chev { width: 14px; height: 14px; opacity: 0.6; }

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

/* compact CTA button in the topbar */
.topbar .topbar-cta { padding: 8px 18px; font-size: 13px; }
@media (max-width: 599px) { .topbar .topbar-cta { display: none; } }

/* brand */
.brand { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ping-dot { position: relative; display: inline-flex; width: 8px; height: 8px; flex-shrink: 0; }
.ping-dot .dot { position: relative; display: inline-flex; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.ping-dot .ping { position: absolute; inset: 0; border-radius: 50%; background: var(--red); opacity: 0.6; animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite; }
.ping-dot.small { width: 6px; height: 6px; }
.ping-dot.small .dot, .ping-dot.small .ping { width: 6px; height: 6px; }
@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  75%, 100% { transform: scale(2.2); opacity: 0; }
}
.brand-name { display: none; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em; color: var(--muted-fg); text-decoration: none; }
@media (min-width: 640px) { .brand-name { display: inline; } }

/* dropdowns */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; min-width: 180px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  display: none;
}
.dropdown.open .dropdown-menu { display: block; }
#lang-dropdown .dropdown-menu { left: auto; right: 0; }
.dropdown-item {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; text-align: left; background: none; border: 0; color: var(--fg);
  padding: 9px 12px; border-radius: 8px; font-size: 14px;
}
.dropdown-item:hover { background: var(--muted); }
.lang-item .check { width: 14px; height: 14px; visibility: hidden; color: var(--red); }
.lang-item .check.on { visibility: visible; }

/* station nav (desktop) */
.station-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 900px) { .station-nav { display: flex; } }
.station-link {
  position: relative; background: none; border: 0; color: var(--muted-fg);
  padding: 8px 14px; border-radius: 999px; font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.station-link:hover { color: var(--fg); }
.station-link.active { color: var(--fg); background: var(--muted); }
.station-link[hidden] { display: none; }

/* mobile section chips */
.mobile-stations {
  display: flex; align-items: center; gap: 4px; overflow-x: auto;
  padding: 8px 16px; scrollbar-width: none;
}
.mobile-stations::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .mobile-stations { display: none; } }
.station-chip {
  flex-shrink: 0; border: 0; border-radius: 999px; padding: 6px 12px;
  font-size: 12px; background: var(--muted); color: var(--muted-fg);
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.station-chip.active { background: var(--red); color: #fff; }
.station-chip[hidden] { display: none; }

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column; justify-content: center; min-height: 78vh; padding-top: 56px; padding-bottom: 40px; }
.hero > * { max-width: 576px; margin-left: auto; margin-right: auto; width: 100%; }

/* hero portrait - "station ID" card beside the big name */
.hero-portrait {
  position: relative; margin: 36px auto 0; max-width: 400px; width: 100%;
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  background: var(--muted); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.hero-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; }
.hero-portrait-tag {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10, 10, 14, 0.72); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.88);
}
.hp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; animation: hpPulse 2.2s ease-out infinite; }
.hp-sep { opacity: 0.5; }
@keyframes hpPulse {
  0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}
.hero-title {
  margin: 24px auto 0; font-size: 52px; line-height: 1.05; letter-spacing: -0.02em;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
@media (min-width: 768px) { .hero-title { font-size: 72px; } }
.squiggle { height: 20px; width: 96px; }
.squiggle path {
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: draw 1.4s ease-out 0.9s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-role { margin: 16px auto 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted-fg); text-transform: uppercase; }
.hero-links { margin: 20px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; }
.hero-links a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--border); transition: color 0.15s ease; }
.hero-links a:hover { color: var(--red); }
.hero-links .sep { color: var(--muted-fg); }
.hero-tagline { margin: 24px auto 0; font-size: 17px; line-height: 1.6; color: color-mix(in oklab, var(--fg) 90%, transparent); max-width: 512px; }
.hero-bio { margin: 12px auto 0; font-size: 14px; line-height: 1.6; color: var(--muted-fg); max-width: 512px; }
.hero-status { margin: 32px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #34d399; border: 1px solid #059669; margin-right: 4px; flex-shrink: 0; }
.hero-status #status-line { color: var(--muted-fg); }

.hero-ctas { margin: 20px auto 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.hero-socials { margin: 56px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.social-pill {
  background: var(--muted); border-radius: 999px; padding: 8px 16px;
  font-size: 14px; color: color-mix(in oklab, var(--fg) 80%, transparent);
  text-decoration: none; transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.social-pill:hover { transform: translateY(-2px); background: var(--red); color: #fff; }

.scroll-cue { margin: 20px auto 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.scroll-cue span:first-child { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; color: var(--muted-fg); }
.cue-arrow { color: var(--muted-fg); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* split hero on desktop: text left, portrait right (must stay after the hero rules above) */
@media (min-width: 1024px) {
  .hero {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 72px; align-items: center; min-height: 86vh; padding-top: 40px;
  }
  .hero > * { margin-left: 0; margin-right: 0; }
  .hero-portrait { grid-column: 2; grid-row: 1 / span 9; margin: 0; max-width: none; }
  .hero-title { justify-content: flex-start; text-align: left; }
  .hero-socials { justify-content: flex-start; }
  .scroll-cue { align-items: flex-start; }
}

/* ---------- home blocks ---------- */
.home-block { padding-bottom: 96px; }
.home-block:last-child { padding-bottom: 24px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.block-head h2 { margin: 0; font-size: 30px; }
@media (min-width: 768px) { .block-head h2 { font-size: 36px; } }
.mono-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted-fg); }

.project-list { margin-top: 8px; display: flex; flex-direction: column; }
.project-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border-soft);
  color: var(--fg); padding: 24px 0; font-family: inherit;
}
.project-row:last-child { border-bottom: 0; }
.proj-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted-fg); flex-shrink: 0; }
.proj-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.proj-name { font-size: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.15s ease; }
@media (min-width: 768px) { .proj-name { font-size: 24px; } }
.project-row:hover .proj-name { color: var(--red); }
.proj-desc {
  font-size: 14px; color: var(--muted-fg);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.proj-side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.proj-type {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; color: var(--muted-fg);
}
.proj-role { display: none; font-family: var(--font-mono); font-size: 11px; color: var(--muted-fg); }
@media (min-width: 768px) { .proj-role { display: inline; } }
.proj-arrow { font-size: 18px; transition: transform 0.15s ease; }
.project-row:hover .proj-arrow { transform: translateX(4px); }

.about-grid { margin-top: 32px; display: grid; gap: 40px; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 3fr 2fr; } }
.about-text p { margin: 0 0 16px; line-height: 1.65; font-size: 15px; }
.mini-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.25em; color: var(--muted-fg); font-weight: 500; margin: 28px 0 12px; text-transform: uppercase; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip { background: var(--muted); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.tool-list { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; color: var(--muted-fg); }
.tool-list span { border-bottom: 1px dashed var(--border); padding-bottom: 2px; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.stat-card { border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.stat-value { font-size: 30px; }
@media (min-width: 768px) { .stat-value { font-size: 36px; } }
.stat-label { margin-top: 4px; font-size: 12px; color: var(--muted-fg); }

.cta-band {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 24px;
  background: var(--muted); border-radius: 24px; padding: 32px;
}
@media (min-width: 768px) { .cta-band { flex-direction: row; align-items: center; } }
.cta-band h3 { margin: 0; font-size: 24px; }
@media (min-width: 768px) { .cta-band h3 { font-size: 30px; } }
.cta-band p { margin: 8px 0 0; font-size: 14px; color: var(--muted-fg); max-width: 448px; }

/* section intro line (services / why blocks) */
.section-intro { margin: 0; max-width: 560px; font-size: 14px; line-height: 1.65; color: var(--muted-fg); }

/* services - "what I create" */
.services-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  display: flex; flex-direction: column; align-items: stretch; text-align: left;
  background: transparent; border: 0; padding: 0; color: inherit; cursor: pointer;
}
.service-thumb {
  position: relative; display: block; overflow: hidden; border-radius: 16px;
  border: 1px solid var(--border); aspect-ratio: 4 / 3; background: var(--muted);
}
.service-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-thumb img { transform: scale(1.05); }
.service-card:hover .service-arrow { background: var(--red); border-color: var(--red); color: #fff; }
.service-arrow {
  position: absolute; right: 12px; bottom: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border: 1px solid var(--border); color: var(--fg); font-size: 14px;
  transition: all 0.2s ease;
}
.service-name { margin-top: 14px; font-size: 16px; font-weight: 600; }
.service-desc { margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--muted-fg); }
.service-pills { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.service-pill {
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px;
  font-size: 11px; letter-spacing: 0.08em; color: var(--muted-fg);
}

/* why commission me */
.why-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card { border: 1px solid var(--border); border-radius: 16px; padding: 20px; background: var(--muted-soft, transparent); }
.why-num { font-family: var(--font-mono); font-size: 13px; color: var(--red); }
.why-name { margin-top: 10px; font-weight: 600; font-size: 15px; }
.why-desc { margin: 6px 0 0; font-size: 13px; line-height: 1.65; color: var(--muted-fg); }

/* no-AI promise band */
.noai-band {
  margin-top: 64px; display: flex; align-items: center; gap: 20px;
  border: 1px solid color-mix(in oklab, var(--red) 35%, transparent);
  border-radius: 20px; padding: 24px;
  background: var(--red-soft);
}
.noai-mark {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; font-size: 22px; font-weight: 700;
}
.noai-copy h3 { margin: 0; font-size: 20px; }
@media (min-width: 768px) { .noai-copy h3 { font-size: 24px; } }
.noai-copy p { margin: 6px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted-fg); max-width: 640px; }
.noai-chips { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.noai-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-right: 2px; }
.noai-chips .chip-outline { font-size: 11px; padding: 5px 10px; }

/* reviews */
.reviews-head { margin-top: 64px; }
.reviews-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  margin: 0; display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--border); border-radius: 16px; padding: 20px;
}
.review-stars { color: var(--red); font-size: 13px; letter-spacing: 0.2em; }
.review-quote { margin: 0; font-size: 13px; line-height: 1.7; color: var(--fg); }
.review-by { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.review-name { font-weight: 600; font-size: 14px; }
.review-source { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-fg); }
.reviews-cta { margin: 20px 0 0; font-size: 11px; letter-spacing: 0.04em; color: var(--muted-fg); }

/* buttons */
.btn-red {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: #fff; border: 0; border-radius: 999px;
  padding: 12px 24px; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: transform 0.15s ease;
}
.btn-red:hover { transform: scale(1.03); }
.btn-red.full { display: block; width: 100%; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--fg); border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 500;
  text-decoration: none; transition: border-color 0.15s ease;
}
.btn-outline:hover { border-color: color-mix(in oklab, var(--fg) 30%, transparent); }

/* ---------- section pages ---------- */
.station-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.station-title { margin: 0; font-size: 36px; }
@media (min-width: 768px) { .station-title { font-size: 48px; } }
.mono-badge, .slots {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted-fg);
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 2s ease infinite; flex-shrink: 0; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.slots-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.station-blurb { margin: 12px 0 0; max-width: 672px; font-size: 14px; line-height: 1.65; color: var(--muted-fg); }

/* filters */
.filter-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill {
  border: 0; border-radius: 999px; padding: 8px 16px; font-size: 14px;
  background: var(--muted); color: var(--muted-fg);
  transition: background 0.15s ease, color 0.15s ease;
}
.pill:hover { color: var(--fg); }
.pill.active { background: var(--fg); color: var(--bg); }
.pill sup { font-family: var(--font-mono); font-size: 9px; opacity: 0.7; }
.filter-row .counter { margin-left: auto; display: none; letter-spacing: 0.15em; }
@media (min-width: 768px) { .filter-row .counter { display: block; } }

/* works grid - masonry columns keep the layout flush (no empty holes).
   Cards use the artwork's natural aspect ratio so the full picture is
   always visible - nothing is cropped. */
.works-grid { margin-top: 24px; columns: 1; column-gap: 16px; }
@media (min-width: 640px) { .works-grid { columns: 2; } }
@media (min-width: 1024px) { .works-grid { columns: 3; } }
.work-card {
  position: relative; display: block; width: 100%; overflow: hidden; text-align: left;
  border: 1px solid var(--border); border-radius: 16px; background: var(--muted);
  padding: 0; color: var(--fg);
  break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
  margin-bottom: 16px;
}
.work-img { position: relative; display: block; width: 100%; height: auto; transition: transform 0.5s ease; }
.work-img-empty { display: block; width: 100%; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--muted), var(--card)); }
.work-card:hover .work-img { transform: scale(1.04); }
.work-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.1) 40%, transparent); opacity: 0.9; transition: opacity 0.2s ease; }
.work-card:hover .work-shade { opacity: 1; }
.work-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.work-cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: rgba(255,255,255,0.6); }
.work-name { color: #fff; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 768px) { .work-name { font-size: 16px; } }
.work-view {
  position: absolute; right: 16px; bottom: 16px;
  font-family: var(--font-mono); font-size: 10px; color: #fff;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(6px);
  padding: 4px 8px; border-radius: 999px; transition: background 0.15s ease;
}
.work-card:hover .work-view { background: var(--red); }
.work-card[hidden] { display: none; }

.empty-state {
  column-span: all; border: 1px dashed var(--border); border-radius: 16px;
  padding: 40px 24px; text-align: center; color: var(--muted-fg); font-size: 14px;
}

.grid-title { margin: 64px 0 0; font-size: 24px; display: flex; align-items: baseline; gap: 12px; }
@media (min-width: 768px) { .grid-title { font-size: 30px; } }
.grid-title em { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--muted-fg); }

/* ---------- shop ---------- */
.plans-grid { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 768px) { .plans-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 24px; padding: 24px;
}
.plan-card[data-featured="1"] { border-color: var(--red); background: var(--red-soft); }
.plan-card[hidden] { display: none; }
.plan-badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--red); color: #fff; font-size: 10px; letter-spacing: 0.15em;
  padding: 4px 12px; border-radius: 999px;
}
.plan-from { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em; color: var(--muted-fg); }
.plan-name { margin: 8px 0 0; font-size: 30px; }
.plan-price { margin-top: 12px; display: flex; align-items: baseline; gap: 4px; }
.plan-price .display { font-size: 40px; }
.plan-price .onwards { font-size: 12px; color: var(--muted-fg); }
.plan-desc { margin: 12px 0 0; font-size: 14px; color: var(--muted-fg); }
.plan-features { margin: 20px 0 0; padding: 0; list-style: none; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.feat-check { color: var(--red); flex-shrink: 0; margin-top: 1px; }
.plan-book {
  margin-top: 24px; width: 100%; border: 0; border-radius: 999px; padding: 12px;
  font-size: 14px; font-weight: 600; background: var(--fg); color: var(--bg);
  transition: transform 0.15s ease;
}
.plan-book:hover { transform: scale(1.02); }
.plan-book.featured { background: var(--red); color: #fff; }
.plans-empty[hidden] { display: none; }
.plans-empty:not([hidden]) { display: block; }

.process-grid { margin-top: 24px; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-card { border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.process-num { font-family: var(--font-mono); font-size: 14px; color: var(--red); }
.process-name { margin-top: 8px; font-weight: 600; }
.process-desc { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted-fg); }

/* commission form */
.commission-form { margin-top: 64px; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; scroll-margin-top: 96px; }
.form-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--border); background: var(--muted-soft);
  padding: 16px 24px;
}
.form-head h3 { margin: 0; font-size: 24px; }
@media (min-width: 768px) { .form-head h3 { font-size: 30px; } }
.request-line { display: none; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em; color: var(--red); }
@media (min-width: 640px) { .request-line { display: inline-flex; } }
.form-mailto { font-family: var(--font-mono); font-size: 11px; color: var(--muted-fg); }
.form-mailto a { color: var(--fg); text-decoration: none; border-bottom: 1px dashed var(--border); padding-bottom: 1px; transition: color 0.15s ease, border-color 0.15s ease; }
.form-mailto a:hover { color: var(--red); border-color: var(--red); }
.form-body { padding: 24px; }
@media (min-width: 768px) { .form-body { padding: 32px; } }

#ir-commission-form { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { #ir-commission-form { grid-template-columns: 1fr 1fr; } }
.f-row.full, .form-error, .form-foot { grid-column: 1 / -1; }

.f-label {
  display: block; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--muted-fg);
}
.chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border); background: transparent; color: var(--muted-fg);
  border-radius: 999px; padding: 8px 16px; font-size: 14px;
  transition: all 0.15s ease;
}
.chip:hover { border-color: color-mix(in oklab, var(--red) 50%, transparent); color: var(--fg); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.chip[hidden] { display: none; }

#ir-commission-form input[type="text"],
#ir-commission-form input[type="email"],
#ir-commission-form textarea {
  width: 100%; margin-top: 8px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 14px; font-size: 14px; font-family: var(--font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#ir-commission-form input:focus, #ir-commission-form textarea:focus {
  outline: none; border-color: color-mix(in oklab, var(--red) 55%, var(--border));
  box-shadow: 0 0 0 3px var(--red-soft);
}
#ir-commission-form textarea { resize: vertical; min-height: 120px; }
.char-count { margin-top: 6px; text-align: right; font-family: var(--font-mono); font-size: 10px; color: var(--muted-fg); }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* uploads: reference images + size templates (PDF/ZIP/RAR) */
.upload-grid { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .upload-grid { grid-template-columns: 1fr; } }
.upload-box {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  border: 1px dashed color-mix(in oklab, var(--border) 70%, var(--fg));
  border-radius: 14px; padding: 14px 16px; cursor: pointer;
  background: color-mix(in oklab, var(--bg) 55%, var(--muted));
  transition: border-color 0.15s ease, background 0.15s ease;
}
.upload-box:hover, .upload-box:focus-within { border-color: var(--red); background: var(--red-soft); }
.upload-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-box .ico { width: 20px; height: 20px; color: var(--red); margin-bottom: 6px; }
.upload-name { font-size: 14px; color: var(--fg); }
.upload-hint { font-size: 10px; letter-spacing: 0.14em; color: var(--muted-fg); }
.upload-note { display: block; margin-top: 8px; font-size: 10px; letter-spacing: 0.06em; color: var(--muted-fg); }
.file-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.file-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--muted); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 12px; font-size: 13px;
}
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); }
.file-size { flex: none; font-size: 10px; color: var(--muted-fg); }
.file-remove {
  flex: none; border: 0; background: transparent; color: var(--muted-fg);
  font-size: 12px; line-height: 1; padding: 4px 6px; border-radius: 6px;
}
.file-remove:hover { color: var(--red); }

.form-error {
  margin: 0; border: 1px solid color-mix(in oklab, var(--red) 40%, transparent);
  background: var(--red-soft); color: var(--red);
  border-radius: 12px; padding: 12px 16px; font-size: 14px;
}
.form-error a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.form-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; }
@media (min-width: 640px) { .form-foot { flex-direction: row; justify-content: space-between; } }
.form-note { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-fg); }
.form-note .ico { color: var(--red); width: 14px; height: 14px; }
.submit-btn { min-width: 208px; height: 48px; }
.submit-btn[disabled] { opacity: 0.6; cursor: wait; }

/* TOS */
.tos-box { margin-top: 48px; background: var(--muted); border-radius: 24px; padding: 24px; }
@media (min-width: 768px) { .tos-box { padding: 32px; } }
.tos-box h3 { margin: 0; font-size: 20px; }
@media (min-width: 768px) { .tos-box h3 { font-size: 24px; } }
.tos-grid { margin-top: 16px; display: grid; gap: 12px 32px; font-size: 14px; color: var(--muted-fg); }
@media (min-width: 768px) { .tos-grid { grid-template-columns: 1fr 1fr; } }
.tos-grid p { margin: 0; }
.tos-box .btn-red { margin-top: 24px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: auto; }
.footer .container { padding-top: 40px; padding-bottom: 40px; }
.footer-grid { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 768px) { .footer-grid { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.footer-brand .display { font-size: 18px; }
.footer-about { margin: 8px 0 0; max-width: 320px; font-size: 12px; line-height: 1.6; color: var(--muted-fg); }
/* admin-only helper shown when the portfolio has no works yet */
.ir-admin-note {
  margin: 0 0 24px; padding: 12px 16px; border: 1px dashed var(--line, #444);
  border-radius: 10px; font-size: 12px; letter-spacing: 0.02em; color: var(--muted-fg);
  background: rgba(255, 255, 255, 0.03);
}
.ir-admin-note strong { color: var(--fg); }
.ir-admin-note a { color: var(--fg); text-decoration: underline; }
.footer-links { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
.footer-links a { color: var(--muted-fg); text-decoration: none; }
.footer-links a:hover { color: var(--fg); }
.footer-stations { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; }
@media (min-width: 640px) { .footer-stations { grid-template-columns: 1fr 1fr 1fr; } }
.footer-station {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: none; border: 0; padding: 0; text-align: left;
  font-size: 14px; color: var(--muted-fg);
}
.footer-station:hover { color: var(--fg); }
.footer-station.active { color: var(--fg); }
.footer-station em { font-style: normal; font-family: var(--font-mono); font-size: 10px; }
.footer-station[hidden] { display: none; }
.footer-bottom {
  margin-top: 40px; border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 11px; color: var(--muted-fg);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-bottom .mono { letter-spacing: 0.15em; font-family: var(--font-mono); }

/* ---------- modals ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: 92vw; }
.modal::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; background: var(--bg); color: var(--fg);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 24px; width: min(460px, 92vw);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.modal-card.wide { width: min(760px, 92vw); padding: 0; overflow: hidden; }
.modal-x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 70%, transparent); color: var(--fg);
  font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.modal-title { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.modal-title .mono { font-size: 12px; }
.modal-desc { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted-fg); text-align: left; }

/* the artwork preview always shows the complete picture (no crop) */
.work-modal-img { position: relative; background: var(--muted); }
.work-modal-img img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.work-modal-img .work-modal-shield { position: absolute; inset: 0; background-image: var(--wm-url); background-repeat: repeat; pointer-events: none; }
.work-modal-body { padding: 24px; }
.work-modal-body h3 { margin: 0; font-size: 20px; }
.work-modal-body p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted-fg); }
.work-modal-chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-meta { background: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-family: var(--font-mono); }
.chip-outline { border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-family: var(--font-mono); color: var(--muted-fg); }

/* ---------- toasts ---------- */
.toast-root {
  position: fixed; right: 16px; bottom: 16px; z-index: 100;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--card); color: var(--fg); border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 12px; padding: 12px 16px; min-width: 240px; max-width: 340px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  animation: toastIn 0.25s ease;
}
.toast strong { display: block; font-size: 14px; }
.toast span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted-fg); }
.toast.leaving { opacity: 0; transform: translateY(8px); transition: all 0.25s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cue-arrow, .ping, .pulse-dot { animation: none !important; }
  .squiggle path { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ---------- misc ---------- */
.page-content { margin-top: 24px; max-width: 760px; line-height: 1.7; }
.page-content a { color: var(--red); }
.station-page.center { text-align: center; }

/* TOS list bullets */
.tos-grid p::before { content: "• "; }

/* ---------- pricing add-ons strip ---------- */
.addons-strip {
  margin-top: 16px; border: 1px dashed var(--border); border-radius: 24px;
  padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.addons-title { font-weight: 700; font-size: 15px; margin-right: 4px; }
.addons-note { width: 100%; font-size: 13px; color: var(--muted-fg); margin: 0 0 2px; }
.addons-item {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px;
  background: color-mix(in oklab, var(--card) 60%, transparent);
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 24px; display: grid; gap: 12px; }
@media (min-width: 768px) { .faq-list { grid-template-columns: 1fr 1fr; } }
.faq-item { border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; }
.faq-q { font-weight: 700; font-size: 15px; }
.faq-a { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted-fg); }


/* hidden attribute must always win over display rules */
[h[h[h[hidden] { display: none !important; }

/* print guard - artwork never lands in printed or PDF copies */
@media print {
  .work-card img, .hero-portrait img, .service-thumb img, .work-modal-img img { visibility: hidden !important; }
}
