:root {
  --bg: #f5f5f2;
  --paper: #ffffff;
  --ink: #11110f;
  --muted: #686863;
  --line: #d8d8d1;
  --accent: #b7ff3c;
  --accent-soft: rgba(183, 255, 60, 0.16);
  --accent-border: rgba(183, 255, 60, 0.72);
  --shadow: 0 24px 80px rgba(17, 17, 15, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "DM Sans", Arial, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--ink); color: var(--bg); }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.grid-bg { background-image: linear-gradient(to right, rgba(17,17,15,.055) 1px, transparent 1px), linear-gradient(to bottom, rgba(17,17,15,.055) 1px, transparent 1px); background-size: 64px 64px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(17,17,15,.08); background: rgba(245,245,242,.88); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Space Grotesk", Arial, sans-serif; font-weight: 700; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 10px; background: var(--ink); color: var(--accent); font-size: 10px; letter-spacing: .04em; }
.brand-name { font-size: 16px; }
.desktop-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; font-weight: 500; }
.desktop-nav a, .nav-github, .project-link, .text-link { transition: color .2s ease, transform .2s ease; }
.desktop-nav a:hover, .nav-github:hover, .project-link:hover, .text-link:hover { color: #5f9800; }
.nav-github { font-size: 13px; font-weight: 600; }

.hero { min-height: 700px; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); gap: 70px; align-items: center; padding: 92px 0 100px; }
.eyebrow { margin: 0 0 20px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.eyebrow-dot, .status-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1, h2, h3 { font-family: "Space Grotesk", Arial, sans-serif; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(4rem, 7vw, 6.8rem); line-height: .92; letter-spacing: -.065em; }
.hero h1 span, h2 em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 680px; margin: 30px 0 0; color: #4e4e49; font-size: 18px; line-height: 1.7; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 18px; border: 1px solid transparent; font-size: 13px; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.button-secondary { background: rgba(255,255,255,.55); border-color: rgba(17,17,15,.16); }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 34px; color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; }

.hero-card { min-height: 520px; position: relative; padding: 22px; overflow: hidden; border: 1px solid var(--ink); border-radius: 30px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.hero-card::before { content: ""; position: absolute; inset: -30% -20% auto auto; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(183,255,60,.32), transparent 66%); }
.hero-card-top, .hero-card-bottom { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.micro-label { margin: 0; color: rgba(255,255,255,.45); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.profile-orbit { min-height: 390px; position: relative; display: grid; place-items: center; }
.profile-photo { position: relative; z-index: 3; width: 146px; height: 146px; object-fit: cover; border-radius: 50%; border: 7px solid var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,.26), 0 18px 50px rgba(0,0,0,.28); }
.orbit-line { position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.orbit-one { width: 240px; height: 240px; }
.orbit-two { width: 330px; height: 200px; transform: rotate(34deg); border-color: rgba(183,255,60,.44); }
.orbit-three { width: 320px; height: 320px; transform: rotate(-28deg); }
.orbit-chip { position: absolute; z-index: 4; padding: 7px 9px; border: 1px solid rgba(255,255,255,.16); background: rgba(17,17,15,.76); backdrop-filter: blur(8px); font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.chip-product { top: 24%; left: 6%; }
.chip-tech { top: 18%; right: 5%; color: var(--accent); }
.chip-systems { bottom: 18%; right: 12%; }
.hero-card-bottom { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-card-bottom strong { display: block; margin-top: 6px; font-family: "Space Grotesk", Arial, sans-serif; font-size: 20px; letter-spacing: -.04em; }
.card-arrow { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; font-size: 18px; }

.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); color: #fff; }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 24px; min-height: 58px; padding-left: 24px; font-size: 10px; font-weight: 700; letter-spacing: .15em; animation: ticker 22s linear infinite; }
.ticker-track b { color: var(--accent); }

.section { padding: 120px 0; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 60px; align-items: end; margin-bottom: 52px; }
.section-heading h2, .about-grid h2, .developer-grid h2, .contact-card h2 { margin: 0; font-size: clamp(3rem, 5.2vw, 5.4rem); line-height: .94; letter-spacing: -.06em; }
.section-heading > p, .about-copy p, .developer-lead, .contact-card > div:first-child > p:last-child { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-card { overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.42); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(17,17,15,.24); box-shadow: var(--shadow); }
.project-card.featured { grid-column: span 2; display: grid; grid-template-columns: 1.06fr .94fr; }
.project-top { padding: 18px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-index, .project-kind { font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.project-index { color: var(--muted); }
.project-kind { color: #85857f; }
.project-visual { min-height: 280px; margin: 18px; position: relative; overflow: hidden; border: 1px solid rgba(17,17,15,.1); }
.featured .project-visual { min-height: 100%; margin: 18px 0 18px 18px; }
.visual-label { position: absolute; left: 18px; top: 16px; z-index: 4; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.visual-green { background: var(--accent); }
.visual-dark { background: #191916; color: #fff; }
.visual-light { background: #e9ebe3; }
.visual-paper { background: #fafaf8; }
.visual-purple { background: #d9d1ff; }
.project-slides { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: inherit; }
.project-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,15,.18), transparent 32%, rgba(17,17,15,.14)); pointer-events: none; }
.project-slide { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; transition: opacity 900ms ease; }
.project-slide.is-active { opacity: 1; }
.project-visual.has-project-images .project-placeholder { opacity: 0; pointer-events: none; }
.mock-panel { position: absolute; right: 8%; left: 8%; bottom: 12%; padding: 12px; border: 1px solid rgba(17,17,15,.14); background: rgba(255,255,255,.72); box-shadow: 0 18px 44px rgba(17,17,15,.1); }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 5px; border-bottom: 1px solid rgba(17,17,15,.1); font-size: 11px; }
.mock-row:last-child { border-bottom: 0; }
.mock-row strong { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.signal-grid { position: absolute; inset: 22% 10% 20%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; }
.signal-grid i { display: block; height: 30%; border-radius: 5px 5px 0 0; background: rgba(183,255,60,.7); }
.signal-grid i:nth-child(2) { height: 52%; }
.signal-grid i:nth-child(3) { height: 38%; }
.signal-grid i:nth-child(4) { height: 76%; }
.signal-grid i:nth-child(5) { height: 62%; }
.signal-grid i:nth-child(6) { height: 90%; }
.signal-line { position: absolute; left: 10%; right: 10%; top: 50%; height: 1px; background: rgba(255,255,255,.35); transform: rotate(-7deg); }
.funnel { position: absolute; inset: 22% 10%; display: grid; gap: 7px; align-content: center; }
.funnel div { padding: 14px 16px; border: 1px solid rgba(17,17,15,.14); background: rgba(255,255,255,.55); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-align: center; }
.funnel div:nth-child(2) { margin-inline: 8%; }
.funnel div:nth-child(3) { margin-inline: 17%; }
.funnel div:nth-child(4) { margin-inline: 27%; background: var(--accent); }
.school-ui { position: absolute; inset: 23% 9% 12%; display: grid; grid-template-columns: 28% 1fr; border: 1px solid rgba(17,17,15,.12); background: #fff; box-shadow: 0 18px 44px rgba(17,17,15,.08); }
.school-side { background: var(--ink); }
.school-main { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; }
.school-main span { min-height: 58px; border: 1px solid var(--line); background: #f6f6f1; }
.stacked-cards { position: absolute; inset: 25% 10% 16%; }
.stacked-cards div { position: absolute; width: 78%; height: 58%; border: 1px solid rgba(17,17,15,.18); background: rgba(255,255,255,.62); box-shadow: 0 14px 30px rgba(17,17,15,.06); }
.stacked-cards div:nth-child(1) { top: 0; left: 0; transform: rotate(-5deg); }
.stacked-cards div:nth-child(2) { top: 10%; left: 10%; transform: rotate(2deg); }
.stacked-cards div:nth-child(3) { top: 20%; left: 20%; transform: rotate(7deg); background: var(--ink); border-color: var(--ink); }
.project-body { padding: 8px 20px 24px; }
.featured .project-body { padding: 8px 28px 28px 20px; }
.project-body h3 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.045em; }
.project-body p { min-height: 78px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.project-tags span { padding: 6px 8px; border: 1px solid rgba(17,17,15,.11); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.project-link, .project-private { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 11px; font-weight: 700; }
.project-private { color: #92928c; }
.project-link span { color: #5f9800; font-size: 15px; }
.more-card { min-height: 100%; display: flex; align-items: center; background: var(--ink); color: #fff; border-color: var(--ink); }
.more-content { padding: 36px; }
.more-content .eyebrow { color: rgba(255,255,255,.45); }
.more-content h3 { margin: 0; max-width: 400px; font-size: 42px; line-height: .96; letter-spacing: -.055em; }
.more-content p { max-width: 430px; margin: 18px 0 0; color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.7; }
.more-content .button { margin-top: 28px; background: var(--accent); color: var(--ink); border-color: var(--accent); }

.section-dark { background: var(--ink); color: #fff; }
.section-heading.light > p { color: rgba(255,255,255,.55); }
.eyebrow.light { color: rgba(255,255,255,.45); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.12); }
.service-card { min-height: 270px; padding: 28px 30px 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.service-card:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12); }
.service-card span { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.service-card h3 { margin: 46px 0 12px; font-size: 28px; letter-spacing: -.04em; }
.service-card p { max-width: 460px; margin: 0; color: rgba(255,255,255,.52); font-size: 14px; line-height: 1.7; }

.developer-strip { padding: 96px 0; background: var(--accent); }
.developer-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: end; }
.developer-grid h2 { color: var(--ink); }
.developer-lead { max-width: 640px; color: rgba(17,17,15,.66) !important; font-size: 17px !important; }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); gap: 100px; align-items: start; }
.about-copy { padding-top: 74px; }
.about-copy p + p { margin-top: 20px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.skill-list span { padding: 8px 10px; border: 1px solid var(--line); background: rgba(255,255,255,.45); font-size: 10px; font-weight: 700; }

.contact-section { padding-top: 70px; padding-bottom: 70px; }
.contact-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 60px; align-items: end; padding: 54px; background: #e6e8df; }
.contact-card::after { content: ""; position: absolute; width: 340px; height: 340px; right: -100px; bottom: -180px; border-radius: 50%; border: 1px solid rgba(17,17,15,.1); box-shadow: 0 0 0 48px rgba(17,17,15,.025), 0 0 0 96px rgba(17,17,15,.02); }
.contact-card > * { position: relative; z-index: 2; }
.contact-card > div:first-child > p:last-child { max-width: 590px; margin-top: 22px; }
.contact-actions { justify-content: flex-end; margin-top: 0; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-wrap { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; font-size: 10px; color: var(--muted); }
.footer-wrap span:nth-child(2) { text-align: center; }
.footer-wrap a { justify-self: end; font-weight: 700; }

.reveal { animation: reveal .8s cubic-bezier(.22,1,.36,1) both; }
.delay-1 { animation-delay: .12s; }
@keyframes reveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 920px) {
  .hero-grid, .developer-grid, .about-grid, .contact-card, .section-heading { grid-template-columns: 1fr; gap: 34px; }
  .hero-grid { padding: 70px 0; }
  .hero-card { max-width: 620px; width: 100%; justify-self: center; }
  .section-heading { margin-bottom: 38px; }
  .section-heading > p { max-width: 600px; }
  .featured .project-body { padding: 8px 20px 24px; }
  .about-copy { padding-top: 0; }
  .contact-actions { justify-content: flex-start; }
  .footer-wrap { grid-template-columns: 1fr 1fr; }
  .footer-wrap span:nth-child(2) { display: none; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1160px); }
  .desktop-nav { display: none; }
  .nav-wrap { min-height: 64px; }
  .hero { min-height: 0; }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .hero-lead { font-size: 16px; }
  .hero-card { min-height: 440px; padding: 18px; border-radius: 24px; }
  .profile-orbit { min-height: 320px; }
  .orbit-one { width: 190px; height: 190px; }
  .orbit-two { width: 260px; height: 160px; }
  .orbit-three { width: 260px; height: 260px; }
  .profile-photo { width: 120px; height: 120px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: auto; display: block; }
  .featured .project-visual { min-height: 290px; margin: 18px; }
  .project-body p { min-height: 0; }
  .more-content { padding: 28px; }
  .more-content h3 { font-size: 36px; }
  .section { padding: 82px 0; }
  .section-heading h2, .about-grid h2, .developer-grid h2, .contact-card h2 { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card:nth-child(odd) { border-right: 0; }
  .service-card { min-height: 0; padding: 26px 0 30px; }
  .service-card h3 { margin-top: 32px; }
  .developer-strip { padding: 74px 0; }
  .developer-grid { gap: 24px; }
  .about-grid { gap: 36px; }
  .contact-card { padding: 34px 24px; }
  .footer-wrap { min-height: 90px; grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .footer-wrap a { justify-self: start; }
}

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