/* ============================================================
   VEENPLUISWEG 7 — editorial architectural website V2
   Static HTML / CSS / JS — Synology friendly
   ============================================================ */

:root {
  --ink: #0b1211;
  --deep: #102220;
  --teal: #183533;
  --paper: #f1eee6;
  --paper-2: #e6e1d7;
  --concrete: #bcb7ad;
  --muted: #77756e;
  --aqua: #b9d8d1;
  --line: rgba(11,18,17,.16);
  --line-light: rgba(255,255,255,.18);
  --rust: #a9642f;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --pad: clamp(22px, 6vw, 96px);
  --section-y: clamp(78px, 11vw, 150px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, a { font: inherit; }
a { color: inherit; }

.mono {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .075em;
  font-size: .69rem;
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1000;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0;
}
h1 em, h2 em { color: var(--aqua); font-style: italic; }
p { max-width: 65ch; margin: 0 0 1.15em; }

.site-header {
  position: fixed; inset: 0 0 auto; height: 76px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 52px);
  color: #fff;
  mix-blend-mode: difference;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; white-space: nowrap;
}
.brand-mark {
  border: 1px solid currentColor; padding: 3px 7px;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .12em;
}
.brand-name {
  font-family: var(--mono); font-size: .69rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.header-actions { display:flex; align-items:center; gap:20px; }
.language-switch { display:flex; align-items:center; gap:5px; font-family:var(--mono); font-size:.64rem; letter-spacing:.08em; }
.language-switch .lang { border:0; background:none; color:inherit; padding:2px 1px; cursor:pointer; opacity:.48; font-family:var(--mono); font-size:.64rem; }
.language-switch .lang.active { opacity:1; text-decoration:underline; text-underline-offset:4px; }
.site-nav { display: flex; align-items: center; gap: clamp(13px, 2vw, 30px); }
.site-nav a {
  display: flex; gap: 7px; align-items: center;
  text-decoration: none; font-family: var(--mono);
  text-transform: uppercase; font-size: .65rem; letter-spacing: .065em;
  opacity: .82; transition: opacity .2s ease;
}
.site-nav a span { opacity: .48; }
.site-nav a:hover { opacity: 1; }
.site-nav a b { font-weight:400; }
.nav-toggle {
  display: none; width: 34px; height: 24px; padding: 0; border: 0;
  background: none; position: relative; cursor: pointer; color: #fff;
}
.nav-toggle span { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: .25s; }
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 20px; }

.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end; color: var(--paper);
  background:
    radial-gradient(circle at 72% 22%, #224744 0, var(--deep) 30%, var(--ink) 70%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .12;
  display: grid; grid-template-columns: repeat(8, 1fr);
}
.hero-grid span { border-right: 1px solid var(--aqua); }
.hero-drawing { position: absolute; inset: 0; opacity: .62; }
.hero-drawing svg { width: 100%; height: 100%; }
.hero-content {
  position: relative; z-index: 2;
  padding: 0 var(--pad) clamp(62px, 9vw, 112px);
  max-width: 1000px;
}
.eyebrow { color: var(--aqua); margin-bottom: 20px; }
.hero h1 { font-size: clamp(3.1rem, 7.4vw, 7.2rem); }
.hero h1 span, .hero h1 em { display: block; }
.hero-lead {
  max-width: 45ch; color: var(--concrete);
  font-size: clamp(1rem, 1.4vw, 1.18rem); margin-top: 31px;
}
.hero-cta {
  display: inline-flex; gap: 14px; margin-top: 17px;
  text-decoration: none; color: #fff; border-bottom: 1px solid rgba(255,255,255,.45);
  padding-bottom: 7px;
}
.hero-meta {
  position: absolute; right: var(--pad); bottom: 28px; z-index: 2;
  display: flex; gap: 28px; color: var(--concrete);
}

.section {
  position: relative;
  padding: var(--section-y) var(--pad);
}
.section.light { background: var(--paper); color: var(--ink); }
.section.dark { background: var(--ink); color: var(--paper); }
.section.blueprint {
  background-color: var(--teal); color: var(--aqua);
  background-image:
    linear-gradient(rgba(185,216,209,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185,216,209,.075) 1px, transparent 1px);
  background-size: 34px 34px;
}
.section-head {
  display: flex; flex-wrap: wrap; gap: 6px 28px;
  padding-bottom: 13px; margin-bottom: clamp(48px, 7vw, 82px);
  border-bottom: 1px solid currentColor; opacity: .57;
}
.split {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 8vw, 120px); align-items: center;
}
.story h2, .feature-copy h2, .visit h2 { font-size: clamp(2.7rem, 5vw, 5.2rem); margin-bottom: 32px; }
.story p { color: #4e4d48; }
.kicker { color: var(--rust); margin-bottom: 18px; }
.dark .kicker { color: var(--aqua); }

.image-frame {
  position: relative; width: 100%; min-height: 220px;
  overflow: hidden; background: #d9d4ca;
}
.image-frame img {
  width: 100%; height: 100%; min-height: inherit; object-fit: cover;
}
.placeholder {
  aspect-ratio: 4/3;
  border: 1px dashed rgba(11,18,17,.3);
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(11,18,17,.05) 0 1px, transparent 1px 14px),
    rgba(11,18,17,.025);
}
.dark .placeholder {
  border-color: rgba(255,255,255,.22);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 14px),
    rgba(255,255,255,.02);
}
.placeholder-label {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 6px; padding: 20px; opacity: .7;
}
.placeholder-label strong { font-family: var(--display); font-size: 1.1rem; font-weight: 400; }
.placeholder-label small { font-family: var(--mono); font-size: .58rem; opacity: .65; }
.image-frame.loaded { border: 0; background: transparent; }
.image-frame.loaded .placeholder-label { display: none; }

.fact-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(54px, 8vw, 100px); border-top: 1px solid var(--line);
}
.fact-strip div { padding: 20px 20px 0 0; }
.fact-strip span { display: block; color: var(--muted); margin-bottom: 8px; }
.fact-strip strong { font-family: var(--display); font-size: 1.25rem; font-weight: 400; }

.editorial-feature {
  display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(290px, .72fr);
  gap: clamp(42px, 7vw, 105px); align-items: end;
}
.feature-image { margin: 0; }
.feature-image img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
.feature-image figcaption { color: var(--concrete); margin-top: 12px; }
.feature-copy { padding-bottom: 24px; }
.feature-copy p:not(.kicker):not(.note) { color: var(--concrete); }
.note {
  margin-top: 28px; padding-left: 16px;
  border-left: 1px solid var(--aqua); color: var(--aqua);
  font-size: .88rem;
}
.image-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .52fr);
  gap: clamp(24px, 6vw, 85px); align-items: center;
  margin-top: clamp(60px, 9vw, 115px);
}
.dark-frame { aspect-ratio: 4/3; }
.technical-note { color: var(--concrete); }
.technical-note > span { color: var(--aqua); }
.technical-note p { margin-top: 16px; }

.intro-wide { max-width: 760px; margin-bottom: 54px; }
.intro-wide h2 { font-size: clamp(3rem, 6vw, 6rem); margin-bottom: 28px; }
.intro-wide > p:last-child { color: var(--concrete); }

.compare {
  position: relative; width: 100%; aspect-ratio: 16/9;
  overflow: hidden; border: 1px solid var(--line-light);
  touch-action: pan-y; user-select: none;
}
.compare-layer { position: absolute; inset: 0; }
.compare-before { z-index: 1; }
.compare-after { z-index: 2; clip-path: inset(0 0 0 50%); }
.compare .image-frame { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; border: 0; }
.compare .image-frame img { object-fit: cover; }
.compare-tag {
  position: absolute; top: 18px; z-index: 5; padding: 7px 10px;
  background: rgba(11,18,17,.72); color: #fff;
}
.compare-before .compare-tag { left: 18px; }
.compare-after .compare-tag { right: 18px; }
.compare-handle {
  position: absolute; z-index: 10; top: 0; bottom: 0; left: 50%;
  width: 2px; border: 0; padding: 0; transform: translateX(-1px);
  background: #fff; cursor: ew-resize;
}
.compare-handle span {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink); font-family: var(--mono);
}
.compare-handle span:first-child { top: 50%; transform: translate(-100%, -50%); width: 0; overflow: visible; background: none; color: var(--ink); }
.compare-handle span:last-child { top: 50%; transform: translate(0, -50%); width: 0; overflow: visible; background: none; color: var(--ink); }
.compare-help { text-align: center; color: var(--concrete); opacity: .6; margin-top: 13px; }

.impression-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 60px;
}
.impression-grid .image-frame { aspect-ratio: 4/3; }

.drawings-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.drawing-card { aspect-ratio: 3/4; }
.blueprint .placeholder { border-color: rgba(185,216,209,.35); }
.blueprint .placeholder-label strong { color: var(--paper); }

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px; gap: 14px;
}
.gallery-item { margin: 0; min-width: 0; }
.gallery-large { grid-column: span 2; }
.gallery-wide { grid-column: span 2; }
.gallery-item .image-frame { height: 100%; aspect-ratio: auto; }
.gallery-item:not(.gallery-large):not(.gallery-wide) .image-frame { height: 100%; }

.visit-layout {
  display: grid; grid-template-columns: .7fr 1.3fr;
  gap: clamp(40px, 8vw, 120px); align-items: start;
}
.visit address {
  font-family: var(--mono); font-style: normal; color: var(--aqua);
  line-height: 1.9; font-size: .82rem; margin: 26px 0;
}
.visit-copy { color: var(--concrete); }
.text-link {
  display: inline-block; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 5px;
}
.map-wrap { aspect-ratio: 4/3; border: 1px solid var(--line-light); overflow: hidden; filter: grayscale(.5) contrast(1.05); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 28px var(--pad); background: var(--ink); color: var(--concrete);
  border-top: 1px solid var(--line-light);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center;
  background: rgba(5,9,8,.96); padding: 40px 80px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(92vw, 1500px); max-height: 92vh; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { color: var(--concrete); margin-top: 12px; }
.lightbox button {
  position: absolute; border: 0; background: none; color: #fff;
  cursor: pointer; font-family: var(--mono); font-size: 1.35rem;
}
.lightbox-close { top: 22px; right: 28px; font-size: 2rem !important; }
.lightbox-prev { left: 28px; top: 50%; }
.lightbox-next { right: 28px; top: 50%; }

@media (max-width: 1000px) {
  .site-nav { display: none; }
  .site-nav.open {
    position: fixed; inset: 0; display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 22px;
    padding: 80px 12vw; background: var(--ink); color: var(--paper);
    mix-blend-mode: normal;
  }
  .site-nav.open a { font-size: 1rem; opacity: 1; }
  .site-nav a b { font-weight:400; }
.nav-toggle { display: block; z-index: 101; }
  .split, .editorial-feature, .visit-layout { grid-template-columns: 1fr; }
  .feature-copy { padding-bottom: 0; }
  .image-row { grid-template-columns: 1fr; }
  .drawings-grid { grid-template-columns: 1fr 1fr; }
  .drawings-grid .drawing-card:last-child { grid-column: span 2; max-width: 50%; }
}

@media (max-width: 720px) {
  .site-header { height: 64px; }
  .brand-name { display: none; }
  .hero-meta { display: none; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 5rem); }
  .fact-strip { grid-template-columns: 1fr 1fr; }
  .impression-grid, .drawings-grid { grid-template-columns: 1fr; }
  .drawings-grid .drawing-card:last-child { grid-column: auto; max-width: none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
  .gallery-large, .gallery-wide { grid-column: span 2; }
  .lightbox { padding: 50px 18px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 480px) {
  .fact-strip { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-large, .gallery-wide { grid-column: span 1; }
  .gallery { grid-auto-rows: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 1000px) {
  .header-actions { gap: 14px; }
  .language-switch { margin-right: 2px; }
}

#introOverlay{
    position:fixed;
    inset:0;
    background:#000;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;
    transition:opacity 1.5s ease, visibility 1.5s ease;
}

#introOverlay.hide{
    opacity:0;
    visibility:hidden;
}

#introTitle{
    color:#fff;
    font-family:"Helvetica Neue", Arial, sans-serif;
    font-size:clamp(2rem,6vw,6rem);
    font-weight:300;
    letter-spacing:.12em;

    opacity:0;
    transform:translateY(25px);

    animation:
        introFade 2s ease forwards,
        introFloat 8s ease-in-out infinite;
}

@keyframes introFade{
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes introFloat{
    0%,100%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-10px);
    }
}
#introTitle{
    color:#fff;
    font-family:"Helvetica Neue", Arial, sans-serif;
    font-size:clamp(2rem,6vw,6rem);
    font-weight:300;
    letter-spacing:.12em;

    opacity:0;
    transform:translateY(25px);

    animation:
        introFade 2s ease forwards,
        introFloat 8s ease-in-out infinite;
}