:root {
  --ink: #111827;
  --text: #253041;
  --muted: #64748b;
  --line: #d9e1ea;
  --paper: #fbfcff;
  --panel: #f3f7fb;
  --teal: #0f9f9a;
  --teal-dark: #0f766e;
  --blue: #2563eb;
  --coral: #f06449;
  --gold: #d9932f;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.1);
  --container: 1160px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 max(20px, calc((100vw - var(--container)) / 2));
  color: #fff;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  background: rgba(17, 24, 39, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #8df3ec;
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 750;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: 780px;
  color: #fff;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: url("assets/hero-workspace.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(7, 12, 22, 0.94) 0%,
      rgba(7, 12, 22, 0.82) 42%,
      rgba(7, 12, 22, 0.4) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7, 12, 22, 0.24) 0%,
      rgba(7, 12, 22, 0.78) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  gap: 48px;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 176px 0 88px;
}

.hero-content {
  min-width: 0;
}

.hero-profile-card {
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.hero-profile-card img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  object-position: center top;
}

.profile-card-body {
  padding: 18px;
}

.profile-card-body span {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 920;
}

.profile-card-body p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.profile-card-body a {
  display: inline-flex;
  margin-top: 14px;
  color: #8df3ec;
  font-size: 14px;
  font-weight: 900;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 64px;
  line-height: 1.02;
  font-weight: 920;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  color: #fff;
  background: var(--teal);
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 14px;
  max-width: 520px;
  margin: 56px 0 0;
}

.hero-stats div {
  padding-top: 18px;
  border-top: 2px solid rgba(141, 243, 236, 0.62);
}

.hero-stats dt {
  color: #fff;
  font-size: 31px;
  font-weight: 920;
}

.hero-stats dd {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 700;
}

.section,
.intro-section {
  padding: 96px 0;
}

.intro-section {
  background: #fff;
}

.impact-section {
  padding-top: 0;
  background: #fff;
}

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

.impact-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
}

.impact-grid span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--teal);
  font-weight: 920;
}

.impact-grid p {
  margin-top: 9px;
  color: var(--muted);
}

.intro-grid,
.split-grid,
.cv-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.12;
  font-weight: 920;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 880;
}

p {
  margin: 0;
}

.intro-copy {
  display: grid;
  gap: 18px;
  color: #465367;
  font-size: 18px;
}

.band {
  background: var(--panel);
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
}

.timeline-date {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-content p {
  margin-top: 9px;
  color: var(--muted);
}

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: stretch;
  margin-bottom: 22px;
  padding: 24px;
  border-radius: var(--radius);
  background: #101827;
  color: #fff;
}

.project-visual {
  min-height: 360px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 159, 154, 0.24), rgba(240, 100, 73, 0.13)),
    #172339;
}

.screenshot-frame {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: #0b111d;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.screenshot-frame img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: top center;
}

.browser-frame {
  width: min(100%, 480px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

.browser-bar {
  display: flex;
  gap: 8px;
  padding: 16px;
  background: #111827;
}

.browser-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.browser-bar span:nth-child(1) {
  background: var(--coral);
}
.browser-bar span:nth-child(2) {
  background: var(--gold);
}
.browser-bar span:nth-child(3) {
  background: var(--teal);
}

.exam-mock {
  display: grid;
  gap: 18px;
  padding: 28px;
  color: var(--ink);
}

.exam-mock p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.mock-list {
  display: grid;
  gap: 10px;
}

.mock-list span {
  height: 14px;
  border-radius: 99px;
  background: #dbe5ee;
}

.mock-list span:nth-child(1) {
  width: 82%;
}
.mock-list span:nth-child(2) {
  width: 65%;
}
.mock-list span:nth-child(3) {
  width: 74%;
}

.mock-pages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mock-pages span {
  aspect-ratio: 0.72;
  border: 1px solid #d9e1ea;
  border-radius: 6px;
  background: #f8fafc;
}

.project-body {
  padding: 10px 0;
}

.featured-project h3 {
  color: #fff;
  font-size: 34px;
}

.featured-project p:not(.section-kicker) {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.76);
}

.inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.inline-tags li {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #e5f8f6;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: #8df3ec;
  font-weight: 900;
}

.showcase-slider {
  margin: 32px 0 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.slider-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.slider-head h3 {
  font-size: 28px;
}

.slider-controls {
  display: flex;
  gap: 10px;
}

.slider-button {
  min-width: 72px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f8fafc;
  font-weight: 900;
  cursor: pointer;
}

.slider-button:hover,
.slider-button:focus {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 58%);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 8px;
}

.showcase-slide {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #101827;
  scroll-snap-align: start;
}

.showcase-slide img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: top center;
  opacity: 0.9;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.showcase-slide:hover img,
.showcase-slide:focus img {
  transform: scale(1.03);
  opacity: 1;
}

.showcase-slide span {
  position: absolute;
  inset: auto 14px 14px;
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  background: rgba(10, 16, 28, 0.78);
  backdrop-filter: blur(12px);
}

.showcase-slide strong {
  display: block;
  color: #8df3ec;
}

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

.project-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.project-thumb {
  width: 100%;
  height: 190px;
  margin: -6px 0 18px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid #e2e8f0;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #bfd0de;
  box-shadow: var(--shadow);
}

.project-card:last-child {
  grid-column: span 2;
}

.project-type {
  display: inline-block;
  margin-bottom: 13px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card p {
  margin-top: 11px;
  color: var(--muted);
}

.project-card > a,
.mini-links a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}

.split-section {
  background: #fff;
}

.systems-section {
  background: #101827;
  color: #fff;
}

.systems-section h2,
.systems-section h3 {
  color: #fff;
}

.systems-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
}

.systems-section .muted {
  color: rgba(255, 255, 255, 0.72);
}

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

.system-cards article {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.system-cards span {
  display: block;
  color: #8df3ec;
  font-weight: 900;
}

.system-cards p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.muted {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

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

.skill-columns > div {
  padding: 22px;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: var(--panel);
}

.skill-columns h3 {
  font-size: 18px;
}

.skill-columns p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.cv-section {
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

.cv-grid {
  align-items: center;
}

.cv-preview {
  justify-self: end;
  width: min(100%, 390px);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cv-preview img {
  width: 100%;
}

.cv-section .button {
  margin-top: 24px;
}

.contact-section {
  color: #fff;
  background: #101827;
}

.contact-section h2 {
  color: #fff;
}

.contact-section p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-panel {
  display: grid;
  gap: 10px;
}

.contact-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.contact-profile img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
}

.contact-profile strong,
.contact-profile span {
  display: block;
  min-height: auto;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
}

.contact-profile span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.contact-panel a,
.contact-panel span {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.contact-panel a:hover,
.contact-panel a:focus {
  color: #fff;
  border-color: rgba(141, 243, 236, 0.38);
}

.site-footer {
  padding: 26px 0;
  color: #cbd5e1;
  background: #0b111d;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  font-weight: 750;
}

.footer-inner a {
  color: #8df3ec;
}

@media (max-width: 980px) {
  .hero h1 {
    max-width: 680px;
    font-size: 50px;
  }

  .intro-grid,
  .split-grid,
  .cv-grid,
  .contact-grid,
  .systems-grid,
  .featured-project {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-profile-card {
    width: min(100%, 360px);
  }

  .cv-preview {
    justify-self: start;
  }

  .impact-grid,
  .system-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-content {
    order: 2;
  }

  .site-header {
    height: 66px;
    padding: 0 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 66px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 18px 24px;
    background: rgba(17, 24, 39, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero {
    min-height: 720px;
  }

  .hero-inner {
    width: min(100% - 32px, var(--container));
    padding-top: 132px;
    gap: 28px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 310px;
    gap: 12px;
    margin-top: 38px;
  }
  .hero-profile-card {
    order: 1;
  }
  .hero-profile-card img {
    height: 330px;
  }

  .section,
  .intro-section {
    padding: 68px 0;
  }

  h2 {
    font-size: 31px;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px;
  }

  .project-grid,
  .skill-columns {
    grid-template-columns: 1fr;
  }

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

  .slider-track {
    grid-auto-columns: minmax(260px, 88%);
  }

  .showcase-slide,
  .showcase-slide img {
    min-height: 260px;
  }

  .project-card:last-child {
    grid-column: auto;
  }

  .featured-project {
    padding: 16px;
  }

  .featured-project h3 {
    font-size: 26px;
  }

  .project-visual {
    min-height: 280px;
  }

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

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