:root {
  --bg: #070708;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.64);
  --line: rgba(255, 255, 255, 0.16);
  --header: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Outfit, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: #fff;
  color: #000;
  padding: 0.45rem 0.75rem;
  z-index: 20;
}

.skip:focus { top: 0.75rem; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(7, 7, 8, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled { border-bottom-color: var(--line); }

.word {
  flex-shrink: 0;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  white-space: nowrap;
}

.menu {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.menu a {
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  white-space: nowrap;
}

.menu a:hover { border-bottom-color: #fff; }

.hero {
  min-height: calc(100vh - var(--header));
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 4rem;
  width: min(1180px, calc(100% - 4rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.portrait {
  margin: 0;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 28px;
  border: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5.4vw, 5rem);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.role {
  margin: 1.25rem 0 0;
  font-size: 1.35rem;
  font-weight: 400;
}

.lede {
  margin: 1rem 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.years {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.years strong {
  font-size: clamp(3rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.years span {
  color: var(--muted);
  max-width: 14rem;
}

.about {
  width: min(1180px, calc(100% - 4rem));
  margin: 0 auto 6rem;
  scroll-margin-top: calc(var(--header) + 1.5rem);
}

.about h2 {
  margin: 0 0 1.25rem;
  max-width: 16ch;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.about-copy {
  max-width: 40rem;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.proof {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.shot.is-preview img { object-position: center 42%; }

.shot figcaption {
  padding: 0.8rem 1rem 0.95rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.stack {
  padding: 2rem 0 6rem;
  scroll-margin-top: var(--header);
}

.stack-head {
  width: min(1180px, calc(100% - 4rem));
  margin: 0 auto 2.5rem;
}

.stack-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.work {
  width: min(1180px, calc(100% - 4rem));
  margin: 0 auto 6rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.work h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.work .lede { max-width: 28rem; }

.see-work {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff;
  color: #070708;
  font-weight: 500;
  padding: 0.85rem 1.35rem;
  transition: transform 0.22s ease;
}

.see-work:hover { transform: translateY(-2px); }

.wave {
  list-style: none;
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  width: min(1180px, calc(100% - 3rem));
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
}

.tech {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  animation: wave 6.4s ease-in-out infinite;
}

.tech:nth-child(1) { animation-delay: 0s; }
.tech:nth-child(2) { animation-delay: -0.8s; }
.tech:nth-child(3) { animation-delay: -1.6s; }
.tech:nth-child(4) { animation-delay: -2.4s; }
.tech:nth-child(5) { animation-delay: -3.2s; }
.tech:nth-child(6) { animation-delay: -4s; }
.tech:nth-child(7) { animation-delay: -4.8s; }

.orb {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
}

.orb svg { width: 40px; height: 40px; }

.tech p {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 2rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact {
  width: min(1180px, calc(100% - 4rem));
  margin: 0 auto 6rem;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: start;
  scroll-margin-top: calc(var(--header) + 1.5rem);
}

.contact h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.contact .lede { max-width: 26rem; }

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.6rem 1.6rem 1.4rem;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.35s ease;
}

.panel:focus-within { border-color: rgba(255, 255, 255, 0.45); }

.form-body {
  display: grid;
  gap: 1.35rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.panel.is-sent .form-body {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.field {
  position: relative;
  display: block;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 1.35rem 0 0.55rem;
  border-radius: 0;
  outline: none;
  resize: vertical;
}

.field textarea { min-height: 7.5rem; }

.field span {
  position: absolute;
  left: 0;
  top: 1.15rem;
  color: var(--muted);
  transform-origin: left center;
  transition: transform 0.22s ease, color 0.22s ease;
  pointer-events: none;
}

.field input:focus + span,
.field input:not(:placeholder-shown) + span,
.field textarea:focus + span,
.field textarea:not(:placeholder-shown) + span {
  transform: translateY(-0.95rem) scale(0.82);
  color: #fff;
}

.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: #ff8f8f; }

.field-error {
  min-height: 0;
  margin: 0.35rem 0 0;
  color: #ffb4b4;
  font-size: 0.82rem;
}

.field-error:empty { display: none; }

.choice-label {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill input {
  position: absolute;
  opacity: 0;
}

.pill span {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.48rem 0.95rem;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.pill:hover span { transform: translateY(-2px); }

.pill input:checked + span {
  background: #fff;
  color: #070708;
  border-color: #fff;
}

.pill input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.turnstile { margin-top: 0.2rem; }

.is-dummy {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.send {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #070708;
  font: inherit;
  font-weight: 500;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.send:hover { transform: translateY(-2px); }

.send.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.form-status {
  min-height: 1.2rem;
  margin: 0;
  color: #ffb4b4;
  font-size: 0.9rem;
}

.success {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.panel.is-sent .success {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.check {
  width: 64px;
  height: 64px;
}

.check circle {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}

.check path {
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.panel.is-sent .check circle,
.panel.is-sent .check path {
  animation: draw 0.7s ease forwards;
}

.panel.is-sent .check path { animation-delay: 0.25s; }

.success h3 {
  margin: 0.4rem 0 0;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.success p { margin: 0; color: var(--muted); }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: min(640px, calc(100% - 2.5rem));
    padding-top: 1.5rem;
  }

  .portrait img { max-height: 70vh; }

  .wave {
    grid-template-columns: repeat(2, 1fr);
    width: min(520px, calc(100% - 2rem));
    row-gap: 2rem;
  }

  .nav { padding: 0 1.25rem; }

  footer {
    flex-direction: column;
    padding-inline: 1.25rem;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: min(640px, calc(100% - 2.5rem));
  }

  .about,
  .work { width: min(640px, calc(100% - 2.5rem)); }

  .work {
    align-items: flex-start;
    flex-direction: column;
  }

  .proof { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.9rem 1.25rem 0.85rem;
  }

  .about,
  .stack,
  .contact { scroll-margin-top: 8.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tech,
  .field span,
  .pill span,
  .send,
  .see-work,
  .form-body,
  .success,
  .panel.is-sent .check circle,
  .panel.is-sent .check path { animation: none; transition: none; }
}
