:root {
  --black: #050505;
  --black-soft: #0b0b0b;
  --panel: #111111;
  --panel-light: #171717;
  --gold: #d6ad52;
  --gold-bright: #f1d486;
  --gold-soft: rgba(214, 173, 82, 0.16);
  --white: #f8f6ef;
  --muted: #c7c0b0;
  --line: rgba(241, 212, 134, 0.2);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
}

.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;
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(5, 5, 5, 0.76);
  border-bottom: 1px solid rgba(241, 212, 134, 0.12);
  backdrop-filter: blur(18px);
  transition: padding 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(5, 5, 5, 0.93);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--white);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-bright);
  background: rgba(214, 173, 82, 0.08);
  font-size: 0.84rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--gold-bright);
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 128px 0 88px;
  border-bottom: 1px solid var(--line);
}

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

.hero-media {
  background-image: url("assets/hero-bg.png");
  background-size: cover;
  background-position: center;
  opacity: 0.62;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.97) 0%, rgba(5, 5, 5, 0.78) 42%, rgba(5, 5, 5, 0.35) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.98), rgba(5, 5, 5, 0.2) 42%, rgba(5, 5, 5, 0.86));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}

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

.hero-portrait {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 390px);
  aspect-ratio: 1;
  border: 1px solid rgba(241, 212, 134, 0.58);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(241, 212, 134, 0.22), rgba(255, 255, 255, 0.03)),
    rgba(5, 5, 5, 0.72);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.58),
    0 0 0 12px rgba(214, 173, 82, 0.06);
  overflow: hidden;
}

.hero-portrait::before {
  position: absolute;
  inset: 12px;
  z-index: 1;
  content: "";
  border: 1px solid rgba(241, 212, 134, 0.34);
  border-radius: inherit;
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.02);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  color: var(--white);
  font-size: clamp(3.4rem, 4rem, 5.2rem);
  line-height: 1;
}

h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 2.35rem, 3rem);
  line-height: 1.12;
}

h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.35;
}

.hero-subtitle {
  max-width: 730px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

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

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.btn-primary {
  color: #171105;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 16px 36px rgba(214, 173, 82, 0.22);
}

.btn-secondary {
  color: var(--gold-bright);
  border-color: rgba(241, 212, 134, 0.45);
  background: rgba(214, 173, 82, 0.08);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

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

.hero-stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.74);
  box-shadow: var(--shadow);
}

.hero-stats strong {
  display: block;
  color: var(--gold-bright);
  font-size: 1.7rem;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.intro {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr 0.85fr;
  gap: 34px;
  padding: 96px 0;
}

.section-heading {
  max-width: 540px;
}

.intro-copy p,
.approach p,
.service-grid p,
.skill-row p,
.timeline-content p,
.timeline-content li,
.project-list p,
.education-list p,
.language-box p,
.contact p,
.site-footer {
  color: var(--muted);
}

.intro-copy p:first-child {
  margin-top: 0;
}

.approach {
  align-self: start;
  padding: 24px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(135deg, rgba(214, 173, 82, 0.12), rgba(255, 255, 255, 0.03));
}

.approach span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.band {
  padding: 96px 0;
  background:
    linear-gradient(180deg, rgba(214, 173, 82, 0.08), transparent 42%),
    var(--black-soft);
  border-top: 1px solid rgba(241, 212, 134, 0.12);
  border-bottom: 1px solid rgba(241, 212, 134, 0.12);
}

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

.service-grid article,
.project-list article,
.education-list article,
.language-box {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(214, 173, 82, 0.055));
}

.skills {
  padding: 96px 0;
}

.skill-table {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.skill-row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.skill-row h3,
.skill-row p {
  margin: 0;
}

.timeline {
  position: relative;
  margin-top: 42px;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 196px;
  width: 1px;
  content: "";
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 72px;
  padding: 0 0 34px;
}

.timeline-item::before {
  position: absolute;
  top: 5px;
  left: 189px;
  width: 15px;
  height: 15px;
  content: "";
  border: 2px solid var(--gold-bright);
  border-radius: 50%;
  background: var(--black-soft);
  box-shadow: 0 0 0 8px rgba(214, 173, 82, 0.12);
}

.timeline-date {
  color: var(--gold-bright);
  font-size: 0.88rem;
  font-weight: 800;
}

.timeline-content {
  padding-bottom: 12px;
}

.timeline-content .meta {
  margin: -4px 0 12px;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 700;
}

.timeline-content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.projects {
  padding: 96px 0;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.education-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.education-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.language-box {
  margin-top: 32px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 86px 0;
}

.contact h2 {
  max-width: 820px;
}

.contact p {
  max-width: 650px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: #020202;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--gold-bright);
  font-weight: 800;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 78px 20px auto 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .intro,
  .education-layout,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .hero-portrait {
    justify-self: start;
    width: min(320px, 72vw);
    order: -1;
  }

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

  .contact-actions {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .section-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    padding: 12px 14px;
  }

  .hero {
    min-height: auto;
    padding: 114px 0 56px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-portrait {
    width: min(250px, 76vw);
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .intro,
  .band,
  .skills,
  .projects,
  .contact {
    padding-top: 64px;
    padding-bottom: 64px;
  }

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

  .skill-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline::before,
  .timeline-item::before {
    display: none;
  }

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

  .timeline-date {
    padding-left: 14px;
    border-left: 3px solid var(--gold);
  }

  .site-footer {
    flex-direction: column;
  }
}

@media print {
  .site-header,
  .hero-media,
  .hero-overlay,
  .hero-actions,
  .contact-actions,
  .site-footer {
    display: none;
  }

  body {
    color: #111111;
    background: #ffffff;
  }

  .hero,
  .band,
  .intro,
  .skills,
  .projects,
  .contact {
    min-height: auto;
    padding: 24px 0;
    color: #111111;
    background: #ffffff;
    border: 0;
  }

  h1,
  h2,
  h3,
  .eyebrow,
  .timeline-date,
  .timeline-content .meta {
    color: #111111;
  }

  p,
  li,
  .intro-copy p,
  .timeline-content li,
  .contact p {
    color: #222222;
  }

  .service-grid article,
  .project-list article,
  .education-list article,
  .language-box,
  .approach,
  .hero-stats div {
    border-color: #dddddd;
    background: #ffffff;
    box-shadow: none;
  }
}
