/* cedricprofijt.com — single stylesheet, dark theme. Tokens first so recolouring is one edit. */
:root {
  --bg: #0c0c0d;
  --bg-2: #141416;
  --bg-3: #1d1d21;
  --fg: #ededee;
  --fg-2: #a6a6ad;
  --fg-3: #86868e;   /* 5.3:1 on --bg: the smallest labels still pass WCAG AA */
  --line: #26262b;
  --accent: #8ccf93;
  --accent-ink: #0b2611;
  --radius: 6px;
  --wrap: 1400px;
  --gutter: clamp(16px, 4vw, 48px);
  --head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

@font-face { font-family: "Oswald"; font-weight: 400; font-display: swap; src: url("../fonts/oswald-400.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("../fonts/oswald-500.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 600; font-display: swap; src: url("../fonts/oswald-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
p a, .prose a, .resume a { text-decoration: underline; text-decoration-color: var(--fg-3); text-underline-offset: 3px; }
p a:hover, .prose a:hover, .resume a:hover { text-decoration-color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 18px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--narrow { max-width: 900px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--fg-2); }
.lead { font-size: 18px; color: var(--fg-2); max-width: 64ch; margin: 10px 0 0; }
.eyebrow { font: 500 13px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 13, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font: 500 22px var(--head); letter-spacing: 0.06em; text-transform: uppercase; }
.brand__tag { font-size: 12px; color: var(--fg-3); letter-spacing: 0.04em; margin-top: 3px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font: 500 14px var(--head); letter-spacing: 0.1em; text-transform: uppercase; }
.nav a { color: var(--fg-2); padding: 6px 0; position: relative; display: inline-flex; align-items: center; gap: 5px; }
.nav a:hover { color: var(--fg); }
.nav a.is-active { color: var(--fg); }
.nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.nav svg { opacity: 0.6; }

/* ---------- hero / home ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 8px; }
.hero__title { font-size: clamp(40px, 7vw, 84px); font-weight: 600; letter-spacing: 0.01em; margin-bottom: clamp(20px, 3vw, 36px); }
.reel { margin: 0; }
.reel__caption { font: 500 12px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin: 12px 0 0; }
.hero__intro { display: grid; grid-template-columns: minmax(0, 68ch) auto; gap: 24px 48px; align-items: center; justify-content: space-between; margin-top: clamp(28px, 4vw, 48px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.hero__intro p { font-size: 18px; color: var(--fg-2); margin: 0; }
.hero__intro strong { color: var(--fg); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: var(--fg); color: var(--bg); font: 500 14px var(--head); letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--fg); transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { background: #fff; color: var(--bg); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--fg-3); }
.btn--ghost:hover { background: var(--bg-3); color: #fff; border-color: var(--fg-2); }

.section { padding: clamp(40px, 6vw, 80px) 0 0; }
.section:last-child { padding-bottom: clamp(48px, 8vw, 96px); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.more { font: 500 13px var(--head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
.more::after { content: " \2192"; }
.more:hover { color: var(--accent); }

/* ---------- index pages ---------- */
.page-head { padding: clamp(32px, 6vw, 64px) 0 clamp(20px, 3vw, 32px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.notice { background: var(--accent); color: var(--accent-ink); font: 500 14px/1.4 var(--body); }
.notice p { margin: 0; padding-top: 9px; padding-bottom: 9px; }
.notice a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: inherit; margin-left: 6px; }
.tools { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; }
.tools li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--fg-2); background: var(--bg-2); }
.filters button { background: transparent; border: 1px solid var(--line); color: var(--fg-2); padding: 7px 14px; border-radius: 999px; font: 500 13px var(--body); transition: all 0.15s ease; }
.filters button:hover { border-color: var(--fg-3); color: var(--fg); }
.filters button.is-active { border-color: var(--fg); color: var(--fg); background: var(--bg-3); }
.page-index .grid { padding-bottom: clamp(48px, 8vw, 96px); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 28px 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: block; }
.card[hidden] { display: none; }
.card__media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.3s ease; filter: brightness(0.92); }
.card:hover .card__media img { transform: scale(1.04); filter: brightness(1.04); }
.card__media .preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.card__media .preview.is-on { opacity: 1; }
.card__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 2px 0; }
.card__title { font: 500 18px var(--head); letter-spacing: 0.04em; text-transform: uppercase; }
.card__meta { font-size: 13px; color: var(--fg-2); }
.card:hover .card__title { color: #fff; }

/* ---------- project page ---------- */
.project__head { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 36px); }
.back { display: inline-block; font: 500 13px var(--head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 18px; }
.back:hover { color: var(--accent); }
.project__meta { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 14px 0 0; color: var(--fg-2); font-size: 14px; }
.project__meta span + span::before { content: "·"; margin: 0 10px; color: var(--fg-3); }
.modules { display: flex; flex-direction: column; gap: 20px; padding-bottom: clamp(32px, 5vw, 64px); }
.modules > .prose { padding: 8px 0; }
.prose { max-width: 72ch; font-size: 17px; color: var(--fg); }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose p + p { margin-top: -0.2em; }
.media { margin: 0; position: relative; background: var(--bg-2); border-radius: var(--radius); overflow: hidden; }
.media img, .media video, .media iframe { width: 100%; height: 100%; display: block; object-fit: cover; }
.media--image { background: transparent; }
.media--image img { height: auto; object-fit: contain; border-radius: var(--radius); }
.media--video video { position: absolute; inset: 0; }
.media--embed { aspect-ratio: 16 / 9; }
.media--embed iframe { position: absolute; inset: 0; border: 0; }
.embed { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: var(--bg-2); display: block; }
.embed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); transition: filter 0.3s ease, transform 0.6s ease; }
.embed:hover img { filter: brightness(1); transform: scale(1.02); }
.play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(12, 12, 13, 0.72); border: 1px solid rgba(255, 255, 255, 0.35); display: grid; place-items: center; color: #fff; transition: background 0.2s ease, transform 0.2s ease; }
.play svg { margin-left: 4px; }
.embed:hover .play { background: var(--accent); color: var(--accent-ink); transform: scale(1.06); border-color: transparent; }
.media--loop::after { content: "loop"; position: absolute; right: 10px; bottom: 10px; font: 500 10px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); background: rgba(0, 0, 0, 0.45); padding: 5px 7px; border-radius: 3px; pointer-events: none; }
.lb { display: block; cursor: zoom-in; }
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .gallery--3 { grid-template-columns: repeat(3, 1fr); } }
.gallery .lb { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery .lb:hover img { transform: scale(1.03); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding: 28px 0 clamp(48px, 8vw, 96px); }
.pager__link { display: flex; align-items: center; gap: 14px; color: var(--fg-2); min-width: 0; }
.pager__link--next { flex-direction: row-reverse; text-align: right; }
.pager__thumb { flex: 0 0 96px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: var(--bg-2); }
.pager__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pager__text { display: flex; flex-direction: column; min-width: 0; }
.pager__label { font: 500 11px var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.pager__text strong { font: 500 16px var(--head); letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager__link:hover strong { color: var(--accent); }
@media (max-width: 560px) { .pager__thumb { display: none; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 6, 7, 0.94); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s ease; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 94vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.lightbox figcaption { font-size: 13px; color: var(--fg-2); min-height: 1.2em; }
.lightbox__open { font: 500 11px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
.lightbox__open:hover { color: var(--accent); }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line); color: var(--fg-2); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--fg); border-color: var(--fg-3); }
@media print { .to-top { display: none; } }
.lightbox button { position: absolute; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background 0.15s ease; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -22px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -22px; }
.lightbox__count { position: absolute; left: 16px; top: 24px; font-size: 13px; color: var(--fg-2); letter-spacing: 0.08em; }
body.has-lightbox { overflow: hidden; }

/* ---------- resume ---------- */
.resume { padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 8vw, 96px); }
.resume__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.resume__headline { font: 500 15px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 8px 0 0; }
.resume__contact { color: var(--fg-2); font-size: 14px; margin: 8px 0 0; }
.resume__summary { font-size: 18px; color: var(--fg-2); margin: 28px 0 0; }
.resume h2 { font-size: 15px; letter-spacing: 0.14em; color: var(--fg-3); margin: 44px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.xp + .xp { margin-top: 24px; }
.xp h3 { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; text-transform: none; font-family: var(--body); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.xp__co { color: var(--fg); }
.xp__role { color: var(--fg-2); font-weight: 500; }
.xp__role::before { content: "— "; color: var(--fg-3); }
.xp__when { margin: 2px 0 8px; font-size: 13px; color: var(--fg-3); }
.xp ul { margin: 0; padding-left: 20px; color: var(--fg-2); }
.xp li { margin: 4px 0; }
.xp li strong, .xp li em { color: var(--fg); }
.xp p { margin: 0; color: var(--fg-2); }
.earlier { list-style: none; margin: 0; padding: 0; }
.earlier li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.earlier li:last-child { border-bottom: 0; }
.earlier__co { color: var(--fg); font-weight: 600; }
.earlier__role { color: var(--fg-2); }
.earlier__role::before { content: "— "; color: var(--fg-3); }
.earlier__when { margin-left: auto; font-size: 13px; color: var(--fg-3); white-space: nowrap; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--fg-2); background: var(--bg-2); }
.fav + .fav { margin-top: 18px; }
.fav h3 { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 600; }
.fav p { margin: 4px 0 0; color: var(--fg-2); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: auto; }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--fg-2); }
.site-footer__contact { display: flex; flex-direction: column; gap: 2px; }
.site-footer__contact strong { color: var(--fg); font: 500 16px var(--head); letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer__links { display: flex; gap: 20px; align-items: flex-start; font: 500 13px var(--head); letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 5px; }
.site-footer__fine { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--fg-3); }
.page-404 .page-head { padding-bottom: 0; }
.page-404 .section:last-child { padding-bottom: clamp(48px, 8vw, 96px); }

/* ---------- credits ---------- */
.credits { width: 100%; border-collapse: collapse; margin-bottom: clamp(48px, 8vw, 96px); font-size: 15px; }
.credits th, .credits td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.credits thead th { font: 500 12px var(--head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); padding-top: 0; }
.credits tbody th { font-weight: 600; color: var(--fg); }
.credits tbody th a { color: inherit; }
.credits tbody th a:hover { color: var(--accent); }
.credits td { color: var(--fg-2); }
.credits__year { font: 500 14px var(--head); letter-spacing: 0.06em; color: var(--fg-3); width: 4.5em; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .credits thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .credits tr { display: grid; grid-template-columns: 4em 1fr; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .credits th, .credits td { display: block; border: 0; padding: 0; }
  .credits__year { grid-row: span 4; }
  .credits td { font-size: 14px; }
  .credits td.is-empty { display: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .site-header__inner { gap: 10px 24px; }
  .nav { gap: 2px 16px; font-size: 13px; }
  .hero__intro { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; gap: 6px; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root { --bg: #fff; --bg-2: #fff; --bg-3: #fff; --fg: #111; --fg-2: #333; --fg-3: #666; --line: #bbb; --accent: #1f5c2e; }
  body { font-size: 11px; line-height: 1.38; color: #111; background: #fff; }
  .site-header, .site-footer, .no-print, .skip, .notice { display: none !important; }
  .resume { padding: 0; }
  .resume h1 { font-size: 30px; }
  .resume__head { padding-bottom: 12px; }
  .resume__headline { font-size: 12px; margin-top: 4px; }
  .resume__contact { font-size: 11px; margin-top: 4px; }
  .resume__summary { font-size: 13px; margin-top: 14px; }
  .resume h2 { font-size: 12px; margin: 16px 0 8px; padding-bottom: 4px; }
  .xp + .xp { margin-top: 7px; }
  .xp { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; break-inside: avoid; page-break-inside: avoid; }
  .xp h3 { grid-column: 1; }
  .xp__when { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; align-self: baseline; }
  .xp ul, .xp p:not(.xp__when) { grid-column: 1 / -1; }
  .resume h2 { break-after: avoid; page-break-after: avoid; }
  .xp h3 { font-size: 12.5px; }
  .earlier li { padding: 1px 0; border: 0; }
  .earlier__when { font-size: 11px; }
  .xp__when { margin: 0 0 3px; font-size: 11px; }
  .xp li { margin: 1px 0; }
  .chips { gap: 5px; }
  .chips li { border-color: #ccc; background: none; padding: 2px 8px; font-size: 11px; }
  .fav + .fav { margin-top: 8px; }
  .fav h3 { font-size: 13px; }
  a { text-decoration: none; color: inherit; }
  .resume__head { align-items: flex-start; }
  .resume__headline { color: #1f5c2e; }
  h1, h2, h3, .xp h3 { color: #111; }
  @page { size: A4; margin: 12mm 15mm; }
}
