:root {
  --bg: #0b0b0b;
  --bg-soft: #111111;
  --panel: rgba(20, 20, 20, 0.92);
  --panel-strong: rgba(28, 28, 28, 0.98);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f2f2;
  --text-muted: #b6b6b6;
  --text-soft: #8d8d8d;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 1220px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Oxanium";
  color: var(--text);
  background:
    linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.72)),
    url(/assets/img/bg/bg7.webp) center center / cover fixed no-repeat;
  background-color: #000000;
}

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

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #090909;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.26);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 1rem auto 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.78);
  backdrop-filter: blur(16px);
}

.brand,
.section-heading h2,
.resume-meta h3,
.mini-card h3,
.project-card h3,
.hero-copy h1,
.profile-block h2 {
  font-family: "Oxanium";
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 1.5rem auto 3rem;
}

.hero-panel,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 2rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-label,
.fact-label,
.date-range {
  color: var(--text-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-copy h1 {
  max-width: 12ch;
  margin: 0.6rem 0 1rem;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-summary,
.sidebar-copy,
.resume-copy,
.mini-card p,
.project-card p,
.contact-copy,
.profile-block p {
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-summary {
  max-width: 60ch;
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
}

.hero-actions,
.contact-actions,
.inline-link-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: #f0f0f0;
  color: #0b0b0b;
}

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

.hero-profile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  flex: 1 1 auto;
  min-height: 320px;
  background: linear-gradient(180deg, #2b2b2b, #121212);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 15%, rgba(0, 0, 0, 0.52) 100%);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.profile-block {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-strong);
}

.profile-block h2 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
}

.profile-block p {
  margin: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.sidebar-panel,
.main-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel {
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.section-panel {
  padding: 1.7rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.03em;
}

.stack-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

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

.fact-grid strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.98rem;
  color: var(--text);
}

.resume-card,
.mini-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.resume-card + .resume-card {
  margin-top: 1rem;
}

.resume-card {
  padding: 1.35rem;
}

.resume-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.resume-meta h3 {
  margin: 0;
  font-size: 1.25rem;
}

.role {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.date-range {
  margin: 0.25rem 0 0;
  text-align: right;
}

.resume-copy {
  margin: 1rem 0 0;
}

.media-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.media-strip img,
.project-card img {
  border-radius: 16px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.media-strip img {
  width: 100%;
  height: 180px;
}

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 0.22em;
}

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

.mini-card {
  padding: 1.25rem;
}

.cert-badge {
  width: 100%;
  max-width: 170px;
  height: 96px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.mini-card h3,
.project-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.18rem;
}

.mini-card p {
  margin: 0 0 1rem;
}

.project-list {
  display: grid;
  gap: 1rem;
}

.project-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  align-items: center;
}

.project-card img {
  width: 100%;
  height: 180px;
}

.contact-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    var(--panel);
}

.contact-copy {
  max-width: 60ch;
  margin: 0 0 1.35rem;
}

.copy-email-button {
  min-width: 154px;
}

.copy-email-button.is-copied {
  background: #d9d9d9;
  color: #0b0b0b;
}

.site-footer {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto 2rem;
  padding: 0 0 1rem;
  color: var(--text-soft);
  text-align: center;
}

@media (max-width: 1080px) {
  .hero-panel,
  .content-grid,
  .card-grid,
  .project-card {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 15ch;
  }

  .content-grid {
    gap: 1rem;
  }

  .project-card img {
    height: 220px;
  }
}

@media (max-width: 820px) {
  .site-header {
    border-radius: 24px;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(12, 12, 12, 0.96);
  }

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

  .hero-panel,
  .section-panel,
  .panel {
    padding: 1.25rem;
  }

  .resume-meta {
    flex-direction: column;
  }

  .date-range {
    text-align: left;
  }

  .media-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  .page-shell,
  .site-footer {
    width: min(calc(100% - 1rem), var(--content-width));
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .hero-summary,
  .sidebar-copy,
  .resume-copy,
  .mini-card p,
  .project-card p,
  .contact-copy,
  .profile-block p {
    font-size: 0.98rem;
  }

  .portrait-frame img {
    min-height: 300px;
  }

  .project-card img,
  .media-strip img {
    height: 180px;
  }
}
