:root {
  color-scheme: light;
  --ink: #171411;
  --muted: #665d55;
  --line: #ded7cf;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --accent: #cc2908;
  --accent-dark: #9f1f06;
  --steel: #26333a;
  --gold: #b98b44;
  --shadow: 0 22px 70px rgba(23, 20, 17, 0.14);
}

* {
  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;
}

body:has(dialog[open]) {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(150px, 240px) 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(251, 250, 247, 0.88);
  border-bottom: 1px solid rgba(222, 215, 207, 0.75);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  min-width: 0;
}

.brand img {
  width: min(220px, 48vw);
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-links a,
.header-cta,
.primary-action,
.secondary-action {
  text-decoration: none;
}

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

.header-cta,
.primary-action,
.secondary-action,
.lead-form button,
.refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 850;
  cursor: pointer;
}

.header-cta,
.primary-action,
.lead-form button {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 14px 28px rgba(204, 41, 8, 0.22);
}

.header-cta:hover,
.primary-action:hover,
.lead-form button:hover {
  background: var(--accent-dark);
}

.secondary-action,
.refresh-button {
  color: var(--steel);
  background: #efe9e1;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: end;
  min-height: calc(100vh - 78px);
  padding: clamp(42px, 7vw, 90px) clamp(18px, 5vw, 64px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #211f1d;
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.82), rgba(12, 10, 8, 0.28) 52%, rgba(12, 10, 8, 0.52)),
    url("assets/logo.svg") center 36% / min(520px, 72vw) auto no-repeat,
    #211f1d;
}

.hero-image.has-photo {
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 760px;
  padding: 24px 0;
  color: #ffffff;
}

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

.hero .eyebrow {
  color: #ffb29f;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(3.4rem, 9vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lead-panel {
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  color: #ffffff;
  background: rgba(22, 20, 18, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.lead-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.lead-form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 7px;
  color: inherit;
  font-size: 0.88rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(204, 41, 8, 0.22);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-strip div {
  padding: 28px clamp(18px, 5vw, 64px);
  background: #ffffff;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.trust-strip span {
  color: var(--muted);
}

.section-block,
.process-section,
.contact-section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.gallery-status {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--muted);
  background: #ffffff;
}

.gallery-status:empty {
  display: none;
}

.folder-grid,
.photo-grid {
  display: grid;
  gap: 18px;
}

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

.photo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.folder-card,
.photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(23, 20, 17, 0.08);
}

.folder-card {
  display: grid;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.folder-card:hover img,
.photo-card:hover img {
  transform: scale(1.035);
}

.folder-media,
.photo-media {
  overflow: hidden;
  background: #e5ded6;
}

.folder-media {
  aspect-ratio: 4 / 3;
}

.photo-media {
  aspect-ratio: 1 / 1;
}

.folder-media img,
.photo-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.folder-body,
.photo-body {
  padding: 18px;
}

.folder-body p,
.photo-body p,
.folder-description,
.process-copy p,
.process-steps p,
.contact-section p {
  color: var(--muted);
  line-height: 1.55;
}

.folder-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 850;
}

.folder-description {
  max-width: 76ch;
  margin-bottom: 26px;
}

.photo-card {
  cursor: zoom-in;
}

.photo-card button {
  display: grid;
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: inherit;
}

.process-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(26px, 5vw, 70px);
  background: #ffffff;
}

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

.process-steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--paper);
}

.process-steps span {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-weight: 950;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) auto;
  align-items: center;
  gap: 24px;
  color: #ffffff;
  background: var(--steel);
}

.contact-section .eyebrow {
  color: #f3b389;
}

.contact-section p {
  max-width: 68ch;
  color: rgba(255, 255, 255, 0.76);
}

.lightbox {
  width: min(1100px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: #ffffff;
  background: #111111;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #0a0a0a;
}

.lightbox p {
  margin: 0;
  padding: 14px 18px 18px;
  color: rgba(255, 255, 255, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  font-weight: 850;
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .process-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 28px;
  }

  .lead-panel {
    align-self: stretch;
  }

  .folder-grid,
  .photo-grid,
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }

  .header-cta {
    display: none;
  }

  .brand img {
    width: min(190px, 64vw);
  }

  .hero {
    padding: 34px 14px 42px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .trust-strip,
  .folder-grid,
  .photo-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .section-block,
  .process-section,
  .contact-section {
    padding: 52px 14px;
  }

  .section-heading,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
