/* =========================================
   LIN SHU STUDIO
   Editorial / Apple-inspired personal studio
   ========================================= */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: rgba(29, 29, 31, 0.1);
  --line-strong: rgba(29, 29, 31, 0.16);
  --accent: #ff5533;
  --accent-soft: #ff8a68;
  --violet: #7457ff;
  --blue: #0071e3;
  --danger: #d70015;
  --r-xl: 32px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1240px;
  --nav-h: 56px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  transform: translateY(-150%);
  transition: transform 0.25s var(--ease);
}

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

.container {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

/* ---------- Shared bits ---------- */

.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 85, 51, 0.45);
  animation: pulse 2.6s infinite;
  flex: 0 0 auto;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 85, 51, 0.42); }
  55% { box-shadow: 0 0 0 7px rgba(255, 85, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 85, 51, 0); }
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.section-label > span {
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.section-label.light {
  color: rgba(255, 255, 255, 0.52);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-dark:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.38);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  border: 1px solid rgba(29, 29, 31, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.btn-light {
  background: #f5f5f7;
  color: var(--ink);
  min-height: 52px;
  padding-inline: 26px;
}

.btn-light:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.45);
}

.btn-quiet {
  background: #f0f0f2;
  color: var(--ink);
  border: 1px solid transparent;
}

.btn-quiet:hover {
  background: #e6e6e9;
}

.btn-danger {
  background: rgba(215, 0, 21, 0.08);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(215, 0, 21, 0.14);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Navigation ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(245, 245, 247, 0.7);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(245, 245, 247, 0.88);
  border-bottom-color: var(--line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-1px);
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 12px;
  color: var(--ink-soft);
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.nav-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}

.nav-edit svg {
  width: 13px;
  height: 13px;
}

.nav-edit:hover {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.nav-edit[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 72px) 0 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(48% 52% at 78% 25%, rgba(255, 103, 65, 0.1), transparent 70%),
    radial-gradient(42% 45% at 13% 9%, rgba(97, 119, 255, 0.08), transparent 72%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.hero-glow-a {
  width: 560px;
  height: 560px;
  right: 3%;
  top: 4%;
  background: rgba(255, 125, 82, 0.18);
  animation: floatA 14s ease-in-out infinite alternate;
}

.hero-glow-b {
  width: 480px;
  height: 480px;
  left: -8%;
  bottom: 2%;
  background: rgba(100, 114, 255, 0.12);
  animation: floatB 18s ease-in-out infinite alternate;
}

@keyframes floatA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 36px, 0) scale(1.08); }
}

@keyframes floatB {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(46px, -30px, 0) scale(1.12); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 29, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 29, 31, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 10%, transparent 72%);
  opacity: 0.65;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.no-works .hero-inner {
  grid-template-columns: minmax(0, 1fr);
}

.no-works .hero-copy {
  max-width: 780px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.eyebrow-mark {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
}

.eyebrow-rule {
  width: 1px;
  height: 11px;
  background: var(--line-strong);
}

.eyebrow-place {
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.13em;
}

.hero-title {
  margin: 30px 0 0;
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.hero-title .line {
  display: block;
  white-space: nowrap;
}

.hero-title .accent {
  padding-right: 0.06em;
  padding-bottom: 0.04em;
  background: linear-gradient(102deg, #ff6b3d 2%, #ff2d6f 48%, #8a5cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lede {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.78;
  letter-spacing: 0;
  text-wrap: pretty;
}

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

.hero-availability {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.hero-availability .pulse-dot {
  width: 5px;
  height: 5px;
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-services li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.hero-services li:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  margin: 0 12px;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.22);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 436px;
  justify-self: end;
}

.visual-halo {
  position: absolute;
  z-index: -1;
  inset: -18% -18% -18% -12%;
  background:
    radial-gradient(circle at 58% 28%, rgba(255, 128, 82, 0.34), transparent 52%),
    radial-gradient(circle at 24% 86%, rgba(104, 116, 255, 0.24), transparent 54%);
  filter: blur(60px);
  opacity: 0.75;
  border-radius: 50%;
}

.feature-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.feature-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  overflow: hidden;
  background: #e8e8ed;
  isolation: isolate;
  box-shadow:
    0 44px 90px -34px rgba(20, 20, 25, 0.48),
    0 6px 18px rgba(0, 0, 0, 0.07);
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
}

.feature-card:hover .feature-media {
  transform: translateY(-6px);
  box-shadow:
    0 56px 110px -36px rgba(20, 20, 25, 0.54),
    0 8px 22px rgba(0, 0, 0, 0.08);
}

.feature-card:active .feature-media {
  transform: translateY(-2px) scale(0.995);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.feature-card:hover .feature-media img {
  transform: scale(1.035);
}

.feature-caption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px 0;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feature-kicker {
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.feature-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.feature-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.feature-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s var(--ease), transform 0.4s var(--ease);
}

.feature-arrow svg {
  width: 15px;
  height: 15px;
}

.feature-card:hover .feature-arrow {
  background: #fff;
  transform: rotate(45deg);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.21em;
  transition: color 0.25s var(--ease);
}

.scroll-cue:hover {
  color: var(--ink);
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--line-strong), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 1px;
  height: 12px;
  background: var(--ink-soft);
  animation: scrollLine 2.4s var(--ease) infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(48px); opacity: 0; }
}

/* Main hero entrance */
.js .hero-copy > .eyebrow {
  animation: riseIn 0.9s 0.06s var(--ease-out) both;
}

.js .hero-title .line:first-child {
  animation: riseIn 1s 0.12s var(--ease-out) both;
}

.js .hero-title .line.accent {
  animation: riseIn 1s 0.2s var(--ease-out) both;
}

.js .hero-lede {
  animation: riseIn 0.95s 0.3s var(--ease-out) both;
}

.js .hero-actions {
  animation: riseIn 0.95s 0.38s var(--ease-out) both;
}

.js .hero-availability {
  animation: riseIn 0.95s 0.43s var(--ease-out) both;
}

.js .hero-services {
  animation: riseIn 0.95s 0.48s var(--ease-out) both;
}

.js .hero-visual {
  animation: visualIn 1.2s 0.24s var(--ease-out) both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes visualIn {
  from { opacity: 0; transform: translateY(34px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Works ---------- */

.works-section {
  position: relative;
  padding: clamp(96px, 11vw, 156px) 0 clamp(96px, 12vw, 158px);
  background: var(--surface);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.section-title {
  margin: 0;
  font-size: clamp(44px, 5.4vw, 72px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.section-note {
  max-width: 304px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.works-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 450;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.filter:hover {
  background: var(--bg);
  color: var(--ink);
}

.filter[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.filter-count {
  margin-left: 5px;
  opacity: 0.5;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.works-count {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 0;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.works-count span:first-child {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: clamp(56px, 7vw, 88px);
  padding-top: 10px;
}

.work-card {
  position: relative;
  min-width: 0;
  animation: cardIn 0.8s var(--ease-out) both;
  animation-delay: calc(var(--delay, 0) * 55ms);
}

.work-card:nth-child(even) {
  margin-top: clamp(40px, 5.5vw, 76px);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.work-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  border-radius: var(--r-lg);
}

.poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #ececef;
  isolation: isolate;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.7s var(--ease);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.work-open:hover .poster {
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.32);
}

.work-open:hover .poster img {
  transform: scale(1.035);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.58));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.work-open:hover .poster-shade,
.work-open:focus-visible .poster-shade {
  opacity: 1;
}

.poster-cta {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}

.poster-cta svg {
  width: 12px;
  height: 12px;
}

.work-open:hover .poster-cta,
.work-open:focus-visible .poster-cta {
  opacity: 1;
  transform: none;
}

.work-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 5px 0;
}

.work-meta h3 {
  margin: 0 0 5px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.work-title-btn {
  all: unset;
  cursor: pointer;
  border-radius: 3px;
}

.work-title-btn:hover {
  color: var(--muted);
}

.work-title-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.work-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.035em;
}

.work-index {
  padding-top: 5px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.work-tools {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(29, 29, 31, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.work-card:hover .work-tools,
.work-card:focus-within .work-tools,
body.editing .work-tools {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.work-tools button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.work-tools button:hover {
  background: rgba(29, 29, 31, 0.07);
  color: var(--ink);
}

.work-tools button:disabled {
  opacity: 0.25;
  pointer-events: none;
}

.work-tools button[data-action="delete"]:hover {
  background: rgba(215, 0, 21, 0.09);
  color: var(--danger);
}

.work-tools svg {
  width: 14px;
  height: 14px;
}

.add-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 400px;
  padding: 30px;
  border: 1.5px dashed rgba(29, 29, 31, 0.17);
  border-radius: var(--r-lg);
  background: rgba(245, 245, 247, 0.55);
  text-align: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.add-card:hover {
  border-color: var(--ink);
  background: #fff;
  transform: translateY(-3px);
}

.add-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.24);
}

.add-icon svg {
  width: 20px;
  height: 20px;
}

.add-card strong {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.add-card span {
  max-width: 220px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.works-empty {
  padding: 90px 24px;
  text-align: center;
}

.empty-mark {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 34px;
}

.works-empty h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.03em;
}

.works-empty p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13.5px;
}

.works-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(70px, 9vw, 110px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.works-foot p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- About ---------- */

.about-section {
  padding: clamp(104px, 13vw, 172px) 0;
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}

.about-visual {
  position: sticky;
  top: calc(var(--nav-h) + 38px);
}

.identity-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 448px;
  padding: 24px;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  background: #131314;
  color: #f5f5f7;
  box-shadow: 0 36px 70px -44px rgba(0, 0, 0, 0.55);
}

.identity-glow {
  position: absolute;
  z-index: -2;
  top: -8%;
  right: -22%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 38%, rgba(255, 126, 79, 0.95), transparent 52%),
    radial-gradient(circle at 62% 62%, rgba(255, 64, 111, 0.65), transparent 55%),
    radial-gradient(circle at 35% 72%, rgba(89, 102, 255, 0.55), transparent 58%);
  filter: blur(34px);
  opacity: 0.88;
}

.identity-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.04), transparent 38%, rgba(0, 0, 0, 0.26));
}

.identity-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.identity-head,
.identity-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.identity-head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.identity-foot {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.identity-center {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding: 20px 0;
}

.identity-mark {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.identity-name {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  letter-spacing: 0.11em;
}

.about-visual-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 2px 0;
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.045em;
}

.about-copy-wrap {
  padding-top: 2px;
}

.about-title {
  margin: 0 0 30px;
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.045em;
  white-space: pre-line;
  text-wrap: balance;
}

.about-copy {
  max-width: 620px;
}

.about-copy p {
  margin: 0 0 1.25em;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.9;
  letter-spacing: 0;
}

.about-copy p:first-child {
  color: var(--ink-soft);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 44px 0 0;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-facts dt {
  margin-bottom: 7px;
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.about-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
}

.services-block {
  margin-top: 38px;
}

.services-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.mini-label {
  margin: 0;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.services-hint {
  margin: 0;
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.services-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.services-list .service-num {
  color: var(--muted-2);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.services-list .service-en {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: right;
}

/* ---------- Contact ---------- */

.contact-section {
  padding: 0 0 clamp(80px, 9vw, 112px);
  background: var(--bg);
}

.contact-card {
  position: relative;
  padding: clamp(38px, 6vw, 78px);
  border-radius: 40px;
  overflow: hidden;
  isolation: isolate;
  background: #131314;
  color: #f5f5f7;
}

.contact-glow {
  position: absolute;
  z-index: -1;
  top: -38%;
  right: -12%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(255, 112, 67, 0.7), transparent 48%),
    radial-gradient(circle at 64% 58%, rgba(154, 91, 255, 0.46), transparent 56%),
    radial-gradient(circle at 34% 68%, rgba(59, 93, 255, 0.32), transparent 58%);
  filter: blur(72px);
  opacity: 0.72;
}

.contact-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse at 70% 25%, #000, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 25%, #000, transparent 68%);
}

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

.contact-top .section-label {
  margin: 0;
}

.contact-index {
  margin: 0;
  color: rgba(255, 255, 255, 0.34);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.contact-title {
  max-width: 940px;
  margin: 64px 0 0;
  font-size: clamp(46px, 6.3vw, 92px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.contact-title span {
  background: linear-gradient(100deg, #ffc58f 0%, #ff7658 44%, #dc8bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.contact-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-top: 62px;
}

.contact-lede {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
  line-height: 1.8;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.contact-handles {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.handle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  transition: color 0.25s var(--ease);
}

.handle:hover {
  color: #fff;
}

.handle-label {
  opacity: 0.5;
}

.handle-value {
  color: inherit;
}

.handle svg {
  width: 11px;
  height: 11px;
  opacity: 0.45;
}

.contact-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 76px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.45);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.contact-bottom p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 0 0 36px;
  background: var(--bg);
  color: var(--muted);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 34px 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-mark {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.footer-name {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-top: 4px;
  font-size: 11.5px;
  color: var(--ink-soft);
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
}

.footer-social button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  transition: color 0.2s var(--ease);
}

.footer-social button:hover,
.footer-social a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.015em;
}

.footer-bottom p {
  margin: 0;
}

.footer-time {
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.footer-time .pulse-dot {
  width: 4px;
  height: 4px;
}

/* ---------- Edit mode ---------- */

body.editing [data-intro-edit] {
  cursor: pointer;
  border-radius: 6px;
  outline: 1px dashed rgba(29, 29, 31, 0.24);
  outline-offset: 9px;
  transition: background 0.25s var(--ease), outline-color 0.25s var(--ease);
}

body.editing [data-intro-edit]:hover {
  background: rgba(255, 255, 255, 0.56);
  outline-color: var(--accent);
}

body.editing .poster {
  outline: 1px dashed rgba(255, 85, 51, 0.5);
  outline-offset: 4px;
}

.edit-dock {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: calc(100vw - 24px);
  padding: 6px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  box-shadow:
    0 20px 55px -12px rgba(0, 0, 0, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  animation: dockIn 0.45s var(--ease-out) both;
}

@keyframes dockIn {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.edit-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px 0 12px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.edit-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s infinite;
}

.edit-divider {
  width: 1px;
  height: 17px;
  margin: 0 3px;
  background: var(--line);
}

.edit-dock button {
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 450;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.edit-dock button:hover {
  background: rgba(29, 29, 31, 0.06);
  color: var(--ink);
}

.edit-dock .edit-done {
  padding-inline: 15px;
  background: var(--ink);
  color: #fff;
}

.edit-dock .edit-done:hover {
  background: #000;
  color: #fff;
}

body.editing {
  padding-bottom: 92px;
}

/* ---------- Dialogs & forms ---------- */

dialog {
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(16, 16, 18, 0.44);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  animation: backdropIn 0.35s var(--ease) both;
}

@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sheet {
  width: min(900px, calc(100vw - 40px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 26px;
  overflow: hidden;
  background: #fbfbfd;
  box-shadow: 0 50px 130px rgba(0, 0, 0, 0.4);
}

.sheet[open] {
  animation: sheetIn 0.45s var(--ease-out) both;
}

@keyframes sheetIn {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.work-sheet {
  width: min(980px, calc(100vw - 40px));
}

.intro-sheet {
  width: min(780px, calc(100vw - 40px));
}

.data-sheet {
  width: min(760px, calc(100vw - 40px));
}

.sheet-shell {
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 920px);
}

.sheet-head {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 30px 21px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 253, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sheet-kicker {
  margin: 0 0 7px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.sheet-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: #f0f0f2;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.icon-btn:hover {
  background: #e4e4e8;
  color: var(--ink);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.sheet-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 26px 30px;
}

.sheet-foot {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 30px;
  border-top: 1px solid var(--line);
  background: rgba(251, 251, 253, 0.95);
}

.sheet-foot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -27px;
  height: 26px;
  background: linear-gradient(to top, rgba(251, 251, 253, 0.97), rgba(251, 251, 253, 0));
  pointer-events: none;
}

.sheet-hint {
  margin: 0;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
}

.sheet-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-actions .btn {
  min-height: 40px;
  padding: 9px 18px;
  font-size: 12px;
}

.work-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
  align-items: start;
}

.poster-field {
  min-width: 0;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.dropzone {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 390px;
  display: grid;
  place-items: center;
  border: 1.5px dashed #d2d2d7;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #f5f5f7;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--muted-2);
  background: #f0f0f3;
}

.dropzone.is-dragover {
  border-color: var(--accent);
  background: rgba(255, 85, 51, 0.04);
}

.drop-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 22px;
  text-align: center;
  pointer-events: none;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 3px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-soft);
  box-shadow: 0 5px 16px -8px rgba(0, 0, 0, 0.24);
}

.upload-icon svg {
  width: 19px;
  height: 19px;
}

.drop-prompt strong {
  font-size: 12.5px;
  font-weight: 550;
}

.drop-prompt > span:last-child {
  color: var(--muted-2);
  font-size: 10px;
}

.image-preview {
  position: absolute;
  inset: 0;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-actions {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}

.mini-btn {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 10.5px;
  transition: background 0.2s var(--ease);
}

.mini-btn:hover {
  background: rgba(20, 20, 22, 0.65);
}

.url-field {
  display: block;
  margin-top: 13px;
}

.url-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: 10px;
}

.url-field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d2d2d7;
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.url-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.field-note {
  margin: 8px 0 0;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
}

.field-note.is-error {
  color: var(--danger);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field > span {
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.field em {
  color: var(--accent);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d2d2d7;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input,
.field select {
  height: 42px;
}

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

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.field input::placeholder,
.field textarea::placeholder,
.url-field input::placeholder {
  color: #a6a6ab;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.field small {
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
}

.fields-col {
  min-width: 0;
}

.fields-col > .field {
  margin-top: 14px;
}

.fields-col > .field.full {
  margin-top: 14px;
}

.form-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(215, 0, 21, 0.07);
  color: var(--danger);
  font-size: 11.5px;
  line-height: 1.5;
}

/* intro form */

.intro-body fieldset {
  min-width: 0;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

.intro-body fieldset:last-of-type {
  margin-bottom: 4px;
}

.intro-body legend {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.intro-body .field + .field.full {
  margin-top: 14px;
}

/* data dialog */

.publish-note {
  padding: 15px 17px;
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: 13px;
  background: #f5f5f7;
}

.publish-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.75;
}

.publish-note code,
.data-row code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(29, 29, 31, 0.06);
  font-family: var(--mono);
  font-size: 0.92em;
}

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

.data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.data-row h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.data-row p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.data-row .btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 15px;
  font-size: 10.5px;
}

.storage-note {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.02em;
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: min(1120px, calc(100vw - 40px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.48);
}

.lightbox[open] {
  animation: sheetIn 0.5s var(--ease-out) both;
}

.lightbox-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  max-height: min(90vh, 850px);
  background: #fff;
}

.lightbox-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 30px;
  background: #ebebef;
  overflow: hidden;
}

.lightbox-media img {
  width: auto;
  max-width: 100%;
  max-height: calc(90vh - 100px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.38);
}

.lightbox-close {
  position: absolute;
  z-index: 6;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: background 0.2s var(--ease);
}

.lightbox-close:hover {
  background: #fff;
}

.lightbox-close svg {
  width: 16px;
  height: 16px;
}

.lightbox-nav {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.2);
}

.lightbox-nav button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease);
}

.lightbox-nav button:hover {
  background: rgba(29, 29, 31, 0.07);
}

.lightbox-nav svg {
  width: 16px;
  height: 16px;
}

.lightbox-nav span {
  min-width: 54px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.lightbox-info {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 52px 44px 34px;
  overflow-y: auto;
}

.lightbox-kicker {
  margin: 0;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.lightbox-info h2 {
  margin: 17px 0 7px;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.lightbox-meta {
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

.lightbox-desc {
  max-width: 390px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.9;
  letter-spacing: 0;
  white-space: pre-line;
}

.lightbox-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 34px;
}

.lightbox-foot p {
  margin: 0;
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

/* ---------- Confirm / toast ---------- */

.confirm-dialog {
  width: min(400px, calc(100vw - 40px));
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.36);
}

.confirm-dialog[open] {
  animation: sheetIn 0.35s var(--ease-out) both;
}

.confirm-body {
  padding: 27px;
}

.confirm-body .sheet-kicker {
  margin-bottom: 9px;
}

.confirm-body h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.confirm-body > p:not(.sheet-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

.confirm-actions .btn {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 11.5px;
}

.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 10px);
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-size: 11.5px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Scroll reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-inner {
    gap: 44px;
  }

  .hero-visual {
    max-width: 390px;
  }

  .about-grid {
    gap: 48px;
  }

  .identity-card {
    padding: 21px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 60px) 0 86px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 58px;
  }

  .hero-copy {
    max-width: 660px;
  }

  .hero-title {
    font-size: clamp(54px, 11.5vw, 82px);
  }

  .hero-visual {
    justify-self: center;
    max-width: 440px;
  }

  .scroll-cue {
    display: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .section-note {
    max-width: 420px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .about-visual {
    position: static;
    max-width: 430px;
  }

  .about-copy-wrap {
    max-width: 680px;
  }

  .contact-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }

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

  .contact-handles {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 40px);
  }

  .nav-links {
    gap: 18px;
    font-size: 11.5px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 46px);
    padding-bottom: 64px;
  }

  .eyebrow {
    padding: 7px 12px;
    font-size: 10px;
  }

  .eyebrow-rule,
  .eyebrow-place {
    display: none;
  }

  .hero-title {
    margin-top: 24px;
  }

  .hero-lede {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-services {
    margin-top: 38px;
    font-size: 8.5px;
  }

  .hero-services li:not(:last-child)::after {
    margin: 0 9px;
  }

  .hero-visual {
    max-width: 400px;
  }

  .feature-title {
    font-size: 23px;
  }

  .works-section {
    padding: 82px 0 88px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: clamp(40px, 11vw, 56px);
  }

  .works-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
  }

  .filters {
    width: calc(100vw - 40px);
    padding-right: 30px;
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }

  .works-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 48px;
  }

  .work-card:nth-child(even) {
    margin-top: 0;
  }

  .work-meta {
    padding-top: 14px;
  }

  .add-card {
    min-height: 280px;
  }

  .works-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 62px;
  }

  .about-section {
    padding: 82px 0;
  }

  .identity-card {
    max-width: 420px;
  }

  .about-title {
    font-size: clamp(36px, 9vw, 46px);
  }

  .about-facts {
    gap: 14px;
  }

  .services-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-section {
    padding-bottom: 64px;
  }

  .contact-card {
    padding: 34px 26px;
    border-radius: 28px;
  }

  .contact-title {
    margin-top: 48px;
    font-size: clamp(38px, 10vw, 54px);
  }

  .contact-row {
    margin-top: 40px;
  }

  .contact-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 48px;
  }

  .footer-main {
    flex-wrap: wrap;
    gap: 24px;
  }

  .footer-nav {
    order: 3;
    width: 100%;
    padding-top: 0;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .edit-dock {
    bottom: max(12px, env(safe-area-inset-bottom));
    gap: 0;
    padding: 5px;
  }

  .edit-status,
  .edit-divider {
    display: none;
  }

  .edit-dock button {
    padding: 9px 11px;
    font-size: 11px;
  }

  .edit-dock .edit-done {
    padding-inline: 14px;
  }

  .sheet,
  .work-sheet,
  .intro-sheet,
  .data-sheet {
    width: calc(100vw - 16px);
    border-radius: 20px;
  }

  .sheet-shell {
    max-height: 92dvh;
  }

  .sheet-head {
    padding: 19px 20px 16px;
  }

  .sheet-head h2 {
    font-size: 21px;
  }

  .sheet-body {
    padding: 20px;
  }

  .sheet-foot {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 14px 20px;
  }

  .sheet-hint {
    display: none;
  }

  .sheet-actions {
    width: 100%;
  }

  .sheet-actions .btn {
    flex: 1;
  }

  .work-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .dropzone {
    aspect-ratio: auto;
    height: 250px;
    max-height: 250px;
  }

  .field input,
  .field select,
  .field textarea,
  .url-field input {
    font-size: 16px;
  }

  .data-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .data-row .btn {
    width: 100%;
  }

  .lightbox {
    width: calc(100vw - 16px);
    border-radius: 20px;
  }

  .lightbox-shell {
    grid-template-columns: minmax(0, 1fr);
    max-height: 92dvh;
    overflow-y: auto;
  }

  .lightbox-media {
    min-height: 320px;
    max-height: 52vh;
    padding: 18px 18px 54px;
  }

  .lightbox-media img {
    max-height: calc(52vh - 72px);
  }

  .lightbox-info {
    padding: 26px 22px 24px;
    overflow: visible;
  }

  .lightbox-info h2 {
    font-size: 32px;
  }

  .lightbox-foot {
    margin-top: 10px;
    padding-top: 24px;
  }

  .toast {
    bottom: 80px;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 32px);
  }

  .nav-inner {
    gap: 12px;
  }

  .brand {
    font-size: 14.5px;
  }

  .nav-links {
    gap: 14px;
    font-size: 11px;
  }

  .nav-edit {
    height: 30px;
    padding: 0 10px;
    font-size: 10.5px;
  }

  .nav-edit svg {
    width: 12px;
    height: 12px;
  }

  .hero-title {
    font-size: clamp(48px, 12.6vw, 64px);
    letter-spacing: -0.06em;
  }

  .hero-lede {
    font-size: 14.5px;
  }

  .btn {
    min-height: 44px;
    padding: 11px 20px;
    font-size: 13px;
  }

  .hero-services {
    display: none;
  }

  .feature-card {
    border-radius: 23px;
  }

  .feature-caption {
    padding-top: 13px;
  }

  .feature-arrow {
    width: 36px;
    height: 36px;
  }

  .work-meta h3 {
    font-size: 19px;
  }

  .about-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }

  .about-facts > div:last-child {
    grid-column: 1 / -1;
  }

  .identity-card {
    padding: 18px;
    border-radius: 24px;
  }

  .identity-head,
  .identity-foot {
    font-size: 7.5px;
    letter-spacing: 0.09em;
  }

  .identity-mark {
    font-size: clamp(34px, 10vw, 46px);
  }

  .contact-card {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .contact-title {
    font-size: clamp(34px, 10.5vw, 46px);
    letter-spacing: -0.05em;
  }

  .btn-light {
    width: 100%;
    min-height: 48px;
    padding-inline: 18px;
    font-size: 12px;
  }

  .contact-handles {
    gap: 14px;
  }

  .footer-social {
    flex-wrap: wrap;
    gap: 14px;
  }

  .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .field.full {
    grid-column: auto;
  }

  .filters {
    width: calc(100vw - 32px);
    padding-right: 30px;
  }

  .filter {
    padding: 7px 12px;
    font-size: 11.5px;
  }

  .work-tools {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 380px) {
  .nav-links a:nth-child(2) {
    display: none;
  }

  .nav-edit-text {
    display: none;
  }

  .nav-edit {
    width: 30px;
    padding: 0;
    justify-content: center;
  }

  .hero-title {
    font-size: 47px;
  }

  .edit-dock button {
    padding-inline: 9px;
    font-size: 10.5px;
  }
}

/* ---------- Reduced motion ---------- */

@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;
  }
}

/* =========================================
   CINEMA DARK — film editor edition
   ========================================= */

:root {
  --bg: #08080a;
  --surface: #0b0b0e;
  --ink: #f5f5f7;
  --ink-soft: #d2d2d7;
  --muted: #9a9aa2;
  --muted-2: #73737c;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #ff8a5c;
  --accent-soft: #ffd2a6;
  --violet: #8d7bff;
  --blue: #0a84ff;
  --danger: #ff6961;
  --panel: #17171a;
  --panel-2: #202024;
  --field: #222226;
}

html {
  background: #08080a;
  color-scheme: dark;
  scrollbar-color: rgba(255, 255, 255, 0.2) #08080a;
}

body {
  background: var(--bg);
  color: var(--ink);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  background-image: url("assets/grain.svg");
  background-size: 220px 220px;
  opacity: 0.055;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

::selection {
  background: #ffae7a;
  color: #120906;
}

:focus-visible {
  outline-color: #ff9b73;
}

.skip-link {
  background: #f5f5f7;
  color: #111;
}

/* Nav */

.site-header {
  background: rgba(8, 8, 10, 0.62);
}

.site-header.is-scrolled {
  background: rgba(8, 8, 10, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.brand {
  color: var(--ink);
}

.brand-dot {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 138, 92, 0.8);
}

.nav-links {
  color: rgba(245, 245, 247, 0.6);
}

.nav-links a:hover {
  color: #fff;
}

.nav-edit {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.13);
  color: #d2d2d7;
}

.nav-edit:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.nav-edit[aria-pressed="true"] {
  background: #f5f5f7;
  border-color: #f5f5f7;
  color: #111;
}

/* Hero */

.hero-bg {
  background:
    radial-gradient(50% 55% at 78% 26%, rgba(255, 122, 77, 0.15), transparent 70%),
    radial-gradient(42% 48% at 12% 8%, rgba(91, 88, 255, 0.08), transparent 72%);
}

.hero-glow-a {
  background: rgba(255, 122, 77, 0.21);
}

.hero-glow-b {
  background: rgba(103, 92, 255, 0.14);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  opacity: 0.72;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
  color: #c9c9ce;
}

.eyebrow-mark {
  background: var(--accent-soft);
  box-shadow: 0 0 16px rgba(255, 138, 92, 0.7);
}

.eyebrow-rule {
  background: rgba(255, 255, 255, 0.16);
}

.eyebrow-place {
  color: rgba(255, 255, 255, 0.38);
}

.hero-title {
  color: #f5f5f7;
}

.hero-title .accent {
  background: linear-gradient(102deg, #ffd08a 0%, #ff8a5c 44%, #ff4d78 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lede {
  color: var(--muted);
}

.btn-dark {
  background: #f5f5f7;
  color: #111;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn-dark:hover {
  background: #fff;
  color: #111;
  box-shadow: 0 16px 38px -16px rgba(255, 255, 255, 0.24);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f5f5f7;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.11);
}

.hero-availability {
  color: var(--muted);
}

.hero-services {
  color: rgba(255, 255, 255, 0.4);
}

.hero-services li:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.2);
}

.visual-halo {
  background:
    radial-gradient(circle at 58% 28%, rgba(255, 138, 92, 0.28), transparent 52%),
    radial-gradient(circle at 24% 86%, rgba(94, 102, 255, 0.17), transparent 54%);
  opacity: 0.7;
}

.feature-media {
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow:
    0 56px 110px -42px rgba(0, 0, 0, 0.9),
    0 0 70px rgba(255, 122, 77, 0.06);
}

.feature-card:hover .feature-media {
  box-shadow:
    0 66px 130px -44px #000,
    0 0 90px rgba(255, 122, 77, 0.1);
}

.feature-kicker {
  color: rgba(255, 255, 255, 0.44);
}

.feature-title {
  color: #f5f5f7;
}

.feature-meta {
  color: var(--muted);
}

.feature-arrow {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  color: #f5f5f7;
}

.feature-card:hover .feature-arrow {
  background: rgba(255, 255, 255, 0.12);
}

.hero-slate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 4px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-slate span:last-child {
  color: rgba(255, 255, 255, 0.26);
}

.scroll-cue {
  color: rgba(255, 255, 255, 0.34);
}

.scroll-cue:hover {
  color: #fff;
}

.scroll-cue i {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.24), transparent);
}

.scroll-cue i::after {
  background: var(--accent);
}

/* Work archive */

.works-section {
  background: #0b0b0e;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.section-label {
  color: var(--muted-2);
}

.section-label > span {
  background: var(--accent);
}

.section-note {
  color: var(--muted);
}

.works-toolbar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.filter {
  color: var(--muted);
}

.filter:hover {
  background: rgba(255, 255, 255, 0.065);
  color: #fff;
}

.filter[aria-pressed="true"] {
  background: #f5f5f7;
  color: #111;
}

.filter-count {
  opacity: 0.45;
}

.works-count {
  color: var(--muted-2);
}

.works-count span:first-child {
  color: var(--ink);
}

.works-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(16px, 2.2vw, 28px);
  row-gap: clamp(38px, 4.6vw, 60px);
  padding-top: 4px;
}

.work-card:nth-child(even) {
  margin-top: 0;
}

.poster {
  border-radius: 18px;
  background: #141418;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 20px 45px -30px rgba(0, 0, 0, 0.9);
  transition: box-shadow 0.7s var(--ease), transform 0.7s var(--ease);
}

.work-open:hover .poster {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 30px 60px -30px rgba(0, 0, 0, 0.95);
}

.work-open:hover .poster img {
  transform: scale(1.035);
}

.work-meta {
  padding: 14px 3px 0;
}

.work-meta h3 {
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.work-meta p {
  color: var(--muted-2);
  font-size: 10.5px;
}

.work-index {
  color: rgba(255, 255, 255, 0.33);
  font-size: 8px;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.work-tools {
  background: rgba(20, 20, 24, 0.86);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.work-tools button {
  color: #d2d2d7;
}

.work-tools button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.work-tools button[data-action="delete"]:hover {
  background: rgba(255, 105, 97, 0.14);
  color: #ff9a94;
}

.poster-cta {
  background: rgba(10, 10, 12, 0.48);
  border-color: rgba(255, 255, 255, 0.22);
}

.add-card {
  min-height: 300px;
  border-color: rgba(255, 255, 255, 0.17);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
}

.add-card:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.05);
}

.add-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.add-card span {
  color: var(--muted);
}

.works-empty p {
  color: var(--muted);
}

.works-foot {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.works-foot p {
  color: var(--muted);
}

/* About */

.about-section {
  background: var(--bg);
}

.identity-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(145deg, #151518, #0b0b0e);
  box-shadow:
    0 42px 90px -46px #000,
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.identity-glow {
  opacity: 0.76;
}

.identity-head,
.identity-foot {
  color: rgba(255, 255, 255, 0.46);
}

.about-copy p {
  color: var(--muted);
}

.about-copy p:first-child {
  color: #c7c7cc;
}

.about-facts {
  border-color: rgba(255, 255, 255, 0.11);
}

.about-facts dt {
  color: var(--muted-2);
}

.about-facts dd {
  color: var(--ink);
}

.services-list li {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.services-list .service-num,
.services-list .service-en {
  color: var(--muted-2);
}

/* Contact */

.contact-section {
  background: var(--bg);
}

.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(145deg, #121216 0%, #0b0b0e 68%);
  box-shadow: 0 55px 120px -65px #000;
}

.contact-glow {
  opacity: 0.6;
  filter: blur(82px);
}

.contact-title span {
  background: linear-gradient(100deg, #ffd29b 0%, #ff825c 44%, #d695ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.contact-lede {
  color: rgba(255, 255, 255, 0.52);
}

.contact-bottom {
  border-top-color: rgba(255, 255, 255, 0.13);
}

/* Footer */

.site-footer {
  background: var(--bg);
  color: var(--muted);
}

.footer-main {
  border-color: rgba(255, 255, 255, 0.1);
}

.footer-mark {
  color: var(--ink);
}

.footer-name,
.footer-bottom {
  color: var(--muted-2);
}

.footer-nav {
  color: rgba(255, 255, 255, 0.62);
}

.footer-nav a:hover,
.footer-social button:hover,
.footer-social a:hover {
  color: #fff;
}

.footer-social {
  color: var(--muted);
}

/* Edit mode */

body.editing [data-intro-edit] {
  outline-color: rgba(255, 255, 255, 0.24);
}

body.editing [data-intro-edit]:hover {
  background: rgba(255, 255, 255, 0.05);
  outline-color: var(--accent);
}

.edit-dock {
  background: rgba(20, 20, 24, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.65),
    0 2px 8px rgba(0, 0, 0, 0.4);
}

.edit-status {
  color: #c7c7cc;
}

.edit-divider {
  background: rgba(255, 255, 255, 0.12);
}

.edit-dock button {
  color: #c7c7cc;
}

.edit-dock button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.edit-dock .edit-done {
  background: #f5f5f7;
  color: #111;
}

.edit-dock .edit-done:hover {
  background: #fff;
  color: #111;
}

/* Buttons */

.btn-quiet {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.btn-quiet:hover {
  background: rgba(255, 255, 255, 0.13);
}

.btn-danger {
  background: rgba(255, 105, 97, 0.13);
  color: #ff9a94;
}

.btn-danger:hover {
  background: rgba(255, 105, 97, 0.2);
}

.btn-light {
  background: #f5f5f7;
  color: #111;
}

/* Dialogs */

dialog {
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.sheet {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--panel);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.7);
}

.sheet-head {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(23, 23, 26, 0.94);
}

.sheet-kicker {
  color: var(--muted-2);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #d2d2d7;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.sheet-foot {
  border-top-color: rgba(255, 255, 255, 0.1);
  background: rgba(23, 23, 26, 0.95);
}

.sheet-foot::before {
  background: linear-gradient(to top, rgba(23, 23, 26, 0.97), rgba(23, 23, 26, 0));
}

.sheet-hint,
.field-note,
.url-field span,
.field small {
  color: var(--muted-2);
}

.field-label,
.field > span {
  color: #c7c7cc;
}

.field input,
.field select,
.field textarea,
.url-field input {
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--field);
  color: var(--ink);
  color-scheme: dark;
}

.field input::placeholder,
.field textarea::placeholder,
.url-field input::placeholder {
  color: #6f6f78;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.url-field input:focus {
  border-color: #ff9b73;
  box-shadow: 0 0 0 3px rgba(255, 138, 92, 0.13);
}

.field select {
  background-color: var(--field);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a1a1a8' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}

.field option {
  background: #222226;
  color: #f5f5f7;
}

.dropzone {
  border-color: rgba(255, 255, 255, 0.16);
  background: #1c1c20;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: rgba(255, 255, 255, 0.32);
  background: #222228;
}

.dropzone.is-dragover {
  border-color: var(--accent);
  background: rgba(255, 138, 92, 0.06);
}

.upload-icon {
  background: rgba(255, 255, 255, 0.07);
  color: #d2d2d7;
  box-shadow: none;
}

.drop-prompt strong {
  color: var(--ink);
}

.drop-prompt > span:last-child {
  color: var(--muted-2);
}

.form-error {
  background: rgba(255, 105, 97, 0.12);
  color: #ff9a94;
}

.intro-body legend {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.publish-note {
  border-color: rgba(255, 255, 255, 0.08);
  background: #202024;
}

.publish-note p {
  color: #c7c7cc;
}

.publish-note code,
.data-row code {
  background: rgba(255, 255, 255, 0.09);
}

.data-list {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.data-row {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.data-row p {
  color: var(--muted);
}

.storage-note {
  color: var(--muted-2);
}

/* Lightbox */

.lightbox {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #121215;
  box-shadow: 0 50px 150px rgba(0, 0, 0, 0.75);
}

.lightbox-shell {
  background: #121215;
}

.lightbox-media {
  background: #08080a;
}

.lightbox-media img {
  box-shadow: 0 30px 80px -28px rgba(0, 0, 0, 0.8);
}

.lightbox-info {
  background: #121215;
}

.lightbox-kicker,
.lightbox-meta,
.lightbox-foot p {
  color: var(--muted-2);
}

.lightbox-meta {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.lightbox-desc {
  color: #c7c7cc;
}

.lightbox-close {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 21, 0.72);
  color: var(--ink);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-nav {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 21, 0.8);
  box-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.7);
}

.lightbox-nav button {
  color: #d2d2d7;
}

.lightbox-nav button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-nav span {
  color: var(--muted);
}

/* Confirm + toast */

.confirm-dialog {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--panel);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.7);
}

.confirm-body > p:not(.sheet-kicker) {
  color: var(--muted);
}

.toast {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(245, 245, 247, 0.94);
  color: #111;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

/* Dense poster wall on smaller screens */

@media (max-width: 960px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 42px;
  }

  .add-card {
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 30px;
  }

  body.editing .works-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 34px;
  }

  .poster {
    border-radius: 14px;
  }

  .work-meta {
    padding-top: 10px;
  }

  .work-meta h3 {
    font-size: 15px;
  }

  .work-meta p {
    font-size: 9px;
    letter-spacing: 0.02em;
  }

  .work-index {
    display: none;
  }

  body.editing .work-index {
    display: block;
  }

  .work-tools {
    top: 8px;
    right: 8px;
    padding: 3px;
  }

  .work-tools button {
    width: 28px;
    height: 28px;
  }

  .poster-cta {
    left: 10px;
    bottom: 10px;
    padding: 6px 9px;
    font-size: 9px;
  }

  .add-card {
    min-height: 220px;
  }

  .hero-slate {
    font-size: 7px;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 520px) {
  .works-grid {
    column-gap: 10px;
    row-gap: 26px;
  }

  .work-meta h3 {
    font-size: 14px;
  }

  .work-meta p {
    font-size: 8.5px;
  }

  .hero-slate span:nth-child(2) {
    display: none;
  }
}
