:root {
  --black: #0a0a0a;
  --ink: #171717;
  --gray-1: #4e4e4e;
  --gray-2: #8a8a8a;
  --gray-3: #d8d8d8;
  --gray-4: #f3f3f1;
  --white: #fff;
  --content: 1180px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(.2,.75,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Manrope", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 999; padding: .75rem 1rem; color: #fff; background: #000; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: .8rem var(--pad);
  border-bottom: 1px solid rgba(10,10,10,.12);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
}

.wordmark { justify-self: start; font-size: 1.15rem; font-weight: 800; text-decoration: none; letter-spacing: -.04em; }
.wordmark-dot { color: var(--gray-2); }
.main-nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.main-nav a, .header-cta { font-size: .78rem; font-weight: 700; text-decoration: none; letter-spacing: .06em; text-transform: uppercase; }
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.35rem; height: 1px; background: #000; transition: right 250ms var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="true"]::after { right: 0; }
.header-cta { justify-self: end; padding: .55rem .8rem; border: 1px solid #111; }

.story-section {
  position: relative;
  width: min(var(--content), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: clamp(4.5rem, 7vw, 6.75rem) 0;
}

.hero { min-height: 100svh; display: grid; align-content: center; padding-top: 9rem; }
.hero-intro { display: block; }
.hero-copy { max-width: 970px; }
.eyebrow, .section-number, .project-meta, .timeline-date {
  font-family: "DM Mono", monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.profile-lockup { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.profile-name { margin: 0 0 .1rem; font-size: .9rem; font-weight: 800; letter-spacing: -.02em; }
.profile-role { margin: 0 0 .55rem; color: var(--gray-1); font-size: .72rem; }
.eyebrow { display: flex; align-items: center; gap: .55rem; margin: 0; color: var(--gray-2); font-size: .62rem; }
.status-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #111; box-shadow: 0 0 0 5px #ececec; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(2.9rem, 5vw, 4.7rem); line-height: 1.02; letter-spacing: -.058em; }
.outlined { color: #fff; -webkit-text-stroke: clamp(1px, .12vw, 2px) #111; }
.hero-lede { max-width: 720px; margin: 2.5rem 0 0; color: var(--gray-1); font-size: clamp(1.05rem, 2vw, 1.45rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: 2.6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 46px; padding: .7rem 1rem; border: 1px solid #111; font-size: .82rem; font-weight: 700; text-decoration: none; transition: transform 220ms var(--ease), color 220ms, background 220ms; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: #fff; background: #111; }
.text-link { font-size: .84rem; font-weight: 700; text-underline-offset: .25rem; }
.hero-portrait { flex: 0 0 88px; width: 88px; height: 88px; margin: 0; overflow: hidden; border: 1px solid var(--gray-3); border-radius: 50%; box-shadow: 0 12px 35px rgba(0,0,0,.08); }
.hero-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: transform 500ms var(--ease); }
.hero-portrait:hover img { transform: translateY(-4px) rotate(1deg); }

.hero-proof { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin-top: clamp(3rem, 6vw, 5rem); padding: 1rem 0; border-top: 1px solid var(--gray-3); border-bottom: 1px solid var(--gray-3); }
.hero-proof p { margin: 0; color: var(--gray-1); font-size: .78rem; }
.hero-proof p:first-child { margin-right: auto; color: var(--ink); font-family: "DM Mono", monospace; text-transform: uppercase; }
.hero-proof b { color: var(--ink); }
.scroll-cue { position: absolute; right: 0; bottom: 2rem; margin: 0; color: var(--gray-2); font-family: "DM Mono", monospace; font-size: .68rem; text-transform: uppercase; }

.section-intro { display: grid; grid-template-columns: minmax(150px, .55fr) 2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-number { margin: .45rem 0 0; color: var(--gray-2); }
.section-intro h2, .about-section h2, .contact-section h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.8rem); line-height: 1.07; letter-spacing: -.05em; }
.section-intro > div > p { max-width: 620px; margin: 1rem 0 0; color: var(--gray-1); }

.work-section, .experience-section { border-top: 1px solid var(--gray-3); }
.project-stack { display: grid; gap: 1rem; }
.project { padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid var(--gray-3); background: #fff; transition: border-color 260ms, transform 260ms var(--ease); }
.project:hover { border-color: #111; transform: translateY(-3px); }
.project-featured { color: #fff; background: #111; border-color: #111; }
.project-meta { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 2rem; color: var(--gray-2); }
.project-featured .project-meta { color: #aaa; }
.project-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: clamp(2rem, 7vw, 7rem); align-items: end; }
.project-kicker { margin: 0 0 .75rem; font-family: "DM Mono", monospace; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.project h3 { max-width: 720px; margin: 0; font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: 1.08; letter-spacing: -.05em; }
.project h3 + p { max-width: 680px; color: var(--gray-1); }
.project-featured h3 + p { color: #c8c8c8; }
.tool-line { margin-top: 1.4rem; color: var(--gray-2) !important; font-family: "DM Mono", monospace; font-size: .72rem; text-transform: uppercase; }
.project-diagram { display: grid; gap: .65rem; text-align: center; }
.diagram-node { padding: 1rem; border: 1px solid #555; font-family: "DM Mono", monospace; font-size: .7rem; text-transform: uppercase; }
.diagram-node-dark { color: #111; background: #fff; border-color: #fff; }
.project footer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid #3c3c3c; color: #aaa; font-size: .75rem; }
.project-actions { display: grid; justify-items: start; gap: 1rem; }
.project-actions p { margin: 0; color: var(--gray-1); font-size: .78rem; }
.project-result { display: grid; gap: .6rem; padding-left: 1.5rem; border-left: 1px solid #555; }
.project-result span { color: #888; font-family: "DM Mono", monospace; font-size: .68rem; text-transform: uppercase; }
.project-result strong { max-width: 230px; font-size: 1.3rem; line-height: 1.25; }
.project-compact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; }
.project-compact h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.project-archive { padding-top: 1.8rem; padding-bottom: 1.8rem; background: var(--gray-4); }
.project-archive .project-meta { padding-bottom: 1.2rem; }
.project-archive p { margin-top: 0; color: var(--gray-1); font-size: .86rem; }
.project-archive .text-link { display: inline-block; margin-top: 1rem; }

.capabilities-section { width: 100%; padding-left: max(var(--pad), calc((100% - var(--content)) / 2)); padding-right: max(var(--pad), calc((100% - var(--content)) / 2)); color: #fff; background: #111; }
.capabilities-section .section-intro > p:last-child { color: #aaa; }
.capability-grid { display: grid; border-top: 1px solid #444; }
.capability-grid article { display: grid; grid-template-columns: 4rem minmax(190px, .8fr) 1.2fr; align-items: center; gap: 1rem; min-height: auto; padding: 1.5rem 0; border-bottom: 1px solid #444; }
.capability-index { color: #777; font-family: "DM Mono", monospace; }
.capability-grid h3 { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.8rem); letter-spacing: -.04em; }
.capability-grid p { max-width: 520px; margin: 0; color: #bbb; }
.working-style { display: grid; grid-template-columns: .5fr 2fr; gap: 2rem; margin-top: 4rem; }
.working-style > p { margin: 0; color: #777; font-family: "DM Mono", monospace; font-size: .72rem; text-transform: uppercase; }
.working-style ol { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; counter-reset: work; list-style: none; }
.working-style li { padding: .55rem .8rem; border: 1px solid #555; font-size: .78rem; }
.working-style li + li { border-left: 0; }

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(25% + 2rem); width: 1px; background: var(--gray-3); }
.timeline-item { display: grid; grid-template-columns: 25% 4rem 1fr; min-height: 0; }
.timeline-date { padding-top: .55rem; color: var(--gray-2); }
.timeline-marker { position: relative; }
.timeline-marker::before { content: ""; position: absolute; top: .65rem; left: 50%; width: .7rem; height: .7rem; border: 2px solid #111; border-radius: 50%; background: #fff; transform: translateX(-50%); }
.timeline-content { padding: 0 0 2.6rem 1rem; }
.timeline-company { margin: 0 0 .6rem; color: var(--gray-2); font-family: "DM Mono", monospace; font-size: .72rem; text-transform: uppercase; }
.timeline-content h3 { margin: 0; font-size: clamp(1.4rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.04em; }
.timeline-content h3 + p { max-width: 700px; color: var(--gray-1); }
.experience-tools { margin: .8rem 0 0; color: var(--gray-2); font-family: "DM Mono", monospace; font-size: .68rem; letter-spacing: .035em; text-transform: uppercase; }
.timeline-item-secondary .timeline-content h3 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); }

.about-section { border-top: 1px solid var(--gray-3); }
.about-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(3rem, 10vw, 9rem); }
.about-copy > p { margin-top: 0; color: var(--gray-1); font-size: clamp(1rem, 1.7vw, 1.25rem); }
.education { display: grid; margin-top: 3rem; border-top: 1px solid var(--gray-3); }
.education article { display: grid; grid-template-columns: 5rem 1fr; gap: .2rem 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--gray-3); }
.education span { grid-row: span 2; color: var(--gray-2); font-family: "DM Mono", monospace; }
.education small { color: var(--gray-1); }

.contact-section { width: 100%; max-width: none; padding-left: max(var(--pad), calc((100% - var(--content)) / 2)); padding-right: max(var(--pad), calc((100% - var(--content)) / 2)); color: #fff; background: #111; }
.contact-section .section-number, .contact-section > p { color: #aaa; }
.contact-section > p { max-width: 700px; }
.contact-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.5rem; }
.button-light { color: #fff; border-color: #777; }
.button-light:hover { color: #111; background: #fff; border-color: #fff; }
.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 1.2rem var(--pad); border-top: 1px solid #333; color: #777; background: #111; font-family: "DM Mono", monospace; font-size: .65rem; text-transform: uppercase; }

.journey { position: fixed; z-index: 40; top: 92px; bottom: 32px; left: clamp(.5rem, 2vw, 2rem); width: 76px; pointer-events: none; }
.journey-line { position: absolute; top: 0; bottom: 0; left: 31px; width: 1px; background: repeating-linear-gradient(to bottom, #bbb 0 3px, transparent 3px 14px); }
.journey-progress { height: 100%; background: #111; transform: scaleY(0); transform-origin: top; }
.walker { position: absolute; top: -32px; left: 9px; width: 46px; height: 68px; padding: 4px; border: 1px solid #bbb; border-radius: 999px; background: #fff; will-change: transform; }
.walker svg { width: 100%; height: 100%; overflow: visible; }
.walker path, .walker circle { fill: none; stroke: #111; stroke-width: 2.5; stroke-linecap: round; transform-box: fill-box; transform-origin: top center; }
.walker[data-frame="1"] .arm-left, .walker[data-frame="3"] .arm-right { transform: rotate(18deg); }
.walker[data-frame="1"] .arm-right, .walker[data-frame="3"] .arm-left { transform: rotate(-18deg); }
.walker[data-frame="1"] .leg-left, .walker[data-frame="3"] .leg-right { transform: rotate(15deg); }
.walker[data-frame="1"] .leg-right, .walker[data-frame="3"] .leg-left { transform: rotate(-15deg); }
.journey-name { position: absolute; top: -4px; left: 62px; padding: .25rem .45rem; border: 1px solid #ddd; color: #333; background: #fff; font-family: "DM Mono", monospace; font-size: .6rem; text-transform: uppercase; white-space: nowrap; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .journey { display: none; }
  .section-intro { grid-template-columns: 1fr 2fr; }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .header-cta { font-size: .7rem; }
  .hero { min-height: auto; padding-top: 9rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-portrait { flex-basis: 74px; width: 74px; height: 74px; }
  .profile-lockup { align-items: center; }
  .project-grid, .project-compact, .about-layout { grid-template-columns: 1fr; }
  .section-intro { grid-template-columns: 1fr; }
  .capability-grid article { grid-template-columns: 2.5rem 1fr; }
  .capability-grid article p { grid-column: 2; }
  .project-grid { gap: 2.5rem; }
  .capability-grid article { min-height: 220px; }
  .timeline::before { left: 7px; }
  .timeline-item { grid-template-columns: 1.5rem 1fr; min-height: 0; }
  .timeline-date { grid-column: 2; padding: 0 0 .5rem 1rem; }
  .timeline-marker { grid-column: 1; grid-row: 1 / span 2; }
  .timeline-marker::before { left: 7px; }
  .timeline-content { grid-column: 2; padding-left: 1rem; }
  .working-style { grid-template-columns: 1fr; }
  .working-style li + li { border-left: 1px solid #555; }
  .site-footer { flex-direction: column; }
  .scroll-cue { display: none; }
}

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