:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #111111;
  --panel-soft: rgba(17, 17, 17, 0.72);
  --text: #f2f0e8;
  --muted: #8a8a84;
  --dim: #484842;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.15);
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.13);
  --green: #6ee7b7;
  --violet: #818cf8;
  --red: #f87171;
  --font-display: "Cormorant Garamond", "Times New Roman", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "DM Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
}

button,
a {
  font: inherit;
}

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

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

::selection {
  color: var(--text);
  background: rgba(212, 175, 55, 0.28);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 400ms ease, border-color 400ms ease, backdrop-filter 400ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid var(--hairline);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark,
.nav-link,
.lang-toggle,
.mobile-menu button {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-mark {
  color: var(--gold);
  letter-spacing: 0.22em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link,
.mobile-menu button {
  color: var(--muted);
  transition: color 180ms ease;
}

.nav-link:hover,
.mobile-menu button:hover,
.lang-toggle:hover {
  color: var(--text);
}

.lang-toggle {
  min-width: 42px;
  padding: 7px 10px;
  color: var(--muted);
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  transition: color 180ms ease, border-color 180ms ease;
}

.lang-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.mobile-actions {
  display: none;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.menu-toggle span {
  width: 20px;
  height: 1px;
  display: block;
  background: var(--muted);
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(16px);
}

.mobile-menu.is-open {
  display: grid;
  gap: 16px;
  padding: 22px 24px 26px;
}

.mobile-menu button {
  text-align: left;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 96px 24px 54px;
}

.hero-video,
.hero-shade,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transform: scale(1.1);
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.5)),
    linear-gradient(90deg, rgba(5, 5, 5, 0.82) 0%, rgba(5, 5, 5, 0.58) 32%, rgba(5, 5, 5, 0.12) 62%, rgba(5, 5, 5, 0.45) 100%);
}

.hero-grid {
  opacity: 0.45;
  background-image: radial-gradient(circle, rgba(212, 175, 55, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 78% at 50% 50%, #000 22%, transparent 95%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 860px;
  margin: 0 0 26px;
  color: #f8f6ef;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
}

.type-line {
  height: 30px;
  margin: 0 0 22px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 1.7vw, 1rem);
  letter-spacing: 0.12em;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -0.12em;
  background: var(--gold);
  animation: blink 1s step-end infinite;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 0 0 46px;
  color: var(--muted);
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 0 22px;
  color: #050505;
  background: var(--gold);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  background: #fff9df;
}

.quiet-link {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: color 180ms ease;
}

.quiet-link:hover {
  color: var(--text);
}

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0;
}

.section-line {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

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

.section-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.04;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  padding: 7px 12px;
  color: var(--dim);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.75);
  background: rgba(212, 175, 55, 0.06);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.project-card {
  display: block;
  opacity: 0;
  cursor: pointer;
  transform: translateY(24px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.project-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: #111;
}

.project-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(135deg, var(--accent-alpha) 0%, rgba(26, 26, 26, 0.86) 52%, #0a0a0a 100%),
    radial-gradient(circle at 28% 24%, var(--accent-alpha), transparent 30%);
  transition: transform 700ms ease;
}

.project-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(var(--accent-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-grid) 1px, transparent 1px);
  background-size: 32px 32px;
}

.project-card:hover .project-visual::before {
  transform: scale(1.06);
}

.project-metronome {
  position: absolute;
  inset: 26px 24px 28px;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: start;
  pointer-events: none;
}

.beat-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  aspect-ratio: 1;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 64%),
    rgba(5, 5, 5, 0.28);
  box-shadow: 0 0 46px rgba(212, 175, 55, 0.08);
}

.beat-ring::before,
.beat-ring::after {
  position: absolute;
  inset: 13px;
  content: "";
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: inherit;
}

.beat-ring::after {
  inset: 30px;
}

.beat-ring strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 300;
  line-height: 0.9;
}

.beat-ring span {
  margin-top: -18px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.beat-arm {
  position: absolute;
  left: 58px;
  bottom: 34px;
  width: 2px;
  height: 132px;
  background: linear-gradient(180deg, rgba(255, 249, 223, 0.92), rgba(212, 175, 55, 0.12));
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.38);
  transform-origin: 50% calc(100% - 8px);
  animation: beat-swing 1.45s ease-in-out infinite alternate;
}

.beat-arm::before {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 9px;
  height: 9px;
  content: "";
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.8);
  transform: translateX(-50%);
}

.beat-rails {
  display: grid;
  gap: 9px;
  width: min(68%, 240px);
  margin-top: 30px;
}

.beat-rails i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.78), rgba(212, 175, 55, 0.08), transparent);
  transform-origin: left center;
  animation: beat-pulse 1.45s ease-in-out infinite;
}

.beat-rails i:nth-child(2) {
  width: 74%;
  animation-delay: 180ms;
}

.beat-rails i:nth-child(3) {
  width: 48%;
  animation-delay: 360ms;
}

.project-index {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  color: var(--accent-faint);
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.project-desc {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 56px 18px 18px;
  color: #b9b7ad;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 5, 0.94));
  font-size: 12px;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.project-card:hover .project-desc {
  opacity: 1;
  transform: translateY(0);
}

.project-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.project-title-row h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.project-title-row span,
.project-role {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
}

.project-tags,
.tag-list,
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-chip {
  padding: 4px 8px;
  color: var(--chip-color, var(--gold));
  border: 1px solid color-mix(in srgb, var(--chip-color, var(--gold)) 28%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--chip-color, var(--gold)) 10%, transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.project-role {
  margin: 10px 0 0;
}

.section-note {
  margin: 52px 0 0;
  color: #33332f;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 76px;
}

.about-title {
  max-width: 760px;
  margin-bottom: 34px;
}

.about-copy {
  display: grid;
  gap: 18px;
  max-width: 700px;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.info-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.info-panel,
.contact-card {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--panel-soft);
}

.info-panel {
  padding: 24px;
}

.panel-label {
  display: block;
  margin: 0 0 14px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
}

.panel-accent {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.direction-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.direction-row + .direction-row {
  margin-top: 12px;
}

.direction-row span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.resume-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--dim);
  border: 1px dashed var(--hairline-strong);
  border-radius: 4px;
  transition: color 180ms ease, border-color 180ms ease;
}

.resume-strip:hover {
  color: var(--muted);
  border-color: rgba(212, 175, 55, 0.45);
}

.resume-strip span:last-child {
  font-family: var(--font-mono);
  font-size: 12px;
}

.skill-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
  margin-top: 48px;
}

.skill-group h3 {
  margin: 0 0 20px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.skill-chip {
  padding: 8px 11px;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  font-size: 13px;
  transition: color 180ms ease, border-color 180ms ease;
}

.skill-chip:hover {
  color: #c8c6bb;
  border-color: rgba(212, 175, 55, 0.3);
}

.contact-title {
  margin: 0 0 20px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 0.98;
}

.contact-copy {
  width: min(560px, 100%);
  margin: 0 0 56px;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.8;
}

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

.contact-card {
  min-height: 130px;
  padding: 22px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-card:hover {
  border-color: rgba(212, 175, 55, 0.38);
  background: rgba(212, 175, 55, 0.035);
  transform: translateY(-2px);
}

.contact-card:focus-visible,
.qr-close:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.contact-card strong {
  display: block;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.contact-card small {
  display: block;
  min-height: 18px;
  margin-top: 10px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.qr-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.qr-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 36%, rgba(212, 175, 55, 0.13), transparent 28%),
    rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(18px);
}

.qr-dialog {
  position: relative;
  overflow: hidden;
  width: min(420px, 100%);
  max-height: calc(100vh - 48px);
  padding: 28px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.96), rgba(5, 5, 5, 0.98)),
    var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.72), 0 0 70px rgba(212, 175, 55, 0.08);
  transform: translateY(14px) scale(0.98);
  transition: transform 180ms ease;
}

.qr-modal.is-open .qr-dialog {
  transform: translateY(0) scale(1);
}

.qr-dialog::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
}

.qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  color: var(--muted);
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.qr-close:hover {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.06);
}

.qr-dialog h2 {
  margin: 0 42px 20px 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 300;
  line-height: 1.02;
}

.qr-frame {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #f8f8f4;
  box-shadow: inset 0 0 0 1px rgba(5, 5, 5, 0.06);
}

.qr-frame img {
  display: block;
  width: 100%;
  max-height: min(58vh, 560px);
  object-fit: contain;
  border-radius: 3px;
  background: #fff;
}

.qr-caption {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 84px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #33332f;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.case-body {
  background:
    radial-gradient(circle at 75% 12%, rgba(212, 175, 55, 0.08), transparent 28%),
    radial-gradient(circle at 20% 62%, rgba(110, 231, 183, 0.07), transparent 26%),
    var(--bg);
}

.case-main {
  min-height: 100vh;
}

.case-hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 110px 24px 80px;
}

.case-video,
.case-shade {
  position: absolute;
  inset: 0;
}

.case-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.08);
  filter: saturate(0.82) brightness(0.72);
}

.case-shade {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.62) 46%, rgba(5, 5, 5, 0.86)),
    linear-gradient(180deg, rgba(5, 5, 5, 0.5), rgba(5, 5, 5, 0.18) 44%, var(--bg));
}

.case-shell,
.case-section {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.case-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(460px, 0.44fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}

.case-copy {
  min-width: 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.back-link:hover {
  color: var(--gold);
}

.case-title {
  max-width: 880px;
  margin: 0 0 26px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 300;
  line-height: 0.92;
}

.case-lede {
  width: min(760px, 100%);
  margin: 0 0 42px;
  color: #aaa79c;
  font-size: 17px;
  line-height: 2;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-meta span {
  padding: 8px 12px;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.05);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.download-block {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.download-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 178px;
  height: 52px;
  padding: 0 24px;
  color: #050505;
  border-radius: 4px;
  background: var(--gold);
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.14);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.download-action:hover {
  transform: translateY(-2px);
  background: #fff5ce;
  box-shadow: 0 0 44px rgba(212, 175, 55, 0.22);
}

.download-action b {
  font-size: 15px;
  font-weight: 500;
}

.download-block p {
  margin: 0;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.hero-reader-preview {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(110, 231, 183, 0.22);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(4, 14, 12, 0.86), rgba(3, 8, 8, 0.92)),
    linear-gradient(rgba(110, 231, 183, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 183, 0.08) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    inset 0 0 80px rgba(110, 231, 183, 0.05);
}

.hero-reader-preview::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 0%, rgba(110, 231, 183, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%, rgba(0, 0, 0, 0.2));
}

.reader-window-top,
.reader-window-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(110, 231, 183, 0.2);
  background: rgba(4, 14, 12, 0.72);
}

.reader-window-top strong {
  display: block;
  color: #e8eee8;
  font-size: 13px;
  line-height: 1.3;
}

.reader-window-top strong i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 999px;
  background: #78e2ae;
  box-shadow: 0 0 16px rgba(120, 226, 174, 0.9);
}

.reader-window-top span,
.reader-window-bottom {
  color: #a9b4aa;
  font-size: 12px;
}

.reader-window-top nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.reader-window-top button {
  padding: 6px 9px;
  color: #d8e7df;
  border: 1px solid rgba(110, 231, 183, 0.22);
  border-radius: 4px;
  background: rgba(4, 18, 18, 0.62);
  font-size: 12px;
}

.reader-window-top button.gold {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.46);
}

.reader-window-body {
  position: relative;
  z-index: 2;
  min-height: 346px;
  padding: 28px 44px 24px;
  color: #f2f4f1;
  font-family: "Noto Serif SC", var(--font-display);
}

.reader-window-body h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
}

.reader-window-body p {
  margin: 0;
  color: #f0f0ed;
  font-size: 18px;
  line-height: 1.8;
  text-indent: 2em;
}

.reader-scrollbar {
  position: absolute;
  top: 26px;
  right: 26px;
  bottom: 18px;
  width: 8px;
}

.reader-scrollbar::before,
.reader-scrollbar::after {
  position: absolute;
  left: 1px;
  color: rgba(110, 231, 183, 0.45);
  font-size: 13px;
}

.reader-scrollbar::before {
  top: 0;
  content: "▲";
}

.reader-scrollbar::after {
  bottom: 0;
  content: "▼";
}

.reader-scrollbar span {
  position: absolute;
  top: 28px;
  left: 3px;
  width: 6px;
  height: 34px;
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.5);
}

.reader-window-bottom {
  border-top: 1px solid rgba(110, 231, 183, 0.2);
  border-bottom: 0;
}

.case-section {
  padding: 110px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.case-section-heading {
  display: grid;
  grid-template-columns: 0.36fr 0.64fr;
  gap: 48px;
  margin-bottom: 46px;
}

.case-section-heading h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.04;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.case-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(110, 231, 183, 0.08), rgba(17, 17, 17, 0.78) 48%, rgba(5, 5, 5, 0.9)),
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.case-card span {
  display: block;
  margin-bottom: 52px;
  color: rgba(110, 231, 183, 0.28);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.case-card h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 19px;
}

.case-card h3 em {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 7px;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.06);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.08em;
  vertical-align: 0.18em;
}

.case-card p,
.case-feature-list p,
.reader-page p,
.ai-panel li,
.reader-sidebar span {
  color: var(--muted);
  line-height: 1.85;
}

.case-demo-section {
  padding-top: 90px;
}

.reader-demo {
  display: grid;
  grid-template-columns: 0.72fr 1.2fr 1.05fr;
  gap: 18px;
  min-height: 700px;
  padding: 18px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background:
    radial-gradient(circle at 18% 18%, rgba(212, 175, 55, 0.11), transparent 30%),
    radial-gradient(circle at 78% 62%, rgba(110, 231, 183, 0.11), transparent 30%),
    rgba(12, 12, 12, 0.92);
}

.reader-sidebar,
.reader-page,
.ai-panel {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: rgba(5, 5, 5, 0.52);
}

.reader-sidebar,
.ai-panel {
  padding: 22px;
}

.ai-panel {
  overflow: hidden;
}

.reader-sidebar strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 22px;
}

.reader-progress {
  overflow: hidden;
  height: 3px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.reader-progress i {
  display: block;
  width: 56%;
  height: 100%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.8);
}

.reader-page {
  padding: 42px;
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.04), transparent 36%),
    rgba(8, 8, 8, 0.72);
}

.reader-page h3 {
  margin: 0 0 28px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 300;
}

.ai-panel ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-panel li {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.context-cards {
  display: grid;
  gap: 9px;
  max-height: 632px;
  overflow-y: auto;
  padding-right: 6px;
}

.context-cards::-webkit-scrollbar {
  width: 4px;
}

.context-cards::-webkit-scrollbar-thumb {
  background: rgba(110, 231, 183, 0.32);
  border-radius: 999px;
}

.context-cards article {
  position: relative;
  min-height: 100px;
  padding: 12px 42px 12px 12px;
  border: 1px solid rgba(110, 231, 183, 0.18);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(110, 231, 183, 0.055), transparent 48%),
    rgba(5, 5, 5, 0.4);
}

.context-cards article::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(110, 231, 183, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 183, 0.16) 1px, transparent 1px);
  background-size: 24px 24px;
}

.context-cards span {
  position: absolute;
  top: 10px;
  right: 12px;
  color: rgba(110, 231, 183, 0.32);
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.context-cards h4 {
  position: relative;
  margin: 0 0 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.context-cards p {
  position: relative;
  margin: 0;
  color: #b9b7ad;
  font-size: 11px;
  line-height: 1.58;
}

.context-cards p + p {
  margin-top: 2px;
}

.case-feature-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
}

.case-feature-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 26px;
  background: rgba(17, 17, 17, 0.72);
}

.case-feature-list span {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.case-feature-list p {
  margin: 0;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes beat-swing {
  from {
    transform: rotate(-18deg);
  }

  to {
    transform: rotate(18deg);
  }
}

@keyframes beat-pulse {
  0%,
  100% {
    opacity: 0.28;
    transform: scaleX(0.72);
  }

  48% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .mobile-actions {
    display: flex;
  }

  .hero-content {
    z-index: 5;
    padding-top: 12vh;
  }

  .hero-content h1 {
    font-size: clamp(2.9rem, 14vw, 5.8rem);
  }

  .section-shell {
    padding: 92px 0;
  }

  .section-heading,
  .about-layout,
  .skill-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

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

  .about-layout {
    display: grid;
    gap: 46px;
  }

  .case-section-heading,
  .case-grid,
  .reader-demo,
  .case-feature-list div {
    grid-template-columns: 1fr;
  }

  .case-title {
    font-size: clamp(3.5rem, 14vw, 7rem);
  }

  .reader-demo {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .nav-shell,
  .section-shell {
    width: min(100% - 28px, var(--max));
  }

  .hero-section {
    min-height: 92vh;
    padding-inline: 14px;
  }

  .hero-content {
    padding-top: 8vh;
  }

  .hero-copy {
    font-size: 14px;
  }

  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-desc {
    opacity: 1;
    transform: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-shell,
  .case-section {
    width: min(100% - 28px, var(--max));
  }

  .case-hero {
    padding-inline: 14px;
  }

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

  .reader-page {
    padding: 26px;
  }
}
