/* Aesthetic: Saint Laurent-style minimalism — white canvas, centered serif
   wordmark, bold uppercase Helvetica nav, full-bleed editorial cards. */
:root {
  --bg: #fff;
  --fg: #000;
  --muted: #6b6b6b;
  --header-h: 72px;
  --sans: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans", sans-serif;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  /* Brand is light-only; keep it deliberate */
  :root { color-scheme: light; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { display: block; width: 100%; height: auto; }
figure { margin: 0; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 20px;
  background: var(--bg);
}
.wordmark {
  font-family: var(--serif);
  font-size: clamp(22px, 5.5vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: none;
  white-space: nowrap;
}
.header-actions { justify-self: end; display: flex; gap: 20px; align-items: center; }
.header-actions .icon-btn { justify-self: auto; }
.icon-btn { display: inline-flex; background: none; border: 0; padding: 12px 0; cursor: pointer; color: inherit; justify-self: start; }
.burger { display: block; width: 24px; height: 12px; position: relative; }
.burger i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s, top .25s; }
.burger i:first-child { top: 2px; }
.burger i:last-child { top: 9px; }
.menu-open .burger i:first-child { top: 6px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 6px; transform: rotate(-45deg); }

/* Full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 10;
  padding: calc(var(--header-h) + 40px) 20px 40px;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  text-align: center;
}
.menu[hidden] { display: none; }
.menu-primary { display: grid; gap: 28px; font-size: 26px; font-weight: 700; letter-spacing: 0; }
.menu-secondary { display: grid; gap: 18px; font-size: 15px; font-weight: 700; }
.menu-open { overflow: hidden; }

/* Home: stacked editorial cards */
main { padding-top: var(--header-h); }
.cards { display: block; }
.card { min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; padding: 40px 20px 56px; }
.card a { display: block; width: min(100%, 780px); text-align: center; }
.card figure { overflow: hidden; background: #f3efe9; }
.card img { aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.card a:hover img { transform: scale(1.02); }
.card-title { margin: 28px 0 0; font-weight: 700; font-size: 18px; }
.card-cta { margin: 0; font-size: 18px; }

/* Project page */
.project-head { text-align: center; padding: 56px 20px 32px; }
.project-head h1 { margin: 0; font-size: 18px; font-weight: 700; }
.meta { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.project-images { display: grid; gap: 24px; width: min(100%, 780px); margin: 0 auto; padding: 0 20px; }
.project-desc { max-width: 560px; margin: 48px auto 0; padding: 0 20px; text-transform: none; font-size: 16px; text-align: center; }
.project-next { text-align: center; padding: 72px 20px 80px; font-size: 14px; }
.project-next strong { font-size: 18px; }

/* Text pages */
.text-page { max-width: 640px; margin: 0 auto; padding: 72px 20px 96px; text-align: center; }
.text-page h1 { font-size: 18px; font-weight: 700; margin: 0 0 32px; }
.text-page p { text-transform: none; margin: 0 0 20px; }
.text-page a { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer { padding: 72px 20px 56px; text-align: center; }
.site-footer ul { display: grid; gap: 14px; margin-bottom: 40px; }
.copyright { color: var(--muted); font-size: 12px; margin: 0; }

@media (min-width: 900px) {
  :root { --header-h: 88px; }
  .site-header { padding: 0 40px; }
  .site-footer ul { display: flex; justify-content: center; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Search overlay */
.search { position: fixed; inset: 0; z-index: 30; background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); padding: 0 20px; overflow-y: auto; }
.search[hidden] { display: none; }
.search-close { position: absolute; top: 0; right: 20px; height: var(--header-h); align-items: center; }
.search-form { margin: calc(var(--header-h) + 80px) 0 0; border-bottom: 1px solid var(--fg); max-width: 720px; }
.search-form input { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; text-transform: uppercase; padding: 12px 0; border-radius: 0; }
.search-form input::placeholder { color: var(--muted); }
.search-heading { margin: 64px 0 24px; font-weight: 700; font-size: 16px; }
.search-results { display: grid; gap: 20px; }
.search-results li[hidden] { display: none; }
.search-open { overflow: hidden; }

/* Footer extras */
.newsletter { margin: 0 0 40px; }
.social { display: flex; justify-content: center; gap: 36px; margin-bottom: 40px; }

/* Motion: scroll reveal + page transitions */
.js .card figure, .js .card-title, .js .card-cta, .js .project-images figure { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.6,.2,1); }
.js .is-visible { opacity: 1 !important; transform: none !important; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
main { animation: page-in .5s ease both; }
body.leaving main { opacity: 0; transition: opacity .25s ease; }
@media (prefers-reduced-motion: reduce) { main { animation: none; } .js .card figure, .js .card-title, .js .card-cta, .js .project-images figure { opacity: 1; transform: none; } }
.search-form input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
