:root {
  --bg: #231f20;
  --accent: #d2ac67;
  --text: #ffffff;
  --text-dim: #cfcfcf;
  --surface: #2b2728;
  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .28);
  --gap: 22px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block
}

a {
  color: var(--accent);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 .6em
}

p {
  margin: .4em 0 1em
}

section {
  scroll-margin-top: 90px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sticky floating nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(35, 31, 32, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(210, 172, 103, .25);
}

nav.primary {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
}

.nav-list a:hover {
  background: rgba(210, 172, 103, .1);
  border-color: rgba(210, 172, 103, .35)
}

.nav-list a.active,
[aria-current="page"] {
  background: rgba(210, 172, 103, .18);
  border-color: rgba(210, 172, 103, .5);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(210, 172, 103, .6);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: .05em;
}

.menu-toggle[aria-expanded="true"] {
  background: rgba(210, 172, 103, .2);
}

@media (max-width: 860px) {
  nav.primary {
    justify-content: space-between
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px
  }

  .nav-list {
    position: fixed;
    inset: 64px 12px auto 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(35, 31, 32, .98);
    border: 1px solid rgba(210, 172, 103, .35);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .nav-open .nav-list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list a {
    padding: 12px 14px;
    font-size: 1rem;
  }
}

/* HERO */
.hero {
  border-bottom: 1px solid rgba(210, 172, 103, .25);
  background: var(--bg);
  display: flex;
  justify-content: center;
}

.hero .hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 856px;
}

.hero .caption {
  display: none;
}

/* Sections */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 38px 18px 64px;
}

.section-title {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  margin-bottom: 12px;
  color: var(--accent);
}

.section-note {
  color: var(--text-dim);
  margin-bottom: 22px
}

/* Projects slider */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(210, 172, 103, .25);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.slider-mask {
  mask-image: linear-gradient(to right, transparent 0.1%, var(--surface) 1%, var(--surface) 99%, transparent 99.9%);
}

.slides {
  display: flex;
  transition: transform .45s ease;
}

.slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16/9;
  background: #0f0f10;
  display: grid;
  place-items: stretch;
  margin: 0;
  padding: 1%;
}

.slide img {
  width: 100%;
  height: 75vh;
  object-fit: cover;
  border-radius: calc(var(--radius) * 0.75);
}

.slide figcaption {
  position: absolute;
  left: 60px;
  bottom: 32px;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(210, 172, 103, .35);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.slider-controls {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  padding: 15px;
}

.control {
  background: rgba(0, 0, 0, .45);
  color: #fff;
  border: 1px solid rgba(210, 172, 103, .45);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(4px);
}

.dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(210, 172, 103, .5);
}

.dot.active {
  background: var(--accent)
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.lightbox.open {
  display: flex
}

.lightbox-inner {
  width: min(1200px, 96vw);
  max-height: 92vh;
  position: relative;
  background: #000;
  border: 1px solid rgba(210, 172, 103, .35);
  border-radius: 12px;
  padding: 12px;
}

.lightbox img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  max-height: 89vh;
}

.lightbox .close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border: 1px solid rgba(210, 172, 103, .5);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid rgba(210, 172, 103, .25);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

/* Contact */
#contact {
  padding-bottom: 150px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.contact-item {
  background: var(--surface);
  border: 1px solid rgba(210, 172, 103, .25);
  border-radius: 12px;
  padding: 16px;
}

@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr
  }
}

/* Footer */
footer {
  border-top: 1px solid rgba(210, 172, 103, .25);
  color: var(--text-dim);
  background: #1f1c1d;
}

footer .wrap {
  padding: 26px 18px
}

.small {
  font-size: .92rem;
  color: var(--text-dim)
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto
  }

  .slides {
    transition: none
  }
}