/* Portfolio Andrei Vasilescu — herbouw van het Claude Design-prototype. */

/* ---------- Tokens ---------- */
:root,
:root[data-theme="night"] {
  --bg: #171824; --ink: #ecebe8; --mute: #a8a7a3; --line: #38383c; --ac: #e5392f;
  --pad: clamp(20px, 4vw, 56px);
  --sec: clamp(48px, 7vw, 96px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --f-head: 'Outfit', sans-serif;
  --f-body: 'Hanken Grotesk', sans-serif;
  --f-mono: 'DM Mono', monospace;
  color-scheme: dark;
}
:root[data-theme="day"] {
  --bg: #e2e1df; --ink: #1b1718; --mute: #5e585a; --line: #c6c3c1; --ac: #7a1530;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) { --bg: #e2e1df; --ink: #1b1718; --mute: #5e585a; --line: #c6c3c1; --ac: #7a1530; color-scheme: light; }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); }
.site {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 18px; line-height: 1.55;
  min-height: 100vh; overflow: clip;
  transition: background .3s, color .3s;
}
::selection { background: #7a1530; color: #fff; }
a { color: inherit; text-decoration: none; }
a:not(.nd):hover { opacity: .8; }
button { font-family: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
.contact :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; font-family: var(--f-mono); font-size: 13px; }
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.ac { color: var(--ac); }
.mute { color: var(--mute); }
.mono13 { font-family: var(--f-mono); font-size: 13px; }
.label { font-family: var(--f-mono); font-size: 13px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ac); }
.dot8 { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); }

/* ---------- Lijnen ---------- */
.lines { position: absolute; pointer-events: none; color: var(--ac); opacity: .4; }
.lines path { stroke: currentColor; }
.lines.on-red { color: #fff; opacity: .3; }

/* ---------- Header ---------- */
.hd {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px var(--pad); background: var(--bg); border-bottom: 1.5px solid var(--ink);
}
.logo { font-family: var(--f-head); font-size: 24px; display: flex; align-items: center; gap: 10px; }
.hd-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pill {
  display: inline-block; line-height: normal;
  font-size: 15px; padding: 7px 16px; border-radius: 99px;
  border: 1.5px solid transparent; background: transparent; color: var(--ink);
  transition: all .3s var(--ease);
}
.pill.on { background: var(--ac); border-color: var(--ac); color: #fff; }
.pill:hover { border-color: var(--ink); border-radius: 3px 18px 3px 18px; padding: 7px 20px; }
.tgl {
  display: inline-block; line-height: normal; cursor: pointer;
  font-family: var(--f-mono); font-size: 13px; border-radius: 99px;
  border: 1.5px solid var(--ink); transition: all .3s var(--ease);
}
.tgl-lang { padding: 8px 12px; background: none; color: var(--ink); margin-left: 8px; }
.tgl-lang:hover { background: var(--ink); color: var(--bg); border-radius: 3px 18px 3px 18px; }
.tgl-theme { padding: 8px 14px; background: var(--ink); color: var(--bg); }
.tgl-theme:hover { background: transparent; color: var(--ink); border-radius: 3px 18px 3px 18px; }
.when-day { display: none; }
:root[data-theme="day"] .when-day { display: inline; }
:root[data-theme="day"] .when-night { display: none; }

/* ---------- Knoppen en links ---------- */
.btn-ink {
  display: inline-block; line-height: normal; cursor: pointer;
  font-family: var(--f-head); font-size: 22px; background: var(--ink); color: var(--bg);
  border: 0; border-radius: 99px; padding: 16px 32px;
}
.btn-ac {
  align-self: flex-start; display: inline-block; line-height: normal; cursor: pointer;
  font-family: var(--f-head); font-size: 22px; background: var(--ac); color: #fff;
  border: 1.5px solid var(--ac); border-radius: 99px; padding: 16px 32px;
  transition: all .35s var(--ease);
}
.btn-ac:hover {
  background: transparent; color: var(--ink); border-color: var(--ink);
  border-radius: 4px 40px 4px 40px; padding: 16px 56px 16px 32px; letter-spacing: .03em;
}
.ulink {
  display: inline-block; line-height: normal;
  font-family: var(--f-mono); font-size: 14px; color: var(--ink);
  border-bottom: 1.5px solid var(--ac); padding: 0 0 4px;
}

/* ---------- Home ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) var(--pad) clamp(32px, 5vw, 64px); overflow: hidden; }
.hero-role {
  position: relative; font-family: var(--f-mono); font-size: 13px; margin: 0 0 20px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  text-shadow: 0 0 8px var(--bg), 0 0 16px var(--bg);
}
.hero-h {
  position: relative; font-family: var(--f-head); font-weight: 300;
  font-size: clamp(64px, 17vw, 300px); line-height: .85; letter-spacing: -.045em; margin: 0;
}
.hero-l1 { display: block; text-shadow: 0 0 .1em var(--bg), 0 0 .25em var(--bg); }
.hero-l2 { display: block; color: var(--ac); font-weight: 400; text-shadow: 0 0 .08em var(--bg), 0 0 .16em var(--bg), 0 0 .3em var(--bg); }
[data-lt] { display: inline-block; white-space: pre; will-change: transform; }
/* Letters wachten op de animatie; vangnet als het script niet laadt. */
.js .hero-h [data-lt] { opacity: 0; animation: lt-show 0s 3.5s forwards; }
@keyframes lt-show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .js .hero-h [data-lt] { opacity: 1; animation: none; } }
.hero-foot { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: 48px; }
.hero-intro {
  max-width: 480px; color: var(--ink); margin: 0; text-wrap: pretty;
  text-shadow: 0 0 6px var(--bg), 0 0 14px var(--bg), 0 0 24px var(--bg);
}
.disc {
  display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  margin: 0 var(--pad); padding: 18px 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute);
}
.sec { padding: var(--sec) var(--pad); }
.deco { position: relative; isolation: isolate; overflow: hidden; }
.bt { border-top: 1px solid var(--ink); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.h2 { font-family: var(--f-head); font-weight: 300; font-size: clamp(40px, 7vw, 104px); line-height: .95; letter-spacing: -.03em; margin: 0; }
.about-teaser { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.lead { font-family: var(--f-head); font-weight: 300; font-size: clamp(28px, 4vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 24px; text-wrap: balance; }
.svc-row { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); align-items: baseline; }
.svc-title { font-family: var(--f-head); font-weight: 300; font-size: clamp(28px, 4vw, 56px); line-height: 1; letter-spacing: -.025em; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.step-n { font-family: var(--f-mono); font-size: 13px; color: var(--ink); border-top: 1px solid var(--ink); padding-top: 12px; }
.step-t { font-family: var(--f-head); font-weight: 300; font-size: 32px; margin-top: 8px; }
.slot {
  margin: 0 var(--pad); padding: clamp(48px, 7vw, 110px) 0 clamp(64px, 9vw, 128px);
  border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: 44px;
}
.slot-h { font-family: var(--f-head); font-weight: 300; font-size: clamp(48px, 9vw, 150px); line-height: .9; letter-spacing: -.035em; margin: 0; color: var(--ink); max-width: 1100px; }

/* ---------- Projectkaarten ---------- */
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: end; }
.card { display: block; min-width: 0; cursor: pointer; }
.card-img { position: relative; overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-tag { position: absolute; left: 14px; top: 14px; background: var(--bg); color: var(--ink); padding: 3px 9px; font-family: var(--f-mono); font-size: 12px; }
.card-over {
  position: absolute; inset: 0; background: var(--ink); color: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
  opacity: 0; transition: opacity .2s;
}
.card-over:hover, .card:focus-visible .card-over { opacity: 1; }
.card-over-t { font-family: var(--f-head); font-size: 32px; line-height: 1.05; }
.card-over-b { font-size: 15px; margin-top: 6px; }
.card-over-v { font-family: var(--f-mono); font-size: 13px; margin-top: 12px; }
.card-meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; font-size: 16px; }
.card-type { color: var(--mute); font-family: var(--f-mono); font-size: 13px; flex: none; }

/* ---------- Pagina's met mega-kop ---------- */
.page { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 72px) var(--pad) var(--sec); }
.mega { position: relative; font-family: var(--f-head); font-weight: 300; font-size: clamp(72px, 18vw, 320px); line-height: .85; letter-spacing: -.05em; margin: 0; }
.chips { position: relative; display: flex; gap: 8px; flex-wrap: wrap; margin: 40px 0 32px; }
.chip {
  display: inline-block; line-height: normal; cursor: pointer;
  font-size: 14px; padding: 7px 16px; border-radius: 99px;
  border: 1.5px solid var(--ink); background: var(--bg); color: var(--ink);
}
.chip.on { background: var(--ink); color: var(--bg); }

/* ---------- Case ---------- */
.page-case { padding: clamp(24px, 4vw, 56px) var(--pad) var(--sec); }
.back { display: inline-block; line-height: normal; font-family: var(--f-mono); font-size: 14px; color: var(--ink); }
.case-cat { font-family: var(--f-mono); font-size: 13px; color: var(--ac); margin: 40px 0 12px; text-transform: uppercase; letter-spacing: .08em; }
.case-h { font-family: var(--f-head); font-weight: 300; font-size: clamp(48px, 10vw, 176px); line-height: .92; letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.case-short { font-family: var(--f-head); font-weight: 300; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -.01em; margin: 28px 0 0; max-width: 820px; text-wrap: pretty; }
.case-hero { position: relative; aspect-ratio: 16 / 8; margin: 48px 0; overflow: hidden; }
.case-hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; }
.sp2 { grid-column: span 2; }
.h3 { font-family: var(--f-mono); font-size: 13px; font-weight: 400; color: var(--ac); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.case-p { margin: 0 0 18px; max-width: 720px; text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--f-mono); font-size: 12px; border: 1px solid var(--ink); border-radius: 99px; padding: 4px 12px; }
.tag-cur { border-color: currentColor; padding: 3px 12px; opacity: .85; }
.palette { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; }
.swatch span { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); }
.gallery { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 72px; align-items: flex-start; }
.gallery figure { margin: 0; min-width: min(100%, 220px); }
.gallery img { display: block; width: 100%; height: auto; background: #fff; }
.gallery figcaption { font-family: var(--f-mono); font-size: 12px; color: var(--mute); padding-top: 10px; }
.case-note { margin: 48px 0 0; max-width: 720px; font-family: var(--f-mono); font-size: 13px; color: var(--mute); border-left: 1px solid var(--ac); padding-left: 16px; text-wrap: pretty; }
.case-nav { margin-top: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; border-top: 1.5px solid var(--ink); padding-top: 24px; }
.case-nav a { display: block; min-width: 0; }
.case-nav-l { font-family: var(--f-mono); font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.case-nav-t { display: block; font-family: var(--f-head); font-weight: 300; font-size: clamp(26px, 3vw, 44px); line-height: 1.05; margin-top: 8px; }

/* ---------- Over mij ---------- */
.about-top { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; margin-top: 64px; align-items: start; }
.portrait { max-width: 420px; position: relative; isolation: isolate; }
.portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #ddd; }
.portrait-frame { position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--ac); z-index: -1; }
.about-lead { font-family: var(--f-head); font-weight: 300; font-size: clamp(32px, 4.5vw, 64px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 32px; text-wrap: balance; }
.lab-sec { position: relative; margin-top: clamp(48px, 7vw, 96px); }
.lab { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr); gap: 32px; border-top: 1.5px solid var(--ink); padding-top: 20px; }
.cv-role { font-family: var(--f-head); font-weight: 300; font-size: clamp(28px, 4vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.cv-org { font-family: var(--f-mono); font-size: 13px; color: var(--mute); margin: 8px 0 24px; }
.bullets { border-left: 1px solid var(--ac); padding-left: 28px; display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.bullets > div { position: relative; text-wrap: pretty; }
.bdot { position: absolute; left: -33px; top: .7em; width: 9px; height: 9px; border-radius: 50%; background: var(--ac); }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 48px; }
.skill { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--f-head); font-size: 22px; }
.sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); flex: none; }
.hobbies { display: flex; gap: 16px 48px; flex-wrap: wrap; }
.hobbies span { font-family: var(--f-head); font-weight: 300; font-size: clamp(40px, 7vw, 96px); line-height: 1; letter-spacing: -.03em; }

/* ---------- Diensten ---------- */
.svc-list { position: relative; margin-top: 72px; border-bottom: 1px solid var(--ink); }
.svc {
  display: grid; grid-template-columns: 70px minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 32px;
  padding: 36px 20px; border-top: 1px solid var(--ink); align-items: start;
  transition: background .25s, color .25s;
}
.svc:hover { background: var(--ac); color: #fff; }
.svc-h { font-family: var(--f-head); font-weight: 300; font-size: clamp(32px, 5vw, 72px); line-height: 1; letter-spacing: -.025em; margin: 0; }
.tl { position: relative; padding-left: 56px; }
.tl-line { position: absolute; left: 11px; top: 12px; bottom: 12px; width: 1px; background: var(--ac); }
.tl-item { position: relative; margin-bottom: 32px; }
.tl-node { position: absolute; left: -56px; top: 28px; width: 23px; height: 23px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.tl-node span { width: 9px; height: 9px; border-radius: 50%; background: var(--ac); }
.tl-hook { position: absolute; left: -32px; top: 39px; width: 32px; height: 1px; background: var(--ink); }
.tl-card { border: 1px solid var(--ink); padding: 24px 28px; display: grid; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 32px; align-items: baseline; }
.tl-n { font-family: var(--f-head); font-weight: 300; font-size: 64px; line-height: .9; letter-spacing: -.05em; color: var(--ac); }
.tl-t { font-family: var(--f-head); font-weight: 400; font-size: 32px; margin: 0; }

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden; background: var(--ac); color: #fff;
  padding: clamp(32px, 5vw, 72px) var(--pad) var(--sec); min-height: 80vh;
}
.contact-h { position: relative; font-family: var(--f-head); font-weight: 300; font-size: clamp(64px, 15vw, 260px); line-height: .85; letter-spacing: -.05em; margin: 0 0 64px; max-width: 1200px; }
.contact-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 64px; }
.crow { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid #ffffff99; align-items: baseline; }
.crow-l { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.crow-v { font-family: var(--f-head); font-size: clamp(20px, 2.2vw, 28px); overflow-wrap: anywhere; }
.crow-end { border-top: 1px solid #ffffff99; }
.form { display: flex; flex-direction: column; gap: 24px; }
.form input, .form textarea {
  font: inherit; font-size: 20px; color: #fff; background: none; border: 0;
  border-bottom: 1.5px solid #fff; border-radius: 0; padding: 12px 0; outline: none;
}
.form textarea { resize: none; }
.form input:focus-visible, .form textarea:focus-visible { box-shadow: 0 1.5px 0 #fff; }
.form ::placeholder { color: #fff; opacity: .85; }
.form-err { margin: 0; font-family: var(--f-mono); font-size: 13px; border-left: 1px solid #fff; padding-left: 12px; }
.btn-white {
  cursor: pointer; line-height: normal; font-family: var(--f-head); font-size: 22px; align-self: flex-start;
  background: #fff; color: #1b1718; border: 0; padding: 16px 32px; border-radius: 99px;
}
.thanks { font-family: var(--f-head); font-size: 40px; line-height: 1.1; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.ft {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: clamp(32px, 5vw, 72px); border-top: 1.5px solid var(--ink);
  padding: var(--sec) var(--pad) 24px;
  text-shadow: 0 0 12px var(--bg), 0 0 4px var(--bg), 0 0 2px var(--bg);
}
.ft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 48px 32px; position: relative; }
.ft-cta { display: block; font-family: var(--f-head); font-weight: 300; font-size: clamp(36px, 5vw, 72px); line-height: .95; letter-spacing: -.035em; max-width: 560px; text-wrap: balance; }
.ft-h { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ac); margin: 0 0 18px; }
.ft-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ft-link { line-height: normal; font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); transition: color .2s; }
.ft-link:hover { color: var(--ac); }
.ft-contact { font-family: var(--f-mono); font-size: clamp(11px, 3.3vw, 13px); letter-spacing: .02em; color: var(--ink); transition: color .2s; overflow-wrap: anywhere; }
.ft-bar {
  position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px;
  margin-top: var(--sec); padding-top: 20px; border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; color: var(--ink);
}
.ft-copy { display: flex; align-items: center; gap: 8px; }

/* ---------- Mobiel menu (< 600px) ---------- */
.hd-menu { display: none; padding: 8px 14px; background: none; color: var(--ink); }
.hd-menu[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
@media (max-width: 599px) {
  .js .hd-menu { display: inline-block; }
  .js .hd-nav { display: none; width: 100%; padding: 4px 0 4px; }
  .js .hd-nav.open { display: flex; }
  .js .hd-nav .pill { padding: 11px 16px; }
  .js .hd-nav .tgl { padding: 11px 14px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .g12 { grid-template-columns: minmax(0, 1fr) !important; }
  .g12 > * { grid-column: auto !important; }
  .r-lab { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
  .r-row { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
  .sp2 { grid-column: auto !important; }
}
