@import url("https://api.fontshare.com/v2/css?f[]=gambetta@400,500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #0f0f0f;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.12);
  --gutter: 16px;
  --serif: "Gambetta", "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--sans);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.caps { text-transform: uppercase; letter-spacing: 0; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex;
  justify-content: space-between; align-items: center;
  padding: 14px var(--gutter); mix-blend-mode: difference; font-weight: 600;
  text-transform: uppercase; font-size: 14px;
}
.header button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-transform: uppercase; font-weight: 500; font-size: 15px; }
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.menu.open { opacity: 1; pointer-events: auto; }
.menu a { font-family: var(--serif); font-size: clamp(54px, 10vw, 120px); letter-spacing: -0.06em; line-height: 1; opacity: .5; transition: opacity .2s; }
.menu a:hover, .menu a.active { opacity: 1; }

/* Hero */
.hero {
  position: relative; height: 100vh; min-height: 560px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(56px, 11vw, 150px);
  line-height: .95; letter-spacing: -0.08em; max-width: 7em; position: relative; z-index: 3; pointer-events: none;
}
.hero p { margin-top: 28px; text-transform: uppercase; font-size: 14px; position: relative; z-index: 3; pointer-events: none; }
.trail-img {
  position: absolute; z-index: 1; object-fit: cover; pointer-events: none;
  transform: translate(-50%, -50%) scale(.6); opacity: 0;
  transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .9s;
}
.trail-img.in { transform: translate(-50%, -50%) scale(1); opacity: 1; transition-duration: .35s; }
.trail-img.out { transform: translate(-50%, -50%) scale(.85); opacity: 0; }

/* Sections */
.section { padding: 64px var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
h2.title { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5vw, 64px); letter-spacing: -0.06em; line-height: 1; }
.link-u { text-transform: uppercase; font-size: 15px; border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card { display: block; }
.card .ph { aspect-ratio: 4/5; overflow: hidden; background: #1b1b1b; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover img { transform: scale(1.04); }
.card .meta { margin-top: 10px; display: flex; justify-content: space-between; text-transform: uppercase; font-size: 14px; }
.card .meta span:last-child { color: var(--muted); text-transform: none; }
.grid.minimal .meta { display: none; }

/* Info */
.info { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 64px var(--gutter) 96px; }
.info .rows .row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 24px 0; max-width: 640px; }
.info .rows .row > span:first-child { text-transform: uppercase; color: var(--muted); font-size: 14px; }
.info .rows p + p { margin-top: 12px; }
.info .rows .career div { margin-bottom: 14px; }
.info .portrait { width: 100%; max-width: 480px; justify-self: end; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); }
.info .heading { grid-column: 1 / -1; margin-bottom: 8px; }

/* Works page */
.page-top { padding: 120px var(--gutter) 24px; }
.page-top h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(54px, 9vw, 120px); letter-spacing: -0.07em; line-height: 1; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--gutter) 24px; }
.filters button { background: none; color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; text-transform: uppercase; font-size: 13px; cursor: pointer; transition: .2s; }
.filters button:hover { border-color: var(--fg); }
.filters button.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Project page */
.project-hero { padding: 120px var(--gutter) 0; }
.project-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 8vw, 110px); letter-spacing: -0.07em; line-height: 1; margin-bottom: 20px; }
.project-gallery { display: grid; gap: 10px; padding: 0 var(--gutter); }
.project-gallery img { width: 100%; height: auto; }
.project-meta { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 28px var(--gutter); }
.project-meta .l { text-transform: uppercase; color: var(--muted); font-size: 14px; }
.project-meta p { max-width: 640px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 120px var(--gutter) 96px; min-height: 90vh; }
.contact h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(54px, 9vw, 120px); letter-spacing: -0.07em; line-height: 1; margin-bottom: 24px; }
.contact .lead { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; max-width: 520px; margin-bottom: 56px; }
.contact .blk { margin-bottom: 32px; }
.contact .blk .l { text-transform: uppercase; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.contact .blk a, .contact .blk div { display: block; font-size: 20px; }
.contact .blk a:hover { opacity: .6; }
.contact img { width: 100%; max-width: 560px; justify-self: end; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 64px var(--gutter) 20px; }
.footer .cta { font-family: var(--serif); font-size: clamp(54px, 13vw, 200px); letter-spacing: -0.08em; line-height: .9; display: inline-block; transition: opacity .2s; }
.footer .cta:hover { opacity: .6; }
.footer .bar { margin-top: 56px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; text-transform: uppercase; font-size: 14px; }
.footer .bar .links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer .bar a:hover { opacity: .6; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .trail-img { display: none; } }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .info, .contact { grid-template-columns: 1fr; }
  .info .portrait, .contact img { justify-self: start; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .info .rows .row, .project-meta { grid-template-columns: 1fr; gap: 6px; }
  .section { padding: 48px var(--gutter); }
}

/* Hero marquee */
.marquee { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: .35; z-index: 1; pointer-events: none; }
.marquee .track { display: flex; gap: 14px; width: max-content; animation: slide linear infinite; }
.marquee .track.rev { animation-direction: reverse; }
.marquee img { height: var(--h, 220px); width: auto; aspect-ratio: 4/5; object-fit: cover; }
@keyframes slide { to { transform: translateX(-50%); } }
