:root {
  --ink: #f6f1e8;
  --muted: #bbb1a4;
  --paper: #11100e;
  --panel: #1b1916;
  --line: rgba(246, 241, 232, 0.14);
  --accent: #c7a46a;
  --accent-2: #84917f;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 54px);
  background: linear-gradient(to bottom, rgba(17, 16, 14, 0.9), rgba(17, 16, 14, 0.18));
  backdrop-filter: blur(18px);
  transition: padding 220ms ease, border-color 220ms ease, background 220ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(17, 16, 14, 0.76);
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 56px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(199, 164, 106, 0.26);
  background: #070706;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: rgba(246, 241, 232, 0.78);
  font-size: 0.94rem;
}

nav a {
  position: relative;
  z-index: 1;
  padding: 8px 0;
  transition: color 180ms ease;
}

nav a.is-active,
nav a:hover {
  color: var(--ink);
}

.nav-indicator {
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: 2px;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: translateX(var(--nav-x, 0)) scaleX(var(--nav-w, 1));
  transform-origin: left center;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

nav.has-indicator .nav-indicator {
  opacity: 1;
}

.nav-cta {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 42vh clamp(18px, 5vw, 68px) 72px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.92), rgba(17, 16, 14, 0.2) 56%, rgba(17, 16, 14, 0.88)),
    linear-gradient(0deg, var(--paper), rgba(17, 16, 14, 0.12) 42%);
}

.hero-media {
  position: absolute;
  inset: 0;
  transform-origin: center;
  background-size: cover;
  background-position: center;
}

.hero-a {
  background-image:
    linear-gradient(135deg, rgba(18, 17, 15, 0.15), rgba(18, 17, 15, 0.52)),
    url("/assets/placeholders/hero-tetons.jpg");
}

.hero-b {
  opacity: 0.42;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(120deg, transparent 0 40%, rgba(255, 255, 255, 0.22) 40% 41%, transparent 41% 100%),
    linear-gradient(45deg, transparent 0 65%, rgba(199, 164, 106, 0.2) 65% 66%, transparent 66% 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  color: var(--accent);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 13vw, 9rem);
  line-height: 0.9;
  font-weight: 400;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 400;
}

h3 {
  font-size: 1.2rem;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.rich-text,
.story-list p,
.service p,
.faq p {
  color: var(--muted);
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #17120b;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
}

.work {
  position: relative;
  overflow: hidden;
  border: 0;
  color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.72)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.3)),
    var(--image),
    linear-gradient(135deg, var(--tone), #121212);
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
  isolation: isolate;
}

.work img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06);
  transform: scale(1.01);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1), filter 650ms ease;
}

.work::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.58)),
    linear-gradient(145deg, rgba(199, 164, 106, 0.1), rgba(0, 0, 0, 0.18));
  transition: background 250ms ease;
}

.work:hover img {
  transform: scale(1.09);
  filter: saturate(0.9) contrast(1.09) brightness(1.04);
}

.work::before {
  content: attr(data-category);
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 16px;
  color: rgba(246, 241, 232, 0.7);
  font-size: 0.82rem;
}

.work span {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.work em {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 14px;
  color: rgba(246, 241, 232, 0.62);
  font-style: normal;
  font-size: 0.78rem;
}

.work.tall {
  grid-row: span 2;
}

.work.wide {
  grid-column: span 2;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 88px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.brand-showcase {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 40%, rgba(199, 164, 106, 0.08), transparent 32%),
    #090908;
}

.brand-showcase img {
  width: min(520px, 82vw);
  height: auto;
  display: block;
}

.service,
.story-list article {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
}

.service strong {
  display: block;
  margin: 26px 0 8px;
  color: var(--accent);
  font-size: 1.55rem;
}

.service span {
  color: rgba(246, 241, 232, 0.72);
  font-size: 0.92rem;
}

.story-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.story-list span {
  color: var(--accent-2);
  font-weight: 800;
}

.upload-panel,
.inquiry {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.social-card {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 18px;
  align-items: center;
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.social-card span {
  display: block;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.social-card strong {
  display: block;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 400;
}

.social-card a {
  color: var(--muted);
  border-bottom: 1px solid rgba(199, 164, 106, 0.5);
}

.qr-placeholder {
  display: grid;
  place-items: center;
  width: 116px;
  aspect-ratio: 1;
  border: 1px solid rgba(199, 164, 106, 0.4);
  background:
    linear-gradient(90deg, rgba(199, 164, 106, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(199, 164, 106, 0.18) 1px, transparent 1px),
    rgba(0, 0, 0, 0.18);
  background-size: 12px 12px;
  color: rgba(246, 241, 232, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form.compact {
  grid-template-columns: 1fr 0.55fr 1fr auto;
  align-items: end;
}

label {
  display: grid;
  gap: 8px;
  color: rgba(246, 241, 232, 0.86);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

.full,
.form-note {
  grid-column: 1 / -1;
}

.form-note {
  margin: 0;
  min-height: 24px;
  color: var(--accent);
}

.uploaded-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.uploaded-card {
  min-height: 220px;
  display: grid;
  align-items: end;
  padding: 16px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div {
  display: grid;
  gap: 8px;
  text-align: right;
}

.site-footer small {
  max-width: 520px;
  color: rgba(187, 177, 164, 0.7);
}

dialog {
  width: min(900px, calc(100% - 28px));
  border: 1px solid var(--line);
  padding: 0;
  background: #11100e;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox-art {
  min-height: 520px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.2)),
    var(--image),
    linear-gradient(135deg, var(--tone, #4c5a51), #111);
  background-size: cover;
  background-position: center;
}

dialog p {
  padding: 18px 22px;
  color: var(--muted);
}

.close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.32);
  color: var(--ink);
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .site-header {
    position: fixed;
    display: grid;
    gap: 14px;
    padding: 14px 18px 12px;
  }

  .brand {
    width: 62px;
    height: 48px;
    padding: 3px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding: 42vh 18px 52px;
  }

  h1 {
    font-size: clamp(3.4rem, 19vw, 5.8rem);
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .gallery,
  .service-grid,
  .story-list,
  .split,
  .form,
  .form.compact,
  .uploaded-preview,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .brand-showcase {
    min-height: 260px;
  }

  .social-card {
    grid-template-columns: 1fr;
  }

  .work,
  .work.tall,
  .work.wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
  }

  .site-footer {
    display: grid;
  }

  .site-footer div {
    text-align: left;
  }
}
