:root{color-scheme:light;--bg:#f5f5f7;--surface:#fff;--ink:#1d1d1f;--muted:#66666e;--line:#dedee3;--accent:#0066cc;--accent-soft:#e9f2fe;--header:rgba(245,245,247,.88)}
:root[data-theme=dark]{color-scheme:dark;--bg:#0c0c0e;--surface:#17171a;--ink:#f5f5f7;--muted:#aaaab3;--line:#333338;--accent:#79b5ff;--accent-soft:#17273b;--header:rgba(12,12,14,.88)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:96px}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;line-height:1.6}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}button,a,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:5px}h1,h2,h3,p{margin:0}h1,h2,h3{text-wrap:balance}p{text-wrap:pretty}.wrap{width:min(1080px,calc(100% - 64px));margin-inline:auto}.muted{color:var(--muted)}.skip{position:fixed;top:8px;left:8px;z-index:20;background:var(--surface);padding:12px;transform:translateY(-150%)}.skip:focus{transform:none}
.header{position:sticky;top:0;z-index:10;background:var(--header);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.nav{display:flex;align-items:center;justify-content:space-between;gap:24px;height:68px}.brand{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:650;white-space:nowrap}.monogram{display:grid;place-items:center;font-size:22px;letter-spacing:-2px;font-weight:750;width:34px;height:34px;border-radius:10px;background:var(--ink);color:var(--bg);padding-right:2px}.nav nav{display:flex;gap:28px;margin-left:auto;font-size:13px}.nav nav a{min-height:44px;display:flex;align-items:center;color:var(--muted)}.nav a:hover{color:var(--accent)}.controls{display:flex;align-items:center;gap:3px;border-left:1px solid var(--line);padding-left:12px}.controls button{display:grid;place-items:center;width:44px;height:44px;background:none;border:0;color:var(--ink);border-radius:50%;font-size:12px;font-weight:650}.controls button:hover{background:var(--accent-soft)}.controls svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5}
.hero{text-align:center;padding:104px 0 92px}.eyebrow{font-size:13px;font-weight:600;letter-spacing:.015em;color:var(--muted);margin-bottom:25px}.hero h1{font-size:clamp(40px,6.2vw,72px);line-height:1.08;letter-spacing:-.058em;font-weight:700}.hero-lead{max-width:600px;margin:28px auto 0;color:var(--muted);font-size:19px;line-height:1.65}.actions{display:flex;align-items:center;gap:26px;flex-wrap:wrap;margin-top:30px}.hero .actions{justify-content:center}.button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:16px;padding:12px 22px;border-radius:999px;font-size:14px;font-weight:550}.primary{background:#0071e3;color:#fff}.primary:hover{background:#0064c9}.text-link{display:inline-flex;align-items:center;gap:9px;color:var(--accent);font-size:14px;min-height:44px}.text-link:hover{text-decoration:underline;text-underline-offset:5px}.hero-meta{display:flex;justify-content:center;align-items:center;gap:22px;margin-top:27px;color:var(--muted);font-size:12px}.hero-meta a:hover{color:var(--accent)}.separator{color:var(--line)}
.section{padding-block:76px;border-top:1px solid var(--line)}.section-label{display:flex;gap:14px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:600;margin-bottom:30px}.section-label>span:first-child{opacity:.75;font-variant-numeric:tabular-nums}h2{font-size:clamp(28px,4vw,44px);line-height:1.16;letter-spacing:-.043em;font-weight:650}h3{letter-spacing:-.035em}.about-layout{display:grid;grid-template-columns:1fr 1.15fr;gap:72px}.about h2{font-size:30px}.caption{margin-top:18px;font-size:14px;color:var(--muted);max-width:300px}.about-copy>p{font-size:15px;color:var(--muted);line-height:1.85}.photo-note{display:flex;align-items:center;gap:12px;margin-top:23px;color:var(--muted)}.photo-placeholder{width:38px;height:38px;border:1px dashed var(--line);display:grid;place-items:center;border-radius:50%;font-size:11px;letter-spacing:.08em}.photo-note small{font-size:11px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:48px;margin-bottom:36px}.section-heading>p{max-width:320px;color:var(--muted);font-size:15px}
.project{background:var(--surface);border:1px solid var(--line);border-radius:24px;overflow:hidden}.featured{display:grid;grid-template-columns:1.1fr 1fr;margin-bottom:24px}.project-copy{padding:38px}.project-top{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:27px}.category{color:var(--accent);font-size:10px;letter-spacing:.07em;text-transform:uppercase;font-weight:650}.project-index{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}.project h3{font-size:31px;line-height:1.2;letter-spacing:-.045em;margin-bottom:11px}.project .project-pitch{font-size:18px;color:var(--ink);line-height:1.4;letter-spacing:-.025em;margin-bottom:17px}.project p{font-size:14px;color:var(--muted);line-height:1.75}.project .project-period{font-size:11px;margin-top:16px}.project-links{display:flex;gap:22px;flex-wrap:wrap;margin-top:21px;font-size:13px;color:var(--accent)}.project-links a{display:flex;align-items:center;min-height:36px}.project-links a:hover{text-decoration:underline;text-underline-offset:5px}details{margin-top:18px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}summary{cursor:pointer;padding:17px 0;min-height:48px;color:var(--ink);font-weight:550;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px}summary::-webkit-details-marker{display:none}summary:after{content:"+";font-size:19px;line-height:1;flex-shrink:0;color:var(--muted)}details[open]>summary:after{content:"−"}details ul{padding-left:17px;margin:0 0 17px}details li+li{margin-top:12px}.project .stack{font-size:11px;border-top:1px solid var(--line);padding-top:14px;margin-bottom:6px}details>p{margin-bottom:16px}
.project-visual{padding:34px;display:flex;flex-direction:column;justify-content:center;background:var(--bg);border-left:1px solid var(--line)}.visual-heading{display:flex;gap:9px;align-items:center;font-size:11px;color:var(--muted);margin-bottom:27px}.signal{width:6px;height:6px;border-radius:50%;background:var(--accent)}.flow{list-style:none;margin:0;padding:0;display:grid;gap:10px}.flow li{display:flex;gap:13px;align-items:center;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:13px 15px}.node-icon{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;background:var(--bg);border:1px solid var(--line);border-radius:9px;font-size:10px;color:var(--muted)}.flow li>span:last-child{margin-left:auto;color:var(--muted)}.flow strong{font-size:13px;font-weight:550;display:block}.flow small{font-size:10px;color:var(--muted);display:block;margin-top:2px}.flow .ai-node{border-color:var(--accent);background:var(--accent-soft)}.ai-node .node-icon{background:var(--accent);color:var(--surface);border:0}.project .visual-caption{font-size:10px;color:var(--muted);line-height:1.6;margin-top:21px;max-width:320px}.offline{text-align:center;align-items:center}.offline .visual-heading{margin-bottom:30px}.offline-symbol{border:1px solid var(--line);background:var(--surface);width:104px;height:104px;border-radius:28px;display:grid;place-items:center;margin:10px 0 25px;box-shadow:0 12px 30px #00000006}.offline-symbol svg{width:69px;height:69px;fill:none;stroke:var(--accent);stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.visual-title{font-size:23px;line-height:1.2;letter-spacing:-.04em;font-weight:600;max-width:260px}.offline-steps{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--muted);margin-top:25px;flex-wrap:wrap;justify-content:center}.offline-steps span:nth-child(odd){padding:6px 9px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}
.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.compact{padding:27px;display:flex;flex-direction:column;border-radius:20px}.compact .project-top{margin-bottom:24px}.compact h3{font-size:24px}.compact .project-pitch{font-size:16px}.compact>p:not(.project-pitch){font-size:13px}.compact .project-links{margin-top:auto;padding-top:15px}.compact details{margin-bottom:16px}
.focus-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin-top:44px}.focus-number{display:block;color:var(--accent);font-size:12px;margin-bottom:16px}.focus-grid h3,.skills h3{font-size:18px;font-weight:600;margin-bottom:10px}.focus-grid p,.skills p{font-size:14px;color:var(--muted);line-height:1.8}.skills{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin-top:38px}.history h2,.education h2{font-size:30px;margin-bottom:25px}.history-row{display:flex;justify-content:space-between;align-items:baseline;gap:24px;padding:19px 0;border-top:1px solid var(--line);font-size:14px}.history-row>span:last-child{font-size:12px;color:var(--muted);white-space:nowrap}.contact-section{background:var(--surface);border-block:1px solid var(--line);padding:90px 0}.contact-section h2{font-size:clamp(32px,4.5vw,52px)}.contact-section p:not(.eyebrow){max-width:510px;color:var(--muted);font-size:16px;margin-top:24px}.contact-section .eyebrow{margin-bottom:20px}footer{display:flex;justify-content:space-between;gap:20px;padding:27px 0;font-size:11px;color:var(--muted)}footer a:hover{color:var(--accent)}
@media(min-width:1200px){.hero{padding-top:120px;padding-bottom:105px}}
@media(max-width:900px){.featured{grid-template-columns:1fr 1fr}.project-copy{padding:28px}.project-visual{padding:23px}.project-grid{grid-template-columns:1fr}.compact{display:block}.compact .project-top{margin-bottom:14px}.compact .project-links{padding-top:0;margin-top:12px}.about-layout{gap:35px}.section-heading{gap:24px}.section-heading>p{max-width:240px}.flow small{font-size:10px}.skills,.focus-grid{gap:24px}}
@media(max-width:640px){.wrap{width:calc(100% - 40px)}.nav{height:62px;gap:10px}.brand{gap:0}.brand>span:last-child{display:none}.monogram{width:31px;height:31px;font-size:21px}.nav nav{gap:15px;font-size:12px}.controls{gap:0;padding-left:5px}.controls button{width:38px;height:44px}.hero{padding:68px 0 58px}.eyebrow{font-size:11px;max-width:280px;margin-inline:auto}.hero h1{font-size:clamp(34px,8.7vw,52px);letter-spacing:-.05em}.hero-lead{font-size:16px;margin-top:22px}.hero-meta{gap:16px;font-size:11px;flex-wrap:wrap;margin-top:23px}.hero-meta .separator{display:none}.hero-meta>span:first-child{width:100%}.actions{gap:18px;margin-top:25px}.button{font-size:13px;padding:12px 19px}.section{padding-block:52px}.section-label{margin-bottom:23px}.about-layout{grid-template-columns:1fr;gap:24px}.about h2{font-size:28px;max-width:340px}.caption{max-width:none;font-size:13px}.about-copy>p{font-size:14px}.section-heading{display:block;margin-bottom:28px}.section-heading>p{max-width:400px;margin-top:18px;font-size:14px}.featured{grid-template-columns:1fr;border-radius:20px}.project-copy{padding:26px}.project h3{font-size:28px}.project-top{margin-bottom:21px}.project-visual{border-left:0;border-top:1px solid var(--line);padding:25px}.flow small{font-size:11px}.flow strong{font-size:14px}.project .visual-caption{font-size:11px}.offline{padding-block:32px}.project-grid{gap:18px}.compact{padding:26px}.compact h3{font-size:24px}.skills,.focus-grid{grid-template-columns:1fr;gap:25px;margin-top:29px}.focus-grid>div+div,.skills>div+div{padding-top:23px;border-top:1px solid var(--line)}.focus-number{margin-bottom:7px}.history-row{display:block;font-size:13px}.history-row>span{display:block}.history-row>span:last-child{margin-top:4px;white-space:normal}.contact-section{padding:62px 0}.contact-section p:not(.eyebrow){font-size:14px}.contact-section .eyebrow{margin-left:0}.contact-section .actions{gap:15px}.contact-section .button{font-size:12px;gap:8px;padding-inline:17px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Editorial direction inspired by Gabriel Ribeiro's portfolio: warm canvas, quiet chrome, strong type and compact entries. */
:root{--bg:#faf8f3;--surface:#fffdf9;--ink:#171614;--muted:#625e57;--line:#ded9d0;--accent:#171614;--accent-soft:#eeeae2;--header:rgba(250,248,243,.9)}
:root[data-theme=dark]{--bg:#151412;--surface:#1d1b18;--ink:#f8f5ef;--muted:#bcb5aa;--line:#39352f;--accent:#f8f5ef;--accent-soft:#2b2823;--header:rgba(21,20,18,.9)}
body{font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.wrap{width:min(920px,calc(100% - 48px))}.header{border-bottom:0;background:var(--header)}.nav{height:76px}.brand{font-size:13px}.monogram{border-radius:50%;background:var(--ink);color:var(--bg);font-size:18px}.nav nav{gap:24px}.nav nav a{font-size:12px}.controls{border-left:0;padding-left:0}
.hero{text-align:left;padding:92px 0 86px}.hero .eyebrow{margin-bottom:22px}.hero h1{font-size:clamp(48px,8vw,86px);font-weight:600;letter-spacing:-.075em;max-width:800px}.hero-lead{margin:28px 0 0;max-width:560px;font-size:17px;line-height:1.7}.hero .actions{justify-content:flex-start}.hero-meta{justify-content:flex-start;margin-top:25px;gap:18px}.primary{background:var(--ink);color:var(--bg)}.primary:hover{background:var(--muted)}
.hero-mosaic{display:grid;grid-template-columns:150px 150px 1fr;gap:12px;max-width:560px;margin-top:40px}.mosaic-card{height:146px;overflow:hidden;border-radius:4px;background:var(--accent-soft);border:1px solid var(--line);position:relative}.mosaic-portrait img{width:100%;height:100%;object-fit:cover;filter:grayscale(1);mix-blend-mode:multiply}.mosaic-signal,.mosaic-code{display:flex;flex-direction:column;justify-content:space-between;padding:16px}.mosaic-signal{background:#d9d2c5;color:#171614}.mosaic-signal span{font-size:44px;letter-spacing:-.09em;line-height:1}.mosaic-signal small,.mosaic-code small{font-size:11px;line-height:1.35}.mosaic-code{background:var(--ink);color:var(--bg);justify-content:flex-end}.mosaic-code span{position:absolute;top:15px;right:15px;font-size:11px}.mosaic-code:after{content:"↗";font-size:34px;line-height:1;margin-bottom:9px}
.section{padding-block:72px}.section-label{font-size:10px;letter-spacing:.14em}.section-heading{align-items:flex-start}.section-heading h2{font-size:clamp(34px,5vw,56px);font-weight:600}.about h2{font-size:34px}.project{border-radius:4px;box-shadow:none}.featured{grid-template-columns:1fr 1fr}.project-copy{padding:34px}.project-visual{background:var(--accent-soft);border-left:1px solid var(--line)}.project-grid{gap:12px}.compact{border-radius:4px}.focus-grid,.skills{gap:26px}.contact-section{background:var(--ink);color:var(--bg);border:0}.contact-section .muted,.contact-section p:not(.eyebrow){color:#aaa49a}.contact-section .primary{background:var(--bg);color:var(--ink)}footer{padding-block:24px}
@media(max-width:640px){.wrap{width:calc(100% - 36px)}.hero{text-align:left;padding-top:68px}.hero h1{font-size:clamp(42px,12vw,62px)}.hero-mosaic{grid-template-columns:1fr 1fr;max-width:340px}.mosaic-card{height:132px}.mosaic-portrait{grid-row:span 2;height:276px}.mosaic-code{grid-column:2}.featured{grid-template-columns:1fr}.project-visual{border-left:0}.nav nav{gap:11px}}

/* Audit fixes: the person and the work lead; utility text remains readable in every theme. */
.hero{padding-bottom:58px}.hero h1{font-size:clamp(48px,7vw,72px);letter-spacing:-.065em}.hero-role{margin-top:10px;font-size:17px;color:var(--muted);font-weight:600}.hero-lead{margin-top:22px;max-width:590px;font-size:17px}.hero-mosaic{grid-template-columns:minmax(180px,250px);max-width:250px;margin-top:30px}.mosaic-card{height:250px}.mosaic-portrait{grid-row:auto}.mosaic-portrait img{object-position:center 20%;mix-blend-mode:normal;filter:grayscale(.9)}.contact-section .text-link{color:var(--bg);opacity:.9}.contact-section .text-link:hover{color:var(--bg);opacity:1}.section-heading h2{max-width:650px}.section-heading>p{font-size:16px}.category,.project-index,.section-label{font-size:11px}.project .visual-caption{font-size:11px}.contact-section p:not(.eyebrow){color:#c2bdb4}
@media(max-width:640px){.hero{padding-top:54px;padding-bottom:42px}.hero h1{font-size:clamp(42px,13vw,58px)}.hero-role{font-size:15px;line-height:1.45}.hero-lead{font-size:16px;line-height:1.65}.hero-mosaic{grid-template-columns:160px;max-width:160px;margin-top:26px}.mosaic-card{height:160px}.mosaic-portrait img{object-position:center 18%}.hero .actions{margin-top:25px}.about{padding-top:46px}}
