:root {
  --bg: #050609;
  --panel: #0b0f16;
  --panel-strong: #111823;
  --text: #f7f8fb;
  --muted: #8e98a8;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #3ee4d3;
  --amber: #f6bd48;
  --coral: #ff745c;
  --green: #95d967;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 12%, rgba(62, 228, 211, 0.11), transparent 28rem),
    radial-gradient(circle at 24% 42%, rgba(246, 189, 72, 0.08), transparent 26rem),
    linear-gradient(145deg, #050609 0%, #0a0d13 45%, #050609 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9;
  display: inline-grid;
  width: 2.8rem;
  height: 2.8rem;
  color: #061012;
  background: var(--cyan);
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  place-items: center;
  box-shadow: 0 18px 45px rgba(62, 228, 211, 0.22);
}

body::selection {
  color: #061012;
  background: var(--cyan);
}

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

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

button {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  display: flex;
  width: 18rem;
  padding: 2rem 2rem 1.5rem;
  border-right: 1px solid var(--line);
  background: rgba(5, 6, 9, 0.84);
  backdrop-filter: blur(18px);
  flex-direction: column;
  justify-content: space-between;
}

.mark {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  color: #061012;
  background: linear-gradient(135deg, var(--cyan), var(--amber) 72%, var(--coral));
  border-radius: 0;
  font-weight: 900;
  place-items: center;
  box-shadow: 0 12px 32px rgba(73, 216, 202, 0.22);
}

.side-nav-body {
  display: grid;
  gap: 3rem;
}

.side-nav nav {
  display: grid;
  gap: 1rem;
}

.side-nav nav a {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88rem;
  transition: color 180ms ease, transform 180ms ease;
}

.side-nav nav a:hover,
.side-nav nav a.active {
  color: var(--text);
  transform: translateX(0.25rem);
}

.side-nav p {
  max-width: 10rem;
  color: #657184;
  font-size: 0.78rem;
}

.side-socials {
  display: grid;
  gap: 0.65rem;
}

.side-socials a {
  width: fit-content;
  color: #758195;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.side-socials a:hover {
  color: var(--amber);
}

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

.resume-pill {
  min-width: 5.25rem;
  padding: 0.65rem 0.95rem;
  color: #061012;
  background: var(--cyan);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

main {
  margin-left: 18rem;
}

.section {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 7.5rem 3rem;
}

.hero {
  display: grid;
  min-height: 100vh;
  align-items: center;
  gap: 4rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 0.3rem;
  font-size: clamp(4.4rem, 12vw, 9.7rem);
  line-height: 0.84;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.62);
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-kicker {
  max-width: 38rem;
  margin-bottom: 1rem;
  color: #dce6f6;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
}

.hero-copy,
.section-intro,
.contact p {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.text-link:hover,
.project-card a:hover,
.contact-links a:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #071012;
  background: var(--cyan);
  border-color: transparent;
}

.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  display: grid;
  gap: 1rem;
  align-self: end;
  padding-bottom: 5rem;
}

.metric {
  position: relative;
  overflow: hidden;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(145deg, rgba(21, 30, 43, 0.92), rgba(11, 15, 23, 0.78));
  box-shadow: var(--shadow);
}

.metric:nth-child(2) {
  transform: translateX(-1.5rem);
}

.metric span {
  color: var(--amber);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.featured-in {
  margin-top: 4rem;
}

.featured-in p {
  margin-bottom: 1rem;
  color: #677285;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.featured-in div {
  display: grid;
  gap: 0;
  max-width: 45rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.featured-in a {
  min-height: 4.25rem;
  display: grid;
  align-items: center;
  padding: 0.8rem;
  color: #d5dde9;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.featured-in a:hover {
  color: #061012;
  background: var(--amber);
}

.metric p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.expertise-grid article {
  min-height: 19rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(17, 24, 35, 0.88), rgba(5, 6, 9, 0.58)),
    var(--panel);
  transition: border-color 180ms ease, transform 180ms ease;
}

.expertise-grid article:hover {
  border-color: rgba(62, 228, 211, 0.42);
  transform: translateY(-0.35rem);
}

.expertise-grid article:nth-child(2) {
  margin-top: 2rem;
}

.expertise-grid article:nth-child(3) {
  margin-top: 4rem;
}

.card-icon {
  display: inline-flex;
  margin-bottom: 3rem;
  color: var(--coral);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 900;
}

.expertise-grid p,
.timeline p,
.featured-project p,
.project-card p {
  color: var(--muted);
}

.quote-band {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

blockquote {
  margin: 0;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #dbe8ea;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
}

.work {
  position: relative;
}

.work-stage {
  position: relative;
  min-height: 25rem;
  margin: 3rem 0 -4.5rem;
}

.work-stage img {
  position: absolute;
  width: min(44rem, 62%);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.work-stage img:first-child {
  left: 0;
  top: 0;
  transform: rotate(-3deg);
}

.work-stage img:last-child {
  right: 0;
  top: 4rem;
  transform: rotate(3deg);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.filter {
  min-height: 2.4rem;
  padding: 0.45rem 0.85rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.filter.active {
  color: #071012;
  background: var(--green);
  border-color: transparent;
}

.featured-project {
  display: grid;
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
}

.featured-project::before {
  position: absolute;
  inset: 1rem auto auto 1rem;
  z-index: 2;
  content: "Featured Project";
  color: #061012;
  background: var(--green);
  padding: 0.35rem 0.65rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.featured-project > div {
  display: flex;
  min-height: 28rem;
  padding: 3rem 2rem 2rem;
  flex-direction: column;
  justify-content: center;
}

.featured-project h3 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.95;
}

.featured-project img {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
  border-left: 1px solid var(--line);
  filter: saturate(1.05) contrast(1.02);
}

.text-link,
.project-card a {
  display: inline-flex;
  width: fit-content;
  margin-top: 1.1rem;
  color: var(--cyan);
  font-weight: 900;
  transition: transform 180ms ease, color 180ms ease;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(16, 22, 32, 0.82);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  border-color: rgba(73, 216, 202, 0.5);
  transform: translateY(-4px);
}

.project-card.is-hidden {
  display: none;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #151e2b;
}

.project-card div {
  padding: 1.1rem;
}

.project-card p {
  margin-bottom: 0.5rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline article {
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 15rem minmax(0, 1fr);
}

.timeline article:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-meta {
  display: grid;
  align-content: start;
  gap: 0.25rem;
}

.timeline-meta span {
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
}

.timeline-meta strong {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.35rem 0.65rem;
  color: #dfe9f1;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
}

.testimonial {
  padding-top: 1rem;
}

.testimonial > div {
  display: grid;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.testimonial blockquote {
  padding: 0;
  border: 0;
}

.testimonial p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.contact {
  display: grid;
  gap: 2rem;
  padding-bottom: 5rem;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.45fr);
}

.contact h2 {
  max-width: 11ch;
}

.contact-links {
  display: grid;
  align-content: center;
  gap: 0.75rem;
}

.contact-links a {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-links a:hover {
  border-color: rgba(73, 216, 202, 0.5);
}

@media (max-width: 980px) {
  .side-nav {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  main {
    margin-left: 0;
  }

  .section {
    padding: 5rem 1.25rem;
  }

  .hero,
  .featured-project,
  .contact {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 0;
  }

  .metric,
  .metric:nth-child(2) {
    transform: none;
  }

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

  .expertise-grid article,
  .expertise-grid article:nth-child(2),
  .expertise-grid article:nth-child(3) {
    min-height: auto;
    margin-top: 0;
  }

  .featured-project img {
    min-height: 20rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .work-stage {
    min-height: 20rem;
    margin-bottom: -2rem;
  }

  .work-stage img {
    width: 68%;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: clamp(4rem, 22vw, 6.6rem);
  }

  .section-heading.split,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .filters {
    justify-content: flex-start;
  }

  .hero-panel,
  .project-grid,
  .timeline article {
    grid-template-columns: 1fr;
  }

  .featured-in div {
    grid-template-columns: 1fr 1fr;
  }

  .work-stage {
    min-height: auto;
    margin: 2rem 0 1rem;
  }

  .work-stage img,
  .work-stage img:first-child,
  .work-stage img:last-child {
    position: static;
    width: 100%;
    margin-bottom: 1rem;
    transform: none;
  }

  .timeline article {
    gap: 1rem;
  }

  .button {
    width: 100%;
  }
}
