:root {
  color-scheme: dark;
  --bg: #10100f;
  --bg-soft: #171716;
  --text: #f1eee8;
  --muted: #a5a099;
  --line: #2b2a27;
  --accent: #d8b15a;
  --accent-strong: #f0c86f;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", Arial, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(16, 16, 15, 0.9), rgba(16, 16, 15, 0));
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: background 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-brand-visible {
  background: rgba(16, 16, 15, 0.70);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  visibility: hidden;
}

.site-header.is-brand-visible .brand {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  color: rgba(241, 238, 232, 0.78);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 160ms ease;
}

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

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(20px, 5vw, 72px) 84px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 16, 15, 0.88), rgba(16, 16, 15, 0.24) 58%, rgba(16, 16, 15, 0.62)),
    linear-gradient(0deg, rgba(16, 16, 15, 0.88), rgba(16, 16, 15, 0.05) 44%, rgba(16, 16, 15, 0.32));
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1080px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(68px, 14vw, 180px);
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(241, 238, 232, 0.78);
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 500;
}

.intro,
.portfolio-section {
  padding: clamp(64px, 9vw, 128px) clamp(20px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 112px);
  border-bottom: 1px solid var(--line);
}

.intro-heading h2,
.portfolio-header h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-content: start;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
}

.intro-text p {
  margin: 0;
}

.portfolio-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.gallery-filters[hidden] {
  display: none;
}

.gallery-filter {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(241, 238, 232, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.gallery-filter:hover,
.gallery-filter:focus-visible,
.gallery-filter.is-active {
  background: rgba(216, 177, 90, 0.16);
  color: var(--accent-strong);
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  min-height: 240px;
  background: transparent;
}

.portfolio-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
}

.portfolio-gallery-item[hidden] {
  display: none;
}

.portfolio-gallery-clone {
  position: fixed;
  z-index: 15;
  display: block;
  overflow: hidden;
  background: var(--bg-soft);
  pointer-events: none;
}

.portfolio-gallery-clone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
  transform: scale(1.01);
  transition: transform 420ms ease, filter 420ms ease, opacity 420ms ease;
}

.portfolio-gallery-item:hover img,
.portfolio-gallery-item:focus-visible img {
  filter: saturate(1.05) contrast(1.08);
  transform: scale(1.08);
}

.gallery-load-trigger {
  width: 100%;
  height: 1px;
}

.fancybox__container {
  --fancybox-bg: rgba(7, 7, 6, 0.98);
  --fancybox-color: var(--text);
  --fancybox-accent-color: var(--accent-strong);
}

.fancybox__toolbar .f-button,
.fancybox__nav .f-button {
  background: rgba(16, 16, 15, 0.72);
  color: var(--text);
}

.fancybox__toolbar .f-button:hover,
.fancybox__nav .f-button:hover {
  color: var(--accent-strong);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px clamp(20px, 5vw, 72px);
  color: #817c74;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-strong);
}

.contact-block {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.social-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 980px) {
  .intro,
  .intro-text {
    grid-template-columns: 1fr;
  }

  .portfolio-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    padding-top: 18px;
  }

  .site-nav {
    gap: 12px;
    font-size: 11px;
  }

  .hero {
    min-height: 86svh;
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: clamp(58px, 18vw, 96px);
  }

  .portfolio-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .site-nav a:nth-child(1) {
    display: none;
  }

  .portfolio-gallery {
    grid-template-columns: 1fr;
  }
}
