:root {
  --black: #0b0b0b;
  --white: #fcfbf9;
  --paper: #f3f0eb;
  --line: #e2ddd5;
  --muted: #7a746c;
  --ink: #161514;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 3.4vw, 50px);
  --header-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .98;
}
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.container { padding-inline: var(--gutter); }

/* hollow text: outline drawn from the filled glyph via #hollow filter (see main.js) */
.hollow { position: relative; display: inline-block; }
.hollow::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  color: var(--white);
  filter: url(#hollow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease-in-out;
}

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--fade { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   HOME (black splash with project index)
   ========================================================= */
body.home { background: var(--black); color: var(--white); min-height: 100vh; overflow-x: hidden; }
.home__bar, .home__foot {
  position: fixed; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px var(--gutter);
  font-size: 13px;
}
.home__bar { top: 0; }
.home__left { display: flex; align-items: center; gap: 22px; }
.menu-open .home__bar { z-index: 40; }
.home__foot { bottom: 0; color: rgba(255,255,255,.75); }
.home__foot a { transition: opacity .3s; }
.home__foot a:hover { opacity: .6; }
.logo { display: inline-flex; align-items: center; gap: 14px; }
.logo__mark { height: 30px; width: auto; flex: none; }
.logo__text { font-family: var(--body); font-weight: 500; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; white-space: nowrap; }
.home__nav { display: flex; gap: 28px; }
.home__nav a { position: relative; }
.home__nav a::after, .site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.home__nav a:hover::after, .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.home__main { position: relative; z-index: 3; min-height: 100vh; display: flex; align-items: center; padding: 120px var(--gutter); }
.home__list { padding-left: clamp(0px, 7vw, 110px); }
.home__title { display: flex; align-items: baseline; gap: 18px; width: fit-content; }
.home__name {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 6.4vw, 104px); line-height: 1.04; letter-spacing: -.01em;
  color: var(--white);
  transition: color .4s ease-in-out, opacity .4s ease-in-out;
}
.home__meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .4s var(--ease); white-space: nowrap; }
.home__list.has-active .home__title:not(.is-active) .home__name { opacity: .3; }
.home__title.is-active .home__name { color: transparent; }
.home__title.is-active .hollow::after { opacity: 1; }
.home__title.is-active .home__meta { opacity: 1; transform: none; }
.home__all { display: inline-flex; margin-top: 34px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 4px; }

.home__media { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.home__layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease-in-out, visibility 0s linear .5s; }
.home__layer img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.home__layer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.66), rgba(0,0,0,.3) 75%); }
.home__layer.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease-in-out, visibility 0s; }
.home__layer.is-active img { transform: scale(1); }

@media (max-width: 720px) {
  .home__nav { display: none; }
  .home__title { flex-direction: column; gap: 4px; margin-bottom: 10px; }
  .home__meta { transform: none; font-size: 11px; }
}

/* =========================================================
   INNER PAGES
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); }
.site-header__left { display: flex; align-items: center; gap: 22px; }
.burger { width: 22px; height: 14px; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.site-nav { display: flex; gap: 26px; font-size: 13px; font-weight: 500; }
.site-nav a { position: relative; }
.site-header .btn { margin-left: 26px; }
.site-header__right { display: flex; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 28px; border-radius: 999px;
  background: var(--black); color: var(--white);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  transition: background .3s, color .3s;
}
.btn:hover { background: #333; }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: #ddd8d0; }
.btn--sm { height: 38px; padding: 0 20px; font-size: 12px; }

/* fullscreen menu */
.menu {
  position: fixed; inset: 0; z-index: 35;
  background: var(--black); color: var(--white);
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu-open .site-header { background: var(--black); color: var(--white); border-color: transparent; }
.menu-open .site-header .btn { background: var(--white); color: var(--black); }
.menu__links a { display: block; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(38px, 6vw, 88px); line-height: 1.05; transition: opacity .3s; }
.menu__links:hover a { opacity: .3; }
.menu__links a:hover { opacity: 1; }
.menu__side { align-self: end; display: grid; gap: 24px; font-size: 14px; color: rgba(255,255,255,.75); }
.menu__side h4 { margin: 0 0 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); font-weight: 600; }
body.menu-open { overflow: hidden; }

/* split intro */
.intro { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; }
.intro__left { padding: 48px var(--gutter); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; background: var(--paper); }
.intro__title { font-size: clamp(52px, 8vw, 128px); }
.intro__sub { max-width: 440px; }
.intro__sub h2 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; line-height: 1.2; margin-top: 6px; }
.intro__right { background: var(--black); color: var(--white); padding: 48px var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.intro__right .dot { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.intro__right .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--white); }
.intro__big { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.05; }
.stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stats b { display: block; font-family: var(--display); font-size: 34px; line-height: 1; }
.stats span { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
  font-size: 13px; transition: background .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--white); }
.chip[aria-pressed="true"] { background: var(--white); color: var(--black); border-color: var(--white); }

/* project grid */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 56px 14px; padding: 14px var(--gutter) 90px;
}
.card { display: block; }
.card[hidden] { display: none; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .5s; }
.card__media img + img { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__media img { transform: scale(1.04); }
.card:hover .card__media img + img { opacity: 1; }
.card__tag { position: absolute; top: 14px; left: 14px; background: var(--white); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.card__title { margin-top: 16px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 16px; letter-spacing: .02em; }
.card__meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--muted); }

/* push banner */
.push { display: grid; grid-template-columns: 1.4fr 1fr; min-height: 560px; }
.push__media { position: relative; overflow: hidden; }
.push__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fader__slide { opacity: 0; transform: scale(1.04); transition: opacity 1s ease-in-out, transform 5s var(--ease); }
.fader__slide.is-active { opacity: 1; transform: scale(1); }
.fader__dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 4px; }
.fader__dots button { width: 26px; height: 26px; display: grid; place-items: center; }
.fader__dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); box-shadow: 0 0 0 1px rgba(0,0,0,.12); transition: background .3s, transform .3s; }
.fader__dots button[aria-current="true"]::before { background: var(--white); transform: scale(1.25); }
.push__content { background: var(--black); color: var(--white); padding: 60px var(--gutter); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; }
.push__content h2 { font-size: clamp(34px, 4vw, 60px); }
.push__content p { color: rgba(255,255,255,.7); max-width: 380px; }

/* footer */
.site-footer { background: var(--black); color: var(--white); padding: 70px var(--gutter) 28px; border-top: 1px solid #222; }
.site-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 60px; }
.site-footer h4 { margin: 0 0 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.site-footer a:hover { opacity: .6; }
.site-footer__brand { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(18px, 3vw, 44px); }
.site-footer__brand svg { height: clamp(70px, 12vw, 180px); width: auto; }
.site-footer__brand span { font-weight: 500; font-size: clamp(16px, 2.4vw, 34px); letter-spacing: .32em; text-transform: uppercase; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: rgba(255,255,255,.5); padding-top: 26px; border-top: 1px solid #222; margin-top: 40px; }

/* =========================================================
   PROJECT DETAIL
   ========================================================= */
.crumbs { display: flex; gap: 8px; font-size: 12px; color: var(--muted); padding: 18px var(--gutter); }
.crumbs a:hover { color: var(--ink); }
.detail { display: grid; grid-template-columns: 1.15fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.slider { position: relative; overflow: hidden; background: var(--paper); aspect-ratio: 16 / 11; touch-action: pan-y; cursor: grab; user-select: none; }
.slider.is-dragging { cursor: grabbing; }
.slider__track { display: flex; height: 100%; transition: transform .7s var(--ease); }
.slider.is-dragging .slider__track { transition: none; }
.slider__slide { flex: 0 0 100%; height: 100%; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.slider__ui { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; color: var(--white); background: linear-gradient(transparent, rgba(0,0,0,.35)); }
.slider__count { font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.slider__arrows { display: flex; gap: 8px; }
.arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--black); transition: transform .3s var(--ease); }
.arrow:hover { transform: scale(1.08); }
.arrow svg { width: 16px; height: 16px; }
.slider__zoom { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.92); color: var(--black); font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 999px; }

.info { padding: 44px var(--gutter); display: flex; flex-direction: column; gap: 28px; border-left: 1px solid var(--line); }
.info h1 { font-size: clamp(36px, 4.4vw, 64px); }
.info__lead { font-size: 18px; line-height: 1.45; max-width: 540px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.specs div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs div:nth-child(odd) { padding-right: 16px; }
.specs dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.info__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: auto; }
.link-underline { font-size: 13px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.story { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; padding: 100px var(--gutter); }
.story__text { display: grid; gap: 18px; font-size: 18px; line-height: 1.6; max-width: 760px; }

.gallery-head { display: flex; justify-content: space-between; align-items: end; padding: 0 var(--gutter) 24px; gap: 20px; }
.gallery-head h2 { font-size: clamp(30px, 4vw, 56px); }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding: 0 var(--gutter) 100px; }
.gallery button { position: relative; overflow: hidden; background: var(--paper); aspect-ratio: 4 / 3; grid-column: span 2; }
.gallery button:nth-child(5n + 1) { grid-column: span 4; aspect-ratio: auto; grid-row: span 2; }
.gallery button:nth-child(5n + 4), .gallery button:nth-child(5n + 5) { grid-column: span 3; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }

.next { position: relative; display: block; overflow: hidden; background: var(--black); color: var(--white); padding: 90px var(--gutter); }
.next__bg { position: absolute; inset: 0; opacity: .35; transition: opacity .6s, transform 1.6s var(--ease); }
.next__bg img { width: 100%; height: 100%; object-fit: cover; }
.next:hover .next__bg { opacity: .65; transform: scale(1.03); }
.next__inner { position: relative; display: grid; gap: 10px; }
.next__name { font-size: clamp(48px, 9vw, 150px); color: transparent; transition: color .5s; }
.next__name.hollow::after { opacity: 1; }
.next:hover .next__name { color: var(--white); }
.next:hover .next__name.hollow::after { opacity: 0; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(8,8,8,.96); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; color: var(--white); }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); font-size: 13px; }
.lightbox__stage { position: relative; min-height: 0; }
/* Absolute positioning gives the percentages a definite box, so the image always fits the stage. */
.lightbox__stage img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 2 * var(--gutter)); max-height: 100%; object-fit: contain; }
.lightbox__bottom { display: flex; justify-content: center; gap: 10px; padding: 20px; }
.lightbox .arrow { background: rgba(255,255,255,.12); color: var(--white); }
/* Landscape phones: trim the chrome so the image keeps most of the short height. */
@media (max-height: 500px) {
  .lightbox__top { padding-block: 10px; }
  .lightbox__bottom { padding: 8px; }
}

/* =========================================================
   STUDIO / CONTACT
   ========================================================= */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; padding: 100px var(--gutter); }
.about__text { display: grid; gap: 18px; font-size: 18px; line-height: 1.6; max-width: 720px; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service { padding: 34px var(--gutter) 44px; border-right: 1px solid var(--line); }
.service:last-child { border-right: 0; }
.service b { font-family: var(--display); font-size: 13px; color: var(--muted); }
.service h3 { font-family: var(--display); text-transform: uppercase; font-size: 22px; margin: 26px 0 10px; }
.service p { color: var(--muted); font-size: 14px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; background: var(--black); color: var(--white); }
.contact__left { padding: 80px var(--gutter); display: grid; gap: 30px; align-content: start; }
.contact__left h2 { font-size: clamp(40px, 5.4vw, 84px); }
.contact__list { display: grid; gap: 14px; font-size: 16px; }
.contact__list span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.form { padding: 80px var(--gutter); display: grid; gap: 18px; border-left: 1px solid #222; align-content: start; }
.field { display: grid; gap: 8px; }
.field label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.field input, .field select, .field textarea {
  font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid #3a3a3a; padding: 10px 0; border-radius: 0; outline: none;
  transition: border-color .25s;
}
.field select option { color: var(--black); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--white); }
.field textarea { min-height: 120px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .btn { justify-self: start; margin-top: 10px; }

.hint { font-size: 12px; color: var(--muted); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .info { border-left: 0; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  body { font-size: 14px; }
  .site-nav, .site-header .btn { display: none; }
  .logo__mark { height: 24px; }
  .logo__text { font-size: 10px; letter-spacing: .24em; }
  .intro, .push, .contact, .about, .story { grid-template-columns: 1fr; }
  .intro__left, .intro__right { padding-block: 36px; }
  .push { min-height: 0; }
  .push__media { aspect-ratio: 4 / 3; }
  .grid { grid-template-columns: 1fr; gap: 40px; }
  .menu { grid-template-columns: 1fr; align-content: start; }
  .specs { grid-template-columns: 1fr; }
  .specs div:nth-child(odd) { padding-right: 0; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery button, .gallery button:nth-child(5n + 1), .gallery button:nth-child(5n + 4), .gallery button:nth-child(5n + 5) { grid-column: span 1; grid-row: auto; aspect-ratio: 1; }
  .gallery button:nth-child(3n + 1) { grid-column: span 2; aspect-ratio: 16 / 10; }
  .services { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--line); }
  .form { border-left: 0; border-right: 0; }
  .form__row { grid-template-columns: 1fr; }
  .story, .about { padding-block: 64px; gap: 20px; }
  .story__text, .about__text { font-size: 16px; }
  .site-footer__bottom { flex-direction: column; }
  .gallery-head { flex-direction: column; align-items: flex-start; }
}
