@font-face {
  font-family: Manrope;
  src: url('assets/manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #f8f7f3;
  --ink: #11110f;
  --orange: #ffac32;
  --line: #dfded7;
  --muted: #56564e;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #8a4100; outline-offset: 5px; }
::selection { background: var(--orange); color: var(--ink); }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
img { display: block; max-width: 100%; }
p { line-height: 1.6; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 800; letter-spacing: -.04em; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
[hidden] { display: none !important; }
.site-shell { max-width: 1800px; padding: 0 32px; margin: auto; }

/* White Home ground, orange pill actions, and stationary-label navigation. */
.site-header {
  --header-accent: #ff9f16;
  --header-marker: #ff8200;
  --header-tint: #fff6ea;
  --header-rule: #ededed;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 100px;
  padding: 20px 0;
  border-bottom: 1px solid var(--header-rule);
}
.site-header::before { content: ''; position: absolute; inset: 0; background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); z-index: -1; }
.code-wordmark { justify-self: start; color: var(--ink); font-family: Consolas, 'Courier New', monospace; font-size: 27px; font-weight: 700; line-height: 1; letter-spacing: -.055em; white-space: nowrap; }
.code-wordmark span { color: var(--header-marker); }
.code-wordmark:hover { text-decoration: none; }
.site-header .main-nav { display: flex; align-items: center; justify-content: center; gap: 32px; font-size: 14px; font-weight: 600; }
.main-nav a { position: relative; isolation: isolate; display: inline-flex; align-items: center; min-height: 48px; white-space: nowrap; }
.nav-label { display: block; line-height: 1.5; }
.site-header .main-nav a:hover, .site-header .main-nav a:focus-visible, .site-header .main-nav a[aria-current] { text-decoration: none; }
.site-header .main-nav a::before { content: ''; position: absolute; inset: 6px -12px; z-index: -1; border: 1px solid #ffd8a6; border-radius: 999px; background: var(--header-tint); clip-path: inset(0 50% round 999px); opacity: 0; transition: clip-path .45s var(--ease), opacity .2s; }
.site-header .main-nav a::after { content: ''; position: absolute; left: calc(50% - 2.5px); bottom: 0; width: 5px; height: 5px; background: var(--header-marker); border-radius: 50%; transform: scale(0); transition: transform .3s var(--ease); }
.site-header .main-nav a:focus-visible::before { clip-path: inset(0 0 round 999px); opacity: 1; }
.site-header .main-nav a[aria-current]::after { transform: scale(1); }
.site-header .main-nav.has-shared-motion { position: relative; isolation: isolate; }
.site-header .main-nav.has-shared-motion a::before, .site-header .main-nav.has-shared-motion a::after { display: none; }
.site-header .main-nav.has-shared-motion .nav-label { transition: transform .28s cubic-bezier(.2, 1.5, .4, 1); }
.site-header .main-nav.has-shared-motion a.nav-hovered .nav-label { transform: translateY(-2px); }
.nav-motion-capsule { position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; opacity: 0; transform-origin: 0 0; transition: opacity .16s; }
.nav-capsule-surface { display: block; width: 100%; height: 100%; border: 1px solid #ffd8a6; border-radius: 999px; background: var(--header-tint); transform-origin: center; }
.nav-motion-dot { position: absolute; left: 0; top: 0; width: 5px; height: 5px; pointer-events: none; }
.nav-dot-core { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--header-marker); }
@media (hover: hover) {
  .site-header .main-nav a:hover::before { clip-path: inset(0 0 round 999px); opacity: 1; }
}
.header-resume { justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 0 23px; border: 1px solid #ffb13c; border-radius: 999px; font-size: 14px; font-weight: 750; letter-spacing: -.025em; color: var(--ink); background: var(--header-accent); box-shadow: 0 8px 18px -12px #f4a22a66; transition: background .25s, color .25s; }
.header-resume svg { width: 19px; height: 19px; }
.header-resume:hover { background: var(--ink); color: #fff; text-decoration: none; }
.wordmark { font-size: 36px; letter-spacing: -.09em; font-weight: 800; line-height: 1; }
.wordmark span { color: #bc5b00; }
.wordmark:hover { text-decoration: none; }

/* Home follows the user-supplied AI Engineer Portfolio Hero Page reference. */
.hero { --hero-accent: #ff9f16; --hero-muted: #73757b; --hero-ground: #fff; display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: clamp(40px, 4.1vw, 76px); padding: clamp(40px, 3.8vw, 70px) 30px 46px 0; position: relative; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); z-index: -2; }
.hero-copy { display: flex; flex-direction: column; min-width: 0; container-type: inline-size; padding-top: 4px; }
.hero h1 { font-size: clamp(28px, 10.8cqi, 96px); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; margin-left: -3px; }
.hero-name { white-space: nowrap; }
.hero h1 > span { display: block; }
.hero h1 > span + span { margin-top: 2px; }
.hero h1 .hero-greeting { font-size: clamp(22px, 3.4cqi, 32px); line-height: 1.4; font-weight: 500; letter-spacing: -.04em; margin: 0 0 24px 3px; }
.hero h1 .name-period { display: inline-block; width: .19em; height: .19em; border-radius: 50%; background: #ff8200; color: transparent; line-height: .19; overflow: hidden; margin-left: .04em; }
.hero-intro { margin: clamp(16px, 2.2cqi, 20px) 0 clamp(22px, 3cqi, 28px); }
.hero-role { font-size: clamp(21px, 4.35cqi, 40px); font-weight: 750; line-height: 1.35; letter-spacing: -.035em; }
.hero-role > span { color: #ff8200; padding: 0 .12em; }
.hero-summary { font-size: clamp(17px, 2.8cqi, 26px); font-weight: 500; line-height: 1.35; letter-spacing: -.02em; color: var(--hero-muted); margin-top: clamp(14px, 2cqi, 19px); max-width: none; }
.hero-summary > span { display: block; }
.text-link { display: inline-flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }
.text-link:hover { text-decoration: none; border-color: #b95d00; }
.text-link svg { width: 18px; height: 18px; }
.hero .intro-action { display: inline-flex; align-items: center; justify-content: space-between; white-space: nowrap; margin-top: clamp(24px, 3.5cqi, 32px); min-height: clamp(56px, 7.9cqi, 74px); width: clamp(270px, 35.8cqi, 330px); max-width: 100%; padding: 16px clamp(24px, 3.9cqi, 36px); font-size: clamp(17px, 2.5cqi, 24px); font-weight: 750; letter-spacing: -.035em; gap: 24px; background: var(--hero-accent); color: var(--ink); border: 1px solid #ffb13c; border-radius: 999px; box-shadow: 0 14px 30px -8px #f4a22a55; transition: background .25s, color .25s, box-shadow .25s; }
.hero .intro-action svg { width: 29px; height: 29px; flex-shrink: 0; transition: transform .35s var(--ease); }
.hero .intro-action:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.hero .intro-action:hover svg { transform: translate(2px, -2px); }
.socials { display: flex; gap: 16px; padding: 0 0 clamp(28px, 4.3cqi, 40px); }
.socials a { width: clamp(48px, 7.6cqi, 70px); height: clamp(48px, 7.6cqi, 70px); border: 1px solid #d4d4d4; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 5px 12px -6px #11110f18; transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); text-decoration: none; }
.socials svg { width: clamp(22px, 3cqi, 29px); height: clamp(22px, 3cqi, 29px); stroke-width: 1.9; }
.hero .hero-facts { display: grid; grid-template-columns: 1.05fr 1fr; border-top: 1px solid #e8e8e8; gap: 30px; padding: clamp(24px, 4.1cqi, 38px) 0 4px; margin-top: auto; text-align: left; }
.hero-facts .hero-fact { display: flex; align-items: flex-start; gap: clamp(16px, 2.7cqi, 25px); min-width: 0; }
.hero-facts .hero-fact + .hero-fact { padding-left: 30px; border-left: 1px solid #dedede; }
.hero .hero-fact-icon { display: grid; place-items: center; flex: 0 0 clamp(58px, 9.5cqi, 88px); width: clamp(58px, 9.5cqi, 88px); height: clamp(58px, 9.2cqi, 85px); border-radius: 20px; background: #fff6ea; }
.hero-fact-icon svg { width: 76%; height: 76%; stroke-width: 2.2; }
.hero-fact-copy { min-width: 0; padding-top: 3px; }
.hero .hero-facts strong { font-size: clamp(19px, 3cqi, 28px); font-weight: 800; letter-spacing: -.04em; line-height: 1.18; display: block; font-style: normal; }
.hero .hero-facts p { font-size: clamp(13px, 1.88cqi, 18px); line-height: 1.3; letter-spacing: -.02em; margin-top: 10px; color: var(--hero-muted); }
.hero-facts .hero-fact:hover { text-decoration: none; }
.hero-facts .hero-fact:hover strong { color: #8a4100; }

/* Arched photograph, warm backing circles, fine orbit, and inset photo tools. */
.hero-visual { position: relative; align-self: stretch; width: 100%; min-width: 0; min-height: 0; aspect-ratio: 1 / 1.03; margin-left: 0; isolation: isolate; }
.portrait-frame { height: 100%; border: 2px solid #fff; border-radius: 50% 50% 4% 4%; overflow: hidden; background: #cfcdca; position: relative; }
.hero-photo { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 50% 44%; }
.portrait-halo { position: absolute; width: 59%; aspect-ratio: 1; border-radius: 50%; background: #fff2df; z-index: -1; pointer-events: none; }
.portrait-halo-top { right: -3%; top: -.5%; }
.portrait-halo-bottom { right: -8.5%; bottom: 10%; background: #faf3e8; }
.portrait-orbit { position: absolute; inset: 0 auto auto -3%; z-index: 1; width: 103%; height: 100%; overflow: visible; pointer-events: none; stroke: #ff8b00; stroke-width: 1; }
.portrait-orbit circle { fill: var(--hero-accent); stroke: #fff; stroke-width: 3; }
.hero-dot-grid { position: absolute; left: -18%; top: 52%; width: 12%; height: auto; color: #d9dadd; stroke: none; pointer-events: none; }
.hero-dot-grid circle { fill: currentColor; }
.globe-link { position: absolute; right: -8%; top: -3%; width: clamp(58px, 4.3vw, 80px); height: clamp(58px, 4.3vw, 80px); border: 2px solid #222; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 12px -7px #11110f55; }
.globe-link svg { width: 43px; height: 43px; stroke-width: 1.1; }
.globe-link:hover { color: var(--orange); }
.photo-tools { position: absolute; left: -3%; bottom: 3.8%; display: flex; flex-direction: column; gap: 7px; background: #fff; border-radius: 999px; padding: 11px; }
.portrait-thumbnail { display: block; width: clamp(48px, 3.45vw, 64px); height: clamp(48px, 3.45vw, 64px); padding: 4px; border-radius: 50%; background: var(--hero-accent); box-shadow: inset 0 0 0 1px #d97b00; }
.portrait-thumbnail img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; mix-blend-mode: multiply; }
.round-arrow { width: clamp(48px, 3.45vw, 64px); height: clamp(48px, 3.45vw, 64px); min-width: 44px; min-height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.round-arrow svg { width: 32px; height: 32px; }
.round-arrow:hover { background: #874000; }
.skip-link { position: absolute; left: 15px; top: -100px; background: var(--ink); color: var(--paper); padding: 12px; z-index: 100; }
.skip-link:focus { top: 10px; }
.planning-link { border-top: 1px solid var(--line); padding: 26px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); }
.planning-link a { color: var(--ink); }

@media (max-width: 1200px) {
  .site-header { grid-template-columns: minmax(165px, 1fr) auto minmax(115px, 1fr); gap: 18px; }
  .site-header .main-nav { gap: 26px; font-size: 13px; }
  .code-wordmark { font-size: 23px; }
}
@media (max-width: 1100px) {
  .site-shell { padding: 0 24px; }
  .hero { gap: 35px; padding-right: 20px; }
  .hero .hero-facts { gap: 18px; padding-top: 26px; }
  .hero-facts .hero-fact { display: block; }
  .hero-facts .hero-fact + .hero-fact { padding-left: 18px; }
  .hero .hero-fact-icon { width: 52px; height: 52px; margin-bottom: 14px; border-radius: 14px; }
  .hero .hero-facts strong { font-size: clamp(18px, 3.8cqi, 24px); }
  .hero .hero-facts p { font-size: 13px; }
  .hero-visual { align-self: center; height: 100%; max-height: 620px; aspect-ratio: auto; }
  .hero-summary { font-size: 17px; }
  .socials { padding-bottom: 30px; }
}
@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; gap: 10px 24px; padding: 20px 0 10px; }
  .site-header .main-nav { grid-column: 1 / -1; grid-row: 2; gap: 26px; padding: 6px 0; }
  .header-resume { grid-column: 2; grid-row: 1; }
}
@media (max-width: 760px) {
  .site-shell { padding: 0 18px; }
  .site-header { gap: 14px 18px; padding-top: 18px; }
  .code-wordmark { font-size: 23px; }
  .header-resume { min-height: 44px; padding: 0 16px; font-size: 13px; gap: 10px; }
  .site-header .main-nav { flex-wrap: wrap; justify-content: center; gap: 4px 26px; padding: 0 8px 6px; font-size: 13px; }
  .site-header .main-nav a { min-height: 44px; padding: 5px 0; }
  .hero { display: flex; flex-direction: column; padding: 36px 0 28px; gap: 40px; }
  .hero h1 { font-size: clamp(27px, 10.8cqi, 70px); margin-left: 0; }
  .hero h1 .hero-greeting { font-size: 21px; margin-bottom: 18px; margin-left: 0; }
  .hero-intro { margin: 18px 0 24px; }
  .hero-role { font-size: clamp(20px, 5.7cqi, 32px); }
  .hero-summary { font-size: 17px; max-width: 36ch; margin-top: 14px; }
  .hero .intro-action { margin-top: 24px; min-height: 58px; width: 258px; padding: 15px 28px; font-size: 18px; }
  .hero .intro-action svg { width: 26px; height: 26px; }
  .socials { padding-bottom: 30px; gap: 12px; }
  .socials a { width: 49px; height: 49px; }
  .socials svg { width: 23px; height: 23px; }
  .hero .hero-facts { padding-top: 25px; margin-top: 0; gap: 18px; }
  .hero .hero-facts strong { font-size: clamp(18px, 5cqi, 23px); }
  .hero .hero-facts p { font-size: 13px; line-height: 1.45; margin-top: 9px; }
  .hero-visual { align-self: center; min-height: 0; max-height: none; margin: 0; flex: none; width: calc(100% - 28px); height: auto; aspect-ratio: 1 / 1.04; }
  .portrait-frame { min-height: 0; border-radius: 50% 50% 24px 24px; }
  .hero-dot-grid { left: -7%; top: 47%; width: 13%; }
  .globe-link { width: 58px; height: 58px; border-width: 2px; right: -5%; top: -2%; }
  .globe-link svg { width: 35px; height: 35px; }
  .portrait-thumbnail, .round-arrow { width: 46px; height: 46px; }
  .photo-tools { gap: 5px; padding: 8px; }
  .round-arrow svg { width: 27px; height: 27px; }
  .planning-link { flex-direction: column; align-items: start; }
}
@media (max-width: 380px) {
  .code-wordmark { font-size: 21px; }
  .header-resume { gap: 6px; padding: 0 10px; }
  .hero-role { font-size: 18px; }
  .hero .hero-facts { gap: 12px; }
  .hero-facts .hero-fact + .hero-fact { padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
