:root {
  --ink: #050505;
  --paper: #f2f2ef;
  --white: #ffffff;
  --muted: #73736e;
  --line: #c9c9c3;
  --pad: clamp(18px, 3.2vw, 54px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Arial Narrow", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
body.viewer-open { overflow: hidden; }
button, a { color: inherit; font: inherit; }
a { text-decoration: none; }
button { border: 0; }
img { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 72px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  background: rgba(5, 5, 5, .82);
  border-bottom: 1px solid rgba(255,255,255,.17);
  backdrop-filter: blur(16px);
}
.wordmark { font-size: 25px; font-weight: 1000; line-height: 1; }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 38px); font-size: 12px; font-weight: 900; }
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -7px;
  height: 1px; background: currentColor;
  transition: right .25s ease;
}
.nav-links a:hover::after { right: 0; }

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(116px, 15vh, 158px) var(--pad) clamp(28px, 5vh, 54px);
  color: var(--white);
  background: var(--ink);
}
.hero-art { position: absolute; inset: 0; opacity: .42; filter: grayscale(1) contrast(1.08); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #050505 0%, rgba(5,5,5,.84) 35%, rgba(5,5,5,.12) 78%, rgba(5,5,5,.45)); }
.hero-art-item { position: absolute; object-fit: cover; }
.hero-art-a { width: 34%; height: 63%; right: -3%; top: 8%; transform: rotate(3deg); }
.hero-art-b { width: 24%; height: 52%; right: 27%; bottom: -12%; transform: rotate(-5deg); }
.hero-art-c { width: 21%; height: 34%; right: 11%; bottom: -3%; transform: rotate(6deg); }
.hero-noise {
  position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.hero-intro, .hero-bottom { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 22px; font-size: 11px; line-height: 1.2; font-weight: 900; }
.eyebrow.dark { color: var(--muted); }
.hero h1 {
  margin: 0;
  max-width: 1100px;
  font-size: clamp(72px, 11.7vw, 178px);
  line-height: .76;
  font-weight: 1000;
}
.hero h1 span { color: transparent; -webkit-text-stroke: 1.5px var(--white); }
.hero-role { margin: clamp(28px, 5vh, 58px) 0 0; font-size: clamp(16px, 1.45vw, 23px); font-weight: 850; }
.hero-bottom { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(560px, 1.7fr); gap: clamp(42px, 8vw, 140px); align-items: end; }
.hero-summary { margin: 0; color: #d2d2cd; font-size: 14px; line-height: 1.68; max-width: 520px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.38); }
.hero-stats div { min-height: 112px; padding: 14px 12px 0 0; border-right: 1px solid rgba(255,255,255,.2); }
.hero-stats div:not(:first-child) { padding-left: 18px; }
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong { display: block; font-size: clamp(31px, 3.5vw, 56px); line-height: .9; font-weight: 1000; }
.hero-stats span { display: block; margin-top: 13px; color: #b6b6b0; font-size: 11px; font-weight: 800; }

.work-section, .capabilities-section, .experience-section { padding: clamp(72px, 9vw, 138px) var(--pad); }
.section-title { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 7vw, 104px); }
.section-title h2 { margin: 0; font-size: clamp(32px, 3.65vw, 56px); line-height: .92; font-weight: 1000; }
.section-title > p { margin: 0; max-width: 510px; color: var(--muted); font-size: 15px; line-height: 1.65; }

.featured-list { display: grid; gap: clamp(88px, 13vw, 200px); }
.featured-project { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.55fr); gap: clamp(36px, 7vw, 116px); align-items: center; }
.featured-project.is-reversed { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .72fr); }
.featured-project.is-reversed .featured-copy { order: 2; }
.featured-copy { position: relative; padding-top: 46px; }
.project-index { position: absolute; right: 0; top: 0; color: var(--line); font-size: 72px; line-height: .8; font-weight: 1000; }
.project-type { margin: 0 0 16px; color: var(--muted); font-size: 11px; font-weight: 900; }
.featured-copy h3 { margin: 0; font-size: clamp(24px, 2.35vw, 36px); line-height: 1; font-weight: 1000; }
.project-role { margin: 24px 0 0; font-size: 12px; font-weight: 900; }
.project-summary { margin: 24px 0 0; max-width: 550px; color: #454541; font-size: 14px; line-height: 1.72; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 11px; font-weight: 850; }
.project-tags li::before { content: "+ "; color: var(--ink); }
.text-command { margin-top: 36px; padding: 0 0 7px; background: none; border-bottom: 1px solid; font-weight: 900; cursor: pointer; }
.text-command span { display: inline-block; margin-left: 16px; transition: transform .2s ease; }
.text-command:hover span { transform: translate(4px, -4px); }
.featured-visual { position: relative; overflow: hidden; min-height: 420px; padding: 0; background: #ddd; cursor: pointer; }
.featured-visual img { width: 100%; height: 100%; min-height: 420px; max-height: 730px; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.1,1), filter .35s ease; }
.featured-visual:hover img { transform: scale(1.025); filter: contrast(1.05); }
.visual-mark { position: absolute; right: 14px; bottom: 14px; padding: 9px 11px; color: var(--white); background: var(--ink); font-size: 10px; font-weight: 900; }

.archive-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin: clamp(130px, 17vw, 260px) 0 38px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.archive-head h2 { margin: 0; font-size: clamp(32px, 3.65vw, 56px); line-height: .92; font-weight: 1000; }
.archive-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.category-tab { position: relative; min-height: 190px; padding: 18px 18px 22px; display: grid; align-content: space-between; justify-items: start; text-align: left; background: transparent; border-right: 1px solid var(--line); cursor: pointer; transition: background .25s ease, color .25s ease; }
.category-tab:last-child { border-right: 0; }
.category-tab:hover, .category-tab.is-active { color: var(--white); background: var(--ink); }
.category-number { font-size: 11px; font-weight: 900; }
.category-tab strong { font-size: clamp(19px, 2vw, 30px); line-height: 1; }
.category-tab small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.category-tab:hover small, .category-tab.is-active small { color: #a7a7a1; }
.secondary-filter { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); align-items: center; gap: 26px; min-height: 84px; padding: 14px 0; border-bottom: 1px solid var(--ink); }
.secondary-filter[hidden] { display: none; }
.secondary-heading { display: grid; gap: 4px; }
.secondary-heading span { color: var(--muted); font-size: 9px; font-weight: 900; }
.secondary-heading strong { font-size: 14px; }
.secondary-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.subfilter-button { min-height: 36px; padding: 8px 11px; color: var(--muted); background: transparent; border: 1px solid var(--line); cursor: pointer; font-size: 11px; font-weight: 900; }
.subfilter-button span { margin-left: 8px; color: #9d9d98; font-size: 9px; }
.subfilter-button:hover, .subfilter-button.is-active { color: var(--white); background: var(--ink); border-color: var(--ink); }
.subfilter-button.is-active span { color: #aaa; }
.subfilter-button:disabled { opacity: .32; cursor: not-allowed; }
.subfilter-button:disabled:hover { color: var(--muted); background: transparent; border-color: var(--line); }
.archive-utility { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0 22px; color: var(--muted); font-size: 11px; font-weight: 900; }
.reset-filter { padding: 0 0 6px; color: var(--ink); background: transparent; border-bottom: 1px solid var(--ink); cursor: pointer; font-weight: 900; }
.reset-filter span { display: inline-block; margin-left: 14px; transition: transform .2s ease; }
.reset-filter:hover span { transform: translate(4px, -4px); }
.masonry { columns: 4 270px; column-gap: 12px; }
.gallery-item { position: relative; width: 100%; margin: 0 0 12px; padding: 0; overflow: hidden; break-inside: avoid; background: #d6d6d1; cursor: pointer; }
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.1,1), filter .35s ease; }
.shape-tall img { aspect-ratio: 4 / 5.4; }
.shape-square img { aspect-ratio: 1; }
.shape-wide img { aspect-ratio: 5 / 3.7; }
.shape-standard img { aspect-ratio: 4 / 4.5; }
.gallery-overlay { position: absolute; inset: auto 0 0; min-height: 36%; padding: 18px; display: grid; align-content: end; color: var(--white); background: linear-gradient(transparent, rgba(0,0,0,.84)); opacity: 0; transform: translateY(10px); transition: .3s ease; text-align: left; }
.gallery-overlay small { font-size: 9px; font-weight: 900; }
.gallery-overlay strong { margin-top: 5px; font-size: 18px; line-height: 1.05; }
.gallery-overlay i { position: absolute; right: 18px; bottom: 18px; font-style: normal; }
.gallery-item:hover img { transform: scale(1.035); filter: grayscale(.25) contrast(1.05); }
.gallery-item:hover .gallery-overlay { opacity: 1; transform: none; }
.archive-empty { margin: 0; padding: 80px 0; color: var(--muted); border-top: 1px solid var(--line); text-align: center; font-size: 13px; font-weight: 900; }

.capabilities-section { background: var(--white); }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.capability-grid article { min-height: 310px; padding: 20px 24px 28px 0; border-right: 1px solid var(--line); }
.capability-grid article:not(:first-child) { padding-left: 24px; }
.capability-grid article:last-child { border-right: 0; }
.capability-grid span { color: var(--muted); font-size: 11px; font-weight: 900; }
.capability-grid h3 { margin: 78px 0 20px; font-size: clamp(25px, 2.2vw, 36px); line-height: 1; }
.capability-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.experience-section { background: #deded9; }
.timeline { border-top: 1px solid var(--ink); }
.timeline article { display: grid; grid-template-columns: .7fr 1fr 1.4fr; gap: 38px; padding: 28px 0; border-bottom: 1px solid #aaa; }
.timeline-period { font-size: 12px; font-weight: 900; }
.timeline h3 { margin: 0; font-size: clamp(20px, 2vw, 30px); line-height: 1.08; }
.timeline article > div:nth-child(2) p { margin: 9px 0 0; font-size: 12px; font-weight: 900; }
.timeline > article > p { margin: 0; color: #4f4f4a; font-size: 13px; line-height: 1.7; }
.timeline-detail { margin: 0; color: #4f4f4a; font-size: 13px; line-height: 1.65; }
.timeline-detail p { margin: 0; }
.timeline-detail p + p { margin-top: 16px; }
.timeline-detail strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 12px; line-height: 1.2; font-weight: 1000; }

.contact-section { min-height: 90svh; padding: clamp(100px, 12vw, 180px) var(--pad) 30px; display: grid; grid-template-rows: 1fr auto auto; gap: 70px; color: var(--white); background: var(--ink); }
.contact-lead h2 { margin: 0; max-width: 1100px; font-size: clamp(68px, 10vw, 150px); line-height: 1.02; font-weight: 1000; }
.contact-list { border-top: 1px solid #555; }
.contact-list a, .contact-list button { width: 100%; min-height: 82px; display: grid; grid-template-columns: 140px 1fr 30px; align-items: center; text-align: left; color: var(--white); background: none; border-bottom: 1px solid #555; cursor: pointer; }
.contact-list span { color: #858580; font-size: 10px; font-weight: 900; }
.contact-list strong { font-size: clamp(19px, 2.3vw, 34px); overflow-wrap: anywhere; }
.contact-list i { font-style: normal; font-size: 24px; transition: transform .2s ease; }
.contact-list a:hover i, .contact-list button:hover i { transform: translate(4px, -4px); }
.footer-meta { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid #555; color: #858580; font-size: 10px; font-weight: 900; }

.viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; color: var(--white); background: #0a0a0a; border: 0; overflow: hidden; }
.viewer::backdrop { background: #050505; }
.viewer[open] { display: grid; grid-template-rows: 72px minmax(0, 1fr) auto; }
.viewer-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--pad); border-bottom: 1px solid #333; }
.viewer-topbar > div:first-child { min-width: 0; display: flex; align-items: baseline; gap: 18px; }
.viewer-topbar span { color: #8c8c87; font-size: 10px; font-weight: 900; }
.viewer-topbar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.viewer-actions { display: flex; align-items: center; gap: 18px; }
.viewer-actions button { width: 42px; height: 42px; color: var(--white); background: none; cursor: pointer; font-size: 34px; line-height: 1; }
.viewer-body { min-height: 0; position: relative; overflow: hidden; padding: 26px clamp(56px, 8vw, 130px); }
.viewer-stage { width: 100%; height: 100%; min-height: 0; display: flex; justify-content: center; align-items: center; overflow: hidden; cursor: zoom-in; touch-action: none; }
.viewer-stage.is-zoomed { cursor: grab; }
.viewer-stage.is-dragging { cursor: grabbing; }
.viewer-stage img { width: auto; max-width: 100%; height: auto; max-height: 100%; margin: 0; object-fit: contain; box-shadow: 0 24px 80px rgba(0,0,0,.35); cursor: zoom-in; user-select: none; -webkit-user-drag: none; will-change: transform; transition: opacity .15s ease, transform .2s ease; }
.viewer-stage.is-zoomed img { cursor: grab; transition: opacity .15s ease; }
.viewer-stage.is-dragging img { cursor: grabbing; transition: opacity .15s ease; }
.viewer-stage img.is-changing { opacity: .25; }
.viewer-arrow { position: fixed; z-index: 2; top: 50%; width: 46px; height: 46px; color: var(--white); background: rgba(0,0,0,.62); border: 1px solid #555; cursor: pointer; font-size: 21px; }
.viewer-prev { left: 16px; }
.viewer-next { right: 16px; }
.viewer-footer { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 13px var(--pad); border-top: 1px solid #333; }
.viewer-footer p { margin: 0; max-width: 900px; color: #b7b7b2; font-size: 11px; line-height: 1.45; }
.viewer-footer span { color: #73736f; font-size: 9px; white-space: nowrap; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translate(-50%, 16px); padding: 12px 16px; color: var(--ink); background: var(--white); opacity: 0; pointer-events: none; font-size: 12px; font-weight: 900; transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.1,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { min-height: 860px; }
  .hero-art-a { width: 55%; right: -15%; }
  .hero-art-b { width: 35%; right: 25%; }
  .hero-art-c { display: none; }
  .hero-bottom { grid-template-columns: 1fr; gap: 34px; }
  .section-title { grid-template-columns: 1fr; }
  .featured-project, .featured-project.is-reversed { grid-template-columns: 1fr; }
  .featured-project.is-reversed .featured-copy { order: initial; }
  .featured-visual { min-height: 360px; }
  .archive-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-tab:nth-child(2) { border-right: 0; }
  .category-tab:nth-child(n+3) { border-top: 1px solid var(--line); }
  .category-tab:nth-child(3) { border-right: 1px solid var(--line); }
  .secondary-filter { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
  .secondary-buttons { justify-content: flex-start; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .capability-grid article:nth-child(2) { border-right: 0; }
  .capability-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .timeline article { grid-template-columns: .7fr 1.3fr; }
  .timeline > article > p, .timeline-detail { grid-column: 2; }
}

@media (max-width: 560px) {
  .site-header { height: 62px; }
  .wordmark { font-size: 20px; }
  .nav-links { gap: 12px; font-size: 10px; }
  .nav-links a:nth-child(1) { display: none; }
  .hero { min-height: 760px; padding-top: 104px; }
  .hero h1 { font-size: clamp(62px, 20vw, 92px); }
  .hero-art-a { width: 74%; height: 47%; top: 19%; right: -28%; }
  .hero-art-b { width: 50%; height: 36%; right: 20%; bottom: -5%; }
  .hero-summary { max-width: 85%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div { min-height: 88px; border-bottom: 1px solid rgba(255,255,255,.2); }
  .hero-stats div:nth-child(odd) { padding-left: 0; }
  .hero-stats div:nth-child(even) { padding-left: 14px; border-right: 0; }
  .hero-stats strong { font-size: 34px; }
  .work-section, .capabilities-section, .experience-section { padding-top: 76px; padding-bottom: 76px; }
  .section-title { margin-bottom: 54px; }
  .section-title h2 { font-size: 32px; }
  .featured-list { gap: 100px; }
  .featured-copy { padding-top: 32px; }
  .project-index { font-size: 52px; }
  .featured-copy h3 { font-size: 28px; }
  .featured-visual, .featured-visual img { min-height: 255px; }
  .archive-head { margin-top: 120px; }
  .archive-head h2 { font-size: 32px; }
  .category-tab { min-height: 148px; padding: 14px 10px 16px; }
  .category-tab strong { font-size: 17px; }
  .category-tab small { font-size: 9px; }
  .archive-utility { padding: 14px 0 18px; }
  .masonry { columns: 2; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; }
  .gallery-overlay { opacity: 1; transform: none; min-height: 46%; padding: 10px; }
  .gallery-overlay strong { font-size: 13px; max-width: 80%; }
  .gallery-overlay i { right: 10px; bottom: 10px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article, .capability-grid article:not(:first-child) { min-height: 210px; padding: 18px 0 28px; border-right: 0; border-top: 1px solid var(--line); }
  .capability-grid h3 { margin-top: 42px; }
  .timeline article { grid-template-columns: 1fr; gap: 12px; }
  .timeline > article > p, .timeline-detail { grid-column: auto; }
  .contact-section { min-height: 760px; padding-top: 90px; }
  .contact-lead h2 { font-size: 64px; }
  .contact-list a, .contact-list button { grid-template-columns: 82px 1fr 24px; min-height: 70px; }
  .contact-list strong { font-size: 17px; }
  .footer-meta { flex-wrap: wrap; }
  .viewer[open] { grid-template-rows: 62px minmax(0, 1fr) auto; }
  .viewer-topbar > div:first-child { display: grid; gap: 2px; }
  .viewer-topbar strong { font-size: 15px; max-width: 210px; }
  .viewer-body { padding: 16px 38px; }
  .viewer-arrow { width: 34px; height: 42px; font-size: 17px; }
  .viewer-prev { left: 2px; }
  .viewer-next { right: 2px; }
  .viewer-footer { align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
  .viewer-footer span { display: none; }
}

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