:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #111216;
  --surface-raised: #18191e;
  --text: #f5f5f7;
  --muted: #a0a1a8;
  --line: rgba(255, 255, 255, .12);
  --accent: #7889ff;
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", sans-serif;
  --display: "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
::selection { color: #fff; background: var(--accent); }
.page-grain { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .022; 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.section-wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 125px; }
.site-header { height: 82px; padding: 0 max(48px, calc((100% - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 30; background: rgba(9, 9, 11, .94); }
.wordmark { font: 700 17px var(--display); letter-spacing: .12em; }
.wordmark span, .accent-dot { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 38px; color: #a4a5ac; font-size: 12px; }
.site-nav > a:not(.nav-cta) { transition: color .2s; }
.site-nav > a:not(.nav-cta):hover, .footer-links a:hover { color: var(--text); }
.nav-cta { padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.nav-cta span { padding-left: 9px; color: var(--accent); }
.menu-toggle { display: none; }

.hero { position: relative; display: flex; align-items: center; min-height: min(790px, calc(100svh - 82px)); overflow: hidden; background: radial-gradient(ellipse at 70% 38%, #17181d 0, var(--bg) 57%); }
.hero-backdrop-name { position: absolute; z-index: 1; top: 40%; left: 50%; transform: translate(-50%, -50%); color: rgba(255, 255, 255, .12); font: 700 clamp(140px, 24vw, 350px)/.8 var(--display); letter-spacing: -.09em; white-space: nowrap; pointer-events: none; }
.hero-visual { position: absolute; z-index: 2; top: 0; right: max(calc((100vw - 1180px) / 2), 4vw); bottom: 0; width: min(52vw, 630px); overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; filter: grayscale(1) brightness(.52) contrast(1.2); }
.hero-image-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(9, 9, 11, .46) 26%, transparent 58%), linear-gradient(0deg, var(--bg) 0%, transparent 40%), linear-gradient(180deg, rgba(9, 9, 11, .18), transparent 30%), rgba(9, 9, 11, .12); }
.hero-image-label { position: absolute; right: 12px; bottom: 70px; color: rgba(255, 255, 255, .72); font: 10px var(--mono); letter-spacing: .16em; }
.hero-copy { position: relative; z-index: 4; padding-top: 20px; }
.eyebrow, .section-label, .hero-bottom, .project-topline, .project-bottom, .skill-index, .timeline-date, .timeline-type, .contact-kicker, .contact-detail small, .contact-socials, .footer-note, .footer-links { font-family: var(--mono); font-size: 9px; letter-spacing: .13em; }
.eyebrow { color: #c3c4ca; display: flex; align-items: center; gap: 11px; }
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px #7889ff9c; }
.eyebrow-divider { color: #62636b; }
.hero h1 { max-width: 700px; margin: 30px 0 24px; font: 600 clamp(64px, 8.6vw, 112px)/.91 var(--display); letter-spacing: -.075em; }
.serif-word { color: var(--accent); font: italic 500 1.02em/1 Georgia, "Times New Roman", serif; letter-spacing: -.07em; }
.hero-intro { max-width: 420px; margin: 0; color: #b0b1b8; font-size: 14px; line-height: 1.9; }
.hero-intro strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 27px; margin-top: 32px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; padding: 0 19px; border: 0; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; }
.button-primary { background: var(--text); color: #111216; transition: background .2s, color .2s, transform .2s; }
.button-primary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.button-primary span:last-child { color: var(--accent); font-size: 16px; }
.button-primary:hover span:last-child { color: #fff; }
.text-link { color: #e1e1e5; font-size: 12px; }
.text-link span { padding-left: 8px; color: var(--accent); }
.hero-bottom { position: absolute; z-index: 5; right: 0; bottom: 24px; left: 0; display: flex; justify-content: space-between; color: #85868e; font-size: 8px; }
.hero-bottom a span { padding-left: 6px; color: var(--accent); }

.ticker { overflow: hidden; padding: 19px 0; border-block: 1px solid var(--line); }
.ticker-track { min-width: max-content; display: flex; align-items: center; justify-content: space-around; gap: 55px; animation: ticker 34s linear infinite; }
.ticker-track span { color: #bfc0c6; font: 500 10px var(--mono); letter-spacing: .15em; }
.ticker-track i { color: var(--accent); font-size: 12px; font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }
.section-label { color: #9a9ba2; white-space: nowrap; }
.section-label span { padding-right: 12px; color: var(--accent); }

.about { background: #0e0f12; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.about-heading h2, .skills h2, .education-grid h2 { margin: 34px 0 0; font: 500 clamp(40px, 5.2vw, 64px)/1.08 var(--display); letter-spacing: -.065em; }
.muted { color: #777981; }
.about-content { padding-top: 36px; }
.about-lead { max-width: 580px; margin: 0 0 24px; color: #f0f0f3; font: 500 22px/1.5 var(--display); letter-spacing: -.025em; }
.about-text { max-width: 590px; margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.about-facts > div { display: flex; align-items: center; gap: 12px; color: #c9c9cf; font-size: 11px; line-height: 1.5; }
.fact-number { color: var(--accent); font: 11px var(--mono); }

.work-section { padding-block: 120px 130px; background: #09090b; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 42px; }
.section-heading p { max-width: 290px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.project-card { padding: 26px 30px 0; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, #141519, #0d0e11); }
.project-topline, .project-bottom { display: flex; justify-content: space-between; color: #888991; font-size: 8px; }
.project-main { display: grid; grid-template-columns: .9fr 1.1fr; gap: 55px; padding: 62px 0 54px; }
.project-title { display: flex; gap: 17px; }
.project-number { margin-top: 14px; color: var(--accent); font: 10px var(--mono); }
.project-title h3 { margin: 0; font: 500 clamp(42px, 5vw, 68px)/1.02 var(--display); letter-spacing: -.07em; }
.project-title h3 em { color: var(--accent); font: italic 500 1em Georgia, "Times New Roman", serif; }
.project-description { padding-top: 6px; }
.project-description > p { margin: 0 0 17px; color: #d0d0d5; font-size: 13px; line-height: 1.85; }
.project-description ul { margin: 0; padding: 0 0 0 17px; color: #a1a2a9; font-size: 11px; line-height: 1.9; }
.project-description li { margin-bottom: 6px; padding-left: 4px; }
.project-description li::marker { color: var(--accent); }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 23px; }
.project-tags span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: #c0c0c6; font: 8px var(--mono); letter-spacing: .05em; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; margin-top: 25px; }
.project-live-link { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 60px; padding: 8px 13px; border: 1px solid rgba(120, 137, 255, .32); border-radius: 14px; background: linear-gradient(135deg, rgba(120, 137, 255, .16), rgba(120, 137, 255, .04)); transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.project-live-link:hover { transform: translateY(-2px); border-color: var(--accent); background: linear-gradient(135deg, rgba(120, 137, 255, .24), rgba(120, 137, 255, .08)); box-shadow: 0 12px 30px rgba(0, 0, 0, .24); }
.project-live-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 9px; border-radius: 8px; background: rgba(120, 137, 255, .14); color: #c1c8ff; font: 7px var(--mono); letter-spacing: .08em; white-space: nowrap; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #83f0b2; box-shadow: 0 0 9px rgba(131, 240, 178, .72); }
.project-live-title { color: #f5f5f7; font: 500 12px var(--display); white-space: nowrap; }
.project-live-arrow { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; transition: transform .2s; }
.project-live-link:hover .project-live-arrow { transform: translate(2px, -2px); }
.project-link { display: inline-flex; gap: 12px; margin-top: 0; padding-bottom: 5px; border-bottom: 1px solid #676a7b; font-size: 11px; }
.project-link span { color: var(--accent); }
.project-bottom { padding: 18px 0; border-top: 1px solid var(--line); }

.skills { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; background: #0e0f12; }
.skills-visual { display: flex; flex-direction: column; gap: 30px; }
.toolkit-photo { position: relative; min-height: 440px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-raised); }
.toolkit-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 32%; filter: saturate(.78) contrast(1.04); transition: transform .5s; }
.toolkit-photo:hover img { transform: scale(1.035); }
.toolkit-photo::after { position: absolute; inset: 35% 0 0; content: ""; background: linear-gradient(transparent, rgba(7, 8, 10, .82)); }
.toolkit-photo figcaption { position: absolute; z-index: 1; right: 22px; bottom: 22px; left: 22px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.toolkit-photo figcaption span { color: #d7d9ed; font: 9px var(--mono); letter-spacing: .14em; }
.toolkit-photo figcaption strong { color: #fff; font: 500 21px/1.2 var(--display); letter-spacing: -.04em; text-align: right; }
.skills h2 { margin-top: 34px; }
.skills-intro { margin: 14px 0 32px; color: var(--muted); font-size: 12px; }
.skill-group { display: grid; grid-template-columns: 155px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.skill-index { padding-top: 6px; color: #888991; font-size: 8px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-list span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: #d9d9de; font-size: 11px; }
.skill-list small { margin-left: 4px; color: var(--accent); font: 8px var(--mono); }

.education-section { padding-block: 115px 125px; background: #09090b; color: var(--text); }
.education-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.education-grid h2 { margin-top: 30px; }
.education-grid .muted { color: #777981; }
.timeline-item { display: grid; grid-template-columns: 95px 1fr; gap: 23px; margin-bottom: 30px; padding: 0 0 32px; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { margin-bottom: 0; border-bottom: 0; }
.timeline-date, .timeline-type { color: #92939a; font-size: 8px; }
.timeline-item h3 { margin: -4px 0 10px; font: 600 18px var(--display); letter-spacing: -.04em; }
.timeline-item p { margin: 0 0 17px; color: #a4a5ac; font-size: 12px; line-height: 1.8; }
.timeline-type { color: var(--accent); }

.contact-section { padding-block: 100px; background: #09090b; }
.contact-wrap { padding: 34px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 25px; background: radial-gradient(ellipse at 5% 0, #181a23 0, #101115 48%, #101115 100%); }
.contact-wrap > .section-label { margin-bottom: 48px; }
.contact-main { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(40px, 8vw, 110px); }
.contact-kicker { color: var(--accent); font-size: 8px; }
.contact-info h2 { margin: 22px 0; font: 500 clamp(48px, 6vw, 76px)/.98 var(--display); letter-spacing: -.075em; }
.contact-info h2 span { color: var(--accent); }
.contact-copy { max-width: 380px; color: #aaaab2; font-size: 12px; line-height: 1.9; }
.contact-details { display: grid; gap: 18px; margin-top: 32px; }
.contact-detail { display: flex; align-items: center; gap: 14px; color: #e4e4e8; font-size: 12px; }
.detail-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--accent); font-size: 17px; }
.contact-detail span:last-child { display: grid; gap: 5px; }
.contact-detail small { color: #82838b; font-size: 8px; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; color: #92939a; font-size: 8px; }
.contact-socials a { color: #e0e0e5; transition: color .2s; }
.contact-socials a:hover { color: var(--accent); }
.contact-form { display: flex; flex-direction: column; padding: 30px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 18px; background: rgba(7, 8, 10, .45); }
.contact-form h3 { margin: 0 0 14px; font: 500 23px var(--display); letter-spacing: -.04em; }
.contact-form label { margin: 17px 0 8px; color: #92939a; font: 8px var(--mono); letter-spacing: .1em; }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 15px; border: 1px solid rgba(255, 255, 255, .05); border-radius: 9px; outline: none; background: #17181d; color: var(--text); font-size: 12px; resize: vertical; transition: border-color .2s, background .2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(120, 137, 255, .65); background: #1b1c22; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #72737b; }
.form-submit { width: 100%; margin-top: 22px; border-radius: 9px; background: #222329; color: var(--text); }
.form-submit:hover { background: var(--accent); }
.form-submit span:last-child { color: var(--text); }
.form-status { min-height: 20px; margin-bottom: 0; color: #a9b5ff; font-size: 11px; line-height: 1.6; }
.form-status.error { color: #ff9a9a; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 95px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-note, .footer-links { color: #85868e; font-size: 8px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { transition: color .2s; }

@media (max-width: 900px) {
  .section-wrap { width: min(100% - 64px, 720px); }
  .site-header { padding-inline: 32px; }
  .hero-visual { right: 0; width: 55vw; }
  .about-grid, .skills { grid-template-columns: 1fr; gap: 32px; }
  .skills-visual { display: grid; grid-template-columns: 1fr .9fr; align-items: start; gap: 25px; }
  .toolkit-photo { min-height: 340px; }
  .about-content { padding-top: 0; }
  .contact-main { gap: 40px; }
  .project-main { gap: 30px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 68px; }
  .section-wrap { width: calc(100% - 40px); }
  .section { padding-block: 84px; }
  .site-header { height: 68px; padding-inline: 20px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 6px; border: 0; background: none; padding: 9px 2px 9px 9px; cursor: pointer; }
  .menu-toggle span { width: 22px; height: 1px; background: var(--text); }
  .site-nav { display: none; position: absolute; top: 67px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); background: #101115; }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.nav-cta) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 14px; text-align: center; }
  .hero { min-height: 780px; align-items: flex-start; }
  .hero-backdrop-name { top: 47%; left: 40%; font-size: clamp(100px, 25vw, 170px); }
  .hero-visual { top: auto; right: -5%; bottom: 30px; width: 92%; height: 58%; opacity: .8; }
  .hero-visual img { object-position: center 18%; }
  .hero-image-shade { background: linear-gradient(90deg, var(--bg), transparent 48%), linear-gradient(0deg, var(--bg), transparent 50%), linear-gradient(180deg, var(--bg) 0, transparent 40%); }
  .hero-copy { padding-top: 88px; }
  .eyebrow { flex-wrap: wrap; gap: 8px; font-size: 8px; }
  .hero h1 { margin-top: 28px; font-size: clamp(60px, 14vw, 88px); }
  .hero-intro { max-width: 350px; font-size: 13px; }
  .hero-actions { gap: 19px; margin-top: 25px; }
  .hero-bottom { bottom: 17px; flex-wrap: wrap; gap: 10px 18px; font-size: 7px; }
  .hero-bottom > span:nth-child(2) { display: none; }
  .ticker-track { gap: 34px; }
  .about-grid { gap: 26px; }
  .skills-visual { grid-template-columns: 1fr; gap: 22px; }
  .toolkit-photo { min-height: 310px; }
  .about-heading h2, .skills h2, .education-grid h2 { font-size: clamp(38px, 10vw, 54px); }
  .about-lead { font-size: 19px; }
  .about-facts { gap: 8px; }
  .about-facts > div { gap: 7px; font-size: 9px; }
  .work-section { padding-block: 82px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading p { margin-top: 16px; }
  .project-card { padding: 19px 17px 0; border-radius: 14px; }
  .project-topline, .project-bottom { gap: 10px; font-size: 7px; }
  .project-main { grid-template-columns: 1fr; gap: 25px; padding: 38px 0; }
  .project-title h3 { font-size: 51px; }
  .project-actions { align-items: flex-start; gap: 14px; }
  .project-live-link { gap: 8px; padding: 7px 9px; }
  .project-live-title { font-size: 11px; }
  .skill-group { grid-template-columns: 1fr; gap: 11px; }
  .education-grid { grid-template-columns: 1fr; gap: 31px; }
  .education-grid h2 { margin-top: 22px; }
  .timeline-item { grid-template-columns: 67px 1fr; gap: 11px; }
  .timeline-item h3 { font-size: 15px; }
  .contact-section { padding-block: 64px; }
  .contact-wrap { padding: 23px 17px; border-radius: 18px; }
  .contact-wrap > .section-label { margin-bottom: 34px; }
  .contact-main { grid-template-columns: 1fr; gap: 34px; }
  .contact-info h2 { font-size: clamp(54px, 14vw, 68px); }
  .contact-form { padding: 22px 17px; }
  .footer-inner { min-height: 0; padding-block: 24px; flex-wrap: wrap; }
  .footer-note { order: 3; width: 100%; }
  .footer-links { gap: 13px; font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
