@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --paper: #f8f8f6;
  --ink: #171716;
  --muted: #777771;
  --line: #deded9;
  --accent: #a6ef5b;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(22px, 5.4vw, 84px);
  --hero-exit: 0;
  --page-progress: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { background: var(--accent); color: var(--ink); }

.scroll-progress { position: fixed; z-index: 50; top: 0; left: 0; width: 100%; height: 2px; background: #8acc4b; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  height: 66px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgb(23 23 22 / 9%);
  background: rgb(248 248 246 / 88%);
  backdrop-filter: blur(16px);
}
.site-header::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: color-mix(in srgb, #8acc4b calc(var(--page-progress) * 100%), transparent); content: ""; pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; width: fit-content; font-size: 17px; font-weight: 700; letter-spacing: -.06em; }
.brand-mark { font-size: 23px; font-weight: 400; line-height: 1; }
.site-nav { display: flex; justify-content: center; gap: clamp(24px, 4vw, 58px); }
.site-nav a, .header-link, .eyebrow, .hero-index, .scroll-cue, .hero-coordinate, .section-number, .section-kicker, .profile-grid dt, .stack-index, .stack-kind, .works-count, .depth-label, .depth-counter, .code-note-top, .site-footer, .copy-button {
  font-family: var(--mono);
}
.site-nav a, .header-link { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.site-nav a { position: relative; padding: 8px 0; }
.site-nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--ink); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="location"]::after { transform: scaleX(1); }
.header-link { justify-self: end; }
.header-link span { padding-left: 4px; }
.menu-toggle { display: none; }

.hero { position: relative; display: flex; min-height: min(790px, calc(100svh - 66px)); flex-direction: column; justify-content: space-between; overflow: hidden; padding: 25px var(--gutter) 28px; isolation: isolate; }
.particle-field { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; }
.hero-orbit { position: absolute; z-index: -1; top: 47%; left: 50%; width: min(66vw, 800px); aspect-ratio: 1; border: 1px solid rgb(23 23 22 / 6%); border-radius: 50%; transform: translate(-50%, -50%) rotate(-20deg) scaleY(.36); pointer-events: none; animation: orbit-breathe 14s ease-in-out infinite alternate; }
.orbit-two { width: min(86vw, 1030px); transform: translate(-50%, -50%) rotate(28deg) scaleY(.24); animation-delay: -7s; }
.hero-caption { display: flex; justify-content: space-between; align-items: center; }
.eyebrow, .hero-index, .hero-coordinate { color: var(--muted); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.hero-title-wrap { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 14px; transform: translateY(calc(var(--hero-exit) * -8vh)) scale(calc(1 + var(--hero-exit) * .12)); transform-origin: center; opacity: calc(1 - var(--hero-exit) * .42); }
.hero-caption, .scroll-cue { opacity: calc(1 - var(--hero-exit) * .72); }
.hero h1 { margin: 0 0 -.115em -.045em; font-size: clamp(120px, 26vw, 360px); font-weight: 500; line-height: .75; letter-spacing: -.105em; }
.motion-ready .hero h1 { animation: title-arrive 1.2s cubic-bezier(.16, 1, .3, 1) both; }
.motion-ready .hero-role { animation: role-arrive .8s .22s cubic-bezier(.16, 1, .3, 1) both; }
.motion-ready .hero-caption, .motion-ready .scroll-cue { animation: caption-arrive .9s .3s both; }
.title-period { color: #8acc4b; }
.hero-role { margin: 0 0 5px; font-size: clamp(18px, 3vw, 30px); line-height: 1.04; letter-spacing: -.065em; }
.scroll-cue { display: inline-flex; align-items: center; gap: 11px; width: fit-content; color: var(--muted); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.scroll-line { display: block; width: 34px; height: 1px; background: var(--ink); transform-origin: left; animation: line-pulse 2s ease-in-out infinite; }
.hero-coordinate { position: absolute; right: var(--gutter); top: 50%; writing-mode: vertical-rl; }

.section-frame { padding-right: var(--gutter); padding-left: var(--gutter); }
.content-section { padding-top: 130px; padding-bottom: 130px; }
.section-heading { display: flex; align-items: center; gap: 15px; }
.section-number { color: var(--muted); font-size: 10px; }
.section-heading h2 { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: -.02em; }
.about-section { display: grid; grid-template-columns: 1fr 2fr; gap: 8vw; border-top: 1px solid var(--line); }
.about-content { max-width: 800px; }
.about-copy { margin: -8px 0 64px; font-size: clamp(22px, 3.5vw, 43px); line-height: 1.48; letter-spacing: -.075em; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin: 0; }
.profile-grid div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.profile-grid dt { color: var(--muted); font-size: 10px; }
.profile-grid dd { margin: 0; font-size: 12px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #8acc4b; box-shadow: 0 0 0 3px rgb(138 204 75 / 17%); }

.stack-section { background: #fbfbfa; }
.stack-showcase { position: relative; display: block; min-height: 340px; overflow: hidden; padding-top: 92px; padding-bottom: 62px; isolation: isolate; }
.stack-showcase::before { position: absolute; z-index: -1; inset: 0; background: url("icons/stack-network.svg") center 42% / cover no-repeat; content: ""; opacity: .8; pointer-events: none; }
.stack-showcase-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 35px; }
.stack-showcase-heading .section-heading { gap: 12px; }
.stack-showcase-heading .section-heading h2 { color: var(--muted); font: 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.stack-title { margin: 18px 0 0; font-size: clamp(28px, 4vw, 42px); font-weight: 600; line-height: 1.05; letter-spacing: -.065em; }
.stack-title span { color: #8acc4b; }
.stack-showcase-heading > .section-kicker { margin-bottom: 4px; color: var(--muted); font-size: 9px; }
.stack-marquee { position: relative; overflow: hidden; width: calc(100% + var(--gutter) * 2); margin-left: calc(var(--gutter) * -1); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.stack-track, .stack-set { display: flex; width: max-content; align-items: center; }
.stack-track { animation: stack-marquee 38s linear infinite; will-change: transform; }
.stack-marquee:hover .stack-track { animation-play-state: paused; }
.stack-set { gap: clamp(38px, 5.4vw, 78px); padding-right: clamp(38px, 5.4vw, 78px); }
.stack-tool { display: grid; min-width: 76px; justify-items: center; gap: 10px; margin: 0; color: #777771; }
.stack-tool img { width: 35px; height: 35px; object-fit: contain; }
.stack-tool figcaption { font-size: 10px; line-height: 1.2; white-space: nowrap; }

.philosophy-section { padding-top: 115px; padding-bottom: 130px; background: #171716; color: var(--paper); }
.philosophy-section .section-heading { color: var(--paper); }
.philosophy-section .section-number, .philosophy-section .section-kicker { color: #969690; }
.philosophy-content { display: grid; grid-template-columns: 1fr .65fr; align-items: end; gap: 7vw; padding-top: 86px; }
.philosophy-content h3 { font-size: clamp(48px, 8vw, 106px); }
.code-note { padding: 15px 20px 22px; border: 1px solid #3c3c38; background: #1e1e1c; }
.code-note-top { display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid #393936; color: #969690; font-size: 9px; }
.code-note pre { overflow: auto; margin: 18px 0 0; color: #e3e3db; font: 11px/1.9 var(--mono); }
.code-muted { color: #666661; }.code-blue { color: #9ec7ff; }.code-green { color: #b2df94; }.code-purple { color: #d2a7ef; }

.depth-section { position: relative; display: grid; min-height: min(780px, 100svh); place-items: center; overflow: hidden; background: #090a09; color: #f6f6f2; isolation: isolate; }
.depth-canvas { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.depth-label { position: absolute; z-index: 2; top: 26px; right: var(--gutter); left: var(--gutter); display: flex; justify-content: space-between; color: #a9ada2; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.depth-copy { position: absolute; z-index: 1; top: 50%; left: var(--gutter); max-width: 300px; margin: 0; color: rgb(246 246 242 / 88%); font-size: clamp(21px, 3.3vw, 34px); line-height: 1.25; text-align: left; letter-spacing: -.07em; text-shadow: 0 2px 24px #090a09; transform: translateY(-50%); }
.depth-counter { position: absolute; right: var(--gutter); bottom: 23px; color: #f6f6f2; font-size: clamp(24px, 5vw, 52px); font-weight: 500; letter-spacing: -.08em; }
.depth-counter::after { position: absolute; right: 0; bottom: -9px; left: 0; height: 1px; background: #92968a; content: ""; }

.reveal-section { transition: opacity .8s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
.motion-ready .reveal-section:not(.is-visible) { opacity: 0; transform: translateY(46px); }
.motion-ready .reveal-section.is-visible { opacity: 1; transform: translateY(0); }
.text-reveal .split-char { display: inline-block; opacity: 0; transform: translate3d(0, .55em, 0) rotate(4deg); transition: opacity .65s ease, transform .7s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--char-delay, 0ms); }
.text-reveal.is-visible .split-char { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
.works-section { padding-top: 130px; padding-bottom: 110px; }
.works-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 42px; }
.works-heading .section-kicker { margin: 13px 0 0 39px; }
.works-count { color: var(--muted); font-size: 9px; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 18px; }
.service-card { display: block; min-width: 0; color: inherit; text-decoration: none; }
.service-card:focus-visible { outline: 2px solid #719f43; outline-offset: 6px; }
.service-visual { position: relative; display: grid; min-height: clamp(210px, 29vw, 360px); place-items: center; overflow: hidden; isolation: isolate; }
.service-visual::before, .service-visual::after { position: absolute; z-index: -1; content: ""; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.service-number, .service-visit { position: absolute; font: 9px var(--mono); letter-spacing: .12em; }
.service-number { top: 18px; left: 18px; opacity: .66; }
.service-visit { right: 18px; bottom: 17px; }
.service-icon { display: block; width: clamp(72px, 10vw, 120px); height: clamp(72px, 10vw, 120px); object-fit: contain; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.service-card:hover .service-icon, .service-card:focus-visible .service-icon { transform: scale(1.07) rotate(-3deg); }
.service-card:hover .service-visual::before, .service-card:focus-visible .service-visual::before { transform: scale(1.08) rotate(7deg); }
.service-mws { background: #dce7e5; color: #1c3335; }
.service-mws::before { inset: 15%; border: 1px solid rgb(28 51 53 / 22%); border-radius: 50%; box-shadow: 0 0 0 25px rgb(28 51 53 / 4%), 0 0 0 55px rgb(28 51 53 / 3%); }
.service-github { background: #e7e5e0; color: #242522; }
.service-github::before { inset: 0; background: linear-gradient(135deg, transparent 49.8%, rgb(36 37 34 / 8%) 50%, transparent 50.2%), linear-gradient(45deg, transparent 49.8%, rgb(36 37 34 / 7%) 50%, transparent 50.2%); background-size: 52px 52px; }
.service-discord { background: #e1e2f2; color: #333568; }
.service-discord::before { inset: 17%; border: 1px solid rgb(51 53 104 / 15%); border-radius: 50%; transform: scaleX(1.3); }
.service-runable { background: #e4eddc; color: #304522; }
.service-runable::before { inset: 18%; border: 1px solid rgb(48 69 34 / 25%); border-radius: 50%; transform: rotate(-30deg) scaleY(.4); }
.service-vscode { background: #dce9f1; color: #185b85; }
.service-vscode::before { inset: 0; background: repeating-linear-gradient(135deg, transparent 0 27px, rgb(24 91 133 / 6%) 28px 29px); }
.service-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-top: 16px; }
.service-meta h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.045em; }
.service-meta p { max-width: 460px; margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.service-arrow { flex: 0 0 auto; font-size: 20px; transition: transform .2s ease; }
.service-card:hover .service-arrow, .service-card:focus-visible .service-arrow { transform: translate(3px, -3px); }

.contact-section { padding-top: 110px; padding-bottom: 120px; background: #e4eddd; }
.contact-section > .section-kicker { margin-top: 84px; }
.contact-title { margin: 24px 0 48px; font-size: clamp(68px, 13vw, 168px); font-weight: 500; line-height: .88; letter-spacing: -.095em; }
.contact-actions { display: flex; align-items: center; gap: 22px; }
.contact-link { display: inline-flex; align-items: center; gap: 44px; padding: 14px 17px; background: var(--ink); color: var(--paper); font-size: 11px; }
.contact-link span { font-size: 16px; }
.copy-button { display: inline-flex; align-items: center; gap: 12px; padding: 13px 0; border: 0; border-bottom: 1px solid #a9b0a3; background: transparent; cursor: pointer; font-size: 9px; }
.copy-button span:last-child { font-size: 15px; }
.site-footer { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 9px; }
.footer-brand { color: var(--ink); font-family: var(--sans); font-size: 15px; }
.local-time { font-variant-numeric: tabular-nums; }
.back-to-top { color: var(--ink); }
.copy-feedback { position: fixed; z-index: 30; right: 22px; bottom: 22px; margin: 0; padding: 12px 16px; background: var(--ink); color: var(--paper); font: 10px var(--mono); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.copy-feedback.is-visible { opacity: 1; transform: translateY(0); }

@keyframes line-pulse { 0%, 100% { transform: scaleX(.6); } 50% { transform: scaleX(1); } }
@keyframes stack-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes orbit-breathe { from { transform: translate(-50%, -50%) rotate(-24deg) scaleY(.34); } to { transform: translate(-50%, -50%) rotate(24deg) scaleY(.4); } }
@keyframes title-arrive { from { opacity: 0; transform: translateY(9vh); letter-spacing: -.16em; } to { opacity: 1; transform: translateY(0); } }
@keyframes role-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes caption-arrive { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 1200px) { .hero { min-height: 790px; } }
@media (max-width: 720px) {
  :root { --gutter: 22px; }
  .site-header { grid-template-columns: 1fr auto auto; gap: 18px; height: 60px; }
  .site-nav { position: absolute; top: 59px; right: 0; left: 0; display: none; flex-direction: column; gap: 0; padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .header-link { font-size: 9px; }
  .menu-toggle { display: grid; width: 34px; height: 34px; place-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 12px; height: 1px; background: var(--ink); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .hero { min-height: min(690px, calc(91svh - 60px)); padding-top: 20px; padding-bottom: 22px; }
  .hero-coordinate { display: none; }
  .hero-orbit { width: 100vw; }
  .orbit-two { width: 125vw; }
  .hero h1 { font-size: clamp(112px, 30vw, 220px); }
  .hero-role { font-size: 19px; }
  .content-section { padding-top: 86px; padding-bottom: 86px; }
  .about-section { grid-template-columns: 1fr; gap: 38px; }
  .about-copy { margin: 0 0 42px; font-size: clamp(23px, 6vw, 35px); }
  .desktop-break { display: none; }
  .profile-grid { gap: 23px 14px; }
  .profile-grid div { grid-template-columns: 73px 1fr; gap: 7px; }
  .profile-grid dd { font-size: 11px; }
  .stack-showcase { min-height: 300px; padding-top: 76px; padding-bottom: 52px; }
  .stack-showcase-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 29px; }
  .stack-showcase-heading > .section-kicker { margin-left: 27px; }
  .stack-title { max-width: 500px; font-size: clamp(28px, 7vw, 40px); }
  .stack-set { gap: 34px; padding-right: 34px; }
  .stack-tool { min-width: 70px; gap: 8px; }
  .stack-tool img { width: 32px; height: 32px; }
  .stack-tool figcaption { font-size: 9px; }
  .philosophy-section { padding-top: 85px; padding-bottom: 90px; }
  .philosophy-content { grid-template-columns: 1fr; gap: 45px; padding-top: 58px; }
  .philosophy-content h3 { font-size: clamp(52px, 12vw, 80px); }
  .depth-section { min-height: 470px; }
  .depth-copy { top: auto; right: var(--gutter); bottom: 70px; left: var(--gutter); max-width: none; font-size: clamp(20px, 5.8vw, 28px); text-align: center; transform: none; }
  .works-section { padding-top: 88px; padding-bottom: 80px; }
  .works-heading { align-items: start; gap: 20px; }
  .works-count { max-width: 90px; line-height: 1.6; text-align: right; }
  .service-grid { gap: 35px 12px; }
  .service-visual { min-height: clamp(170px, 42vw, 280px); }
  .service-meta { gap: 12px; }
  .service-meta h3 { font-size: 15px; }
  .service-meta p { font-size: 10px; }
  .contact-section { padding-top: 84px; padding-bottom: 88px; }
  .contact-section > .section-kicker { margin-top: 60px; }
  .contact-title { font-size: clamp(68px, 15vw, 120px); }
  .contact-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .site-footer { flex-wrap: wrap; min-height: 104px; padding-top: 22px; padding-bottom: 22px; }
  .site-footer > * { width: calc(50% - 10px); }
  .site-footer > :nth-child(even) { text-align: right; }
}
@media (max-width: 390px) {
  .hero h1 { font-size: 29vw; }
  .hero-role { font-size: 17px; }
  .eyebrow, .hero-index { font-size: 8px; }
  .profile-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; gap: 31px; }
  .service-visual { min-height: 68vw; }
  .works-heading .section-kicker { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-ready .reveal-section:not(.is-visible) { opacity: 1; transform: none; }
  .text-reveal .split-char { opacity: 1; transform: none; }
  .stack-marquee { overflow-x: auto; mask-image: none; }
  .stack-track { animation: none; }
  .stack-set[aria-hidden="true"] { display: none; }
}
@media (pointer: coarse) {
  .hero-orbit, .scroll-line { animation: none; }
}
