:root {
  --bg: #0a0e1a;
  --bg-raise: #10162a;
  --bg-card: #131a30;
  --line: #232c4a;
  --text: #dde3f4;
  --text-dim: #979DB5;
  --text-faint: #717B98;
  --accent: #5eead4;
  --accent-2: #93a7ff;
  --accent-3: #f4a4ff;
  --grad: linear-gradient(
    100deg,
    var(--accent),
    var(--accent-2) 55%,
    var(--accent-3)
  );
  --mono: "SF Mono", ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --radius: 14px;
  --header-h: 72px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection {
  background: rgba(94, 234, 212, 0.25);
}
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--accent-2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
}
.eyebrow {
  color: var(--accent);
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section {
  padding: 110px 0;
  position: relative;
}
.section__title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 16px;
}
.section__lede {
  color: var(--text-dim);
  max-width: 62ch;
  font-size: 1.05rem;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.button {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  color: #06281f;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  gap: 8px;
  padding: 13px 26px;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.button:hover {
  background: #7ef0de;
  box-shadow: 0 8px 30px -8px rgba(94, 234, 212, 0.5);
  text-decoration: none;
  transform: translateY(-2px);
}
.button--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.button--ghost:hover {
  background: var(--bg-card);
  border-color: var(--accent-2);
  box-shadow: none;
  color: #fff;
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
.header {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 14, 26, 0.82);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  left: 0;
  right: 0;
  top: 0;
  position: fixed;
  z-index: 100;
}
.header__content {
  align-items: center;
  display: flex;
  height: var(--header-h);
  justify-content: space-between;
}
.logo {
  color: var(--text);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
}
.logo .t {
  color: var(--accent);
}
.logo .cursor-blink {
  animation: blink 1.1s steps(1) infinite;
  background: var(--accent);
  display: inline-block;
  height: 1em;
  margin-left: 3px;
  vertical-align: text-bottom;
  width: 0.55em;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.nav {
  align-items: center;
  display: flex;
  gap: 34px;
}
.nav__item {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.85rem;
  position: relative;
  text-decoration: none;
  transition: color 0.15s;
}
.nav__item::before {
  content: "./";
  color: var(--text-faint);
}
.nav__item:hover {
  color: var(--accent);
  text-decoration: none;
}
.nav__cta {
  padding: 9px 18px;
  font-size: 0.8rem;
}
.nav-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  background: var(--text);
  border-radius: 2px;
  display: block;
  height: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
  width: 24px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-nav {
  background: var(--bg-raise);
  border-bottom: 1px solid var(--line);
  display: none;
  flex-direction: column;
  left: 0;
  right: 0;
  top: var(--header-h);
  padding: 12px 24px 20px;
  position: fixed;
  z-index: 99;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  padding: 15px 4px;
  text-decoration: none;
}
.mobile-nav a::before {
  content: "./";
  color: var(--accent);
  margin-right: 6px;
}
.mobile-nav a:last-child {
  border: 0;
}
@media (max-width: 820px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}
.hero {
  align-items: center;
  display: flex;
  min-height: 100svh;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse 90% 70% at 50% 40%,
    #000 30%,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 90% 70% at 50% 40%,
    #000 30%,
    transparent 75%
  );
  opacity: 0.5;
  pointer-events: none;
}
.orb {
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  position: absolute;
}
.orb--1 {
  background: #acacac;
  height: 720px;
  width: 720px;
  right: -200px;
  top: 6%;
  opacity: 0.12;
}
.orb--2 {
  background: #0f7c6b;
  height: 380px;
  width: 380px;
  left: -160px;
  bottom: 4%;
  opacity: 0.1;
}
.orb--3 {
  background: #2743c7;
  height: 130px;
  width: 130px;
  left: 47%;
  bottom: -20px;
  opacity: 0.25;
}
.hero__content {
  position: relative;
  max-width: 800px;
}
.hero__hello {
  color: var(--accent);
  display: block;
  font-family: var(--mono);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  margin-bottom: 24px;
}
.hero__sub {
  color: var(--text-dim);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  margin-bottom: 8px;
  max-width: 52ch;
}
.hero__type {
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  margin-bottom: 40px;
  min-height: 1.7em;
}
.hero__type .t-cursor {
  animation: blink 1.05s steps(1) infinite;
  background: var(--accent);
  display: inline-block;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  width: 0.55em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero__scroll {
  bottom: 34px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  left: 50%;
  letter-spacing: 0.12em;
  position: absolute;
  transform: translateX(-50%);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translate(-50%, 6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll {
    animation: none;
  }
}
.pitch {
  border-top: 1px solid var(--line);
}
.pitch__grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
.pitch h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}
.pitch__details p {
  color: var(--text-dim);
}
.pitch__details p::first-letter {
  color: var(--text);
}
@media (min-width: 900px) {
  .pitch__grid {
    grid-template-columns: 1.1fr 1fr;
  }
}
.services {
  background: var(--bg-raise);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 54px;
}
.services__grid > * {
  flex: 1 1 100%;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.card::before {
  background: var(--grad);
  border-radius: var(--radius) var(--radius) 0 0;
  content: "";
  height: 3px;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.22s ease;
}
.card:hover {
  border-color: rgba(147, 167, 255, 0.5);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(-5px);
}
.card:hover::before {
  opacity: 1;
}
.card__icon {
  align-items: center;
  background: rgba(94, 234, 212, 0.09);
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 12px;
  color: var(--accent);
  display: flex;
  height: 52px;
  justify-content: center;
  margin-bottom: 20px;
  width: 52px;
}
.card__icon svg {
  height: 26px;
  width: 26px;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}
.card p:last-child {
  margin-bottom: 0;
}
@media (min-width: 640px) {
  .services__grid > * {
    flex: 1 1 calc((100% - 44px) / 2);
  }
}
@media (min-width: 1024px) {
  .services__grid > * {
    flex: 1 1 calc((100% - 44px) / 3);
  }
}
.work__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 54px;
}
.project {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.project:hover {
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 24px 55px -22px rgba(0, 0, 0, 0.65);
  transform: translateY(-5px);
}
.project__shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.project__shot img {
  height: 100%;
  object-fit: cover;
  width: 100%;
  transition: transform 0.4s ease;
}
.project:hover .project__shot img {
  transform: scale(1.04);
}
.project__shot::after {
  background: linear-gradient(transparent 55%, rgba(10, 14, 26, 0.9));
  content: "";
  position: absolute;
}
.project__body {
  padding: 22px 24px 24px;
}
.project__client {
  align-items: center;
  display: flex;
  font-size: 1.15rem;
  font-weight: 700;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 8px;
}
.project__client .arrow {
  color: var(--accent);
  font-family: var(--mono);
  transition: transform 0.2s ease;
}
.project:hover .arrow {
  transform: translateX(4px);
}
.project__desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}
.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tag {
  background: rgba(147, 167, 255, 0.1);
  border: 1px solid rgba(147, 167, 255, 0.3);
  border-radius: 999px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 0.6875rem;
  padding: 3px 11px;
}
.quote {
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 28px;
}
.quote p:first-child {
  color: var(--text-dim);
  font-size: 0.96rem;
  font-style: italic;
}
.quote p:first-child::before {
  color: var(--accent);
  content: "“ ";
  font-size: 1.4em;
  font-style: normal;
}
.quote__author {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  margin: 0;
}
.quote__author span {
  color: var(--text-faint);
}
@media (min-width: 800px) {
  .work__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.modal {
  align-items: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(6, 9, 18, 0.8);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 200;
}
.modal.open {
  display: flex;
}
.modal__box {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-sizing: border-box;
  max-height: 88vh;
  max-width: 760px;
  overflow-y: auto;
  padding: 34px;
  position: relative;
  scrollbar-gutter: stable;
  width: 100%;
  animation: modal-in 0.25s ease;
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
.modal__close {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 6px 12px;
  position: absolute;
  right: 20px;
  top: 20px;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.modal__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.modal__box h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
  padding-right: 70px;
}
.modal__meta {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  margin-bottom: 20px;
}
.modal__box img {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 22px;
}
.modal__box p {
  color: var(--text-dim);
}
.about {
  background: var(--bg-raise);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.about .orb--about {
  background: #2743c7;
  height: 400px;
  width: 400px;
  right: -180px;
  top: -120px;
  opacity: 0.25;
}
.about__grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  margin-top: 54px;
}
.about__bio {
  text-align: center;
}
.about__bio img.avatar {
  border-radius: 20px;
  margin: 0 auto 22px;
  width: 220px;
}
.about__tagline {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.92rem;
}
.about__tagline b {
  color: var(--accent);
  font-weight: 600;
}
@media (min-width: 960px) {
  .about__grid {
    grid-template-columns: 300px 1fr;
  }
}
.terminal {
  background: #0d1220;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.65;
  min-height: 480px;
  overflow: hidden;
}
.terminal__bar {
  align-items: center;
  background: #161d33;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  padding: 10px 14px;
}
.terminal__dot {
  border-radius: 50%;
  height: 12px;
  width: 12px;
}
.terminal__dot--r {
  background: #ff5f57;
}
.terminal__dot--y {
  background: #febc2e;
}
.terminal__dot--g {
  background: #28c840;
}
.terminal__title {
  color: var(--text-dim);
  font-size: 0.72rem;
  margin: 0 auto;
  transform: translateX(-26px);
  user-select: none;
}
.terminal__replay {
  background: none;
  border: 1px solid #3a4568;
  border-radius: 6px;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.6875rem;
  padding: 2px 8px;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.terminal__replay:hover {
  border-color: var(--text-dim);
  color: var(--text);
}
.terminal__body {
  color: #d7dcef;
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 24px;
  scrollbar-color: #3a4568 transparent;
  scrollbar-width: thin;
}
.t-line {
  white-space: pre-wrap;
  word-break: break-word;
}
.t-prompt {
  color: var(--accent);
  font-weight: 600;
}
.t-prompt .t-path {
  color: var(--accent-2);
}
.t-prompt .t-sym {
  color: #d7dcef;
  font-weight: 400;
}
.t-cmd {
  color: #f5f7ff;
}
.t-comment {
  color: var(--text-faint);
  font-style: italic;
}
.t-key {
  color: var(--accent-2);
}
.t-str {
  color: #a5e6a1;
}
.t-check {
  color: var(--accent);
}
.t-cursor {
  animation: blink 1.05s steps(1) infinite;
  background: #d7dcef;
  display: inline-block;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: text-bottom;
  width: 0.55em;
}
.t-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 4px;
}
.t-skill {
  animation: chip-in 0.28s ease forwards;
  background: rgba(107, 131, 232, 0.16);
  border: 1px solid rgba(147, 167, 255, 0.35);
  border-radius: 999px;
  color: #cdd6ff;
  display: inline-flex;
  font-size: 0.74rem;
  opacity: 0;
  padding: 3px 11px;
  transform: translateY(4px);
}
@keyframes chip-in {
  to {
    opacity: 1;
    transform: none;
  }
}
.terminal__skip {
  color: var(--text-faint);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.6875rem;
  padding: 6px 20px 10px;
  text-align: right;
  user-select: none;
}
.terminal__skip:hover {
  color: var(--text);
}
.terminal__skip[hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .t-cursor,
  .logo .cursor-blink {
    animation: none;
  }
  .t-skill {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.contact__grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  margin-top: 54px;
}
.contact__info p {
  color: var(--text-dim);
}
.contact__email {
  color: var(--accent);
  display: inline-block;
  font-family: var(--mono);
  font-size: 1.02rem;
  margin-top: 6px;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field label {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.78rem;
}
.form-field label::after {
  color: var(--accent);
  content: " *";
}
.text-field {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 13px 16px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  width: 100%;
}
.text-field::placeholder {
  color: var(--text-faint);
}
.text-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15);
  outline: none;
}
textarea.text-field {
  resize: vertical;
}
.contact__form .button {
  align-self: flex-start;
}
@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr 1.3fr;
  }
}
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer__content {
  align-items: center;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.78rem;
  gap: 12px;
  justify-content: space-between;
}
.footer__content .t {
  color: var(--accent);
}
