/* UPFORM — styles */
:root {
  --bg: #edeee5;
  --fg: #000;
  --accent: #3aa748; /* brand green */
  --navy: #1b1b86;
  --green: #3aa748;
  --gutter: 30px;
  --gap: 15px;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --bold: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --expo-out: cubic-bezier(0.16, 1, 0.3, 1);
  --expo-io: cubic-bezier(0.87, 0, 0.13, 1);
}
@media (max-width: 1023px) { :root { --gutter: 16px; --gap: 10px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 18px; line-height: 1.25; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; height: 100dvh; }
@media (hover: hover) and (pointer: fine) { body, a, button { cursor: none; } }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
img { display: block; }
::selection { background: var(--accent); color: #fff; }

.f-bold { font-family: var(--bold); font-weight: 800; font-stretch: 92%; text-transform: uppercase; letter-spacing: -0.015em; }
.f-serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: 0; line-height: 1.2; }
.yel { color: var(--accent); }

/* ---------- Cursor + pill ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none;
  /* logo corner bracket pointing up-left; its sharp tip is the click point, like an arrow cursor */
  width: 16px; height: 16px; margin: 0;
  background: var(--green, #3aa748);
  clip-path: polygon(0 0, 100% 0, 100% 41%, 41% 41%, 41% 100%, 0 100%);
}
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor, .pill { display: none !important; } }
.pill {
  position: fixed; top: 0; left: 0; z-index: 399; pointer-events: none;
  background: var(--accent); color: #fff; font-size: 12px; line-height: 20px; height: 20px; padding: 0 8px; white-space: nowrap; letter-spacing: 0;
  clip-path: inset(0 100% 0 0); transition: clip-path 0.45s var(--expo-out);
}
.pill.is-on { clip-path: inset(0 0 0 0); }

/* ---------- Curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.curtain.is-active { pointer-events: auto; }
.curtain__sheet {
  position: absolute; left: -10%; right: -10%; top: 0; height: 100%;
  background: var(--accent); transform: translateY(105%);
  will-change: transform, border-radius;
}
.curtain__title, .curtain__sub, .curtain__count { position: absolute; left: 0; right: 0; text-align: center; color: #fff; }
.curtain__title { top: 52%; transform: translateY(-50%); font-size: clamp(40px, 5.4vw, 92px); line-height: 0.95; white-space: nowrap; }
.curtain__title .ch { vertical-align: top; }
.curtain__title .ch { display: inline-block; }
.curtain__title .ch.f-bold { font-stretch: 92%; }
.curtain__sub { top: calc(50% + clamp(40px, 4.2vw, 64px)); font-size: clamp(30px, 3.2vw, 46px); }
.curtain__count { bottom: 30px; font-size: 12px; font-variant-numeric: tabular-nums; }
.curtain__title, .curtain__sub, .curtain__count { opacity: 0; }
.curtain.show-text .curtain__title, .curtain.show-text .curtain__count, .curtain.show-text .curtain__sub { opacity: 1; }

/* intro (preloader) mode */
.curtain.is-intro { background: var(--bg); }
.curtain.is-intro .curtain__sheet { background: #000; }
.curtain.is-intro .curtain__title, .curtain.is-intro .curtain__sub, .curtain.is-intro .curtain__count { color: #000; transition: color 0.35s; }
.curtain.is-intro.on-dark .curtain__title, .curtain.is-intro.on-dark .curtain__sub, .curtain.is-intro.on-dark .curtain__count { color: #fff; }
.curtain.is-intro .curtain__title { font-family: var(--bold); font-weight: 800; font-stretch: 92%; font-size: clamp(72px, 10.6vw, 152px); line-height: 0.82; letter-spacing: -0.015em; transform: translateY(-62%); }

/* ---------- Top-right mark ---------- */
.mark { position: fixed; top: var(--gutter); right: var(--gutter); z-index: 120; color: #fff; mix-blend-mode: difference; }
.mark svg { display: block; }
/* logo corner bracket (sized in em against Archivo's 0.686em cap height) */
.wm-corner { display: inline-block; width: 0.212em; height: 0.212em; margin-left: -0.026em; vertical-align: 0.698em; background: var(--green);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 59% 100%, 59% 41%, 0 41%); }

/* ---------- Footer row ---------- */
.foot {
  position: fixed; left: 0; right: 0; bottom: var(--gutter); z-index: 110; height: 24px;
  display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gutter);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0; pointer-events: none;
  color: #fff; mix-blend-mode: difference;
}
.foot > * { pointer-events: auto; display: flex; align-items: center; }
.foot__dash { margin: 0 9px; }
.foot__bar { margin: 0 16px 0 8px; }
.foot__r .foot__bar { margin: 0 16px; }
.sound { display: inline-flex; align-items: center; height: 24px; }
.sound .sound__on { display: none; }
html[data-sound-on] .sound .sound__on { display: inline; }
html[data-sound-on] .sound .sound__off { display: none; }
.hover-scr { display: inline-block; }

/* ---------- Menu ---------- */
.menu {
  position: fixed; right: var(--gutter); bottom: calc(var(--gutter) + 50px); z-index: 130;
  width: 60px; height: 40px; background: #000; border-radius: 4px; overflow: hidden;
  transition: width 0.6s var(--expo-out), height 0.6s var(--expo-out), border-radius 0.6s var(--expo-out);
}
.menu.is-open { width: 228px; height: 202px; border-radius: 8px; }
.menu__btn { position: absolute; right: 0; bottom: 0; z-index: 2; width: 60px; height: 40px; display: grid; place-content: center; gap: 6px; transition: opacity 0.25s; }
.menu__btn i { display: block; width: 30px; height: 1.5px; background: #fff; transition: transform 0.45s var(--expo-out), background 0.3s; }
.menu:hover .menu__btn i, .menu.is-open .menu__btn i { background: var(--accent); }
.menu.is-open .menu__btn { opacity: 0; pointer-events: none; }
.menu__list { list-style: none; margin: 0; padding: 22px 4px 0 0; position: absolute; top: 0; right: 0; width: 228px; text-align: right; }
.menu__list li { height: 54px; display: flex; justify-content: flex-end; align-items: center; }
.menu__list a { position: relative; display: inline-block; font-size: 38px; line-height: 44px; color: #fff; padding: 0 4px 0 8px; letter-spacing: -0.02em; white-space: nowrap; }
.menu__list a span { position: relative; z-index: 1; display: inline-block; transform: translateY(120%); transition: transform 0.6s var(--expo-out), color 0.25s; }
.menu.is-open .menu__list li:nth-child(1) a span { transform: none; transition-delay: 0.08s; }
.menu.is-open .menu__list li:nth-child(2) a span { transform: none; transition-delay: 0.14s; }
.menu.is-open .menu__list li:nth-child(3) a span { transform: none; transition-delay: 0.2s; }
.menu__list a b { position: absolute; inset: 2px 0; background: var(--accent); clip-path: inset(0 100% 0 0); transition: clip-path 0.5s var(--expo-out); }
.menu__list a:hover b, .menu__list a.is-current b { clip-path: inset(0 0 0 0); }
.menu__list a:hover span, .menu__list a.is-current span { color: #fff; }
.menu__list a.is-current:not(:hover) b { clip-path: inset(0 calc(100% - 26px) 0 0); height: 2px; top: 50%; inset: auto; left: 0; width: 26px; }
.menu__list a.is-current:not(:hover) span { color: #fff; }

/* ---------- Views ---------- */
#app { position: relative; }
.view { min-height: 100dvh; }

/* Home */
.home { position: relative; height: 100dvh; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.home__skew { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.home__top { position: absolute; left: 0; right: 0; top: 0; height: 60%; }
.home__bottom {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end;
  padding: 0 var(--gutter) calc(var(--gutter) * 2 + 24px);
}
.card { position: absolute; top: 0; left: 0; will-change: transform; }
.card__media { position: relative; overflow: hidden; width: 100%; background: #d8d9cf; }
.card__img { position: absolute; top: 0; bottom: 0; left: -15%; width: 130%; height: 100%; will-change: transform; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; transition: transform 0.6s var(--expo-out); pointer-events: none; }
.card.is-hover .card__img img { transform: scale(1.04); }
.card__meta { padding: 12px 0 0 var(--gap); }
.card__title { font-size: 28.5px; line-height: 0.85; margin: 0; }
.card__title span, .card__cat { display: block; overflow: hidden; }
.card__title span i, .card__cat i { display: block; font-style: normal; opacity: 0; transition: opacity 0.18s; white-space: nowrap; }
.card__title span i { padding: 0.12em 0 0.04em; margin: -0.12em 0 -0.04em; }
.card__cat { font-size: 12px; text-transform: uppercase; margin-top: 4px; }
.card.is-hover .card__title span i, .card.is-hover .card__cat i { opacity: 1; transition-duration: 0s; }
.card.is-hover .card__title span:nth-child(2) i { transition-delay: 0.05s; }
.card.is-hover .card__cat i { transition-delay: 0.1s; }

.wordmark { grid-column: 1 / span 7; position: relative; align-self: end; line-height: 0.75; white-space: nowrap; }
.wordmark__in { display: inline-block; font-family: var(--bold); font-weight: 800; font-stretch: 92%; letter-spacing: -0.015em; text-transform: uppercase; }
.wordmark .lt { display: inline-block; will-change: transform; }
.wordmark__clip { overflow: hidden; padding-top: 0.3em; margin-top: -0.3em; }
.wordmark__in { transform: translateY(110%); transition: transform 1.2s var(--expo-out); }
.is-entered .wordmark__in { transform: none; }
.home__info { grid-column: 8 / span 4; align-self: end; font-size: 18px; line-height: 1.25; }
.home__info h1 { font: inherit; margin: 0 0 30px; }
.home__info p { margin: 0; max-width: 340px; }
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; transform: translateY(110%); transition: transform 1s var(--expo-out); }
.is-entered .reveal-line > span { transform: none; }

/* Works index (vertical arc carousel) */
.works { position: relative; height: 100dvh; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.works__stage { position: absolute; inset: 0; }
.works__media {
  position: absolute; left: 50%; top: 50%; width: min(566px, 39.3vw); aspect-ratio: 566 / 354; transform: translate(-50%, -50%);
  overflow: hidden; background: #000; z-index: 2;
}
.works__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.works__media img.is-in { animation: wipeIn 0.8s var(--expo-out) both; }
@keyframes wipeIn { from { clip-path: inset(100% 0 0 0); transform: scale(1.12); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }
.w-item { position: absolute; left: 0; top: 0; will-change: transform; display: flex; align-items: center; }
.w-title { font-size: 28px; line-height: 0.88; white-space: nowrap; transform-origin: 0 50%; }
.w-title span { display: block; }
.w-idx { position: absolute; left: 0; top: 0; font-size: 12px; white-space: nowrap; will-change: transform; }
.w-thumb { position: absolute; left: 0; top: 0; width: 94px; height: 59px; overflow: hidden; will-change: transform; }
.w-thumb, .works__media, .w-item, .card { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .w-thumb, .works__media, .w-item, .card { cursor: none; } }
.w-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Generic scroll pages */
.page { padding-bottom: 0; }
.sec { position: relative; }
.sec--dark { background: #000; color: #fff; }
.sec--light { background: var(--bg); color: #000; }
.sec--accent { background: var(--accent); color: #fff; }
.grid12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: 0 var(--gutter); }

/* About */
.ab-hero { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 var(--gutter); position: relative; }
.ab-hero__word { font-family: var(--bold); font-weight: 800; font-stretch: 92%; text-transform: uppercase; color: var(--accent); line-height: 0.8; white-space: nowrap; letter-spacing: -0.015em; }
.ab-hero__hello { position: absolute; bottom: 140px; left: 0; right: 0; text-align: center; }
.manifesto { padding: 120px var(--gutter) 80px; }
.mf-line { display: flex; align-items: center; justify-content: space-between; gap: 2vw; font-size: clamp(64px, 10vw, 150px); line-height: 0.9; margin: 0 0 3vw; padding: 0 7vw; }
.mf-line .w { white-space: nowrap; }
.mf-img { width: 15vw; height: 12.5vw; object-fit: cover; flex: none; }
.mf-img--wide { width: 23.5vw; }
.mf-rot { font-family: var(--bold); font-weight: 800; font-size: 0.24em; transform: rotate(-90deg); white-space: nowrap; }
.mf-sym { font-family: var(--sans); font-weight: 400; }
.mf-line [data-rv] { display: inline-block; }
.reel-sec { padding: 40px var(--gutter) 160px; }
.reel-sec__label { text-align: center; margin-bottom: 30px; }
.reel { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.reel canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.about-block { padding: 160px 0 180px; }
.about-block .lead { grid-column: 2 / span 5; }
.about-block .lead p { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.1; letter-spacing: -0.03em; margin: 30px 0 0; }
.services { grid-column: 8 / span 4; display: grid; grid-template-columns: 1fr 1fr; gap: 90px var(--gap); align-content: start; }
.services ul { list-style: none; padding: 0; margin: 30px 0 0; font-size: 18px; line-height: 1.25; }
.services .cta { grid-column: 1 / -1; }
.btn-y { display: inline-block; background: var(--accent); color: #fff; font-size: 18px; line-height: 38px; padding: 0 24px; position: relative; overflow: hidden; }
.btn-y::before { content: ""; position: absolute; inset: 0; background: #000; transform: translateY(101%); transition: transform 0.5s var(--expo-out); }
.btn-y:hover::before { transform: none; }
.btn-y span { position: relative; transition: color 0.3s; }
.btn-y:hover span { color: var(--accent); }
.awards { padding: 160px var(--gutter) 120px; }
.awards__head { display: flex; align-items: baseline; gap: 36px; font-size: clamp(64px, 6.6vw, 96px); line-height: 1; margin: 0 0 40px 7vw; }
.awards__table { width: calc(100% - 14vw); margin: 0 7vw; border-collapse: collapse; font-size: 12px; text-transform: uppercase; }
.awards__table caption { text-align: left; padding-bottom: 14px; }
.awards__table td { padding: 8px 0; border-top: 1px solid #000; }
.awards__table td:last-child { text-align: right; }
.awards__table tr:last-child td { border-bottom: 1px solid #000; }
.eco { padding: 60px var(--gutter) 150px; text-align: center; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
.eco h2 { margin: 0; font-size: clamp(44px, 5.7vw, 82px); line-height: 0.99; font-weight: 400; }
.eco h2 .f-serif { text-transform: none; font-size: 1.08em; }
.eco__btns { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: 90px; }
.eco__btns .btn-k { grid-column: 2 / span 5; }
.eco__btns .btn-o { grid-column: 7 / span 5; }
.eco__btns .btn-k, .eco__btns .btn-o { height: clamp(64px, 7.6vw, 110px); font-size: clamp(24px, 3.3vw, 48px); border-radius: 4px; justify-content: center; }
.eco__btns .btn-k span:last-child { position: absolute; right: 40px; font-size: 0.8em; }
@media (max-width: 1023px) { .eco__btns { grid-template-columns: 1fr; row-gap: 12px; } .eco__btns .btn-k, .eco__btns .btn-o { grid-column: 1 / -1; } }
.btn-k, .btn-o { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-width: 188px; height: 36px; padding: 0 16px 0 18px; font-size: 18px; border-radius: 2px; position: relative; overflow: hidden; }
.btn-k { background: #000; color: #fff; }
.btn-o { border: 1px solid #000; justify-content: center; }
.btn-k::before, .btn-o::before { content: ""; position: absolute; inset: 0; background: var(--bg); transform: translateY(101%); transition: transform 0.5s var(--expo-out); }
.btn-o::before { background: #000; }
.btn-k:hover::before, .btn-o:hover::before { transform: none; }
.btn-k span, .btn-o span { position: relative; transition: color 0.3s; }
.btn-k:hover span { color: #000; }
.btn-o:hover span { color: var(--accent); }

/* Contact */
.ct-hero { min-height: 100dvh; padding: 160px var(--gutter) 120px; display: flex; flex-direction: column; justify-content: space-between; }
.ct-hero h1 { margin: 0; padding-left: 7vw; font-size: clamp(56px, 12vw, 172px); line-height: 0.95; font-weight: 400; }
.ct-hero h1 .row { display: flex; align-items: center; gap: 1.6vw; white-space: nowrap; }
.ct-hero h1 .row img { width: 15vw; height: 12vw; object-fit: cover; }
.ct-hero h1 svg { width: 9vw; height: auto; }
.ct-mail { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 0 0 0; margin-top: 100px; }
.ct-mail a { font-size: clamp(26px, 2.5vw, 36px); border-bottom: 2px solid currentColor; display: inline-flex; gap: 14px; line-height: 1.15; margin-right: 6vw; }
.ct-mail a i { font-style: normal; transition: transform 0.4s var(--expo-out); }
.ct-mail a:hover i { transform: translateX(8px); }
.office { position: sticky; top: 0; height: 100dvh; overflow: hidden; will-change: border-radius; }
.office__in { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: 120px var(--gutter) 0; height: 100%; }
.office__l { grid-column: 2 / span 5; }
.office__city { font-family: var(--bold); font-weight: 800; font-stretch: 92%; font-size: clamp(90px, 10.5vw, 152px); line-height: 0.86; margin-top: 30px; text-transform: uppercase; letter-spacing: -0.015em; }
.office__r { grid-column: 7 / span 5; display: grid; grid-template-columns: 1fr 1fr; align-content: start; font-size: 14px; }
.office__r .addr { margin-top: 30px; line-height: 1.35; }
.office__r .map { align-self: end; justify-self: start; border-bottom: 1px solid currentColor; margin-top: 30px; }
.office__img { grid-column: 1 / span 1; width: 100%; max-width: 300px; aspect-ratio: 3 / 4; margin-top: 40px; overflow: hidden; clip-path: inset(0 45% 0 45%); transition: clip-path 0.9s var(--expo-out); }
.office:hover .office__img, .office.is-near .office__img { clip-path: inset(0 0 0 0); }
.office__img img { width: 100%; height: 100%; object-fit: cover; }

/* Project */
.pj-hero { position: sticky; top: 0; height: 100dvh; z-index: 0; background: #000; }
.pj-hero__img { position: absolute; inset: 0; overflow: hidden; }
.pj-hero__img img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.pj-body { position: relative; z-index: 1; background: var(--bg); margin-top: -13dvh; padding-top: 1px; animation: bodyIn 1.5s var(--expo-io) 0.7s backwards; }
@keyframes bodyIn { from { transform: translateY(-40dvh); } }
.pj-head { text-align: center; padding: 3.2dvh var(--gutter) 0; min-height: 13dvh; }
.pj-hero__title { position: relative; text-align: center; font-size: clamp(72px, 11vw, 160px); line-height: 0.82; margin: 0; }
.pj-hero__title { transform-origin: 50% 0; will-change: transform; }
.pj-hero__img img { transform-origin: 50% 30%; }
.pj-hero__title.is-long { font-size: clamp(44px, 7.2vw, 108px); }
.pj-hero__cat { line-height: 24px; text-align: center; margin-top: 14px; }
.pj-sticky { position: sticky; top: var(--gutter); z-index: 5; text-align: center; height: 0; overflow: visible; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.pj-sticky.is-on { opacity: 1; transition-duration: 0.12s; }
.pj-sticky .t { font-size: 36px; line-height: 0.85; }
.pj-desc { padding: 140px 0 120px; }
.pj-desc .in { grid-column: 3 / span 8; }
.pj-desc .in p { font-size: clamp(24px, 2.5vw, 38px); line-height: 1.08; letter-spacing: -0.025em; margin: 14px 0 0; }
.pj-meta { grid-column: 4 / span 6; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: var(--gap); margin-top: 90px; font-size: 12px; }
.pj-meta ul { list-style: none; padding: 0; margin: 14px 0 0; line-height: 1.25; }
.pj-meta table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.pj-meta td { border-bottom: 1px solid #000; padding: 6px 0; }
.pj-meta td:last-child { text-align: right; }
.pj-meta .btn-y { font-size: 12px; line-height: 26px; padding: 0 14px; margin-top: 12px; }
.pj-pair { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: 60px var(--gutter); align-items: start; }
.pj-pair img { width: 100%; object-fit: cover; }
.pj-pair .a { grid-column: 2 / span 4; aspect-ratio: 4 / 5; }
.pj-pair .b { grid-column: 7 / span 5; aspect-ratio: 4 / 3; margin-top: 0; }
.pj-text { padding: 80px 0; }
.pj-text .lbl { grid-column: 2 / span 2; }
.pj-text p { grid-column: 4 / span 4; margin: 0; font-size: 18px; line-height: 1.25; }
.pj-accent { padding: 140px var(--gutter); }
.pj-accent img { width: 74%; margin: 0 auto; aspect-ratio: 16 / 9; object-fit: cover; outline: 10px solid #000; }
.pj-next { padding: 160px 0 200px; text-align: center; }
.pj-next a { display: inline-grid; grid-template-columns: auto auto auto; align-items: center; gap: 40px; text-align: left; }
.pj-next img { width: 300px; height: 200px; object-fit: cover; transition: transform 0.9s var(--expo-out); }
.pj-next a:hover img { transform: scale(1.04); }
.pj-next .t { font-size: 28.5px; line-height: 0.85; }

/* Legal */
.legal { padding: 160px var(--gutter) 160px; }
.legal .in { max-width: 640px; margin-left: calc((100% - 2 * var(--gutter)) / 12 + var(--gap)); }
.legal h1 { font-size: clamp(56px, 8vw, 120px); line-height: 0.85; margin: 0 0 40px; }
.legal p { font-size: 18px; line-height: 1.35; }

/* Reveal on scroll */
[data-rv] { transform: translateY(40px); opacity: 0; transition: transform 1.1s var(--expo-out), opacity 0.8s ease; }
[data-rv].is-in { transform: none; opacity: 1; }

/* ---------- Mobile ---------- */
@media (max-width: 1023px) {
  .home__top { height: 58%; }
  .home__bottom { grid-template-columns: repeat(6, 1fr); padding-bottom: calc(var(--gutter) + 24px + 70px); align-content: end; row-gap: 14px; }
  .wordmark { grid-column: 1 / -1; order: 1; }
  .home__info { grid-column: 1 / span 5; order: 2; font-size: 15px; }
  .works__media { width: 64vw; top: 46%; }
  .home__info h1 { margin-bottom: 10px; }
  .foot { font-size: 11px; }
  .foot__l > :nth-child(-n+4) { display: none; }
  .menu { bottom: calc(var(--gutter) + 34px); }
  .about-block .lead, .services, .pj-desc .in, .pj-meta, .pj-text p { grid-column: 1 / -1; }
  .services { margin-top: 60px; gap: 50px var(--gap); }
  .pj-text .lbl { grid-column: 1 / -1; margin-bottom: 12px; }
  .pj-pair .a, .pj-pair .b { grid-column: 1 / -1; margin-bottom: 16px; }
  .pj-meta { grid-template-columns: 1fr 1fr; }
  .pj-meta > :last-child { grid-column: 1 / -1; }
  .mf-line { flex-wrap: wrap; justify-content: center; padding: 0; }
  .office__l, .office__r { grid-column: 1 / -1; }
  .office__in { padding-top: 90px; }
  .office__r { margin-top: 30px; }
  .ct-hero h1 { padding-left: 0; }
  .ct-hero h1 .row { flex-wrap: wrap; white-space: normal; }
  .ct-mail { flex-direction: column; align-items: flex-start; gap: 20px; }
  .w-title { font-size: 20px; }
  .pj-next a { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Click: shared image + card pulse ---------- */
.fly { position: fixed; z-index: 305; overflow: hidden; pointer-events: none; will-change: left, top, width, height, transform; }
.fly img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__media::after {
  content: ""; position: absolute; left: var(--px, 50%); top: var(--py, 50%); width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.9); opacity: 0; pointer-events: none; z-index: 2;
}
.card__media.pulse::after { animation: ringOut 0.7s var(--expo-out) forwards; }
.card__media.pulse .card__img img { animation: pulseImg 0.55s var(--expo-out); }
@keyframes ringOut { 0% { opacity: 1; transform: scale(0.2); } 100% { opacity: 0; transform: scale(16); } }
@keyframes pulseImg { 0% { transform: scale(1.06); } 35% { transform: scale(0.95); } 100% { transform: scale(1.06); } }

/* ---------- Project page scroll: tilting media ---------- */
.tilt img { display: block; width: 100%; height: auto; transform-origin: 50% 50%; will-change: transform; backface-visibility: hidden; }
.pj-pair .tilt img { height: 100%; object-fit: cover; }
.pj-posters .tilt img { aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Dark scatter section with curved edges ---------- */
.pj-scatter { position: relative; overflow: hidden; height: 160vh; margin: 40px 0; }
.pj-scatter .cap { position: absolute; left: -2px; right: -2px; height: 18vh; background: var(--bg); z-index: 3; pointer-events: none; }
.pj-scatter .cap--b { bottom: -1px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.sc-item { position: absolute; aspect-ratio: 16 / 10; will-change: transform; }
.sc-item img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.sc-2 { left: 5vw; width: 24vw; top: 9%; }
.sc-3 { right: 5vw; width: 27vw; top: 16%; }
.sc-4 { left: 8vw; width: 25vw; top: 70%; }
.sc-5 { right: 9vw; width: 21vw; top: 68%; }
.pj-scatter.n2 { height: 140vh; } .pj-scatter.n2 .sc-1 { top: 30%; }
@media (max-width: 1023px) {
}
@media (prefers-reduced-motion: reduce) { .pj-scatter .cap { display: none; } }



@media (prefers-reduced-motion: reduce) { .pj-body { animation: none; } }
@media (max-width: 1023px) {
  .pj-sticky .t { font-size: 20px; }
  .pj-sticky { padding: 0 64px; }
}

/* ---------- WebGL bend layer ---------- */
.gl-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
html.gl-on #app { position: relative; z-index: 1; }
html.gl-on #app img[data-gl] { opacity: 0 !important; }
html.gl-on #app [data-gl-bg] { background: transparent !important; }
html.gl-on .pj-scatter .sc-item img { box-shadow: none; }

/* click: page dims while the image lifts off */
.dim { position: fixed; inset: 0; z-index: 299; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.6s var(--expo-out); }
.dim.is-on { opacity: 0.32; }

/* ---------- Project media layout: one 12-column system ---------- */
.pj-banners, .pj-posters { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: calc(var(--gap) * 2.5); padding: 90px var(--gutter); align-items: start; }
.pj-banners img { width: 100%; height: auto; }
/* pairs sit side by side, 5 columns each with a 1-column margin */
.pj-banners > .tilt:nth-child(odd) { grid-column: 2 / span 5; }
.pj-banners > .tilt:nth-child(even) { grid-column: 7 / span 5; }
/* an odd count leads with one wide banner, then pairs */
.pj-banners.is-odd > .tilt:first-child { grid-column: 3 / span 8; }
.pj-banners.is-odd > .tilt:nth-child(even) { grid-column: 2 / span 5; }
.pj-banners.is-odd > .tilt:nth-child(odd):not(:first-child) { grid-column: 7 / span 5; }
/* portrait posts: 4 columns each, centred */
.pj-posters > .tilt:nth-child(odd) { grid-column: 3 / span 4; }
.pj-posters > .tilt:nth-child(even) { grid-column: 7 / span 4; }
.pj-posters:not(.n2) > .tilt:nth-child(1) { grid-column: 1 / span 4; }
.pj-posters:not(.n2) > .tilt:nth-child(2) { grid-column: 5 / span 4; }
.pj-posters:not(.n2) > .tilt:nth-child(3) { grid-column: 9 / span 4; }
.pj-posters:not(.n2) { padding-left: calc(var(--gutter) + 6vw); padding-right: calc(var(--gutter) + 6vw); }
.pj-posters .tilt img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* scattered gallery: sizes scale with each image's shape */
.sc-item { width: var(--ww); }
.sc-1 { --w: 44vw; left: 50%; margin-left: calc(var(--ww) / -2); top: 33%; z-index: 2; }
.sc-2 { --w: 27vw; left: 5vw; top: 7%; }
.sc-3 { --w: 27vw; right: 5vw; top: 12%; }
.sc-4 { --w: 26vw; left: 7vw; top: 66%; }
.sc-5 { --w: 25vw; right: 7vw; top: 64%; }
.sc-item { --ww: var(--w); }
.sc-item.is-tall { --ww: calc(var(--w) * 0.62); }
.sc-1.is-tall { --ww: calc(var(--w) * 0.55); }
.pj-scatter.n1 { height: 120vh; } .pj-scatter.n1 .sc-1 { top: 18%; }
.pj-scatter.n2 { height: 140vh; } .pj-scatter.n2 .sc-1 { top: 28%; }
@media (max-width: 1023px) {
  .pj-banners, .pj-posters, .pj-posters:not(.n2) { grid-template-columns: 1fr; padding: 50px var(--gutter); row-gap: 16px; }
  .pj-banners > .tilt, .pj-posters > .tilt, .pj-banners.is-odd > .tilt, .pj-posters:not(.n2) > .tilt { grid-column: 1 / -1 !important; }
  .pj-scatter { height: 150vh; }
  .sc-1 { --w: 84vw; } .sc-2 { --w: 44vw; left: 4vw; top: 6%; } .sc-3 { --w: 42vw; right: 4vw; top: 16%; }
  .sc-4 { --w: 46vw; left: 5vw; top: 72%; } .sc-5 { --w: 38vw; right: 4vw; top: 80%; }
}

/* real photography pairs keep their own shape, 4 columns each, top-aligned */
.pj-pair.is-real { align-items: start; }
.pj-pair.is-real .a { grid-column: 3 / span 4; aspect-ratio: auto; }
.pj-pair.is-real .b { grid-column: 7 / span 4; aspect-ratio: auto; }
.pj-pair.is-real .tilt img { height: auto; object-fit: initial; }
@media (max-width: 1023px) { .pj-pair.is-real .a, .pj-pair.is-real .b { grid-column: 1 / -1; } }
html.gl-on #app [data-gl-text], html.gl-on #app [data-gl-text] * { -webkit-text-fill-color: transparent; }

/* ================= Project page on the reference grid ================= */
:root {
  --r-gut: max(20px, 2.08333vw); --r-gap: max(10px, 1.04167vw);
  --t-xs: max(10px, 0.833333vw); --t-sm: max(13px, 1.25vw); --t-md: max(18px, 1.97917vw); --t-lg: max(24px, 3.54167vw);
}
.t-xs { font-size: var(--t-xs); text-transform: uppercase; line-height: 1.2; }
.t-sm { font-size: var(--t-sm); line-height: 1.25; }
.t-md { font-size: var(--t-md); line-height: 1.1; letter-spacing: -0.02em; }
html.gl-on .gl-layer { z-index: -1; }
html.gl-on #app { z-index: auto; }
.pj-body { margin-top: 0; z-index: auto; animation: none; }
@keyframes bodyIn { from { transform: translateY(-57dvh); } }
.pj-head { position: sticky; top: 20px; z-index: 40; padding: 60px var(--r-gut); text-align: center; min-height: 0; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.pj-hero__title { font-size: clamp(64px, calc(10vw + 100px), max(58px, 12.5vw)); line-height: 0.85; font-weight: 800; }
.pj-hero__title span { display: block; white-space: nowrap; }
.pj-hero__title.is-long { font-size: clamp(56px, calc(10vw + 40px), max(58px, 10vw)); }
.pj-hero__cat { margin-top: 20px; }
.pj-sticky { color: #fff; mix-blend-mode: difference; position: fixed; top: 0; left: 0; right: 0; padding: 20px; height: auto; }
.pj-sticky .t { font-size: var(--t-md); line-height: 0.85; }
.pm-meta { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--r-gap); padding: 100px var(--r-gut) 160px; }
.pm-meta__year { grid-column: 2 / span 2; }
.pm-meta__year .btn-y { margin-top: 16px; font-size: var(--t-xs); line-height: 2.2; padding: 0 0.8em; }
.pm-meta__feat { grid-column: 4 / span 2; }
.pm-meta__feat ul { list-style: none; margin: 40px 0 0; padding: 0; }
.pm-meta__desc { grid-column: 7 / span 5; }
.pm-meta__p { margin-top: 40px; }
.pm-meta__p p, .pr__txt p { margin: 0; }
.pr { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--r-gap); align-items: start; padding: 160px 0; }
.pm { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.pm__img { position: absolute; left: 0; top: -5%; width: 100%; height: 110%; object-fit: cover; will-change: transform; }
.pr--pair .pr__s { grid-column: 2 / span 3; }
.pr--pair .pr__l { grid-column: 7 / span 5; }
.pr--pair.is-flip .pr__l { grid-column: 2 / span 5; }
.pr--pair.is-flip .pr__s { grid-column: 9 / span 3; }
.pr--full .pr__wide { grid-column: 3 / span 8; }
.pr__lbl { grid-column: 4 / span 2; margin-top: 40px; }
.pr__txt { grid-column: 6 / span 4; margin-top: 40px; }
.pj-next { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--r-gap); align-items: center; padding: 160px var(--r-gut); text-align: left; }
.pj-next__lbl { grid-column: 3 / span 2; text-align: right; }
.pj-next a { grid-column: 5 / span 6; display: grid; grid-template-columns: 300px auto; gap: 40px; align-items: center; }
.pj-next .t { font-size: 28.5px; line-height: 0.85; }
@media (max-width: 1023px) {
  .pm-meta { grid-template-columns: 1fr; row-gap: 60px; padding: 60px var(--r-gut); }
  .pm-meta__desc { order: -1; } .pm-meta > * { grid-column: 1 / -1 !important; }
  .pm-meta__p.t-md { font-size: var(--t-lg); line-height: 1; }
  .pr { grid-template-columns: 1fr; padding: 40px var(--r-gut); row-gap: var(--r-gut); }
  .pr > * { grid-column: 1 / -1 !important; }
  .pr__lbl, .pr__txt { margin-top: 0; }
  .pj-next { grid-template-columns: 1fr; padding: 40px var(--r-gut) 120px; row-gap: 20px; }
  .pj-next > *, .pj-next__lbl { grid-column: 1 / -1; text-align: center; }
  .pj-next a { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pj-next img { width: 100%; height: auto; }
  .pj-head { padding: 40px var(--r-gut); }
}

/* ================= Curtain geometry + title (reference timeline) ================= */
.curtain { z-index: 300; display: flex; align-items: center; justify-content: center; }
.curtain__sheet { position: absolute; top: -40px; bottom: -40px; left: -50%; right: -50%; height: auto; border-radius: 50% / 299px; background: var(--accent); will-change: transform; }
.curtain__title { position: relative; top: auto; left: auto; right: auto; transform: none; display: flex; flex-direction: column; align-items: center; font-size: max(36px, 5.729167vw); line-height: 0.86; text-transform: uppercase; white-space: nowrap; transform-origin: 50% 50%; }
.cl { margin: -0.25em 0; clip-path: inset(0.08em -9999px 0.06em -9999px); }
.cl__in { display: flex; justify-content: center; padding: 0.25em 0; will-change: transform; }
.cl__in .ch { display: inline-block; white-space: pre; text-align: center; }
.cl__in .ch.f-serif { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; }
.cl__in .ch.f-bold { font-family: var(--bold); font-weight: 800; font-stretch: 92%; }
.curtain__count { position: absolute; left: 0; right: 0; bottom: var(--r-gut); text-align: center; transform: translateY(130%); font-size: var(--t-xs); line-height: 1; clip-path: none; }
.curtain.show-text .curtain__count { opacity: 1; }
.fly { position: fixed; z-index: 310; overflow: hidden; pointer-events: none; }
.fly img { position: absolute; max-width: none; object-fit: cover; }
.dim { z-index: 290; opacity: 0; transition: none; }
@media (max-width: 1023px) { .curtain__title { font-size: 36px; } }
html, body { overflow-x: clip; }
.pj-head { overflow: hidden; }
.curtain.is-intro .curtain__title { display: block; }

/* ================= Contact drawer ================= */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.drawer { position: fixed; inset: 0; z-index: 250; pointer-events: none; }
.drawer.is-open { pointer-events: auto; }
.drawer__veil { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(18px) brightness(0.75); backdrop-filter: blur(18px) brightness(0.75); opacity: 0; transition: opacity 0.7s var(--expo-out); }
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(50vw, 960px); background: #000; color: #fff; padding: 22vh 6vw 8vh 8vw; overflow-y: auto; outline: none;
  transform: translateX(101%); transition: transform 0.9s var(--expo-out); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { position: absolute; left: 0; top: 0; bottom: 0; width: 5vw; min-width: 56px; display: flex; align-items: center; justify-content: center; color: #fff; z-index: 2; }
.drawer__close span { display: block; transform: rotate(-90deg); font-size: 13px; text-transform: lowercase; white-space: nowrap; transition: opacity 0.25s; }
.drawer__close:hover span { opacity: 0.6; }
.drawer__mark { position: absolute; top: 6vh; left: 3.2vw; font-size: 120px; }
.dr-block { font-size: clamp(22px, 2.35vw, 44px); line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 1em; opacity: 0; transform: translateX(40px); transition: opacity 0.6s, transform 0.9s var(--expo-out); }
.dr-block a { border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.dr-block a:hover { border-color: currentColor; }
.drawer.is-open .dr-block, .drawer.is-open .dr-form { opacity: 1; transform: none; }
.drawer.is-open .dr-block:nth-of-type(1) { transition-delay: 0.12s; }
.drawer.is-open .dr-block:nth-of-type(2) { transition-delay: 0.18s; }
.drawer.is-open .dr-block:nth-of-type(3) { transition-delay: 0.24s; }
.dr-form { margin-top: 2.6em; opacity: 0; transform: translateX(40px); transition: opacity 0.6s 0.3s, transform 0.9s 0.3s var(--expo-out); }
.dr-form__lbl { font-size: 12px; text-transform: lowercase; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.dr-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.dr-form input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,0.3); color: #fff; font: inherit; font-size: clamp(16px, 1.25vw, 22px); padding: 12px 0; border-radius: 0; outline: none; transition: border-color 0.25s; }
.dr-form input::placeholder { color: rgba(255,255,255,0.45); text-transform: lowercase; }
.dr-form input:focus { border-color: #fff; }
.dr-form__full { display: block; margin-top: 6px; }
.dr-hp { position: absolute; left: -9999px; }
.dr-form__foot { display: flex; align-items: center; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.dr-send { background: var(--accent); color: #fff; font-size: 15px; line-height: 40px; padding: 0 20px; text-transform: lowercase; }
.dr-send i { font-style: normal; margin-left: 6px; display: inline-block; transition: transform 0.3s var(--expo-out); }
.dr-send:hover i { transform: translateX(5px); }
.dr-send:disabled { opacity: 0.5; }
.dr-form__note { margin: 0; font-size: 12px; color: rgba(255,255,255,0.6); text-transform: lowercase; }
.dr-form__note a { color: #fff; border-bottom: 1px solid currentColor; }
.dr-form.is-sent .dr-form__note { color: var(--accent); }
.drawer-open, .drawer-open body { overflow: hidden; }
@media (max-width: 1023px) {
  .drawer__panel { width: 100%; padding: 16vh 24px 60px 56px; }
  .drawer__close { width: 48px; min-width: 48px; }
  .drawer__mark { left: 24px; top: 5vh; font-size: 90px; }
  .dr-block { font-size: 26px; }
  .dr-form__row { grid-template-columns: 1fr; }
}

/* normal cursor while typing in the call-back form */
.drawer input, .drawer textarea { cursor: text !important; }

.foot.on-accent, .mark.on-accent { mix-blend-mode: normal; color: #fff; }

/* ================= Privacy & cookies ================= */
.legal .in { max-width: 720px; }
.lg-meta { font-size: 13px !important; text-transform: uppercase; opacity: 0.6; margin: -20px 0 30px; }
.lg-sec { margin-top: 56px; scroll-margin-top: 120px; }
.lg-sec h2 { margin: 0 0 14px; font-weight: 500; }
.legal ul { margin: 0 0 1em; padding-left: 1.1em; font-size: 18px; line-height: 1.4; }
.legal li { margin-bottom: 8px; }
.legal a { border-bottom: 1px solid currentColor; }
@media (max-width: 1023px) { .legal .in { margin-left: 0; } .legal p, .legal ul { font-size: 16px; } }
.cursor.on-accent { background: #fff; }

/* ================= About FAQ ================= */
.faq { padding: 40px 0 180px; }
.faq__lbl { grid-column: 2 / span 2; margin: 0; font-weight: 500; }
.faq__list { grid-column: 4 / span 8; display: grid; grid-template-columns: 1fr 1fr; gap: 56px var(--gap); }
.faq__item h3 { margin: 0 0 12px; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; }
.faq__item p { margin: 0; font-size: 16px; line-height: 1.4; color: #333; }
@media (max-width: 1023px) { .faq__lbl, .faq__list { grid-column: 1 / -1; } .faq__list { grid-template-columns: 1fr; gap: 36px; margin-top: 24px; } }

/* ================= Pre-built page content (shown only until the app loads, and to crawlers) ================= */
.ssr { max-width: 760px; padding: 120px var(--gutter) 160px; font-size: 17px; line-height: 1.45; }
.ssr h1 { font-family: var(--bold); font-weight: 800; font-size: clamp(36px, 5vw, 64px); line-height: 0.95; text-transform: uppercase; margin: 24px 0; }
.ssr img { width: 100%; height: auto; margin: 12px 0; }
.ssr a { border-bottom: 1px solid currentColor; }

/* closed menu: the (hidden) links must not sit on top of the button on touch screens */
.menu:not(.is-open) .menu__list { pointer-events: none; }
/* card frames are drawn by the WebGL layer; no grey placeholder showing at the edges */
html.gl-on .card__media { background: transparent; }
