/* ==========================================================================
   Luis Rojas — Portfolio
   Palette: navy #101827 · off-white #F8F9F7 · lime #B6F36A · gray
   ========================================================================== */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --navy: #101827;
  --offwhite: #F8F9F7;
  --lime: #B6F36A;

  --bg: #F8F9F7;
  --bg-alt: #EFF1EB;
  --surface: #FFFFFF;
  --text: #101827;
  --muted: #535D72;
  --border: #DCE0D6;
  --border-strong: #B9BFB1;
  --accent-ink: #2F6406;          /* lime is too light for text on off-white */
  --accent-soft: #E6F8CC;
  --shadow: 0 1px 2px rgba(16, 24, 39, .04), 0 12px 32px -16px rgba(16, 24, 39, .18);
  --shadow-lift: 0 2px 4px rgba(16, 24, 39, .05), 0 28px 56px -24px rgba(16, 24, 39, .32);
  --glow: 0 0 0 1px #9BDB4B, 0 22px 60px -24px rgba(122, 190, 40, .75);
  --header-bg: rgba(248, 249, 247, .82);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 11vw, 148px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}

[data-theme="dark"], .invert {
  --bg: #101827;
  --bg-alt: #0C1320;
  --surface: #172136;
  --text: #F8F9F7;
  --muted: #A9B2C5;
  --border: #283349;
  --border-strong: #3C4962;
  --accent-ink: #B6F36A;
  --accent-soft: rgba(182, 243, 106, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 16px 40px -20px rgba(0, 0, 0, .6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .25), 0 30px 60px -24px rgba(0, 0, 0, .8);
  --glow: 0 0 0 1px rgba(182, 243, 106, .7), 0 24px 70px -26px rgba(182, 243, 106, .55);
}
[data-theme="dark"] { --header-bg: rgba(16, 24, 39, .8); }
[data-theme="dark"] .invert { --bg: #0B111D; --surface: #141D30; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
.invert :focus-visible { outline-color: var(--lime); }
::selection { background: var(--lime); color: var(--navy); }
mark { background: #FFE9A8; color: #101827; padding: 0 .25em; border-radius: 4px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon.sm { width: 1em; height: 1em; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--lime); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.invert { background: var(--bg); color: var(--text); }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.022em; text-wrap: balance; }
em { font-style: italic; }
.sec-title em { font-style: normal; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; color: var(--accent-ink); }
.eyebrow .dot, .pulse { width: 8px; height: 8px; border-radius: 50%; background: #6FCB1F; flex: none; position: relative; }
[data-theme="dark"] .eyebrow .dot, [data-theme="dark"] .pulse, .invert .pulse { background: var(--lime); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; color: #6FCB1F; opacity: 0; animation: pulse 2.4s var(--ease) infinite; }
[data-theme="dark"] .pulse::after { color: var(--lime); }
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
.sec-head { max-width: 860px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-title { font-size: clamp(2rem, 4.6vw, 3.6rem); margin-top: 16px; }
.sec-sub { margin-top: 14px; font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 500; color: var(--muted); }
.sec-intro { margin-top: 18px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.sub-title { font-size: clamp(1.25rem, 2vw, 1.6rem); margin: clamp(40px, 6vw, 72px) 0 24px; }
.focus-label { font-size: .9rem; font-weight: 600; color: var(--muted); }
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 68ch; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .icon, .btn .icon { transition: transform .3s var(--ease); }
.text-link:hover .icon, .btn:hover .icon:last-child { transform: translateX(4px); }

/* ---------- buttons, tags, cards ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; background: none; transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--lime); color: var(--navy); box-shadow: 0 10px 30px -14px rgba(122, 190, 40, .9); }
.btn-primary:hover { background: #C6F886; transform: translateY(-2px); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.btn-line { min-height: 0; padding: 0 0 4px; border-radius: 0; border: 0; border-bottom: 1.5px solid var(--text); font-size: .95rem; }
.btn-line:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag, .chip, .badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 500; line-height: 1.3; border: 1px solid transparent; }
.tag-practice { background: var(--accent-soft); color: var(--text); border-color: color-mix(in srgb, var(--accent-ink) 28%, transparent); }
.tag-learning { background: transparent; color: var(--muted); border: 1px dashed var(--border-strong); }
.chip { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); border-color: var(--border); }
.badge { background: var(--navy); color: var(--offwhite); font-size: .72rem; letter-spacing: .04em; font-weight: 600; text-transform: uppercase; padding: 5px 10px; }
[data-theme="dark"] .badge { background: var(--lime); color: var(--navy); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); box-shadow: var(--shadow); }
.card-empty { background: transparent; border-style: dashed; border-color: var(--border-strong); box-shadow: none; color: var(--muted); }
.card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.card-empty h4 { color: var(--text); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--header-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-stuck { border-color: var(--border); }
.header-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: var(--lime); font-size: .82rem; letter-spacing: .02em; }
[data-theme="dark"] .brand-mark { background: var(--lime); color: var(--navy); }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--muted); transition: color .2s, background-color .2s; }
.nav a:hover, .nav a.is-active { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.header-tools { display: flex; align-items: center; gap: 6px; }
.lang { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; border: 1px solid var(--border); }
.lang:hover { border-color: var(--text); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border); background: none; }
.icon-btn:hover { border-color: var(--text); }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1079px) {
  .menu-toggle { display: grid; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); padding: 24px var(--gutter) 40px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--text); letter-spacing: -.02em; }
  .nav a:hover, .nav a.is-active { background: none; color: var(--accent-ink); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand-name { display: none; } }

/* ---------- sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding-top: 0; }

/* ---------- separate pages ---------- */
.page-section main > .section:first-child { padding-top: clamp(40px, 6vw, 88px); }
.page-section main > .section:first-child.invert { padding-bottom: clamp(56px, 8vw, 112px); }
.page-next { padding-block: clamp(8px, 2vw, 24px) clamp(56px, 8vw, 104px); }
.page-contact .page-next { display: none; }
.home-more { margin-top: clamp(28px, 4vw, 44px); text-align: center; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-kicker { font-size: 1.05rem; font-weight: 500; color: var(--accent-ink); }
.hero-title { font-size: clamp(2.6rem, 6.6vw, 5.4rem); line-height: 1; letter-spacing: -.04em; margin-top: 20px; }
/* the headline is a handover: where he comes from is set light, where he is going is set heavy */
.ht-from, .ht-to { display: block; }
.ht-from { font-weight: 300; color: var(--muted); }
.ht-to { font-weight: 700; margin-top: .06em; }
.hero-text { margin-top: 28px; font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--muted); max-width: 58ch; }
.hero .btn-row { margin-top: 36px; }
.focus { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.focus-list { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.focus-list li { display: flex; align-items: center; gap: 22px; }
.focus-list li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-ink); margin-left: -2px; }
.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 420px; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow-lift); }
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait-ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(120% 90% at 80% 0%, rgba(182, 243, 106, .28), transparent 55%), linear-gradient(160deg, #1B2740, #101827 65%); }
/* Hotel name badge: the one object that tells the career change. Turns over once on load, and again on click. */
.name-badge { position: absolute; left: -16%; bottom: 9%; width: 236px; height: 92px; padding: 0; border: 0; background: none; perspective: 900px; rotate: -4deg; text-align: left; filter: drop-shadow(0 18px 22px rgba(16, 24, 39, .32)); transition: rotate .4s var(--ease); }
.name-badge:hover { rotate: -1.5deg; }
.nb-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, 1.3, .5, 1); }
.name-badge.is-then .nb-inner { transform: rotateX(180deg); }
.nb-face { position: absolute; inset: 0; display: grid; align-content: center; gap: 1px; padding: 12px 18px; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.nb-face::before { content: ""; position: absolute; top: 9px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .28; box-shadow: -13px 0 0 currentColor; }
.nb-now { background: var(--lime); color: var(--navy); }
.nb-then { background: var(--navy); color: var(--offwhite); transform: rotateX(180deg); box-shadow: inset 0 0 0 1px rgba(248, 249, 247, .22); }
.nb-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.nb-role { font-size: .88rem; font-weight: 600; line-height: 1.25; }
.nb-note { font-size: .72rem; opacity: .75; line-height: 1.3; }
.js .hero-kicker, .js .ht-from, .js .ht-to, .js .hero-text, .js .hero .btn-row, .js .hero .focus, .js .hero-visual { animation: arrive .8s var(--ease) both; }
.js .ht-from { animation-delay: .08s; } .js .ht-to { animation-delay: .34s; } .js .hero-visual { animation-delay: .2s; }
.js .hero-text { animation-delay: .6s; } .js .hero .btn-row { animation-delay: .72s; } .js .hero .focus { animation-delay: .84s; }
@keyframes arrive { from { opacity: 0; transform: translateY(18px); } }
.portrait-ph span { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 12vw, 8.5rem); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(182, 243, 106, .75); }

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 340px; margin-top: 16px; }
  .name-badge { left: -7%; bottom: 7%; }
}
@media (max-width: 480px) { .hero-visual { max-width: 78vw; } .name-badge { width: 206px; height: 84px; left: -9%; } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-story { font-size: clamp(1.05rem, 1.35vw, 1.18rem); }
.about-story p:first-child { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.35; letter-spacing: -.015em; font-weight: 500; }
.about-photo { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); aspect-ratio: 5 / 4; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; transition: transform .8s var(--ease); }
.about-photo:hover img { transform: scale(1.03); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 24px; border-block: 1px solid var(--border); }
.facts > div { display: flex; flex-direction: column-reverse; padding: 20px 16px 20px 0; }
.facts > div + div { padding-left: 16px; border-left: 1px solid var(--border); }
.facts dd { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.facts dt { margin-top: 8px; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.perspective h3 { font-size: 1.15rem; margin-bottom: 18px; }
.perspective dl > div { padding-block: 14px; border-top: 1px solid var(--border); }
.perspective dt { font-weight: 600; font-size: .95rem; }
.perspective dd { font-size: .93rem; color: var(--muted); margin-top: 2px; }

.pullquote { max-width: 880px; margin: clamp(64px, 9vw, 120px) auto clamp(24px, 4vw, 48px); padding-inline: 8px; text-align: center; }
.pullquote-mark { display: block; height: .5em; font-family: var(--font-serif); font-style: italic; font-size: clamp(5rem, 11vw, 8.5rem); line-height: 1; color: #8FD43A; user-select: none; }
[data-theme="dark"] .pullquote-mark { color: var(--lime); }
.pullquote blockquote p { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(1.55rem, 3.3vw, 2.5rem); line-height: 1.28; letter-spacing: -.005em; text-wrap: balance; }
.pullquote figcaption { margin-top: 28px; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pullquote figcaption::before { content: ""; display: block; width: 2px; height: 36px; margin: 0 auto 18px; background: var(--lime); border-radius: 2px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: tl; }
.timeline li { position: relative; padding: 36px 24px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--border-strong); }
.timeline li:last-child::before { background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px); }
.timeline li::after { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text); }
.timeline li.is-now::after { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl-period { display: block; font-size: .9rem; font-weight: 600; color: var(--accent-ink); }
.timeline h4 { font-size: 1.2rem; margin: 8px 0; }
.timeline p { font-size: .93rem; color: var(--muted); }
@media (max-width: 899px) {
  .about-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li { padding: 0 0 32px 36px; }
  .timeline li::before { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .timeline li:last-child::before { background: repeating-linear-gradient(180deg, var(--border-strong) 0 6px, transparent 6px 12px); }
  .timeline li::after { top: 2px; }
}

/* ---------- learning journey ---------- */
.journey-hint { margin: -24px 0 28px; font-size: .9rem; color: var(--muted); }
.roadmap { --gap: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; position: relative; }
.roadmap::before { content: ""; position: absolute; top: 58px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--lime) 0 26%, var(--border-strong) 40%); }
.module { position: relative; }
.module-card { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.module-card:hover, .module-card[open] { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--border-strong); }
.module.is-current .module-card { border-color: transparent; box-shadow: var(--glow); }
.module.is-upcoming .module-card { background: color-mix(in srgb, var(--surface) 55%, var(--bg-alt)); border-style: dashed; border-color: var(--border-strong); }
.module-card summary { list-style: none; cursor: pointer; display: grid; gap: 12px; padding: clamp(22px, 2.4vw, 30px); border-radius: 24px; }
.module-card summary::-webkit-details-marker { display: none; }
.module-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.module-num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; color: color-mix(in srgb, var(--text) 22%, transparent); }
.module.is-current .module-num { color: var(--accent-ink); }
.module-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--text) 6%, transparent); transition: transform .4s var(--ease); }
.module.is-current .module-icon { background: var(--lime); color: var(--navy); }
.module-card:hover .module-icon { transform: rotate(-6deg) scale(1.06); }
.module-icon .icon { width: 26px; height: 26px; }
.status { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--border-strong); color: var(--muted); }
.status-current { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); color: var(--accent-ink); }
.status-next { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.status-upcoming { border-style: dashed; }
.status-completed, .status-done { background: var(--navy); border-color: var(--navy); color: var(--offwhite); }
[data-theme="dark"] .status-completed, [data-theme="dark"] .status-done { background: var(--offwhite); color: var(--navy); }
.module-title { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.module-period { font-size: .92rem; color: var(--muted); }
.module-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.module-topics .chip { font-size: .78rem; padding: 5px 10px; }
.module-more { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .88rem; font-weight: 600; }
.module-more .icon { transition: transform .3s var(--ease); }
.module-card[open] .module-more .icon { transform: rotate(180deg); }
.more-close, .module-card[open] .more-open { display: none; }
.module-card[open] .more-close { display: inline; }
.module-body { padding: 0 clamp(22px, 2.4vw, 30px) clamp(22px, 2.4vw, 30px); font-size: .95rem; color: var(--muted); animation: fadeUp .4s var(--ease); }
.module-links-title { margin-top: 16px; }
.module-links-title a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.module-links-title a:hover { text-decoration: underline; }
.module-links { margin-top: 10px; display: grid; gap: 2px; }
.module-links a { display: block; padding: 8px 0; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: .9rem; }
.module-links a:hover { color: var(--accent-ink); }
.connector { position: absolute; z-index: 2; top: 38px; right: calc(var(--gap) / -2 - 20px); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-alt); border: 1.5px solid var(--border-strong); color: var(--text); }
.module.is-current .connector, .module.is-completed .connector { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.connector .icon { width: 18px; height: 18px; animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(3px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 899px) {
  .roadmap { grid-template-columns: 1fr; --gap: 60px; max-width: 560px; }
  .roadmap::before { top: 5%; bottom: 5%; left: 50%; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--lime) 0 26%, var(--border-strong) 40%); }
  .connector { top: auto; right: auto; left: calc(50% - 20px); bottom: calc(var(--gap) / -2 - 20px); }
  .connector .icon { rotate: 90deg; }
}

/* ---------- skills & tools ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin: -20px 0 32px; }
.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.skill-card { position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--border-strong); }
.skill-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.skill-card .tags { margin-top: 18px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tool { display: grid; gap: 6px; align-content: start; padding: 26px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); transition: background-color .3s; }
.tool:hover { background: var(--accent-soft); }
.tool-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--lime); margin-bottom: 10px; transition: transform .4s var(--ease); }
.tool:hover .tool-icon { transform: translateY(-3px) rotate(-5deg); }
.tool-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; }
.tool-desc { font-size: .86rem; color: var(--muted); line-height: 1.45; }
.tool-level { justify-self: start; margin-top: 8px; font-size: .72rem; padding: 4px 10px; }
@media (max-width: 999px) { .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .skill-grid { grid-template-columns: 1fr; } .tool { padding: 20px 16px; } }

/* ---------- case study cards ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; font-size: .9rem; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 32px); }
.work-item[hidden] { display: none; }
.work-card { height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.work-card:hover, .work-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--border-strong); }
.work-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.work-media img, .work-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-card:hover .work-media img, .work-card:hover .work-media svg { transform: scale(1.04); }
.work-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(22px, 2.6vw, 34px); flex: 1; }
.work-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.work-title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.work-title a { text-decoration: none; }
.work-title a:hover { color: var(--accent-ink); }
.work-sum { color: var(--muted); font-size: .98rem; flex: 1; }
.no-results { padding: 40px 0; color: var(--muted); }
@media (min-width: 900px) {
  .work-item.is-featured:not(.is-filtered) { grid-column: 1 / -1; }
  .work-item.is-featured:not(.is-filtered) .work-card { flex-direction: row; }
  .work-item.is-featured:not(.is-filtered) .work-media { flex: 0 0 58%; aspect-ratio: auto; min-height: 380px; }
  .work-item.is-featured:not(.is-filtered) .work-body { justify-content: center; }
  .work-item.is-featured:not(.is-filtered) .work-sum { flex: 0; }
  .work-item.is-featured:not(.is-filtered) .work-title { font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
}
@media (max-width: 699px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- proof ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cert { width: 100%; height: 100%; display: grid; gap: 4px; align-content: start; text-align: left; padding: 12px 12px 18px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--border-strong); }
.cert-thumb { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--border); margin-bottom: 10px; }
.cert-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cert-issuer { padding-inline: 6px; font-size: .82rem; font-weight: 700; color: var(--accent-ink); }
.cert-name { padding-inline: 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.25; }
.cert-meta { padding-inline: 6px; font-size: .78rem; color: var(--muted); }
.proof-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.evidence { display: grid; gap: 14px; }
.evidence .status { margin-bottom: 12px; }
.evidence p { font-size: .95rem; color: var(--muted); }
.evidence .text-link { margin-top: 12px; font-size: .95rem; }
.rec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; row-gap: 0; margin-top: 28px; }
.rec-grid > li { display: contents; }
/* each card spans three shared rows (mark, quote, author) so the author lines line up across cards */
.rec { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 18px; margin-bottom: 20px; }
.rec { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.rec:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--accent-ink) 55%, var(--border)); }
.rec-q { width: 28px; height: 28px; color: var(--accent-ink); transition: transform .4s var(--ease); }
.rec:hover .rec-q { transform: scale(1.2) rotate(-6deg); }
.rec-photo { transition: transform .4s var(--ease), border-color .35s; }
.rec:hover .rec-photo { transform: scale(1.08); border-color: var(--lime); }
.rec blockquote { font-family: var(--font-serif); font-style: italic; font-size: 1.22rem; line-height: 1.42; }
.rec figcaption { display: grid; gap: 2px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .9rem; }
.rec figcaption:has(.rec-photo) { grid-template-columns: 56px 1fr; column-gap: 14px; align-items: start; }
.rec-photo { grid-row: 1 / span 3; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.rec figcaption:has(.rec-photo) > :not(.rec-photo) { grid-column: 2; }
@media (max-width: 999px) { .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rec-grid, .proof-cols { grid-template-columns: 1fr; } }

/* ---------- approach ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--text); }
.step { position: relative; padding: 28px 28px 8px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--border-strong); }
.step + .step::before { content: "→"; position: absolute; top: 26px; left: -14px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--navy); font-weight: 700; font-size: .9rem; }
.step-num { font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: var(--accent-ink); }
.step-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 22px 0 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: transform .4s var(--ease), background-color .3s, color .3s; }
.step:hover .step-icon { transform: translateY(-4px); background: var(--navy); color: var(--lime); }
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { font-size: .95rem; color: var(--muted); }
@media (max-width: 999px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { padding: 28px 24px 28px 0; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(3)::before { display: none; }
  .step:nth-child(n+3) { border-top: 1px solid var(--border-strong); }
}
@media (max-width: 599px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--border-strong); }
  .step + .step::before { content: "↓"; display: grid; top: -14px; left: 0; }
}

/* ---------- contact ---------- */
.contact { overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 620px; height: 620px; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(182, 243, 106, .16), transparent 65%); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-title { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1; }
.contact-copy .muted { margin-top: 14px; font-size: .95rem; }
.contact-links { margin-top: 40px; }
.contact-links ul { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 40px); border-radius: 28px; background: var(--surface); border: 1px solid var(--border); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.req { color: var(--lime); }
.field input:not([type="checkbox"]), .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--bg); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(182, 243, 106, .22); }
.field [aria-invalid="true"] { border-color: #FF8F8F; }
.error { min-height: 0; font-size: .84rem; color: #FFB1B1; margin-top: 6px; }
.error:empty { display: none; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--lime); }
.check label { margin: 0; font-weight: 400; font-size: .9rem; color: var(--muted); }
.check .error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .84rem; color: var(--muted); }
.form-status { font-size: .95rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 14px 16px; border-radius: 14px; background: rgba(182, 243, 106, .14); border: 1px solid rgba(182, 243, 106, .5); color: var(--lime); }
.form-status.is-err { padding: 14px 16px; border-radius: 14px; background: rgba(255, 120, 120, .1); border: 1px solid rgba(255, 143, 143, .5); color: #FFB1B1; }
.form button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: clamp(48px, 6vw, 80px) 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.footer-h { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.site-footer a:hover { color: var(--lime); }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--border); font-size: .85rem; }
.to-top { margin-left: auto; }
@media (max-width: 799px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- case study page ---------- */
.case-head { padding-top: clamp(32px, 5vw, 64px); }
.crumbs a { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.case-head .work-meta { margin-top: 36px; }
.case-title { font-size: clamp(2.3rem, 6vw, 4.6rem); letter-spacing: -.035em; line-height: 1; margin-top: 18px; max-width: 18ch; }
.case-sum { margin-top: 24px; font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--muted); max-width: 60ch; line-height: 1.5; }
.case-cover { margin-top: clamp(32px, 5vw, 56px); border-radius: clamp(16px, 2.4vw, 28px); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lift); aspect-ratio: 16 / 9; background: var(--navy); }
.case-cover img, .case-cover svg { width: 100%; height: 100%; object-fit: cover; }
.case-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(48px, 7vw, 96px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 28px); }
.toc ol { margin-top: 16px; display: grid; }
.toc a { display: flex; gap: 12px; padding: 8px 0 8px 14px; border-left: 2px solid var(--border); font-size: .88rem; text-decoration: none; color: var(--muted); transition: color .2s, border-color .2s; }
.toc a span { font-variant-numeric: tabular-nums; opacity: .6; }
.toc a:hover, .toc a.is-active { color: var(--text); border-color: var(--accent-ink); }
.case-sec { padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--border); }
.case-sec:first-child { border-top: 0; padding-top: 0; }
.case-sec h2 { display: flex; align-items: baseline; gap: 16px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 22px; }
.case-num { font-size: .85rem; font-weight: 600; color: var(--accent-ink); letter-spacing: 0; }
.case-sec .prose { max-width: 72ch; }
#samples .prose, #kpis .prose { max-width: none; }
.bullets { display: grid; gap: 12px; }
.bullets li { position: relative; padding-left: 28px; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); }
.bullets.numbered { counter-reset: n; }
.bullets.numbered li { counter-increment: n; padding-left: 44px; }
.bullets.numbered li::before { content: counter(n, decimal-leading-zero); width: auto; height: auto; top: .1em; left: 0; background: none; font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: var(--accent-ink); }
.bullets.checks li::before { content: "✓"; width: auto; height: auto; top: 0; left: 2px; background: none; color: var(--accent-ink); font-weight: 700; }
.bullets.arrows li::before { content: "→"; width: auto; height: auto; top: 0; left: 0; background: none; color: var(--accent-ink); font-weight: 700; }
.kpi-label { display: inline-block; padding: 8px 14px; border-radius: 10px; background: #FFF3CC; color: #5A4300; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
[data-theme="dark"] .kpi-label { background: rgba(255, 214, 102, .14); color: #FFD666; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 20px; }
.kpis > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.kpis dd { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.kpis dt { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.kpi-note { margin-top: 18px; font-size: .92rem; color: var(--muted); max-width: 72ch; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gallery figcaption, .video figcaption { margin-top: 10px; font-size: .86rem; color: var(--muted); }
.shot { position: relative; display: block; width: 100%; padding: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); cursor: zoom-in; }
.shot img { width: 100%; max-height: 520px; object-fit: contain; object-position: top; transition: transform .6s var(--ease); }
.shot:hover img { transform: scale(1.02); }
.shot-zoom { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--navy); color: var(--lime); opacity: 0; transition: opacity .2s; }
.shot:hover .shot-zoom, .shot:focus-visible .shot-zoom { opacity: 1; }
.video { max-width: 340px; margin-bottom: 28px; }
.video video { width: 100%; border-radius: 22px; border: 1px solid var(--border); background: #000; aspect-ratio: 9 / 16; }
.mini-title { font-size: 1rem; margin: 28px 0 12px; }
.files { display: grid; gap: 10px; max-width: 560px; }
.file { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; font-weight: 500; transition: border-color .2s, transform .3s var(--ease); }
.file span { flex: 1; }
.file:hover { border-color: var(--accent-ink); transform: translateX(4px); }
.disclosure { margin-top: 16px; padding: 22px 24px; border-radius: 16px; background: var(--bg-alt); border: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.disclosure h2 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.case-foot { padding-block: clamp(48px, 7vw, 96px); display: grid; gap: 24px; }
.case-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.case-cta h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 6px; }
.case-cta p { color: var(--muted); }
.next-case { display: grid; gap: 10px; padding: clamp(24px, 4vw, 48px) 0; border-block: 1px solid var(--border); text-decoration: none; }
.next-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; transition: color .2s; }
.next-title .icon { width: 1em; height: 1em; transition: transform .4s var(--ease); }
.next-case:hover .next-title { color: var(--accent-ink); }
.next-case:hover .icon { transform: translateX(10px); }
@media (max-width: 899px) { .case-layout { grid-template-columns: 1fr; } .toc { display: none; } }
@media (max-width: 599px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- legal ---------- */
.legal { padding-block: clamp(32px, 5vw, 64px) var(--section); max-width: 860px; }
.legal .case-title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 32px; }
.legal .prose { margin-top: 40px; }
.legal .prose h2 { font-size: 1.3rem; margin: 2em 0 .6em; }
.legal .prose p + p { margin-top: .5em; }
.nf { text-align: left; min-height: 50vh; }
.nf .btn { margin-top: 32px; }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 12, 20, .94); color: #F8F9F7; }
.lightbox::backdrop { background: rgba(8, 12, 20, .6); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: fadeIn .25s; }
.lb-stage { display: grid; place-items: center; padding: 64px 16px 12px; min-height: 0; }
.lb-stage img { max-width: min(1400px, 100%); max-height: 100%; object-fit: contain; border-radius: 10px; background: #fff; }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 16px 20px; font-size: .92rem; text-align: center; }
.lb-btn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: inherit; }
.lb-btn:hover { background: var(--lime); color: var(--navy); border-color: var(--lime); }
.lb-close { position: absolute; top: 12px; right: 12px; font-size: 1.4rem; line-height: 1; }
.lb-cap { max-width: 70ch; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .25s ease both vtOut; }
::view-transition-new(root) { animation: .4s var(--ease) both vtIn; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
@media print {
  .site-header, .site-footer, .toc, .filters, .hero-visual, .contact .form { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Learning journey: the lime progress line reaches the current module */
.roadmap:has(> .module:nth-child(2).is-current)::before { background: linear-gradient(90deg, var(--lime) 0 58%, var(--border-strong) 70%); }
.roadmap:has(> .module:nth-child(3).is-current)::before, .roadmap:has(> .module:nth-child(3).is-completed)::before { background: var(--lime); }
.module.is-completed .module-num { color: var(--accent-ink); opacity: .55; }
@media (max-width: 899px) {
  .roadmap:has(> .module:nth-child(2).is-current)::before { background: linear-gradient(180deg, var(--lime) 0 58%, var(--border-strong) 70%); }
}

/* Case studies as a compact grid of tiles: whole tile is the link, title sits on the image */
.work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.tile { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--navy); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tile:hover, .tile:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tile-media { position: absolute; inset: 0; }
.tile-media img, .tile-media svg { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.tile:hover .tile-media img, .tile:hover .tile-media svg { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 24, 39, 0) 30%, rgba(16, 24, 39, .55) 55%, rgba(16, 24, 39, .94) 100%); pointer-events: none; }
.tile-badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(16, 24, 39, .82); color: #F8F9F7; font-size: .7rem; font-weight: 600; backdrop-filter: blur(4px); }
.tile-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(14px, 1.6vw, 20px); color: #F8F9F7; }
.tile-meta { font-size: .78rem; font-weight: 600; color: #B6F36A; margin-bottom: 4px; }
.tile-title { font-size: clamp(1.02rem, 1.35vw, 1.22rem); line-height: 1.18; letter-spacing: -.015em; }
.tile-link { color: inherit; text-decoration: none; }
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.tile-link:focus-visible { outline: none; }
.tile:focus-within { outline: 3px solid var(--lime); outline-offset: 3px; }
.tile-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .82rem; font-weight: 600; opacity: .8; transition: opacity .3s, gap .3s; }
.tile:hover .tile-cta { opacity: 1; gap: 10px; }
.page-work .sec-head { margin-bottom: clamp(20px, 3vw, 32px); }
.page-work .sec-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.page-work .sec-intro { font-size: 1rem; margin-top: 10px; }
.page-work .filters { margin-bottom: 22px; }
@media (max-width: 899px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .work-grid { gap: 10px; } .tile { aspect-ratio: 1; border-radius: 12px; } .tile-badge { display: none; } .tile-meta { font-size: .7rem; } .tile-title { font-size: .92rem; } .tile-cta { display: none; } }
.page-work .tile { aspect-ratio: 16 / 10; }
.page-work main > .section:first-child { padding-top: clamp(24px, 3.5vw, 44px); }
.page-work .sec-intro { max-width: 92ch; }
@media (max-width: 520px) { .page-work .tile { aspect-ratio: 1; } }
.tile::after { background: linear-gradient(180deg, rgba(16, 24, 39, .08) 0%, rgba(16, 24, 39, .62) 42%, rgba(16, 24, 39, .97) 82%); }

/* Certificates: badge tiles that open a page per certificate */
.cert { text-decoration: none; color: inherit; align-content: start; justify-items: center; text-align: center; padding: 22px 16px 20px; }
.cert-badge { display: grid; place-items: center; width: 104px; height: 104px; margin-bottom: 14px; border-radius: 22px; background: #fff; border: 1px solid var(--border); overflow: hidden; transition: transform .4s var(--ease); }
.cert-badge img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cert:hover .cert-badge { transform: scale(1.06); }
.cert-issuer, .cert-name, .cert-meta { padding-inline: 0; }
.cert-page { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 8vw, 104px); }
.cert-hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin: clamp(24px, 4vw, 48px) 0; }
.cert-hero-badge { width: 112px; height: 112px; object-fit: contain; padding: 8px; border-radius: 24px; background: #fff; border: 1px solid var(--border); margin-bottom: 20px; }
.cert-title { font-size: clamp(1.9rem, 3.8vw, 3rem); margin-top: 6px; max-width: none; }
.cert-facts { display: grid; gap: 10px; margin: 24px 0 28px; }
.cert-facts > div { display: flex; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.cert-facts dt { min-width: 130px; color: var(--muted); font-size: .92rem; }
.cert-facts dd { font-weight: 600; }
.cert-full img { width: 100%; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-lift); background: #fff; }
@media (max-width: 899px) { .cert-hero { grid-template-columns: 1fr; } }

/* Proof: practical evidence alone spans the full width */
.proof-cols:has(> div:only-child) { grid-template-columns: 1fr; }
.proof-cols:has(> div:only-child) .evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 699px) { .proof-cols:has(> div:only-child) .evidence { grid-template-columns: 1fr; } }

/* Home: featured certification */
.cred { padding-block: 0 clamp(56px, 8vw, 96px); }
.cred-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "badge copy" "badge others"; gap: 22px clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 3.4vw, 40px); border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.cred-card::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(25, 150, 140, .14), transparent 65%); pointer-events: none; }
.cred-badge { grid-area: badge; display: block; width: clamp(140px, 17vw, 200px); aspect-ratio: 1; perspective: 700px; border-radius: 50%; }
.cred-badge-inner { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .5s var(--ease); box-shadow: 0 18px 40px -18px rgba(16, 24, 39, .45); background: #fff; }
.cred-badge:hover .cred-badge-inner { transition: transform .12s linear, box-shadow .5s var(--ease); box-shadow: 0 26px 50px -18px rgba(16, 24, 39, .55); }
.cred-badge img { width: 100%; height: 100%; object-fit: cover; }
.cred-sheen { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at var(--sx, 30%) var(--sy, 20%), rgba(255, 255, 255, .55), transparent 45%); opacity: 0; transition: opacity .4s; mix-blend-mode: soft-light; }
.cred-badge:hover .cred-sheen { opacity: 1; }
.cred-copy { grid-area: copy; position: relative; }
.cred-label { font-size: .95rem; font-weight: 600; color: var(--accent-ink); }
.cred-title { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-top: 6px; letter-spacing: -.025em; }
.cred-meta { margin-top: 10px; color: var(--muted); }
.cred-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cred-others { grid-area: others; position: relative; padding-top: 18px; border-top: 1px solid var(--border); }
.cred-also { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.cred-others ul { display: flex; flex-wrap: wrap; gap: 10px; }
.cred-others a { display: block; width: 48px; height: 48px; border-radius: 12px; background: #fff; border: 1px solid var(--border); overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.cred-others a:hover, .cred-others a:focus-visible { transform: translateY(-3px) scale(1.06); border-color: var(--accent-ink); box-shadow: var(--shadow); }
.cred-others img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
@media (max-width: 699px) {
  .cred-card { grid-template-columns: 1fr; grid-template-areas: "badge" "copy" "others"; justify-items: start; }
  .cred-badge { width: 132px; }
}
@media (prefers-reduced-motion: reduce) { .cred-badge-inner { transform: none !important; } }

/* Small screens: long words (especially German compounds) wrap instead of pushing the page sideways */
body { overflow-wrap: break-word; }
.prose, .sec-intro, .sec-title, .case-title, .hero-title, .cred-title, .tile-title { hyphens: auto; -webkit-hyphens: auto; }
/* Keep small labels readable (at least 12px) */
.status { font-size: .75rem; }
.tile-badge { font-size: .75rem; }
@media (max-width: 520px) { .tile-meta { font-size: .75rem; } }
@media (max-width: 899px) { .about-grid, .contact-grid, .hero-grid, .cert-hero, .case-layout { grid-template-columns: minmax(0, 1fr); } }
.cert-grid > li, .cert { min-width: 0; }
.cert-name, .cert-meta, .cert-issuer, .cred-also, .facts dt { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }

/* Tools: the brand logo is the main element of each tile */
.tool { justify-items: start; padding-top: 28px; }
.tool-logos { display: flex; align-items: center; gap: 10px; height: 76px; padding: 0 16px; margin-bottom: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: 0 10px 24px -18px rgba(16, 24, 39, .45); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tool-logos img { width: 44px; height: 44px; object-fit: contain; }
.tool-logos-1 { width: 76px; justify-content: center; padding: 0; }
.tool-logos-3 img { width: 36px; height: 36px; }
.tool:hover .tool-logos { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(16, 24, 39, .5); }

/* CV: view-only page */
.cv-page { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 8vw, 104px); }
.cv-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(20px, 4vw, 56px); align-items: end; margin: clamp(20px, 3vw, 36px) 0 clamp(28px, 4vw, 44px); }
.cv-title { margin-top: 0; }
.cv-ask { padding: 22px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.cv-ask p { margin-bottom: 14px; color: var(--muted); }
.cv-sheets { display: grid; gap: 28px; max-width: 900px; margin-inline: auto; user-select: none; -webkit-user-select: none; }
.cv-sheet img { width: 100%; border-radius: 8px; border: 1px solid var(--border); box-shadow: var(--shadow-lift); background: #fff; pointer-events: none; }
@media (max-width: 799px) { .cv-head { grid-template-columns: minmax(0, 1fr); } }
@media print { .cv-sheets { display: none; } }

/* About facts: numbers on one line, labels start on one line, whatever their length */
.facts > div { flex-direction: column; justify-content: flex-start; }
.facts dd { order: -1; white-space: nowrap; }
.facts dt { margin-top: 10px; }

/* Learning journey: three cards of equal height with their rows lined up */
@media (min-width: 900px) {
  .roadmap { align-items: stretch; }
  .module { display: flex; }
  .module-card { flex: 1; display: flex; flex-direction: column; }
  .module-card summary { flex: 1; display: flex; flex-direction: column; gap: 12px; }
  .module-card summary > .status { align-self: flex-start; }
  .module-title { min-height: 2.2em; }
  .module-period { min-height: 1.6em; }
  .module-topics { align-content: flex-start; min-height: 5.4em; }
  .module-more { margin-top: auto; }
}
.module-period.is-empty { display: block; }
@media (max-width: 899px) { .module-period.is-empty { display: none; } }
/* Opening one module only grows that card (closed cards already match through the row heights above) */
@media (min-width: 900px) { .roadmap { align-items: start; } }
@media (min-width: 900px) { .module-topics { min-height: 6.2em; } }

/* CV page: title and request button centred above the CV */
.cv-head { display: flex; flex-direction: column; align-items: center; gap: 18px; grid-template-columns: none; text-align: center; max-width: 900px; margin: clamp(16px, 3vw, 32px) auto clamp(24px, 3.5vw, 40px); }
.cv-title { margin: 0; max-width: none; }
.cv-page .crumbs { max-width: 900px; margin-inline: auto; }

/* Case study cover: the frame follows the image's own shape, so wide banners are never cut off */
.case-cover:has(> img) { aspect-ratio: auto; }
.case-cover > img { height: auto; }

/* Contact: direct links in a tidy grid of equal buttons */
.contact-links ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.contact-links li { display: flex; }
.contact-links .btn { width: 100%; justify-content: flex-start; }
.contact-links .btn .icon { width: 18px; height: 18px; flex: none; }

/* Brand logo (LR mark + name) */
:root { --brand-blue: #0066FF; }
[data-theme="dark"], .invert { --brand-blue: #2F80FF; }
.brand { gap: 10px; }
svg.brand-mark, .brand svg.brand-mark { display: block; width: auto; height: 30px; background: none; border-radius: 0; color: inherit; flex: none; }
[data-theme="dark"] svg.brand-mark, [data-theme="dark"] .brand svg.brand-mark { background: none; color: inherit; }
.brand-tri { fill: var(--brand-blue); }
.brand-rule { width: 1.5px; height: 30px; background: currentColor; border-radius: 1px; flex: none; }
.brand-name { display: flex; flex-direction: column; font-family: "Montserrat", var(--font-display); font-weight: 700; text-transform: uppercase; font-size: .8rem; line-height: 1.05; letter-spacing: .03em; }
@media (max-width: 420px) { .brand-rule { display: none; } }
.footer-logo { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.footer-logo svg.brand-mark { height: 46px; width: auto; display: block; }
.footer-logo .brand-rule { height: 46px; width: 2px; }
.footer-logo .brand-name { font-size: 1.12rem; }
.footer-tag { font-family: "Montserrat", var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .38em; font-size: .74rem; opacity: .75; margin-bottom: 16px; }

/* Header logo: "Digital Marketer" under the mark, as in the logo */
.brand { flex-direction: column; align-items: stretch; gap: 5px; }
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-tag { display: flex; justify-content: space-between; font-family: "Montserrat", var(--font-display); font-weight: 600; text-transform: uppercase; font-size: .5rem; line-height: 1; letter-spacing: .225em; margin-right: -.225em; opacity: .75; white-space: nowrap; }

/* About: opening quote as a signed citation */
.about-quote { position: relative; margin: 0 0 clamp(26px, 3.4vw, 36px); padding: 6px 0 4px clamp(22px, 2.6vw, 30px); border-left: 3px solid #8FD43A; }
.about-quote::before { content: "“"; position: absolute; top: -.32em; left: clamp(14px, 1.8vw, 20px); font-family: var(--font-serif); font-style: italic; font-size: 4.6rem; line-height: 1; color: #8FD43A; opacity: .35; pointer-events: none; }
.about-story .about-quote blockquote p { position: relative; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(1.18rem, 1.55vw, 1.32rem); line-height: 1.45; letter-spacing: 0; text-wrap: pretty; }
.about-quote blockquote p::before { content: "“"; }
.about-quote blockquote p::after { content: "”"; }
:lang(de) .about-quote blockquote p::before { content: "„"; }
:lang(de) .about-quote blockquote p::after { content: "“"; }
.about-quote figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .9rem; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.about-quote figcaption::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }

/* Audit improvements: availability, quick facts, role box, phone photo */
.hero-status { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .9rem; font-weight: 600; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #3BB273; box-shadow: 0 0 0 4px rgba(59, 178, 115, .18); flex: none; }
.hero-avatar { display: none; }
@media (max-width: 899px) {
  .hero-avatar { display: block; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; border: 2px solid var(--border); }
  .hero-visual { display: none; }
}
.hero .btn-row { flex-wrap: wrap; }
.quick { padding-block: 0 clamp(40px, 6vw, 72px); }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 20px; background: var(--surface); overflow: hidden; }
.quick-grid > div { padding: 18px 22px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.quick-grid > div:nth-child(3n) { border-right: 0; }
.quick-grid > div:nth-last-child(-n+3) { border-bottom: 0; }
.quick-grid dt { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.quick-grid dd { margin-top: 6px; font-weight: 600; line-height: 1.4; }
@media (max-width: 899px) {
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid > div:nth-child(3n) { border-right: 1px solid var(--border); }
  .quick-grid > div:nth-child(2n) { border-right: 0; }
  .quick-grid > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .quick-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 520px) {
  .quick-grid { grid-template-columns: minmax(0, 1fr); }
  .quick-grid > div { border-right: 0 !important; border-bottom: 1px solid var(--border) !important; }
  .quick-grid > div:last-child { border-bottom: 0 !important; }
}
.role-box { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; }
.role-box > div { padding: 14px 18px; }
.role-box > div + div { border-left: 1px solid var(--border); }
.role-box dt { font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.role-box dd { margin-top: 4px; font-weight: 600; line-height: 1.4; }
@media (max-width: 699px) { .role-box { grid-template-columns: minmax(0, 1fr); } .role-box > div + div { border-left: 0; border-top: 1px solid var(--border); } }
.cv-head .btn { margin-top: 2px; }
.js .hero-status, .js .hero-avatar { animation: arrive .8s var(--ease) both; animation-delay: .04s; }
@media (prefers-reduced-motion: reduce) { .js .hero-status, .js .hero-avatar { animation: none; } }
