/* Unknown Architects — projectdetailtemplate (House on a Dune als eerste uitwerking) */

.project { padding-top: var(--nav-h); }
.zoom { display: block; width: 100%; padding: 0; cursor: zoom-in; }
.zoom picture img { transition: opacity 700ms var(--ease-out), transform 1.2s var(--ease-out); }
.zoom:hover picture img { transform: scale(1.015); }

/* Hero */
.p-hero { padding-block: clamp(32px, 5vw, 72px) clamp(64px, 8vw, 128px); }
.p-hero__grid { display: grid; gap: var(--s-6); }
.p-hero__text { display: flex; flex-direction: column; gap: var(--s-3); }
.crumbs { display: flex; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { display: inline-flex; align-items: center; }
.p-hero__title { font-size: clamp(2.75rem, 6vw, 5.5rem); }
.p-hero__sub { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--stone); max-width: 34ch; }
.p-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2) var(--col-gap); margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.p-facts dt, .credits dt { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); margin-bottom: 4px; }
.p-facts dd { font-size: 0.9375rem; }
.p-hero__media picture { aspect-ratio: 4 / 5; }
@media (min-width: 1024px) {
  .p-hero__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: end; }
  .p-hero__text { grid-column: 1 / 6; padding-bottom: var(--s-2); }
  .p-hero__media { grid-column: 6 / 13; }
  .p-hero__media picture { aspect-ratio: auto; width: 100%; height: clamp(520px, calc(100vh - var(--nav-h) - 96px), 900px); height: clamp(520px, calc(100svh - var(--nav-h) - 96px), 900px); }
}

/* Hoofdstukken */
.p-chapter { padding-block: clamp(80px, 10vw, 160px); }
.p-chapter--tint { background: var(--paper-2); }
.p-text { display: grid; gap: var(--s-3); max-width: 760px; margin-bottom: clamp(48px, 6vw, 96px); }
.p-lead { font-size: clamp(1.375rem, 2.4vw, 2rem); font-weight: 300; line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty; }
.p-body { color: var(--stone); max-width: 60ch; }
@media (min-width: 1024px) {
  .p-text { margin-left: calc((100% - 11 * var(--col-gap)) / 12 * 3 + 3 * var(--col-gap)); }
}

/* Beeldritme */
.g { margin: 0; }
.g figcaption { margin-top: 12px; font-size: 0.8125rem; color: var(--stone); }
.g--wide { width: 100%; }
.g--wide picture { aspect-ratio: 3 / 2; }
.g-pair, .g-trio { display: grid; gap: var(--s-4) var(--col-gap); margin-top: clamp(48px, 6vw, 96px); }
.g-pair .g picture, .g-trio .g picture { aspect-ratio: 3 / 4; }
.g-pair .g--land picture, .g-trio .g--tall picture { aspect-ratio: 3 / 2; }
.g--full picture { aspect-ratio: 3 / 2; }
@media (min-width: 900px) {
  .g-pair { grid-template-columns: 1fr 1fr; align-items: start; }
  .g--offset { margin-top: clamp(80px, 12vw, 200px); }
  .g--offset-up { margin-bottom: clamp(80px, 12vw, 200px); }
  .g-pair--bottom { grid-template-columns: 5fr 7fr; align-items: end; }
  .g-trio { grid-template-columns: 3fr 4fr 3fr; align-items: center; }
  .g-trio .g--tall picture { aspect-ratio: 4 / 5; }
}
@media (min-width: 1024px) {
  .g--wide { width: 75%; }
  .g--right { margin-left: 25%; }
  .g--full { width: 75%; margin-inline: auto; }
}

/* Bouw-strook */
.p-build__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-3) var(--s-6); margin-bottom: clamp(40px, 5vw, 64px); }
.p-build__head > div:first-child { display: grid; gap: var(--s-2); max-width: 640px; }
.p-build__head .p-body { max-width: 44ch; }
.strip { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: var(--gutter); outline-offset: -2px; }
.strip::-webkit-scrollbar { display: none; }
.strip__list { display: flex; gap: var(--col-gap); width: max-content; padding-inline: max(var(--gutter), calc((100vw - 1600px) / 2 + var(--gutter))); }
.strip__item { flex: none; scroll-snap-align: start; }
.strip__item picture { height: clamp(320px, 42vw, 520px); aspect-ratio: 3 / 2; }
.strip__item--p picture { aspect-ratio: 2 / 3; }
.strip__foot { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s-2); }
.strip__hint { font-size: 0.8125rem; color: var(--stone); }
.strip__nav { display: flex; gap: 8px; }
.strip__nav button { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: border-color var(--dur-1), color var(--dur-1), opacity var(--dur-1); }
.strip__nav button:hover { border-color: var(--ink); color: var(--accent); }
.strip__nav button:disabled { opacity: .3; cursor: default; }

/* Tekeningen */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.p-drawings .p-build__head { max-width: 1100px; margin-inline: auto; flex-direction: column; align-items: flex-start; }
.tabs button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: 0.875rem; transition: background-color var(--dur-2), color var(--dur-2), border-color var(--dur-2); }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.drawing-stage { background: var(--paper); aspect-ratio: 16 / 10; position: relative; max-width: 1100px; margin-inline: auto; }
.drawing { position: absolute; inset: 0; padding: clamp(16px, 4vw, 48px); }
.drawing[hidden] { display: none; }
.drawing picture { width: 100%; height: 100%; background: transparent !important; }
.drawing picture img { object-fit: contain; mix-blend-mode: multiply; }
.drawing.is-entering { animation: drawIn 700ms var(--ease-out); }
@keyframes drawIn { from { opacity: 0; clip-path: inset(0 0 0 100%); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@media (max-width: 899px) { .drawing-stage { aspect-ratio: 4 / 3; } }

/* Slot */
.p-close { padding-top: clamp(80px, 10vw, 160px); }

/* Credits */
.p-credits__grid { display: grid; gap: var(--s-3); }
.credits { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--col-gap); }
.credits dd { font-size: 0.9375rem; }
@media (min-width: 1024px) {
  .p-credits__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); }
  .p-credits__grid > .label { grid-column: 1 / 4; }
  .credits { grid-column: 4 / 13; grid-template-columns: repeat(3, 1fr); }
}

/* Volgend project */
.p-next { padding-block: 0 clamp(80px, 10vw, 160px); }
.p-next .wrap { display: grid; gap: var(--s-3); justify-items: start; }
.next { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--col-gap); padding-top: var(--s-4); border-top: 1px solid var(--ink); }
.next__text { display: grid; gap: var(--s-1); }
.next__title { font-size: clamp(2rem, 5vw, 4rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.05; transition: color var(--dur-1); }
.next__meta { color: var(--stone); }
.next__img { width: clamp(120px, 22vw, 320px); aspect-ratio: 4 / 5; }
.next:hover .next__title { color: var(--accent); }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--night); color: var(--paper); }
.lightbox[open] { display: grid; place-items: center; animation: lbIn 300ms var(--ease-out); }
.lightbox::backdrop { background: transparent; }
@keyframes lbIn { from { opacity: 0; } }
.lightbox__fig { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 64px 72px; }
.lightbox__fig img { max-width: calc(100vw - 144px); max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; }
.lightbox__fig figcaption { font-size: 0.8125rem; color: var(--night-stone); max-width: 70ch; text-align: center; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--night-line); display: grid; place-items: center; color: var(--paper); transition: border-color var(--dur-1), color var(--dur-1); }
.lightbox__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.lightbox__btn:hover { border-color: var(--paper); color: var(--accent-night); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--night-stone); }
@media (max-width: 699px) {
  .lightbox__fig { padding: 64px 0 72px; }
  .lightbox__fig img { max-width: 100vw; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; translate: none; }
  .lightbox__count { bottom: 28px; }
}
