/* Modern dark theme: near-black, charcoal panels, emerald main colour with gold signals, bold geometric headings. */
:root {
  --bg: #0F1210;
  --panel: #161B18;
  --panel-2: #1B211D;
  --text: #ffffff;
  --body: #c9cbcf;
  --muted: #8b8f96;
  --line: #222B25;
  --accent: #10B981;               /* emerald: main colour */
  --accent-strong: #10B981;        /* filled buttons (dark text on top) */     /* filled buttons: keeps white text readable */
  --accent-soft: rgba(16, 185, 129, .16);
  --head: "Montserrat", system-ui, sans-serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--body);
  font: 300 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 16px max(20px, 5vw);
  background: var(--topbar-bg, rgba(15, 18, 16, .88));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.brand { font: 700 1.05rem var(--head); color: var(--text); }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.top nav a { color: var(--muted); transition: color .15s; }
.top nav a:hover { color: var(--accent); }

/* triangle canvas sits behind everything */
#tri { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, footer { position: relative; z-index: 1; }

main { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 110px 0 90px; }
.eyebrow { display: inline-block; font: 500 .78rem var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
h1 { font: 700 clamp(2.4rem, 6vw, 4rem)/1.1 var(--head); color: var(--text); letter-spacing: -.01em; }
.headline { max-width: 60ch; margin: 18px auto 0; color: var(--muted); }
.hero .actions { justify-content: center; margin-top: 34px; }

/* ---------- sections ---------- */
.section { padding: 70px 0 20px; }
.section-head { text-align: center; margin-bottom: 52px; }
.label { font: 500 .8rem var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
h2 { font: 700 clamp(2rem, 4.4vw, 3rem)/1.15 var(--head); color: var(--text); margin-top: 10px; }

/* ---------- biography ---------- */
.bio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.portrait { position: relative; padding: 0 0 0 26px; }
.frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: linear-gradient(160deg, #0E2A20 0%, #07140F 70%);
  box-shadow: 0 0 0 14px rgba(16, 185, 129, .05);
  display: grid; place-items: center;
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.monogram { font: 700 clamp(4rem, 9vw, 7rem) var(--head); color: rgba(16, 185, 129, .55); letter-spacing: .04em; }
.dots {
  position: absolute; left: 0; top: -18px; width: 96px; height: 76px;
  background-image: radial-gradient(var(--accent) 1.4px, transparent 1.6px);
  background-size: 16px 16px; opacity: .75;
}
.ring { position: absolute; right: -14px; bottom: -14px; width: 34px; height: 34px; border: 2px solid var(--accent); border-radius: 50%; }

.kicker { font: 400 1.15rem var(--sans); color: var(--accent); }
.bio-text h3 { font: 600 1.05rem/1.25 var(--head); color: var(--text); margin: 8px 0 18px; }
.muted { color: var(--muted); font-size: .96rem; }

.details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 30px; }
.detail { background: var(--panel); padding: 16px 20px; border-left: 3px solid transparent; }
.detail.current { border-left-color: var(--accent); }
.detail b { display: block; font: 600 .95rem var(--head); color: var(--text); }
.detail span { font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.actions.center { justify-content: center; margin-top: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; background: var(--accent); color: #fff;
  font: 500 .9rem var(--sans); border: 1px solid var(--accent);
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: #34D399; border-color: #34D399; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: #3a3a3a; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* ---------- experience / panels ---------- */
.jobs { display: grid; gap: 22px; }
.job { background: var(--panel); padding: 30px 32px; border-left: 3px solid var(--card-edge, #333); }
.job.current { border-left-color: var(--accent); }
.job header h3 { font: 700 1.25rem/1.35 var(--head); color: var(--text); }
.role { font: 500 .98rem var(--sans); color: var(--text); margin-top: 4px; }
.meta { font-size: .82rem; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.role-group { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.job > .role, .job > .muted { margin-top: 18px; }

ul { list-style: none; margin-top: 14px; }
li { position: relative; padding-left: 20px; margin-bottom: 10px; font-size: .94rem; line-height: 1.7; }
li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
li strong { color: var(--text); font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.panel { background: var(--panel); padding: 26px 28px; border-top: 3px solid var(--accent-soft); transition: border-color .2s, transform .2s; }
.panel:hover { border-top-color: var(--accent); transform: translateY(-3px); }
.panel h3 { font: 600 1.05rem var(--head); color: var(--text); margin-bottom: 8px; }
.panel p { font-size: .9rem; color: var(--muted); }

.lab .actions { margin-top: 22px; }

/* ---------- footer ---------- */
footer { margin-top: 90px; padding: 28px 24px 48px; text-align: center; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

@media (max-width: 820px) {
  .bio { grid-template-columns: 1fr; gap: 44px; }
  .portrait { max-width: 380px; margin: 0 auto; }
  .details { grid-template-columns: 1fr; }
  .top { flex-direction: column; gap: 8px; padding: 12px 20px; }
  .job { padding: 24px 22px; }
  .hero { padding: 70px 0 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ---------- emerald + gold: gold is the second colour, used for status and highlights ---------- */
.btn { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn:hover { background: #34D399; border-color: #34D399; }
.btn.ghost { background: transparent; border-color: #323D36; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.job { border-left-color: var(--card-edge, #2A342E); }
.job.current { border-left-color: var(--accent); }
:root { --gold: #E6B75A; }
::selection { background: var(--gold); color: #0F1210; }
.btn, .btn:hover { color: #06140E; }               /* dark text: white on emerald is only 2.5:1 */
.btn.ghost, .btn.ghost:hover { color: var(--text); }
.btn.ghost:hover { color: var(--accent); }
.eyebrow { color: var(--gold-ink, var(--gold)); }
.eyebrow::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(230, 183, 90, .15); vertical-align: 1px;
}
.kicker { color: var(--gold-ink, var(--gold)); }
.headline { color: var(--gold-ink, var(--gold)); font-weight: 400; }
/* role on its own line, tools below: items never break inside and a line never starts with the "·" separator */
.headline .h-role { display: block; }
.headline .h-stack { display: block; margin-top: 4px; text-wrap: balance; }
.headline .h-stack span { white-space: nowrap; }
.headline .h-stack span:not(:last-child)::after { content: " ·"; }
.ring { border-color: var(--gold-ink, var(--gold)); }
.panel:hover { border-top-color: var(--gold-ink, var(--gold)); }

/* ---------- section cards: 70% transparent background, mesh shows through ---------- */
.job, .panel, .detail {
  background: rgba(22, 27, 24, .30);          /* #161B18 at 30% opacity = 70% transparent */
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);          /* keeps text readable over the triangle lines */
}

/* ---------- "About me" block: same 70% transparent panel as the cards ---------- */
.bio-text {
  background: rgba(22, 27, 24, .30);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  padding: 28px 22px 28px 24px;
  border-left: 3px solid var(--card-edge, #2A342E);
}
@media (max-width: 820px) { .bio-text { padding: 24px 22px; } }
.bio-text .detail { padding: 14px 14px 14px 16px; }
.bio-text .detail span { font-size: .84rem; }

/* ---------- About me: full-width block (no portrait column any more) ---------- */
.bio { grid-template-columns: 1fr; }
.bio-text { padding: 36px 40px; }
.bio-text .muted { max-width: 78ch; }
.bio-text .details { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .bio-text { padding: 26px 22px; }
  .bio-text .details { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .bio-text .details { grid-template-columns: 1fr; } }


/* ---------- hero name: same gold -> emerald gradient ---------- */
h1 {
  display: block; width: fit-content; margin-left: auto; margin-right: auto;   /* shrink the box to the text so the gradient spans the name only */
  font-family: "Monoton", var(--head);                 /* neon line-style display face; Monoton ships a single weight (400) */
  font-weight: 400; letter-spacing: .04em;
  color: var(--gold-ink, var(--gold));                                  /* fallback if background-clip is unsupported */
  background: var(--logo-grad, linear-gradient(90deg, var(--gold), var(--accent)));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  /* drop-shadow (not text-shadow): text-shadow would show through the transparent gradient text */
  /* black shadow first, emerald glow after it: the glow is applied to the shadow too, so the dark shape reads against it */
  filter: drop-shadow(6px 7px 3px #000)
          drop-shadow(0 10px 8px rgba(0, 0, 0, 1))
          drop-shadow(0 0 22px rgba(16, 185, 129, .55));
}

/* ---------- hero stacking: status line and name are always on separate lines ---------- */
.hero { display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { display: flex; align-items: center; width: fit-content; margin: 0 auto 20px; }
.hero h1 { margin-top: 0; }

/* ---------- small section labels (BIOGRAPHY, CAREER, ...) in gold ---------- */
.label { color: var(--gold-ink, var(--gold)); }

/* ---------- descriptive paragraphs (.muted): much lighter grey than the original (#8B8F96) ---------- */
.muted, .bio-text .muted { color: #D9DCE1; }

/* ---------- logo in the top bar ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 34px; height: 34px; display: block; transition: transform .2s; }
.brand:hover .brand-logo { transform: scale(1.06); }

/* ---------- phones: compact one-line top bar (was two rows of links, ~125px) ---------- */
@media (max-width: 820px) {
  .top { flex-direction: row; align-items: center; gap: 14px; padding: 10px 16px; }
  .brand span { display: none; }                         /* the name is already the hero heading right below */
  .top nav {
    flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; gap: 22px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
            mask-image: linear-gradient(90deg, #000 88%, transparent);   /* hints that the row scrolls */
  }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { white-space: nowrap; padding: 8px 2px; }  /* comfortable touch target */
}

/* ---------- earlier roles: collapsible <details> blocks (no JavaScript) ---------- */
.earlier { margin: 8px 0 -6px; font: 500 .8rem var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink, var(--gold)); }
.earlier span { color: var(--muted); text-transform: none; letter-spacing: 0; font: 300 .82rem var(--sans); }

.job.fold { padding: 0; }
.job.fold summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 20px 56px 20px 24px;
}
.job.fold summary::-webkit-details-marker { display: none; }
.job.fold summary h3 { font: 700 1.1rem/1.35 var(--head); color: var(--text); }
.job.fold summary .role { display: block; margin-top: 2px; font: 500 .95rem var(--sans); color: var(--text); }
.job.fold summary .meta { display: block; margin-top: 2px; }
.job.fold summary::after {                                  /* chevron */
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.job.fold[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.job.fold summary:hover h3 { color: var(--gold-ink, var(--gold)); }
.job.fold summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.job.fold[open] { border-left-color: var(--accent); }
.job.fold > ul { margin: 0; padding: 0 24px 22px 44px; }
@media (max-width: 820px) {
  .job.fold summary { padding: 16px 48px 16px 18px; }
  .job.fold > ul { padding: 0 18px 18px 38px; }
}

/* ---------- UBS and Credit Suisse use the same foldable block, open by default ---------- */
.job.fold .fold-body { padding: 0 24px 22px; }
.job.fold .fold-body .role-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.job.fold.current { border-left-color: var(--accent); }
@media (max-width: 820px) { .job.fold .fold-body { padding: 0 18px 18px; } }


/* ---------- top bar: one centred row, logo (no name) in the middle of the menu ---------- */
.top { justify-content: center; }
.top nav { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 6px 30px; }
.top nav a.brand { display: inline-flex; margin: 0 6px; }
@media (max-width: 820px) {
  .top { justify-content: flex-start; }
  .top nav { justify-content: flex-start; gap: 22px; }
  .top nav a.brand {                       /* logo first and pinned while the links scroll */
    order: -1; position: sticky; left: 0; z-index: 1; margin: 0;
    padding-right: 10px; background: var(--topbar-bg, rgba(15, 18, 16, .92));
  }
}

/* ---------- phones: show every menu link (wrap into centred rows instead of a scrolling strip) ---------- */
@media (max-width: 820px) {
  .top { justify-content: center; padding: 8px 12px; position: static; }  /* scrolls away, no tall sticky bar */
  .top nav {
    flex: 0 1 auto; flex-wrap: wrap; justify-content: center;
    gap: 0 18px; overflow: visible;
    -webkit-mask-image: none; mask-image: none;
  }
  .top nav a.brand {
    order: 0; position: static; flex: 0 0 100%; justify-content: center;
    margin: 0; padding: 4px 0; background: none;
  }
}

/* ---------- triangle logo is a bit larger in the bar ---------- */
.brand-logo { width: 42px; height: 42px; }

/* ---------- two-triangle logo is tall: fix the height, let the width follow ---------- */
.brand-logo { width: auto; height: 44px; }


/* ---------- side-by-side triangle logo is wide: fix the height, let the width follow ---------- */
.brand-logo { width: auto; height: 30px; }

/* ---------- name under MATE, flanked by thin gold rules ---------- */
.hero .person {
  margin: 14px 0 0; text-align: center;
  font: 500 .95rem var(--head); letter-spacing: .34em; text-transform: uppercase;
  color: var(--text); opacity: .92;
}
.hero .person::before, .hero .person::after {
  content: ""; display: inline-block; width: 38px; height: 1px; background: var(--gold);
  vertical-align: middle; margin: 0 14px;
}
@media (max-width: 480px) {
  .hero .person { font-size: .8rem; letter-spacing: .24em; }
  .hero .person::before, .hero .person::after { width: 20px; margin: 0 10px; }
}

/* ---------- logo is now the letter M in Monoton, same gold -> emerald gradient as the hero name ---------- */
.brand-logo.brand-m {
  height: auto; width: auto; line-height: 1; padding: 2px 0;
  font: 400 2rem/1 "Monoton", var(--head); letter-spacing: 0;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ---------- top menu: gold underline on hover / keyboard focus ---------- */
.top nav a:not(.brand) {
  position: relative; padding: 8px 0;
}
.top nav a:not(.brand)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.top nav a:not(.brand):hover,
.top nav a:not(.brand):focus-visible { color: var(--text); }
.top nav a:not(.brand):hover::after,
.top nav a:not(.brand):focus-visible::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .top nav a:not(.brand)::after { transition: none; }
}
/* ---------- top menu: green dot before each link ---------- */
.top nav a:not(.brand)::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px;
  border-radius: 50%; background: var(--accent); vertical-align: middle;
  position: relative; top: -1px;
}

/* ---------- section headings: green dot before each title ---------- */
.section-head h2::before {
  content: ""; display: inline-block; width: .3em; height: .3em; margin-right: .4em;
  border-radius: 50%; background: var(--accent); vertical-align: middle;
  position: relative; top: -.06em;
}

/* ---------- phones: hamburger menu, slim sticky bar (logo + button), links drop down ---------- */
.menu-toggle { display: none; }
@media (max-width: 820px) {
  html { scroll-padding-top: 64px; }
  .top { position: sticky; display: block; min-height: 56px; padding: 0; }
  .top nav { display: block; padding: 56px 16px 0; overflow: visible; }
  .top.open nav { padding-bottom: 10px; }
  .top nav a.brand {
    position: absolute; top: 0; left: 16px; height: 56px; padding: 0; margin: 0;
    display: flex; align-items: center; background: none;
  }
  .menu-toggle {
    display: block; position: absolute; top: 0; right: 6px; width: 52px; height: 56px;
    background: none; border: 0; cursor: pointer; color: var(--text);
  }
  .menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .2s, opacity .2s;
  }
  .menu-toggle span { position: relative; margin: 0 auto; }
  .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
  .menu-toggle span::before { top: -7px; }
  .menu-toggle span::after { top: 7px; }
  .top.open .menu-toggle span { background: transparent; }
  .top.open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .top.open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
  .top nav a:not(.brand) { display: none; }
  .top.open nav a:not(.brand) {
    display: block; padding: 14px 4px; font-size: 1.05rem;
    border-top: 1px solid var(--hairline, rgba(255, 255, 255, .07));
  }
  .top nav a:not(.brand)::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { transition: none; }
}

/* ---------- collapsed role (even the current one) shows the grey side bar; green only while open ---------- */
.job.fold.current:not([open]) { border-left-color: var(--card-edge, #2A342E); }

/* ---------- soft background gradient under the triangle mesh ---------- */
body {
  background:
    var(--page-bg, linear-gradient(180deg, #0F1210 0%, #121A15 100%));
  background-color: var(--bg);
  background-attachment: fixed;
}

/* ---------- section headings: gold underline on hover, like the top menu ---------- */
.section-head h2 { position: relative; display: inline-block; padding-bottom: 8px; }
.section-head h2::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.section-head h2:hover::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .section-head h2::after { transition: none; }
}

/* ---------- About me and skill cards: green side bar like the K3s Lab card (replaces the top border) ---------- */
.bio-text, .panel { border-left: 3px solid var(--accent); }
.panel { border-top: 0; }
.panel:hover { border-top-color: transparent; border-left-color: var(--gold-ink, var(--gold)); border-bottom-color: var(--gold-ink, var(--gold)); }

/* ---------- cards with a green side bar also get a thin bottom line (0.75px = a quarter of the 3px bar) ---------- */
.bio-text, .panel, .job.current, .job.fold[open] { border-bottom: .75px solid var(--accent); }
.job.fold.current:not([open]) { border-bottom: 0; }   /* collapsed: grey side bar, no green line */

/* ---------- side bar 4px, bottom line 1px (a quarter of it) ---------- */
.bio-text, .panel, .job { border-left-width: 4px; }
.bio-text, .panel, .job.current, .job.fold[open] { border-bottom-width: 1px; }
/* ---------- MATE in the top menu instead of the letter M (flat, no perspective) ---------- */
.brand-mate {
  display: inline-block;
  font: 400 1.9rem/1 "Monoton", var(--head); letter-spacing: .04em;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: var(--logo-shadow, drop-shadow(2px 3px 1px #000));
  transition: transform .2s;
  padding: 0 4px;
}
.brand:hover .brand-mate { transform: scale(1.05); }
/* on phones an older rule hides every span inside .brand, so this one is more specific */
@media (max-width: 820px) { .brand .brand-mate { display: inline-block; font-size: 1.5rem; } }

/* ---------- hero: same panel as the other sections (70% transparent, green side bar, thin bottom line) ---------- */
.hero {
  margin-top: 0;                                   /* flush with the top menu */
  padding: 64px 32px 56px;
  background: rgba(22, 27, 24, .30);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  border-left: 4px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}
@media (max-width: 820px) { .hero { margin-top: 0; padding: 40px 14px 36px; } .hero .eyebrow { letter-spacing: .1em; font-size: .72rem; } }

/* ---------- section titles (About, Skills, ...) 10% smaller: clamp(2rem, 4.4vw, 3rem) x 0.9 ---------- */
h2 { font-size: clamp(1.8rem, 3.96vw, 2.7rem); }

/* ---------- readability pass ---------- */
/* 1. descriptions in the skill cards and other grey text: lighter */
.panel p { color: #C9CBCF; }
.meta { color: var(--meta, #B5B8BE); font-size: .88rem; }
.muted { color: #D9DCE1; }
/* 2. cards hide the 3D mesh better: 30% -> 60% opaque (still blurred, the relief stays visible) */
.job, .panel, .detail, .bio-text, .hero { background: rgba(22, 27, 24, .60); }
/* 3. section labels (BIOGRAPHY, TOOLBOX, ...) and dates: a little larger */
.label { font-size: .88rem; letter-spacing: .12em; }
/* 4. the menu logo: back to the Monoton face, now the initials MT, larger */
.brand-mate {
  font: 400 2.7rem/1 "Monoton", var(--head); letter-spacing: .02em;
  filter: var(--logo-shadow, drop-shadow(2px 3px 1px #000));
}
@media (max-width: 820px) { .brand .brand-mate { font-size: 2.2rem; } }

/* ---------- no blur behind the cards ---------- */
.job, .panel, .detail, .bio-text, .hero {
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}

/* ---------- the visible name in the hero is the page <h1>: neutralise the old gradient heading style ---------- */
.hero h1.person {
  display: block; width: auto; margin: 14px 0 0;
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: currentColor; filter: none;
  font: 500 .95rem var(--head); letter-spacing: .34em; text-transform: uppercase;
  color: var(--text); opacity: .92;
}
@media (max-width: 480px) { .hero h1.person { font-size: .8rem; letter-spacing: .24em; } }
