:root {
  --black: #000;
  --white: #fff;
  --ink: #4f6478;
  --body: #5f7184;
  --muted: #8797a8;
  --text-blue: #4f6478;
  --light-blue: #fff;
  --line: #e6e6e6;
  --soft: #f6f6f4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--body);
  background: var(--black);
  font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  padding: 0 2.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--light-blue);
  transition: height .3s ease, background .3s ease, box-shadow .3s ease;
}

.site-header.is-compact {
  height: 64px;
  background: #000000;
  box-shadow: 0 1px 18px rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px);
  color: #ffffff;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: currentColor;
  letter-spacing: 0;
}

.brand span {
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.brand small {
  font-size: 10px;
  color: currentColor;
  line-height: 1;
  font-weight: 700;
}

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

.desktop-nav a {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-size: 17px;
  color: currentColor;
  font-weight: 800;
  transition: opacity .25s ease;
}

.desktop-nav a span {
  font-size: 13px;
  color: currentColor;
  font-weight: 800;
}

.site-header.is-compact .brand small,
.site-header.is-compact .desktop-nav a span {
  color: #ffffff;
}

.desktop-nav a:hover {
  opacity: .48;
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 28px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}

.mobile-menu {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, .93);
  color: var(--light-blue);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu nav {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(560px, 80vw);
  transform: translate(-50%, -50%);
  text-align: center;
}

.mobile-menu nav a {
  display: block;
  height: 72px;
  overflow: hidden;
  font-size: 48px;
  line-height: 72px;
  text-transform: uppercase;
}

.mobile-menu nav span {
  display: block;
  color: var(--light-blue);
  font-size: 18px;
  line-height: 24px;
}

.mobile-menu p {
  position: absolute;
  left: 2.5%;
  bottom: 2.5%;
  margin: 0;
  color: var(--white);
  font-size: 13px;
}

.menu-close,
.modal-close {
  position: absolute;
  width: 42px;
  height: 42px;
}

.menu-close {
  top: 4%;
  right: 4%;
}

.menu-close::before,
.menu-close::after,
.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 7px;
  width: 28px;
  height: 2px;
  background: currentColor;
  transition: transform .4s ease;
}

.menu-close::before,
.modal-close::before {
  transform: rotate(45deg);
}

.menu-close::after,
.modal-close::after {
  transform: rotate(-45deg);
}

.menu-close:hover,
.modal-close:hover {
  transform: rotate(180deg);
}

.hero {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 134px 2.5% 80px;
  display: flex;
  align-items: center;
  background: var(--black);
}

.hero-copy {
  max-width: 1180px;
  animation: rise .7s ease both;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--light-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 38px;
  color: var(--white);
  font-size: clamp(52px, 7.4vw, 136px);
  line-height: .86;
  font-weight: 900;
}

.outline-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 260px;
  height: 52px;
  padding-left: 24px;
  border: 1px solid rgba(255, 255, 255, .42);
  color: var(--light-blue);
  font-size: 13px;
  font-weight: 800;
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}

.outline-link i {
  position: absolute;
  right: 22px;
  width: 26px;
  height: 1px;
  background: currentColor;
}

.outline-link i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 9px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.outline-link:hover {
  color: var(--white);
  border-color: var(--white);
  transform: translateX(4px);
}

.intro {
  position: relative;
  z-index: 2;
  padding: 70px 0 92px;
  background: #000000;
  color: #ffffff;
}

.intro h2 {
  width: 100%;
  max-width: none;
  margin: 0 0 0;
  padding: 22px 2.5% 42px;
  border-top: 1px solid rgba(255, 255, 255, .28);
  color: #ffffff;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.15;
  font-weight: 900;
}

.intro-text {
  width: 100%;
  margin: 0;
}

.intro-text p {
  margin: 0;
  padding: 18px 2.5%;
  border-top: 1px solid rgba(255, 255, 255, .28);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.75;
  transition: color .3s ease;
}

.intro-text p:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, .28);
}

.intro:hover .intro-text p {
  color: #ffffff;
}

.work-section {
  width: 100%;
  margin: 0;
  padding: 64px 0 150px;
  background: #000000;
  color: #ffffff;
}

.work-section .section-heading,
.work-section .filter-bar,
.work-section .case-grid {
  width: 95%;
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--text-blue);
  font-size: clamp(28px, 3.3vw, 54px);
  line-height: 1;
  font-weight: 800;
}

.work-section .section-heading h2 {
  color: #ffffff;
  font-weight: 800;
}

.work-section .section-heading p,
.work-section .filter-bar button {
  color: #ffffff;
}

.work-section .filter-bar button:hover,
.work-section .filter-bar button.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  margin: -10px 0 32px;
}

.filter-bar button {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 32px;
  border-bottom: 1px solid transparent;
}

.filter-bar button:hover,
.filter-bar button.active {
  color: var(--text-blue);
  border-bottom-color: var(--text-blue);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.case-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #000000;
  isolation: isolate;
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(4px);
  transition: opacity .35s ease;
}

.case-card[hidden] {
  display: none;
}

.case-card img {
  height: 100%;
  object-fit: cover;
  filter: blur(6px) brightness(1.12) saturate(.82);
  transform: scale(1.04);
  transition: transform .35s ease, filter .35s ease;
}

.case-card:hover img,
.case-card.is-in-view img {
  transform: scale(1);
  filter: blur(0) brightness(1) saturate(1);
}

.case-card:hover::after,
.case-card.is-in-view::after {
  opacity: 0;
}

.case-summary {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(255, 255, 255, .52);
  opacity: 1;
  pointer-events: none;
  transition: color .28s ease, opacity .28s ease;
  background: transparent;
}

.case-card:hover .case-summary,
.case-card.is-in-view .case-summary {
  color: rgba(255, 255, 255, .22);
}

.case-summary span {
  font-size: 12px;
  text-transform: uppercase;
}

.case-summary strong {
  display: none;
  max-width: 86%;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
}

.case-summary small {
  color: rgba(255, 255, 255, .46);
  font-size: 13px;
}

.case-card:hover .case-summary small {
  color: rgba(255, 255, 255, .2);
}

.statement {
  position: relative;
  height: 760px;
  margin: 0 0 120px;
  overflow: hidden;
  background: var(--black);
}

.statement-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(980px, 90vw);
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--light-blue);
}

.statement-inner p {
  margin: 0 0 44px;
  font-size: clamp(48px, 7vw, 128px);
  font-weight: 800;
  line-height: 1;
}

.statement-inner a {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 300px;
  height: 64px;
  padding-left: 28px;
  border: 1px solid rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  transition: background .25s ease, color .25s ease;
}

.statement-inner a i {
  position: absolute;
  right: 28px;
  width: 24px;
  height: 1px;
  background: currentColor;
}

.statement-inner a:hover {
  color: var(--text-blue);
  background: var(--white);
}

.notes {
  width: 85.93%;
  margin: 0 auto 170px;
  background: #000000;
  color: #ffffff;
}

.notes .section-heading,
.notes .section-heading p,
.notes .section-heading h2,
.notes-grid span,
.notes-grid h3,
.notes-grid p {
  color: #ffffff;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.82);
}

.notes-grid article {
  min-height: 220px;
  padding: 28px 26px 34px 0;
  border-bottom: 1px solid rgba(255,255,255,.82);
}

.notes-grid span {
  display: block;
  margin-bottom: 36px;
  color: #ffffff;
  font-size: 13px;
}

.notes-grid h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.notes-grid p {
  max-width: 260px;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
}

.site-footer {
  padding: 76px 7.2%;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  background: var(--black);
  color: var(--light-blue);
}

.footer-nav a {
  display: block;
  color: var(--light-blue);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  transition: opacity .25s ease;
}

.footer-nav a:hover {
  opacity: .5;
}

.footer-qr {
  align-self: flex-end;
  text-align: center;
}

.footer-qr img {
  display: block;
  width: 132px;
  height: 132px;
  padding: 7px;
  object-fit: contain;
  background: #ffffff;
}

.footer-qr p {
  margin: 10px 0 0;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.footer-meta {
  align-self: flex-end;
  color: var(--white);
  text-align: right;
}

.footer-meta p {
  margin: 8px 0;
  font-size: 14px;
}

.project-modal {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: none;
  padding: 34px;
  background: rgba(0, 0, 0, .78);
}

.project-modal.is-open {
  display: block;
}

.modal-panel {
  position: relative;
  width: min(1280px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 46px;
  overflow: auto;
  background: var(--white);
}

.modal-close {
  top: 24px;
  right: 24px;
  color: var(--text-blue);
}

.modal-copy {
  margin-bottom: 34px;
}

.modal-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.modal-copy h2 {
  margin: 0;
  color: var(--text-blue);
  font-size: clamp(30px, 4vw, 64px);
  line-height: 1.05;
  font-weight: 800;
}

.modal-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.modal-gallery img {
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  background: var(--soft);
}

.back-top {
  position: fixed;
  right: 3.5%;
  bottom: 8%;
  z-index: 40;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(0,0,0,.28);
  background: rgba(255,255,255,.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.back-top.is-visible {
  opacity: .62;
  pointer-events: auto;
}

.back-top:hover {
  opacity: 1;
}

.back-top::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 17px;
  width: 12px;
  height: 12px;
  border-left: 1px solid var(--text-blue);
  border-top: 1px solid var(--text-blue);
  transform: rotate(45deg);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

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

@media (max-width: 900px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 750px) {
  .site-header {
    height: 76px;
  }

  .brand span {
    font-size: 20px;
  }

  .hero {
    width: 100%;
    padding: 96px 3% 58px;
    gap: 34px;
  }

  .hero h1 {
    font-size: 56px;
    line-height: .9;
  }

  .intro {
    padding: 48px 0 64px;
  }

  .intro h2 {
    width: 100%;
    padding: 20px 3% 34px;
  }

  .intro-text p {
    padding: 16px 3%;
    line-height: 1.7;
  }

  .work-section {
    width: 100%;
    padding-left: 3%;
    padding-right: 3%;
    padding-bottom: 86px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-bottom: 12px;
  }

  .filter-bar {
    justify-content: flex-start;
    gap: 10px 18px;
  }

  .notes-grid,
  .modal-gallery {
    grid-template-columns: 1fr;
  }

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

  .case-card {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .case-summary {
    padding: 14px 12px;
    opacity: 1;
  }

  .case-summary span,
  .case-summary small {
    font-size: 10px;
    line-height: 1.35;
  }

  .statement {
    height: 520px;
    margin-bottom: 80px;
  }

  .statement-inner a {
    width: 250px;
  }

  .notes {
    width: 94%;
    margin-bottom: 90px;
  }

  .site-footer {
    display: block;
    padding: 54px 6%;
  }

  .footer-meta {
    margin-top: 46px;
    text-align: left;
  }

  .footer-qr {
    margin-top: 42px;
    text-align: left;
  }

  .footer-qr img {
    width: 120px;
    height: 120px;
  }

  .project-modal {
    padding: 0;
  }

  .modal-panel {
    padding: 66px 18px 22px;
  }

  .mobile-menu nav a {
    font-size: 40px;
  }

  .back-top {
    display: none;
  }
}
