@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --stone: #ebeae6;
  --stone-dark: #d9d8d2;
  --paper: #f8f8f5;
  --ink: #242520;
  --muted: #686960;
  --line: rgba(36, 37, 32, .27);
  --header-h: 70px;
  --display: "Archivo", Arial, sans-serif;
  --sans: "DM Sans", Arial, sans-serif;
  --name: "Archivo", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--stone); font-family: var(--sans); font-size: 16px; font-weight: 300; }
body, button, a { -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }
video { -webkit-touch-callout: none; user-select: none; }
figure { margin: 0; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 30px; color: var(--ink); background: rgba(235, 234, 230, .92);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(13px); font-size: .8125rem;
}
.identity { display: flex; align-items: baseline; gap: 14px; width: max-content; }
.identity strong { font-weight: 700; }
.name-mark { font-family: var(--name); font-weight: 800; }
.identity span, .header-place { color: var(--muted); }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a { position: relative; padding: 6px 0; font-weight: 400; letter-spacing: .055em; text-transform: uppercase; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { transform: scaleX(1); }
.header-place { justify-self: end; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.home-hero { position: relative; min-height: 100svh; padding-top: var(--header-h); overflow: hidden; }
.hero-copy { position: absolute; z-index: 2; left: 3vw; top: 20%; width: 43%; }
.eyebrow { margin: 0; font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; }
.hero-copy h1 { margin: 20px 0 0; color: #283e06; font-family: var(--display); font-size: clamp(4.5rem, 7.2vw, 7.3rem); font-weight: 800; line-height: .88; letter-spacing: -.072em; opacity: .18; transition: opacity .45s ease; }
.hero-copy h1:hover, .hero-copy h1:focus { opacity: 1; outline: 0; }
.hero-intro { max-width: 390px; margin: 24px 0 0; font-size: 1.05rem; line-height: 1.48; }
.hero-name { position: absolute; z-index: 3; left: calc(40% + 18px); bottom: calc(10vh + 56px); max-width: 52%; margin: 0; color: white; font-size: clamp(1.55rem, 2.3vw, 2.7rem); line-height: .95; letter-spacing: -.045em; text-shadow: 0 2px 22px rgba(10, 12, 8, .55); pointer-events: none; }
.hero-visual { position: absolute; left: 40%; right: 3%; top: calc(var(--header-h) + 7vh); bottom: 10vh; overflow: hidden; background: var(--paper); }
.hero-visual > picture { display: block; width: 100%; height: 100%; }
.hero-visual > picture > img { filter: grayscale(.54) saturate(.32) brightness(1.17) contrast(.82); opacity: .62; transition: filter .45s ease, transform .8s cubic-bezier(.2,.7,.2,1), opacity .48s ease; }
.hero-visual > picture > img.is-changing { opacity: .04; }
.hero-visual:hover > picture > img, .hero-visual:focus-visible > picture > img { filter: grayscale(0) saturate(.9) brightness(1.01) contrast(.98); opacity: 1; transform: scale(1.045); }
.image-caption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; padding: 12px 14px; color: #efefe9; background: rgba(29, 30, 26, .78); backdrop-filter: blur(8px); font-size: .75rem; }
.image-caption strong { font-weight: 500; line-height: 1.4; }
.down-link { position: absolute; right: 5.5%; bottom: 4%; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: .75rem; letter-spacing: .055em; text-transform: uppercase; }
.down-link span { margin-left: 25px; }

.catalog-section { padding-bottom: 110px; scroll-margin-top: var(--header-h); }
.section-title { min-height: 175px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; padding: 37px 30px 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title h2 { margin: 0; font-family: var(--sans); font-size: clamp(3.2rem, 5.5vw, 5.8rem); font-weight: 300; line-height: .9; letter-spacing: -.045em; }
.section-title p { margin: 4px 0 0; font-size: .875rem; line-height: 1.5; }
.section-title > span { color: var(--muted); font-size: .75rem; letter-spacing: .06em; }
.catalog-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 70px 18px; padding: 50px 30px 0; }
.catalog-card { grid-column: span 4; min-width: 0; }
.catalog-card--wide { grid-column: span 8; }
.catalog-card figure, .catalog-card--wide figure { height: clamp(250px, 28vw, 420px); overflow: hidden; background: var(--paper); }
.catalog-card img { filter: grayscale(.58) saturate(.28) brightness(1.18) contrast(.81); opacity: .62; transition: filter .42s ease, opacity .42s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.catalog-card:hover img, .catalog-card:focus-visible img { filter: grayscale(0) saturate(.92) brightness(1.01) contrast(.98); opacity: 1; transform: scale(1.055); }
.card-meta { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding-top: 11px; }
.card-meta span, .card-meta small { color: var(--muted); font-size: .75rem; }
.card-meta strong { font-family: var(--display); font-size: 1.28rem; font-weight: 700; line-height: 1.28; letter-spacing: -.035em; }
.card-meta small { text-align: right; }

.profile-section { min-height: 82vh; display: grid; grid-template-columns: .48fr 1.12fr .65fr; gap: 6vw; padding: 42px 30px 70px; color: #e9e9e3; background: #272822; scroll-margin-top: var(--header-h); }
.profile-label { display: flex; flex-direction: column; justify-content: space-between; color: #9d9e96; font-size: .75rem; text-transform: uppercase; letter-spacing: .065em; }
.profile-copy h2 { margin: 0; font-size: clamp(3.4rem, 6vw, 6.2rem); line-height: .86; letter-spacing: -.06em; }
.profile-lead { max-width: 760px; margin: 8vh 0 45px; font-family: var(--sans); font-size: clamp(1.9rem, 3.1vw, 3.4rem); font-weight: 300; line-height: 1.05; letter-spacing: -.035em; }
.profile-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; }
.profile-columns p { margin: 0; color: #b9bab2; line-height: 1.55; }
.profile-facts { margin: 0; align-self: end; }
.profile-facts div { padding: 15px 0; border-top: 1px solid #51524c; }
.profile-facts dt { margin-bottom: 6px; color: #92938b; font-size: .75rem; text-transform: uppercase; letter-spacing: .055em; }
.profile-facts dd { margin: 0; font-size: .875rem; line-height: 1.4; }

.contact-section { min-height: 50vh; display: grid; grid-template-columns: .5fr 1.25fr .5fr; gap: 6vw; align-items: end; padding: 55px 30px 65px; color: var(--ink); background: var(--paper); scroll-margin-top: var(--header-h); }
.contact-label { align-self: start; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .065em; }
.contact-copy p { margin: 0 0 16px; color: var(--muted); font-size: .875rem; }
.contact-copy h2 { margin: 0; font-family: var(--display); font-size: clamp(3rem, 5.5vw, 5.5rem); font-weight: 800; line-height: .82; letter-spacing: -.06em; }
.contact-email { display: inline-block; margin-top: 18px; border-bottom: 1px solid currentColor; font-size: .9rem; }
.contact-actions { display: grid; gap: 10px; align-self: end; }
.contact-button { min-height: 58px; display: flex; justify-content: space-between; align-items: center; padding: 0 17px; border: 1px solid var(--ink); font-size: .875rem; transition: color .25s ease, background .25s ease; }
.contact-button:hover, .contact-button:focus-visible { color: var(--paper); background: var(--ink); }

.site-footer { min-height: 90px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 0 30px; color: #d9d9d3; background: #171814; border-top: 1px solid #3f403a; font-size: .75rem; }
.site-footer strong { font-weight: 500; }
.site-footer span { color: #85867e; }
.site-footer a { justify-self: end; }

/* PROJECT */
.project-page { background: var(--paper); }
.project-header { background: rgba(248, 248, 245, .93); }
.project-hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 28px 5vw; padding: calc(var(--header-h) + 5vh) 30px 30px; background: var(--paper); }
.project-heading { min-width: 0; align-self: start; padding-top: 3vh; }
.project-heading h1 { margin: 18px 0 0; font-family: var(--display); font-size: clamp(3.8rem, 6.4vw, 6.5rem); font-weight: 800; line-height: .82; letter-spacing: -.065em; }
.project-statement { max-width: 550px; margin: 30px 0 0; font-size: 1.05rem; line-height: 1.48; }
.project-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; max-width: 520px; margin-top: 32px; }
.project-thumb { position: relative; aspect-ratio: 4/3; padding: 0; overflow: hidden; border: 0; background: white; cursor: zoom-in; }
.project-thumb::after { content: attr(data-number); position: absolute; right: 5px; bottom: 4px; color: rgba(255,255,255,.92); font-size: .625rem; }
.project-thumb img { filter: grayscale(1) brightness(1.18) contrast(.82); opacity: .4; transition: filter .3s ease, opacity .3s ease, transform .45s ease; }
.project-thumb:hover img, .project-thumb:focus-visible img { filter: grayscale(1) brightness(1.04) contrast(.96); opacity: 1; transform: scale(1.06); }
.project-cover { min-height: 0; overflow: hidden; background: var(--paper); }
.project-cover-button { width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.project-cover img { filter: grayscale(.44) saturate(.38) brightness(1.15) contrast(.84); opacity: .62; transition: filter .42s ease, opacity .42s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.project-cover-button:hover img, .project-cover-button:focus-visible img { filter: grayscale(0) saturate(.92) brightness(1.01) contrast(.98); opacity: 1; transform: scale(1.025); }
.project-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin: 0; }
.project-facts div { padding-top: 11px; border-top: 1px solid var(--line); }
.project-facts dt { margin-bottom: 5px; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .055em; }
.project-facts dd { margin: 0; font-size: .875rem; }
.project-facts a { border-bottom: 1px solid currentColor; }

.project-overview { min-height: 58vh; display: grid; grid-template-columns: .55fr 1.75fr; gap: 6vw; align-items: start; padding: 85px 30px; color: #e5e5df; background: #272822; scroll-margin-top: var(--header-h); }
.project-overview > span { color: #92938b; font-size: .75rem; text-transform: uppercase; letter-spacing: .065em; }
.project-overview > p { margin: 0; font-family: var(--sans); font-size: clamp(1.7rem, 2.8vw, 3rem); font-weight: 300; line-height: 1.18; letter-spacing: -.025em; }

.video-section { padding: 65px 30px 110px; background: var(--paper); }
.project-gallery { padding: 65px 30px 110px; background: var(--stone); }
.project-section-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.project-section-head h2 { margin: 0; font-family: var(--sans); font-size: clamp(2.7rem, 4.4vw, 4.6rem); font-weight: 300; line-height: .92; letter-spacing: -.045em; }
.project-section-head span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.media-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 55px 18px; padding-top: 35px; }
.media-item { grid-column: span 6; }
.media-item--wide { grid-column: span 12; }
.media-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; overflow: hidden; cursor: zoom-in; }
.media-item img { aspect-ratio: 4/3; filter: grayscale(.54) saturate(.28) brightness(1.18) contrast(.82); opacity: .62; background: var(--paper); transition: filter .42s ease, opacity .42s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.media-zoom:hover img, .media-zoom:focus-visible img { filter: grayscale(0) saturate(.94) brightness(1.01) contrast(.98); opacity: 1; transform: scale(1.045); }
.media-zoom.is-gallery-target img { filter: grayscale(0) saturate(.94) brightness(1.01) contrast(.98); opacity: 1; transform: scale(1.035); }
.media-item--wide img { aspect-ratio: 16/8; }
.media-item figcaption, .drawing-item figcaption { margin-top: 8px; color: var(--muted); font-size: .75rem; }
.project-video { position: relative; aspect-ratio: 16/9; margin-top: 35px; overflow: hidden; background: #171814; }
.project-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #171814; object-fit: cover; cursor: pointer; }
.project-video--embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project-video--embed::after { content: ""; position: absolute; z-index: 2; top: 0; right: 0; width: 64px; height: 56px; }

.drawing-section { padding: 65px 30px 110px; background: var(--paper); }
.drawing-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 55px 18px; padding-top: 35px; }
.drawing-item { grid-column: span 6; }
.drawing-item--wide { grid-column: span 12; }
.drawing-item img { height: auto; aspect-ratio: 16/10; object-fit: contain; filter: grayscale(.3) saturate(.42) brightness(1.13) contrast(.88); background: white; transition: filter .42s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.drawing-item .media-zoom:hover img, .drawing-item .media-zoom:focus-visible img { filter: grayscale(0) saturate(.92) brightness(1.01) contrast(.99); transform: scale(1.025); }

.project-pagination { display: grid; grid-template-columns: 1fr 1fr; color: #e8e8e2; background: #272822; }
.project-pagination a { min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; }
.project-pagination a + a { border-left: 1px solid #50514a; text-align: right; }
.project-pagination span { color: #999a92; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.project-pagination strong { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 3.7rem); font-weight: 700; line-height: .9; letter-spacing: -.045em; transition: transform .3s ease; }
.project-pagination a:first-child:hover strong { transform: translateX(-8px); }
.project-pagination a:last-child:hover strong { transform: translateX(8px); }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(24,25,22,.96); }
.lightbox-image { position: fixed; z-index: 1001; top: 4vh; left: 4vw; width: 92vw; height: 92vh; object-fit: contain; pointer-events: none; will-change: top, left, width, height, transform, filter, opacity; }
.lightbox-close { position: fixed; z-index: 1004; top: 18px; right: 22px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.55); color: white; background: rgba(20,21,18,.4); cursor: pointer; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.lightbox-nav { position: fixed; z-index: 1002; top: 0; bottom: 0; width: 50vw; padding: 0 26px; border: 0; color: white; background: transparent; cursor: pointer; font-family: var(--sans); font-size: 2rem; opacity: .45; transition: opacity .25s ease; }
.lightbox-nav:hover, .lightbox-nav:focus-visible { opacity: 1; outline: 0; }
.lightbox-prev { left: 0; text-align: left; cursor: w-resize; }
.lightbox-next { right: 0; text-align: right; cursor: e-resize; }
.lightbox-counter { position: fixed; z-index: 1004; left: 50%; bottom: 18px; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: .75rem; letter-spacing: .08em; }
.has-lightbox { overflow: hidden; }

.image-reveal { animation: image-reveal .95s cubic-bezier(.65,0,.2,1) both; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes image-reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 18px; }
  .identity span, .header-place { display: none; }
  .site-header nav { gap: 15px; font-size: .75rem; }
  .home-hero { min-height: 100svh; }
  .hero-copy { left: 18px; right: 18px; top: 10%; width: auto; }
  .hero-copy h1 { margin-top: 10px; font-size: 14vw; line-height: .86; }
  .hero-intro { max-width: 320px; margin-top: 13px; font-size: .8rem; line-height: 1.38; }
  .hero-name { left: calc(10% + 12px); top: auto; bottom: calc(8% + 55px); max-width: calc(90% - 48px); font-size: clamp(1.05rem, 5vw, 1.45rem); line-height: 1; }
  .hero-visual { left: 10%; right: 18px; top: 54%; bottom: 8%; }
  .image-caption { grid-template-columns: 30px 1fr; }
  .image-caption span:last-child { display: none; }
  .down-link { display: none; }
  .section-title { min-height: 135px; grid-template-columns: 1fr auto; padding: 28px 18px 24px; }
  .section-title h2 { font-size: 2.8rem; }
  .section-title p { display: none; }
  .catalog-section { padding-bottom: 75px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 48px; padding: 28px 18px 0; }
  .catalog-card, .catalog-card--wide { grid-column: auto; }
  .catalog-card figure, .catalog-card--wide figure { height: 68vw; }
  .card-meta { grid-template-columns: 31px 1fr; }
  .card-meta small { display: none; }
  .card-meta strong { font-size: 1.35rem; }
  .profile-section { min-height: auto; grid-template-columns: 1fr; gap: 48px; padding: 32px 18px 55px; }
  .profile-label { flex-direction: row; }
  .profile-copy h2 { font-size: 3.05rem; }
  .profile-lead { margin: 50px 0 35px; font-size: 2rem; }
  .profile-columns { grid-template-columns: 1fr; gap: 22px; }
  .contact-section { min-height: 55vh; grid-template-columns: 1fr; gap: 44px; padding: 35px 18px 50px; }
  .contact-copy h2 { font-size: 13vw; }
  .contact-actions { width: 100%; }
  .contact-button { width: 100%; }
  .site-footer { min-height: 110px; grid-template-columns: 1fr auto; padding: 20px 18px; }
  .site-footer span { display: none; }

  .project-hero { min-height: auto; display: block; padding: calc(var(--header-h) + 32px) 18px 22px; }
  .project-heading { padding-top: 0; }
  .project-heading h1 { font-size: clamp(3.2rem, 12.5vw, 5rem); line-height: .82; }
  .project-statement { display: block; margin-top: 22px; font-size: .9rem; }
  .project-thumbnails { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 23px; }
  .project-cover { aspect-ratio: 4/3; margin-top: 25px; }
  .project-facts { grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 22px; }
  .project-facts div { padding-top: 7px; }
  .project-overview { min-height: 68vh; grid-template-columns: 1fr; gap: 45px; padding: 55px 18px; }
  .project-overview > p { font-size: 2rem; }
  .video-section, .project-gallery, .drawing-section { padding: 50px 18px 75px; }
  .project-section-head h2 { font-size: 3rem; }
  .media-grid, .drawing-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 25px; }
  .media-item, .media-item--wide, .drawing-item, .drawing-item--wide { grid-column: auto; }
  .media-item img, .media-item--wide img { aspect-ratio: 4/3; }
  .drawing-item img { aspect-ratio: 4/3; }
  .project-pagination { grid-template-columns: 1fr; }
  .project-pagination a { min-height: 175px; padding: 25px 18px; }
  .project-pagination a + a { border-left: 0; border-top: 1px solid #50514a; }
  .project-pagination strong { font-size: 2.15rem; }
  .lightbox-nav { padding: 0 12px; font-size: 1.5rem; }

  .hero-visual.is-in-view > picture > img,
  .catalog-card.is-in-view img,
  .project-cover.is-in-view img,
  .media-item.is-in-view img,
  .drawing-item.is-in-view img {
    filter: grayscale(0) saturate(.92) brightness(1.01) contrast(.98);
    opacity: 1;
  }
}

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