:root {
  --ink: #171411;
  --muted: #6f665c;
  --paper: #f4efe7;
  --paper-2: #ebe1d4;
  --line: rgba(23, 20, 17, 0.14);
  --charcoal: #11100e;
  --charcoal-2: #1e1a16;
  --accent: #b9602a;
  --accent-2: #d7a55d;
  --white: #fffaf1;
  --shadow: 0 24px 70px rgba(38, 28, 18, 0.18);
  --radius: 8px;
  --wrap: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(185, 96, 42, 0.16), transparent 28rem),
    linear-gradient(180deg, #f9f4eb 0%, var(--paper) 42%, #eee5d8 100%);
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  content: "";
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(185, 96, 42, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 239, 231, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap,
.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 44px;
  height: 44px;
}

.nav-toggle {
  display: none;
  border: 0;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--white);
  border-radius: 7px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  content: "";
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 9px 12px;
  color: rgba(23, 20, 17, 0.72);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: rgba(185, 96, 42, 0.12);
}

.site-nav a:active,
.btn:active,
.filter-btn:active,
.gallery-thumb:active {
  transform: translateY(1px) scale(0.99);
}

.hero,
.page-hero {
  position: relative;
  min-height: calc(100dvh - 76px);
  color: var(--white);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.page-hero {
  min-height: 56dvh;
}

.hero::before,
.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero::after,
.page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.92), rgba(17, 16, 14, 0.54) 45%, rgba(17, 16, 14, 0.18)),
    linear-gradient(0deg, rgba(17, 16, 14, 0.88), transparent 55%);
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 1;
  width: var(--wrap);
  margin: 0 auto;
  padding: 112px 0 82px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-2);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.4rem, 8vw, 8.8rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2.2rem, 4.8vw, 5rem);
  font-weight: 900;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2.1rem);
}

.lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 250, 241, 0.82);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.btn.primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 18px 40px rgba(185, 96, 42, 0.28);
}

.btn.primary:hover {
  background: #9f5024;
}

.btn.secondary {
  color: var(--white);
  border-color: rgba(255, 250, 241, 0.36);
  background: rgba(255, 250, 241, 0.08);
}

.btn.secondary:hover {
  background: rgba(255, 250, 241, 0.18);
}

.btn.dark {
  color: var(--white);
  background: var(--ink);
}

.section {
  padding: clamp(72px, 9vw, 132px) 0;
}

.section.dark {
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgba(185, 96, 42, 0.2), transparent 28rem),
    var(--charcoal);
}

.section-head {
  width: var(--wrap);
  margin: 0 auto 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 48px;
  align-items: end;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.dark .section-head p {
  color: rgba(255, 250, 241, 0.7);
}

.gallery-list,
.news-grid,
.archive-grid {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.gallery-card {
  min-height: 360px;
  grid-column: span 6;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.gallery-card:nth-child(3n + 1) {
  grid-column: span 7;
}

.gallery-card:nth-child(3n + 2) {
  grid-column: span 5;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 300ms ease;
}

.gallery-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

.gallery-card-body {
  position: absolute;
  inset: auto 0 0;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(17, 16, 14, 0.9), transparent);
}

.gallery-card-body span {
  color: var(--accent-2);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-card-body h3 {
  margin-top: 7px;
}

.split {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.portrait-frame {
  position: relative;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portrait-frame::after {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 46%;
  height: 28%;
  content: "";
  border: 1px solid rgba(185, 96, 42, 0.45);
  border-radius: var(--radius);
}

.copy p,
.copy li {
  max-width: 66ch;
  color: var(--muted);
}

.dark .copy p,
.dark .copy li {
  color: rgba(255, 250, 241, 0.72);
}

.copy h2 + p {
  margin-top: 22px;
}

.copy ul {
  padding-left: 20px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.stat {
  padding: 18px;
  border-top: 2px solid var(--accent);
  color: var(--ink);
  background: rgba(255, 250, 241, 0.62);
}

.stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.filters {
  width: var(--wrap);
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border: 1px solid var(--line);
  padding: 9px 13px;
  background: rgba(255, 250, 241, 0.52);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--white);
  border-color: var(--accent);
  background: var(--accent);
}

.masonry {
  width: var(--wrap);
  margin: 0 auto;
  columns: 3 260px;
  column-gap: 16px;
}

.gallery-thumb {
  width: 100%;
  display: inline-block;
  margin: 0 0 16px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: zoom-in;
}

.gallery-thumb img {
  width: 100%;
  border-radius: var(--radius);
  transition: transform 320ms ease, filter 320ms ease;
}

.gallery-thumb:hover img {
  transform: scale(1.025);
  filter: saturate(1.08);
}

.gallery-caption {
  display: block;
  padding: 9px 2px 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: left;
}

.contact-grid {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
}

.contact-panel,
.form-panel,
.news-card,
.archive-card {
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.72);
  box-shadow: var(--shadow);
}

.contact-panel {
  min-height: 620px;
  display: flex;
  align-items: end;
  padding: 28px;
  color: var(--white);
  background-image: linear-gradient(0deg, rgba(17, 16, 14, 0.82), rgba(17, 16, 14, 0.1)), url("assets/img/misc/tower.webp");
  background-size: cover;
  background-position: center;
}

.contact-panel p {
  margin: 8px 0;
}

.form-panel {
  padding: clamp(26px, 5vw, 58px);
}

.form-grid {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.86);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.news-card,
.archive-card {
  grid-column: span 6;
  overflow: hidden;
}

.news-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.news-card-content,
.archive-card {
  padding: 26px;
}

.meta {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(9, 8, 7, 0.92);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-height: 82dvh;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.lightbox-caption {
  margin-top: 12px;
  color: rgba(255, 250, 241, 0.78);
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  border: 1px solid rgba(255, 250, 241, 0.24);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 250, 241, 0.08);
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.site-footer {
  color: rgba(255, 250, 241, 0.76);
  background: var(--charcoal);
}

.footer-grid {
  width: var(--wrap);
  margin: 0 auto;
  padding: 58px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-grid img {
  width: 78px;
  filter: invert(1);
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a,
.social-links a {
  color: rgba(255, 250, 241, 0.7);
}

.footer-links a:hover,
.social-links a:hover {
  color: var(--white);
}

.footer-bottom {
  width: var(--wrap);
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 250, 241, 0.12);
  color: rgba(255, 250, 241, 0.48);
  font-size: 0.88rem;
}

.empty-state {
  width: var(--wrap);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 250, 241, 0.55);
}

@media (max-width: 860px) {
  :root {
    --wrap: min(100vw - 28px, 1180px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(244, 239, 231, 0.96);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .site-nav {
    display: grid;
  }

  .section-head,
  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card:nth-child(3n + 1),
  .gallery-card:nth-child(3n + 2),
  .news-card,
  .archive-card {
    grid-column: 1 / -1;
  }

  .gallery-card {
    min-height: 300px;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    min-height: 360px;
  }

  .hero-content,
  .page-hero-content {
    padding-bottom: 56px;
  }
}
