/* ==========================================================================
   李成银的个人网站 — editorial portfolio
   ========================================================================== */

:root {
  --paper: #f3f5f7;
  --paper-soft: #e9edf0;
  --paper-deep: #dae1e6;
  --cream: #ffffff;
  --ink: #161a1e;
  --ink-soft: #39424b;
  --muted: #68737d;
  --line: rgba(22, 26, 30, 0.14);
  --line-strong: rgba(22, 26, 30, 0.28);
  --accent: #2f5d8a;
  --accent-dark: #224768;
  --accent-soft: rgba(47, 93, 138, 0.08);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: clamp(20px, 4.6vw, 64px);
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(255, 255, 255, 0.95), transparent 62%),
    radial-gradient(800px 600px at -10% 38%, rgba(218, 225, 230, 0.45), transparent 60%),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  color: var(--cream);
  background: var(--ink);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- shared type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}
.eyebrow-light { color: #93b6d6; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.15rem, 3.7vw, 3.45rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.section {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(56px, 7.4vw, 100px) var(--gutter);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 48px);
}
.section-intro {
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  text-align: right;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { color: var(--cream); background: var(--ink); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.35); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.text-link span { color: var(--accent); transition: transform 0.25s var(--ease); }
.work-card:hover .text-link span { transform: translateX(4px); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 245, 247, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(243, 245, 247, 0.95);
  box-shadow: 0 18px 40px -36px rgba(22, 26, 30, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
  max-width: 1440px;
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 3px 3px 3px 14px;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.brand:hover .brand-mark { background: var(--accent); transform: rotate(-4deg); }
.brand-logo { display: block; width: 38px; height: 38px; flex: 0 0 auto; overflow: visible; transition: transform 0.35s var(--ease); }
.brand-logo__tile { fill: #161a1e; transform-box: fill-box; transform-origin: center; animation: brandTileIn 0.65s var(--ease) both; }
.brand-logo__glyph {
  fill: #f3f5f7;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-anchor: middle;
  dominant-baseline: central;
  transform-box: fill-box;
  transform-origin: center;
  animation: brandGlyphIn 0.8s 0.12s var(--ease) both;
}
.brand-logo__accent {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: brandAccentIn 1s 0.55s var(--ease) forwards, brandAccentPulse 6s 2s ease-in-out infinite;
}
.brand:hover .brand-logo { transform: rotate(-3deg) scale(1.04); }
.brand:hover .brand-logo__accent { stroke: var(--accent-dark); }
@keyframes brandTileIn {
  from { opacity: 0; transform: scale(0.82) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes brandGlyphIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes brandAccentIn {
  to { stroke-dashoffset: 0; }
}
@keyframes brandAccentPulse {
  0%, 78%, 100% { opacity: 0.55; }
  88% { opacity: 1; }
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text strong { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.2; }
.brand-text span { color: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); margin-left: auto; }
.nav-link {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--accent); }

.nav-item { position: relative; display: flex; align-items: center; }
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.nav-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.nav-chevron { margin-top: -1px; opacity: 0.55; transition: transform 0.22s var(--ease), opacity 0.22s var(--ease); }
.nav-item:hover .nav-chevron,
.nav-item:focus-within .nav-chevron,
.nav-item.is-open .nav-chevron { opacity: 1; transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 65;
  min-width: 320px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: 0 24px 60px -32px rgba(22, 26, 30, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav-dropdown::before { content: ""; position: absolute; top: -12px; right: 0; left: 0; height: 12px; }
@media (min-width: 961px) {
  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within .nav-dropdown,
  .nav-item.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
  .site-nav > .nav-item:last-of-type .nav-dropdown { right: 0; left: auto; transform: translateY(6px); }
  .site-nav > .nav-item:last-of-type:hover .nav-dropdown,
  .site-nav > .nav-item:last-of-type:focus-within .nav-dropdown,
  .site-nav > .nav-item:last-of-type.is-open .nav-dropdown { transform: translateY(0); }
}
.nav-dropdown-link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 14px;
  align-items: center;
  column-gap: 10px;
  padding: 9px 11px;
  transition: background 0.18s var(--ease);
}
.nav-dropdown-link:hover { background: var(--paper-soft); }
.nav-dropdown-logo {
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  overflow: hidden;
  place-items: center;
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1;
}
.nav-dropdown-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nav-dropdown-title { grid-column: 2; grid-row: 1; color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.nav-dropdown-sub {
  grid-column: 2;
  grid-row: 2;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-dropdown-arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.nav-dropdown-link:hover .nav-dropdown-arrow { color: var(--accent); opacity: 1; transform: none; }
.nav-dropdown-empty { display: block; padding: 10px 12px; color: var(--muted); font-size: 12px; }

.header-tools { display: flex; align-items: center; gap: 10px; margin-left: 4px; }

.lang-switch { position: relative; }
.lang-switch summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  list-style: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { color: var(--accent); border-color: var(--accent); }
.lang-switch[open] summary { color: var(--accent); border-color: var(--accent); }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  min-width: 158px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--cream);
  box-shadow: 0 24px 54px -30px rgba(22, 26, 30, 0.55);
}
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 11px;
  border-radius: 2px;
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}
.lang-menu a:hover { color: var(--ink); background: var(--paper-soft); }
.lang-menu a.is-active { color: var(--accent); }

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 15px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}
.site-header.is-open .menu-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.site-header.is-open .menu-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #0b1420;
  background-image: url('/static/img/hero-collage.webp?v=20261203');
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-shell[data-lang="en"] { background-image: url('/static/img/hero-collage-en.webp?v=20261203'); }
.hero-shell::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(8, 16, 26, 0.96) 0%, rgba(8, 16, 26, 0.88) 36%, rgba(8, 16, 26, 0.52) 68%, rgba(8, 16, 26, 0.22) 100%),
    linear-gradient(0deg, rgba(8, 16, 26, 0.58) 0%, rgba(8, 16, 26, 0) 35%);
  content: "";
  pointer-events: none;
}
.hero-shell .hero { position: relative; z-index: 1; }
.hero-shell .eyebrow { color: #b7d0e3; }
.hero-shell .eyebrow-dot { background: #ef8a62; box-shadow: 0 0 0 4px rgba(239, 138, 98, 0.14); }
.hero-shell .hero-title { color: #f6fafd; text-shadow: 0 2px 34px rgba(3, 9, 16, 0.25); }
.hero-shell .hero-line.is-accent { color: #f2a17d; }
.hero-shell .hero-intro { color: #c3d2de; text-shadow: 0 1px 18px rgba(3, 9, 16, 0.55); }
.hero-shell .btn-primary { color: #101a24; background: #f6fafd; border-color: #f6fafd; }
.hero-shell .btn-primary:hover { color: #101a24; background: #dce9f2; border-color: #dce9f2; }
.hero-shell .btn-ghost { color: #f6fafd; border-color: rgba(246, 250, 253, 0.38); }
.hero-shell .btn-ghost:hover { color: #101a24; background: #f6fafd; border-color: #f6fafd; }
.hero-shell .hero-stats { border-top-color: rgba(246, 250, 253, 0.24); }
.hero-shell .stat strong { color: #f6fafd; }
.hero-shell .stat span, .hero-shell .hero-note { color: #9db1c1; text-shadow: 0 1px 14px rgba(3, 9, 16, 0.6); }
.hero-shell .hero-card { box-shadow: 0 46px 90px -38px rgba(0, 0, 0, 0.82); border-color: rgba(255, 255, 255, 0.7); }
.hero-shell .hero-card-label { color: #111a22; background: #ef9a78; }
.hero-shell .hero-card:hover { box-shadow: 0 56px 100px -38px rgba(0, 0, 0, 0.86); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(38px, 6vw, 92px);
  align-items: center;
  width: 100%;
  max-width: 1400px;
  min-height: 610px;
  margin: 0 auto;
  padding: clamp(58px, 9vw, 118px) var(--gutter) clamp(58px, 8vw, 96px);
}

.hero-title {
  max-width: 20ch;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 5.1vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
}
.hero-line { display: block; }
.hero-line.is-accent { color: var(--accent); }

.hero-intro {
  max-width: 34em;
  margin: 28px 0 32px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.95;
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 28px;
  margin-top: clamp(38px, 5vw, 58px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; align-items: baseline; gap: 7px; }
.stat strong { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat span { color: var(--muted); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-note { max-width: 190px; margin-left: auto; color: var(--muted); font-size: 11.5px; line-height: 1.6; text-align: right; }

.hero-visual { position: relative; }

.hero-card {
  position: relative;
  display: block;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: 0 40px 80px -54px rgba(22, 26, 30, 0.62);
  transform: rotate(-1.1deg);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.hero-card:hover { transform: rotate(0deg) translateY(-5px); box-shadow: 0 54px 92px -52px rgba(22, 26, 30, 0.6); }
.hero-card-label {
  position: absolute;
  top: -13px;
  left: 22px;
  z-index: 2;
  padding: 4px 9px;
  color: var(--cream);
  background: var(--accent);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-card figure { overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-deep); }
.hero-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.hero-card:hover figure img { transform: scale(1.025); }
.hero-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 3px 3px; }
.hero-card-cat { display: block; margin-bottom: 3px; color: var(--cat, var(--muted)); font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-card-foot strong { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.round-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.hero-card:hover .round-arrow { color: var(--cream); background: var(--accent); border-color: var(--accent); }

.hero-orbit {
  position: absolute;
  right: -26px;
  bottom: -38px;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgba(47, 93, 138, 0.4);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-ring { position: absolute; inset: 10px; border: 1px dashed rgba(47, 93, 138, 0.32); border-radius: 50%; }
.orbit-dot { position: absolute; top: 14px; right: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.orbit-caption { max-width: 64px; color: var(--accent); font-family: var(--mono); font-size: 7.5px; font-weight: 600; letter-spacing: 0.16em; line-height: 1.5; text-align: center; text-transform: uppercase; }
.hero-empty { padding: 70px 30px; border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }

/* ---------- featured ---------- */

.featured-section { border-top: 1px solid var(--line); }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
}
.work-card { display: block; grid-column: span 4; min-width: 0; }
.work-card--lead { grid-column: span 6; }
.featured-grid .work-card--small { grid-column: span 3; }
.work-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.75s var(--ease), filter 0.4s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.035); }
.work-index {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  padding: 3px 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.work-body { padding: 17px 2px 6px; }
.work-meta span:first-child { color: var(--cat); }
.work-meta span:first-child::before { display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--cat); content: ""; vertical-align: 1px; }
.work-card, .hero-card, .index-group { --cat: var(--accent); }
[data-category="web"] { --cat: #2f5d8a; }
[data-category="harmony"] { --cat: #177f78; }
[data-category="mac"] { --cat: #b9652b; }
[data-category="mobile"] { --cat: #7c5c9e; }

.work-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.work-body h3 { font-family: var(--serif); font-size: clamp(21px, 2vw, 27px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.22; }
.work-card--lead .work-body h3 { font-size: clamp(25px, 2.5vw, 34px); }
.work-body p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 52ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ---------- index ---------- */

.index-section { padding-top: clamp(40px, 5vw, 70px); }
.index-banner {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding: clamp(34px, 4vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #0d1b26 url('/static/img/index-band.webp') center right / cover no-repeat;
}
.index-banner::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 16, 26, 0.93) 0%, rgba(8, 16, 26, 0.72) 46%, rgba(8, 16, 26, 0.16) 78%, transparent 100%);
  content: "";
  pointer-events: none;
}
.index-banner .section-head { position: relative; z-index: 1; display: block; margin-bottom: 0; }
.index-banner .eyebrow { color: #9dbfdc; }
.index-banner .section-title { color: var(--cream); }
.index-banner .section-intro { max-width: 520px; margin-top: 16px; color: #b8c8d5; text-shadow: 0 1px 16px rgba(3, 9, 16, 0.6); }
.index-groups { border-bottom: 1px solid var(--line); }
.index-group {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1.7fr);
  gap: clamp(30px, 5vw, 78px);
  padding: clamp(26px, 3.4vw, 42px) 0;
  border-top: 1px solid var(--line);
}
.group-head { align-self: start; }
.group-name { display: flex; align-items: center; gap: 12px; }
.group-num { color: var(--cat, var(--accent)); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; }
.group-name h3 { font-family: var(--serif); font-size: clamp(23px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.group-count {
  display: grid;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}
.group-desc { margin-top: 10px; max-width: 30ch; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.group-link { display: inline-block; margin-top: 15px; color: var(--ink); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.group-link span { color: var(--accent); transition: transform 0.2s var(--ease); display: inline-block; }
.group-link:hover span { transform: translateX(4px); }

.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: grid;
  grid-template-columns: 32px minmax(120px, 0.9fr) minmax(0, 1.35fr) 118px 18px;
  gap: 18px;
  align-items: center;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease), padding-left 0.25s var(--ease);
}
.index-row:hover { padding-left: 16px; background: color-mix(in srgb, var(--cat, var(--accent)) 8%, transparent); }
.row-num { color: var(--muted); font-family: var(--mono); font-size: 9px; }
.row-title { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.row-summary { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.65; text-overflow: ellipsis; white-space: nowrap; }
.row-platforms { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: 0.04em; text-align: right; }
.row-arrow { color: var(--cat, var(--accent)); font-size: 13px; transition: transform 0.2s var(--ease); }
.index-row:hover .row-arrow { transform: translate(2px, -2px); }
.index-row:hover .row-num { color: var(--cat, var(--accent)); }

/* ---------- about ---------- */

.about-band {
  margin-top: clamp(20px, 3vw, 40px);
  padding: clamp(64px, 8vw, 108px) var(--gutter);
  color: var(--cream);
  background:
    radial-gradient(700px 360px at 88% 0%, rgba(47, 93, 138, 0.2), transparent 70%),
    var(--ink);
}
.about-inner { max-width: 1272px; margin: 0 auto; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 6vw, 92px);
  margin-top: 8px;
}
.about-title { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.about-copy p { max-width: 62ch; margin-bottom: 18px; color: rgba(255, 255, 255, 0.76); font-size: 15.5px; line-height: 1.95; }
.about-copy p:first-child { color: var(--cream); font-family: var(--serif); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.7; }
.about-contact { padding-left: 18px; border-left: 1px solid var(--accent); color: rgba(255, 255, 255, 0.9) !important; font-family: var(--sans) !important; font-size: 14px !important; }
.about-links { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.about-links a { color: var(--cream); font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding-bottom: 3px; }
.about-links a:hover { color: #9dbfdc; border-color: #9dbfdc; }
.about-location { margin-left: auto; color: rgba(255, 255, 255, 0.55); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- list page ---------- */

.list-hero { max-width: 1400px; margin: 0 auto; padding: clamp(44px, 6vw, 76px) var(--gutter) 0; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.03em; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { color: var(--line-strong); }
.list-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr); gap: 40px; align-items: end; margin-top: 0; }
.page-title { font-family: var(--serif); font-size: clamp(3rem, 6.2vw, 6.2rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; }
.list-description { max-width: 42ch; padding-bottom: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(30px, 4vw, 44px); padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filter span { color: var(--muted); font-family: var(--mono); font-size: 9px; }
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { color: var(--cream); background: var(--ink); border-color: var(--ink); }
.filter.is-active span { color: rgba(255, 255, 255, 0.65); }
.list-section { padding-top: clamp(36px, 4vw, 54px); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 3.4vw, 46px) clamp(20px, 2.4vw, 32px); }
.work-grid .work-card { grid-column: auto; }
.work-grid .work-body h3 { font-size: clamp(21px, 1.8vw, 25px); }

.empty-state { padding: 80px 20px; border: 1px dashed var(--line-strong); text-align: center; }
.empty-state > span { display: block; color: var(--accent); font-family: var(--serif); font-size: 44px; }
.empty-state h2 { margin-top: 8px; font-family: var(--serif); font-size: 28px; font-weight: 600; }
.empty-state p { margin: 8px 0 24px; color: var(--muted); font-size: 14px; }

/* ---------- product page ---------- */

.product-hero { max-width: 1400px; margin: 0 auto; padding: clamp(42px, 5.6vw, 72px) var(--gutter) clamp(30px, 4vw, 46px); }
.notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 26px 0 4px;
  padding: 13px 18px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
}
.notice-icon { display: grid; width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-family: var(--serif); font-size: 11px; line-height: 1; }
.notice p { color: var(--ink-soft); font-size: 12.5px; line-height: 1.75; }
.notice a { color: var(--accent); border-bottom: 1px solid rgba(47, 93, 138, 0.35); }

.product-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(26px, 4vw, 44px);
}
.product-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.pill { display: inline-flex; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-soft); font-size: 10.5px; line-height: 1.4; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.product-platform, .product-version { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: 0.09em; text-transform: uppercase; }
.product-version { padding-left: 10px; border-left: 1px solid var(--line); }
.product-title { font-family: var(--serif); font-size: clamp(2.9rem, 5.6vw, 5.8rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; }
.product-subtitle { margin-top: 18px; color: var(--ink-soft); font-family: var(--serif); font-size: clamp(18px, 1.55vw, 22px); line-height: 1.55; }
.product-summary { max-width: 48ch; margin-top: 14px; color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.product-facts { display: flex; flex-wrap: wrap; gap: 22px 38px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.product-facts dt { margin-bottom: 4px; color: var(--muted); font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.product-facts dd { font-size: 12.5px; line-height: 1.4; }

.product-cover { position: relative; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); background: var(--cream); box-shadow: 0 40px 80px -58px rgba(22, 26, 30, 0.66); transform: rotate(0.6deg); }
.product-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.product-cover figcaption { display: flex; justify-content: space-between; gap: 14px; padding: 11px 2px 1px; color: var(--muted); font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.02em; }

.product-content { max-width: 860px; margin: 0 auto; padding: clamp(44px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 46px); }
.product-content--standalone { padding-top: clamp(40px, 4.5vw, 64px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.prose { color: var(--ink-soft); }
.prose > p { margin: 0 0 22px; font-size: 16px; line-height: 1.95; }
.prose .lead { margin-bottom: 34px; color: var(--ink); font-family: var(--serif); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.7; letter-spacing: -0.015em; }
.prose .eyebrow { margin-top: 42px; margin-bottom: 8px; }
.prose h2 { margin: 16px 0 16px; color: var(--ink); font-family: var(--serif); font-size: clamp(24px, 2.5vw, 32px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
.prose h3 { margin: 26px 0 10px; color: var(--ink); font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.35; }
.prose .p-section { margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--line); }
.prose .p-section h2 { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 1.15em; }
.prose li { margin-bottom: 8px; font-size: 15px; line-height: 1.85; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(47, 93, 138, 0.35); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .quote {
  margin: 40px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.6;
  letter-spacing: -0.015em;
}
.prose .feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0 34px;
  border: 1px solid var(--line);
  background: var(--line);
}
.prose .feature { padding: 22px 20px 24px; background: var(--paper); }
.prose .feature-num { display: block; margin-bottom: 11px; color: var(--accent); font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; }
.prose .feature h3 { margin: 0 0 6px; font-size: 18px; }
.prose .feature p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.prose .feature:last-child:nth-child(odd) { grid-column: span 2; }

/* ---------- gallery & related ---------- */

.gallery-section { border-top: 1px solid var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  cursor: zoom-in;
}
.gallery-grid.is-portrait { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.gallery-grid.is-portrait .gallery-item { grid-column: auto; }
.gallery-grid.is-portrait .gallery-item:last-child:nth-child(odd) { grid-column: auto; }
.gallery-grid.is-portrait .gallery-item img { aspect-ratio: 9 / 20; object-fit: cover; }
.gallery-item--wide { grid-column: span 2; }
.gallery-item:last-child:nth-child(odd) { grid-column: span 2; }
.gallery-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.gallery-item:hover .gallery-zoom { opacity: 1; transform: none; }

.related-section { border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 34px); }
.related-card { display: block; }
.related-card figure { overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); background: var(--paper-deep); }
.related-card img { width: 100%; height: 100%; transition: transform 0.6s var(--ease); }
.related-card:hover img { transform: scale(1.035); }
.related-card > div { padding-top: 14px; }
.related-card span { color: var(--muted); font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.related-card h3 { margin: 5px 0 4px; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.related-card p { color: var(--muted); font-size: 12.5px; line-height: 1.7; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(18, 22, 26, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1200px, 88vw); }
.lightbox img { max-width: 100%; max-height: 78vh; margin: 0 auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.lightbox figcaption { margin-top: 14px; color: rgba(255, 255, 255, 0.65); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--cream);
  background: transparent;
  font-size: 19px;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { top: 50%; left: clamp(10px, 2.5vw, 32px); transform: translateY(-50%); }
.lightbox-next { top: 50%; right: clamp(10px, 2.5vw, 32px); transform: translateY(-50%); }

/* ---------- error ---------- */

.error-page {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  width: 100%;
  max-width: 1400px;
  min-height: 62vh;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 110px) var(--gutter);
}
.error-code {
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(7rem, 17vw, 15rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.8;
  -webkit-text-stroke: 1px rgba(47, 93, 138, 0.5);
}
.error-copy h1 { max-width: 18ch; margin: 4px 0 18px; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; }
.error-copy > p:not(.eyebrow) { max-width: 46ch; margin-bottom: 28px; color: var(--muted); font-size: 14.5px; line-height: 1.85; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--paper-soft); }
.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(46px, 6vw, 72px) var(--gutter) 46px;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 340px; }
.footer-mark { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 3px 3px 3px 15px; color: var(--paper); background: var(--ink); font-family: var(--serif); font-size: 23px; line-height: 1; }
.footer-brand strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.footer-brand p { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; gap: clamp(44px, 7vw, 96px); }
.footer-col { display: flex; flex-direction: column; gap: 8px; min-width: 110px; }
.footer-label { margin-bottom: 4px; color: var(--muted); font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-col a { color: var(--ink-soft); font-size: 12.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-muted { color: var(--muted); font-size: 11.5px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-legal a:hover { color: var(--accent); }
.back-top { color: var(--ink-soft); }

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

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .site-nav { gap: 18px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr); }
  .hero-title { font-size: clamp(3rem, 6vw, 5.4rem); }
  .index-row { grid-template-columns: 30px minmax(110px, 1fr) minmax(0, 1.1fr) 100px 18px; gap: 14px; }
  .row-title { font-size: 18px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .hero-shell { background-position: 68% center; }
  .index-banner { background-position: 64% center; padding: 30px 24px; }
  .index-banner::before { background: linear-gradient(180deg, rgba(8, 16, 26, 0.92) 0%, rgba(8, 16, 26, 0.72) 100%); }
  .hero-shell::before {
    background: linear-gradient(180deg, rgba(8, 16, 26, 0.95) 0%, rgba(8, 16, 26, 0.9) 62%, rgba(8, 16, 26, 0.62) 100%);
  }
  .header-inner { gap: 14px; }
  .menu-toggle { display: block; }
  .header-tools { margin-left: auto; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    margin: 0;
    padding: 14px var(--gutter) 26px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-header.is-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-link { padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 21px; }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--accent); }

  .nav-item { display: block; }
  .nav-trigger { width: 100%; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 21px; text-align: left; }
  .nav-trigger.is-active { color: var(--accent); }
  .nav-trigger::after { display: none; }
  .nav-dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 8px;
    padding: 2px 0 8px 16px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav-item.is-open .nav-dropdown { display: block; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav-dropdown-link { padding: 9px 0; grid-template-columns: 34px minmax(0, 1fr); }
  .nav-dropdown-logo { width: 34px; height: 34px; border-radius: 9px; }
  .nav-dropdown-title { font-family: var(--sans); font-size: 15px; }
  .nav-dropdown-arrow { display: none; }
  .nav-dropdown-empty { padding: 8px 0; }
  body.menu-open { overflow: hidden; }

  .hero { grid-template-columns: 1fr; min-height: 0; gap: 56px; padding-top: 56px; }
  .hero-title { max-width: 18ch; }
  .hero-intro { max-width: 40em; }
  .hero-visual { max-width: 620px; width: 100%; }

  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-intro { max-width: 52ch; padding: 0; text-align: left; }
  .work-card--lead { grid-column: span 6; }
  .featured-grid .work-card--small { grid-column: span 6; }
  .work-card { grid-column: span 6; }

  .index-group { grid-template-columns: 1fr; gap: 18px; }
  .group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .group-desc { width: 100%; max-width: none; margin-top: 2px; }
  .group-link { margin-top: 0; margin-left: auto; }
  .index-row { grid-template-columns: 28px minmax(0, 1fr) 86px 16px; }
  .row-summary { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-location { margin-left: 0; }

  .list-head { grid-template-columns: 1fr; gap: 20px; }
  .list-description { padding: 0; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .product-head { grid-template-columns: 1fr; gap: 34px; }
  .product-cover { max-width: 760px; transform: none; }
  .product-title { font-size: clamp(2.8rem, 8vw, 5rem); }

  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-card:last-child:nth-child(odd) { display: none; }

  .error-page { grid-template-columns: 1fr; gap: 22px; align-content: center; }
  .error-code { font-size: clamp(6rem, 24vw, 11rem); }
}

@media (max-width: 680px) {
  .brand-text span { display: none; }
  .brand-text strong { font-size: 16px; }
  .lang-switch summary span { display: none; }
  .lang-switch summary { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .lang-menu { right: -4px; }

  .hero { padding-top: 44px; padding-bottom: 64px; }
  .hero-title { font-size: clamp(2.3rem, 10.5vw, 3.4rem); }
  .hero-intro { font-size: 15px; }
  .hero-stats { gap: 18px 22px; }
  .hero-note { width: 100%; max-width: none; margin-left: 0; text-align: left; }
  .hero-card { transform: none; padding: 10px; }
  .hero-card-label { left: 16px; }
  .hero-orbit { display: none; }

  .section { padding-top: 56px; padding-bottom: 56px; }
  .featured-grid { gap: 30px; }
  .work-card, .work-card--lead, .featured-grid .work-card--small { grid-column: span 12; }
  .work-body h3, .work-card--lead .work-body h3 { font-size: 24px; }
  .work-grid { grid-template-columns: 1fr; gap: 34px; }
  .work-grid .work-body h3 { font-size: 24px; }

  .index-row { grid-template-columns: 24px minmax(0, 1fr) 16px; gap: 10px; padding: 13px 4px; }
  .row-platforms { display: none; }
  .row-title { font-size: 18px; }

  .about-band { padding-top: 58px; padding-bottom: 58px; }
  .about-copy p { font-size: 14.5px; }

  .list-hero { padding-top: 38px; }
  .page-title { font-size: clamp(2.9rem, 14vw, 4.4rem); }
  .filter { padding: 6px 11px; font-size: 11.5px; }
  .filter-bar { padding: 12px 0; }

  .product-hero { padding-top: 34px; }
  .product-title { font-size: clamp(2.6rem, 13vw, 4rem); }
  .product-subtitle { font-size: 18px; }
  .product-summary { font-size: 14px; }
  .product-facts { gap: 16px 26px; }
  .product-cover { padding: 8px; }
  .product-content { padding-top: 42px; }
  .prose > p { font-size: 15px; }
  .prose .feature-grid { grid-template-columns: 1fr; }
  .prose .quote { padding-left: 18px; font-size: 20px; }

  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid.is-portrait { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-item--wide { grid-column: auto; }
  .related-grid { grid-template-columns: 1fr; gap: 28px; }
  .related-card:last-child:nth-child(odd) { display: block; }

  .footer-main { flex-direction: column; gap: 32px; }
  .footer-links { gap: 38px; }
  .footer-bottom { flex-direction: column; }
  .footer-legal { justify-content: space-between; }

  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-nav { width: 36px; height: 36px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* Ambient motion for the home page. */
@keyframes heroGlowDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .7; }
  50% { transform: translate3d(-3%, 2%, 0) scale(1.12); opacity: 1; }
}
@keyframes heroFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@keyframes heroSignal {
  0% { box-shadow: 0 0 0 0 rgba(239,154,120,.5); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(239,154,120,0); }
}
.hero-shell::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(55vw, 720px);
  aspect-ratio: 1;
  top: 4%;
  right: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189,99,63,.22), rgba(82,139,164,.08) 38%, transparent 70%);
  filter: blur(12px);
  pointer-events: none;
  animation: heroGlowDrift 12s ease-in-out infinite;
}
.hero-shell .hero { z-index: 1; }
.hero-shell .hero-card { animation: heroFloat 7s ease-in-out 1.2s infinite; }
.hero-shell .hero-card:hover { animation-play-state: paused; }
.hero-shell .eyebrow-dot { animation: heroSignal 2.8s ease-out infinite; }
.hero-shell .hero-title .hero-line { animation: heroTextIn .8s var(--ease) both; }
.hero-shell .hero-title .hero-line:nth-child(2) { animation-delay: .14s; }
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(22px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-shell::after, .hero-shell .hero-card, .hero-shell .eyebrow-dot,
  .hero-shell .hero-title .hero-line { animation: none !important; }
}

/* Home hero art direction: cinematic glow, oversized typography and floating UI. */
.hero-shell {
  min-height: min(790px, calc(100svh - var(--header-h)));
  display: grid;
  align-items: center;
  background-position: center 48%;
}
.hero-shell::before {
  background:
    radial-gradient(ellipse at 78% 48%, rgba(189,99,63,.24), transparent 35%),
    linear-gradient(90deg, rgba(7,15,23,.98) 0%, rgba(7,15,23,.9) 39%, rgba(7,15,23,.48) 72%, rgba(7,15,23,.28) 100%),
    linear-gradient(0deg, rgba(7,15,23,.62), transparent 36%);
}
.hero { min-height: 650px; align-items: center; }
.hero-title { font-size: clamp(3.2rem, 5.4vw, 5.8rem); line-height: 1.12; }
.hero-shell .hero-intro { max-width: 35em; font-size: clamp(17px, 1.3vw, 20px); }
.hero-visual { perspective: 1200px; }
.hero-card {
  transform: rotate(2deg) translateY(4px);
  border: 1px solid rgba(255,255,255,.74);
  background: rgba(250,250,247,.96);
  box-shadow: 0 44px 110px -42px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.12);
}
.hero-card:hover { transform: rotate(0) translateY(-10px); }
.hero-card-label { padding: 9px 15px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.hero-card figure { border-radius: 12px; }
.hero-card-foot { padding: 20px 8px 8px; }
.hero-card-foot strong { font-size: clamp(22px, 2vw, 29px); }
.hero-stats { margin-top: 44px; }
.hero-shell .stat strong { font-size: 30px; }
.featured-section { padding-top: 100px; }
.featured-section .section-title { font-size: clamp(2.6rem, 4.6vw, 4.2rem); }
@media (max-width: 960px) {
  .hero-shell { min-height: 0; }
  .hero { min-height: 0; }
}
@media (max-width: 680px) {
  .hero-title { font-size: clamp(2rem, 8.6vw, 3.2rem); line-height: 1.15; }
  .hero-shell::before { background: linear-gradient(180deg, rgba(7,15,23,.94), rgba(7,15,23,.82) 62%, rgba(7,15,23,.58)); }
  .hero-card { transform: none; }
  .featured-section { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo__tile, .brand-logo__glyph, .brand-logo__accent { animation: none; opacity: 1; stroke-dashoffset: 0; transform: none; }
  .brand-logo { transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* Frontend polish: clearer contrast, generous rhythm, and tactile cards. */
:root {
  --paper: #f7f7f4;
  --paper-soft: #eeefeb;
  --paper-deep: #e2e5df;
  --ink: #18231f;
  --ink-soft: #43504a;
  --muted: #748078;
  --line: rgba(24, 35, 31, .12);
  --line-strong: rgba(24, 35, 31, .25);
  --accent: #bd633f;
  --accent-dark: #91462d;
  --accent-soft: rgba(189, 99, 63, .09);
}
body { background: radial-gradient(ellipse at 82% 2%, #fff 0, transparent 38%), var(--paper); }
.site-header { border-color: rgba(24,35,31,.09); }
.brand-mark { border-radius: 12px; background: var(--accent); }
.btn { border-radius: 999px; min-height: 48px; padding-inline: 24px; }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { border-radius: 999px; }
.hero-shell { position: relative; overflow: hidden; }
.hero { gap: clamp(48px, 8vw, 120px); }
.hero-title { letter-spacing: -.055em; }
.hero-line.is-accent { color: var(--accent); }
.hero-card { border-radius: 22px; overflow: hidden; box-shadow: 0 28px 70px -42px rgba(24,35,31,.5); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.hero-card:hover { transform: translateY(-6px) rotate(0); box-shadow: 0 34px 80px -38px rgba(24,35,31,.55); }
.hero-card figure { overflow: hidden; border-radius: 14px; }
.hero-card img, .work-media img { transition: transform .7s var(--ease); }
.hero-card:hover img, .work-card:hover .work-media img { transform: scale(1.035); }
.stat strong { color: var(--accent); }
.work-card { border-radius: 18px; transition: transform .35s var(--ease); }
.work-card:hover { transform: translateY(-5px); }
.work-media { overflow: hidden; border-radius: 16px; background: var(--paper-deep); }
.work-index { border-radius: 999px; }
.work-body { padding-inline: 3px; }
.index-banner { border-radius: 22px; overflow: hidden; }
.index-row { transition: background .2s ease, padding .2s ease; border-radius: 10px; padding-inline: 10px; }
.index-row:hover { background: rgba(255,255,255,.72); }
.about-band { background: #1c2924; }
.product-cover { border-radius: 18px; }
.product-cover img { border-radius: 10px; }
.gallery-item, .related-card figure { border-radius: 16px; }
.list-hero { padding-top: clamp(32px, 4vw, 56px); }
@media (max-width: 680px) {
  .gallery-grid.is-portrait { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-card { border-radius: 18px; }
  .work-media { border-radius: 13px; }
  .section-title { font-size: clamp(2rem, 9vw, 2.8rem); }
}

/* Readability pass: bring small labels and supporting copy into balance. */
body { font-size: 17px; line-height: 1.75; }
.eyebrow { font-size: 12px; letter-spacing: .14em; }
.brand-text span { font-size: 10px; }
.nav-link { font-size: 14px; }
.btn { font-size: 14px; }
.text-link { font-size: 11px; letter-spacing: .1em; }
.hero-intro { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.85; }
.hero-stats .stat strong { font-size: 25px; }
.hero-stats .stat span, .hero-note { font-size: 13px; }
.hero-card-label { font-size: 11px; }
.hero-card-cat { font-size: 11px; }
.work-meta { font-size: 12px; }
.work-body p, .group-desc { font-size: 15px; line-height: 1.8; }
.row-num, .group-num { font-size: 11px; }
.row-title { font-size: 20px; }
.row-summary, .row-platforms { font-size: 13px; }
.section-intro, .list-description { font-size: 16px; line-height: 1.85; }
.filter { font-size: 13px; }
.filter span { font-size: 11px; }
.breadcrumb { font-size: 13px; }
.pill { font-size: 12px; }
.product-platform, .product-version { font-size: 11px; }
.product-summary { font-size: 16px; line-height: 1.85; }
.product-facts dt { font-size: 10px; }
.product-facts dd { font-size: 14px; }
.product-cover figcaption { font-size: 10px; }
.prose > p { font-size: 17px; }
.prose li { font-size: 16px; }
.prose .feature p { font-size: 14px; }
.related-card span { font-size: 10px; }
.related-card p { font-size: 14px; }
.footer-brand p, .footer-col a { font-size: 14px; }
.footer-label { font-size: 10px; }
.footer-muted { font-size: 13px; }
.footer-bottom { font-family: var(--sans); font-size: 12px; letter-spacing: 0; }
@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero-intro { font-size: 16px; }
  .hero-stats .stat span, .hero-note { font-size: 13px; }
  .work-body p, .group-desc, .section-intro, .list-description { font-size: 15px; }
  .row-title { font-size: 18px; }
  .product-summary, .prose > p { font-size: 16px; }
  .footer-bottom { font-size: 11px; }
}
