/* DMTR — v2, modern dark sage design system */

:root {
  --bg: #0F1A14;
  --bg-panel: #16241C;
  --bg-panel-2: #1C2C22;
  --fg: #ECEFE8;
  --fg-dim: #8FA091;
  --accent: #A9C6A3;
  --accent-dim: #6E8A73;
  --hairline: rgba(169, 198, 163, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
}

::selection { background: var(--accent); color: #0F1A14; }

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

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

.display {
  font-family: 'Bricolage Grotesque', sans-serif;
}

/* overlay nav, sits on every page */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: linear-gradient(to bottom, rgba(10,16,12,0.65), transparent);
}

.nav-overlay .logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--fg);
}

.nav-overlay .logo span { color: var(--accent); }

.nav-overlay nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.nav-overlay nav a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 239, 232, 0.72);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-overlay nav a:hover { color: var(--fg); }

.nav-overlay nav a.active {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

@media (max-width: 640px) {
  .nav-overlay { padding: 18px 18px; }
  .nav-overlay nav { gap: 16px; }
  .nav-overlay nav a { font-size: 0.62rem; letter-spacing: 0.1em; }
}

/* hero splash (homepage only) */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
  filter: saturate(0.92) brightness(0.82);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,16,12,0.92) 0%, rgba(10,16,12,0.35) 42%, rgba(10,16,12,0.15) 70%),
    linear-gradient(to right, rgba(10,16,12,0.35), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 32px 72px;
  max-width: 1100px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.hero p {
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(236, 239, 232, 0.82);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(236, 239, 232, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-cue .line {
  width: 1px;
  height: 26px;
  background: rgba(236, 239, 232, 0.4);
  animation: scrollpulse 1.8s ease-in-out infinite;
}

@keyframes scrollpulse {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

@media (max-width: 640px) {
  .hero-content { padding: 0 20px 56px; }
}

/* fullscreen swipe gallery */
.fs-gallery {
  position: relative;
  height: 88svh;
  min-height: 460px;
  background: var(--bg-panel);
}

.fs-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.fs-track::-webkit-scrollbar { display: none; }

.fs-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 48px 90px;
}

.fs-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

.fs-slide a.fs-linkwrap {
  display: block;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fs-slide .fs-caption {
  position: absolute;
  left: 32px;
  bottom: 20px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236, 239, 232, 0.55);
}

@media (max-width: 780px) {
  .fs-slide { padding: 24px 20px; }
}

.fs-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(15, 26, 20, 0.55);
  border: 1px solid var(--hairline);
  color: var(--fg);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fs-nav-btn:hover {
  background: rgba(169, 198, 163, 0.18);
  border-color: var(--accent);
}

.fs-prev { left: 20px; }
.fs-next { right: 20px; }

@media (max-width: 640px) {
  .fs-nav-btn { width: 38px; height: 38px; font-size: 0.95rem; }
  .fs-prev { left: 8px; }
  .fs-next { right: 8px; }
}

.fs-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.fs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(236, 239, 232, 0.3);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fs-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.fs-counter {
  position: absolute;
  top: 20px;
  right: 28px;
  z-index: 5;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(236, 239, 232, 0.6);
}

/* section wrapper for content below hero/gallery */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 32px;
}

.section.tight { padding-top: 64px; padding-bottom: 64px; }

@media (max-width: 640px) {
  .section { padding: 64px 20px; }
  .section.tight { padding-top: 40px; padding-bottom: 40px; }
}

.statement {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 4.4vw, 2.7rem);
  line-height: 1.28;
  max-width: 880px;
  letter-spacing: -0.01em;
}

.statement .accent { color: var(--accent); }

/* category cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 64px;
}

@media (max-width: 900px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .category-grid { grid-template-columns: 1fr; }
}

.category-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-panel);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.72);
  transition: filter 0.5s ease, transform 0.7s ease;
}

.category-card:hover img {
  filter: saturate(1) brightness(0.85);
  transform: scale(1.045);
}

.category-card .cc-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 24px;
  background: linear-gradient(to top, rgba(10,16,12,0.9), transparent);
}

.category-card .cc-label .cc-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.category-card .cc-label .cc-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* page header for gallery pages */
.page-header {
  padding: 130px 32px 28px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.page-header h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 0;
  letter-spacing: -0.01em;
}

.page-header .page-sub {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

@media (max-width: 640px) {
  .page-header { padding: 96px 20px 20px; }
}

/* about page */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-portrait {
  border-radius: 4px;
  aspect-ratio: 4 / 5;
  background: var(--bg-panel);
  overflow: hidden;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
}

.about-text p {
  line-height: 1.8;
  font-size: 1rem;
  color: rgba(236, 239, 232, 0.9);
  max-width: 620px;
}

.about-text p.lede {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--fg);
}

.about-text .accent { color: var(--accent); }

/* footer */
footer.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 64px;
  color: var(--fg-dim);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
  margin-top: 40px;
}

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