:root {
  --paper: #f3f1eb;
  --paper-2: #e8e5dd;
  --ink: #111111;
  --muted: #65645f;
  --line: rgba(17, 17, 17, 0.18);
  --line-strong: rgba(17, 17, 17, 0.5);
  --card: rgba(255, 255, 255, 0.42);
  --shadow: 0 24px 80px rgba(17, 17, 17, 0.12);
  --radius: 24px;
  --max-width: 1440px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-synthesis: none;
}

:root[data-theme="dark"] {
  --paper: #111111;
  --paper-2: #1b1b1b;
  --ink: #f3f1eb;
  --muted: #aaa8a1;
  --line: rgba(243, 241, 235, 0.18);
  --line-strong: rgba(243, 241, 235, 0.5);
  --card: rgba(255, 255, 255, 0.045);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@view-transition { navigation: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.5; overflow-x: hidden; }
html.dialog-open { overflow: hidden; overscroll-behavior: none; }
body.dialog-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; overscroll-behavior: none; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: 0.22; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; transition: top .2s ease; }
.skip-link:focus { top: 16px; }

.site-header { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); width: min(calc(100% - 32px), 1408px); height: 66px; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 10px 8px 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(18px) saturate(120%); border-radius: 18px; transition: box-shadow .3s ease, background .3s ease; }
.site-header.is-scrolled { box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.wordmark-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--paper); background: var(--ink); font-weight: 900; letter-spacing: -.05em; }
.wordmark-copy { font-size: 11px; line-height: 1; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.desktop-nav { display: flex; align-items: center; gap: 6px; }
.desktop-nav a { padding: 10px 12px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 650; transition: color .2s ease, background .2s ease; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--ink); background: var(--card); outline: none; }
.desktop-nav a[aria-current="page"] { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); color: var(--ink); background: transparent; border-radius: 12px; display: inline-grid; place-items: center; cursor: pointer; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.icon-button:hover { transform: translateY(-1px); background: var(--card); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 0 18px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); border-radius: 999px; font-weight: 750; font-size: 13px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.button-small { min-height: 42px; padding: 0 17px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button-invert { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button-ghost-dark { color: var(--paper); border-color: rgba(243,241,235,.45); }
.text-link { display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid currentColor; padding: 3px 0; font-weight: 750; font-size: 13px; }

.section { width: min(100%, var(--max-width)); margin: 0 auto; padding: 72px 48px; }
.hero { min-height: auto; padding-top: 124px; padding-bottom: 64px; display: flex; flex-direction: column; justify-content: flex-start; }
.hero-kicker, .eyebrow { display: flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; line-height: 1.2; font-weight: 800; color: var(--muted); }
.status-dot { width: 8px; height: 8px; background: var(--ink); border-radius: 50%; box-shadow: 0 0 0 5px var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 5vw; align-items: center; margin-top: 36px; }
.display-title { margin: 0; font-size: clamp(42px, 4.6vw, 68px); line-height: .96; letter-spacing: -.058em; font-weight: 820; max-width: 760px; }
.display-title span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero-lead { max-width: 620px; margin: 28px 0 0; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.42; letter-spacing: -.015em; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 38px; }
.hero-figure { width: min(100%, 320px); justify-self: end; margin: 0; border: 1px solid var(--line); background: var(--card); border-radius: 28px; padding: 10px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero-figure img { width: 100%; height: 230px; object-fit: cover; border-radius: 20px; filter: grayscale(1) contrast(1.04); mix-blend-mode: multiply; }
:root[data-theme="dark"] .hero-figure img, :root[data-theme="dark"] .projects-illustration img, :root[data-theme="dark"] .learning-sticky img { filter: grayscale(1) invert(1) contrast(.88); mix-blend-mode: screen; }
.hero-figure figcaption { display: flex; justify-content: space-between; margin: 14px 8px 2px; color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .16em; font-weight: 750; }
.hero-note { align-self: flex-end; display: grid; grid-template-columns: auto minmax(0, 560px); gap: 24px; align-items: start; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-note span { font: 700 12px/1 ui-monospace, monospace; color: var(--muted); }
.hero-note p { margin: 0; font-size: 16px; color: var(--muted); }

.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .55fr); gap: 5vw; align-items: end; margin-bottom: 40px; }
.section-heading h2, .learning-sticky h2 { margin: 10px 0 0; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.02; letter-spacing: -.046em; max-width: 760px; }
.section-heading > p, .learning-sticky > p { color: var(--muted); font-size: 16px; max-width: 480px; margin: 0; }
.projects-section, .learning-section { background: var(--paper-2); max-width: none; }
.projects-section > *, .learning-section > * { width: min(100%, calc(var(--max-width) - 96px)); margin-left: auto; margin-right: auto; }
.projects-illustration { width: min(100%, 840px); margin: 0 auto 42px; height: min(26vw, 280px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.projects-illustration img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); mix-blend-mode: multiply; }
.project-list { border-top: 1px solid var(--line-strong); }
.project-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(130px, .25fr); gap: 24px; align-items: center; padding: 38px 0; border-bottom: 1px solid var(--line); position: relative; }
.project-card { content-visibility: auto; contain-intrinsic-size: auto 620px; }
.project-index { align-self: start; padding-top: 7px; font: 700 12px/1 ui-monospace, monospace; color: var(--muted); }
.project-meta { display: flex; gap: 24px; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; font-size: 10px; color: var(--muted); }
.project-content h2, .project-content h3 { margin: 8px 0 10px; font-size: clamp(30px, 2.9vw, 44px); line-height: 1.02; letter-spacing: -.042em; }
.project-content > p { margin: 0; color: var(--muted); font-size: 17px; max-width: 760px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 22px 0 0; list-style: none; }
.tag-list li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.project-actions { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.project-symbol { justify-self: end; width: min(100%, 140px); aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; position: relative; overflow: hidden; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.project-card:hover .project-symbol { transform: rotate(7deg) scale(1.035); }
.symbol-db { width: 46%; height: 58%; border: 3px solid var(--ink); border-radius: 50% / 14%; }
.symbol-db::before, .symbol-db::after { content: ""; position: absolute; left: 27%; right: 27%; height: 14%; border: 3px solid var(--ink); border-radius: 50%; }
.symbol-db::before { top: 31%; } .symbol-db::after { top: 47%; border-top-color: transparent; }
.symbol-chat { position: absolute; right: 20%; top: 19%; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50% 50% 50% 8%; color: var(--paper); background: var(--ink); font-weight: 900; font-size: 25px; }
.form-symbol { border-radius: 32px; padding: 22%; gap: 10%; }
.form-symbol i { width: 100%; height: 17%; border: 2px solid var(--ink); border-radius: 999px; display: block; }
.form-symbol i:first-child { background: var(--ink); width: 68%; justify-self: start; }
.tunnel-symbol { border-radius: 45% 45% 18% 18%; }
.tunnel-symbol::before, .tunnel-symbol::after { content: ""; position: absolute; width: 24%; height: 55%; border: 3px solid var(--ink); border-bottom: 0; border-radius: 999px 999px 0 0; bottom: -3px; }
.tunnel-symbol::before { left: 20%; } .tunnel-symbol::after { right: 20%; }
.tunnel-symbol span { width: 24px; height: 24px; background: var(--ink); border-radius: 50%; box-shadow: -58px -34px 0 -4px var(--ink), 58px -34px 0 -4px var(--ink); }
.ground-symbol { border-radius: 28px; }
.ground-symbol i { position: absolute; width: 31%; height: 31%; border: 3px solid var(--ink); border-radius: 50%; }
.ground-symbol i:nth-child(1) { top: 18%; left: 20%; }.ground-symbol i:nth-child(2) { bottom: 18%; left: 34%; }.ground-symbol i:nth-child(3) { top: 26%; right: 15%; background: var(--ink); }
.ground-symbol::after { content: ""; position: absolute; width: 62%; height: 2px; background: var(--ink); transform: rotate(-24deg); }
.cv-symbol { border-radius: 28px 28px 28px 8px; }
.cv-symbol::before { content: ""; position: absolute; inset: 16%; border: 3px solid var(--ink); border-radius: 8px; }
.cv-symbol span { font-size: 28px; font-weight: 900; letter-spacing: -.08em; z-index: 1; }
.bot-symbol { border-radius: 40% 40% 48% 48%; }
.bot-symbol::before { content: ""; width: 58%; height: 38%; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 46px 0 -12px var(--ink); }
.bot-symbol span { position: absolute; top: 39%; width: 10px; height: 10px; background: var(--ink); border-radius: 50%; box-shadow: 42px 0 var(--ink); }

.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.process-card { min-height: 220px; padding: 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.process-card:last-child { border-right: 0; }
.process-card > span { color: var(--muted); font: 700 11px/1 ui-monospace, monospace; }
.process-card h3 { margin: auto 0 12px; font-size: 29px; letter-spacing: -.04em; }
.process-card p { color: var(--muted); margin: 0; font-size: 14px; }
.stack-board { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 0; margin-top: 50px; color: var(--paper); background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.stack-board > div { min-height: 180px; padding: 24px; border-right: 1px solid rgba(243,241,235,.18); }
.stack-board > div:last-child { border: 0; }
.stack-intro span, .stack-column span { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: 10px; color: rgba(243,241,235,.6); }
.stack-intro h3 { margin: 78px 0 0; font-size: 26px; line-height: 1.1; letter-spacing: -.04em; }
.stack-column { display: flex; flex-direction: column; gap: 10px; }
.stack-column strong:first-of-type { margin-top: auto; }
.stack-column strong { font-size: 15px; }

.experience-feature { color: var(--paper); background: var(--ink); border-radius: 36px; padding: 34px; }
.experience-topline { display: flex; justify-content: space-between; color: rgba(243,241,235,.58); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.experience-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; margin-top: 58px; }
.company-mark { display: grid; place-items: center; width: 78px; height: 78px; background: var(--paper); color: var(--ink); border-radius: 24px; font-size: 40px; font-weight: 900; }
.experience-grid h2 { font-size: 44px; line-height: 1; letter-spacing: -.055em; margin: 18px 0 8px; }
.experience-grid h3, .experience-grid h4 { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.08; letter-spacing: -.045em; margin: 0 0 20px; }
.experience-grid p { color: rgba(243,241,235,.66); max-width: 680px; }
.experience-grid .text-link { margin-top: 14px; }
.timeline { margin-top: 70px; border-top: 1px solid var(--line-strong); }
.timeline article { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 40px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.timeline-date { font: 700 12px/1 ui-monospace, monospace; color: var(--muted); padding-top: 9px; }
.timeline h2, .timeline h3 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.035em; }
.timeline p { margin: 0; color: var(--muted); max-width: 760px; }

.learning-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; align-items: start; }
.learning-sticky { position: sticky; top: 120px; }
.learning-sticky > p { margin-top: 24px; }
.learning-sticky img { margin-top: 30px; width: min(100%, 280px); aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); filter: grayscale(1) contrast(1.03); mix-blend-mode: multiply; }
.certificate-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.certificate-card { display: grid; grid-template-columns: 42px 1fr auto; gap: 18px; align-items: center; min-height: 92px; border-bottom: 1px solid var(--line); transition: padding .25s ease, background .25s ease; }
.certificate-card { content-visibility: auto; contain-intrinsic-size: auto 118px; }
.certificate-card:hover { padding: 0 16px; background: var(--card); }
.certificate-card > span { font: 700 11px/1 ui-monospace, monospace; color: var(--muted); }
.certificate-card small { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.certificate-card h3 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.03em; }
.certificate-card i { font-style: normal; font-size: 20px; }

.heading-actions { display: flex; align-items: center; gap: 22px; }
.cv-frame { background: var(--paper-2); padding: 16px; border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); }
.cv-frame object { width: 100%; height: min(78vh, 920px); border: 0; border-radius: 18px; background: white; }

.contact-section { padding-top: 70px; }
.contact-card { padding: clamp(32px, 4vw, 60px); color: var(--paper); background: var(--ink); border-radius: 34px; overflow: hidden; position: relative; }
.contact-card::after { content: "@"; position: absolute; right: -2vw; bottom: -17vw; font-size: min(44vw, 650px); font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(243,241,235,.14); pointer-events: none; }
.contact-card .eyebrow { color: rgba(243,241,235,.6); }
.contact-card h2 { max-width: 880px; margin: 18px 0; font-size: clamp(35px, 4vw, 56px); line-height: 1.02; letter-spacing: -.048em; position: relative; z-index: 1; }
.contact-card > p { max-width: 650px; color: rgba(243,241,235,.65); font-size: 18px; position: relative; z-index: 1; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; position: relative; z-index: 1; }
.site-footer { width: min(100%, var(--max-width)); margin: 0 auto; padding: 38px 48px 52px; display: grid; grid-template-columns: 1fr auto auto; gap: 40px; align-items: end; color: var(--muted); font-size: 12px; }
.site-footer > div:first-child { display: flex; align-items: center; gap: 15px; }
.site-footer p { margin: 0; }
.footer-links { display: flex; gap: 20px; font-weight: 700; color: var(--ink); }
.footer-brand-copy { display: grid; gap: 7px; }
.footer-powered { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.footer-powered i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.footer-powered span { color: var(--muted); font-weight: 650; }
.footer-powered:hover { text-decoration: underline; text-underline-offset: 3px; }

.preview-dialog { width: min(94vw, 1380px); height: min(90vh, 940px); padding: 0; border: 0; border-radius: 28px; background: transparent; color: var(--ink); box-shadow: 0 30px 120px rgba(0,0,0,.35); overflow: hidden; overscroll-behavior: contain; }
.preview-dialog::backdrop { background: rgba(0,0,0,.56); backdrop-filter: blur(9px); }
.dialog-shell { height: 100%; display: flex; flex-direction: column; overflow: hidden; overscroll-behavior: contain; border-radius: 28px; background: var(--paper); border: 1px solid var(--line); }
.dialog-toolbar { height: 64px; flex: 0 0 64px; display: grid; grid-template-columns: 1fr minmax(220px, 560px) 1fr; align-items: center; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); }
.browser-dots { display: flex; gap: 7px; }.browser-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-strong); }.browser-dots i:first-child { background: var(--ink); }
.dialog-address { height: 34px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); border-radius: 9px; font-size: 12px; font-weight: 700; }
.dialog-actions { justify-self: end; display: flex; gap: 6px; }.dialog-actions .icon-button { width: 38px; height: 38px; }
.dialog-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; overscroll-behavior: contain; background: white; }
.dialog-stage iframe { width: 100%; height: 100%; border: 0; background: white; pointer-events: auto; touch-action: pan-x pan-y; overscroll-behavior: contain; }
.dialog-loader { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; gap: 18px; color: #111; background: #f3f1eb; transition: opacity .35s ease, visibility .35s ease; }
.dialog-loader.is-hidden { opacity: 0; visibility: hidden; }
.dialog-loader span { width: 42px; height: 42px; border: 2px solid rgba(17,17,17,.2); border-top-color: #111; border-radius: 50%; animation: spin .8s linear infinite; }
.dialog-loader p { margin: 0; font-size: 13px; font-weight: 700; }
.frame-fallback { position: absolute; right: 16px; bottom: 16px; z-index: 3; width: min(360px, calc(100% - 32px)); padding: 14px 16px; color: #f3f1eb; background: rgba(17,17,17,.94); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.2); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.frame-fallback.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.frame-fallback span { font-weight: 800; font-size: 13px; }.frame-fallback p { margin: 3px 0 8px; color: rgba(243,241,235,.64); font-size: 11px; }.frame-fallback a { font-size: 12px; font-weight: 800; text-decoration: underline; }

/* Multipage architecture */
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }
.page-title, .display-title { view-transition-name: page-title; }
.subpage-main { padding-top: 70px; }
.page-projects, .page-learning { background: var(--paper-2); }
.page-contact { background: var(--paper); }
.page-hero { padding-top: 105px; padding-bottom: 46px; }
.page-number { padding-bottom: 24px; border-bottom: 1px solid var(--line-strong); color: var(--muted); font: 700 11px/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; }
.page-title { max-width: 960px; margin: 34px 0 0; font-size: clamp(44px, 5vw, 72px); line-height: .96; letter-spacing: -.055em; }
.page-intro { display: grid; grid-template-columns: minmax(0, 650px) auto; justify-content: space-between; gap: 32px; align-items: end; margin: 32px 0 0 auto; max-width: 900px; }
.page-intro p { margin: 0; color: var(--muted); font-size: clamp(16px, 1.35vw, 20px); line-height: 1.42; letter-spacing: -.015em; }
.page-intro > span { color: var(--muted); font: 700 10px/1.3 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.home-principles { padding-top: 50px; }
.home-principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.home-principle { min-height: 230px; padding: 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.home-principle:last-child { border-right: 0; }
.home-principle > span { color: var(--muted); font: 700 11px/1 ui-monospace, monospace; }
.home-principle h3 { margin: auto 0 12px; font-size: 30px; line-height: 1.05; letter-spacing: -.04em; }
.home-principle p { margin: 0 0 26px; color: var(--muted); }
.home-principle .text-link { align-self: flex-start; }
.home-work { background: var(--paper-2); max-width: none; }
.home-work > * { width: min(100%, calc(var(--max-width) - 96px)); margin-left: auto; margin-right: auto; }
.home-project-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 14px; }
.home-project { min-height: 260px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: transform .3s ease, background .3s ease; }
.home-project:hover { transform: translateY(-7px); background: var(--paper); }
.home-project > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.home-project h3 { margin: auto 0 8px; font-size: clamp(34px, 3.4vw, 52px); line-height: 1; letter-spacing: -.05em; }
.home-project p { margin: 0; color: var(--muted); max-width: 360px; }
.home-project i { margin-top: 28px; font-size: 25px; font-style: normal; }
.home-contact { padding-top: 50px; }


.projects-canvas { padding-top: 0; }
.projects-canvas .projects-illustration { width: min(100%, 840px); }
.next-page { width: min(calc(100% - 96px), calc(var(--max-width) - 96px)); margin: 20px auto 48px; padding: 28px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.next-page > span { color: var(--muted); font: 700 10px/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .12em; }
.next-page a { font-size: clamp(25px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -.045em; font-weight: 800; }
.next-page i { font-style: normal; margin-left: 18px; }

.method-detail, .experience-page, .contact-page-options { padding-top: 30px; }
.process-grid-detail .process-card { min-height: 380px; }
.principles-detail { padding-top: 70px; }
.criteria-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.criteria-grid article { min-height: 230px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); display: flex; flex-direction: column; }
.criteria-grid span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; }
.criteria-grid h3 { margin: auto 0 12px; font-size: 30px; letter-spacing: -.045em; }
.criteria-grid p { margin: 0; color: var(--muted); }
.soft-skills { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line-strong); }
.soft-skills > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.soft-skills strong { padding: 13px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.timeline ul { margin: 18px 0 0; padding-left: 18px; color: var(--muted); }
.timeline li + li { margin-top: 7px; }
.learning-page { padding-top: 40px; }
.learning-page > * { width: 100%; }
.cv-download-action { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.cv-download-action small { color: var(--muted); font-size: 11px; }
.cv-action-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-powered-inline { margin-top: 5px; color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.cv-powered-inline span { color: var(--muted); font-weight: 650; }
.cv-powered-inline:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-page-main .page-hero { padding-bottom: 50px; }
.contact-page-options { padding-bottom: 90px; }
.engagement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 70px; }
.engagement-grid article { min-height: 280px; padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); }
.engagement-grid span { color: var(--muted); font: 700 11px/1 ui-monospace, monospace; }
.engagement-grid h2 { margin: auto 0 12px; font-size: 29px; line-height: 1.05; letter-spacing: -.045em; }
.engagement-grid p { margin: 0; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s cubic-bezier(.2,.8,.2,1), transform .75s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { width: min(78%, 680px); justify-self: end; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-card { border-bottom: 1px solid var(--line); }.process-card:nth-child(even) { border-right: 0; }.process-card:last-child { grid-column: span 2; }
  .stack-board { grid-template-columns: repeat(2, 1fr); }.stack-board > div { border-bottom: 1px solid rgba(243,241,235,.18); }.stack-intro { grid-column: span 2; }
  .home-project-grid { grid-template-columns: 1fr 1fr; }.home-project:first-child { grid-column: span 2; }
  .page-title { font-size: clamp(46px, 7vw, 72px); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 128px; }
  .site-header { top: 8px; width: calc(100% - 16px); height: auto; min-height: 58px; border-radius: 15px; grid-template-columns: 1fr auto; padding-bottom: 7px; }
  .wordmark-copy, .header-actions .icon-button { display: none; }
  .wordmark-mark { width: 38px; height: 38px; border-radius: 10px; }
  .button-small { min-height: 38px; }
  .desktop-nav { grid-column: 1 / -1; display: flex; order: 3; width: 100%; margin-top: 6px; padding-top: 6px; overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: none; }
  .desktop-nav::-webkit-scrollbar { display: none; }
  .desktop-nav a { flex: 0 0 auto; padding: 7px 10px; font-size: 11px; }
  .section { padding: 56px 20px; }
  .hero { padding-top: 122px; padding-bottom: 48px; }
  .display-title { font-size: clamp(38px, 10.5vw, 52px); }
  .hero-grid { margin-top: 24px; gap: 30px; }
  .hero-lead { font-size: 19px; margin-top: 28px; }
  .hero-actions, .project-actions, .heading-actions { align-items: flex-start; flex-direction: column; }
  .hero-figure { width: min(100%, 280px); justify-self: start; border-radius: 24px; padding: 9px; transform: none; }
  .hero-figure img { height: 190px; border-radius: 16px; }
  .hero-note { grid-template-columns: auto 1fr; margin-top: 30px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 44px; }
  .section-heading h2, .learning-sticky h2 { font-size: 33px; }
  .projects-section > *, .learning-section > * { width: 100%; }
  .projects-illustration { height: 42vw; min-height: 160px; max-height: 220px; }
  .project-card { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 42px 0; }
  .project-symbol { grid-column: 2; grid-row: 1; width: 116px; margin-bottom: 16px; justify-self: start; }
  .project-content { grid-column: 2; }
  .project-content h2, .project-content h3 { font-size: 33px; }
  .project-content > p { font-size: 15px; }
  .project-meta { flex-direction: column; gap: 2px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card, .process-card:nth-child(even) { min-height: 190px; border-right: 0; }
  .process-card:last-child { grid-column: auto; }
  .stack-board { grid-template-columns: 1fr; }.stack-intro { grid-column: auto; }.stack-board > div { min-height: 170px; border-right: 0; }
  .stack-intro h3 { margin-top: 40px; }
  .experience-feature { padding: 24px; border-radius: 26px; }
  .experience-grid { grid-template-columns: 1fr; gap: 54px; margin-top: 70px; }
  .timeline article { grid-template-columns: 1fr; gap: 12px; }
  .learning-layout { grid-template-columns: 1fr; }
  .learning-sticky { position: static; }
  .learning-sticky img { width: min(100%, 280px); margin: 28px auto 42px; }
  .certificate-card { grid-template-columns: 38px 1fr auto; }
  .certificate-card h3 { font-size: 18px; }
  .contact-card { border-radius: 30px; padding: 40px 24px 52px; }
  .contact-card h2 { font-size: 35px; }
  .contact-actions { flex-direction: column; align-items: stretch; }.contact-actions .button { text-align: center; }
  .site-footer { padding: 30px 20px 40px; grid-template-columns: 1fr; align-items: start; }.footer-links { flex-wrap: wrap; }
  .preview-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 18px; }
  .dialog-shell { border-radius: 18px; }.dialog-toolbar { grid-template-columns: auto 1fr auto; padding-left: 12px; gap: 10px; }.browser-dots { display: none; }
  .subpage-main { padding-top: 90px; }
  .page-hero { padding-top: 86px; padding-bottom: 54px; }
  .page-title { margin-top: 32px; font-size: clamp(38px, 10vw, 50px); }
  .page-intro { grid-template-columns: 1fr; margin-top: 26px; gap: 20px; }
  .page-intro > span { white-space: normal; }
  .home-principle-grid, .home-project-grid, .criteria-grid, .engagement-grid { grid-template-columns: 1fr; }
  .cv-action-buttons { width: 100%; flex-direction: column; }
  .cv-action-buttons .button { width: 100%; }
  .home-principle { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .home-principle:last-child { border-bottom: 0; }
  .home-project:first-child { grid-column: auto; }
  .home-project { min-height: 220px; }
  .home-work > * { width: 100%; }
  .next-page { width: calc(100% - 40px); margin-bottom: 45px; align-items: flex-start; flex-direction: column; }
  .next-page a { font-size: 34px; }
  .process-grid-detail .process-card { min-height: 210px; }
  .criteria-grid article, .engagement-grid article { min-height: 210px; }
  .learning-page { padding-top: 20px; }
}

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