/* JanAnthony de Wilde, jananthony.nl
   Plain CSS, no build step. Colours live as tokens on :root. */

:root {
  --bg:        #0d0d0f;
  --bg-soft:   #141418;
  --line:      #26262c;
  --text:      #f1efea;
  --muted:     #9a968c;
  --accent:    #c9a06a;

  --wrap:      1240px;
  --gap:       clamp(10px, 1.6vw, 22px);
  --pad:       clamp(20px, 5vw, 64px);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, blockquote p {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #111; padding: 12px 18px; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  background: linear-gradient(to bottom, rgba(6,6,8,.72), rgba(6,6,8,0));
  transition: background .3s ease, padding .3s ease;
}
.site-header.is-stuck {
  background: rgba(10,10,12,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.site-header nav a {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  text-decoration: none;
  color: var(--text);
  opacity: .78;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: opacity .2s, border-color .2s;
}
.site-header nav a:hover { opacity: 1; border-bottom-color: var(--accent); }

/* small phones: the wordmark plus three links must fit on one line */
@media (max-width: 560px) {
  .site-header { padding-inline: 16px; gap: 12px; }
  .wordmark { font-size: .82rem; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: .68rem; letter-spacing: .08em; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}
.hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 48%, rgba(6,6,9,.06), rgba(6,6,9,.58) 80%),
    linear-gradient(to bottom, rgba(6,6,9,.46), rgba(6,6,9,.04) 36%, rgba(6,6,9,.74));
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 100px var(--pad) 120px;
  max-width: 900px;
}

/* het waas over de foto is licht, dus de herotekst krijgt een eigen schaduw.
   De goudtint valt weg tegen lichte luchten en zand, dus hier gebroken wit. */
.hero-inner .eyebrow,
.hero-inner h1 {
  text-shadow: 0 2px 24px rgba(0,0,0,.7), 0 1px 5px rgba(0,0,0,.55);
}
.hero-inner .eyebrow { color: #f1efea; }

.eyebrow {
  margin: 0 0 22px;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--accent);
}

/* op een telefoon past de regel dan nog op één regel */
@media (max-width: 560px) {
  .eyebrow { font-size: .64rem; letter-spacing: .12em; margin-bottom: 18px; }
}

.hero h1 {
  font-size: clamp(2.6rem, 8.5vw, 6.2rem);
  margin-bottom: 26px;
}

.lede {
  margin: 0 auto;
  max-width: 44ch;
  color: #ddd9d1;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.btn {
  display: inline-block;
  margin-top: 38px;
  padding: 13px 30px;
  border: 1px solid rgba(241,239,234,.45);
  border-radius: 2px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  text-decoration: none;
  transition: background .25s, border-color .25s, color .25s;
}
.btn:hover { background: var(--text); border-color: var(--text); color: #111; }

.scroll-cue {
  position: absolute; z-index: 2; bottom: 28px; left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
}
.scroll-line {
  display: block;
  position: relative;
  width: 2px; height: 72px;
  background: rgba(241,239,234,.34);
  overflow: hidden;
  border-radius: 2px;
}
.scroll-line span {
  position: absolute; inset: 0;
  background: var(--accent);
  animation: cue 2.2s cubic-bezier(.65,0,.35,1) infinite;
}
.scroll-chevron {
  width: 26px; height: 15px;
  opacity: .9;
  animation: chev 2.2s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
@keyframes chev {
  0%, 40%   { transform: translateY(-4px); opacity: .45; }
  65%       { transform: translateY(2px);  opacity: 1; }
  100%      { transform: translateY(-4px); opacity: .45; }
}

/* anchors clear the fixed header */
#work, #about, #contact { scroll-margin-top: 88px; }

/* ---------- sections ---------- */

.work { padding: clamp(70px, 11vw, 140px) var(--pad) 0; }
.work--tight { padding-top: clamp(50px, 8vw, 110px); }

.section-head {
  max-width: var(--wrap);
  margin: 0 auto clamp(34px, 5vw, 60px);
}
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin-bottom: 12px; }
.section-head p { margin: 0; color: var(--muted); }

/* masonry via CSS columns: keeps every frame at its native crop */
.grid {
  max-width: var(--wrap);
  margin: 0 auto;
  columns: 1;
  column-gap: var(--gap);
}
@media (min-width: 620px)  { .grid { columns: 2; } }
@media (min-width: 1000px) { .grid { columns: 3; } }

.grid figure {
  margin: 0 0 var(--gap);
  break-inside: avoid;
}
.grid button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-soft);
  cursor: zoom-in;
  overflow: hidden;
  line-height: 0;
}
.grid img {
  width: 100%;
  transition: transform .7s cubic-bezier(.2,.7,.3,1), opacity .3s;
}
.grid button:hover img { transform: scale(1.035); opacity: .9; }

/* ---------- volle band met een enkele foto ---------- */

.band {
  margin: clamp(70px, 11vw, 140px) 0;
}
.band figure { margin: 0; }
.band button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-soft);
  cursor: zoom-in;
  overflow: hidden;
  line-height: 0;
}
.band img {
  width: 100%;
  max-height: min(62vh, 520px);
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.7,.3,1), opacity .3s;
}
.band button:hover img { transform: scale(1.02); opacity: .92; }

/* ---------- citaat, als eigen blok onder de foto's ---------- */

.quote {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) var(--pad) clamp(20px, 3vw, 40px);
  text-align: center;
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-size: clamp(1.4rem, 3.6vw, 2.4rem);
  font-style: italic;
  margin: 0 0 20px;
  color: var(--text);
}
.quote cite {
  font-style: normal;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--accent);
}

/* ---------- about ---------- */

.about {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 100px) var(--pad) clamp(80px, 12vw, 150px);
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (min-width: 820px) {
  .about { grid-template-columns: 260px 1fr; }
}
.about-portrait img {
  width: 100%;
  max-width: 260px;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.05);
}
.about-text h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin-bottom: 22px; }
.about-text p { margin: 0 0 18px; max-width: 58ch; color: #d6d2ca; }
.about-text p:last-child { color: var(--muted); }

/* ---------- contact ---------- */

.contact {
  border-top: 1px solid var(--line);
  padding: clamp(80px, 12vw, 150px) var(--pad);
  text-align: center;
}
.contact h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin-bottom: 14px; }
.contact .lede { margin-bottom: 36px; }

.mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3.4vw, 2.1rem);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,160,106,.5);
  padding-bottom: 6px;
  transition: color .2s, border-color .2s;
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--accent); border-color: var(--accent); }

.socials {
  list-style: none;
  margin: 46px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(18px, 3vw, 34px);
}
.socials a {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  text-decoration: none;
  color: var(--muted);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.socials a:hover { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-footer a:hover { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(5,5,7,.96);
  padding: clamp(14px, 4vw, 48px);
}
.lightbox[hidden] { display: none; }

.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.lightbox img {
  max-width: min(100%, 1600px);
  max-height: 80svh;
  width: auto;
  object-fit: contain;
}
.lightbox figcaption {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}
.lb-counter { font-variant-numeric: tabular-nums; letter-spacing: .1em; }

.lightbox button {
  position: absolute;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  opacity: .62;
  transition: opacity .2s;
}
.lightbox button:hover { opacity: 1; }

.lb-close { top: 14px; right: 18px; font-size: 2.4rem; padding: 8px 12px; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; font-size: 3rem; padding: 12px 18px; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }

body.lb-open { overflow: hidden; }
