/* ==========================================================================
   Zuimadeit portfolio — rebuilt from the Framer project, 1:1.
   Breakpoints match Framer: Desktop ≥1200px · Tablet 810–1199px · Phone <810px
   ========================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/Inter-Medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/Inter-Bold.woff") format("woff"); }

:root {
  /* Colour tokens (Framer: Paper / Ink / Secondary) */
  --paper: #ffffff;
  --ink: #151515;
  --secondary: #858585;

  /* Page padding per breakpoint */
  --pad-top: 40px;
  --pad-x: 80px;
  --pad-bottom: 72px;
}
@media (min-width: 810px) and (max-width: 1199.98px) { :root { --pad-top: 32px; --pad-x: 36px; --pad-bottom: 64px; } }
@media (max-width: 809.98px) { :root { --pad-top: 28px; --pad-x: 16px; --pad-bottom: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Inter Placeholder", sans-serif;
  /* Framer renders Inter with these alternates (single-storey a, flat-top 3/4, etc.) */
  font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
p { margin: 0; }
button { font: inherit; }

/* ---------- Text styles (Framer text presets) ---------- */
.t-caption { font-size: 12px; line-height: 1.35em; letter-spacing: -0.02em; font-weight: 400; color: var(--ink); }
.t-body    { font-size: 14px; line-height: 1.35em; letter-spacing: -0.02em; font-weight: 400; color: var(--ink); }
.t-title   { font-size: 24px; line-height: 1.35em; letter-spacing: -0.02em; font-weight: 400; color: var(--ink); margin: 0; }
.t-display { font-size: 44px; line-height: 1.08em; letter-spacing: -0.035em; font-weight: 700; color: var(--ink); }
@media (min-width: 810px) and (max-width: 1199.98px) { .t-display { font-size: 36px; } }
@media (max-width: 809.98px) { .t-display { font-size: 26px; } }
.muted { color: var(--secondary); }

/* ---------- Links (Framer "Editorial links" preset) ---------- */
a.link { color: var(--ink); text-decoration: none; }
a.link:hover { color: var(--secondary); }
a.link[aria-current="page"] { text-decoration: underline; }
a.block-link { color: inherit; text-decoration: none; display: block; }

/* ---------- Header / navigation (shared layout) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--paper);
  padding: 8px 16px 28px 16px;
  overflow: clip;
}
.site-nav { display: flex; justify-content: space-between; align-items: flex-start; }
@media (max-width: 809.98px) {
  .site-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* ---------- Page content wrapper ---------- */
.page { display: flex; flex-direction: column; align-items: center; }
.content {
  width: 100%; max-width: 1440px;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  display: flex; flex-direction: column; align-items: flex-start; gap: 56px;
}

/* ==========================================================================
   Home — full-height project slides that stack as you scroll
   ========================================================================== */
.home .content { padding-bottom: 80px; gap: 0; overflow: clip; }
@media (min-width: 810px) and (max-width: 1199.98px) { .home .content { padding-bottom: 64px; } }
@media (max-width: 809.98px) { .home .content { padding-bottom: 56px; } }
.home-list { width: 100%; display: flex; flex-direction: column; gap: 0; }
@media (min-width: 810px) and (max-width: 1199.98px) { .home-list { gap: 64px; } }
@media (max-width: 809.98px) { .home-list { gap: 56px; } }
.home-slide {
  position: sticky; top: 0; z-index: 1;
  height: 100vh; width: 100%;
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.home-photo { width: 100%; height: 650px; background-size: cover; background-position: center top; background-repeat: no-repeat; }
.home-video { width: 100%; height: 585px; }
@media (min-width: 810px) and (max-width: 1199.98px) { .home-photo { height: 480px; } .home-video { height: 415px; } }
@media (max-width: 809.98px) { .home-photo { height: 330px; } .home-video { height: 202px; } }
.home-labels { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.home-labels a { display: block; width: 100%; }

/* ==========================================================================
   Video player (Framer code component "ProjectVideo")
   ========================================================================== */
.pv { width: 100%; height: 100%; position: relative; background: #eee; overflow: hidden; outline-offset: 2px; }
.pv video, .pv > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-badge { position: absolute; left: 12px; top: 12px; padding: 6px 8px; background: #fff; color: #151515; font: 10px "Inter", sans-serif; font-feature-settings: inherit; }
.pv-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 12px; background: rgba(255,255,255,.94); color: #151515;
  font: 11px "Inter", sans-serif; font-feature-settings: inherit;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; transition: opacity .18s;
}
.pv:hover .pv-bar, .pv:focus-within .pv-bar, .pv.is-focused .pv-bar { opacity: 1; }
.pv-bar button { border: 0; background: transparent; color: inherit; padding: 6px 4px; font: inherit; cursor: pointer; }
.pv-bar button:disabled { cursor: not-allowed; opacity: .5; }
.pv-bar input[type="range"] { min-width: 20px; width: 100%; flex: 1; accent-color: #151515; }
.pv:fullscreen video { object-fit: contain; background: #000; }

/* ==========================================================================
   Photography — sticky preview + hover list (Framer "PhotographyPreview")
   ========================================================================== */
.photo-preview { width: 100%; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.photo-preview-frame { position: sticky; top: 100px; width: 100%; height: min(70vh, 680px); overflow: hidden; }
.photo-preview-frame img { width: 100%; height: 100%; object-fit: contain; object-position: left top; display: block; }
.photo-list { width: 100%; min-width: 0; display: flex; flex-direction: column; }
.photo-title {
  display: block; padding: 12px 0;
  font: 400 24px/1.15 "Inter", sans-serif; font-feature-settings: inherit; letter-spacing: -.025em;
  text-decoration: none; color: #858585; transition: color .18s; outline-offset: 4px;
}
.photo-title.is-active { color: #151515; }
@media (max-width: 809.98px) {
  .photo-preview { grid-template-columns: 1fr; gap: 28px; }
  .photo-preview-frame { position: relative; top: auto; height: 360px; }
}

/* ==========================================================================
   Overview — filter row + staggered 4-column grid
   ========================================================================== */
.filter-row { width: 100%; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; }
.filter-row span, .filter-row a { font-size: 12px; font-weight: 500; line-height: 1.2; text-decoration: none; }
.filter-label { color: rgb(102,102,102); }
.filter-row a { color: rgb(170,170,170); }
.filter-row a.is-active { color: rgb(17,17,17); }
.overview-grid { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 28px; overflow: clip; }
.ov-item { display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: clip; }
.ov-spacer { height: 56px; flex: none; }
.ov-cover { display: block; width: 100%; background-size: cover; background-position: center; transition: opacity .4s cubic-bezier(.2,.8,.3,1.05); }
.ov-cover:hover { opacity: .85; }
.ov-cover.photo { height: 390px; }
.ov-cover.video { height: 260px; }
@media (min-width: 810px) and (max-width: 1199.98px) {
  .overview-grid { gap: 48px 24px; }
  .ov-cover.photo { height: 400px; } .ov-cover.video { height: 240px; }
}
@media (max-width: 809.98px) {
  .overview-grid { grid-template-columns: 1fr; gap: 48px; }
  .ov-spacer { display: none; }
  .ov-cover.photo { height: 450px; } .ov-cover.video { height: 202px; }
}

/* ==========================================================================
   Motion — video grid
   ========================================================================== */
.motion-grid { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; overflow: clip; }
.motion-item { display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: clip; }
.motion-video { width: 100%; height: 140px; }
@media (min-width: 810px) and (max-width: 1199.98px) { .motion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .motion-video { height: 200px; } }
@media (max-width: 809.98px) { .motion-grid { grid-template-columns: 1fr; } .motion-video { height: 202px; } }

/* ==========================================================================
   Archive — 12/8/4 column grid with lightbox
   ========================================================================== */
.archive-grid { width: 100%; padding: 16px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 0; }
@media (min-width: 810px) and (max-width: 1199.98px) { .archive-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 809.98px) { .archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.archive-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.archive-item button { all: unset; display: block; width: 100%; cursor: pointer; }
.archive-item img { width: 100%; height: auto; }
.archive-empty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; padding: 10px; min-height: 120px; background: rgba(204,204,204,.2); border: 1px dashed rgba(136,136,136,.2); border-radius: 20px; color: rgb(153,153,153); font-size: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 10; display: none; align-items: center; justify-content: center; background: transparent; cursor: default; }
.lightbox.is-open { display: flex; }
.lightbox-inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; overflow: clip; }
.lightbox-inner img { height: 75vh; width: auto; max-width: 100vw; }
.lightbox-title { font-size: 12px; font-weight: 500; color: #000; text-align: start; }
@media (min-width: 810px) and (max-width: 1199.98px) { .lightbox-inner { width: 60%; } .lightbox-inner img { width: 100%; height: auto; } }
@media (max-width: 809.98px) { .lightbox-inner { width: 90%; } .lightbox-inner img { width: 100%; height: auto; } }

/* ==========================================================================
   Info — biography + contact
   ========================================================================== */
.info .content { height: 1900px; position: relative; overflow: clip; padding-bottom: 80px; }
.bio { position: absolute; top: 40px; left: 20px; right: 20px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: #fff; }
.bio-toggle { all: unset; cursor: pointer; padding: 8px 16px 8px 0; }
.bio-extended[hidden] { display: none; }
.contact { position: absolute; top: 500px; left: 20px; right: 20px; z-index: 1; padding: 180px 0 24px; display: flex; flex-direction: column; overflow: clip; }
.contact a { color: inherit; text-decoration: none; }
@media (min-width: 810px) and (max-width: 1199.98px) { .contact { left: 24px; padding-top: 160px; } }
@media (max-width: 809.98px) { .contact { padding-top: 120px; } }

/* ==========================================================================
   Project detail
   ========================================================================== */
.project .content { padding-top: 32px; padding-bottom: 80px; align-items: center; gap: 28px; overflow: clip; }
@media (min-width: 810px) and (max-width: 1199.98px) { .project .content { padding-bottom: 64px; } }
@media (max-width: 809.98px) { .project .content { padding-top: 28px; padding-bottom: 56px; } }
.project-inner { width: 100%; max-width: 1280px; display: flex; flex-direction: column; gap: 28px; overflow: clip; }
.project-lead { width: 100%; height: 620px; background-size: cover; background-position: center top; }
@media (min-width: 810px) and (max-width: 1199.98px) { .project-lead { height: 480px; } }
@media (max-width: 809.98px) { .project-lead { height: 360px; } }
.project-info { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 12px 0 48px; overflow: clip; }
@media (min-width: 810px) and (max-width: 1199.98px) { .project-info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 809.98px) { .project-info { display: flex; flex-direction: column; gap: 20px; } }
.info-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.project-description { width: 100%; white-space: pre-line; }
.project-gallery { width: 100%; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 809.98px) { .project-gallery { gap: 20px; } }

/* Slideshow (Framer "GalleryCMS": fade 0.8s, cover, arrows) */
.slideshow { position: relative; width: 100%; height: 400px; overflow: hidden; background: transparent; }
.slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.slideshow img.is-active { opacity: 1; }
.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.28); color: #fff;
  display: flex; align-items: center; justify-content: center; padding: 0; z-index: 2;
}
.slide-arrow.prev { left: 16px; }
.slide-arrow.next { right: 16px; }
.slide-arrow svg { width: 16px; height: 16px; }

/* Utility */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
