:root {
  --paper: #f1f0ec;
  --ink: #111211;
  --muted: #8b8b86;
  --line-light: rgba(17, 18, 17, .15);
  --line-dark: rgba(255, 255, 255, .14);
  --green: #25b881;
  --header-h: 70px;
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.scroll-progress {
  position: fixed;
  z-index: 130;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(37,184,129,.45);
}

.cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  z-index: 120;
  border: 1px solid currentColor;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .25s, color .25s;
  mix-blend-mode: difference;
  color: #fff;
}
.cursor span { display: none; font: 500 9px DM Mono, monospace; }
.cursor.is-active { width: 50px; height: 50px; background: #fff; }
.cursor.is-project { width: 76px; height: 76px; display: grid; place-items: center; background: #fff; color: #000; mix-blend-mode: normal; }
.cursor.is-project span { display: block; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  gap: 22px;
  color: var(--paper);
  background: var(--ink);
  transition: transform .9s cubic-bezier(.75, 0, .2, 1);
}
.loader.is-hidden { transform: translateY(-105%); }
.loader__name { font: 700 clamp(26px, 5vw, 62px)/1 Inter, sans-serif; letter-spacing: -.06em; }
.loader__track { width: min(330px, 70vw); height: 1px; background: #3b3c3a; }
.loader__track span { display: block; width: 0; height: 100%; background: var(--green); animation: load 1.3s ease forwards; }
@keyframes load { to { width: 100%; } }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  color: var(--ink);
  mix-blend-mode: difference;
  filter: invert(1);
}
.wordmark { font-size: 13px; font-weight: 600; letter-spacing: -.03em; }
.desktop-nav { display: flex; gap: 29px; }
.desktop-nav a { position: relative; font: 500 10px DM Mono, monospace; }
.desktop-nav a::after { content: ""; position: absolute; inset: auto 0 -5px; height: 1px; transform: scaleX(0); transform-origin: left; background: currentColor; transition: transform .25s; }
.desktop-nav a:hover::after { transform: scaleX(1); }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 13px 10px;
  background: transparent;
}
.menu-toggle span { display: block; height: 1px; margin: 5px 0; background: currentColor; transition: transform .3s; }

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 95;
  visibility: hidden;
  color: var(--paper);
  background: rgba(8, 9, 8, .97);
  transform: translateX(100%);
  transition: transform .65s cubic-bezier(.7, 0, .2, 1), visibility .65s;
}
.menu-panel.is-open { visibility: visible; transform: translateX(0); }
.menu-panel__inner { min-height: 100%; display: flex; flex-direction: column; justify-content: center; width: min(670px, 100%); margin-left: auto; padding: 10vh 8vw; border-left: 1px solid var(--line-dark); }
.menu-panel nav { display: flex; flex-direction: column; margin: 5vh 0 10vh; }
.menu-panel nav a { font: 800 clamp(38px, 6vw, 82px)/.95 Inter, sans-serif; letter-spacing: -.07em; transition: color .25s, transform .25s; }
.menu-panel nav a:hover { color: var(--green); transform: translateX(12px); }
.menu-panel nav span { display: inline-block; width: 45px; font: 400 9px DM Mono, monospace; letter-spacing: 0; }
.menu-panel__footer { display: flex; justify-content: space-between; gap: 20px; color: #8f918d; font: 400 10px DM Mono, monospace; }

section { position: relative; padding: 120px clamp(24px, 8vw, 140px); }
.light-section { color: var(--ink); background: var(--paper); }
.dark-section { color: var(--paper); background: var(--ink); }
.section-index { margin-bottom: 18px; color: var(--muted); font: 400 12px DM Mono, monospace; letter-spacing: .12em; }
.section-title { margin: 0 0 70px; font: 400 clamp(45px, 6vw, 92px)/.86 "Archivo Black", sans-serif; letter-spacing: -.075em; }
.section-title::after { content: ""; display: block; width: 34px; height: 3px; margin-top: 20px; background: var(--green); }
.eyebrow { font: 500 10px DM Mono, monospace; letter-spacing: .12em; }
.accent { color: var(--green); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s ease, transform .85s cubic-bezier(.2, .65, .2, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.service.reveal:nth-child(odd), .project.reveal:nth-child(odd) { transform: translateX(-48px); }
.service.reveal:nth-child(even), .project.reveal:nth-child(even) { transform: translateX(48px); }
.service.reveal.is-visible, .project.reveal.is-visible { transform: translateX(0); }
.split-text { overflow: hidden; }
.split-text .char { display: inline-block; opacity: 0; transform: translateY(110%); transition: opacity .55s, transform .7s cubic-bezier(.2,.7,.2,1); }
.split-text.is-visible .char { opacity: 1; transform: translateY(0); }

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-top: var(--header-h);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image: radial-gradient(circle at center, transparent 0, transparent 58%, rgba(17,18,17,.07) 100%);
}
.hero__content { position: relative; z-index: 2; }
.hero__status { font: 400 9px DM Mono, monospace; letter-spacing: .13em; color: #757772; }
.hero__status span, .availability-dot { display: inline-block; width: 6px; height: 6px; margin: 0 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(37,184,129,.12); }
.hero__name { margin: 26px 0 28px; font: 400 clamp(55px, 7.35vw, 120px)/.88 "Archivo Black", sans-serif; letter-spacing: -.075em; }
.hero__intro { color: #777872; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.6; }
.hero__role { margin: 30px 0 22px; font: 500 11px DM Mono, monospace; letter-spacing: .18em; }
.hero__actions { display: flex; justify-content: center; gap: 10px; }
.button { min-width: 98px; padding: 12px 18px; border: 1px solid transparent; border-radius: 99px; text-align: center; font: 500 9px DM Mono, monospace; letter-spacing: .04em; transition: color .25s, background .25s, transform .25s, border .25s; }
.button:hover { transform: translateY(-3px); }
.button--dark { color: var(--paper); background: var(--ink); }
.button--outline { border-color: var(--ink); }
.button--ghost { color: #8e8e89; border-color: #cecec9; }
.button--green { color: #06130e; background: var(--green); }
.hero__orbit { position: absolute; width: 530px; height: 530px; display: flex; align-items: center; justify-content: center; gap: 13px; border: 1px solid rgba(17,18,17,.11); border-radius: 50%; font: 400 7px DM Mono, monospace; color: #aaa; animation: orbit 24s linear infinite; }
.hero__orbit i { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
@keyframes orbit { to { transform: rotate(360deg); } }
.scroll-cue { position: absolute; bottom: 32px; left: 50%; display: grid; gap: 8px; translate: -50% 0; font: 400 8px DM Mono, monospace; color: #999; }
.scroll-cue i { color: var(--ink); font-style: normal; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

.marquee {
  overflow: hidden;
  padding: 25px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.marquee__track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 35px;
  animation: marquee 24s linear infinite;
}
.marquee span { font: 700 clamp(20px, 2vw, 32px)/1 Inter, sans-serif; letter-spacing: -.045em; white-space: nowrap; }
.marquee i { color: var(--green); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.about { min-height: 100vh; }
.about__grid { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; align-items: center; gap: clamp(50px, 10vw, 170px); max-width: 1100px; margin: 0 auto; }
.portrait-frame { position: relative; aspect-ratio: .84; margin: 0; overflow: hidden; border: 1px solid var(--line-dark); background: #171817; }
.portrait-frame::before, .portrait-frame::after { content: ""; position: absolute; z-index: 2; width: 42px; height: 42px; border-color: var(--green); opacity: .8; }
.portrait-frame::before { top: 14px; left: 14px; border-top: 1px solid; border-left: 1px solid; }
.portrait-frame::after { right: 14px; bottom: 14px; border-right: 1px solid; border-bottom: 1px solid; }
.portrait-frame img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: saturate(.8); }
.portrait-frame__mark { position: absolute; z-index: 3; right: 16px; top: 16px; font: 400 8px DM Mono, monospace; color: var(--green); }
.about__copy { max-width: 620px; }
.about__copy .lead { margin: 25px 0; font-size: clamp(21px, 2.2vw, 35px); line-height: 1.16; letter-spacing: -.045em; }
.about__copy > p:not(.eyebrow):not(.lead) { color: #adafaa; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.75; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 40px 0 0; border-top: 1px solid var(--line-dark); }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.facts dt { margin-bottom: 8px; color: #777a75; font: 400 10px DM Mono, monospace; }
.facts dd { margin: 0; font-size: 14px; }

.services { padding-bottom: 80px; }
.section-intro { max-width: 700px; margin: -35px 0 80px auto; color: #aaaCa7; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.7; }
.service-list { max-width: 1040px; margin-left: auto; }
.service { display: grid; grid-template-columns: 80px 1fr; padding: 52px 0; border-top: 1px solid var(--line-dark); }
.service:last-child { border-bottom: 1px solid var(--line-dark); }
.service__number { color: var(--green); font: 400 10px DM Mono, monospace; }
.service h3 { margin: 0 0 18px; font-size: clamp(24px, 3vw, 44px); letter-spacing: -.05em; }
.service p { max-width: 700px; color: #a8aaa5; font-size: 16px; line-height: 1.7; }
.service ul { display: flex; flex-wrap: wrap; gap: 8px 30px; padding: 0; list-style: none; font: 400 11px DM Mono, monospace; }
.service li::before { content: "â†³ "; color: var(--green); }

.stack { padding-top: 80px; }
.stack__rows { border-top: 1px solid var(--line-dark); }
.stack-row { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 30px; align-items: center; min-height: 110px; border-bottom: 1px solid var(--line-dark); }
.stack-row h3 { color: var(--green); font: 500 10px DM Mono, monospace; letter-spacing: .1em; }
.stack-row p { color: #d0d1cc; font-size: 14px; }
.credentials { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 45px; }
.credentials span { padding: 10px 13px; border: 1px solid var(--line-dark); font: 400 8px DM Mono, monospace; color: #888a85; }

.work { min-height: 100vh; }
.project-list { border-top: 1px solid var(--line-light); }
.project { position: relative; display: grid; grid-template-columns: 70px 1fr 150px 30px; gap: 20px; align-items: center; min-height: 145px; border-bottom: 1px solid var(--line-light); transition: color .3s, padding .3s; }
.project:hover { color: var(--green); padding-left: 12px; }
.project__number, .project__meta { font: 400 11px DM Mono, monospace; color: #777974; }
.project__main h3 { margin: 0 0 8px; font-size: clamp(21px, 2.5vw, 38px); letter-spacing: -.05em; }
.project__main p { margin: 0; color: #777974; font: 400 11px DM Mono, monospace; }
.project__arrow { font-size: 21px; }
.project__preview { position: fixed; z-index: 80; width: 280px; aspect-ratio: 1.55; display: flex; flex-direction: column; justify-content: end; gap: 6px; padding: 20px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-2deg); color: var(--paper); background: #161716; border: 1px solid #343632; box-shadow: 0 20px 50px rgba(0,0,0,.22); transition: opacity .25s, transform .25s; }
.project:hover .project__preview { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.project__preview::before { content: ""; position: absolute; inset: 15px; border: 1px solid rgba(255,255,255,.12); }
.project__preview strong { position: relative; color: var(--green); font-size: 20px; letter-spacing: -.05em; }
.project__preview span { position: relative; color: #979994; font: 400 8px DM Mono, monospace; }

.contact { padding-top: 160px; }
.contact-card { width: min(760px, 100%); margin: 0 auto 110px; padding: clamp(35px, 6vw, 80px); color: var(--paper); background: var(--ink); border-radius: 8px; }
.contact-card h2 { margin: 15px 0 25px; font: 400 clamp(50px, 7vw, 96px)/.9 "Archivo Black", sans-serif; letter-spacing: -.07em; }
.contact-card > p:not(.eyebrow) { max-width: 590px; color: #adafaa; font-size: 16px; line-height: 1.7; }
form { display: grid; gap: 15px; margin-top: 38px; }
label { color: #777a75; font: 400 8px DM Mono, monospace; letter-spacing: .08em; }
input, textarea { display: block; width: 100%; margin-top: 8px; padding: 13px; color: var(--paper); background: #191a19; border: 1px solid #292b28; outline: none; resize: vertical; }
input:focus, textarea:focus { border-color: var(--green); }
form .button { justify-self: start; margin-top: 8px; }
.contact-card__email { display: block; margin: 55px -20px -25px; overflow: hidden; white-space: nowrap; font: 700 clamp(17px, 3vw, 40px)/1 Inter, sans-serif; letter-spacing: -.05em; }
footer { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; padding: 70px 0 120px; border-top: 1px solid var(--line-light); }
footer > div { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
footer a, footer div > p:not(.eyebrow) { margin: 0; color: #72736f; font: 400 10px DM Mono, monospace; }
.footer-mark { position: absolute; right: 0; bottom: 20px; margin: 0; font: 800 clamp(35px, 7vw, 100px)/1 Inter, sans-serif; letter-spacing: -.08em; color: #d7d6d1; }
.footer-mark span { color: var(--green); }

@media (max-width: 820px) {
  body { cursor: auto; }
  .cursor { display: none; }
  .site-header { padding: 0 20px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  section { padding: 90px 22px; }
  .section-title { margin-bottom: 45px; font-size: clamp(47px, 14vw, 78px); }
  .hero__orbit { width: 360px; height: 360px; }
  .hero { min-height: 100svh; padding-inline: 22px; }
  .hero__name { font-size: clamp(54px, 16vw, 92px); line-height: .86; }
  .hero__intro { max-width: 560px; margin-inline: auto; font-size: 16px; }
  .hero__intro br { display: none; }
  .hero__role { font-size: 10px; }
  .button { min-width: 105px; min-height: 43px; display: inline-grid; place-items: center; }
  .marquee { padding-block: 20px; }
  .about__grid { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 430px; width: 100%; }
  .about__copy .lead { font-size: 28px; }
  .about__copy > p:not(.eyebrow):not(.lead) { font-size: 16px; }
  .section-intro { margin: -20px 0 50px; }
  .service { grid-template-columns: 42px 1fr; }
  .service p { font-size: 15px; }
  .stack-row { grid-template-columns: 1fr 1fr; gap: 6px 20px; padding: 24px 0; }
  .stack-row h3 { grid-column: 1 / -1; }
  .project { grid-template-columns: 42px 1fr 25px; min-height: 125px; }
  .project__meta { display: none; }
  .project__preview { display: none; }
  footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .site-header { height: 58px; }
  .hero__actions { flex-wrap: wrap; }
  .hero__name { font-size: 15vw; }
  .hero__role { line-height: 1.8; }
  .hero__status { line-height: 1.7; }
  .hero__orbit { width: 290px; height: 290px; opacity: .75; }
  .scroll-cue { bottom: 18px; }
  .facts { grid-template-columns: 1fr; }
  .portrait-frame { max-height: 520px; }
  .service ul { display: block; line-height: 2.2; }
  .service { padding-block: 38px; }
  .service h3 { font-size: 26px; }
  .stack-row { grid-template-columns: 1fr; }
  .stack-row h3 { grid-column: auto; }
  .project { grid-template-columns: 34px 1fr 18px; gap: 8px; }
  .project__main h3 { font-size: 19px; }
  .project__main p { font-size: 9px; line-height: 1.5; }
  .contact-card { padding: 32px 22px; }
  .contact-card h2 { font-size: 54px; }
  .contact-card__email { margin-inline: 0; font-size: 16px; white-space: normal; overflow-wrap: anywhere; }
  footer { grid-template-columns: 1fr; }
  .menu-panel__footer { flex-direction: column; }
}

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