:root {
  --ink: #f7f0df;
  --paper: #080807;
  --paper-2: #11110f;
  --paper-3: #191813;
  --muted: #bdb5a6;
  --faint: #756f64;
  --line: rgba(247, 240, 223, 0.22);
  --line-strong: rgba(247, 240, 223, 0.62);
  --lime: #d7ff35;
  --orange: #ff4b25;
  --cyan: #42d6c9;
  --violet: #9f8cff;
  --shadow: #000;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    radial-gradient(circle at 16% 12%, rgba(215, 255, 53, 0.1), transparent 28rem),
    radial-gradient(circle at 92% 32%, rgba(255, 75, 37, 0.11), transparent 32rem),
    var(--paper);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  font-family: var(--sans);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.055), transparent 14%, rgba(255, 255, 255, 0.03) 22%, transparent 36%),
    repeating-radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 5px);
  mix-blend-mode: overlay;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-shell {
  overflow: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 7, 0.83);
  backdrop-filter: blur(18px);
}

.brand-mark,
.main-nav,
.language-switch,
.header-cta {
  min-height: 74px;
  display: flex;
  align-items: center;
}

.brand-mark {
  padding: 0 1.5rem;
  border-right: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2vw, 2.25rem);
  line-height: 1;
  white-space: nowrap;
}

.main-nav {
  gap: clamp(1rem, 2.7vw, 3rem);
  padding: 0 2rem;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.main-nav a,
.language-option,
.header-cta {
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
}

.language-switch {
  border-left: 1px solid var(--line);
}

.language-option {
  height: 74px;
  padding: 0 0.95rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.language-option:hover,
.language-option:focus-visible,
.language-option.is-active {
  background: var(--lime);
  color: var(--paper);
}

.header-cta {
  gap: 1rem;
  justify-content: center;
  padding: 0 1.65rem;
  border-left: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--lime);
}

.hero {
  min-height: calc(100svh - 74px);
  padding: clamp(2rem, 5vh, 4.5rem) clamp(1rem, 4vw, 4.5rem) clamp(1.5rem, 4vh, 3rem);
  border-bottom: 1px solid var(--line);
}

.hero-kicker {
  width: fit-content;
  max-width: 100%;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: clamp(1.6rem, 4vh, 3rem);
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--line-strong);
  box-shadow: 8px 8px 0 var(--shadow);
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.68rem, 1vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1.45;
  text-transform: uppercase;
}

.pulse-dot {
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 28px rgba(215, 255, 53, 0.7);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: end;
}

.hero h1 {
  max-width: 14ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(5rem, 8.8vw, 9.75rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.86;
}

.hero h1 mark {
  position: relative;
  display: inline-block;
  color: var(--paper);
  font-style: italic;
  background: transparent;
  isolation: isolate;
}

.hero h1 mark::before {
  position: absolute;
  inset: 0.1em -0.04em 0.04em -0.04em;
  z-index: -1;
  content: "";
  background: var(--lime);
  transform: rotate(-1.5deg);
}

.hero-subtitle {
  max-width: 52rem;
  margin: clamp(1.25rem, 2.4vh, 2rem) 0 0;
  color: #e6dece;
  font-size: clamp(1.18rem, 2vw, 1.75rem);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(1.25rem, 2.4vh, 1.8rem);
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0 1.65rem;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--shadow);
  font-size: 1rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--shadow);
}

.button-primary {
  background: var(--orange);
  color: white;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.hero-note {
  margin: 1.8rem 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  line-height: 1.55;
}

.hero-proof {
  border: 1px solid var(--line-strong);
  background: rgba(17, 17, 15, 0.76);
  box-shadow: 12px 12px 0 var(--shadow);
}

.proof-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.proof-row:last-child {
  border-bottom: 0;
}

.proof-row strong {
  color: var(--lime);
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 0.9;
}

.proof-row span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.tools-band {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.marquee {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.marquee-track {
  width: max-content;
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0.75rem;
  animation: marquee 44s linear infinite;
}

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

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  background: rgba(8, 8, 7, 0.72);
  color: var(--ink);
  white-space: nowrap;
}

.tool-chip img {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
}

.tool-chip span {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
}

.section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.55fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section-heading h2,
.trajectory-copy h2,
.contact-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7.8vw, 8.5rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
}

.section-heading p:not(.eyebrow),
.trajectory-copy p,
.contact-section p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.55;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  position: relative;
  min-height: 31rem;
  grid-column: span 4;
  display: grid;
  grid-template-rows: minmax(13rem, 1fr) auto;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  color: var(--ink);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 0 0 var(--shadow);
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card:nth-child(1),
.project-card:nth-child(6),
.project-card:nth-child(11) {
  grid-column: span 6;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: var(--lime);
  box-shadow: 9px 9px 0 var(--shadow);
}

.project-media {
  position: relative;
  min-height: 14rem;
  background: linear-gradient(135deg, rgba(215, 255, 53, 0.2), rgba(66, 214, 201, 0.14), rgba(255, 75, 37, 0.18));
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.08);
  transform: scale(1.01);
  transition: transform 500ms ease, filter 500ms ease;
}

.project-card:hover .project-media img,
.project-card:focus-visible .project-media img {
  filter: saturate(1.2) contrast(1.14);
  transform: scale(1.06);
}

.project-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 24%, rgba(8, 8, 7, 0.8));
}

.project-index {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  padding: 0.48rem 0.62rem;
  border: 1px solid rgba(247, 240, 223, 0.55);
  background: rgba(8, 8, 7, 0.72);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.project-body {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.55;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.4vw, 4.25rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.88;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.48;
}

.impact-line {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 0.45rem 0.55rem;
  background: var(--lime);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.details-line {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skills-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.skill-panel {
  padding: clamp(1.2rem, 2vw, 1.7rem);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(145deg, rgba(215, 255, 53, 0.08), transparent 42%),
    var(--paper-2);
  box-shadow: 8px 8px 0 var(--shadow);
}

.skill-panel h3 {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 4.25rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.92;
}

.skill-panel ul {
  display: grid;
  gap: 0.72rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-panel li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.skill-panel li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  content: "";
  background: var(--lime);
}

.trajectory-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(19rem, 0.72fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  background:
    linear-gradient(90deg, rgba(215, 255, 53, 0.08), transparent 38%),
    var(--paper);
}

.trajectory-copy {
  position: sticky;
  top: 104px;
}

.trajectory-copy p:not(.eyebrow) {
  margin-top: 1.4rem;
  max-width: 40rem;
}

.timeline {
  border-top: 1px solid var(--line-strong);
}

.timeline article {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.timeline h3 {
  margin: 0.9rem 0 0.55rem;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.08;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.contact-section {
  min-height: 78svh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 4vw, 4.5rem);
  background:
    linear-gradient(180deg, transparent, rgba(255, 75, 37, 0.09)),
    var(--paper);
}

.contact-inner {
  max-width: 72rem;
}

.contact-section h2 {
  max-width: 12ch;
}

.contact-section p:not(.eyebrow) {
  max-width: 44rem;
  margin: 1.4rem 0 2rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  width: min(70rem, 100%);
  max-height: min(90svh, 58rem);
  display: grid;
  grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1fr);
  overflow: auto;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  box-shadow: 14px 14px 0 var(--shadow);
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--lime);
  transform: rotate(4deg);
}

.modal-media {
  min-height: 100%;
  background: var(--paper-3);
}

.modal-media img {
  width: 100%;
  height: 100%;
  min-height: 25rem;
  object-fit: cover;
}

.modal-content {
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.modal-meta {
  margin: 0 3.2rem 0.9rem 0;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.45;
  text-transform: uppercase;
}

.modal-content h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.88;
}

.modal-summary {
  margin: 1.1rem 0 1.7rem;
  color: #e6dece;
  font-size: 1.08rem;
  line-height: 1.5;
}

.modal-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.modal-columns section {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.modal-columns h3 {
  margin: 0 0 0.5rem;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal-columns p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.modal-tags span {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 650ms ease, transform 650ms ease;
}

body.modal-open {
  overflow: hidden;
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 1180px) {
  .project-card,
  .project-card:nth-child(1),
  .project-card:nth-child(6),
  .project-card:nth-child(11) {
    grid-column: span 6;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .main-nav {
    display: none;
  }

  .brand-mark {
    border-right: 0;
  }

  .hero-grid,
  .section-heading,
  .trajectory-section,
  .skills-columns,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    max-width: 8.5ch;
  }

  .hero-proof {
    max-width: 34rem;
  }

  .trajectory-copy {
    position: static;
  }

  .modal-media img {
    max-height: 18rem;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 62px;
  }

  .brand-mark,
  .language-switch,
  .language-option,
  .header-cta {
    min-height: 62px;
  }

  .brand-mark {
    padding-inline: 0.8rem;
    font-size: clamp(1.18rem, 5vw, 1.45rem);
  }

  .header-cta {
    padding: 0 0.72rem;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .language-option {
    height: 62px;
    padding: 0 0.52rem;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero-kicker {
    margin-bottom: 2.5rem;
    box-shadow: 5px 5px 0 var(--shadow);
    letter-spacing: 0.16em;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(3.65rem, 17vw, 5.15rem);
    line-height: 0.88;
  }

  .button {
    width: 100%;
    min-height: 3.85rem;
  }

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

  .proof-row strong {
    font-size: 2rem;
  }

  .project-card,
  .project-card:nth-child(1),
  .project-card:nth-child(6),
  .project-card:nth-child(11) {
    grid-column: 1 / -1;
    min-height: 28rem;
  }

  .project-card h3 {
    font-size: 3rem;
  }

  .modal {
    padding: 0.5rem;
  }

  .modal-panel {
    box-shadow: none;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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