* {
  box-sizing: border-box;
}

:root {
  --bg: #151413;
  --bg-muted: #1d1c1a;
  --panel: #242321;
  --panel-strong: #2b2926;
  --line: #3d3a35;
  --line-strong: #6f5b21;
  --text: #f3efe7;
  --text-muted: #c9c0b2;
  --accent: #d7b24a;
  --accent-soft: rgba(215, 178, 74, 0.14);
  --teal: #5fb8ad;
  --rose: #e28b83;
  --blue: #83a9d9;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --shell: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

a:hover {
  color: var(--accent);
}

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

p {
  margin-bottom: 0;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: #000;
  color: #fff;
}

.skip-link:focus {
  left: 12px;
}

.shell {
  width: min(var(--shell), calc(100% - 32px));
  margin-inline: auto;
}

.band {
  padding: 72px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.band--muted {
  background: var(--bg-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 17, 16, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-shell {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #181611;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
}

.button:hover {
  color: #181611;
  filter: brightness(1.08);
}

.button--quiet {
  background: transparent;
  color: var(--accent);
}

.button--quiet:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.button--small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.9rem;
}

.hero {
  padding: 78px 0 66px;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero__lead {
  max-width: 720px;
  color: var(--text-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero__actions,
.action-row,
.section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__actions {
  margin-top: 26px;
}

.section-actions {
  margin-top: 26px;
  justify-content: center;
}

.profile-summary {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-summary__image {
  width: 92px;
  height: 92px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  object-fit: cover;
}

.profile-summary__name {
  margin-bottom: 4px;
  color: #fff;
  font-weight: 900;
}

.profile-summary p:last-child {
  color: var(--text-muted);
}

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

.section-head p:last-child {
  color: var(--text-muted);
  font-size: 1.04rem;
}

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

.project-card,
.info-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #050505;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.project-card__media.media--contain img {
  object-fit: contain;
  padding: 10px;
}

.project-card:hover .project-card__media img {
  transform: scale(1.025);
}

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.project-card__body h3 {
  margin-bottom: 0;
}

.project-card__highlight {
  color: #fff;
  font-weight: 900;
}

.project-card__summary,
.info-card p,
.contact-card p,
.project-detail p {
  color: var(--text-muted);
}

.project-card__summary {
  flex: 1;
}

.tag-list,
.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag,
.metric {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: #181716;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.metric {
  border-color: rgba(215, 178, 74, 0.35);
  color: #f4df9d;
}

.info-card {
  padding: 18px;
  border-left: 4px solid var(--blue);
}

.info-card:nth-child(2n) {
  border-left-color: var(--accent);
}

.info-card:nth-child(3n) {
  border-left-color: var(--rose);
}

.info-card h3 {
  margin-bottom: 8px;
  color: var(--accent);
}

.contact-card {
  padding: 26px;
  border-left: 4px solid var(--accent);
}

.contact-card__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--text-muted);
}

.contact-list strong {
  color: #fff;
}

.site-footer {
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer__layout {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-intro {
  padding: 58px 0 42px;
}

.page-intro .section-head {
  margin-bottom: 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--accent);
  font-weight: 900;
}

.project-detail-hero {
  padding: 58px 0;
}

.project-detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
}

.project-detail-hero__media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050505;
  box-shadow: var(--shadow);
}

.project-detail-hero__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-detail-hero__media.media--contain img {
  object-fit: contain;
  padding: 12px;
}

.project-detail__title {
  margin-bottom: 10px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.project-detail__subtitle {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.project-detail__meta {
  margin: 20px 0 24px;
}

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

.detail-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.detail-section h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}

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

.gallery-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #050505;
}

.gallery-item.media--contain img {
  object-fit: contain;
  padding: 10px;
}

.gallery-item figcaption {
  padding: 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.empty-state {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

@media (max-width: 860px) {
  .nav-shell,
  .contact-card__layout,
  .hero__layout,
  .project-detail-hero__grid {
    grid-template-columns: 1fr;
  }

  .nav-shell {
    display: grid;
    padding: 12px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 54px;
  }

  .project-grid,
  .info-grid,
  .project-detail-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 22px, var(--shell));
  }

  .band {
    padding: 48px 0;
  }

  .nav-links a {
    padding-inline: 8px;
    font-size: 0.86rem;
  }

  .profile-summary {
    grid-template-columns: 72px 1fr;
    padding: 14px;
  }

  .profile-summary__image {
    width: 72px;
    height: 72px;
  }

  h1 {
    font-size: 3.25rem;
  }

  .project-card__body,
  .contact-card,
  .detail-section {
    padding: 16px;
  }
}
