/* ============================================================
   Magali Meijers — portfolio styles
   Plain CSS, no frameworks. Colours live in :root so you can
   tweak the whole palette from one place.
   ============================================================ */

:root {
  /* --- Palette (edit these to recolour the whole site) ---
     Calm, muted and grown-up: ivory base, warm taupe-grey text,
     soft light blue as the main accent, just a hint of dusty rose. */
  --cream:        #f4efe7;  /* warm ivory / cream background */
  --cream-soft:   #faf7f1;  /* slightly lighter card / panel */
  --rose:         #c6afb1;  /* muted dusty rose (used sparingly) */
  --rose-deep:    #9c8086;  /* greyed mauve for the odd warm accent */
  --peach:        #e1cab8;  /* soft, desaturated sand/peach */
  --sky:          #a7c2d2;  /* soft light blue — the main accent */
  --sky-deep:     #5e8198;  /* deeper muted blue for links / buttons */
  --ink:          #4c453f;  /* warm taupe-grey body text */
  --ink-soft:     #837a71;  /* muted warm grey */
  --heading:      #47535b;  /* calm slate for headings */

  /* --- Type --- */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* --- Shape & depth --- */
  --radius:    22px;
  --radius-sm: 14px;
  --shadow-soft: 0 18px 40px -22px rgba(71, 83, 91, 0.35);
  --shadow-card: 0 22px 48px -28px rgba(71, 83, 91, 0.42);
  --maxw: 1120px;
}

/* --- Reset-ish --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.7;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle film grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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");
}

img { max-width: 100%; display: block; }
a { color: var(--sky-deep); }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.4em;
}

/* Layout helpers */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}
.section-head { max-width: 640px; margin-bottom: 2.8rem; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sky-deep);
  margin: 0 0 0.6rem;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* ============================================================
   Navigation (sticky)
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 231, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(94, 129, 152, 0.16);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--sky-deep); border-bottom-color: var(--sky); }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(94, 129, 152, 0.4);
  border-radius: 999px;
  overflow: hidden;
  background: var(--cream-soft);
}
.lang-toggle button {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle button.active {
  background: var(--sky-deep);
  color: #fff;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 1.5rem 6rem;
  /* Softer, cooler sunset sky: ivory into a faint dusty haze into soft blue */
  background: linear-gradient(160deg, #f2ece3 0%, #e7e2e0 22%, #d4dbe1 52%, #bdd1dd 80%, #aec6d6 100%);
}
/* soft glow blobs for dreaminess */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}
.hero::before { width: 360px; height: 360px; background: #e8dccd; top: -90px; left: -60px; }
.hero::after  { width: 440px; height: 440px; background: #b4ccdc; bottom: -150px; right: -80px; }

/* Two columns on desktop: copy on the left, portrait on the right */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.2rem;
  align-items: center;
}
.hero-copy { text-align: left; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: #3f4b53;
  margin-bottom: 0.2em;
  letter-spacing: 0.01em;
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  color: #5d6b73;
  margin: 0 0 1.3rem;
}
.hero-welcome {
  font-size: 1.12rem;
  color: #595049;
  max-width: 520px;
  margin: 0 0 2.2rem;
}
/* Portrait beside the name */
.hero-portrait {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--cream-soft);
  aspect-ratio: 4 / 5;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait .portrait-note {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.45rem;
  background: rgba(71, 83, 91, 0.72);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  cursor: pointer;
  border: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s;
}
.btn-primary {
  background: var(--sky-deep);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-2px); background: #4f6f83; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--heading);
  border: 1px solid rgba(71, 83, 91, 0.28);
  margin-left: 0.6rem;
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,0.8); }

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: center;
}
.portrait-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--cream-soft);
}
.portrait-frame img { width: 100%; height: auto; }
.portrait-note {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.45rem;
  background: rgba(110, 75, 82, 0.72);
  color: #fff;
}
.about-text p { margin-top: 0; }

/* ============================================================
   Work
   ============================================================ */
.work-group { margin-bottom: 3.5rem; }
.work-group:last-of-type { margin-bottom: 0; }
.work-group-title {
  font-size: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(94, 129, 152, 0.22);
}
.work-group-title span.count {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--sky-deep);
  text-transform: uppercase;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.card {
  background: var(--cream-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -26px rgba(71, 83, 91, 0.5); }
.card-img { aspect-ratio: 10 / 7; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--heading);
  margin: 0 0 0.4rem;
}
.card-body p { margin: 0 0 1rem; color: var(--ink-soft); font-size: 0.96rem; }
.card-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--sky-deep);
}
.card-link:hover { text-decoration: underline; }

/* Article cards (Writing): no cover image — publisher label + headline + link */
.article-card .card-body { padding-top: 1.7rem; }
.card-publisher {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin: 0 0 0.6rem;
}
.article-card h4 { font-size: 1.3rem; line-height: 1.25; }

/* Social media group: intro text, platform icons, brand cards */
.work-group-intro {
  max-width: 640px;
  margin: -0.4rem 0 1.6rem;
  color: var(--ink-soft);
  font-size: 1rem;
}
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.platform {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--cream-soft);
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: color 0.2s, transform 0.18s ease;
}
.platform:hover { color: var(--sky-deep); transform: translateY(-2px); }
.platform:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 2px; }
.platform svg { width: 21px; height: 21px; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--cream-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--heading);
}
/* Per-brand platform icons: same chip style as the site's icons, a touch smaller */
.brand-platforms { gap: 0.5rem; margin: 0; }
.brand-platforms .platform { width: 36px; height: 36px; border-radius: 10px; }
.brand-platforms .platform svg { width: 18px; height: 18px; }

/* ============================================================
   Services — "You Film, I Edit"
   ============================================================ */
.services { background: linear-gradient(180deg, #f3eee6 0%, #e6ecef 100%); }
.services-wrap { max-width: var(--maxw); margin: 0 auto; padding: 5.5rem 1.5rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  margin-top: 2.6rem;
}
.service-card {
  background: var(--cream-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.service-card .card-img { aspect-ratio: 10 / 7; }
.service-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 1.6rem 1.7rem 1.8rem; }
.service-body h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.service-body p { color: var(--ink-soft); margin: 0 0 0.8rem; }

/* ============================================================
   Closing CTA strip (the "let's work together" nudge)
   ============================================================ */
.cta {
  margin: 2.6rem auto 0;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}
/* Trim the empty space under a trailing "let's work together" button */
.section:has(> .cta:last-child),
.services-wrap:has(> .cta:last-child) { padding-bottom: 2.5rem; }
.cta p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--heading);
  margin: 0 0 1.1rem;
}

/* ============================================================
   Contact
   ============================================================ */
.contact { text-align: center; }
.contact .section-head { margin: 0 auto 2.4rem; }
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  color: var(--heading);
  text-decoration: none;
  border-bottom: 2px solid var(--sky);
  padding-bottom: 4px;
  margin-bottom: 2rem;
}
.contact-email:hover { color: var(--sky-deep); }
.socials { display: flex; justify-content: center; gap: 1rem; }
.social {
  width: 52px; height: 52px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--cream-soft);
  box-shadow: var(--shadow-soft);
  color: var(--heading);
  transition: transform 0.18s ease, background 0.2s, color 0.2s;
}
.social:hover { transform: translateY(-3px); background: var(--sky-deep); color: #fff; }
.social svg { width: 24px; height: 24px; }

/* Footer */
.footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* ============================================================
   Photo series cards (clickable) + lightbox gallery
   ============================================================ */
/* The cover and the "View" link are <button>s — strip the default look */
.photo-trigger {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.photo-card .card-img.photo-trigger { display: block; width: 100%; }
.photo-card .card-img img { transition: transform 0.45s ease; }
.photo-card:hover .card-img img { transform: scale(1.04); }
button.card-link { text-align: left; }
.photo-trigger:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 3px; border-radius: 4px; }

/* Video cards: same uniform cover as photography, with a play badge.
   YouTube videos open in a popup; the external (NOS) one opens in a new tab. */
.video-trigger { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.video-card .card-img { position: relative; }
.video-card .card-img.video-trigger { display: block; width: 100%; }
.video-card .card-img img { transition: transform 0.45s ease; }
.video-card:hover .card-img img { transform: scale(1.04); }
.video-trigger:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 3px; border-radius: 4px; }
.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(28, 30, 34, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.video-card:hover .play-badge { background: rgba(28, 30, 34, 0.6); transform: translate(-50%, -50%) scale(1.07); }
.play-badge svg { width: 24px; height: 24px; margin-left: 3px; }

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(28, 30, 34, 0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
body.lb-lock { overflow: hidden; }

.lb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 92vw;
}
.lb-img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65);
  background: #1c1e22;
}
.lb-caption {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--sans);
  font-size: 0.95rem;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Controls */
.lb-close,
.lb-nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.18s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.28); }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-close { top: clamp(0.8rem, 3vw, 1.6rem); right: clamp(0.8rem, 3vw, 1.6rem); width: 46px; height: 46px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lb-nav:hover { transform: translateY(-50%) scale(1.06); }
.lb-prev { left: clamp(0.6rem, 3vw, 2rem); }
.lb-next { right: clamp(0.6rem, 3vw, 2rem); }
.lb-close svg, .lb-nav svg { width: 24px; height: 24px; }

/* Video popup (YouTube embed) */
.vlightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(28, 30, 34, 0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.vlightbox[hidden] { display: none; }
.vlightbox.is-open { opacity: 1; }
.vframe {
  position: relative;
  width: min(960px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65);
}
.vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================================
   Language visibility — JS adds .lang-en / .lang-nl to <body>
   ============================================================ */
body.lang-en [lang="nl"],
body.lang-nl [lang="en"] { display: none !important; }

/* ============================================================
   Scroll reveal — sections & cards fade up gently as they enter
   the viewport. JS adds .is-visible once they're in view.
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Respect people who prefer reduced motion: show everything, no movement */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .lightbox, .vlightbox { transition: none; }
  .photo-card .card-img img,
  .photo-card:hover .card-img img,
  .video-card .card-img img,
  .video-card:hover .card-img img { transition: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
/* Desktop: keep the whole hero within one screen, photo scaling
   with the viewport so name, text, buttons and portrait all fit. */
@media (min-width: 861px) {
  .hero {
    min-height: calc(100vh - 64px); /* 64px ≈ the sticky nav bar */
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .hero-portrait {
    aspect-ratio: auto;
    height: min(74vh, 600px);
    width: 100%;
  }
}

@media (max-width: 860px) {
  .hero { padding: 4.5rem 1.5rem 4.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-copy { text-align: center; }
  .hero-welcome { margin-left: auto; margin-right: auto; }
  .hero-portrait { max-width: 360px; margin: 0 auto; width: 100%; order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .portrait-frame { max-width: 420px; margin: 0 auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .section { padding: 4rem 1.2rem; }
  .nav-inner { flex-wrap: wrap; justify-content: center; gap: 0.6rem 1rem; }
  .nav-brand { width: 100%; text-align: center; }
  .nav-links { gap: 0.8rem 1.1rem; flex-wrap: wrap; justify-content: center; }
  .nav-links a { font-size: 0.9rem; }
  .card-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
  /* Lightbox: move prev/next to the bottom so they don't crowd the photo */
  .lb-nav { top: auto; bottom: 1.1rem; transform: none; width: 46px; height: 46px; }
  .lb-nav:hover { transform: scale(1.06); }
  .lb-prev { left: 28%; }
  .lb-next { right: 28%; }
  .lb-img { max-height: 72vh; }
  .btn-ghost { margin-left: 0; margin-top: 0.7rem; }
  .hero .btn { display: block; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero .btn + .btn { margin-top: 0.7rem; }
}
