:root {
  --ink: #080a0d;
  --ink-soft: #10141a;
  --silver: #c9cbd0;
  --muted: #858c96;
  --line: rgba(190, 199, 210, 0.18);
  --blue: #6092ba;
  --blue-soft: rgba(96, 146, 186, 0.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--ink); }

body {
  margin: 0;
  color: var(--silver);
  background: radial-gradient(circle at 78% 9%, rgba(60, 92, 116, 0.11), transparent 25%), var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
::selection { color: #05070a; background: var(--blue); }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.8vw;
  border-bottom: 1px solid rgba(190, 199, 210, 0.09);
  font-size: 12px;
  letter-spacing: .22em;
}

.brand { display: inline-flex; align-items: center; gap: 26px; white-space: nowrap; }
.brand-mark { position: relative; width: 22px; height: 22px; }
.brand-mark::before, .brand-mark::after { position: absolute; content: ""; background: rgba(201, 203, 208, .65); }
.brand-mark::before { top: 0; left: 10px; width: 1px; height: 22px; }
.brand-mark::after { top: 10px; left: 0; width: 22px; height: 1px; }

nav { display: flex; align-items: center; gap: 24px; color: #aeb2b8; }
nav span { color: var(--blue); }
nav a { transition: color .18s ease; }
nav a:hover { color: white; }

.hero { position: relative; height: max(720px, 100vh); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image: linear-gradient(to right, transparent calc(100% - 1px), rgba(181,193,204,.1) 1px), linear-gradient(to bottom, transparent calc(100% - 1px), rgba(181,193,204,.06) 1px);
  background-size: 7.15vw 100%, 100% 112px;
  mask-image: linear-gradient(to right, black 0 52%, transparent 84%);
}

.hero-copy {
  position: absolute;
  z-index: 4;
  top: 18.5%;
  left: 10.3vw;
  width: min(600px, 43vw);
  animation: rise-in .9s cubic-bezier(.2,.7,.2,1) both;
}

.eyebrow { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; color: var(--blue); font-size: 11px; letter-spacing: .34em; }
.eyebrow i { display: block; width: 160px; height: 1px; background: linear-gradient(90deg, rgba(170,180,190,.6), transparent); }
.target { color: #737b84; font-size: 15px; letter-spacing: 0; }

h1 {
  margin: 0;
  color: #d2d1cf;
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(72px, 7.6vw, 126px);
  font-weight: 400;
  line-height: .72;
  letter-spacing: -.065em;
  text-shadow: 0 0 60px rgba(255,255,255,.03);
}
h1 span { display: block; }

.hero-subtitle {
  width: max-content;
  max-width: 100%;
  margin: 34px 0 0;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--blue-soft);
  color: #b8bac0;
  font-size: clamp(14px, 1.25vw, 19px);
  letter-spacing: .24em;
}
.hero-actions { display: flex; align-items: center; gap: 58px; margin-top: 28px; }
.primary-action {
  display: inline-flex;
  min-width: 210px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid rgba(99,148,187,.72);
  color: #d2d5d8;
  font-size: 13px;
  letter-spacing: .2em;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}
.primary-action span { color: var(--blue); font-size: 22px; transition: transform .22s ease; }
.primary-action:hover { color: white; background: rgba(97,146,185,.12); transform: translateY(-2px); }
.primary-action:hover span { transform: translateX(4px); }
.hero-actions p { margin: 0; color: #a6a9ae; font-size: 11px; letter-spacing: .42em; white-space: nowrap; }
.hero-actions b { color: var(--blue); }

.hero-portrait { position: absolute; z-index: 2; top: 0; right: 4vw; width: min(46vw, 720px); height: 100%; margin: 0; animation: portrait-in 1.4s ease both; }
.hero-portrait::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--ink) 0%, transparent 18%, transparent 78%, var(--ink) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 22%, transparent 88%, rgba(8,10,13,.5) 100%);
}
.hero-portrait::after { position: absolute; z-index: 2; inset: 0; content: ""; box-shadow: inset 0 0 100px 50px rgba(8,10,13,.3); pointer-events: none; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; filter: saturate(.77) contrast(1.02) brightness(.89); }
.hero-portrait figcaption { position: absolute; z-index: 3; right: 18px; bottom: 22px; display: flex; gap: 22px; color: rgba(204,211,217,.54); font-family: ui-monospace, SFMono-Regular, monospace; font-size: 9px; letter-spacing: .18em; }
.hero-index { position: absolute; z-index: 5; bottom: 45px; left: 4.25vw; display: flex; flex-direction: column; gap: 10px; color: var(--blue); font-family: ui-monospace, SFMono-Regular, monospace; font-size: 10px; letter-spacing: .2em; }
.hero-index i { width: 38px; height: 1px; background: var(--blue); }

.featured { padding: 92px 4.8vw 130px; background: linear-gradient(rgba(255,255,255,.012), rgba(255,255,255,0)), var(--ink); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 42px; }
.section-heading > div { display: flex; align-items: center; gap: 28px; }
.section-number { color: var(--blue); font-family: ui-monospace, SFMono-Regular, monospace; font-size: 12px; letter-spacing: .18em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .13em; }
.section-heading > p { max-width: 360px; line-height: 1.9; text-align: right; }
.archive-heading { margin-bottom: 28px; }

.filter-row { display: flex; gap: 10px; margin-bottom: 44px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-row button { display: inline-flex; min-width: 116px; align-items: center; gap: 20px; padding: 10px 13px; border: 0; background: transparent; color: #737b84; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 10px; letter-spacing: .2em; cursor: pointer; transition: color .18s ease, background .18s ease; }
.filter-row button span { color: #59616b; font-size: 8px; }
.filter-row button:hover, .filter-row button.active { color: #d5d7da; background: rgba(96,146,186,.09); }
.filter-row button.active span { color: var(--blue); }

.archive-grid { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 58px 14px; }
.work-card { min-width: 0; }
.work-card.portrait { grid-column: span 4; }
.work-card.landscape, .work-card.document { grid-column: span 6; }
.work-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.work-image { position: relative; overflow: hidden; height: clamp(340px,42vw,570px); border: 1px solid var(--line); background: #11151a; }
.work-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.83); transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.work-image.portrait img { object-position: center 30%; }
.work-image.document img { object-position: center top; }
.work-card.portrait .work-image { height: min(52vw,650px); }
.work-card.landscape .work-image { height: min(31vw,455px); }
.work-card.document .work-image { height: min(59vw,790px); }
.work-card:hover .work-image img, .work-card:focus-within .work-image img { transform: scale(1.025); filter: saturate(.88) brightness(.98); }
.work-index { position: absolute; z-index: 2; top: 18px; left: 18px; color: var(--blue); font-family: ui-monospace, SFMono-Regular, monospace; font-size: 11px; letter-spacing: .18em; }
.play-mark { position: absolute; z-index: 2; right: 18px; bottom: 18px; display: grid; width: 42px; height: 42px; place-items: center; padding-left: 2px; border: 1px solid rgba(220,225,230,.42); border-radius: 50%; color: white; font-size: 10px; backdrop-filter: blur(8px); }
.work-info { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 4px 0; }
.work-info p, .work-info h2 { margin: 0; }
.work-info p, .work-info > span { color: #737b84; font-size: 9px; letter-spacing: .16em; }
.work-info h2 { margin-top: 8px; color: #c9cbd0; font-size: 17px; font-weight: 400; letter-spacing: .08em; }

.manifesto { display: grid; grid-template-columns: 1fr 5fr; gap: 40px; padding: 110px 10vw 130px; border-top: 1px solid var(--line); background: #0b0e12; }
.manifesto-label { margin: 0 0 26px; color: var(--blue); font-size: 10px; letter-spacing: .34em; }
.manifesto h2, .character-copy h2, .about-section h2 { margin: 0; color: #b9bbc0; font-family: Georgia, "Songti SC", "Noto Serif SC", serif; font-weight: 400; }
.manifesto h2 { font-size: clamp(31px,4.1vw,63px); line-height: 1.35; letter-spacing: .06em; }
.universe-copy { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 60px; max-width: 930px; margin-top: 72px; }
.universe-copy p { margin: 0; color: #888e96; font-size: 14px; line-height: 2; letter-spacing: .05em; }
.archive-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; max-width: 930px; margin: 78px 0 0; border: 1px solid var(--line); background: var(--line); }
.archive-stats div { padding: 30px; background: #0b0e12; }
.archive-stats dt, .archive-stats dd { margin: 0; }
.archive-stats dt { color: #c5c7ca; font-family: Georgia, serif; font-size: 38px; }
.archive-stats dd { margin-top: 8px; color: #69717a; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 9px; letter-spacing: .16em; }

.character-section { padding: 120px 4.8vw 140px; border-top: 1px solid var(--line); }
.character-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 72px; }
.character-heading > div { display: flex; align-items: center; gap: 28px; }
.character-heading p { margin: 0; color: #777e87; font-size: 11px; line-height: 1.9; letter-spacing: .13em; }
.character-heading > p { max-width: 420px; text-align: right; }
.character-layout { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(560px,1.65fr); gap: clamp(48px,7vw,120px); align-items: start; }
.file-code { color: var(--blue); font-family: ui-monospace, SFMono-Regular, monospace; font-size: 10px; letter-spacing: .2em; }
.character-copy h2 { margin: 32px 0 58px; font-size: clamp(27px,3.1vw,45px); line-height: 1.5; letter-spacing: .05em; }
.character-copy dl { margin: 0; }
.character-copy dl div { padding: 21px 0; border-top: 1px solid var(--line); }
.character-copy dt { margin-bottom: 10px; color: #707985; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 9px; letter-spacing: .18em; }
.character-copy dd { margin: 0; color: #969ba2; font-size: 13px; line-height: 1.9; }
.reference-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.reference-pair button { position: relative; overflow: hidden; padding: 0; border: 1px solid var(--line); background: #0d1014; cursor: zoom-in; }
.reference-pair img { display: block; width: 100%; filter: saturate(.72) brightness(.88); transition: transform .6s ease, filter .4s ease; }
.reference-pair button:hover img { transform: scale(1.018); filter: saturate(.9) brightness(1); }
.reference-pair button span { position: absolute; right: 14px; bottom: 12px; left: 14px; padding: 11px 12px; color: #aeb3b9; background: rgba(8,10,13,.76); font-family: ui-monospace, SFMono-Regular, monospace; font-size: 8px; letter-spacing: .13em; text-align: left; backdrop-filter: blur(8px); }

.about-section { display: grid; grid-template-columns: 1fr 5fr; gap: 40px; padding: 120px 10vw 140px; border-top: 1px solid var(--line); background: radial-gradient(circle at 82% 40%,rgba(96,146,186,.07),transparent 25%), #090c10; }
.about-section > div > p:first-child { margin: 0 0 26px; color: var(--blue); font-size: 10px; letter-spacing: .3em; }
.about-section h2 { max-width: 850px; font-size: clamp(32px,4.2vw,63px); line-height: 1.4; letter-spacing: .04em; }
.about-copy { max-width: 780px; margin: 54px 0 0; color: #858b94; font-size: 14px; line-height: 2.1; letter-spacing: .06em; }
.site-footer { display: flex; justify-content: space-between; padding: 28px 4.8vw; border-top: 1px solid var(--line); color: #69717a; font-size: 9px; letter-spacing: .22em; }
.site-footer a { color: #778b9c; }

.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 34px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,4,6,.92); backdrop-filter: blur(22px); }
.media-modal { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.45fr) minmax(290px,.55fr); width: min(1240px,94vw); min-height: min(760px,88vh); overflow: hidden; border: 1px solid rgba(197,205,212,.2); background: #090c10; box-shadow: 0 32px 100px rgba(0,0,0,.5); animation: modal-in .22s ease both; }
.modal-close { position: absolute; z-index: 4; top: 14px; right: 14px; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border: 1px solid rgba(218,222,226,.25); background: rgba(7,9,12,.72); color: #a7adb4; cursor: pointer; backdrop-filter: blur(10px); }
.modal-close span { font-size: 9px; letter-spacing: .16em; }
.modal-close b { font-size: 18px; font-weight: 300; line-height: 1; }
.modal-media { display: grid; min-height: 0; place-items: center; overflow: hidden; background: #030405; }
.modal-media video, .modal-media img { display: block; width: 100%; height: 100%; max-height: 88vh; object-fit: contain; }
.modal-copy { display: flex; flex-direction: column; padding: 78px 42px 34px; border-left: 1px solid var(--line); }
.modal-meta { display: flex; align-items: center; justify-content: space-between; }
.modal-meta span { color: var(--blue); font-family: ui-monospace, SFMono-Regular, monospace; font-size: 12px; }
.modal-meta p { margin: 0; color: #6f7680; font-size: 8px; letter-spacing: .13em; }
.modal-copy h2 { margin: 56px 0 28px; color: #d1d3d6; font-family: Georgia, "Songti SC", serif; font-size: clamp(30px,3.2vw,48px); font-weight: 400; line-height: 1.3; }
.modal-copy > p { margin: 0; color: #858b93; font-size: 13px; line-height: 2; }
.modal-copy footer { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 40px; border-top: 1px solid var(--line); color: #6e7680; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 8px; letter-spacing: .15em; }

@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes portrait-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: scale(1); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .site-header { height: 64px; padding: 0 5vw; font-size: 10px; letter-spacing: .14em; }
  .brand { gap: 14px; }
  .brand-mark { transform: scale(.8); }
  nav { gap: 12px; }
  nav a:nth-of-type(3), nav a:nth-of-type(4), nav span:nth-of-type(3) { display: none; }
  .hero { height: max(700px,100svh); }
  .hero-copy { top: 18%; left: 7vw; width: 64vw; }
  .hero-portrait { right: -5vw; width: 65vw; opacity: .88; }
  .hero-actions { gap: 20px; }
  .hero-actions p { display: none; }
  .archive-grid { gap: 42px 12px; }
  .work-card.portrait { grid-column: span 6; }
  .work-card.landscape, .work-card.document { grid-column: span 12; }
  .work-card.portrait .work-image { height: min(102vw,650px); }
  .work-card.landscape .work-image { height: min(54vw,455px); }
  .work-card.document .work-image { height: min(103vw,790px); }
  .manifesto, .about-section { padding-right: 7vw; padding-left: 7vw; }
  .character-section { padding-right: 5vw; padding-left: 5vw; }
  .character-layout { grid-template-columns: 1fr; }
  .reference-pair { max-width: 860px; }
  .media-modal { grid-template-columns: 1fr; width: min(860px,94vw); min-height: 0; max-height: 88vh; overflow-y: auto; }
  .modal-media { min-height: 40vh; }
  .modal-copy { min-height: 320px; padding: 42px 28px 28px; border-top: 1px solid var(--line); border-left: 0; }
  .modal-copy h2 { margin-top: 30px; }
}

@media (max-width: 560px) {
  .site-header { padding: 0 6vw; }
  nav { display: none; }
  .hero { height: max(650px,100svh); }
  .hero-grid { opacity: .2; background-size: 20vw 100%, 100% 90px; mask-image: none; }
  .hero-copy { top: 19%; left: 7vw; width: 86vw; }
  .eyebrow { gap: 10px; margin-bottom: 22px; font-size: 8px; letter-spacing: .23em; }
  .eyebrow i { width: 46px; }
  h1 { font-size: clamp(58px,18vw,86px); }
  .hero-subtitle { margin-top: 28px; padding-bottom: 13px; font-size: 12px; letter-spacing: .15em; }
  .hero-portrait { right: -19vw; width: 94vw; opacity: .62; }
  .hero-portrait::before { background: linear-gradient(90deg, var(--ink) 0%, rgba(8,10,13,.1) 55%, var(--ink) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 34%, rgba(8,10,13,.35) 100%); }
  .hero-portrait figcaption { display: none; }
  .hero-index { bottom: 28px; left: 7vw; }
  .primary-action { min-width: 190px; padding: 14px 16px; font-size: 12px; }
  .featured { padding: 70px 6vw 86px; }
  .section-heading, .character-heading { display: block; }
  .section-heading > p, .character-heading > p { margin-top: 18px; text-align: left; }
  .filter-row { gap: 4px; overflow-x: auto; }
  .filter-row button { min-width: 92px; gap: 12px; padding: 9px 8px; }
  .archive-grid { display: grid; grid-template-columns: 1fr; gap: 38px; }
  .work-card.portrait, .work-card.landscape, .work-card.document { grid-column: auto; }
  .work-card.portrait .work-image, .work-card.document .work-image { height: min(135vw,690px); }
  .work-card.landscape .work-image { height: 56vw; }
  .work-info h2 { font-size: 16px; }
  .work-info > span { padding-top: 4px; text-align: right; }
  .manifesto, .about-section { grid-template-columns: 1fr; gap: 26px; padding: 78px 7vw 84px; }
  .manifesto h2, .about-section h2 { font-size: 31px; }
  .universe-copy { grid-template-columns: 1fr; gap: 22px; margin-top: 40px; }
  .archive-stats { grid-template-columns: 1fr; margin-top: 44px; }
  .archive-stats div { padding: 20px; }
  .character-section { padding: 78px 6vw 88px; }
  .character-heading { margin-bottom: 42px; }
  .character-copy h2 { margin: 24px 0 38px; font-size: 29px; }
  .reference-pair { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 14px; padding: 24px 6vw; font-size: 8px; }
  .modal { align-items: end; padding: 0; }
  .media-modal { width: 100%; max-height: 92vh; border-right: 0; border-bottom: 0; border-left: 0; }
  .modal-media { min-height: 31vh; }
  .modal-copy { min-height: 300px; padding: 36px 22px 25px; }
  .modal-copy h2 { font-size: 30px; }
  .modal-copy footer { padding-top: 24px; }
}

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