:root {
  --ink: #0a0c0b;
  --ink-soft: #171a18;
  --paper: #f3f4ef;
  --paper-dim: #d8dcd2;
  --lime: #c7ff32;
  --lime-dark: #8faf1e;
  --line: rgba(243, 244, 239, .18);
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--lime); color: var(--ink); padding: .75rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.5rem clamp(1.25rem, 4vw, 4.5rem); }
.brand { display: flex; align-items: center; gap: .85rem; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 2.6rem; aspect-ratio: 1; background: var(--lime); color: var(--ink); font-size: .8rem; font-family: var(--mono); border-radius: 50%; }
.brand-name { font-size: .9rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; font-size: .88rem; font-weight: 600; }
.site-nav a:not(.nav-contact) { color: var(--paper-dim); transition: color .2s ease; }
.site-nav a:hover { color: var(--lime); }
.nav-contact { border: 1px solid var(--line); border-radius: 999px; padding: .65rem 1rem; }
.menu-button { display: none; border: 1px solid var(--line); color: var(--paper); background: transparent; border-radius: 99px; padding: .5rem .8rem; }

.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(22rem, .9fr); gap: 3rem; align-items: center; padding: 9rem clamp(1.25rem, 6vw, 7rem) 5rem; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 82% 44%, rgba(199,255,50,.14), transparent 31%), linear-gradient(120deg, transparent 52%, rgba(255,255,255,.025) 52%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 4rem 4rem; mask-image: linear-gradient(to right, black, transparent 78%); }
.hero-copy { max-width: 52rem; }
.eyebrow, .section-index { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--lime); }
.eyebrow { display: flex; align-items: center; gap: .65rem; }
.eyebrow span { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 .25rem rgba(199,255,50,.13); }
h1 { margin: 1.3rem 0 1.5rem; font-size: clamp(3.2rem, 7vw, 7.8rem); line-height: .94; letter-spacing: -.075em; font-weight: 700; }
h1 em { color: var(--lime); font-style: normal; }
.hero-intro { max-width: 43rem; color: var(--paper-dim); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2.2rem 0 3.5rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 12rem; gap: 1rem; padding: .9rem 1.1rem; border-radius: .25rem; font-weight: 700; font-size: .9rem; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--lime); color: var(--ink); }
.button.ghost { border: 1px solid var(--line); }
.hero-facts { display: flex; gap: clamp(1.5rem, 5vw, 4rem); margin: 0; }
.hero-facts div { border-left: 1px solid var(--line); padding-left: .9rem; }
.hero-facts dt { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; color: #8e958c; }
.hero-facts dd { margin: .15rem 0 0; font-weight: 700; }

.hero-visual { position: relative; min-height: 38rem; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(199,255,50,.28); border-radius: 50%; }
.orbit-a { width: 31rem; height: 31rem; }
.orbit-b { width: 22rem; height: 22rem; border-style: dashed; animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.phone { position: absolute; width: 13.5rem; padding: .45rem; background: #050605; border: 1px solid #444944; border-radius: 1.6rem; box-shadow: 0 2rem 5rem rgba(0,0,0,.5); overflow: hidden; }
.phone img { border-radius: 1.2rem; }
.phone-back { transform: translate(-6.5rem, 1.5rem) rotate(-10deg); opacity: .72; }
.phone-front { transform: translate(4.5rem, -1rem) rotate(7deg); z-index: 2; }
.tech-chip { position: absolute; z-index: 4; background: var(--paper); color: var(--ink); border-radius: 99px; padding: .55rem .85rem; font-family: var(--mono); font-size: .7rem; box-shadow: 0 .5rem 2rem rgba(0,0,0,.4); }
.chip-kotlin { top: 18%; right: 7%; }
.chip-compose { bottom: 23%; left: 2%; background: var(--lime); }
.visual-note { position: absolute; right: 0; bottom: 3%; border-top: 1px solid var(--line); padding-top: .7rem; width: 9.5rem; color: #9ca398; font-family: var(--mono); font-size: .68rem; line-height: 1.6; }
.visual-note strong { color: var(--paper); font-weight: 500; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--lime); color: var(--ink); padding: .9rem 0; font-family: var(--mono); font-size: .8rem; white-space: nowrap; }
.marquee div { width: max-content; animation: marquee 28s linear infinite; }
.marquee span { padding: 0 1.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 6vw, 7rem); }
.section-heading { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 4rem; margin-bottom: 4rem; }
.section-heading.compact { grid-template-columns: minmax(0, 52rem); }
.section-heading h2, .stack-copy h2 { margin: .9rem 0 0; max-width: 52rem; font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1.03; letter-spacing: -.055em; }
.section-heading > p { color: #a8afa4; max-width: 30rem; }

.work-section { background: var(--paper); color: var(--ink); }
.work-section .section-index { color: #657a1d; }
.project-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.project-card { min-height: 31rem; background: #dce0d5; padding: clamp(1.25rem, 3vw, 2.2rem); display: flex; flex-direction: column; justify-content: space-between; border-radius: .6rem; transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 1.4rem 3rem rgba(10,12,11,.12); }
.project-featured { min-height: 38rem; grid-row: span 2; background: var(--lime); }
.project-dark { background: var(--ink-soft); color: var(--paper); }
.project-topline { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .69rem; text-transform: uppercase; letter-spacing: .08em; }
.project-company { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; color: #596055; }
.project-dark .project-company { color: #9ca398; }
.project-body h3 { margin: .4rem 0 1rem; font-size: clamp(2.4rem, 4vw, 4.5rem); line-height: 1; letter-spacing: -.06em; }
.project-card:not(.project-featured) .project-body h3 { font-size: clamp(2rem, 3vw, 3.2rem); }
.project-body > p:last-of-type { max-width: 40rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.tag-list li { border: 1px solid rgba(10,12,11,.24); border-radius: 99px; padding: .34rem .65rem; font-family: var(--mono); font-size: .66rem; }
.project-dark .tag-list li { border-color: var(--line); }
.project-link { align-self: flex-start; display: inline-flex; gap: 1.2rem; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: .25rem; font-weight: 700; }

.experience-section { background: var(--ink); }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 13rem 1fr auto; gap: 3rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.timeline-date { font-family: var(--mono); color: #8f968b; font-size: .72rem; }
.timeline-item h3 { margin: 0; font-size: 1.45rem; }
.timeline-item .company { color: var(--lime); margin: .2rem 0 .8rem; font-weight: 600; }
.timeline-item div > p:last-child { max-width: 48rem; color: #adb4aa; margin-bottom: 0; }
.timeline-number { color: #555b55; font-family: var(--mono); font-size: .72rem; }
.timeline-item.current { background: linear-gradient(90deg, rgba(199,255,50,.07), transparent); }

.stack-section { background: #151816; display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 8vw, 8rem); }
.stack-copy { position: sticky; top: 3rem; align-self: start; }
.stack-copy > p:last-child { color: #a8afa4; max-width: 31rem; }
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.stack-card { min-height: 14rem; background: #202420; border: 1px solid rgba(255,255,255,.07); padding: 1.5rem; display: flex; flex-direction: column; border-radius: .45rem; }
.stack-card > span { font-family: var(--mono); color: var(--lime); font-size: .68rem; }
.stack-card h3 { margin: auto 0 .4rem; color: #a9b0a5; font-size: .8rem; font-family: var(--mono); text-transform: uppercase; font-weight: 400; }
.stack-card p { margin: 0; font-size: 1.15rem; font-weight: 700; }
.stack-card.education { grid-column: span 2; min-height: 11rem; background: var(--lime); color: var(--ink); }
.stack-card.education > span, .stack-card.education h3 { color: #41500d; }

.contact-section { background: var(--lime); color: var(--ink); padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 6vw, 7rem); }
.contact-section .section-index { color: #4f610e; }
.contact-section h2 { max-width: 66rem; margin: 1rem 0 3rem; font-size: clamp(2.8rem, 7vw, 7rem); line-height: .98; letter-spacing: -.065em; }
.contact-email { display: inline-flex; align-items: center; gap: 1rem; border-bottom: 2px solid var(--ink); font-size: clamp(1.1rem, 2.3vw, 2rem); font-weight: 700; }
.contact-meta { display: flex; justify-content: space-between; align-items: end; margin-top: 6rem; border-top: 1px solid rgba(10,12,11,.28); padding-top: 1.3rem; font-family: var(--mono); font-size: .75rem; }
.contact-meta a { font-weight: 700; }

footer { display: flex; justify-content: space-between; padding: 1.2rem clamp(1.25rem, 6vw, 7rem); color: #858c82; font-family: var(--mono); font-size: .68rem; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 8rem; }
  .hero-visual { min-height: 35rem; }
  .section-heading, .stack-section { grid-template-columns: 1fr; gap: 2rem; }
  .stack-copy { position: static; }
  .project-grid { grid-template-columns: 1fr; }
  .project-featured { grid-row: auto; }
}

@media (max-width: 680px) {
  .site-header { position: absolute; }
  .brand-name { display: none; }
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; top: 5rem; right: 1.25rem; left: 1.25rem; background: #1a1d1b; border: 1px solid var(--line); padding: 1rem; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem; }
  .hero { padding-top: 7.5rem; }
  h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .hero-facts dd { font-size: .78rem; }
  .hero-visual { min-height: 29rem; transform: scale(.84); margin-inline: -2rem; }
  .orbit-a { width: 27rem; height: 27rem; }
  .timeline-item { grid-template-columns: 1fr auto; gap: .5rem 1rem; }
  .timeline-date { grid-column: 1 / -1; }
  .stack-grid { grid-template-columns: 1fr; }
  .stack-card.education { grid-column: auto; }
  .contact-meta { align-items: start; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
