:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --panel: rgba(18, 18, 18, 0.74);
  --panel-solid: #141414;
  --text: #f7f1e7;
  --muted: #ada79b;
  --subtle: #706d66;
  --gold: #c89545;
  --gold-soft: #f2d48b;
  --gold-deep: #76501d;
  --green: #71b89b;
  --red: #c86f5c;
  --line: rgba(242, 212, 139, 0.22);
  --line-soft: rgba(255, 255, 255, 0.09);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.46);
  --radius: 8px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(200, 149, 69, 0.15), transparent 26%),
    radial-gradient(circle at 82% 10%, rgba(113, 184, 155, 0.08), transparent 24%),
    radial-gradient(circle at 72% 82%, rgba(200, 111, 92, 0.06), transparent 26%),
    linear-gradient(180deg, #050505 0%, #0a0907 52%, #050505 100%);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 112px 0;
  scroll-margin-top: var(--header-height);
}

.scene-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.08;
  background-image: linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 100% 4px;
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(5, 5, 5, 0.42);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(5, 5, 5, 0.82);
}

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

.logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(242, 212, 139, 0.32), transparent 42%),
    rgba(255, 255, 255, 0.04);
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

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

.nav a {
  position: relative;
  color: rgba(247, 241, 231, 0.72);
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 1px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--gold-soft);
}

.nav a.active::after {
  transform: scaleX(1);
}

.nav-action,
.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.nav-action,
.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 18px;
}

.primary-btn {
  border: 1px solid rgba(242, 212, 139, 0.48);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #15100a;
  padding: 0 22px;
  box-shadow: 0 18px 48px rgba(200, 149, 69, 0.2);
}

.nav-action:hover,
.ghost-btn:hover,
.primary-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.ghost-btn:hover,
.nav-action:hover {
  border-color: rgba(242, 212, 139, 0.58);
  color: var(--gold-soft);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 6px auto;
  background: var(--gold-soft);
}

.mobile-nav {
  display: none;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 132px 0 80px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.52) 46%, rgba(5, 5, 5, 0.78)),
    linear-gradient(180deg, rgba(5, 5, 5, 0.28), rgba(5, 5, 5, 0.94));
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transform: scale(1.05);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.11) translate3d(-18px, 10px, 0);
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.52fr);
  gap: 48px;
  align-items: end;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  margin-left: -0.05em;
  font-size: clamp(76px, 15vw, 180px);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-kicker {
  width: min(760px, 100%);
  margin-top: 26px;
  color: rgba(247, 241, 231, 0.8);
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.55;
}

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

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.86), rgba(10, 10, 10, 0.66));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-row span {
  color: var(--green);
}

.hero-feature {
  position: relative;
}

.hero-feature img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.hero-feature::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.86));
}

.hero-feature div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
}

.hero-feature p {
  color: var(--gold-soft);
  font-size: 12px;
  text-transform: uppercase;
}

.hero-feature h2 {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.1;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.quick-stats div {
  padding: 18px;
  border-top: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}

.quick-stats div:last-child {
  border-right: none;
}

.quick-stats dt {
  color: var(--gold-soft);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.quick-stats dd {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.ticker-section {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 34px;
  padding: 18px 0;
  animation: tickerMove 30s linear infinite;
}

.ticker-track span {
  color: rgba(247, 241, 231, 0.76);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }

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

.product-story {
  padding-top: 128px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 76% 20%, rgba(200, 149, 69, 0.1), transparent 28%);
  border-bottom: 1px solid var(--line-soft);
}

.story-head {
  max-width: 860px;
  margin-bottom: 54px;
}

.story-head h2 {
  font-size: clamp(44px, 7vw, 94px);
  line-height: 0.98;
  letter-spacing: 0;
}

.story-head p {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}

.story-stage {
  --story-progress: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 58px;
  align-items: start;
}

.story-stage::before {
  content: "";
  position: absolute;
  left: 0;
  top: -28px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-soft), rgba(242, 212, 139, 0));
  transform: scaleX(var(--story-progress));
  transform-origin: left;
  transition: transform 0.12s linear;
}

.story-visual {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  height: min(720px, calc(100vh - var(--header-height) - 68px));
  min-height: 520px;
  border: 1px solid rgba(242, 212, 139, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(200, 149, 69, 0.12), rgba(255, 255, 255, 0.025)),
    #101010;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.story-visual::before,
.story-visual::after {
  content: "";
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.story-visual::before {
  inset: 18px;
  border: 1px solid rgba(242, 212, 139, 0.2);
}

.story-visual::after {
  inset: 0;
  background:
    linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.78)),
    linear-gradient(110deg, rgba(0, 0, 0, 0.45), transparent 52%);
}

.story-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.72s ease, transform 1.2s ease;
}

.story-frame.active {
  opacity: 1;
  transform: scale(1);
}

.story-frame img {
  height: 100%;
  object-fit: cover;
}

.story-frame figcaption {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 32px;
  z-index: 5;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.story-frame span {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.story-frame strong {
  max-width: 320px;
  color: rgba(247, 241, 231, 0.9);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 0.98;
  text-align: right;
}

.story-progress {
  position: absolute;
  left: 34px;
  top: 34px;
  z-index: 6;
  display: flex;
  gap: 10px;
}

.story-progress span {
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.28s ease, background 0.28s ease;
}

.story-progress span.active {
  width: 78px;
  background: var(--gold-soft);
}

.story-copy-stack {
  display: grid;
  gap: 30vh;
  padding: 18vh 0 24vh;
}

.story-step {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-step > span {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.story-step h3 {
  margin-top: 18px;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.02;
}

.story-step p {
  margin-top: 20px;
  color: rgba(247, 241, 231, 0.74);
  font-size: 17px;
}

.story-step dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.story-step dl div {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.story-step dt {
  color: var(--gold-soft);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.story-step dd {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head h2,
.ai-copy h2,
.contact-copy h2 {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-head p,
.ai-copy p,
.contact-copy p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
}

.work-console {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 22px;
}

.search-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.search-box span {
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.search-box input::placeholder {
  color: var(--subtle);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(247, 241, 231, 0.76);
  transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.filter-btn:hover,
.filter-btn.active {
  transform: translateY(-2px);
  border-color: rgba(242, 212, 139, 0.55);
  background: rgba(200, 149, 69, 0.16);
  color: var(--gold-soft);
}

.works-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  color: var(--subtle);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.work-card {
  position: relative;
  grid-column: span 4;
  min-height: 420px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel-solid);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

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

.work-card:hover,
.work-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(242, 212, 139, 0.48);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.work-card button {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  background: transparent;
  color: transparent;
}

.work-thumb {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.work-thumb img {
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 0.75s ease, opacity 0.28s ease;
}

.work-card:hover .work-thumb img {
  transform: scale(1.08);
  opacity: 1;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.92)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent);
}

.work-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
}

.work-index {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.work-category {
  margin-bottom: 8px;
  color: rgba(247, 241, 231, 0.72);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-body h3 {
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.12;
}

.work-body p {
  margin-top: 12px;
  color: rgba(247, 241, 231, 0.74);
  font-size: 14px;
}

.work-tags,
.modal-tags,
.tool-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-tags {
  margin-top: 18px;
}

.work-tags span,
.modal-tags span,
.tool-cloud span {
  border: 1px solid rgba(242, 212, 139, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(247, 241, 231, 0.78);
  font-size: 12px;
  padding: 5px 8px;
}

.empty-state {
  display: none;
  padding: 34px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state.show {
  display: block;
}

.process-section,
.experience-section {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.process-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 54px;
  align-items: start;
}

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

.process-card,
.skill-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(200, 149, 69, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(17, 17, 17, 0.72);
}

.process-card span {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.process-card h3,
.skill-card h3 {
  margin-top: 34px;
  font-size: 24px;
}

.process-card p,
.skill-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.ai-layout {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 54px;
  align-items: center;
}

.ai-screen {
  position: relative;
  border: 1px solid rgba(242, 212, 139, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ai-screen img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ai-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 149, 69, 0.12), transparent 45%, rgba(113, 184, 155, 0.1));
  pointer-events: none;
}

.hud-line {
  position: absolute;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  opacity: 0.7;
}

.hud-line.top {
  top: 24px;
}

.hud-line.bottom {
  bottom: 24px;
}

.tool-cloud {
  margin-top: 24px;
}

.text-link {
  width: fit-content;
  margin-top: 28px;
  border-bottom: 1px solid var(--gold-soft);
  border-radius: 0;
  color: var(--gold-soft);
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 170px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--gold-soft), rgba(242, 212, 139, 0.04));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 62px;
  align-items: start;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 164px;
  top: 10px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 0 8px rgba(200, 149, 69, 0.12);
}

.timeline-item time {
  color: var(--gold-soft);
  font-weight: 900;
}

.timeline-item div {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.timeline-item h3 {
  font-size: 22px;
}

.timeline-item p {
  margin-top: 10px;
  color: var(--muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 46px;
  align-items: start;
}

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

.contact-grid a {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
  word-break: break-word;
}

.contact-grid a:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 212, 139, 0.48);
  background: rgba(200, 149, 69, 0.08);
}

.contact-grid span {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-grid strong {
  font-size: 20px;
  line-height: 1.25;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.show {
  display: flex;
}

.modal-mask {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(14px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1060px, 100%);
  max-height: min(760px, 88vh);
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101010;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.65);
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.62);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.modal-image img {
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.modal-info {
  padding: 50px 34px;
}

.modal-info h3 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.modal-info p {
  margin-top: 18px;
  color: var(--muted);
}

.modal-tags {
  margin: 28px 0;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 26px 0;
  color: var(--subtle);
  text-align: center;
  font-size: 13px;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
}

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

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 980px) {
  .nav,
  .nav-action {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mobile-nav {
    display: none;
    padding: 10px 20px 20px;
    border-top: 1px solid var(--line-soft);
    background: rgba(5, 5, 5, 0.95);
  }

  .mobile-nav.show {
    display: grid;
    gap: 6px;
  }

  .mobile-nav a {
    padding: 12px 0;
    color: rgba(247, 241, 231, 0.82);
  }

  .hero-inner,
  .story-stage,
  .process-layout,
  .ai-layout,
  .contact-layout,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    max-width: 520px;
  }

  .story-visual {
    position: relative;
    top: auto;
    height: auto;
    min-height: auto;
    aspect-ratio: 16 / 11;
  }

  .story-copy-stack {
    gap: 28px;
    padding: 0;
  }

  .story-step {
    min-height: auto;
    padding: 26px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
  }

  .work-console {
    grid-template-columns: 1fr;
  }

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

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

  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 34px;
  }

  .timeline-item::before {
    left: 2px;
  }

  .modal-image img {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 66px;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 78px 0;
  }

  .nav-wrap {
    height: var(--header-height);
  }

  .hero {
    padding: 108px 0 58px;
  }

  .hero h1 {
    font-size: 78px;
  }

  .hero-kicker {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .quick-stats div {
    border-right: 0;
  }

  .ticker-track {
    gap: 24px;
  }

  .story-head h2,
  .story-step h3 {
    font-size: 42px;
  }

  .story-stage {
    gap: 28px;
  }

  .story-frame figcaption {
    left: 22px;
    right: 22px;
    bottom: 22px;
    display: grid;
  }

  .story-frame strong {
    max-width: none;
    text-align: left;
  }

  .story-progress {
    left: 22px;
    top: 22px;
  }

  .story-progress span {
    width: 30px;
  }

  .story-progress span.active {
    width: 54px;
  }

  .story-step dl {
    grid-template-columns: 1fr;
  }

  .works-meta {
    display: grid;
  }

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

  .work-card,
  .work-card:nth-child(7n + 1),
  .work-card:nth-child(7n + 6) {
    grid-column: span 1;
    min-height: 380px;
  }

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

  .process-card,
  .skill-card {
    min-height: auto;
  }

  .ai-copy h2,
  .contact-copy h2,
  .section-head h2 {
    font-size: 40px;
  }

  .modal {
    padding: 12px;
  }

  .modal-info {
    padding: 34px 22px 24px;
  }
}
