:root {
  --bg: #F6F5F8;
  --surface: #FFFFFF;
  --fg: #16131D;
  --muted: #6B6578;
  --line: #E3E0EA;
  --accent: #6A35DB;
  --accent-soft: #EEE8FC;
  --ok: #1F8A5B;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --maxw: 1160px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #0A090D;
    --fg: #EDEAF3;
    --muted: #8E8A99;
    --line: #1F1D26;
    --accent: #A887FF;
    --accent-soft: #1A1428;
    --ok: #4CC28A;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #0A090D;
  --fg: #EDEAF3;
  --muted: #8E8A99;
  --line: #1F1D26;
  --accent: #A887FF;
  --accent-soft: #1A1428;
  --ok: #4CC28A;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  transition: background .2s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--accent) 55%, transparent) transparent;
  }
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

.mono {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .02em;
}

.muted {
  color: var(--muted);
}

.label {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-inline: calc(-1 * var(--gutter)) calc(-1 * var(--gutter-r));
  padding-inline: var(--gutter) var(--gutter-r);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  background: color-mix(in srgb, var(--bg) 30%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  transition: opacity .3s;
}

.site-header.scrolled::before {
  opacity: 1;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.mark {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  text-decoration: none;
}

.mark span {
  color: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  font-size: .9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.nav a:hover {
  color: var(--fg);
}

.actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--muted);
  cursor: pointer;
  transition: transform .2s, color .2s, border-color .2s, background .2s;
}

.icon-btn:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 25%, transparent);
  background: color-mix(in srgb, var(--fg) 10%, transparent);
}

.theme:hover {
  transform: rotate(20deg);
}

.theme svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
}

.menu-toggle span {
  display: block;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s;
}

@media (max-width: 760px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 96px max(24px, env(safe-area-inset-right, 0px)) 48px max(24px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }

  .nav a {
    font-family: var(--display);
    font-weight: 700;
    font-stretch: 85%;
    font-size: clamp(2.2rem, 10vw, 3rem);
    letter-spacing: -.03em;
    color: var(--fg);
    transform: translateY(12px);
    transition: transform .4s, color .2s;
  }

  .menu-open {
    overflow: hidden;
  }

  .menu-open .nav {
    opacity: 1;
    visibility: visible;
  }

  .menu-open .nav a {
    transform: none;
  }

  .menu-open .menu-toggle span:first-child {
    transform: translateY(2.75px) rotate(45deg);
  }

  .menu-open .menu-toggle span:last-child {
    transform: translateY(-2.75px) rotate(-45deg);
  }
}

.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding-block: clamp(56px, 9vw, 112px) clamp(40px, 6vw, 72px);
}

.name {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 780;
  font-stretch: 78%;
  font-size: clamp(3.4rem, 12.5vw, 10.5rem);
  line-height: .86;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.name span {
  display: block;
  padding-left: clamp(0px, 9vw, 140px);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--fg);
  animation: drift 9s ease-in-out infinite;
}

.name {
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(6px, 5px);
  }
}

.intro {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.intro span {
  display: block;
  margin-top: 6px;
  font-size: .95rem;
  color: var(--muted);
}

.ctas {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.code-card {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  animation: card-in .9s cubic-bezier(.2, .7, .2, 1) .2s both;
}

.code {
  margin: 0;
  padding: 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .9rem;
  line-height: 1.8;
  color: var(--fg);
  opacity: .9;
}

.code .k { color: var(--accent); }
.code .s { color: var(--ok); }
.code .pr { color: var(--fg); }
.code .v { color: var(--fg); font-weight: 500; }
.code .p { color: var(--muted); }
.code .c { color: var(--muted); font-style: italic; }

.caret {
  display: inline-block;
  width: .55em;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -.2em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .code {
    font-size: .78rem;
  }
}

@media (max-width: 400px) {
  .code {
    font-size: .74rem;
  }
}

@media (min-width: 1000px) {
  .name,
  .intro,
  .ctas {
    grid-column: 1 / 8;
  }

  .code-card {
    grid-column: 8 / -1;
    grid-row: 1 / span 3;
    align-self: start;
    justify-self: end;
    margin: 0;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .2s, background .2s, border-color .2s;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}

.btn svg.stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.block {
  padding-block: clamp(56px, 9vw, 120px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -.03em;
}

.about {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.about > * {
  min-width: 0;
}

.about-side {
  grid-column: 1 / span 3;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 32px;
}

.about-photo {
  position: relative;
  display: block;
  min-height: 260px;
  max-width: 100%;
}

.about-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 10px;
}

.about-text {
  grid-column: 4 / span 6;
  display: grid;
  align-content: start;
  gap: 14px;
  max-width: 60ch;
  font-size: 1.08rem;
}

.about-text p {
  margin: 0;
}

.about-facts {
  grid-column: 10 / span 3;
  display: grid;
  align-content: start;
  gap: 18px;
  margin: 0;
}

.about-facts dd {
  margin: 4px 0 0;
  font-size: .93rem;
}

.about-facts dd span {
  color: var(--muted);
}

@media (max-width: 900px) {
  .about-side,
  .about-text,
  .about-facts {
    grid-column: 1 / -1;
  }

  .about-photo {
    max-width: 320px;
  }

  .about-photo {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 600px) {
  .about-photo {
    max-width: 220px;
  }

  .ctas .btn {
    flex: 1 1 0;
    justify-content: center;
  }

  .ctas .btn-primary {
    flex-basis: 100%;
  }
}

.xp-row {
  display: grid;
  grid-template-columns: 11rem 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding-block: 28px;
}

.xp-row > * {
  min-width: 0;
}

.xp-row h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.xp-row p {
  max-width: 62ch;
  margin: 4px 0 0;
  font-size: .93rem;
  color: var(--muted);
}

.xp-row p + p {
  margin-top: 10px;
}

.xp-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.xp-sub {
  display: grid;
  gap: 12px;
  max-width: 68ch;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.xp-sub li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 12px;
  font-size: .93rem;
  color: var(--muted);
}

.xp-sub li > * {
  min-width: 0;
}

.xp-sub .area {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
}

.xp-sub b {
  font-weight: 600;
  color: var(--fg);
}

.xp-sub .tech {
  display: block;
  margin-top: 6px;
  font-size: .72rem;
  font-style: normal;
  color: var(--accent);
}

@media (max-width: 700px) {
  .xp-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.projects {
  --proj-gap: clamp(64px, 9vw, 128px);
  display: grid;
  gap: var(--proj-gap);
}

.feature + .feature {
  position: relative;
}

.feature + .feature::before {
  content: "";
  position: absolute;
  top: calc(var(--proj-gap) / -2);
  left: 0;
  right: 0;
  height: 1px;
  --divider: color-mix(in srgb, var(--fg) 28%, transparent);
  background: linear-gradient(90deg, transparent, var(--divider) 12%, var(--divider) 88%, transparent);
  pointer-events: none;
}

.feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
  gap: clamp(28px, 4vw, 56px) clamp(24px, 5vw, 72px);
  color: inherit;
  text-decoration: none;
}

a.feature:hover h3 {
  color: var(--accent);
}

.more span {
  display: inline-block;
  transition: transform .25s;
}

a.feature:hover .more span {
  transform: translate(3px, -3px);
}

a.feature .browser {
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s;
}

a.feature:hover .browser {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -28px color-mix(in srgb, var(--accent) 45%, transparent);
}

.feature > * {
  min-width: 0;
}

.feature-info {
  display: flex;
  flex-direction: column;
  order: 2;
}

.feature h3 {
  margin: 18px 0 14px;
  font-family: var(--display);
  font-weight: 750;
  font-stretch: 80%;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: .9;
  letter-spacing: -.04em;
  text-wrap: balance;
  transition: color .25s;
}

.feature p {
  max-width: 52ch;
  margin: 0 0 20px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--accent);
}

.tag-plain {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.more {
  display: inline-flex;
  gap: 8px;
  margin-top: 22px;
  font-weight: 500;
  color: var(--accent);
}

.feature .more {
  margin-top: 4px;
}

@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
  }

  .feature .panel {
    order: -1;
    aspect-ratio: auto;
  }
}

.panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  aspect-ratio: 16 / 9;
}

.panel-shot {
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  background: none;
}

.browser {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .35);
}

.browser-soon {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 90% at 50% 120%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    color-mix(in srgb, var(--surface) 70%, transparent);
}

.soon {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.soon p {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  background: var(--accent-soft);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.soon-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: .3;
  }
}

.browser-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg);
}

.stack {
  display: grid;
  gap: 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee {
  display: flex;
  width: max-content;
  animation: scroll 48s linear infinite;
}

.marquee-reverse {
  animation-direction: reverse;
  animation-duration: 56s;
}

.stack:hover .marquee {
  animation-play-state: paused;
}

.track {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0 14px 0 0;
  list-style: none;
}

.track li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-size: 1.05rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s;
}

.track li:hover {
  color: var(--fg);
}

.track svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: currentColor;
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

.site-footer {
  padding-block: clamp(56px, 9vw, 120px) 64px;
}

.contact {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 24px;
}

.contact-main {
  display: grid;
  gap: 14px;
  max-width: 34rem;
}

.contact h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display);
  font-weight: 780;
  font-stretch: 78%;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: .9;
  letter-spacing: -.04em;
}

.contact-lead {
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 600px) {
  .links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .links .btn {
    justify-content: center;
  }
}

.colophon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: clamp(64px, 10vw, 120px);
  text-align: center;
  color: var(--muted);
}

.colophon a {
  text-decoration: none;
  transition: color .2s;
}

.colophon a:hover {
  color: var(--fg);
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1), border-color .25s;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.about .reveal:nth-child(2) {
  transition-delay: .12s;
}

.about .reveal:nth-child(3) {
  transition-delay: .24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .marquee {
    width: auto;
  }

  .track {
    flex-wrap: wrap;
  }

  .track[aria-hidden="true"] {
    display: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .stack {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
