@font-face {
  font-family: "Glow Sans";
  src: url("./fonts/glow-sans-sc-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root { --ink: #111; --line: #b7b7b7; --paper: #fff; --shell: min(72vw, 1140px); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding-top: 58px; color: var(--ink); background: var(--paper); font-family: "Glow Sans", "PingFang SC", sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.content-shell { width: var(--shell); margin-inline: auto; }

.site-header { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 58px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 max(14vw, calc((100vw - 1140px) / 2)); background: rgba(255,255,255,.97); transform: translateY(0); transition: transform .2s ease, box-shadow .2s ease; will-change: transform; }
.site-header.nav-hidden { transform: translateY(-101%); }
.site-header.nav-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.brand-mark { width: 32px; height: 28px; display: flex; align-items: center; justify-content: center; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.desktop-nav { display: flex; gap: 28px; font-size: 10px; }
.desktop-nav a { padding: 8px 0; transition: opacity .2s ease; }
.desktop-nav a:hover { opacity: .45; }
.menu-button { justify-self: end; width: 26px; height: 26px; padding: 7px 3px; border: 0; background: none; cursor: pointer; }
.menu-button i { display: block; height: 1px; background: #111; margin: 4px 0; transition: transform .25s ease; }
.menu-button[aria-expanded="true"] i:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] i:last-child { transform: translateY(-2.5px) rotate(-45deg); }
.mobile-menu { position: fixed; z-index: 15; inset: 58px 0 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 8vw; background: rgba(255,255,255,.98); font-size: clamp(2.4rem, 7vw, 5rem); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .25s ease; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }

.hero { width: 100%; overflow: hidden; background: #e9e9e9; }
.hero img { width: 100%; height: auto; }
.hero-carousel { position: relative; aspect-ratio: 2800 / 1468; }
.hero-carousel__track { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s ease; }
.hero-slide.is-active { z-index: 1; opacity: 1; visibility: visible; }
.hero-slide img,
.hero-slide video { display: block; width: 100%; height: 100%; object-fit: cover; }
.intro { padding: clamp(44px, 7vw, 112px) 0 clamp(120px, 15vw, 250px); }
.intro h1 { margin: 0; font-size: clamp(2.3rem, 4vw, 4.8rem); line-height: 1.06; font-weight: 400; letter-spacing: -.045em; }
.section { padding-bottom: clamp(140px, 16vw, 260px); scroll-margin-top: 70px; }
.section-heading { display: flex; align-items: center; gap: 30px; margin-bottom: clamp(52px, 6vw, 92px); }
.section-heading h2 { margin: 0; color: #666; font-size: 18px; font-weight: 400; letter-spacing: .02em; }
.section-heading span { height: 1px; flex: 1; background: var(--line); }

.project-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; align-items: start; }
.project-card { grid-column: span 2; appearance: none; padding: 0; border: 0; background: #f2f2f2; cursor: zoom-in; overflow: hidden; }
.project-card--large { grid-column: span 3; }
.project-card img { width: 100%; aspect-ratio: 1.5 / 1; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .55s ease; }
.project-card:not(.project-card--motion):hover img { transform: scale(1.025); filter: brightness(.94); }
.project-card--motion { position: relative; aspect-ratio: 1.5 / 1; cursor: pointer; }
.project-card--motion .project-card__still,
.project-card--motion .project-card__motion { position: absolute; inset: 0; display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: none; }
.project-card--motion .project-card__motion { z-index: 1; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.project-card--motion.is-motion-active .project-card__motion { opacity: 1; }
.more-label { margin: 55px 0 0; text-align: center; color: #777; font-size: 9px; letter-spacing: .08em; }

.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: start; }
.news-card { margin: 0; overflow: hidden; background: #eee; }
.news-card img { width: 100%; aspect-ratio: 1.22 / 1; object-fit: cover; }
.news-card--portrait img { aspect-ratio: .72 / 1; }

.contact { border-top: 1px solid #e5e5e5; padding: 24px 0 70px; scroll-margin-top: 70px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.contact-layout h2 { margin: 0; font-size: 28px; font-weight: 400; }
.qr-list { display: flex; gap: 38px; }
.qr-list figure { width: 92px; margin: 0; }
.qr-list figcaption { margin-bottom: 6px; font-size: 12px; }
.qr-list img { width: 92px; aspect-ratio: 1; object-fit: cover; }
.footer-logo { flex: 1; display: flex; align-items: center; justify-content: center; padding: clamp(70px, 8vh, 120px) 0 clamp(36px, 5vh, 72px); }
.footer-logo img { width: 30.925vw; max-width: none; max-height: calc(100svh - 300px); object-fit: contain; mix-blend-mode: multiply; }

.lightbox { width: min(92vw, 1400px); max-height: 90vh; padding: 0; border: 0; overflow: visible; background: transparent; }
.lightbox::backdrop { background: rgba(0,0,0,.92); backdrop-filter: blur(8px); }
.lightbox img { max-width: 100%; max-height: 86vh; margin: auto; }
.lightbox-close { position: absolute; right: 0; top: -44px; padding: 0; border: 0; color: #fff; background: transparent; font-size: 28px; cursor: pointer; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 780px) {
  :root { --shell: calc(100vw - 36px); --header-inline: clamp(12px, 4vw, 18px); }
  body { padding-top: 54px; }
  .site-header { height: 54px; padding: 0 var(--header-inline); grid-template-columns: auto 1fr; column-gap: 12px; }
  .site-header.nav-hidden { transform: none; }
  .desktop-nav { display: flex; justify-self: end; align-items: center; gap: clamp(10px, 3.6vw, 20px); font-size: clamp(9px, 2.75vw, 11px); white-space: nowrap; }
  .desktop-nav a { padding: 10px 0; }
  .menu-button,
  .mobile-menu { display: none; }
  .brand-mark { width: 30px; height: 26px; }
  .intro { padding: 40px 0 110px; }
  .intro h1 { font-size: 2.35rem; }
  .section { padding-bottom: 120px; }
  .section-heading { gap: 18px; margin-bottom: 42px; }
  .section-heading h2 { font-size: 15px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .project-card, .project-card--large { grid-column: span 1; }
  .project-card:first-child { grid-column: 1 / -1; }
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .contact-layout { grid-template-columns: 1fr; gap: 46px; }
  .contact-layout h2 { font-size: 24px; }
  .qr-list { gap: 24px; }
  .footer-logo { padding: 60px 0 40px; }
  .footer-logo img { width: 48vw; max-height: calc(100svh - 300px); }
}

@media (max-width: 360px) {
  :root { --header-inline: 10px; }
  .site-header { column-gap: 8px; }
  .desktop-nav { gap: 9px; font-size: 9px; }
  .brand-mark { width: 28px; height: 24px; }
}

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