:root {
  --bg: #080808;
  --ink: #f2f2f0;
  --muted: #94949b;
  --line: #29292e;
  --accent: #6f7cff;
  --max: 78rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: "Manrope", sans-serif; line-height: 1.55; }
::selection { background: var(--accent); color: white; }
a { color: inherit; text-decoration: none; }
.noise { position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E"); }

.topbar { position: absolute; z-index: 5; top: 0; left: 50%; width: min(calc(100% - 2.5rem), var(--max)); transform: translateX(-50%); display: flex; justify-content: space-between; align-items: center; padding: 1.35rem 0; font: 500 .74rem/1 "DM Mono", monospace; letter-spacing: .07em; text-transform: uppercase; }
.identity { display: flex; align-items: center; gap: .85rem; }
.identity-mark { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--ink); border-radius: 50%; font-size: .72rem; }
nav { display: flex; gap: 2rem; }
nav a { color: var(--muted); transition: color .2s; }
nav a:hover, nav a:focus-visible { color: var(--ink); }

.hero { min-height: 46rem; display: grid; place-items: center; padding: 8rem 1.25rem 5rem; border-bottom: 1px solid var(--line); }
.hero-inner { width: min(100%, var(--max)); display: grid; grid-template-columns: minmax(0, 1fr) 19rem; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.hero-copy { max-width: 49rem; }
.hero-kicker { margin-bottom: 1.6rem; color: var(--muted); font: 500 .72rem/1.4 "DM Mono", monospace; letter-spacing: .09em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(4.2rem, 8vw, 7.4rem); line-height: .9; letter-spacing: -.07em; font-weight: 700; }
em { color: var(--accent); font-family: "Manrope", sans-serif; font-style: italic; font-weight: 500; }
.hero-intro { max-width: 36rem; margin: 2rem 0 2.2rem; color: #b9b9be; font-size: clamp(1rem, 1.5vw, 1.22rem); }
.hero-portrait { margin: 0; }
.hero-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 42%; border: 1px solid #38383e; }
.hero-portrait figcaption { margin-top: .7rem; color: var(--muted); font: 400 .66rem/1.4 "DM Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.arrow-link { display: inline-flex; align-items: center; gap: .75rem; font: 500 .75rem/1 "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.arrow-link span { color: var(--accent); font-size: 1rem; }

.metrics { width: min(calc(100% - 2.5rem), var(--max)); margin: 4rem auto 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.metrics article { min-width: 0; padding: 1.6rem; border-right: 1px solid var(--line); }
.metrics article:last-child { border-right: 0; }
.metrics strong { display: block; color: var(--accent); font: 300 clamp(2rem, 3.4vw, 3.5rem)/1 "DM Mono", monospace; }
.metrics span { display: block; margin-top: .7rem; color: var(--muted); font-size: .82rem; }

.experience, .contact { width: min(calc(100% - 2.5rem), var(--max)); margin: 0 auto; padding: clamp(5rem, 9vw, 8rem) 0; }
.section-label { display: flex; gap: 1rem; margin-bottom: clamp(3rem, 6vw, 5rem); color: var(--muted); font: 500 .72rem/1 "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.section-label span { color: var(--accent); }
.timeline { width: 100%; }
.role { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 2rem; padding: 2rem 0 5rem; border-top: 1px solid var(--line); }
.role-meta { display: flex; flex-direction: column; gap: .45rem; color: var(--muted); font: 400 .7rem/1.4 "DM Mono", monospace; letter-spacing: .05em; }
.role-body { max-width: 55rem; }
.role h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .96; letter-spacing: -.055em; }
.role h3 { margin: 1rem 0 0; color: var(--accent); font: 500 .78rem/1.4 "DM Mono", monospace; letter-spacing: .07em; text-transform: uppercase; }
.role p { max-width: 47rem; margin: 1.15rem 0; color: #96969d; font-size: 1rem; }
.role p.role-lead { margin-top: 1.8rem; color: #d3d3d7; font-size: 1.12rem; }
.current .role-meta span:first-child::before { content: ""; display: inline-block; width: .4rem; height: .4rem; margin-right: .5rem; border-radius: 50%; background: var(--accent); }

.case-study { margin: 2.4rem 0 0; padding: clamp(1.3rem, 3vw, 2.2rem); border: 1px solid #38383f; background: #101013; }
.case-topline { display: flex; justify-content: space-between; gap: 1rem; color: var(--accent); font: 500 .67rem/1.4 "DM Mono", monospace; letter-spacing: .07em; }
.case-study h4 { max-width: 18ch; margin: 2rem 0 1rem; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.045em; }
.case-results { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; border-top: 1px solid var(--line); }
.case-results div { padding: 1.1rem .8rem 0 0; border-right: 1px solid var(--line); }
.case-results div + div { padding-left: .8rem; }
.case-results div:last-child { border-right: 0; }
.case-results strong { display: block; font: 400 clamp(1.25rem, 2.4vw, 2rem)/1 "DM Mono", monospace; }
.case-results span { display: block; margin-top: .65rem; color: var(--muted); font-size: .75rem; }

.side-project { width: min(calc(100% - 2.5rem), var(--max)); margin: 0 auto; padding: clamp(1.8rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 2.5rem; background: var(--accent); color: white; }
.eyebrow { font: 500 .7rem/1.4 "DM Mono", monospace; letter-spacing: .08em; }
.side-project h2 { margin: .6rem 0 0; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.05em; }
.side-project p { max-width: 28rem; margin: 0; font-size: 1rem; }
.side-project .arrow-link span { color: white; }

.contact { min-height: 27rem; display: flex; flex-direction: column; justify-content: space-between; }
.contact-content { display: flex; justify-content: space-between; align-items: end; gap: 3rem; }
.contact-content p { margin: 0; font-size: clamp(3.5rem, 8vw, 7rem); line-height: .9; letter-spacing: -.065em; }
.contact-button { min-width: 18rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font: 500 .72rem "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.contact-button span { color: var(--accent); }
footer { width: min(calc(100% - 2.5rem), var(--max)); margin: 0 auto; padding: 1.3rem 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font: 400 .65rem "DM Mono", monospace; letter-spacing: .06em; }

.reveal { opacity: 0; transform: translateY(18px); animation: enter .7s cubic-bezier(.2,.7,.2,1) forwards; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
@keyframes enter { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 780px) {
  .topbar nav a:not(:last-child) { display: none; }
  .hero { min-height: auto; padding-top: 7rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero h1 { font-size: clamp(3.6rem, 15vw, 6rem); }
  .hero-portrait { width: min(68vw, 18rem); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics article:nth-child(2) { border-right: 0; }
  .metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .role { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 4rem; }
  .role-meta { flex-direction: row; justify-content: space-between; }
  .case-results { grid-template-columns: 1fr; }
  .case-results div, .case-results div + div { padding: 1rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .case-results div:last-child { border-bottom: 0; }
  .side-project { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
  .contact-content { flex-direction: column; align-items: flex-start; }
  .contact-button { min-width: 0; width: 100%; }
  footer { flex-direction: column; gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
}
