:root {
  --bg: #0d1014;
  --bg-soft: #12161c;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --surface-solid: #171c24;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f6f3ef;
  --muted: #a4acb8;
  --muted-strong: #cad2dd;
  --accent: #ffb46a;
  --accent-soft: rgba(255, 180, 106, 0.16);
  --accent-alt: #dff06b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100vw - 40px));
  --font-display: "Aptos Display", "Bahnschrift", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
  --font-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 180, 106, 0.18), transparent 26%),
    radial-gradient(circle at 82% 8%, rgba(223, 240, 107, 0.1), transparent 18%),
    radial-gradient(circle at 100% 100%, rgba(139, 198, 255, 0.12), transparent 20%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
  pointer-events: none;
  opacity: 0.45;
}

::selection {
  background: rgba(255, 180, 106, 0.28);
  color: var(--text);
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.section {
  position: relative;
  padding: clamp(4.5rem, 7vw, 7rem) 0;
  scroll-margin-top: 96px;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1rem 0;
  transition: padding 220ms ease, background-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  padding: 0.7rem 0;
  background: rgba(13, 16, 20, 0.74);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 180, 106, 0.25), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle span + span {
  margin-top: 6px;
}

.hero {
  padding-top: clamp(5rem, 10vh, 7.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 2rem;
  align-items: start;
}

.hero__role {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--muted-strong);
}

.hero__title {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

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

.hero__summary {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

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

.button--primary {
  color: #14110d;
  background: linear-gradient(135deg, #ffb46a, #ffe2b9);
  box-shadow: 0 20px 35px rgba(255, 180, 106, 0.22);
}

.button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.button--ghost:hover {
  border-color: rgba(255, 180, 106, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.button--inline {
  margin-top: 1.75rem;
}

.hero__badges,
.tag-list,
.hero-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.hero__badges li {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

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

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(18, 22, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto auto -20% -10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 106, 0.22), transparent 70%);
  pointer-events: none;
}

.hero-card__label,
.project-card__type,
.portrait-card__label,
.about-card__title,
.service-card__number {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
}

.hero-card__text,
.hero-card__meta {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.hero-card__value {
  margin: 0.75rem 0 0;
  font-size: 1.55rem;
  line-height: 1.15;
  font-family: var(--font-display);
}

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

.hero-card__list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.hero-card__list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
}

.hero-card__list li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.2rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.section-head__text {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 1.6rem;
  align-items: stretch;
}

.about__content,
.portrait-card,
.skill-card,
.project-card,
.service-card,
.contact-panel {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(18, 22, 28, 0.82);
  box-shadow: var(--shadow);
}

.about__content {
  padding: clamp(1.6rem, 2vw, 2rem);
}

.about__lead {
  margin: 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.about__cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

.about-card {
  padding: 1.1rem 1.1rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.about-card p:last-child {
  margin-bottom: 0;
}

.portrait-card {
  display: grid;
  grid-template-rows: minmax(340px, 1fr) auto;
  overflow: hidden;
}

.portrait-card__visual {
  position: relative;
  min-height: 340px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 180, 106, 0.2), transparent 22%),
    radial-gradient(circle at 72% 28%, rgba(223, 240, 107, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.portrait-card__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.portrait-card__orb--one {
  top: 14%;
  left: 16%;
  width: 96px;
  height: 96px;
  background: radial-gradient(circle, rgba(255, 180, 106, 0.72), rgba(255, 180, 106, 0.08));
}

.portrait-card__orb--two {
  right: 14%;
  bottom: 18%;
  width: 128px;
  height: 128px;
  background: radial-gradient(circle, rgba(223, 240, 107, 0.42), rgba(223, 240, 107, 0.02));
}

.portrait-card__silhouette {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(62%, 280px);
  aspect-ratio: 0.82;
  transform: translateX(-50%);
  border-radius: 46% 46% 18% 18% / 38% 38% 18% 18%;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.portrait-card__silhouette::before {
  content: "";
  position: absolute;
  top: -14%;
  left: 50%;
  width: 34%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.portrait-card__meta {
  padding: 1.25rem 1.35rem 1.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portrait-card__meta p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.skills-grid,
.services-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

.skills-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skill-card {
  padding: 1.35rem;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.skill-card:hover,
.project-card:hover,
.service-card:hover,
.contact-button:hover {
  transform: translateY(-4px);
}

.skill-card:hover {
  border-color: rgba(255, 180, 106, 0.3);
}

.skill-card__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--accent);
  background: rgba(255, 180, 106, 0.1);
  border: 1px solid rgba(255, 180, 106, 0.16);
}

.skill-card h3,
.project-card h3,
.service-card h3,
.contact-panel h2 {
  margin: 1rem 0 0.6rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.skill-card h3 {
  font-size: 1.18rem;
}

.skill-card p,
.project-card__description,
.service-card p {
  margin: 0;
  color: var(--muted);
}

.projects-grid {
  display: grid;
  gap: 1rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 1rem;
  padding: 1rem;
  transition: transform 220ms ease, border-color 220ms ease;
}

.project-card:hover {
  border-color: rgba(255, 180, 106, 0.24);
}

.project-card--featured {
  padding: 1.15rem;
}

.project-card__content {
  padding: 0.55rem 0.35rem 0.55rem 0.35rem;
}

.project-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.tag-list li {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.project-shot {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 1.1rem;
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 180, 106, 0.24), transparent 20%),
    radial-gradient(circle at 78% 24%, rgba(223, 240, 107, 0.15), transparent 16%),
    linear-gradient(180deg, #1a212b, #10151b);
}

.project-shot--future {
  background:
    radial-gradient(circle at 28% 16%, rgba(223, 240, 107, 0.18), transparent 22%),
    radial-gradient(circle at 76% 20%, rgba(118, 214, 255, 0.16), transparent 18%),
    linear-gradient(180deg, #172028, #0f151c);
}

.project-shot--lab {
  background:
    radial-gradient(circle at 24% 18%, rgba(118, 214, 255, 0.18), transparent 20%),
    radial-gradient(circle at 82% 22%, rgba(255, 180, 106, 0.18), transparent 18%),
    linear-gradient(180deg, #151c24, #0d1218);
}

.project-shot__window {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.project-shot__window span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.project-shot__layout,
.project-shot__stack {
  display: grid;
  gap: 0.75rem;
}

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

.project-shot--future .project-shot__row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-shot--lab .project-shot__row {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
}

.project-shot__panel {
  min-height: 76px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.project-shot__panel--hero {
  min-height: 124px;
}

.project-shot__panel--wide {
  min-height: 94px;
}

.project-shot__panel--tall {
  min-height: 170px;
}

.project-shot__panel--accent {
  background:
    linear-gradient(180deg, rgba(255, 180, 106, 0.35), rgba(255, 255, 255, 0.05)),
    rgba(255, 180, 106, 0.07);
}

.project-shot__caption {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  margin: 0;
  color: rgba(246, 243, 239, 0.72);
  font-size: 0.88rem;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  padding: 1.35rem;
  transition: transform 220ms ease, border-color 220ms ease;
}

.service-card:hover {
  border-color: rgba(255, 180, 106, 0.24);
}

.service-card__number {
  display: inline-block;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1rem;
  padding: 1rem;
}

.contact-panel__copy {
  padding: 1rem;
}

.contact-panel h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.contact-panel__copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 108px;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.contact-button:hover {
  border-color: rgba(255, 180, 106, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.contact-button__icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--accent);
  background: rgba(255, 180, 106, 0.1);
  border: 1px solid rgba(255, 180, 106, 0.16);
}

.contact-button strong,
.contact-button small {
  display: block;
}

.contact-button strong {
  font-size: 1rem;
}

.contact-button small {
  margin-top: 0.2rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 0 0 2rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--muted-strong);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header__inner {
    position: relative;
  }

  .nav-toggle {
    display: inline-grid;
    place-content: center;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    left: 0;
    display: grid;
    gap: 0.35rem;
    padding: 0.5rem;
    border-radius: 24px;
    background: rgba(15, 18, 24, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  }

  .nav a {
    border-radius: 16px;
  }

  .site-header.is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-header.is-open .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .site-header.is-open .nav-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .hero__grid,
  .section-head,
  .about__grid,
  .project-card,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero__title,
  .about__lead {
    max-width: none;
  }

  .hero-card-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  :root {
    --container: min(100vw, calc(100vw - 28px));
  }

  .section {
    padding: 4rem 0;
  }

  .hero__title {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .skills-grid,
  .services-grid,
  .contact-grid,
  .project-shot__row,
  .project-shot--future .project-shot__row,
  .project-shot--lab .project-shot__row {
    grid-template-columns: 1fr;
  }

  .project-shot__panel--tall {
    min-height: 110px;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
