/* ============================================================
   CV PAGES /cv/en + /cv/nl (2026-09-26) — responsive web CV
   Uses the site tokens (main.css) + shell tokens (shell.css).
   desktop ≥1200: main column + sticky side column
   iPad 768–1199: one column, side cards in a 2-col grid
   phone ≤767: one column, horizontally scrolling section chips
   ============================================================ */
.wcv-page { --cv-radius: 22px; --cv-gap: clamp(16px, 2.2vw, 24px);
    --cv-card: rgba(255, 255, 255, .035); --cv-card-2: rgba(255, 255, 255, .06);
    --cv-line: rgba(var(--primary-accent-rgb), .16); --cv-ink: var(--text-primary); --cv-soft: var(--text-secondary);
}
[data-theme="light"] .wcv-page { --cv-card: #fbfbf6; --cv-card-2: #f1f1e7; --cv-line: rgba(88, 96, 87, .16); }
.wcv-page #particles-canvas { opacity: .35; }

.wcv {
    position: relative; z-index: 2;
    max-width: 1240px; margin: 0 auto;
    padding: calc(var(--sh-top-h, 72px) + 28px) clamp(16px, 3vw, 40px) 64px;
    color: var(--cv-ink); font-family: var(--font-body);
}
@media (min-width: 768px) and (max-width: 1199px) { .wcv { padding-top: 28px; } }

/* ---------- cards + chips ---------- */
.wcv-card {
    background: var(--cv-card); border: 1px solid var(--cv-line); border-radius: var(--cv-radius);
    padding: clamp(18px, 2.4vw, 28px);
    box-shadow: 0 24px 50px -40px rgba(0, 0, 0, .8);
}
[data-theme="light"] .wcv-card { box-shadow: 0 18px 40px -32px rgba(61, 68, 60, .35); }
.wcv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wcv-chip {
    display: inline-flex; align-items: center; gap: .45rem; min-height: 30px; padding: 0 .75rem;
    border-radius: 999px; border: 1px solid var(--cv-line); background: rgba(var(--primary-accent-rgb), .07);
    font: 500 .8rem/1.2 var(--font-body); color: var(--cv-soft); text-decoration: none; white-space: nowrap;
}
.wcv-chip i { color: var(--primary-accent); font-size: .85em; }
.wcv-chip-lg { min-height: 34px; font-size: .84rem; white-space: normal; }
.wcv-chip-soft { background: var(--cv-card-2); }
a.wcv-chip:hover { border-color: rgba(var(--primary-accent-rgb), .45); color: var(--cv-ink); }
.wcv-chip-accent { color: var(--primary-accent); border-color: rgba(var(--primary-accent-rgb), .35); font-weight: 600; }

/* ---------- hero ---------- */
.wcv-hero {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main stats" "actions actions";
    gap: 22px 32px; align-items: center;
    padding: clamp(22px, 3.2vw, 40px);
    border-radius: 30px; border: 1px solid var(--cv-line);
    background:
        radial-gradient(ellipse at 0% 0%, rgba(var(--primary-accent-rgb), .12), transparent 55%),
        linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .15));
    box-shadow: 0 40px 80px -60px rgba(0, 0, 0, .9);
}
[data-theme="light"] .wcv-hero { background: radial-gradient(ellipse at 0% 0%, rgba(88, 96, 87, .1), transparent 55%), linear-gradient(160deg, #fbfbf6, #ecedde); }
.wcv-hero-main { grid-area: main; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px); min-width: 0; }
.wcv-photo {
    width: clamp(88px, 10vw, 128px); height: clamp(88px, 10vw, 128px); flex: none; object-fit: cover;
    border-radius: 28px; border: 1px solid rgba(var(--primary-accent-rgb), .35);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8);
}
.wcv-id { min-width: 0; }
.wcv-eyebrow { display: inline-block; margin-bottom: 8px; font: 600 .72rem/1 var(--font-heading); letter-spacing: .18em; text-transform: uppercase; color: var(--primary-accent); }
.wcv-name { margin: 0; font: 700 clamp(2rem, 4.4vw, 3.4rem)/1.02 var(--font-heading); letter-spacing: -.02em; color: var(--cv-ink); }
.wcv-headline { margin: 10px 0 16px; font: 500 clamp(1rem, 1.6vw, 1.2rem)/1.4 var(--font-heading); color: var(--cv-soft); }
.wcv-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.wcv-meta .wcv-chip { min-height: 36px; }

.wcv-stats { grid-area: stats; display: grid; grid-template-columns: repeat(3, minmax(96px, 1fr)); gap: 10px; }
.wcv-stat {
    display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 18px;
    background: var(--cv-card-2); border: 1px solid var(--cv-line);
}
.wcv-stat strong { font: 700 1.6rem/1 var(--font-heading); color: var(--primary-accent); }
.wcv-stat span { font-size: .78rem; line-height: 1.35; color: var(--cv-soft); }

.wcv-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 4px; border-top: 1px solid var(--cv-line); padding-top: 22px; }
.wcv-actions .cta-btn { min-height: 48px; }
.wcv-lang {
    margin-left: auto; display: inline-flex; padding: 4px; border-radius: 14px; gap: 2px; text-decoration: none;
    background: var(--cv-card-2); border: 1px solid var(--cv-line);
}
.wcv-lang span { min-width: 48px; min-height: 40px; display: grid; place-items: center; border-radius: 10px; font: 600 .82rem/1 var(--font-heading); letter-spacing: .08em; color: var(--cv-soft); }
.wcv-lang span.on { background: rgba(var(--primary-accent-rgb), .16); color: var(--cv-ink); box-shadow: inset 0 0 0 1px rgba(var(--primary-accent-rgb), .35); }
.wcv-lang:hover span:not(.on) { color: var(--cv-ink); }

/* ---------- section chips (sticky) ---------- */
.wcv-nav {
    position: sticky; top: calc(var(--sh-top-h, 72px) + 10px); z-index: 20;
    display: flex; gap: 6px; margin: 22px 0 26px; padding: 6px; width: fit-content; max-width: 100%;
    overflow-x: auto; scrollbar-width: none;
    border-radius: 18px; border: 1px solid var(--cv-line);
    background: var(--sh-glass, rgba(20, 22, 21, .75)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.wcv-nav::-webkit-scrollbar { display: none; }
.wcv-nav a {
    flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 13px;
    font: 500 .88rem/1 var(--font-heading); color: var(--cv-soft); text-decoration: none; transition: background-color .25s, color .25s;
}
.wcv-nav a:hover { color: var(--cv-ink); background: var(--cv-card-2); }
.wcv-nav a.on { color: var(--cv-ink); background: rgba(var(--primary-accent-rgb), .14); box-shadow: inset 0 0 0 1px rgba(var(--primary-accent-rgb), .3); }
@media (min-width: 768px) and (max-width: 1199px) { .wcv-nav { top: 12px; } }

/* ---------- layout ---------- */
.wcv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.wcv-main { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
.wcv-side { position: sticky; top: calc(var(--sh-top-h, 72px) + 84px); display: flex; flex-direction: column; gap: var(--cv-gap); }
.wcv-section { scroll-margin-top: calc(var(--sh-top-h, 72px) + 84px); }
.wcv-h2 { display: flex; align-items: center; gap: .7rem; margin: 0 0 18px; font: 600 1.35rem/1.2 var(--font-heading); color: var(--cv-ink); }
.wcv-h2 i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; font-size: .95rem; color: var(--primary-accent); background: rgba(var(--primary-accent-rgb), .1); border: 1px solid var(--cv-line); }
.wcv-h2.small { font-size: 1.02rem; margin-bottom: 14px; }
.wcv-h2.small i { width: 32px; height: 32px; border-radius: 10px; font-size: .82rem; }
.wcv-h2.spaced { margin-top: 24px; }
.wcv-h3 { margin: 30px 0 14px; font: 600 .78rem/1 var(--font-heading); letter-spacing: .16em; text-transform: uppercase; color: var(--primary-accent); }
.wcv-profile p { margin: 0; font-size: 1.04rem; line-height: 1.75; color: var(--cv-ink); }

/* ---------- experience timeline ---------- */
.wcv-timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: flex; flex-direction: column; gap: 18px; }
.wcv-timeline::before { content: ''; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: linear-gradient(var(--primary-accent), rgba(var(--primary-accent-rgb), .08)); }
.wcv-job { position: relative; }
.wcv-dot { position: absolute; left: -26px; top: 30px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-base); border: 2px solid var(--primary-accent); }
.wcv-job.is-current .wcv-dot { background: var(--primary-accent); box-shadow: 0 0 0 6px rgba(var(--primary-accent-rgb), .18); }
.wcv-job-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; margin-bottom: 14px; }
.wcv-mono {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    font: 700 .9rem/1 var(--font-heading); letter-spacing: .04em; color: var(--cv-ink);
    background: var(--cv-card-2); border: 1px solid var(--cv-line);
}
.wcv-job-title h3, .wcv-mini h4, .wcv-edu h4 { margin: 0; font: 600 1.08rem/1.3 var(--font-heading); color: var(--cv-ink); }
.wcv-org { margin: 4px 0 0; font-size: .9rem; color: var(--cv-soft); }
.wcv-org span { color: var(--text-tertiary); }
.wcv-period {
    display: inline-flex; align-items: center; min-height: 30px; padding: 0 .75rem; border-radius: 999px; white-space: nowrap;
    font: 600 .78rem/1 var(--font-heading); letter-spacing: .02em; color: var(--primary-accent);
    background: rgba(var(--primary-accent-rgb), .1); border: 1px solid rgba(var(--primary-accent-rgb), .28);
}
.wcv-key { margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: rgba(var(--primary-accent-rgb), .08); border: 1px solid rgba(var(--primary-accent-rgb), .2); }
.wcv-key span { display: flex; align-items: center; gap: .45rem; margin-bottom: 6px; font: 600 .72rem/1 var(--font-heading); letter-spacing: .12em; text-transform: uppercase; color: var(--primary-accent); }
.wcv-key p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--cv-ink); }
.wcv-bullets { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.wcv-bullets li { position: relative; padding-left: 1.3rem; font-size: .94rem; line-height: 1.6; color: var(--cv-soft); }
.wcv-bullets li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--primary-accent); opacity: .7; }

/* ---------- internships, education ---------- */
.wcv-mini-grid, .wcv-edu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wcv-edu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wcv-mini p:not(.wcv-org) { margin: 10px 0 12px; font-size: .9rem; line-height: 1.55; color: var(--cv-soft); }
.wcv-mini-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.wcv-edu { display: flex; flex-direction: column; gap: 6px; }
.wcv-edu .wcv-chips { margin-top: auto; padding-top: 10px; }
.wcv-edu-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px; color: var(--primary-accent); background: rgba(var(--primary-accent-rgb), .1); border: 1px solid var(--cv-line); }
.wcv-cert { flex-direction: row; align-items: center; gap: 16px; }
.wcv-cert .wcv-edu-icon { margin: 0; flex: none; }
.wcv-cert > div { flex: 1; min-width: 0; }

/* ---------- side column ---------- */
.wcv-langs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.wcv-lang-row { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 7px; }
.wcv-lang-row span { color: var(--cv-soft); }
.wcv-bar { height: 8px; border-radius: 8px; background: var(--cv-card-2); border: 1px solid var(--cv-line); overflow: hidden; }
.wcv-bar i { display: block; height: 100%; width: var(--w); border-radius: 8px; background: linear-gradient(90deg, var(--primary-accent), rgba(var(--primary-accent-rgb), .55)); }
.wcv-ai p { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--cv-soft); }
.wcv-contact-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wcv-contact-list li { display: flex; align-items: center; gap: .7rem; min-height: 44px; font-size: .92rem; }
.wcv-contact-list i { width: 18px; text-align: center; color: var(--primary-accent); }
.wcv-contact-list a { color: var(--cv-ink); text-decoration: none; overflow-wrap: anywhere; }
.wcv-contact-list a:hover { color: var(--primary-accent); }
.wcv-contact-actions { display: grid; gap: 10px; }
.wcv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: 0 1rem; border-radius: 14px;
    font: 600 .9rem/1 var(--font-heading); text-decoration: none; color: #1f231e;
    background: linear-gradient(135deg, #c9d8c5, #d9dcbd 60%, #e1e2d0);
}
[data-theme="light"] .wcv-btn { color: #f4f4ec; background: linear-gradient(135deg, #3d443c, #586057); }
.wcv-btn.ghost { color: var(--cv-ink); background: var(--cv-card-2); border: 1px solid var(--cv-line); }
.wcv-refs { margin: 16px 0 0; font-size: .82rem; color: var(--text-tertiary); font-style: italic; }

/* ---------- reveal ---------- */
.wcv-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.wcv-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .wcv-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- iPad ---------- */
@media (max-width: 1199px) {
    .wcv-grid { grid-template-columns: 1fr; }
    .wcv-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #skills { grid-column: 1 / -1; }
}
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
    .wcv-hero { grid-template-columns: 1fr; grid-template-areas: "main" "stats" "actions"; }
    .wcv-edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
    .wcv { padding-left: 12px; padding-right: 12px; padding-bottom: 24px; }
    .wcv-hero { grid-template-columns: 1fr; grid-template-areas: "main" "stats" "actions"; gap: 18px; padding: 20px; border-radius: 24px; }
    .wcv-hero-main { flex-direction: column; align-items: flex-start; gap: 14px; }
    .wcv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .wcv-stat { padding: 12px 10px; border-radius: 14px; }
    .wcv-stat strong { font-size: 1.25rem; }
    .wcv-stat span { font-size: .72rem; }
    .wcv-actions { gap: 10px; }
    .wcv-actions .cta-btn { flex: 1 1 calc(50% - 5px); justify-content: center; }
    .wcv-lang { margin-left: 0; flex: 1 1 100%; justify-content: center; }
    .wcv-lang span { flex: 1; }
    .wcv-nav { width: auto; margin: 16px -12px 20px; border-radius: 0; border-left: 0; border-right: 0; padding: 6px 12px; top: calc(var(--sh-top-h, 58px)); }
    .wcv-main { gap: 34px; }
    .wcv-timeline { padding-left: 20px; }
    .wcv-timeline::before { left: 4px; }
    .wcv-dot { left: -22px; width: 14px; height: 14px; }
    .wcv-job-head { grid-template-columns: auto 1fr; }
    .wcv-job-head .wcv-period { grid-column: 1 / -1; justify-self: start; }
    .wcv-mono { width: 40px; height: 40px; border-radius: 12px; }
    .wcv-mini-grid, .wcv-edu-grid, .wcv-side { grid-template-columns: 1fr; }
    .wcv-cert { flex-wrap: wrap; }
}

/* ---------- print: a clean two-page document ---------- */
@media print {
    @page { margin: 14mm; }
    .wcv-page { --cv-card: #fff; --cv-card-2: #f4f4f4; --cv-line: #ddd; --cv-ink: #111; --cv-soft: #333; }
    html, body { background: #fff !important; color: #111 !important; }
    body > footer, .no-print, .wcv-nav, #particles-canvas { display: none !important; }
    .wcv { padding: 0 !important; max-width: none; }
    .wcv-hero, .wcv-card { box-shadow: none !important; background: #fff !important; border-color: #ddd !important; }
    .wcv-grid { grid-template-columns: 1fr 250px; gap: 18px; }
    .wcv-side { position: static; }
    .wcv-job, .wcv-card { break-inside: avoid; }
    .wcv-reveal { opacity: 1 !important; transform: none !important; }
    .wcv-name, .wcv-h2, .wcv-job-title h3 { color: #111 !important; }
    .wcv-period, .wcv-eyebrow, .wcv-h3, .wcv-key span, .wcv-stat strong { color: #3d443c !important; }
}

/* keep the site's Download PDF button, just give its icon room */
.wcv-actions .cta-btn { gap: .55rem; }

/* ============================================================
   HYPER-RESPONSIVE PASS (2026-09-26)
   The hero, stats and cards now respond to their OWN width
   (container queries), so they adapt at every size — also in
   resized windows — instead of at a few fixed screen widths.
   ============================================================ */
.wcv-hero { container-type: inline-size; container-name: hero;
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "stats" "actions"; }
.wcv-hero-main, .wcv-id, .wcv-meta, .wcv-stats { min-width: 0; }
.wcv-name {
    font-size: clamp(1.8rem, 1.1rem + 3.4vw, 3.4rem);
    white-space: normal; overflow-wrap: normal; word-break: keep-all; text-wrap: balance;
}
.wcv-headline { text-wrap: balance; }
.wcv-meta .wcv-chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; padding-block: .35rem; }
.wcv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wcv-stat { min-width: 0; }
.wcv-stat span { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* photo + name side by side once the card has room */
@container hero (min-width: 520px) {
    .wcv-hero-main { flex-direction: row; align-items: center; }
}
@container hero (max-width: 519px) {
    .wcv-hero-main { flex-direction: column; align-items: flex-start; }
    .wcv-stat { padding: 12px 10px; }
    .wcv-stat strong { font-size: 1.25rem; }
    .wcv-stat span { font-size: .72rem; }
}
/* stats move beside the name only when there is real room for both */
@container hero (min-width: 1000px) {
    .wcv-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); grid-template-areas: "main stats" "actions actions"; }
}
/* action row: buttons share the width on narrow cards */
@container hero (max-width: 560px) {
    .wcv-actions .cta-btn { flex: 1 1 calc(50% - 6px); justify-content: center; min-width: 0; }
    .wcv-lang { margin-left: 0; flex: 1 1 100%; justify-content: center; }
    .wcv-lang span { flex: 1; }
}
@container hero (max-width: 340px) {
    .wcv-actions .cta-btn { flex-basis: 100%; }
    .wcv-stats { grid-template-columns: 1fr; }
    .wcv-stat { flex-direction: row; align-items: baseline; gap: 10px; }
}

/* cards: every text block may shrink, nothing forces a width */
.wcv-card, .wcv-job-title, .wcv-mini-top > *, .wcv-edu, .wcv-cert > div { min-width: 0; }
.wcv-job-title h3, .wcv-mini h4, .wcv-edu h4, .wcv-org { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.wcv-chip { max-width: 100%; }
.wcv-chip-lg { overflow-wrap: anywhere; }

/* certificate card stacks when narrow */
.wcv-main { container-type: inline-size; container-name: main; }
@container main (max-width: 480px) {
    .wcv-cert { flex-direction: column; align-items: flex-start; }
    .wcv-job-head { grid-template-columns: auto minmax(0, 1fr); }
    .wcv-job-head .wcv-period { grid-column: 1 / -1; justify-self: start; }
    .wcv-mini-top { flex-direction: column; }
}
@container main (max-width: 640px) {
    .wcv-mini-grid, .wcv-edu-grid { grid-template-columns: minmax(0, 1fr); }
}
@container main (min-width: 641px) and (max-width: 900px) {
    .wcv-edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* side column: switches to a 2-up grid only when it's genuinely wide */
@media (max-width: 1199px) {
    .wcv-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
}
.wcv-period { flex: none; }
/* chip bar: fade the edge when more chips are hidden sideways */
.wcv-nav.is-scrollable { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.wcv-nav.is-scrollable.at-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }

/* ============================================================
   LOGOS + "ALIVE" LAYER (2026-09-26)
   ============================================================ */
/* company / school logos in the monogram and icon tiles */
.wcv-mono.has-logo, .wcv-edu-icon.has-logo { padding: 0; overflow: hidden; background: none; border-color: rgba(var(--primary-accent-rgb), .22); }
.wcv-mono.has-logo picture, .wcv-edu-icon.has-logo picture { display: block; width: 100%; height: 100%; }
.wcv-mono.has-logo img, .wcv-edu-icon.has-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wcv-mono { width: 52px; height: 52px; border-radius: 15px; box-shadow: 0 8px 20px -12px rgba(0,0,0,.6); }
.wcv-edu-icon.has-logo { width: 52px; height: 52px; border-radius: 15px; }
@media (max-width: 767px) { .wcv-mono { width: 44px; height: 44px; border-radius: 13px; } }

/* timeline rail fills as you scroll (JS sets --prog) */
.wcv-timeline::after {
    content: ''; position: absolute; left: 8px; top: 12px; width: 2px; border-radius: 2px;
    height: calc((100% - 24px) * var(--prog, 0)); background: var(--primary-accent);
    box-shadow: 0 0 12px rgba(var(--primary-accent-rgb), .6); transition: height .15s linear;
}
@media (max-width: 767px) { .wcv-timeline::after { left: 4px; } }
.wcv-dot { transition: background-color .35s, box-shadow .35s, transform .45s cubic-bezier(.34,1.56,.64,1); z-index: 1; }
.wcv-job.passed .wcv-dot { background: var(--primary-accent); }

/* cards: lift, glow and a soft spotlight that follows the cursor */
.wcv-card { position: relative; isolation: isolate; transition: transform .45s cubic-bezier(.16,1,.3,1), border-color .35s, box-shadow .45s; }
.wcv-card::before {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--primary-accent-rgb), .11), transparent 60%);
    transition: opacity .4s;
}
.wcv-mono, .wcv-edu-icon, .wcv-photo { transition: transform .55s cubic-bezier(.34,1.56,.64,1), box-shadow .4s; }
.wcv-chip { transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .25s, color .25s, background-color .25s; }
.wcv-stat, .wcv-btn, .wcv-lang, .wcv-nav a { transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .3s, background-color .25s, color .25s; }
.wcv-bullets li::before { transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s; }

@media (hover: hover) and (pointer: fine) {
    .wcv-card:hover { transform: translateY(-3px); border-color: rgba(var(--primary-accent-rgb), .38); box-shadow: 0 30px 60px -38px rgba(0,0,0,.9), 0 0 0 1px rgba(var(--primary-accent-rgb), .08); }
    [data-theme="light"] .wcv-card:hover { box-shadow: 0 26px 50px -30px rgba(61,68,60,.45); }
    .wcv-card:hover::before { opacity: 1; }
    .wcv-job:hover .wcv-mono, .wcv-edu:hover .wcv-edu-icon { transform: rotate(-4deg) scale(1.08); box-shadow: 0 14px 28px -14px rgba(0,0,0,.7); }
    .wcv-job:hover .wcv-dot { transform: scale(1.35); background: var(--primary-accent); box-shadow: 0 0 0 6px rgba(var(--primary-accent-rgb), .16); }
    .wcv-job:hover .wcv-period { background: rgba(var(--primary-accent-rgb), .18); }
    .wcv-bullets li:hover::before { transform: scale(1.5) rotate(45deg); opacity: 1; }
    .wcv-bullets li:hover { color: var(--cv-ink); }
    .wcv-chip:hover { transform: translateY(-2px); border-color: rgba(var(--primary-accent-rgb), .5); color: var(--cv-ink); background: rgba(var(--primary-accent-rgb), .14); }
    .wcv-stat:hover { transform: translateY(-3px); border-color: rgba(var(--primary-accent-rgb), .4); }
    .wcv-photo:hover { transform: rotate(-3deg) scale(1.04); }
    .wcv-btn:hover { transform: translateY(-2px); }
    .wcv-contact-list li a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s, color .25s; }
    .wcv-contact-list li a:hover { background-size: 100% 1px; }
}
/* touch: a gentle press instead of hover */
.wcv-card:active { transform: scale(.992); }
.wcv-chip:active, .wcv-stat:active, .wcv-btn:active, .wcv-lang:active { transform: scale(.96); }

/* language bars fill when they come into view */
.wcv-bar i { transform-origin: 0 50%; transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
.wcv-langs:not(.in) .wcv-bar i { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
    .wcv-card, .wcv-card::before, .wcv-mono, .wcv-edu-icon, .wcv-photo, .wcv-chip, .wcv-stat, .wcv-dot, .wcv-bar i, .wcv-timeline::after { transition: none !important; }
    .wcv-card:hover, .wcv-chip:hover, .wcv-stat:hover { transform: none; }
    .wcv-langs .wcv-bar i { transform: none !important; }
}
@media print { .wcv-timeline::after, .wcv-card::before { display: none; } .wcv-langs .wcv-bar i { transform: none !important; } }
.wcv-card.wcv-reveal { transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1), border-color .35s, box-shadow .45s; }

/* ============================================================
   LAYOUT v3 (2026-09-26) — "tetris": every row fills edge to edge
   header: identity + contact | 3×2 tiles
   rows:   profile | languages+AI · core | technical skills
           experience (full width) · internships 2-up · education 4-up
   ============================================================ */
.wcv { container-type: inline-size; container-name: page; }
.wcv > .wcv-section { margin-top: 30px; }
.wcv > .wcv-nav + .wcv-section { margin-top: 0; }

/* ---------- header ---------- */
.wcv-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "tiles"; }
.wcv-hero .wcv-hero-main { grid-area: main; }
.wcv-tiles { grid-area: tiles; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@container hero (min-width: 980px) {
    .wcv-hero { grid-template-columns: minmax(0, 1fr) minmax(380px, 470px); grid-template-areas: "main tiles"; align-items: center; }
}
@container hero (max-width: 519px) { .wcv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.wcv-tile {
    display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 92px; min-width: 0;
    padding: 14px 16px; border-radius: 18px; border: 1px solid var(--cv-line); background: var(--cv-card-2);
    font: inherit; color: var(--cv-ink); text-align: left; text-decoration: none; cursor: default;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .3s, background-color .3s, box-shadow .35s;
}
.wcv-tile strong { display: flex; align-items: center; gap: 6px; min-height: 1.7rem; font: 700 1.6rem/1 var(--font-heading); color: var(--primary-accent); }
.wcv-tile strong i { font-size: 1.3rem; }
.wcv-tile span { font-size: max(12.5px, .8rem); line-height: 1.3; color: var(--cv-soft); font-weight: 500; }
.wcv-tile.is-action { cursor: pointer; appearance: none; -webkit-appearance: none; }
.wcv-tile.is-action span { color: var(--cv-ink); }
.wcv-lang-tile strong { gap: 4px; }
.wcv-lang-tile b { font: 600 .9rem/1 var(--font-heading); letter-spacing: .06em; padding: 6px 8px; border-radius: 9px; color: var(--cv-soft); }
.wcv-lang-tile b.on { color: var(--cv-ink); background: rgba(var(--primary-accent-rgb), .16); box-shadow: inset 0 0 0 1px rgba(var(--primary-accent-rgb), .35); }
@media (hover: hover) and (pointer: fine) {
    .wcv-tile.is-action:hover, .wcv-stat:hover { transform: translateY(-3px); border-color: rgba(var(--primary-accent-rgb), .45); background: rgba(var(--primary-accent-rgb), .1); box-shadow: 0 16px 30px -22px rgba(0,0,0,.8); }
    .wcv-tile.is-action:hover strong i { transform: scale(1.12); }
}
.wcv-tile strong i { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.wcv-tile.is-action:active { transform: scale(.96); }
.wcv-tile:focus-visible { outline: 2px solid var(--primary-accent); outline-offset: 3px; }
.wcv-meta .wcv-chip { min-height: 38px; }

/* ---------- rows ---------- */
.wcv-row { display: grid; gap: var(--cv-gap); align-items: stretch; }
.wcv-row-profile { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.wcv-row-skills { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.wcv-stack { display: grid; gap: var(--cv-gap); grid-template-rows: auto 1fr; }
.wcv-profile p { font-size: 1.02rem; line-height: 1.75; }
.wcv-h2-amp { font-weight: 400; color: var(--cv-soft); }

/* experience cards use the full width: key result beside the bullets */
.wcv-job-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 18px 24px; align-items: start; margin-bottom: 16px; }
.wcv-job-body.no-key { grid-template-columns: minmax(0, 1fr); }
.wcv-job-body .wcv-key, .wcv-job-body .wcv-bullets { margin: 0; }

.wcv-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wcv-edu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.wcv-edu.is-cert { border-color: rgba(var(--primary-accent-rgb), .3); }
.wcv-refs { text-align: center; margin-top: 22px; }

/* ---------- responsive (by the page's own width) ---------- */
@container page (max-width: 1060px) {
    .wcv-edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@container page (max-width: 900px) {
    .wcv-row-profile { grid-template-columns: minmax(0, 1fr); }
    .wcv-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
    .wcv-job-body { grid-template-columns: minmax(0, 1fr); }
}
@container page (max-width: 720px) {
    .wcv-row-skills { grid-template-columns: minmax(0, 1fr); }
}
@container page (max-width: 560px) {
    .wcv-stack, .wcv-mini-grid, .wcv-edu-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .wcv-edu { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; }
    .wcv-edu .wcv-edu-icon { grid-row: span 3; margin: 0; }
    .wcv-edu .wcv-chips { padding-top: 6px; }
}
@media print {
    .wcv-row-profile { grid-template-columns: 2fr 1fr; }
    .wcv-row-skills { grid-template-columns: 1.35fr 1fr; }
    .wcv-edu-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .wcv-tiles { display: none; }
}

/* v3.1 — header tiles beside the name on wide screens (queried on the page, not the hero itself) */
@container page (min-width: 1000px) {
    .wcv-hero { grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); grid-template-areas: "main tiles"; align-items: center; gap: 22px 36px; }
}
@container page (max-width: 999px) {
    .wcv-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "tiles"; }
}
@container page (max-width: 520px) { .wcv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* even vertical rhythm between the top rows */
.wcv > .wcv-section { margin-top: var(--cv-gap); }
.wcv > #experience { margin-top: 40px; }
.wcv > #education { margin-top: 40px; }
.wcv-row-profile { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }

/* AI strip: title and text on one line where there is room */
.wcv-strip { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 28px; padding-block: 18px; }
.wcv-strip .wcv-h2 { margin: 0; white-space: nowrap; }
.wcv-strip p { margin: 0; }
@container page (max-width: 720px) { .wcv-strip { grid-template-columns: minmax(0, 1fr); } }

/* job body: key result + chips on the left, bullets on the right */
.wcv-job-body { grid-template-areas: "key bullets" "chips bullets"; grid-template-rows: auto 1fr; margin-bottom: 0; }
.wcv-job-body .wcv-key { grid-area: key; }
.wcv-job-body .wcv-bullets { grid-area: bullets; }
.wcv-job-body .wcv-chips { grid-area: chips; align-self: start; }
.wcv-job-body.no-key { grid-template-areas: "bullets" "chips"; grid-template-rows: auto auto; }
@container page (max-width: 900px) {
    .wcv-job-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "key" "bullets" "chips"; grid-template-rows: auto; }
}
.wcv-edu .wcv-edu-icon { width: 52px; height: 52px; border-radius: 15px; }
@container page (max-width: 900px) { .wcv-row-profile { grid-template-columns: minmax(0, 1fr); } }
@container page (max-width: 1099px) { .wcv-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "tiles"; } }
