/* =========================================================
   Mijn Galerij — Teaserpagina
   Esthetiek: museumdonker, goudaccent, filmkorrel
   ========================================================= */

:root {
  --bg:        #0c0b0a;
  --bg-soft:   #14110e;
  --ink:       #f5f0e8;
  --ink-mute:  #a39a8b;
  --ink-dim:   #6f685d;
  --gold:      #c9a96a;
  --gold-soft: #d4b483;
  --line:      rgba(201, 169, 106, 0.18);
  --line-soft: rgba(245, 240, 232, 0.08);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1180px;
  --gut:  clamp(1.25rem, 5vw, 4rem);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
em { font-style: italic; color: var(--gold-soft); }

::selection { background: var(--gold); color: var(--bg); }

/* =========================================================
   Achtergrond: levende galerij
   ========================================================= */
.gallery-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.gallery-grid {
  position: absolute;
  inset: -4%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
  opacity: 0.42;
  filter: saturate(0.7) contrast(1.05);
  transform: scale(1.04);
  will-change: transform;
}
.gallery-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-soft);
}
.gallery-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(12,11,10,0.25), rgba(12,11,10,0.65));
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.gallery-grid img.loaded { opacity: 1; }

.gallery-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(12,11,10,0.55) 0%, rgba(12,11,10,0.92) 75%, var(--bg) 100%),
    linear-gradient(180deg, rgba(12,11,10,0.4) 0%, rgba(12,11,10,0.2) 40%, rgba(12,11,10,0.95) 100%);
  backdrop-filter: blur(1.5px);
}

/* ---- Filmkorrel ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ---- Cursor-gloed ---- */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,106,0.10) 0%, rgba(201,169,106,0) 65%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  mix-blend-mode: screen;
}
body.cursor-on .cursor-glow { opacity: 1; }

/* =========================================================
   Layout / main
   ========================================================= */
main { position: relative; z-index: 3; }
section { padding: clamp(5rem, 12vh, 9rem) var(--gut); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.hero__inner {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.eyebrow__line {
  display: block;
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.brand {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}
.brand__word {
  display: inline-block;
  font-size: clamp(3.8rem, 14vw, 9.5rem);
  background: linear-gradient(180deg, #fbf6ec 0%, #e8dcc4 45%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 40px rgba(201,169,106,0.15);
}
.brand__word:nth-child(2) {
  font-style: italic;
  font-weight: 400;
}

.tagline {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 300;
  color: var(--ink-mute);
  max-width: 40ch;
  line-height: 1.5;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ---- Knoppen ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  overflow: hidden;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
  isolation: isolate;
}
.btn span { position: relative; z-index: 1; transition: color 0.4s var(--ease); }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: 0;
}
.btn--primary {
  border: 1px solid var(--gold);
  color: var(--bg);
  background: var(--gold);
}
.btn--primary span { color: var(--bg); }
.btn--primary::before { background: var(--gold-soft); }
.btn--primary:hover::before { transform: translateY(0); }
.btn--primary:hover { border-color: var(--gold-soft); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost:hover span { color: var(--bg); }

/* ---- Scroll-hint ---- */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.scroll-hint__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-hint__line::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 40%;
  background: var(--gold-soft);
  animation: scrollHint 2.4s var(--ease) infinite;
}
@keyframes scrollHint {
  0%   { transform: translateY(-100%); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(250%); opacity: 0; }
}

/* =========================================================
   Sectiekoppen
   ========================================================= */
.section-head {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  max-width: 720px;
}
.section-head--center {
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.section-head__index {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* =========================================================
   CONCEPT
   ========================================================= */
.concept { background: linear-gradient(180deg, transparent, rgba(20,17,14,0.5)); }
.concept__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
}
.card {
  background: rgba(12,11,10,0.65);
  padding: clamp(2rem, 4vw, 3rem);
  transition: background 0.6s var(--ease);
  position: relative;
}
.card:hover { background: rgba(20,17,14,0.85); }
.card__num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.85rem;
  color: var(--ink);
}
.card p {
  color: var(--ink-mute);
  font-size: 0.97rem;
  line-height: 1.65;
}
.card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.card:hover::after { opacity: 0.5; }

/* =========================================================
   COUNTDOWN
   ========================================================= */
.countdown { text-align: center; background: var(--bg); }
.countdown__wrap {
  display: inline-flex;
  align-items: flex-start;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(20,17,14,0.4);
  backdrop-filter: blur(6px);
}
.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-width: clamp(3.5rem, 9vw, 6rem);
}
.time-unit__value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.time-unit__label {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.time-sep {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--gold);
  line-height: 1;
  align-self: center;
  transform: translateY(-0.4em);
}
.countdown__note {
  margin-top: 1.75rem;
  color: var(--ink-dim);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* =========================================================
   NOTIFY
   ========================================================= */
.notify {
  text-align: center;
}
.notify__inner {
  max-width: 620px;
  margin: 0 auto;
}
.notify__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  margin: 1.25rem 0 1rem;
  color: var(--ink);
}
.notify__sub {
  color: var(--ink-mute);
  font-size: 1rem;
  margin-bottom: 2.25rem;
}

.notify__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: stretch;
}
.field {
  position: relative;
  flex: 1 1 280px;
  max-width: 360px;
}
.field input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: rgba(20,17,14,0.6);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.field input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(20,17,14,0.9);
}
.field label {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-dim);
  font-size: 0.95rem;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  padding: 0 0.3rem;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 0;
  transform: translateY(-50%) scale(0.85);
  color: var(--gold);
  background: var(--bg);
  letter-spacing: 0.08em;
}
.notify__form .btn { flex: 0 0 auto; }

.notify__feedback {
  margin-top: 1.5rem;
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--gold-soft);
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.notify__feedback.show {
  opacity: 1;
  transform: translateY(0);
}
.notify__feedback.error { color: #d98c7a; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line-soft);
  padding: 2.5rem var(--gut);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--ink-dim);
  background: rgba(12,11,10,0.7);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.footer__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
}
.footer__nav { display: flex; align-items: center; gap: 0.65rem; }
.footer__nav a { color: var(--ink-mute); transition: color 0.3s var(--ease); }
.footer__nav a:hover { color: var(--gold); }
.footer__sep { color: var(--ink-dim); }
.footer__copy { color: var(--ink-dim); }

/* =========================================================
   Reveal-animaties
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* Trapsgewijze vertraging binnen hero */
.hero .reveal { transition-delay: 0s; }
.hero .reveal:nth-child(2) { transition-delay: 0.12s; }
.hero .reveal:nth-child(3) { transition-delay: 0.24s; }
.hero .reveal:nth-child(4) { transition-delay: 0.36s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .time-sep { display: none; }
  .countdown__wrap { gap: 0.25rem; padding: 1.5rem 0.75rem; }
  .scroll-hint { display: none; }
  .notify__form .btn { width: 100%; }
  .footer { flex-direction: column; text-align: center; }
}

/* =========================================================
   Bewegingsarmte respecteren
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .grain { display: none; }
  .gallery-grid img { opacity: 1; }
}
