:root {
  color-scheme: only light;
  --ink: #000000;
  --ink-2: #1d1d1f;
  --paper: #f5f5f7;
  --paper-2: #ffffff;
  --paper-ink: #1d1d1f;
  --muted: #6e6e73;
  --muted-dark: #86868b;
  --line: rgba(0, 0, 0, .09);
  --line-dark: rgba(255, 255, 255, .12);
  --link: #0066cc;
  --max: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: #f5f5f7; font-size: 17px; line-height: 1.47; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link { position: absolute; top: -3rem; left: 1rem; z-index: 100; padding: .55rem .8rem; border-radius: 999px; background: #fff; color: var(--ink); }
.skip-link:focus { top: 1rem; }

.global-nav { position: fixed; inset: 0 0 auto; z-index: 70; display: flex; align-items: center; justify-content: space-between; height: 3.5rem; padding: 0 max(1.25rem, calc((100vw - 1380px) / 2)); color: rgba(245,245,247,.82); border-bottom: 1px solid transparent; transition: background .35s ease, border-color .35s ease; }
.global-nav.scrolled { background: rgba(0,0,0,.78); border-color: rgba(255,255,255,.1); backdrop-filter: saturate(180%) blur(20px); }
.brand { display: inline-flex; align-items: center; gap: .58rem; font-size: .82rem; font-weight: 620; letter-spacing: 0; }
.brand-mark { display: grid; place-items: center; width: 1.65rem; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; font-size: .8rem; }
.brand-mark { overflow: hidden; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.desktop-nav { display: flex; gap: 1.75rem; margin-left: auto; margin-right: 1.75rem; color: rgba(245,245,247,.68); font-size: .82rem; }
.desktop-nav a, .mobile-menu a { transition: color .2s ease; }
.desktop-nav a:hover, .mobile-menu a:hover { color: #fff; }
.nav-tools { display: flex; align-items: center; gap: .7rem; }
.lang-switch, .menu-toggle { color: rgba(247,248,248,.8); background: transparent; border: 1px solid rgba(255,255,255,.2); cursor: pointer; }
.lang-switch { min-width: 2.55rem; padding: .36rem .55rem; border-radius: 999px; font-size: .8rem; }
.menu-toggle { display: none; width: 2.35rem; height: 2.15rem; padding: .55rem; border-radius: 50%; }
.menu-toggle span { display: block; width: 100%; height: 1px; margin: .24rem 0; background: currentColor; transition: transform .25s ease; }
.menu-open .menu-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-2px) rotate(-45deg); }
.mobile-menu { display: none; }

.scene { position: relative; min-height: 92svh; overflow: hidden; background: var(--ink); }
.hero-content { position: relative; z-index: 2; display: flex; min-height: 92svh; flex-direction: column; align-items: center; justify-content: center; padding: 6rem 1.5rem 7rem; text-align: center; }
.eyebrow { margin: 0 0 1rem; color: #6e6e73; font-size: .8rem; font-weight: 650; letter-spacing: 0; text-transform: uppercase; }
.hero-eyebrow { margin-bottom: .35rem; color: rgba(245,245,247,.72); }
.hero-kicker { margin: 0 0 1.7rem; color: rgba(245,245,247,.54); font-size: .8rem; letter-spacing: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 0 0 1.1rem; font-size: 5.2rem; font-weight: 640; letter-spacing: 0; line-height: 1.16; }
.hero-line { max-width: 44rem; margin: 1.9rem auto .7rem; color: #f5f5f7; font-size: 1.9rem; font-weight: 560; letter-spacing: 0; text-wrap: balance; }
.hero-subline { max-width: 48rem; margin: 0; color: rgba(245,245,247,.52); font-size: .82rem; line-height: 1.55; letter-spacing: 0; overflow-wrap: anywhere; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: 2.15rem; }
.primary-action, .secondary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .7rem 1.15rem; border-radius: 999px; font-size: .84rem; font-weight: 590; line-height: 1.2; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.primary-action { background: #0071e3; color: #ffffff; }
.primary-action:hover, .secondary-action:hover { transform: translateY(-2px); }
.primary-action .arrow, .text-link span, .light-link span, .email-link span { margin-left: .35rem; }
.secondary-action { border: 1px solid rgba(255,255,255,.24); color: rgba(245,245,247,.88); }

.section-light, .section-paper { color: var(--paper-ink); background: var(--paper); }
.section-dark { color: #f5f5f7; background: var(--ink); }
main > section + section { border-top: 1px solid rgba(0,0,0,.12); }
main > .section-dark { border-top-color: rgba(255,255,255,.16); }
.section-shell { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; }
.intro { padding: 9rem 0 8rem; }
.intro-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 5rem; align-items: end; }
.intro h2, .section-heading h2, .journey h2, .contact h2 { max-width: 42rem; margin-bottom: 0; font-size: 4rem; font-weight: 620; letter-spacing: 0; line-height: 1.15; overflow-wrap: break-word; text-wrap: balance; }
.intro-copy { max-width: 33rem; padding-bottom: .35rem; }
.lead { margin-bottom: 1.4rem; font-size: 1.24rem; letter-spacing: 0; line-height: 1.42; text-wrap: pretty; line-break: strict; }
.muted, .heading-note { color: var(--muted); }
.intro-copy .muted { margin-bottom: 2.1rem; font-size: .98rem; text-wrap: pretty; line-break: strict; }
.text-link { color: var(--link); font-size: .98rem; font-weight: 590; }
.statement { min-height: 68vh; display: grid; place-items: center; padding: 7rem 1.5rem; }
.statement-inner { width: min(100%, 970px); text-align: center; }
.statement h2 { margin-bottom: 2.1rem; font-size: 4.8rem; font-weight: 620; letter-spacing: 0; line-height: 1.15; overflow-wrap: break-word; text-wrap: balance; }
.statement h2 em, .contact h2 em { display: block; color: #86868b; font-style: normal; }
.statement-inner > p:last-child { max-width: 31rem; margin: auto; color: var(--muted); font-size: 1rem; }

.work { padding: clamp(6.5rem, 10vw, 9rem) 0 clamp(7rem, 11vw, 10rem); color: #f5f5f7; background: #000; overflow-x: clip; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 3.5rem; margin-bottom: clamp(2.75rem, 5vw, 4.5rem); }
.section-heading h2 { color: var(--paper-ink); }
.heading-note { max-width: 19rem; margin-bottom: .4rem; font-size: .98rem; line-height: 1.6; text-wrap: pretty; line-break: strict; }
.work .section-heading h2 { color: #f5f5f7; text-wrap: balance; }
.work .eyebrow { color: #86868b; }
.work .heading-note { color: #a1a1a6; }
.project-carousel { position: relative; }
.project-grid { display: flex; align-items: stretch; gap: 1.5rem; margin-right: calc((min(var(--max), calc(100vw - 3rem)) - 100vw) / 2); padding: .75rem 1.5rem 1rem .1rem; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; overscroll-behavior-y: auto; scroll-behavior: smooth; scroll-padding-left: .1rem; scroll-snap-type: x proximity; scrollbar-width: none; touch-action: pan-x pan-y; -ms-overflow-style: none; }
.project-grid::-webkit-scrollbar { display: none; width: 0; height: 0; }
.project-grid:focus-visible { outline: 2px solid #a1a1a6; outline-offset: 6px; }
.project-card { position: relative; display: flex; min-width: 0; flex: 0 0 clamp(20.5rem,31vw,27rem); flex-direction: column; padding: 2.4rem; border: 0; border-radius: 28px; color: var(--paper-ink); background: #fff; box-shadow: 0 22px 60px rgba(0,0,0,.24); scroll-snap-align: start; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 28px 70px rgba(0,0,0,.32); }
.project-card-content { min-width: 0; }
.project-card h3 { width: 100%; margin: 0 0 .75rem; font-size: 2.5rem; font-weight: 650; letter-spacing: 0; line-height: 1.1; overflow-wrap: break-word; text-wrap: balance; }
.project-card .project-card-subtitle { margin: 0; color: #6e6e73; font-size: 1.08rem; font-weight: 590; line-height: 1.45; text-wrap: pretty; line-break: strict; }
.project-card .project-description { margin: 1.8rem 0 0; color: #424245; font-size: 1.05rem; line-height: 1.62; text-wrap: pretty; line-break: strict; }
.project-highlights { display: grid; gap: .75rem; margin: 1.65rem 0 0; padding: 1.45rem 0 0; border-top: 1px solid #e5e5e7; list-style: none; }
.project-highlights li { position: relative; padding-left: 1rem; color: #515154; font-size: .98rem; line-height: 1.5; }
.project-highlights li::before { position: absolute; top: .66rem; left: .1rem; width: .3rem; height: .3rem; border-radius: 50%; background: #1d1d1f; content: ""; }
.project-card-bottom { min-width: 0; margin-top: auto; padding-top: 2rem; }
.project-stack { display: grid; gap: .35rem; padding-top: 1.25rem; border-top: 1px solid #e5e5e7; }
.project-stack span { color: #6e6e73; font-size: .98rem; line-height: 1.4; }
.project-stack strong { color: #1d1d1f; font-size: .98rem; font-weight: 590; line-height: 1.5; overflow-wrap: anywhere; }
.card-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.project-action { display: inline-flex; min-height: 2.8rem; align-items: center; justify-content: center; gap: .55rem; padding: .72rem 1rem; border: 1px solid #1d1d1f; border-radius: 999px; font-size: .98rem; font-weight: 600; line-height: 1.2; transition: transform .2s ease, background .2s ease, color .2s ease; }
.project-action:hover { transform: translateY(-2px); }
.project-action img { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.project-action-primary { color: #fff; background: #1d1d1f; }
.project-action-primary img { filter: invert(1); }
.project-action-primary:hover { background: #000; }
.project-action-secondary { color: #fff; background: #1d1d1f; }
.project-action-secondary img { filter: invert(1); }
.project-action-secondary:hover { color: #fff; background: #000; }

.capabilities { padding: 8.5rem 0 8rem; }
.capabilities .section-heading h2, .journey .section-heading h2 { color: var(--paper-ink); }
.skill-table { border-top: 1px solid var(--line); }.skill-row { display: grid; grid-template-columns: 4rem 12rem minmax(0,1fr); gap: 1.5rem; align-items: center; min-height: 5.4rem; border-bottom: 1px solid var(--line); }.skill-index { color: #6e6e73; font-size: .95rem; letter-spacing: 0; }.skill-label { color: var(--muted); font-size: .98rem; }.skill-row strong { display: flex; flex-wrap: wrap; align-items: baseline; gap: .12rem .55rem; min-width: 0; font-size: 1.25rem; font-weight: 550; line-height: 1.42; letter-spacing: 0; word-break: normal; overflow-wrap: normal; }.skill-term { white-space: nowrap; }.skill-separator { color: var(--muted); }
.journey { padding: 8rem 0 9rem; }.journey-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 6rem; }.journey .section-heading { display: block; }.journey .heading-note { max-width: 21rem; margin-top: 2rem; }.timeline { border-top: 1px solid var(--line); }.timeline-item { display: grid; grid-template-columns: 8rem 2rem 1fr; gap: 1.1rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }.timeline-date { padding-top: .2rem; color: var(--muted); font-size: .8rem; line-height: 1.45; }.timeline-marker { position: relative; display: flex; justify-content: center; }.timeline-marker::before { content: ""; width: 1px; height: 100%; background: var(--line); }.timeline-marker span { position: absolute; top: .4rem; width: .45rem; height: .45rem; border: 1px solid #86868b; border-radius: 50%; background: var(--paper); }.timeline-item h3 { margin-bottom: .55rem; font-size: 1.15rem; font-weight: 620; line-height: 1.35; letter-spacing: 0; overflow-wrap: break-word; word-break: normal; }.timeline-item p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; text-wrap: pretty; line-break: strict; }

.contact { padding: 9rem 0 9.5rem; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.contact h2 { font-size: 4.2rem; line-height: 1.15; }
.contact-copy { max-width: 34rem; }
.contact-copy > p { margin-bottom: 2rem; color: var(--muted); font-size: 1rem; line-height: 1.6; text-wrap: pretty; line-break: strict; }
.contact-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-item { display: grid; min-height: 5.25rem; grid-template-columns: 2.7rem minmax(0,1fr) 1.25rem; gap: 1rem; align-items: center; color: #424245; transform-origin: left center; backface-visibility: hidden; will-change: transform; transition: color .58s cubic-bezier(.22,.61,.36,1), transform .88s cubic-bezier(.65,0,.35,1); }
.contact-icon { display: grid; width: 2.7rem; height: 2.7rem; place-items: center; border-radius: 50%; background: #ededf0; }
.contact-icon img { width: 1.25rem; height: 1.25rem; }
.contact-item-copy { display: grid; min-width: 0; gap: .2rem; }
.contact-item-copy strong { font-size: 1rem; font-weight: 620; line-height: 1.35; }
.contact-item-copy > span { color: var(--muted); font-size: .98rem; line-height: 1.4; overflow-wrap: anywhere; transition: color .72s cubic-bezier(.65,0,.35,1); }
.contact-arrow { width: 1.1rem; height: 1.1rem; opacity: .55; transition: transform .82s cubic-bezier(.65,0,.35,1), opacity .72s cubic-bezier(.65,0,.35,1); }
.contact-item:hover { color: #1d1d1f; transform: translateZ(0) scale(1.02); transition: color .48s cubic-bezier(.22,.61,.36,1), transform .48s cubic-bezier(.16,1,.3,1); }
.contact-item:hover .contact-item-copy > span { color: #1d1d1f; transition: color .48s cubic-bezier(.22,.61,.36,1); }
.contact-item:hover .contact-arrow { opacity: 1; transform: translate(2px,-2px); transition: transform .42s cubic-bezier(.16,1,.3,1), opacity .48s cubic-bezier(.22,.61,.36,1); }
.footer { color: rgba(245,245,247,.62); background: #000; border-top: 1px solid rgba(255,255,255,.12); }
.footer-inner { display: grid; width: min(1280px, calc(100% - 4rem)); min-height: 12rem; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "identity nav" "identity meta"; gap: 1rem clamp(3rem,7vw,7rem); align-items: center; margin: 0 auto; padding: 3rem 0; }
.footer-identity { grid-area: identity; display: flex; min-width: 0; align-items: center; gap: .9rem; }
.footer-avatar { width: 2.6rem; height: 2.6rem; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; object-fit: cover; }
.footer-identity > div { display: grid; min-width: 0; gap: .2rem; }
.footer-identity strong { color: #f5f5f7; font-size: 1rem; font-weight: 620; line-height: 1.35; }
.footer-identity span { font-size: .98rem; line-height: 1.4; overflow-wrap: break-word; word-break: normal; }
.footer-nav { grid-area: nav; display: flex; flex-wrap: wrap; justify-content: flex-end; align-self: end; gap: .75rem 1.4rem; color: rgba(245,245,247,.75); font-size: .98rem; }
.footer-nav a, .footer-socials a { transition: color .2s ease, opacity .2s ease; }
.footer-nav a:hover { color: #fff; }
.footer-meta { grid-area: meta; display: flex; flex-direction: row; align-items: center; justify-content: flex-end; align-self: start; gap: 1.2rem; font-size: .98rem; line-height: 1.4; }
.footer-socials { display: flex; gap: .7rem; }
.footer-socials a { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; opacity: .78; }
.footer-socials a:hover { opacity: 1; }
.footer-socials img { width: 1rem; height: 1rem; filter: invert(1); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; transition-delay: var(--delay, 0ms); }.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .desktop-nav { display: none; }.menu-toggle { display: block; }.mobile-menu { position: fixed; inset: 3.5rem 0 0; display: flex; visibility: hidden; flex-direction: column; gap: 1.1rem; padding: 2.6rem 1.5rem; background: rgba(0,0,0,.97); opacity: 0; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease, visibility .25s ease; }.menu-open .mobile-menu { visibility: visible; opacity: 1; transform: translateY(0); }.mobile-menu a { color: rgba(245,245,247,.86); font-size: 2rem; line-height: 1.25; letter-spacing: 0; }
  h1 { font-size: 4.6rem; }.hero-line { font-size: 1.65rem; }.intro h2, .section-heading h2, .journey h2, .contact h2 { font-size: 3.3rem; line-height: 1.15; }.statement h2 { font-size: 3.8rem; line-height: 1.15; }.intro-layout, .journey-layout, .contact-layout { grid-template-columns: 1fr; gap: 3rem; }.intro-copy { max-width: 36rem; }.section-heading { align-items: start; flex-direction: column; gap: 1.5rem; }.heading-note { max-width: 32rem; }.journey .heading-note { margin-top: 1.5rem; }
  .project-card { flex-basis: clamp(21rem,58vw,27rem); }
  .project-card h3 { font-size: 2.3rem; }
  .footer-inner { min-height: auto; grid-template-columns: 1fr; grid-template-areas: "identity" "nav" "meta"; gap: 1.6rem; padding: 3rem 0; }
  .footer-nav { justify-content: flex-start; }
  .footer-meta { align-items: center; justify-content: flex-start; }
}

@media (max-width: 600px) {
  .global-nav { height: 3.5rem; padding-inline: 1rem; }.mobile-menu { top: 3.5rem; }.section-shell { width: min(100% - 2rem, var(--max)); }.scene, .hero-content { min-height: 90svh; }.hero-content { padding: 5.5rem 1rem 6.5rem; }.hero-line { margin-top: 1.5rem; font-size: 1.4rem; line-height: 1.4; }.hero-subline { max-width: 22rem; line-height: 1.6; }.hero-actions { width: 100%; margin-top: 1.7rem; }.hero-actions a { flex: 1; }h1 { font-size: 3.6rem; line-height: 1.16; }.intro, .capabilities, .journey, .contact { padding-block: 5.8rem; }.intro h2, .section-heading h2, .journey h2, .contact h2 { font-size: 2.5rem; line-height: 1.18; }.statement { min-height: 60vh; padding: 5rem 1rem; }.statement h2 { font-size: 2.65rem; line-height: 1.18; }.skill-row { grid-template-columns: 2.6rem minmax(0,1fr); gap: .5rem 1rem; padding: 1.2rem 0; }.skill-row strong { grid-column: 2; font-size: 1rem; line-height: 1.5; }.timeline-item { grid-template-columns: 1rem minmax(0,1fr); gap: .45rem .65rem; }.timeline-marker { grid-column: 1; grid-row: 1 / span 2; }.timeline-date { grid-column: 2; grid-row: 1; padding-top: 0; }.timeline-item > div:last-child { grid-column: 2; grid-row: 2; }.timeline-item h3 { font-size: 1.05rem; line-height: 1.4; }.timeline-item p { font-size: 1rem; line-height: 1.6; }.contact-copy { max-width: none; }
}

/* Shared scale adjustments keep supporting text readable without overpowering headings. */
.brand { font-size: .98rem; }
.desktop-nav { font-size: .98rem; }
.lang-switch { font-size: .98rem; }
.eyebrow, .hero-kicker, .hero-subline, .skill-index, .timeline-date { font-size: .98rem; }
.timeline-item p { font-size: 1rem; }
.primary-action, .secondary-action { font-size: .98rem; }

@media (max-width: 600px) {
  .project-grid { gap: 1rem; margin-right: -1rem; padding-right: 1rem; }
  .project-card { flex-basis: calc(100vw - 3.5rem); padding: 1.75rem 1.5rem 1.6rem; border-radius: 24px; }
  .project-card h3 { margin-top: 0; font-size: 2.1rem; }
  .project-card .project-card-subtitle { font-size: 1rem; }
  .project-card .project-description { font-size: 1rem; }
  .project-card-bottom { margin-top: auto; }
  .contact-item { grid-template-columns: 2.5rem minmax(0,1fr) 1.1rem; gap: .8rem; }
  .contact-icon { width: 2.5rem; height: 2.5rem; }
  .footer-inner { width: min(100% - 2rem, var(--max)); padding: 2.5rem 0; }
  .footer-meta { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .brand { font-size: .98rem; }
  .desktop-nav { font-size: .98rem; }
  .hero-kicker, .hero-subline, .timeline-date { font-size: .98rem; }
}

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