:root {
  --ink: #292929;
  --smoke: #363636;
  --mist: #ece9e1;
  --story-surface: #dcdad5;
  --paper: #d7d1c3;
  --signal: #bb4e35;
  --line: rgba(236, 233, 225, 0.18);
  --serif: "Iowan Old Style", "Baskerville", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--mist); font-family: var(--sans); }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; background: var(--mist); color: var(--ink); padding: .75rem; }
.skip-link:focus { top: 1rem; }

.site-header { height: 100px; padding: 0 clamp(1.25rem, 5vw, 5rem); display: flex; justify-content: space-between; align-items: center; position: absolute; inset: 0 0 auto; z-index: 3; border-bottom: 1px solid var(--line); background: linear-gradient(#16161688, transparent); }
.wordmark { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: end; column-gap: .55rem; letter-spacing: .13em; line-height: .83; font-size: .62rem; font-weight: 700; }
.wordmark::before { content: ""; grid-row: 1 / span 2; width: 42px; aspect-ratio: 1; background: url("assets/back-to-history-seal.png") center / contain no-repeat; }
.wordmark > span { grid-column: 2; grid-row: 1; }
.wordmark strong { grid-column: 2; grid-row: 2; font-family: var(--serif); font-size: 1.25rem; letter-spacing: .02em; font-weight: 500; }
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; }
.site-header nav a, .site-header nav button { transition: opacity .2s ease; }
.site-header nav a:hover, .site-header nav button:hover { opacity: .65; }
.site-header .wordmark::before { width: 48px; }
.site-header .newsletter-nav { border: 1px solid #ffffff67; padding: .65rem .7rem; }
.menu-button { border: 0; background: transparent; color: inherit; text-transform: uppercase; letter-spacing: .09em; padding: 0; }

.hero { height: min(860px, 100svh); min-height: 670px; position: relative; display: flex; align-items: end; overflow: hidden; }
.hero-image, .journal-image, .preview-photo { background-size: cover; background-position: center; }
.hero-photos, .hero-image { position: absolute; inset: 0; }
.hero-image { opacity: 0; transition: opacity .65s ease-in-out; }
.hero-image:first-child { background-image: url("assets/Backtohistory--2%20%2823%29.jpg"); }
.hero-image.is-visible { opacity: 1; }
.hero-rotation { position: absolute; z-index: 1; bottom: .85rem; left: clamp(1.25rem, 9vw, 10rem); min-height: 44px; padding: 0 .75rem; border: 1px solid #fff9; background: #111c; color: #fff; font-size: .875rem; }
.hero-rotation:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 9, 7, .76), rgba(10, 9, 7, .15) 70%), linear-gradient(0deg, rgba(10, 9, 7, .68), transparent 50%); }
.hero-content { z-index: 1; width: min(870px, 100%); padding: 0 clamp(1.25rem, 9vw, 10rem) clamp(5.5rem, 10vh, 8rem); }
.eyebrow { margin: 0 0 1rem; color: var(--paper); font-size: .67rem; letter-spacing: .17em; line-height: 1.5; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 400; }
h1 { margin-bottom: 1.2rem; font-family: var(--serif); font-size: clamp(3.1rem, 7vw, 7.1rem); letter-spacing: -.055em; line-height: .88; }
em { font-weight: 400; }
.intro { max-width: 460px; margin-bottom: 2rem; color: var(--paper); font-size: clamp(.9rem, 1.2vw, 1.06rem); line-height: 1.7; }
.button { min-height: 48px; border: 1px solid currentColor; display: inline-flex; align-items: center; gap: 2.4rem; padding: .7rem 1rem; text-transform: uppercase; font-size: .7rem; letter-spacing: .14em; transition: background .2s, color .2s; }
.button-light:hover { background: var(--mist); color: var(--ink); }
.button-dark:hover { background: var(--ink); color: var(--mist); }
.hero-credit { position: absolute; z-index: 1; right: clamp(1.25rem, 5vw, 5rem); bottom: 1.7rem; font-size: .62rem; letter-spacing: .17em; writing-mode: vertical-rl; }

.explore { padding: clamp(5rem, 9vw, 10rem) clamp(1.25rem, 5vw, 5rem); background: var(--ink); }
.section-heading { max-width: 1200px; margin: 0 auto 3.5rem; display: flex; justify-content: space-between; align-items: end; gap: 4rem; }
h2 { margin-bottom: 0; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 5.2rem); line-height: .94; letter-spacing: -.05em; }
.section-copy { max-width: 340px; color: var(--paper); font-size: .9rem; line-height: 1.7; }
.explore-controls { max-width: 1200px; margin: 0 auto 1.5rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.filter { background: transparent; border: 1px solid var(--line); color: var(--paper); padding: .7rem .8rem; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.filter span { opacity: .6; margin-left: .3rem; }
.filter:hover, .filter.is-active { color: var(--ink); border-color: var(--mist); background: var(--mist); }
.explorer-shell { max-width: 1200px; margin: auto; display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: start; gap: 1px; background: var(--smoke); }
.map-panel { display: grid; justify-items: center; gap: .65rem; background: #272c2e; padding: 1rem; }
.atlas-sheet { position: relative; width: min(100%, 350px); aspect-ratio: 736 / 792; background: url('assets/europe-atlas.svg') center / 100% 100%; }
.map-pins { position: absolute; inset: 0; }
.map-title { margin: 0; color: var(--paper); font: 1.35rem var(--serif); }
.map-pin { position: absolute; width: 8px; height: 8px; transform: translate(-50%, -50%); border-radius: 50%; background: #e6a18b; border: 1px solid #272c2e; }
.map-pin.is-active { z-index: 1; background: #fff3e0; outline: 1px solid #272c2e; box-shadow: 0 0 0 3px #fff3e0; }
.map-pin--small { width: 7px; height: 7px; }
.map-pin--small.is-active { box-shadow: 0 0 0 1px #fff3e0; }
.map-countries { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem .7rem; margin: 0; padding: 0; list-style: none; color: var(--paper); font-size: .9rem; }
.map-countries li { display: inline-flex; align-items: center; gap: .3rem; }
.map-countries li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #e6a18b; }
.map-countries li.is-active { text-decoration: underline; text-underline-offset: .2em; }
.map-key { margin: 0; color: var(--paper); font-size: .8rem; text-align: center; }
.project-preview { min-width: 0; display: flex; flex-direction: column; background: #3b3b3b; }
.preview-photo { width: 100%; aspect-ratio: 3 / 2; background-color: #242424; background-size: contain; background-repeat: no-repeat; transition: background-image .3s ease; }
.preview-content { padding: 1.7rem 1.8rem 1.2rem; }
.preview-content .eyebrow { margin-bottom: .7rem; color: #c2b8a5; }
.preview-content h3 { margin-bottom: .8rem; font-family: var(--serif); font-size: 2.25rem; line-height: .95; letter-spacing: -.04em; }
.preview-content p:not(.eyebrow) { color: var(--paper); font-size: .86rem; line-height: 1.65; }
.text-link { padding: .4rem 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--mist); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.preview-count { padding: 0 1.8rem 1.6rem; margin-top: auto; font-family: var(--serif); font-size: .85rem; letter-spacing: .1em; }
.preview-count span:first-child { color: var(--signal); }
.project-list { max-width: 1200px; margin: 1px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--line); gap: 1px; }
.archive-cta { max-width: 1200px; margin: 2.25rem auto 0; text-align: center; }
.project-card { background: var(--ink); padding: 1.2rem 1.2rem 1.35rem; text-align: left; color: var(--mist); border: 0; transition: background .2s; }
.project-card:hover, .project-card.is-active { background: var(--smoke); }
.project-card p { margin-bottom: .5rem; color: var(--paper); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; }
.project-card strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; letter-spacing: -.03em; }

.journal { min-height: 660px; display: grid; grid-template-columns: 1fr 1fr; background: var(--mist); color: var(--ink); }
.journal-image { min-height: 480px; background-image: url("assets/Backtohistory--zwart%20-2%20%288%29.jpg"); background-position: center; filter: saturate(.75); }
.journal-content { align-self: center; max-width: 650px; padding: clamp(3.5rem, 8vw, 7rem); }
.journal-content .eyebrow { color: #655f54; }
.journal-content p:not(.eyebrow) { max-width: 480px; margin: 1.6rem 0 2.2rem; color: #4f4a42; font-size: .94rem; line-height: 1.8; }
.journal-content h2 { font-size: clamp(2.7rem, 4.8vw, 5rem); }

.review-section { padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 5vw, 5rem); background: #d7d1c3; color: var(--ink); }
.review-inner { max-width: 1200px; margin: auto; display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(250px, .8fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.review-seal { width: min(150px, 100%); height: auto; }
.review-section .eyebrow { color: #665f55; }
.review-section h2 { font-size: clamp(2.5rem, 4.6vw, 4.7rem); }
.review-action p { margin-bottom: 1.5rem; color: #514c44; font-size: .92rem; line-height: 1.7; }
.review-section .button { color: var(--ink); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 138px; padding: 2rem clamp(1.25rem, 5vw, 5rem); background: #1f1f1f; color: var(--paper); }
.site-footer .wordmark::before { width: 56px; }
.site-footer p { margin: 0; font-family: var(--serif); font-size: 1.1rem; }
.site-footer a:last-child { border-bottom: 1px solid var(--line); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }

.story-dialog { width: min(1060px, 92vw); max-width: none; max-height: min(760px, 90vh); padding: 0; border: 0; background: var(--story-surface); color: var(--ink); grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-x: hidden; overflow-y: auto; grid-auto-rows: max-content; overscroll-behavior: contain; }
.story-dialog[open] { display: grid; animation: appear .25s ease-out; }
.story-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(3px); }
.dialog-gallery { min-width: 0; min-height: 590px; display: grid; grid-template-rows: 1fr auto; background: var(--smoke); }
.dialog-image { position: relative; min-height: 490px; background-color: #171717; background-position: center; background-repeat: no-repeat; background-size: contain; transition: background-image .25s ease; }
.gallery-control { position: absolute; top: 50%; z-index: 1; width: 42px; height: 42px; border: 1px solid rgba(236,233,225,.65); border-radius: 50%; background: rgba(17,16,14,.48); color: var(--mist); font-size: 1.1rem; transform: translateY(-50%); transition: background .2s; }
.gallery-control:hover { background: var(--signal); border-color: var(--signal); }
.gallery-previous { left: 1rem; }
.gallery-next { right: 1rem; }
.gallery-position { position: absolute; bottom: .8rem; left: 1rem; margin: 0; padding: .38rem .55rem; background: rgba(17,16,14,.65); color: var(--mist); font-size: .6rem; letter-spacing: .15em; }
.gallery-thumbs { display: flex; gap: .65rem; overflow-x: auto; padding: .85rem; background: #252525; }
.gallery-thumb { flex: 0 0 58px; height: 52px; padding: 0; border: 1px solid transparent; opacity: .58; background-color: #3b3b3b; background-size: cover; background-position: center; }
.gallery-thumb:hover, .gallery-thumb.is-active { border-color: var(--mist); opacity: 1; }
.dialog-copy { align-self: center; padding: clamp(2rem, 5vw, 5rem); }
.dialog-copy .eyebrow { color: #5f594f; }
.dialog-copy h2 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.dialog-copy .lead { margin: 1.8rem 0 1rem; font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; }
#dialogBody, #archiveDialogStory { white-space: pre-line; }
.dialog-copy p:not(.eyebrow):not(.lead) { color: #554f46; font-size: .9rem; line-height: 1.75; }
.dialog-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(17,16,14,.2); border-radius: 50%; background: var(--mist); color: var(--ink); font-size: 1.6rem; line-height: 1; }
.dialog-next { margin-top: 1rem; border: 0; border-bottom: 1px solid currentColor; padding: .35rem 0; background: transparent; color: var(--ink); font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; }

@keyframes reveal { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1.02); } }
@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .wordmark::before { width: 34px; }
  .site-header { height: 82px; }
  .site-header .wordmark::before { width: 38px; }
  .site-header nav { gap: .85rem; font-size: .59rem; }
  .site-header nav a:nth-child(3) { display: none; }
  .hero { min-height: 620px; }
  .hero-content { padding-bottom: 4.5rem; }
  h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .section-heading { display: block; margin-bottom: 2.2rem; }
  .section-copy { margin: 1.3rem 0 0; }
  .explore-controls { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; }
  .filter { flex: 0 0 auto; }
  .explorer-shell { grid-template-columns: minmax(0, 1fr); }
  .atlas-sheet { width: min(100%, 224px); }
  .preview-content { padding: 1.35rem 1.25rem; }
  .preview-content h3 { font-size: 1.85rem; }
  .preview-content p:not(.eyebrow) { display: none; }
  .preview-count { display: none; }
  .project-list { grid-template-columns: 1fr 1fr; }
  .journal { display: flex; flex-direction: column; }
  .journal-image { min-height: 430px; }
  .journal-content { padding: 4rem 1.25rem; }
  .review-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .review-seal { width: 110px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 2.4rem 1.25rem; }
  .story-dialog { max-height: 92vh; overflow-y: auto; grid-template-columns: 1fr; }
  .dialog-gallery { min-height: 364px; }
  .dialog-image { min-height: 0; aspect-ratio: 3 / 2; }
  .dialog-copy { padding: 2.3rem 1.4rem 3rem; }
}
@media (max-width: 470px) { .site-header nav a:first-child { display: none; } .project-card { padding: 1rem; } .project-card strong { font-size: 1.15rem; } }
@media (max-width: 360px) {
  .site-header { padding-inline: .75rem; }
  .site-header nav { gap: .55rem; }
  .site-header .newsletter-nav { padding-inline: .45rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; } }

.project-card img { display:block; width:100%; aspect-ratio: 3 / 2; object-fit:cover; margin-bottom:1rem; }

html:has(dialog[open]) { overflow: hidden; }
