:root { color-scheme: dark; --bg: #110e0f; --paper: #e1cbb8; --muted: #b7a69c; --line: #e1cbb826; font-family: Arial, Helvetica, sans-serif; color: var(--paper); background: #000000; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; }
body.loading { overflow: hidden; }
::selection { background: #e1cbb8; color: #241215; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--paper); outline-offset: 6px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 14px 20px; background: var(--paper); color: var(--bg); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
/* The original, pure-black welcome animation. */
.welcome { position: fixed; inset: 0; min-height: 100svh; display: grid; place-items: center; overflow: hidden; z-index: 20; background: #000000; color: #ffffff; transition: opacity 650ms ease; }
.welcome.leaving { opacity: 0; pointer-events: none; }
.intro { width: min(280px, 72vw); text-align: center; transform: translateY(-4px); }
.intro h1 { font-size: clamp(42px, 6vw, 52px); line-height: 1; letter-spacing: -2.8px; font-weight: 750; margin: 0 0 27px; animation: arrive 850ms cubic-bezier(.22,1,.36,1) both; }
.label { text-transform: uppercase; font-size: 11px; font-weight: 600; letter-spacing: 4px; line-height: 1.6; margin: 0 -20px 39px; animation: arrive 850ms 140ms cubic-bezier(.22,1,.36,1) both; }
.track { height: 2px; width: 100%; overflow: hidden; background: #333333; animation: appear 700ms 250ms both; }
.bar { display: block; width: 100%; height: 100%; background: #ffffff; transform: scaleX(0); transform-origin: left; }
.portfolio { background: var(--bg); }
/* Desktop editorial composition. */
.hero { min-height: 760px; height: min(940px, 100svh); position: relative; isolation: isolate; overflow: hidden; padding: 0 clamp(24px, 4.2vw, 80px); background: radial-gradient(ellipse at 54% 73%, #49232a 0, #271619 35%, #110e0f 75%); }
.masthead { height: 104px; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 4; border-bottom: 1px solid var(--line); }
.brand { font-size: 12px; letter-spacing: 1.7px; font-weight: 600; display: flex; flex-direction: column; gap: 8px; }
.brand span { font-size: 9px; font-weight: 400; letter-spacing: 1.5px; color: var(--muted); }
.masthead nav { display: flex; gap: clamp(24px, 3vw, 52px); align-items: center; font-size: 10px; letter-spacing: 1.6px; }
.masthead nav a { min-height: 44px; display: flex; align-items: center; gap: 12px; transition: color .2s; }
.masthead nav a:hover { color: #fff; }
.hero-meta { display: flex; justify-content: space-between; margin-top: 24px; font-size: 9px; letter-spacing: 1.8px; color: var(--muted); }
.availability { display: flex; align-items: center; gap: 9px; }
.availability i { width: 5px; height: 5px; border-radius: 50%; background: #c1b994; box-shadow: 0 0 10px #c1b99444; }
.hero-title { position: absolute; top: 160px; left: 0; right: 0; width: 100%; margin: 0; text-align: center; font-family: 'Bodoni MT', 'Times New Roman', serif; font-weight: 400; font-size: 15.7vw; letter-spacing: -.065em; line-height: 1; transform: scaleY(1.45); transform-origin: center top; z-index: -1; }
.portrait-stage { position: absolute; width: 43%; left: 28.5%; top: 28%; bottom: 76px; display: grid; place-items: end center; z-index: 1; pointer-events: none; }
.portrait { display: block; position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-width: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 18px 30px #0005); }
.portrait-ring { position: absolute; width: 85%; aspect-ratio: 1; border: 1px solid #e1cbb814; border-radius: 50%; top: 20%; z-index: -1; }
.portrait-caption { display: none; }
.hero-left { position: absolute; left: clamp(24px, 4.2vw, 80px); bottom: 114px; width: 28%; z-index: 3; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; line-height: 1.7; font-weight: 400; margin: 0 0 20px; }
.hero-left .eyebrow { color: var(--muted); }
.statement { font-size: clamp(27px, 3vw, 47px); font-weight: 400; line-height: 1.13; letter-spacing: -1.5px; margin: 0 0 28px; }
.statement em { font-family: Georgia, serif; font-weight: 400; color: #d9afa3; }
.pill { display: inline-flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 48px; padding: 0 22px; border: 1px solid #bca28c85; border-radius: 40px; font-size: 10px; letter-spacing: 1px; transition: background .2s, color .2s, translate .2s; }
.pill span { font-size: 19px; }
.pill:hover { background: var(--paper); color: #211112; translate: 0 -2px; }
.signature { font-family: 'Brush Script MT', 'Segoe Script', cursive; color: #bd8383; font-size: 26px; transform: rotate(-5deg); margin: 30px 0 0; }
.hero-right { position: absolute; bottom: 116px; right: clamp(24px, 4.2vw, 80px); width: 21%; max-width: 265px; z-index: 3; font-size: 14px; line-height: 1.8; color: #c6b2a7; }
.hero-right > p { margin: 0 0 20px; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; font-size: 10px; letter-spacing: 1.1px; border-bottom: 1px solid #8b7063; color: var(--paper); }
.text-link span { font-size: 18px; }
.location { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; font-size: 9px; letter-spacing: 1.2px; line-height: 1.9; }
.globe { font-family: Georgia, serif; font-size: 42px; font-weight: 400; }
.hero-footer { position: absolute; bottom: 0; left: clamp(24px, 4.2vw, 80px); right: clamp(24px, 4.2vw, 80px); min-height: 65px; display: flex; justify-content: space-between; align-items: center; gap: 20px; z-index: 3; border-top: 1px solid var(--line); font-size: 8px; letter-spacing: 1.5px; color: var(--muted); }
.hero-footer a { display: inline-flex; gap: 18px; align-items: center; min-height: 44px; }
.hero-footer a span { font-size: 16px; }
/* Clear content hierarchy and quieter detail. */
.section { padding: clamp(72px, 9vw, 140px) max(7%, calc((100% - 1280px) / 2)); border-top: 1px solid var(--line); }
.about, .education { display: grid; grid-template-columns: 1fr 2.2fr; gap: 50px; }
.section > .eyebrow { color: #b18c80; }
.section h2 { font-family: Georgia, serif; font-size: clamp(38px, 4.7vw, 68px); font-weight: 400; letter-spacing: -2.2px; line-height: 1.1; margin: 0 0 32px; }
.section p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.85; max-width: 680px; }
.skills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.skills span { border: 1px solid #e1cbb830; border-radius: 30px; font-size: 11px; padding: 11px 16px; color: #d5c1b2; }
.work { background: #1a1214; }
.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 30px; margin-bottom: 44px; }
.section-heading .eyebrow { color: #b18c80; padding-top: 9px; }
.section-heading h2 { margin: 0; }
.project { padding: 42px 0; border-top: 1px solid #e1cbb830; display: grid; grid-template-columns: 60px 1fr 170px; gap: 26px; transition: border-color .25s; }
.project:hover { border-color: #d5b6a3; }
.project-number, .project-type, .stack { font-size: 10px; letter-spacing: 1.1px; line-height: 1.7; }
.project-number { padding-top: 3px; color: #a4877d; }
.project .eyebrow { color: #a88c82; font-size: 9px; margin-bottom: 16px; }
.project h3 { font-family: Georgia, serif; font-size: clamp(29px, 3vw, 43px); font-weight: 400; letter-spacing: -.8px; line-height: 1.13; margin: 0 0 18px; }
.project p:not(.eyebrow) { max-width: 620px; font-size: 14px; }
.project-type { text-align: right; color: #a88c82; }
.stack { color: #c6a28f; display: block; margin-top: 25px; font-size: 9px; }
.education p { margin-bottom: 26px; }
.contact { text-align: center; background: radial-gradient(ellipse at 50% 90%, #48242b, #211416 70%); }
.contact .eyebrow { color: #c09f91; }
.contact h2 { font-size: clamp(64px, 10vw, 145px); letter-spacing: -.06em; margin: 24px 0 36px; }
.contact > a { display: inline-block; font-size: clamp(14px, 2vw, 22px); border-bottom: 1px solid #927365; padding: 12px 0; overflow-wrap: anywhere; }
.bottom { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 90px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 9px; letter-spacing: 1px; color: var(--muted); }
.replay { border: 0; background: none; padding: 12px; min-height: 44px; color: inherit; font-size: 9px; letter-spacing: 1px; cursor: pointer; }
.bottom a { min-height: 44px; display: inline-flex; align-items: center; }
@keyframes arrive { from { opacity: 0; translate: 0 12px; filter: blur(4px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 1600px) { .hero-title { font-size: 250px; } }
/* Tablet and phone: portrait and copy use separate rows, never overlap. */
@media (max-width: 900px) {
 .hero { height: auto; min-height: 0; padding: 0 6%; display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 36px; }
 .masthead { grid-column: 1 / -1; height: 92px; }
 .hero-meta { grid-column: 1 / -1; margin: 22px 0 0; font-size: 8px; letter-spacing: 1px; }
 .hero-title { position: relative; top: auto; left: auto; right: auto; grid-column: 1 / -1; grid-row: 3; font-size: 15.3vw; width: 100%; line-height: 1; margin: 22px 0 0; transform: scaleY(1.25); }
 .portrait-stage { position: relative; top: auto; left: auto; bottom: auto; width: 100%; grid-column: 1 / -1; grid-row: 4; height: clamp(340px, 67vw, 510px); margin-top: -18px; }
 .portrait { height: 100%; max-width: 100%; }
 .portrait-ring { height: 90%; width: auto; top: 5%; }
 .portrait-caption { display: block; position: absolute; left: 0; bottom: 24px; font-size: 8px; letter-spacing: 1.3px; line-height: 1.8; color: #d0b4a5; }
 .portrait-caption span { display: block; font-size: 7px; color: #a68a80; }
 .hero-left, .hero-right { position: static; width: auto; max-width: none; bottom: auto; left: auto; right: auto; padding: 32px 0 38px; border-top: 1px solid var(--line); }
 .hero-left { grid-column: 1; }
 .hero-right { grid-column: 2; font-size: 14px; }
 .hero-left .eyebrow { font-size: 8px; }
 .statement { font-size: clamp(30px, 4.4vw, 43px); }
 .signature { font-size: 25px; margin-top: 22px; }
 .location { margin-top: 24px; font-size: 8px; }
 .hero-footer { position: static; grid-column: 1 / -1; min-height: 66px; font-size: 7px; letter-spacing: 1px; }
 .hero-footer > span:last-child { display: none; }
 .section { padding: 72px 6%; }
 .about, .education { grid-template-columns: 1fr; gap: 22px; }
 .section h2 { font-size: clamp(38px, 6vw, 56px); }
 .section-heading { display: block; }
 .section-heading .eyebrow { padding: 0; margin-bottom: 22px; }
 .project { grid-template-columns: 32px 1fr; gap: 16px; }
 .project-type { grid-column: 2; text-align: left; font-size: 8px; }
 .contact h2 { font-size: 12vw; }
}
@media (max-width: 480px) {
 .hero { column-gap: 0; }
 .masthead { height: 88px; gap: 14px; }
 .brand { font-size: 10px; letter-spacing: 1px; gap: 7px; }
 .brand span { font-size: 7px; letter-spacing: .7px; }
 .masthead nav { gap: 15px; font-size: 8px; letter-spacing: .5px; }
 .masthead nav a { gap: 5px; }
 .hero-meta { font-size: 7px; letter-spacing: .7px; align-items: center; gap: 12px; }
 .availability { gap: 5px; max-width: 120px; text-align: right; line-height: 1.6; }
 .availability i { flex-shrink: 0; }
 .hero-title { margin-top: 26px; font-size: 15.1vw; }
 .portrait-stage { height: 355px; margin-top: -6px; }
 .portrait-caption { font-size: 7px; bottom: 15px; max-width: 95px; }
 .portrait-caption span { font-size: 6px; margin-top: 5px; }
 .hero-left { grid-column: 1 / -1; padding: 28px 0; }
 .statement { font-size: clamp(34px, 9vw, 44px); line-height: 1.08; margin-bottom: 22px; }

 .signature { display: none; }
 .pill { min-height: 48px; font-size: 9px; }
 .hero-right { grid-column: 1 / -1; padding: 25px 0 28px; font-size: 14px; display: grid; grid-template-columns: 1fr; }
 .hero-right > p { margin-bottom: 12px; max-width: 330px; }
 .text-link { justify-self: start; }
 .location { display: flex; margin-top: 22px; justify-content: flex-start; gap: 22px; }
 .hero-footer { font-size: 7px; min-height: 60px; gap: 10px; }
 .hero-footer a { gap: 8px; }
 .section { padding: 58px 6%; }
 .section h2 { font-size: 37px; letter-spacing: -1.7px; margin-bottom: 25px; }
 .section p:not(.eyebrow) { font-size: 14px; }
 .eyebrow { font-size: 9px; }
 .skills { gap: 7px; }
 .skills span { font-size: 10px; padding: 9px 13px; }
 .project { grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 30px 0; }
 .project h3 { font-size: 29px; }
 .project p:not(.eyebrow) { font-size: 13px; }
 .project .eyebrow, .stack { font-size: 8px; letter-spacing: .7px; }
 .contact h2 { font-size: 65px; letter-spacing: -4px; }
 .contact > a { font-size: 14px; }
 .bottom { margin-top: 48px; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-size: 8px; }
 .bottom > span { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *, *::before, *::after { animation: none !important; transition: none !important; }
}

.project-live { align-self: start; justify-self: end; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 0 5px; color: var(--paper); border-bottom: 1px solid #927365; transition: color .2s, border-color .2s; }
.project-live:hover, .project-title-link:hover { color: #fff; border-color: #fff; }
.project-title-link { transition: color .2s; }
@media (max-width: 900px) { .project-live { justify-self: start; font-size: 10px; } }
/* Actual welcome-page capture, linked to the live project. */
.project-preview { display: block; margin-bottom: 32px; border: 1px solid #e1cbb830; border-radius: 10px; overflow: hidden; background: #24191b; box-shadow: 0 14px 35px #0003; transition: border-color .25s, translate .25s; }
.project-preview:hover { border-color: #bca28c; translate: 0 -3px; }
.preview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; font-size: 9px; letter-spacing: .3px; color: var(--muted); }
.window-dots { display: flex; gap: 5px; }
.window-dots i { display: block; width: 5px; height: 5px; background: #8c6c63; border-radius: 50%; }
.project-preview img { width: 100%; height: auto; display: block; }
.preview-caption { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; color: var(--muted); font-size: 8px; letter-spacing: 1.2px; }
.preview-caption span { color: var(--paper); }
@media (max-width: 480px) { .preview-toolbar { font-size: 7px; padding: 11px 9px; gap: 5px; } .window-dots { gap: 3px; } .window-dots i { width: 4px; height: 4px; } .preview-caption { padding: 12px 10px; font-size: 7px; letter-spacing: .6px; } .project-preview { margin-bottom: 26px; border-radius: 7px; } }
/* Reserve separate desktop rows for the display title and supporting copy. */
@media (min-width: 901px) {
 .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 4vw; grid-template-rows: 104px 54px clamp(190px, 22vw, 330px) minmax(340px, auto) 65px; height: auto; min-height: 100svh; }
 .masthead { grid-column: 1 / -1; grid-row: 1; }
 .hero-meta { grid-column: 1 / -1; grid-row: 2; margin: 0; align-items: center; }
 .hero-title { position: relative; inset: auto; grid-column: 1 / -1; grid-row: 3; align-self: start; margin: 0; line-height: .9; transform: scaleY(1.2); }
 .hero-left { position: relative; inset: auto; grid-column: 1; grid-row: 4; align-self: center; width: auto; max-width: 365px; padding: 16px 0 30px; }
 .hero-right { position: relative; inset: auto; grid-column: 3; grid-row: 4; align-self: center; justify-self: end; width: 100%; max-width: 265px; padding: 16px 0 30px; }
 .portrait-stage { top: clamp(200px, 19vw, 285px); width: 40%; left: 30%; }
 .hero-footer { position: relative; inset: auto; grid-column: 1 / -1; grid-row: 5; }
}
/* Motion: entrance, scroll reveal, hover and tactile press feedback. */
.reading-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 15; background: linear-gradient(90deg, #946361, #e1cbb8); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.scroll-reveal { opacity: 0; translate: 0 26px; transition: opacity .75s ease, translate .75s cubic-bezier(.22,1,.36,1); }
.scroll-reveal.is-visible { opacity: 1; translate: 0 0; }
.intro-complete .hero-title { animation: title-unveil 1.1s cubic-bezier(.22,1,.36,1) both; }
.intro-complete .portrait-stage { animation: portrait-unveil 1.15s .12s cubic-bezier(.22,1,.36,1) both; }
.intro-complete .hero-left, .intro-complete .hero-right { animation: content-unveil .8s .25s cubic-bezier(.22,1,.36,1) both; }
.masthead nav a { position: relative; }
.masthead nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.masthead nav a:hover::after, .masthead nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.press-feedback { position: relative; overflow: hidden; isolation: isolate; transition: background .25s, color .25s, border-color .25s, scale .18s; }
.press-feedback:active, .project-preview:active { scale: .97; }
.click-ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: 0; pointer-events: none; animation: click-wave .65s ease-out both; }
.pill > span:not(.click-ripple), .text-link > span:not(.click-ripple), .project-live > span:not(.click-ripple) { transition: translate .25s ease; }
.skills span { transition: color .25s, border-color .25s, background .25s, translate .25s; }
.project-preview { transition: border-color .3s, translate .3s, box-shadow .3s, scale .18s; }
.project-preview img { transition: filter .45s ease; }
.project-title-link { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: left bottom; transition: color .25s, background-size .35s; }
@media (hover: hover) and (pointer: fine) {
 .pill:hover > span:not(.click-ripple), .project-live:hover > span:not(.click-ripple) { translate: 3px -3px; }
 .text-link:hover > span:not(.click-ripple) { translate: 0 3px; }
 .skills span:hover { translate: 0 -3px; background: #e1cbb810; color: #fff; border-color: #bca28c; }
 .project-preview:hover { box-shadow: 0 20px 45px #0005, 0 0 0 1px #bca28c33; }
 .project-preview:hover img { filter: brightness(1.04); }
 .project-title-link:hover { background-size: 100% 1px; }
 .replay:hover { color: #fff; background: #e1cbb80c; }
}
@keyframes title-unveil { from { opacity: 0; clip-path: inset(100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes portrait-unveil { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes content-unveil { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes click-wave { from { transform: scale(0); opacity: .22; } to { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
 .scroll-reveal { opacity: 1; translate: none; }
 .press-feedback:active, .project-preview:active { scale: 1; }
 .click-ripple { display: none; }
}
/* Layered scroll storytelling, with a static fallback in other browsers. */
.heading-word { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.heading-word > span { display: inline-block; }
.scroll-reveal .heading-word > span { transform: translateY(110%); transition: transform .85s cubic-bezier(.22,1,.36,1); transition-delay: var(--word-delay, 0ms); }
.scroll-reveal.is-visible .heading-word > span { transform: translateY(0); }
.scroll-reveal .skills span { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1), background .25s, color .25s, border-color .25s, translate .25s; transition-delay: var(--skill-delay, 0ms); }
.scroll-reveal.is-visible .skills span { opacity: 1; transform: translateY(0); }
.project.scroll-reveal { transform: scale(.98); transform-origin: center top; transition: opacity .8s ease, translate .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1), border-color .25s; }
.project.scroll-reveal.is-visible { transform: scale(1); }
.title-depth { display: block; }
@supports (animation-timeline: scroll()) {
 @media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .title-depth { animation: title-scroll-depth linear both; animation-timeline: scroll(root block); animation-range: 0px 750px; }
  .portrait { animation: portrait-scroll-depth linear both; animation-timeline: scroll(root block); animation-range: 0px 750px; }
 }
}
@keyframes title-scroll-depth { from { translate: 0 0; } to { translate: 0 30px; } }
@keyframes portrait-scroll-depth { from { transform: translateY(0); } to { transform: translateY(-36px); } }
@media (prefers-reduced-motion: reduce) {
 .scroll-reveal .heading-word > span, .project.scroll-reveal { transform: none; }
 .scroll-reveal .skills span { opacity: 1; transform: none; }
}
/* A real certificate preview with the original PDF available alongside it. */
.education-certificate-link { display: inline-flex; align-items: center; gap: 20px; min-height: 48px; margin-bottom: 20px; font-size: 12px; border-bottom: 1px solid #927365; }
.certificates { background: #171113; }
.certificate-card { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; border-top: 1px solid var(--line); padding-top: 36px; }
.certificate-preview { overflow: hidden; display: block; border-radius: 10px; border: 1px solid #e1cbb833; transition: translate .25s, border-color .25s; }
.certificate-preview img { display: block; width: 100%; height: auto; }
.certificate-preview > span { display: flex; justify-content: space-between; padding: 16px 18px; font-size: 9px; letter-spacing: 1px; background: #251a1d; }
.certificate-details .eyebrow { color: #b18c80; font-size: 9px; margin-bottom: 16px; }
.certificate-details h3 { font: 400 clamp(26px, 2.5vw, 38px)/1.2 Georgia, serif; letter-spacing: -.7px; margin: 0 0 20px; }
.certificate-details p { margin: 0 0 24px; }
.certificate-details dl { margin: 0 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.certificate-details dt { font-size: 9px; letter-spacing: 1px; color: #a88c82; margin-bottom: 9px; }
.certificate-details dd { margin: 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.certificate-actions { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.certificate-download { display: inline-flex; align-items: center; gap: 15px; min-height: 48px; font-size: 11px; color: var(--muted); }
@media (hover: hover) { .certificate-preview:hover { translate: 0 -3px; border-color: #bca28c; } .certificate-download:hover { color: #fff; } }
@media (max-width: 900px) { .certificate-card { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) {
 .certificate-card { padding-top: 28px; }
 .certificate-details h3 { font-size: 28px; }
 .certificate-details p { font-size: 14px; }
 .certificate-details dl { gap: 16px; }
 .certificate-details dd { font-size: 11px; }
 .certificate-actions { flex-direction: column; align-items: stretch; gap: 8px; }
 .certificate-download { justify-content: center; }
 .certificate-preview > span { font-size: 9px; padding: 14px; }
}
/* Compact showcase cards, shared by the featured project and certificate. */
.project.feature-card, .certificate-card.feature-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: min(100%, 440px); margin: 0 0 36px; padding: 18px; border: 1px solid #e1cbb827; border-radius: 22px; background: linear-gradient(140deg, #292326, #1c181a); box-shadow: 0 16px 35px #0002; }
.feature-card > .project-number { display: none; }
.feature-card .project-preview, .feature-card .certificate-preview { margin: 0 0 22px; border-radius: 14px; border: 1px solid #e1cbb81c; box-shadow: none; background: #100e10; overflow: hidden; }
.feature-card .preview-toolbar, .feature-card .preview-caption, .feature-card .certificate-preview > span { display: none; }
.feature-card .project-preview img, .feature-card .certificate-preview img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; object-position: center; }
.feature-card .certificate-preview img { object-position: center 45%; }
.feature-card .eyebrow, .feature-card .certificate-details .eyebrow { font-size: 8px; letter-spacing: 1px; margin: 0 0 12px; color: #b49e94; }
.feature-card h3, .feature-card .certificate-details h3 { font-family: Arial, Helvetica, sans-serif; font-size: 23px; font-weight: 500; letter-spacing: -.5px; line-height: 1.25; margin: 0 0 14px; }
.feature-card p:not(.eyebrow) { font-size: 13px; line-height: 1.75; margin: 0 0 16px; color: #b7a9a2; }
.project.feature-card p:not(.eyebrow) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feature-card .stack { font-size: 8px; letter-spacing: .6px; margin: 20px 0 0; color: #9f8e86; }
.feature-card .project-live { width: auto; align-self: flex-end; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid #e1cbb825; border-radius: 30px; margin: 20px 0 0; background: #ffffff0a; font-size: 10px; }
.feature-card .certificate-details dl { margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--line); gap: 16px; }
.feature-card .certificate-details dt { font-size: 8px; letter-spacing: .7px; }
.feature-card .certificate-details dd { font-size: 10px; }
.feature-card .certificate-actions { display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.feature-card .certificate-actions .pill { order: 2; display: inline-flex; width: auto; min-height: 44px; padding: 0 18px; gap: 14px; background: #ffffff0a; border: 1px solid #e1cbb825; color: var(--paper); font-size: 10px; }
.feature-card .certificate-download { font-size: 10px; min-height: 44px; gap: 8px; color: #b7a9a2; }
@media (hover: hover) { .feature-card .project-live:hover, .feature-card .certificate-actions .pill:hover { background: #e1cbb8; color: #211112; } }
@media (max-width: 600px) {
 .project.feature-card, .certificate-card.feature-card { width: 100%; padding: 16px; border-radius: 20px; margin-bottom: 28px; }
 .feature-card h3, .feature-card .certificate-details h3 { font-size: 22px; }
 .feature-card .project-preview, .feature-card .certificate-preview { margin-bottom: 20px; }
}
/* Consistent project cards: real work can be listed without a public demo. */
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.projects-grid .project.feature-card { width: 100%; margin: 0; min-width: 0; }
.projects-grid .project > div { flex: 1; }
.projects-grid .project-preview { margin-bottom: 22px; }
.projects-grid .project h3 { font-size: 23px; }
.projects-grid .project h3 br { display: none; }
.projects-grid .project-live { margin-top: 24px; }
.project-offline > div { padding-top: 8px; }
.project-offline h3 { margin-top: 20px; }
.project-offline .stack { padding-top: 20px; border-top: 1px solid var(--line); }
.project-status { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 28px; font-size: 8px; letter-spacing: 1px; color: #ac958a; }
.project-status > span { color: var(--muted); font-size: 11px; letter-spacing: 0; }
@media (min-width: 901px) and (max-width: 1199px) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 601px) and (max-width: 900px) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } .projects-grid .project.feature-card { margin-bottom: 0; } .project-offline > div { padding-top: 4px; } }
/* Put the portfolio owner's name at the center of the introduction. */
.brand { font-size: 17px; letter-spacing: 1.5px; }
.hero-name { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(44px, 5.1vw, 78px); font-weight: 400; line-height: 1.02; letter-spacing: -3px; margin: 0 0 18px; color: #f3e6da; }
.hero-name > span { display: block; }
.hero-name .name-dot { color: #ca9290; }
.hero-tagline { max-width: 275px; font-size: 14px; line-height: 1.75; color: var(--muted); margin: 0 0 26px; }
@media (min-width: 601px) and (max-width: 900px) { .hero-name { font-size: 54px; } }
@font-face { font-family: 'Aktura'; src: url('assets/fonts/Aktura-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
.intro h1 { font-family: 'Aktura', Georgia, serif; font-size: clamp(68px, 10vw, 88px); font-weight: 400; letter-spacing: 0; line-height: 1.2; margin-bottom: 22px; }
.brand .brand-name { display: block; font-size: 25px; font-weight: 750; line-height: 1.1; letter-spacing: 1.3px; color: #fff4e9; }
.brand .brand-role { font-size: 9px; font-weight: 400; letter-spacing: 1.7px; color: #b7a69c; }
/* Direct social and telephone links. */
.contact-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: min(100%, 820px); margin: 38px auto 0; text-align: left; }
.contact-channels > a { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; min-height: 96px; padding: 20px; border: 1px solid #e1cbb82e; border-radius: 12px; background: #ffffff03; transition: background .25s, border-color .25s, translate .25s; }
.channel-label { color: #b49b90; font-size: 9px; letter-spacing: 1.5px; }
.channel-value { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--paper); }
.channel-value > span { font-size: 17px; }
@media (hover: hover) { .contact-channels > a:hover { background: #e1cbb80c; border-color: #bca28c; translate: 0 -3px; } }
@media (max-width: 600px) { .contact-channels { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; } .contact-channels > a { min-height: 78px; padding: 16px 18px; gap: 9px; } .channel-value { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .contact-channels > a:hover { translate: none; } }
/* Social profiles echo the rounded certificate showcase card. */
.social-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: min(100%, 880px); margin: 42px auto 26px; text-align: left; }
.social-card { min-width: 0; border: 1px solid #e1cbb827; border-radius: 22px; padding: 18px; background: linear-gradient(140deg, #292326, #1c181a); box-shadow: 0 16px 35px #0002; }
.social-icon-panel { display: grid; place-items: center; aspect-ratio: 2 / 1; border: 1px solid #ffffff0d; border-radius: 14px; margin-bottom: 24px; overflow: hidden; }
.social-icon-panel svg { display: block; width: 68px; height: 68px; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.facebook-panel { background: radial-gradient(ellipse at center, #23394d, #161c24 75%); color: #a9c7ec; }
.instagram-panel { background: radial-gradient(ellipse at 60% 80%, #513344, #25202f 60%, #1b1720); color: #edc5d7; }
.social-card .eyebrow { color: #b49e94; font-size: 9px; margin: 0 0 12px; letter-spacing: 1px; }
.social-card h3 { font-size: 25px; line-height: 1.2; font-weight: 500; letter-spacing: -.5px; margin: 0 0 12px; }
.social-card p.social-handle { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0 0 24px; }
.social-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.social-card-footer > span { font-size: 10px; color: #b49e94; }
.social-card-footer .pill { display: inline-flex; width: auto; min-height: 44px; padding: 0 17px; gap: 16px; border: 1px solid #e1cbb825; border-radius: 30px; background: #ffffff0a; color: var(--paper); font-size: 9px; }
.contact > .phone-inline { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; width: auto; gap: 12px; min-height: 48px; padding: 12px 0; border: 0; font-size: 14px; }
.phone-inline > span:first-child { color: #b49e94; font-size: 8px; letter-spacing: 1px; }
@media (hover: hover) { .social-card:hover .social-icon-panel svg { transform: translateY(-3px) scale(1.06); } .social-card-footer .pill:hover { background: var(--paper); color: #211112; } }
@media (max-width: 600px) { .social-cards { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; } .social-card { padding: 16px; border-radius: 20px; } .social-icon-panel { margin-bottom: 22px; } .social-card h3 { font-size: 23px; } .contact > .phone-inline { font-size: 13px; gap: 10px; } .phone-inline > span:first-child { width: 100%; margin-bottom: 3px; } }
@media (prefers-reduced-motion: reduce) { .social-card:hover .social-icon-panel svg { transform: none; } }
/* Smaller social cards; the icon panels are direct profile links. */
.social-cards { width: min(100%, 700px); gap: 20px; }
.social-card { padding: 15px; border-radius: 18px; }
.social-icon-panel { aspect-ratio: 2.4 / 1; margin-bottom: 18px; border-radius: 11px; }
.social-icon-panel svg { width: 52px; height: 52px; pointer-events: none; }
.social-card h3 { font-size: 22px; margin-bottom: 8px; }
.social-card p.social-handle { font-size: 13px; margin-bottom: 18px; }
.social-card-footer { padding-top: 15px; }
.social-card-footer .pill { padding: 0 13px; gap: 10px; font-size: 8px; }
.social-icon-panel:active svg { transform: scale(.94); }
@media (max-width: 600px) { .social-cards { width: min(100%, 340px); gap: 16px; } .social-card { padding: 14px; border-radius: 17px; } .social-icon-panel { margin-bottom: 18px; } .social-card h3 { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .social-icon-panel:active svg { transform: none; } }
/* Keep the original social card width, with a shorter icon area. */
.social-cards { width: min(100%, 880px); gap: 24px; }
.social-icon-panel { aspect-ratio: 3.2 / 1; }
@media (max-width: 600px) { .social-cards { width: 100%; gap: 20px; } .social-icon-panel { aspect-ratio: 3 / 1; } }

/* Decorative icons drift around the clear center of the loader. */
.intro-tech {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.intro-tech > span {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(36px, 6vw, 60px);
  aspect-ratio: 1;
  border: 1px solid #ffffff18;
  border-radius: 14px;
  background: #ffffff08;
  color: #f2e9df;
  opacity: .45;
  transform: translate(-50%, -50%) rotate(var(--tilt));
  animation: loader-icon-drift 3s ease-in-out infinite alternate;
}
.intro-tech > span:nth-child(1) { left: 20%; top: 23%; --tilt: -12deg; animation-delay: -.4s; }
.intro-tech > span:nth-child(2) { left: 79%; top: 19%; --tilt: 13deg; animation-delay: -1.5s; }
.intro-tech > span:nth-child(3) { left: 27%; top: 78%; --tilt: 9deg; animation-delay: -2.1s; }
.intro-tech > span:nth-child(4) { left: 84%; top: 73%; --tilt: -8deg; animation-delay: -.9s; }
.intro-tech svg { display: block; width: 50%; height: 50%; }
@keyframes loader-icon-drift {
  to { transform: translate(calc(-50% + 12px), calc(-50% - 16px)) rotate(calc(var(--tilt) + 9deg)); }
}
@media (max-height: 420px) and (orientation: landscape) {
  .intro-tech > span:nth-child(1), .intro-tech > span:nth-child(3) { left: 10%; }
  .intro-tech > span:nth-child(2), .intro-tech > span:nth-child(4) { left: 90%; }
}

.intro-tech > span:nth-child(5) { left: 48%; top: 15%; --tilt: -9deg; animation-delay: -1.8s; }
.intro-tech > span:nth-child(6) { left: 51%; top: 85%; --tilt: 11deg; animation-delay: -.6s; }
.intro-tech > span:nth-child(7) { left: 7%; top: 64%; --tilt: -14deg; animation-delay: -2.4s; }
.intro-tech > span:nth-child(8) { left: 93%; top: 38%; --tilt: 8deg; animation-delay: -1.1s; }

@media (max-width: 600px) and (orientation: portrait) {
  .intro-tech > span:nth-child(7) { left: 11%; top: 68%; }
  .intro-tech > span:nth-child(8) { left: 87%; top: 30%; }
}
@media (max-height: 420px) and (orientation: landscape) {
  .intro-tech > span:nth-child(5) { left: 21%; top: 18%; }
  .intro-tech > span:nth-child(6) { left: 78%; top: 82%; }
  .intro-tech > span:nth-child(7) { left: 20%; top: 75%; }
  .intro-tech > span:nth-child(8) { left: 79%; top: 23%; }
}

/* An editorial profile with the portrait fading into the site's palette. */
.about.section {
  display: block;
  padding-block: clamp(36px, 6svh, 64px);
  background: radial-gradient(ellipse at 50% 50%, #2b191e, var(--bg) 68%);
}
.about-editorial {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  isolation: isolate;
  column-gap: clamp(16px, 2vw, 32px);
  border-block: 1px solid var(--line);
}
.about-kicker {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px 0;
  font-family: Consolas, monospace;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
}
.about .about-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 850;
  font-size: clamp(54px, 6.6vw, 106px);
  line-height: .87;
  letter-spacing: -.075em;
  text-transform: uppercase;
  color: #f0e1d4;
}
.about-title > .about-accent { display: block; color: #c59191; }
.about-portrait {
  position: relative;
  z-index: 0;
  margin: 0 -7%;
  align-self: stretch;
  min-height: clamp(330px, 57svh, 490px);
  overflow: hidden;
  mask-image: radial-gradient(ellipse 67% 63% at 50% 48%, #000 48%, transparent 99%);
}
.about-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: sepia(.28) saturate(.8) brightness(1.12);
}
.about-copy { position: relative; z-index: 1; padding: 24px 0; font-family: 'Segoe UI', Arial, sans-serif; }
.about .about-intro { margin: 0 0 9px; font-size: 10px; letter-spacing: .15em; color: #c59191; }
.about-copy h3 { margin: 0 0 16px; font-family: 'Segoe UI', Arial, sans-serif; font-size: clamp(25px, 2.5vw, 36px); font-weight: 700; letter-spacing: -.035em; }
.about .about-copy > p:not(.about-intro) { font-size: 14px; line-height: 1.65; }
.about-copy .skills { margin-top: 18px; }

@media (max-width: 1000px) {
  .about-editorial { grid-template-columns: 1fr 1fr; }
  .about-copy { grid-column: 1 / -1; padding: 22px 0 30px; }
  .about-portrait { margin: 0; min-height: clamp(260px, 48vw, 410px); }
}
@media (max-width: 480px) {
  .about-kicker { font-size: 8px; }
  .about-kicker span:last-child { display: none; }
  .about .about-title { font-size: clamp(34px, 10vw, 52px); }
  .about-portrait { margin-left: -12%; min-height: 245px; }
  .about-copy { padding-top: 12px; }
}

@media (min-width: 1001px) {
  .about.section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 100svh;
    padding: clamp(24px, 5svh, 52px) clamp(32px, 4vw, 76px);
  }
  .about-editorial {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.12fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(16px, 2vw, 36px);
  }
  .about .about-title { font-size: clamp(54px, 7vw, 122px); }
  .about-portrait { min-height: clamp(320px, 54svh, 460px); }
  .about-portrait img { object-position: center 35%; }
  .about-copy { max-width: 48ch; }
  .about .about-copy > p:not(.about-intro) {
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.7;
  }
}

/* A low-contrast light across the portfolio, with no hit area. */
.ambient-background {
  position: fixed;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
}
.ambient-background::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: clamp(420px, 72vw, 980px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #b65d7a26 0%, #8b354d13 34%, transparent 68%);
  transform: translate3d(calc(var(--ambient-x, 50vw) - 50%), calc(var(--ambient-y, 42vh) - 50%), 0);
  transition: transform 380ms cubic-bezier(.2,.65,.3,1);
}
@media (prefers-reduced-motion: reduce) {
  .ambient-background { display: none; }
}

.welcome.loader-physics .intro-tech > span { animation: none; }

.intro-letters {
  display: inline-flex;
  justify-content: center;
}
.intro-letters > span {
  display: inline-block;
  transition: translate 220ms cubic-bezier(.2,.75,.3,1), color 180ms ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .intro-letters > span:hover {
    translate: 0 -7px;
    color: #edb8b3;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .intro-letters > span:active {
    translate: 0 3px;
    color: #edb8b3;
  }
}

/* Share a warm edge between the hero and profile so they read as one page. */
.portfolio { --profile-seam: #1b1316; }
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: clamp(84px, 18svh, 180px);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(transparent, var(--profile-seam));
}
.hero .hero-footer {
  border-top: 0;
  background: linear-gradient(90deg, transparent, #e1cbb845, transparent) top / 100% 1px no-repeat;
}
.hero-footer a[href="#about"] {
  min-height: 38px;
  padding-inline: 15px;
  border: 1px solid #e1cbb82e;
  border-radius: 999px;
  color: var(--paper);
  transition: background-color .25s, border-color .25s;
}
.hero-footer a[href="#about"]:hover,
.hero-footer a[href="#about"]:focus-visible {
  background-color: #e1cbb810;
  border-color: #e1cbb860;
}
.about.section {
  border-top: 0;
  background:
    linear-gradient(var(--profile-seam), transparent) top / 100% clamp(90px, 20svh, 200px) no-repeat,
    radial-gradient(ellipse at 50% 45%, #2b191e, var(--bg) 72%);
}
.about-editorial { border-top: 0; }
.about-kicker > span:first-child::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  vertical-align: 1px;
  border-radius: 50%;
  background: #c59191;
}
