﻿/* ==========================================================
   MIKOLAJ CHEDA — PORTFOLIO
   Design tokens
   ========================================================== */
:root {
  --bg: #0a0c08;
  --bg-2: #10130c;
  --navy: #151a10;
  --navy-accent: #34401f;
  --white: #FFFFFF;
  --off: #F5F5F2;
  --muted: #A1A1AA;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);

  --font: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Playfair Display', Georgia, serif;

  --container: 1240px;
  --pad: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) - 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--off);
  font-family: var(--font); font-size: 17px; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, p, dl, dd, blockquote, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--navy-accent); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; z-index: 200; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Type helpers ---------- */
.eyebrow, .label {
  font-size: 12px; font-weight: 600; letter-spacing: .24em; color: var(--muted); text-transform: uppercase;
}
.label { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.label::before { content: ""; width: 36px; height: 1px; background: var(--muted); }
.h2 {
  font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; color: var(--white);
  margin-bottom: clamp(48px, 7vw, 88px);
}
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--muted); }
.dot { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px;
  font: 700 12px/1 var(--font); letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn--primary { background: var(--white); color: var(--bg); border-color: var(--white); }
.btn--primary:hover { background: var(--off); transform: translateY(-2px); }
.btn--primary .arrow { transition: transform .35s var(--ease); }
.btn--primary:hover .arrow { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.3); }
.btn--ghost:hover { background: var(--white); color: var(--bg); border-color: var(--white); }
.btn--sm { padding: 11px 20px; font-size: 11px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal { animation: rise 1s var(--ease) var(--d, 0s) both; opacity: 1; transform: none; transition: none; }
@keyframes rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
}
.nav.is-scrolled, .nav.is-open { background: rgba(10, 12, 8, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav__inner { height: 100%; max-width: calc(var(--container) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; }
.nav__brand { font-weight: 800; font-size: 14px; letter-spacing: .26em; color: var(--white); position: relative; z-index: 2; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__link { position: relative; font-size: 13px; font-weight: 500; color: var(--muted); padding: 6px 0; transition: color .3s; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--white); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--white); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; z-index: 2; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.nav.is-open .nav__toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; padding: calc(var(--nav-h) + 24px) var(--pad) 40px;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    background: rgba(10, 12, 8, .97); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__link { font-size: clamp(2rem, 9vw, 3rem); font-weight: 700; color: var(--white); padding: 6px 0; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 28px; font-size: 12px; }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 110px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; right: -15vw; top: -10vw;
  background: radial-gradient(closest-side, rgba(90, 105, 50, .45), transparent); pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero__title { font-size: clamp(3.4rem, 9.2vw, 8.2rem); line-height: .94; font-weight: 800; letter-spacing: -.045em; color: var(--white); margin: 22px 0 28px; }
.hero__tagline { font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 600; color: var(--white); letter-spacing: -.01em; line-height: 1.35; }
.hero__tagline em { font-family: var(--serif); font-weight: 400; color: var(--muted); }
.hero__desc { max-width: 520px; margin-top: 20px; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__loc { display: flex; align-items: center; gap: 12px; margin-top: 44px; font-size: 11px; font-weight: 600; letter-spacing: .24em; color: var(--muted); }
.pin { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }

.hero__visual { position: relative; justify-self: end; width: 100%; max-width: 460px; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: var(--navy); }
.portrait__art, .portrait__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__initials { position: absolute; left: 28px; bottom: 14px; font-size: clamp(5rem, 11vw, 9rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: rgba(255,255,255,.92); }
.portrait__tag { position: absolute; font-size: 10px; font-weight: 600; letter-spacing: .22em; color: rgba(255,255,255,.65); }
.portrait__tag--tl { top: 20px; left: 24px; }
.portrait__tag--br { bottom: 28px; right: 24px; }
.float-badge {
  position: absolute; left: -36px; top: 58%; padding: 16px 20px 16px 36px; max-width: 220px;
  background: rgba(17, 21, 29, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; line-height: 1.7; color: var(--white);
  animation: float 6s ease-in-out infinite;
}
.pulse { position: absolute; left: 16px; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: ping 2.4s ease-out infinite; }
@keyframes ping { to { transform: scale(3.4); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-10px); } }

.scroll-ind { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 10px; font-weight: 600; letter-spacing: .3em; color: var(--muted); }
.scroll-ind i { width: 1px; height: 44px; background: linear-gradient(var(--white), transparent); transform-origin: top; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 380px; order: -1; margin-bottom: 8px; }
  .float-badge { left: auto; right: -8px; top: auto; bottom: 24px; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .scroll-ind { display: none; }
}

/* ==========================================================
   SECTIONS (shared)
   ========================================================== */
.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }

/* ABOUT — deep black, editorial two column */
.about { background: var(--bg); border-top: 1px solid var(--line-soft); }
.about__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.about__text p { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.8; margin-bottom: 24px; max-width: 640px; }
.about__text p:first-child { color: var(--off); }
.quote { margin-top: 56px; padding: 8px 0 8px 32px; border-left: 1px solid var(--white); max-width: 560px; }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.4; color: var(--white) !important; margin: 0 !important; }
.photo-ph { position: relative; aspect-ratio: 4 / 4.4; border: 1px solid var(--line); overflow: hidden; border-radius: 4px; }
.photo-ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo-ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-ph__note { position: absolute; left: 20px; bottom: 16px; font-size: 10px; letter-spacing: .26em; font-weight: 600; color: rgba(255,255,255,.4); }
.facts { margin-top: 24px; border-top: 1px solid var(--line); }
.facts > div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: 11px; font-weight: 600; padding-top: 2px; }
.facts dd { text-align: right; color: var(--white); font-weight: 500; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }

/* EXPERIENCE — charcoal, timeline */
.experience { background: var(--bg-2); }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 280px; top: 8px; bottom: 0; width: 1px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 280px 1fr; position: relative; }
.tl-item__date { padding-right: 56px; text-align: right; padding-top: 6px; }
.tl-item__years { display: block; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; color: var(--white); letter-spacing: -.02em; }
.tl-item__place { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tl-item__node { position: absolute; left: 280px; top: 16px; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--white); transition: background .4s, transform .4s var(--ease); }
.tl-item:hover .tl-item__node { background: var(--white); transform: scale(1.5); }
.tl-item__card { margin-left: 56px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 4px; background: var(--bg); transition: border-color .4s, transform .5s var(--ease), background .4s; }
.tl-item:hover .tl-item__card { border-color: rgba(255,255,255,.3); transform: translateX(6px); background: var(--navy); }
.tl-item__card h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; color: var(--white); margin-bottom: 14px; }
.tl-item__desc { color: var(--muted); max-width: 640px; }
.tl-item__card h4 { margin: 32px 0 14px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.ticks li { position: relative; padding-left: 22px; font-size: 15px; color: var(--off); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tag { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; color: var(--off); transition: background .3s, color .3s, border-color .3s; }
.tag:hover { background: var(--white); color: var(--bg); border-color: var(--white); }
@media (max-width: 800px) {
  .timeline::before { left: 5px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 32px; }
  .tl-item__date { text-align: left; padding: 0 0 14px; }
  .tl-item__node { left: 5px; top: 10px; }
  .tl-item__card { margin-left: 0; }
  .ticks { grid-template-columns: 1fr; }
}

/* INTERNATIONAL — navy, large cards */
.international { background: linear-gradient(180deg, var(--bg) 0%, #0c0f09 100%); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.card {
  position: relative; min-height: 580px; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: var(--navy); border: 1px solid var(--line); border-radius: 6px;
  transition: transform .6s var(--ease), border-color .4s, background .4s;
}
.card--alt { background: linear-gradient(160deg, var(--navy-accent) -40%, var(--navy) 60%); }
.card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,.3); }
.card__art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.card:hover .card__art { transform: scale(1.06); }
.card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.card__top, .card__body { position: relative; z-index: 1; }
.card__top { display: flex; justify-content: space-between; align-items: center; }
.card__year { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--white); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.card__type { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; color: var(--muted); }
.card__body h3 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1; font-weight: 800; letter-spacing: -.035em; color: var(--white); margin-bottom: 18px; }
.card__loc { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--off); margin-bottom: 20px; }
.card__body > p:last-child { color: var(--muted); max-width: 440px; }
.card__num { position: absolute; right: 28px; bottom: 14px; z-index: 0; font-size: 9rem; font-weight: 800; letter-spacing: -.06em; line-height: 1; color: rgba(255,255,255,.04); pointer-events: none; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } .card { min-height: 460px; padding: 28px; } }

/* EDUCATION — off-white inversion for contrast */
.education { background: var(--off); color: var(--bg); }
.education .label { color: #52525b; }
.education .label::before { background: #52525b; }
.education .h2 { color: var(--bg); }
.education .dot { color: #71717a; }
.edu { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: clamp(32px, 5vw, 64px); border: 1px solid rgba(10,12,8,.14); border-radius: 4px; background: #fff; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; }
.edu:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(10,12,8,.25); }
.edu__years { font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; display: flex; flex-direction: column; }
.edu__years span { font-weight: 300; color: #a1a1aa; line-height: .9; }
.edu__degree { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: #52525b; margin-bottom: 12px; }
.edu__body h3 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 18px; }
.edu__body > p:last-child { color: #52525b; max-width: 560px; }
.edu__icon { position: absolute; right: 36px; bottom: -14px; width: 200px; height: 200px; color: rgba(10,12,8,.06); }
@media (max-width: 800px) { .edu { grid-template-columns: 1fr; gap: 24px; } .edu__years { flex-direction: row; gap: 12px; } .edu__icon { width: 140px; height: 140px; } }

/* SKILLS — dark grid */
.skills { background: var(--bg); }
.skills__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.skill { position: relative; padding: 40px 36px 44px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; transition: background .5s var(--ease); }
.skill::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.skill:hover { background: var(--navy); }
.skill:hover::before { transform: scaleX(1); }
.icon { width: 36px; height: 36px; fill: none; stroke: var(--white); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.skill:hover .icon, .int:hover .icon { transform: translateY(-4px) rotate(-6deg); }
.skill__n { position: absolute; right: 28px; top: 32px; font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--muted); }
.skill h3 { margin: 48px 0 14px; font-size: 1.1rem; letter-spacing: .08em; font-weight: 700; color: var(--white); }
.skill p { color: var(--muted); font-size: 15px; line-height: 1.7; }
@media (max-width: 1000px) { .skills__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .skills__grid { grid-template-columns: 1fr; } .skill { padding: 32px 26px; } .skill h3 { margin-top: 36px; } }

/* LANGUAGES */
.languages { background: var(--bg-2); padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.lang-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lang { display: flex; flex-direction: column; gap: 10px; padding: 36px 0; border-top: 1px solid var(--line); transition: border-color .4s; }
.lang:hover { border-top-color: var(--white); }
.lang__name { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--white); }
.lang__level { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--muted); }
@media (max-width: 700px) { .lang-row { grid-template-columns: 1fr; gap: 0; } }

/* INTERESTS — expressive bento */
.interests { background: var(--bg); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(230px, auto); gap: 16px; }
.int { position: relative; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); overflow: hidden; transition: transform .5s var(--ease), background .5s, border-color .4s; }
.int .icon { position: absolute; top: 30px; left: 32px; width: 44px; height: 44px; }
.int h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800; letter-spacing: -.02em; color: var(--white); }
.int p { color: var(--muted); font-size: 15px; max-width: 280px; }
.int:hover { transform: translateY(-6px); background: var(--navy); border-color: rgba(255,255,255,.3); }
.int--a { grid-column: span 3; grid-row: span 2; background: linear-gradient(160deg, var(--navy-accent) -30%, var(--navy) 70%); }
.int--a h3 { font-size: clamp(2.2rem, 4.5vw, 4rem); letter-spacing: -.035em; }
.int--a .icon { width: 64px; height: 64px; }
.int--b { grid-column: span 3; }
.int--c { grid-column: span 3; }
.int--d { grid-column: span 3; }
.int--e { grid-column: span 3; background: var(--off); border-color: var(--off); }
.int--e h3 { color: var(--bg); } .int--e p { color: #52525b; } .int--e .icon { stroke: var(--bg); }
.int--e:hover { background: #fff; border-color: #fff; }
@media (max-width: 800px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(200px, auto); }
  .int--a { grid-column: span 2; grid-row: span 1; min-height: 300px; }
  .int--b, .int--c, .int--d { grid-column: span 1; }
  .int--e { grid-column: span 2; }
  .int { padding: 24px; } .int .icon { left: 24px; top: 24px; }
}
@media (max-width: 480px) { .bento { grid-template-columns: 1fr; } .int--b, .int--c, .int--d, .int--e { grid-column: span 1; } }

/* CONTACT */
.contact { background: var(--navy); text-align: center; overflow: hidden; padding: clamp(110px, 16vw, 200px) 0; }
.contact::before, .contact::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.contact::before { width: min(110vw, 1100px); aspect-ratio: 1; }
.contact::after { width: min(75vw, 720px); aspect-ratio: 1; border-color: var(--line-soft); }
.contact__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.contact .label { justify-content: center; }
.contact__title { font-size: clamp(2.8rem, 9vw, 8rem); line-height: .98; font-weight: 800; letter-spacing: -.045em; color: var(--white); }
.contact__desc { max-width: 560px; margin: 36px auto 0; color: var(--muted); font-size: 1.1rem; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 48px; }

/* FOOTER */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 32px 0; font-size: 13px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.footer__brand { font-weight: 800; letter-spacing: .26em; color: var(--white); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ==========================================================
   THEME: POST-OUTBREAK / "THE LAST OF US"-INSPIRED
   Overgrown concrete, moss, rust, grain, spores.
   ========================================================== */
:root {
  --rust: #b8562b;
  --moss: #8a9a54;
  --paper: #d8d2bc;
  --muted: #a3a592;
  --font-head: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --serif: 'Special Elite', 'Courier New', monospace;
}
body { font-family: var(--font); background: var(--bg); }

/* film grain + vignette */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 89; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}

/* spores */
.spores { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.spore { position: absolute; bottom: -10px; border-radius: 50%; background: rgba(216, 210, 188, .55); filter: blur(.4px); animation: spore linear infinite; }
@keyframes spore { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 10% { opacity: .8; } 100% { transform: translate3d(var(--dx, 40px), -110vh, 0); opacity: 0; } }
main, .footer { position: relative; z-index: 2; }

/* typography: condensed, stencil-like headlines */
.nav__brand, .h2, .hero__title, .hero__tagline, .tl-item__years, .tl-item__card h3, .card__body h3, .card__year,
.edu__years, .edu__body h3, .skill h3, .lang__name, .int h3, .contact__title, .footer__brand, .btn, .nav__link {
  font-family: var(--font-head);
}
.h2, .hero__title, .contact__title, .lang__name { text-transform: uppercase; letter-spacing: -.005em; line-height: .92; font-weight: 700; }
.hero__title { font-size: clamp(4.2rem, 12vw, 10.5rem); font-weight: 800; line-height: .84; letter-spacing: -.01em; }
.h2 { font-size: clamp(3rem, 7.5vw, 6.4rem); }
.contact__title { font-size: clamp(3.4rem, 11vw, 10rem); }
.lang__name { font-size: clamp(3rem, 8vw, 6.4rem); }
.nav__brand { font-size: 17px; letter-spacing: .22em; font-weight: 700; }
.nav__link { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.btn { font-size: 14px; letter-spacing: .16em; font-weight: 700; border-radius: 2px; }
.btn--sm { font-size: 13px; }
.hero__tagline { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.hero__tagline em { font-family: var(--serif); font-style: normal; text-transform: none; color: var(--rust); letter-spacing: 0; font-size: .85em; }
.tl-item__card h3, .card__body h3, .edu__body h3, .skill h3, .int h3 { text-transform: uppercase; letter-spacing: .01em; font-weight: 700; }
.card__body h3 { font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: .92; }
.skill h3 { font-size: 1.5rem; letter-spacing: .06em; }
.int h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.int--a h3 { font-size: clamp(3rem, 6vw, 5.4rem); }
.serif { font-family: var(--serif); font-style: normal; color: var(--rust); text-transform: none; letter-spacing: 0; font-weight: 400; }
.eyebrow, .label, .facts dt, .tl-item__place, .card__type, .card__loc, .tag, .portrait__tag, .hero__loc, .photo-ph__note, .skill__n {
  font-family: 'Special Elite', 'Courier New', monospace; font-weight: 400; letter-spacing: .14em;
}
.label { color: var(--moss); } .label::before { background: var(--rust); width: 28px; }
.dot { color: var(--rust); }
.lang__level, .quote p { font-family: var(--serif); font-style: normal; }
.quote { border-left: 2px solid var(--rust); }
.quote p { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.55; }

/* accents */
.btn--primary { background: var(--paper); border-color: var(--paper); color: #0a0c08; }
.btn--primary:hover { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn--ghost { border-color: rgba(216,210,188,.35); }
.btn--ghost:hover { background: var(--paper); border-color: var(--paper); color: #0a0c08; }
.nav__link::after { background: var(--rust); }
.nav__link:hover, .nav__link.is-active { color: var(--paper); }
.pin { color: var(--rust); }
.hero::before { background: radial-gradient(closest-side, rgba(90,105,50,.35), transparent); }
.tag:hover { background: var(--rust); border-color: var(--rust); color: #fff; }
.tl-item__node { border-color: var(--rust); } .tl-item:hover .tl-item__node { background: var(--rust); }
.skill::before { background: var(--rust); }
.icon { stroke: var(--moss); }
.skill:hover .icon, .int:hover .icon { stroke: var(--paper); }
.pulse, .pulse::after { background: var(--rust); }
.float-badge { font-family: var(--font-head); font-size: 14px; border-radius: 2px; border-color: rgba(184,86,43,.5); }
.hero__tagline, .hero__desc { text-shadow: 0 1px 12px rgba(0,0,0,.5); }

/* hero photo: weathered, desaturated, overgrown frame */
.portrait { border-radius: 2px; border-color: rgba(216,210,188,.25); }
.portrait img { object-position: 50% 30%; filter: saturate(.72) contrast(1.05) brightness(.92) sepia(.12); }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,8,.15) 40%, rgba(10,12,8,.75)); pointer-events: none; }
.portrait__tag { z-index: 2; color: rgba(216,210,188,.85); }
.hero__visual::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid rgba(138,154,84,.4); z-index: -1; }
.hero__visual::after { content: "Survive. Connect. Explore."; position: absolute; right: -10px; top: -26px; font-family: var(--serif); font-size: 12px; color: var(--moss); letter-spacing: .1em; }

/* exchange cards: real photos, graded */
.card__photo { opacity: 1; filter: saturate(.7) contrast(1.05) brightness(.8) sepia(.15); transition: transform 1.2s var(--ease), filter .6s; }
.card:hover .card__photo { transform: scale(1.05); filter: saturate(.95) contrast(1.05) brightness(.88); }
.card__art { display: none; }
.card::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(10,12,8,.55) 0%, rgba(10,12,8,.05) 35%, rgba(10,12,8,.92) 100%); }
.card__body > p:last-child { color: #c4c6b4; }
.card__year { background: rgba(10,12,8,.5); border-color: rgba(216,210,188,.35); }
.card__num { color: rgba(216,210,188,.1); font-family: var(--font-head); }
.card--alt { background: var(--navy); }
.card__loc { color: var(--paper); }

/* education: aged paper note */
.education { background: var(--paper); color: #14170e; }
.education .label { color: #5a4a2c; } .education .label::before { background: var(--rust); }
.education .h2 { color: #14170e; }
.edu { background: #e6e1cd; border-color: rgba(20,23,14,.25); font-family: var(--font); }
.edu__degree { font-family: var(--serif); color: var(--rust); letter-spacing: .1em; }
.edu__body > p:last-child { color: #43463a; }
.edu__years span { color: var(--rust); }
.edu__icon { color: rgba(20,23,14,.08); }

/* interests tile e */
.int--e { background: var(--paper); border-color: var(--paper); }
.int--e h3 { color: #14170e; } .int--e p { color: #43463a; } .int--e .icon { stroke: #14170e; }
.int--e:hover { background: var(--rust); border-color: var(--rust); } .int--e:hover h3, .int--e:hover p { color: #fff; } .int--e:hover .icon { stroke: #fff; }
.int--a { background: linear-gradient(160deg, #34401f -30%, #151a10 75%); }

/* contact */
.contact { background: radial-gradient(ellipse at 50% 100%, #26301a 0%, #12160d 70%); }
.contact::before, .contact::after { border-color: rgba(138,154,84,.2); }
.contact__desc { font-family: var(--serif); color: #c4c6b4; }
.contact .serif { color: var(--rust); }
.footer { background: #070805; }

/* overgrowth: vines creeping in from section edges */
.about::after, .international::after, .interests::after {
  content: ""; position: absolute; right: 0; top: 0; width: 220px; height: 320px; opacity: .35; pointer-events: none; z-index: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 320' fill='none' stroke='%238a9a54' stroke-width='1.2' stroke-linecap='round'><path d='M220 0C190 60 150 70 140 130S120 210 80 250 40 310 20 320'/><path d='M140 130c-26-6-40-24-44-40 24 2 40 14 44 40ZM120 200c24-8 44-4 58 8-20 12-44 8-58-8ZM80 250c-24-2-38-16-42-32 24 0 38 10 42 32ZM168 70c20-14 36-14 48-8-14 18-34 20-48 8Z' fill='%238a9a54' fill-opacity='.25'/></svg>") no-repeat right top / contain;
}
.about, .international, .interests { overflow: hidden; }
.about > .container, .international > .container, .interests > .container { position: relative; z-index: 1; }
.portrait__tag { text-shadow: 0 1px 6px rgba(0,0,0,.9); } .portrait__tag--tl { color: #0a0c08; text-shadow: none; background: rgba(216,210,188,.85); padding: 3px 8px; top: 16px; left: 16px; }
.card__photo{z-index:0}.card::before{z-index:1!important;background:linear-gradient(180deg,rgba(10,12,8,.6) 0%,rgba(10,12,8,.25) 30%,rgba(10,12,8,.94) 78%)!important}.card__top,.card__body{z-index:2}.card__num{z-index:1}.card__type{color:var(--paper)}.card__body h3{text-shadow:0 2px 14px rgba(0,0,0,.6)}.card__body>p:last-child{color:#e2e3d6}.h2 .serif{font-size:.62em;display:inline-block;margin-top:.15em}
.portrait img{object-position:50% 20%;filter:saturate(.8) contrast(1.06) brightness(.95)}.portrait::after{background:linear-gradient(180deg,rgba(10,12,8,.35) 0%,rgba(10,12,8,0) 30%,rgba(10,12,8,0) 65%,rgba(10,12,8,.8) 100%)}.portrait__tag--br{display:none}.hero__visual::after{display:none}
.portrait img{object-position:50% 0}.float-badge{top:auto;bottom:40px;left:-36px}.portrait::after{background:linear-gradient(180deg,rgba(10,12,8,.5) 0%,rgba(10,12,8,.1) 22%,rgba(10,12,8,0) 60%,rgba(10,12,8,.75) 100%)}

/* ===== HALL OF FAME PORTRAIT ===== */
:root { --brass: #b79a5b; --brass-dark: #6f5a2e; }
.hero__visual { max-width: 440px; padding: 18px 18px 0; }
.hero__visual::before {
  content: ""; position: absolute; inset: -40px -60px -30px; z-index: -1; border: 0;
  background:
    radial-gradient(ellipse 55% 70% at 50% 0%, rgba(216,210,188,.22), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 90px);
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
  opacity: .9;
}
.portrait {
  border: 0; border-radius: 1px; padding: 0;
  outline: 3px solid var(--brass); outline-offset: 10px;
  box-shadow: 0 0 0 1px var(--brass-dark), 0 0 0 14px #0c0e09, 0 0 0 15px rgba(183,154,91,.45), 0 40px 80px -30px rgba(0,0,0,.9);
}
.portrait::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 40px rgba(0,0,0,.45); }
.plaque {
  margin: 44px auto 0; width: 78%; text-align: center; padding: 12px 16px 11px;
  background: linear-gradient(180deg, #c7ab6c, #9c8142); color: #17130a;
  border: 1px solid #6f5a2e; border-radius: 1px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.35);
}
.plaque b { display: block; font-family: var(--font-head); font-size: 20px; letter-spacing: .2em; font-weight: 700; line-height: 1.2; }
.plaque span { display: block; font-family: 'Special Elite', monospace; font-size: 10px; letter-spacing: .18em; margin-top: 2px; }
.float-badge { bottom: 110px; left: -48px; }
.portrait__tag--tl { display: none; }
@media (max-width: 900px) { .hero__visual { padding: 14px 14px 0; } .float-badge { left: auto; right: -4px; bottom: 100px; } .hero__visual::before { inset: -30px -20px; } }
.photo-ph{aspect-ratio:16/11}.photo-ph img{position:absolute;inset:0;filter:saturate(.85) contrast(1.05) brightness(.95);transition:transform 1.2s var(--ease)}.photo-ph:hover img{transform:scale(1.04)}.photo-ph::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(10,12,8,.8))}.photo-ph__note{z-index:2;color:rgba(216,210,188,.85)}
.erasmus{margin-top:40px;padding:28px 0 4px;border-top:1px solid var(--line);max-width:640px}.erasmus__title{font-family:'Special Elite',monospace;font-weight:400;font-size:12px;letter-spacing:.18em;color:var(--moss);margin-bottom:16px}.erasmus p{font-size:1rem!important;margin-bottom:12px!important}.erasmus strong{color:var(--paper);font-weight:600}
.card{min-height:680px}.card__body>p:not(.card__loc){font-size:15px;line-height:1.65;margin-bottom:12px}.card__body>.card__skills{margin:16px 0 0;padding-top:14px;border-top:1px solid rgba(216,210,188,.25);font-size:14px;color:#e2e3d6}.card__skills span{display:block;font-family:'Special Elite',monospace;font-size:10px;letter-spacing:.18em;color:var(--moss);margin-bottom:4px}.card__body>p:last-child{max-width:520px}@media(max-width:900px){.card{min-height:560px}}

/* ===== Cards: photo on top, text panel below ===== */
.card { min-height: 0; padding: 0; justify-content: flex-start; background: #12160d; }
.card--alt { background: #12160d; }
.card__photo { top: 0; bottom: auto; height: 380px; inset: 0 0 auto 0; object-fit: cover; object-position: 50% 45%; filter: saturate(.9) contrast(1.04) brightness(.98); }
.card:hover .card__photo { filter: saturate(1) contrast(1.05) brightness(1.04); }
.card::before { height: 380px; inset: 0 0 auto 0 !important; background: linear-gradient(180deg, rgba(10,12,8,.45) 0%, rgba(10,12,8,0) 28%, rgba(10,12,8,0) 60%, #12160d 100%) !important; }
.card__top { position: absolute; top: 28px; left: 32px; right: 32px; z-index: 3; }
.card__year { background: rgba(10,12,8,.6); backdrop-filter: blur(6px); }
.card__type { text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.card__body { margin-top: 340px; padding: 0 36px 40px; }
.card__body h3 { text-shadow: none; }
.card__num { top: 300px; bottom: auto; right: 24px; font-size: 7rem; color: rgba(216,210,188,.07); }
@media (max-width: 900px) { .card__photo, .card::before { height: 300px; } .card__body { margin-top: 260px; padding: 0 26px 30px; } .card__top { left: 22px; right: 22px; } }
.card__type{background:rgba(10,12,8,.6);padding:6px 10px;color:var(--paper);text-shadow:none}.card__num{display:none}

/* ===== New portraits ===== */
.portrait img { object-position: 50% 25%; filter: saturate(.92) contrast(1.04) brightness(.97); }
.portrait::after { background: linear-gradient(180deg, rgba(10,12,8,0) 0%, rgba(10,12,8,0) 70%, rgba(10,12,8,.55) 100%); }
.hero__visual { position: relative; }
.inset { position: absolute; right: -34px; bottom: 74px; width: 38%; aspect-ratio: 4/5; margin: 0; z-index: 4; overflow: hidden;
  outline: 2px solid var(--brass); outline-offset: 5px; box-shadow: 0 0 0 7px #0c0e09, 0 24px 40px -12px rgba(0,0,0,.9); }
.inset img { width: 100%; height: 100%; object-fit: cover; object-position: 49% 20%; filter: saturate(.95) contrast(1.05); transition: transform 1s var(--ease); }
.inset:hover img { transform: scale(1.06); }
.float-badge { left: -48px; bottom: 120px; }
@media (max-width: 900px) { .inset { right: -6px; bottom: 70px; width: 34%; } }
