:root {
  color-scheme: dark;
  --bg: #0b0d0f;
  --bg-elevated: #111518;
  --panel: #171c20;
  --panel-strong: #20262b;
  --paper: #f3efe4;
  --ink: #f7f8f2;
  --muted: #aeb7b1;
  --muted-strong: #d5dad3;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.26);
  --accent: #ccff33;
  --cyan: #54dfd2;
  --orange: #ff9b45;
  --dark: #050607;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --content: min(1180px, calc(100% - 48px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
}

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

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--dark);
  padding: 10px 14px;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--orange));
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 9, 11, 0.88);
  border-color: var(--line);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: var(--content);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(204, 255, 51, 0.68);
  border-radius: 50%;
  background: rgba(204, 255, 51, 0.12);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 900;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand-copy strong,
.brand-copy small {
  letter-spacing: 0;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-menu a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 750;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  outline: none;
}

.site-menu .nav-cta {
  border-color: rgba(204, 255, 51, 0.64);
  background: var(--accent);
  color: #11150c;
}

.site-menu .nav-cta:hover,
.site-menu .nav-cta:focus-visible {
  border-color: var(--accent);
  background: #e4ff80;
  color: #11150c;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle-line {
  width: 18px;
  height: 2px;
  display: block;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: var(--dark);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/portfolio-hero.png");
  background-position: center right;
  background-size: cover;
  transform: translate3d(0, 0, 0) scale(1.03);
  transition: transform 260ms ease;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.98) 0%, rgba(5, 6, 7, 0.9) 36%, rgba(5, 6, 7, 0.43) 72%, rgba(5, 6, 7, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.04) 0%, rgba(5, 6, 7, 0.88) 100%);
}

.hero-grid {
  position: relative;
  width: var(--content);
  min-height: 100svh;
  margin: 0 auto;
  padding: 132px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  align-items: end;
}

.hero-copy {
  max-width: 790px;
}

.eyebrow,
.section-label,
.card-label {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: 8.1rem;
  line-height: 0.82;
  text-transform: uppercase;
}

h1 span,
h2 span {
  display: block;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(247, 248, 242, 0.86);
  font-size: 1.24rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 21px;
  font-weight: 900;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  background: var(--ink);
  color: var(--dark);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent);
}

.button.ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  border-color: var(--cyan);
  background: rgba(84, 223, 210, 0.12);
}

.objective-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 21, 24, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 22px;
}

.objective-card h2 {
  margin-bottom: 20px;
  font-size: 1.9rem;
  line-height: 1;
  text-transform: uppercase;
}

.objective-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.objective-list div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.objective-list div:last-child {
  padding-bottom: 0;
}

.objective-list dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.objective-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.objective-list a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.92);
}

.hero-strip span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  padding: 10px 16px;
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.hero-strip span:last-child {
  border-right: 0;
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: 104px 0;
}

.section-header,
.section-kicker {
  margin-bottom: 42px;
}

.section-header.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 38px;
  align-items: end;
}

.section-header > p,
.section-header.split > p,
.contact-copy p {
  max-width: 630px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

h2 {
  margin-bottom: 0;
  font-size: 4.6rem;
  line-height: 0.88;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.12;
}

.snapshot-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 44px;
  align-items: start;
}

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

.snapshot-panel,
.project-card,
.skill-group {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
}

.snapshot-panel::before,
.project-card::before,
.skill-group::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--orange));
  opacity: 0.8;
}

.snapshot-panel {
  min-height: 246px;
  padding: 26px;
}

.snapshot-panel.large {
  grid-row: span 2;
}

.panel-index,
.project-meta,
.skill-group > span {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.snapshot-panel h3 {
  max-width: 440px;
  margin-top: 54px;
  font-size: 1.8rem;
}

.snapshot-panel p,
.project-card p,
.skill-group p,
.timeline-body li,
.timeline-meta {
  color: var(--muted);
}

.snapshot-panel p,
.project-card p,
.skill-group p {
  margin-bottom: 0;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--accent);
  color: #10140a;
}

.marquee-track {
  width: max-content;
  display: flex;
  animation: marquee 28s linear infinite;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 28px;
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.projects-section {
  padding-top: 112px;
}

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

.project-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.project-card.feature {
  grid-column: span 2;
  background:
    linear-gradient(145deg, rgba(204, 255, 51, 0.12), rgba(84, 223, 210, 0.07)),
    var(--panel);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: auto;
}

.project-card h3 {
  margin-top: 70px;
  font-size: 2rem;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  padding: 7px 10px;
  font-size: 0.83rem;
  font-weight: 800;
}

.project-link {
  width: fit-content;
  display: inline-flex;
  margin-top: 24px;
  color: var(--accent);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.project-link:hover,
.project-link:focus-visible {
  color: var(--cyan);
  outline: none;
}

.experience-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}

.timeline-date {
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-body h3 {
  margin-bottom: 8px;
  font-size: 1.65rem;
}

.timeline-meta {
  margin-bottom: 16px;
  font-weight: 750;
}

.timeline-body ul {
  margin: 0;
  padding-left: 20px;
}

.timeline-body li + li {
  margin-top: 8px;
}

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

.skill-group {
  min-height: 270px;
  padding: 24px;
}

.skill-group h3 {
  margin-top: 70px;
  color: var(--ink);
  text-transform: uppercase;
}

.contact-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.95), rgba(5, 6, 7, 0.72)),
    url("assets/portfolio-hero.png") center right / cover;
}

.contact-inner {
  width: var(--content);
  margin: 0 auto;
  padding: 112px 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 46px;
  align-items: start;
}

.contact-copy h2 {
  margin-bottom: 22px;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-link {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 21, 24, 0.82);
  padding: 20px;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(204, 255, 51, 0.58);
  background: rgba(24, 30, 33, 0.92);
  outline: none;
}

.contact-link span {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-link strong {
  overflow-wrap: anywhere;
  line-height: 1.28;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--dark);
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
}

.reveal-enabled [data-reveal] {
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 500ms ease, transform 500ms ease;
}

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

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

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1080px) {
  h1 {
    font-size: 6.2rem;
  }

  h2 {
    font-size: 3.75rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-content: end;
  }

  .objective-card {
    max-width: 520px;
  }

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

  .snapshot-section,
  .section-header.split,
  .contact-inner {
    grid-template-columns: 1fr;
  }

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

  .project-card.feature {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  :root {
    --content: min(100% - 28px, 620px);
  }

  body {
    font-size: 15px;
  }

  .nav-shell {
    min-height: 66px;
  }

  .brand-copy strong {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-copy small {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-menu {
    position: absolute;
    top: 66px;
    left: 14px;
    right: 14px;
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 9, 11, 0.96);
    box-shadow: var(--shadow);
    padding: 8px;
  }

  .site-header.is-open .site-menu {
    display: grid;
  }

  .site-menu a {
    border-radius: 6px;
    padding: 10px 12px;
  }

  .site-menu .nav-cta {
    justify-content: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    background-position: 68% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 6, 7, 0.98) 0%, rgba(5, 6, 7, 0.86) 100%),
      linear-gradient(180deg, rgba(5, 6, 7, 0.12) 0%, rgba(5, 6, 7, 0.9) 100%);
  }

  .hero-grid {
    min-height: 760px;
    padding: 104px 0 36px;
    gap: 28px;
  }

  h1 {
    font-size: 4.15rem;
    line-height: 0.86;
  }

  h2 {
    font-size: 3.05rem;
  }

  .hero-lede {
    font-size: 1.08rem;
  }

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

  .button {
    width: 100%;
  }

  .hero-strip,
  .snapshot-grid,
  .project-grid,
  .skills-grid,
  .contact-actions {
    grid-template-columns: 1fr;
  }

  .hero-strip span {
    justify-content: flex-start;
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 72px 0;
  }

  .snapshot-panel,
  .project-card,
  .skill-group {
    min-height: 0;
  }

  .snapshot-panel.large {
    grid-row: span 1;
  }

  .snapshot-panel h3,
  .project-card h3,
  .skill-group h3 {
    margin-top: 44px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }

  .contact-inner {
    padding: 78px 0;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.42rem;
  }

  .objective-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

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

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