/* Marijn Herrebout - CV site.
   Concept: a render-pipeline / isometric wireframe look. Ink-navy and warm amber on paper,
   isometric lattice backgrounds, numbered "passes" for each section. */

:root {
  --ink: #0f1420;
  --ink-2: #182033;
  --ink-3: #232d45;
  --deep: #0a0e17;
  --paper: #f4f1ea;
  --paper-2: #e9e4d8;
  --line: #d8d2c3;
  --text: #1c2230;
  --muted: #4a5163;
  --muted-d: #b9c1d3;
  --amber: #ffb454;
  --copper: #a8480a;
  --teal: #0b6b7a;
  --teal-d: #0b4f5b;
  --violet: #5b4bc4;
  --cyan: #6fd8ea;
  --radius: 16px;
  --sans: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shadow: 0 18px 40px -22px rgba(15, 20, 32, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-wrap: break-word;
}
main { display: block; overflow-x: clip; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
a { color: var(--copper); text-underline-offset: 3px; }
a:hover { color: #7d3406; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible, .hero :focus-visible, .pagehead :focus-visible, .cta-band :focus-visible,
.site-footer :focus-visible, .marquee :focus-visible, .link-card:focus-visible, .more-code-card :focus-visible { outline-color: var(--amber); }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.block { padding-block: 72px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }

.eyebrow { font-family: var(--mono); font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper); margin: 0 0 0.9em; font-weight: 600; }
.eyebrow-dark { color: var(--amber); }
.eyebrow .sep { opacity: 0.6; margin-inline: 0.35em; }
.section-title { font-family: var(--display); font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 0.4em; }
.section-lead { max-width: 56ch; color: var(--muted); font-size: 1.125rem; }
.section-intro { margin-bottom: 40px; }
.mini-label { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 1.4em 0 0; }
.more { display: flex; flex-wrap: wrap; gap: 4px 32px; margin-top: 28px; font-weight: 700; }
.more a { display: inline-flex; align-items: center; min-height: 44px; }
.text-link { display: inline-flex; align-items: center; min-height: 36px; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.6em; min-height: 48px; padding: 6px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform 0.15s ease, background 0.15s ease; overflow-wrap: anywhere; }
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #ffc577; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; min-width: 0; }
.brand:hover { color: var(--amber); }
.brand-mark { flex: none; }
.brand-name { overflow-wrap: anywhere; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.menu-btn:hover { border-color: var(--amber); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; content: ""; position: relative; }
.menu-icon::before { position: absolute; top: -6px; left: 0; }
.menu-icon::after { position: absolute; top: 6px; left: 0; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.site-nav { flex-basis: 100%; }
.nav-list { display: flex; flex-wrap: wrap; gap: 2px 4px; list-style: none; margin: 0; padding: 0 0 8px; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: #d9deeb; text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.nav-list a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav-list a[aria-current="page"] { background: var(--amber); color: var(--ink); font-weight: 700; }
.nav-cta a { border: 1px solid var(--amber); color: var(--amber); font-weight: 700; }
.nav-cta a:hover { background: var(--amber); color: var(--ink); }
.nav-cta a[aria-current="page"] { background: var(--amber); color: var(--ink); }

.js .site-nav { flex-basis: auto; display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, 0.12); padding: 8px 24px 20px; box-shadow: 0 24px 30px -20px rgba(0, 0, 0, 0.6); }
.js .site-nav.open { display: block; }
.js .menu-btn { display: inline-flex; }
.js .nav-list { flex-direction: column; padding: 0; }
.js .nav-list a { width: 100%; min-height: 48px; border-radius: 12px; font-size: 1.0625rem; }

@media (min-width: 1000px) {
  .site-nav, .js .site-nav { flex-basis: auto; display: block; position: static; background: none; border: 0; padding: 0; box-shadow: none; }
  .js .menu-btn { display: none; }
  .nav-list, .js .nav-list { flex-direction: row; flex-wrap: nowrap; padding: 0; }
  .js .nav-list a { width: auto; min-height: 44px; border-radius: 999px; font-size: 0.9375rem; }
  .bar { flex-wrap: nowrap; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink) url(/img/iso-grid-dark.svg); color: #fff; padding: 64px 0 190px; clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
.hero::before { content: ""; position: absolute; left: 0; top: 0; width: 70%; height: 100%; background: radial-gradient(ellipse at 20% 40%, rgba(255, 180, 84, 0.14), transparent 60%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 32px; align-items: center; }
.hero-title { font-size: clamp(3.1rem, 9.5vw, 7.2rem); line-height: 0.92; letter-spacing: -0.045em; margin: 0 0 0.35em; font-weight: 800; }
.hero-first, .hero-last { display: block; }
.hero-last { color: var(--amber); }
.hero-lead { max-width: 54ch; font-size: 1.1875rem; color: var(--muted-d); margin-bottom: 1.6em; }
.hero-lead p { margin-bottom: 0.8em; }
.hero-art { justify-self: center; width: 100%; max-width: 520px; }
.hero-art img { display: block; width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45)); animation: float 9s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Page header (inner pages) ---------- */
.pagehead { background: var(--ink) url(/img/iso-grid-dark.svg); color: #fff; padding: 56px 0 96px; clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%); overflow: hidden; }
.pagehead-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.pagehead h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); letter-spacing: -0.035em; font-weight: 800; margin: 0 0 0.3em; }
.pagehead .lead { max-width: 58ch; font-size: 1.1875rem; color: var(--muted-d); margin: 0; }
.pagehead-num { margin: 0; font-family: var(--mono); font-weight: 700; font-size: clamp(5rem, 15vw, 11rem); line-height: 0.8; color: rgba(255, 180, 84, 0.18); user-select: none; }
.pagehead-num::before { content: attr(data-num); }

/* ---------- Home: now card ---------- */
.now { position: relative; z-index: 3; margin-top: -120px; }
.now-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); background: #fff; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.now-main { padding: 36px 40px; }
.now-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.now-list li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.now-list li:first-child { border-top: 0; padding-top: 0; }
.now-period { font-family: var(--mono); font-size: 0.875rem; color: var(--copper); font-weight: 700; }
.now-title { font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 0.15em; }
.now-org { font-weight: 600; margin: 0 0 0.3em; color: var(--ink-3); }
.now-desc { color: var(--muted); font-size: 0.9875rem; margin: 0; }
.stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink) url(/img/iso-grid-dark.svg); color: #fff; }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: center; padding: 24px 28px; border: 1px solid rgba(255, 255, 255, 0.08); }
.stats dd { margin: 0; font-family: var(--mono); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--amber); line-height: 1; }
.stats dt { color: var(--muted-d); font-size: 0.9375rem; margin-top: 6px; }

/* ---------- Home: passes (section tiles) ---------- */
.passes-block { padding-bottom: 110px; }
.passes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pass { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 230px; padding: 28px; background: #fff url(/img/iso-grid-light.svg) right bottom / 208px 120px no-repeat; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.pass:hover { border-color: var(--copper); box-shadow: var(--shadow); color: var(--text); }
.pass-num { font-family: var(--mono); font-size: 3.25rem; line-height: 1; font-weight: 700; color: var(--copper); }
.pass-title { font-family: var(--display); font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; margin-top: auto; }
.pass-text { color: var(--muted); font-size: 0.975rem; line-height: 1.5; }
@media (min-width: 900px) {
  .passes li:nth-child(3n+2) { transform: translateY(36px); }
  .pass:hover { transform: translateY(-4px); }
}

/* ---------- Home: featured projects (overlapping cards) ---------- */
.feat-block { background: var(--paper-2) url(/img/iso-grid-light.svg); padding: 84px 0 76px; clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%); margin-top: -30px; }
.feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.feat-card { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; }
.feat-card img, .feat-blank { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: var(--radius); background: var(--ink-2); }
.feat-body { position: relative; display: flex; flex-direction: column; flex: 1; margin: -38px 16px 0; padding: 20px 22px 22px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); border-top: 4px solid var(--amber); transition: transform 0.2s ease; }
.feat-card:hover .feat-body { transform: translateY(-4px); }
.feat-meta { font-family: var(--mono); font-size: 0.8125rem; color: var(--copper); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 6px; }
.feat-body h2 { font-size: 1.5rem; margin: 0 0 0.3em; }
.feat-text { color: var(--muted); font-size: 0.975rem; line-height: 1.5; }

/* ---------- Links (GitHub, LinkedIn, company) ---------- */
.links-block { padding-block: 80px 72px; }
.link-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.link-card { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 210px; padding: 26px 26px 22px; border-radius: 20px; background: var(--ink) url(/img/iso-grid-dark.svg); color: #fff; text-decoration: none; border: 2px solid var(--ink); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.link-cards li:nth-child(2) .link-card { background-color: var(--teal-d); border-color: var(--teal-d); }
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--amber); color: #fff; }
.link-kind { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--amber); }
.link-name { font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.link-text { color: var(--muted-d); font-size: 0.975rem; line-height: 1.5; }
.link-host { margin-top: auto; padding-top: 10px; font-family: var(--mono); font-size: 0.875rem; font-weight: 600; color: var(--amber); overflow-wrap: anywhere; }

/* ---------- Home: skills marquee ---------- */
.marquee { background: var(--ink); overflow: hidden; padding: 26px 0; }
.marquee-track { display: flex; width: max-content; animation: scroll 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0 6px; flex: none; }
.marquee li { font-family: var(--mono); font-size: 0.9375rem; white-space: nowrap; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; color: #fff; }
.marquee li:nth-child(3n+1) { border-color: var(--amber); color: var(--amber); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--ink) url(/img/iso-grid-dark.svg); color: #fff; padding: 120px 0 72px; clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%); margin-top: -36px; }
.cta-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.cta-copy h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.03em; font-weight: 800; }
.cta-copy p:last-child { color: var(--muted-d); max-width: 50ch; margin: 0; }
.cta-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; justify-items: start; }
.cta-links .btn { font-size: 1.0625rem; }
.cta-phone { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-family: var(--mono); font-size: 1.25rem; font-weight: 600; text-decoration-color: var(--amber); }
.cta-phone:hover { color: var(--amber); }

/* ---------- Profile ---------- */
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 24px; }
.statement { font-family: var(--display); font-size: clamp(1.4rem, 2.7vw, 2.05rem); line-height: 1.35; letter-spacing: -0.015em; border-left: 5px solid var(--amber); padding-left: 28px; margin-bottom: 40px; }
.statement p:last-child { margin-bottom: 0; }
.interest-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; background-image: url(/img/iso-grid-light.svg); background-position: right bottom; background-repeat: no-repeat; }
.interest-text { font-size: 1.1875rem; }
.interest-text p:last-child { margin: 0; }
.profile-image { display: block; width: 100%; height: auto; border-radius: var(--radius); margin-top: 32px; }
.profile-side { display: grid; gap: 24px; }
.id-card { background: var(--ink) url(/img/iso-grid-dark.svg); color: #fff; border-radius: 20px; padding: 32px; }
.id-label { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin: 0 0 2px; }
.id-value { font-family: var(--display); font-size: 1.35rem; font-weight: 700; margin: 0 0 1em; letter-spacing: -0.01em; }
.id-links { list-style: none; margin: 0.5em 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.id-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; }
.id-links a:hover { border-color: var(--amber); color: var(--amber); }
.lang-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 20px; }
.langs { list-style: none; margin: 0; padding: 0; }
.langs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 12px 0; border-bottom: 1px dotted #b9b19c; }
.langs li:last-child { border-bottom: 0; }
.lang-name { font-weight: 700; }
.lang-level { font-family: var(--mono); font-size: 0.875rem; color: var(--teal); }

/* ---------- Next steps (inner page links) ---------- */
.next-steps { padding-block: 16px 72px; }
.next-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.next-list a { display: flex; flex-direction: column; gap: 4px; padding: 24px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--text); min-height: 44px; transition: border-color 0.2s ease, transform 0.2s ease; }
.next-list a:hover { border-color: var(--copper); transform: translateY(-2px); color: var(--text); }
.next-label { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper); font-weight: 600; }
.next-title { font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Chips and ticks ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.chips li { font-family: var(--mono); font-size: 0.875rem; padding: 4px 12px; background: var(--paper-2); color: var(--ink); border-radius: 6px; border: 1px solid var(--line); overflow-wrap: anywhere; }
.ticks { list-style: none; margin: 1em 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; background: var(--copper); transform: rotate(45deg); }

/* ---------- Experience ---------- */
.roles { padding-top: 24px; }
.role { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.role:first-child { border-top: 0; }
.role-side { position: sticky; top: 92px; align-self: start; }
.role-period { font-family: var(--mono); color: var(--copper); font-weight: 700; margin: 0 0 4px; }
.role-loc { color: var(--muted); margin: 0; font-size: 0.975rem; }
.role-main h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.2em; }
.role-org { font-weight: 700; color: var(--teal); font-size: 1.125rem; margin-bottom: 0.8em; }
.role-desc { font-size: 1.125rem; max-width: 62ch; }
.role-link { margin: 1.4em 0 0; }
.role-media { margin: 0 0 24px; }
.role-media img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); background: var(--ink); }

/* ---------- Timeline ---------- */
.tl-block { padding-top: 16px; }
.tl-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.tl-filters, .tl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; }
.chip-btn:hover { border-color: var(--ink); }
.tl-filters .chip-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--kind, var(--copper)); }
.dot-career { background: var(--amber); }
.dot-education { background: var(--cyan); }
.dot-project { background: #a99bff; }
.tl-count { font-family: var(--mono); font-size: 0.875rem; color: var(--muted); margin: 0 0 24px; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 111px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(to bottom, var(--ink) 0 8px, transparent 8px 14px); opacity: 0.35; }
.tl-item { --kind: var(--copper); position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 32px; padding-bottom: 16px; }
.tl-item[data-kind="education"] { --kind: var(--teal); }
.tl-item[data-kind="project"] { --kind: var(--violet); }
.tl-item::before { content: ""; position: absolute; left: 103px; top: 24px; width: 18px; height: 18px; background: var(--kind); border: 4px solid var(--paper); border-radius: 50%; box-sizing: content-box; margin: -4px 0 0 -4px; }
.tl-year { font-family: var(--mono); font-weight: 700; font-size: 1.375rem; text-align: right; padding-top: 14px; margin: 0; color: var(--ink); }
.tl-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--kind); border-radius: 12px; transition: box-shadow 0.2s ease; }
.tl-card[open], .tl-card:hover { box-shadow: var(--shadow); }
.tl-card summary { position: relative; display: grid; gap: 2px; padding: 16px 60px 16px 22px; min-height: 48px; cursor: pointer; list-style: none; }
.tl-card summary::-webkit-details-marker { display: none; }
.tl-card summary::after { content: "+"; position: absolute; right: 16px; top: 14px; width: 32px; height: 32px; line-height: 30px; text-align: center; border-radius: 50%; border: 1px solid var(--line); font-family: var(--mono); font-size: 1.25rem; color: var(--ink); }
.tl-card[open] summary::after { content: "\2212"; background: var(--ink); color: #fff; border-color: var(--ink); }
.tl-kind { font-family: var(--mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--kind); font-weight: 700; }
.tl-title { font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: anywhere; }
.tl-meta { color: var(--muted); font-size: 0.9375rem; }
.tl-body { padding: 0 22px 20px; }
.tl-body p { max-width: 64ch; }
.tl-more { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 1em 0 0; font-weight: 700; }
.tl-more a { display: inline-flex; align-items: center; min-height: 36px; }

/* ---------- Projects ---------- */
.projects { padding-block: 24px 40px; }
.project { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 56px 0; scroll-margin-top: 90px; }
.project.flip .project-media { order: 2; }
.project--plain { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
.project-media { position: relative; }
.project-media::before { content: ""; position: absolute; top: 18px; left: 18px; right: -18px; bottom: -18px; border: 2px solid var(--copper); border-radius: 20px; }
.project.flip .project-media::before { left: -18px; right: 18px; }
.project-media img { position: relative; display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); background: var(--ink); }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-family: var(--mono); font-size: 0.875rem; margin-bottom: 0.8em; }
.project-type { color: #fff; background: var(--ink); padding: 2px 12px; border-radius: 999px; font-weight: 600; }
.project-period { color: var(--copper); font-weight: 700; padding: 2px 0; }
.project-body h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.project-desc { font-size: 1.125rem; }
.project-link { margin: 1.6em 0 0; }
.more-code { padding-block: 24px 64px; }
.more-code-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 36px 40px; border-radius: 22px; background: var(--ink) url(/img/iso-grid-dark.svg); color: #fff; }
.more-code-card .eyebrow { color: var(--amber); }
.more-code-card .section-title { margin-bottom: 0.2em; }
.more-code-text { margin: 0; color: var(--muted-d); max-width: 48ch; }

/* ---------- Education ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.edu { position: relative; overflow: hidden; background: var(--ink) url(/img/iso-grid-dark.svg); color: #fff; border-radius: 22px; padding: 40px; scroll-margin-top: 90px; }
.edu:nth-child(even) { background-color: var(--teal-d); }
.edu-year { font-family: var(--mono); font-size: 1rem; font-weight: 700; color: var(--amber); letter-spacing: 0.04em; margin-bottom: 1.4em; }
.edu h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.edu-inst { font-weight: 600; font-size: 1.125rem; color: var(--cyan); }
.edu-details { color: var(--muted-d); margin: 0; }
.certs-block { background: var(--paper-2); padding: 72px 0 80px; clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%); }
.certs { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.cert { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cert-seal { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); position: relative; }
.cert-seal::after { content: ""; position: absolute; left: 14px; top: 8px; width: 9px; height: 18px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(40deg); }
.cert-badge { flex: none; width: 72px; height: 72px; border-radius: 16px; background: var(--ink); object-fit: cover; }
.cert h2 { font-size: 1.2rem; margin-bottom: 0.2em; }
.cert-issuer { font-weight: 600; margin: 0; color: var(--ink-3); }
.cert-date { font-family: var(--mono); font-size: 0.875rem; color: var(--copper); font-weight: 600; margin: 2px 0 0; }
.cert-details { color: var(--muted); font-size: 0.9875rem; margin: 6px 0 0; }

/* ---------- Skills (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; padding-top: 16px; }
.skill-card { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.skill-card:nth-child(1) { grid-column: span 4; }
.skill-card:nth-child(4) { grid-column: span 4; }
.skill-card:nth-child(5), .skill-card:nth-child(6) { grid-column: span 3; }
.skill-card--dark { background: var(--ink) url(/img/iso-grid-dark.svg); color: #fff; border-color: var(--ink); }
.skill-card--dark .chips li { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.2); font-size: 1rem; padding: 6px 14px; }
.skill-index { font-family: var(--mono); font-weight: 700; color: var(--copper); margin: 0 0 4px; }
.skill-card--dark .skill-index { color: var(--amber); }
.skill-card h2 { font-size: 1.6rem; }

/* ---------- Contact ---------- */
.contact-block { padding-bottom: 24px; }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 170px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--text); transition: transform 0.2s ease, box-shadow 0.2s ease; }
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.contact-card--main { background: var(--amber); border-color: var(--amber); color: var(--ink); }
a.contact-card--main:hover { color: var(--ink); }
.contact-label { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--copper); }
.contact-card--main .contact-label { color: var(--ink); }
.contact-value { font-family: var(--display); font-size: clamp(1.2rem, 2.8vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; margin-top: auto; }
.contact-hint { color: var(--muted); font-size: 0.9375rem; }
.contact-card--main .contact-hint { color: #3a2a10; }
.unavailable { max-width: 640px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--amber); border-radius: 12px; padding: 32px; }
.unavailable-text { font-family: var(--display); font-size: 1.5rem; line-height: 1.3; }

.notfound { min-height: 50vh; }
.notfound h1 { font-size: clamp(2.2rem, 6vw, 4rem); }

.privacy { max-width: 820px; }
.privacy h1 { font-size: clamp(2rem, 5vw, 3rem); }
.privacy h2 { font-size: 1.4rem; margin-top: 1.8em; }
.privacy ul { padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--muted-d); padding: 56px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.footer-name { color: #fff; font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; }
.footer-sub { margin: 0; }
.footer-links, .social-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 8px; }
.footer-links a, .social-links a, .copy a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: #e4e8f2; text-decoration: none; }
.footer-links a:hover, .social-links a:hover, .copy a:hover { color: var(--amber); text-decoration: underline; }
.footer-meta { text-align: right; }
.footer-meta .social-links ul { justify-content: flex-end; }
.copy { margin: 0; font-size: 0.9375rem; }
.copy a { padding: 0 4px; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 999px) {
  .hero { padding-bottom: 170px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 360px; order: -1; justify-self: start; margin-bottom: -8px; }
  .now-card, .profile-grid, .cta-in { grid-template-columns: minmax(0, 1fr); }
  .profile-grid { gap: 40px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-meta { text-align: left; }
  .footer-meta .social-links ul { justify-content: flex-start; }
  .project, .edu-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .project.flip .project-media { order: 0; }
  .project.flip .project-media::before { left: 18px; right: -18px; }
  .passes, .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .wrap { padding-inline: 20px; }
  .block { padding-block: 56px; }
  .hero { padding: 32px 0 150px; }
  .hero-art { max-width: 240px; }
  .now { margin-top: -100px; }
  .now-main { padding: 26px 22px; }
  .now-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .passes, .feat, .next-list { grid-template-columns: minmax(0, 1fr); }
  .pass { min-height: 190px; }
  .pagehead { padding: 40px 0 84px; }
  .pagehead-in { grid-template-columns: minmax(0, 1fr); }
  .pagehead-num { display: none; }
  .role { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 32px 0; }
  .role-side { position: static; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .skill-card, .skill-card:nth-child(n) { grid-column: auto; }
  .edu { padding: 28px; }
  .tl::before { left: 8px; }
  .tl-item { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 34px; }
  .tl-item::before { left: 0; top: 14px; }
  .tl-year { text-align: left; padding: 6px 0 6px; font-size: 1.125rem; }
  .tl-card summary { padding-right: 56px; }
  .project-media::before, .project.flip .project-media::before { top: 12px; left: 12px; right: -12px; bottom: -12px; }
  .cta-band { padding-top: 100px; }
  .links-block { padding-block: 64px 56px; }
  .link-cards { grid-template-columns: minmax(0, 1fr); }
  .link-card { min-height: 0; }
  .more-code-card { padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img { animation: none; }
  .marquee { overflow: visible; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; padding: 0 20px; }
  .marquee ul { flex-wrap: wrap; justify-content: center; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .btn, .pass, .feat-body, .next-list a, .contact-card, .link-card { transition: none; }
}
