:root {
  --bg: #f3f2ee;
  --ink: #101010;
  --muted: #77746e;
  --line: rgba(16,16,16,.16);
  --pad: clamp(18px, 2.4vw, 42px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: #101010; color: #fff; }

.page-loader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .55s ease, visibility .55s ease;
}
.page-loader span { width: 44px; height: 1px; background: var(--ink); animation: loader 1s ease-in-out infinite; }
body.is-loaded .page-loader { opacity: 0; visibility: hidden; }
@keyframes loader { 50% { transform: scaleX(2.2); opacity: .35; } }

.site-header {
  position: fixed; z-index: 80; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 70px; padding: 0 var(--pad);
  mix-blend-mode: difference; color: white;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.brand { justify-self: start; }
.brand sup { font-size: 7px; margin-left: 2px; }
.top-nav { display: flex; gap: clamp(18px, 3vw, 46px); }
.top-nav a, .language-toggle { opacity: .76; transition: opacity .2s ease; }
.top-nav a:hover, .language-toggle:hover { opacity: 1; }
.language-toggle { justify-self: end; border: 0; padding: 8px 0; background: transparent; cursor: pointer; font-weight: 700; }

.hero {
  min-height: 100svh; padding: 105px var(--pad) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-kicker { font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.hero-title {
  margin: auto 0; font-size: clamp(80px, 17vw, 285px); line-height: .75;
  letter-spacing: -.085em; font-weight: 800;
}
.hero-title span { display: block; margin-left: 16.5vw; font-weight: 300; font-style: italic; }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.hero-bottom p { margin: 0; max-width: 370px; font-size: clamp(14px, 1.2vw, 18px); line-height: 1.45; }
.scroll-link { font-size: 10px; letter-spacing: .12em; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }

.work-section { padding: 46px var(--pad) 120px; }
.section-bar {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.section-bar h2 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.filter {
  border: 0; background: transparent; cursor: pointer; padding: 0;
  color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
}
.filter::after { content: ""; display: block; width: 0; height: 1px; margin-top: 4px; background: var(--ink); transition: width .22s ease; }
.filter:hover, .filter.is-active { color: var(--ink); }
.filter.is-active::after { width: 100%; }

.gallery {
  column-count: 2;
  column-gap: clamp(10px, 1.35vw, 22px);
}
.work-card {
  position: relative; display: block; width: 100%; min-width: 0; overflow: hidden;
  break-inside: avoid; margin: 0 0 clamp(10px, 1.35vw, 22px);
  background: #deddd7; cursor: zoom-in;
  opacity: 0; transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.work-card.is-visible { opacity: 1; transform: translateY(0); }
.work-card.span-6, .work-card.span-8, .work-card.span-12 { width: 100%; }
.work-card.is-hidden { display: none; }
.work-card button { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; text-align: left; }
.work-image-wrap { position: relative; overflow: hidden; background: #deddd7; }
.work-image-wrap::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .35s ease; }
.work-card img { display: block; width: 100%; height: auto; min-height: 240px; object-fit: cover; transition: transform .7s cubic-bezier(.2,.75,.2,1); }
.work-card:hover img { transform: scale(1.025); }
.work-card:hover .work-image-wrap::after { opacity: .12; }
.work-info {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; gap: 20px;
  padding: 18px; color: white;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease;
}
.work-card:hover .work-info { opacity: 1; transform: translateY(0); }
.work-title { font-size: 13px; font-weight: 600; }
.work-meta { font-size: 10px; opacity: .72; letter-spacing: .08em; text-transform: uppercase; text-align: right; }

.about-section {
  display: grid; grid-template-columns: 1fr 3fr; gap: 30px;
  padding: 120px var(--pad) 160px; border-top: 1px solid var(--line);
}
.about-label { font-size: 11px; letter-spacing: .1em; }
.about-copy { max-width: 1100px; }
.about-lead { margin: 0 0 80px; font-size: clamp(36px, 5.7vw, 92px); line-height: .98; letter-spacing: -.055em; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.about-grid p { max-width: 540px; margin: 0; font-size: 16px; line-height: 1.65; color: #4f4d48; }
.services { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 12px; letter-spacing: .08em; }
.services span { border-bottom: 1px solid var(--line); width: 100%; padding-bottom: 12px; }

.site-footer { background: #101010; color: #f4f3ef; padding: 95px var(--pad) 28px; }
.footer-title { font-size: clamp(52px, 12vw, 190px); line-height: .78; letter-spacing: -.07em; font-weight: 700; max-width: 1400px; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; margin-top: 100px; font-size: 11px; letter-spacing: .08em; }
.footer-links { display: flex; gap: 26px; }
.footer-bottom > span { justify-self: end; }
.footer-bottom a { opacity: .7; transition: opacity .2s; }
.footer-bottom a:hover { opacity: 1; }

.lightbox {
  width: 100vw; max-width: none; height: 100svh; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(10,10,10,.96); color: white; overflow: hidden;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; width: min(88vw, 1500px); height: 88svh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox-image { max-width: 100%; max-height: calc(88svh - 66px); object-fit: contain; }
.lightbox figcaption { width: 100%; display: grid; grid-template-columns: 60px 1fr auto; gap: 20px; padding-top: 16px; align-items: baseline; font-size: 12px; }
.lightbox-index, .lightbox-meta { opacity: .55; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.lightbox-close, .lightbox-arrow { position: fixed; z-index: 2; border: 0; background: transparent; color: white; cursor: pointer; }
.lightbox-close { top: 18px; right: 27px; font-size: 36px; font-weight: 200; }
.lightbox-arrow { top: 50%; transform: translateY(-50%); font-size: 24px; opacity: .55; padding: 20px; }
.lightbox-arrow:hover { opacity: 1; }
.lightbox-arrow.prev { left: 7px; }
.lightbox-arrow.next { right: 7px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .top-nav { display: none; }
  .hero-title { font-size: clamp(74px, 20vw, 170px); }
  .hero-title span { margin-left: 4vw; }
  .gallery { column-count: 2; }
  .about-section { grid-template-columns: 1fr; }
  .about-lead { margin-bottom: 55px; }
}

@media (max-width: 620px) {
  .site-header { height: 58px; }
  .hero { min-height: 88svh; padding-top: 88px; }
  .hero-title { line-height: .82; }
  .hero-bottom { align-items: flex-start; flex-direction: column; }
  .section-bar { align-items: flex-start; flex-direction: column; }
  .filters { justify-content: flex-start; gap: 10px 16px; }
  .gallery { column-count: 1; column-gap: 14px; }
  .work-card { margin-bottom: 14px; }
  .work-info { opacity: 1; transform: none; padding: 14px; }
  .work-card img { min-height: 0; }
  .about-section { padding-top: 90px; padding-bottom: 110px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .site-footer { padding-top: 70px; }
  .footer-title { line-height: .87; }
  .footer-bottom { grid-template-columns: 1fr; margin-top: 70px; }
  .footer-bottom > span { justify-self: start; }
  .lightbox figure { width: 92vw; }
  .lightbox figcaption { grid-template-columns: 42px 1fr; }
  .lightbox-meta { display: none; }
}

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