/* Stamp Productions — site styles
   Colors match the pitch deck: Ink #0A0A0A, Parchment #F3EAD3, Sand #C7BDA6, Stone #9C9283, Frame #171614 */

:root {
  --ink: #0A0A0A;
  --parchment: #F3EAD3;
  --sand: #C7BDA6;
  --stone: #9C9283;
  --frame: #171614;
  --line: rgba(243, 234, 211, 0.12);
  --pad: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: 'Archivo', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
img { display: block; }

.wrap { max-width: 1500px; margin: 0 auto; }
.label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }

/* Header: logo on top, links spread across underneath */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--line); }
.site-header .logo-row { display: flex; justify-content: center; padding: 28px var(--pad) 6px; }
.site-header .logo-row img { height: 44px; width: auto; }
.site-nav {
  max-width: 1500px; margin: 0 auto; padding: 4px var(--pad) 8px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 16px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}
.site-nav a { height: 44px; display: flex; align-items: center; color: var(--stone); }
.site-nav a[aria-current="page"] { color: var(--parchment); }
.site-nav a[aria-current="page"] span { padding-bottom: 4px; border-bottom: 1px solid var(--parchment); }

/* Home banner slideshow */
.hero {
  position: relative; overflow: hidden; background: var(--frame);
  height: clamp(320px, 39vw, 575px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 40px 72px;
}
.hero-slide {
  position: absolute; top: 0; height: 100%; object-fit: cover;
  filter: brightness(0.6); opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero h1 {
  position: relative; margin: 0; max-width: 16ch;
  font-size: clamp(37px, 6.3vw, 94px); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em;
  text-transform: uppercase; text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

/* Statement */
.statement { padding: 80px var(--pad) 72px; }
.statement .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.statement p { margin: 0; flex: 1 1 520px; max-width: 26ch; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -0.02em; }
.statement .links { flex: 0 1 320px; display: flex; flex-direction: column; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.statement .links a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* Section heads */
.section { padding: 0 var(--pad) 96px; }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line);
}
.section-head h2 { margin: 0; font-size: clamp(40px, 5.5vw, 80px); font-weight: 400; line-height: 0.95; letter-spacing: -0.04em; text-transform: uppercase; }
.section-head h2.small { font-size: clamp(36px, 4.6vw, 64px); }

/* Stills grid + preview */
.stills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.still-btn { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; }
.still-btn img { width: 100%; height: auto; background: var(--frame); transition: opacity .25s ease; }
.still-btn:hover img { opacity: .8; }
.still-btn:focus-visible { outline: 2px solid var(--parchment); outline-offset: 3px; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 72px clamp(16px, 7vw, 96px); }
.lightbox.is-open { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: rgba(10,10,10,0.94); cursor: zoom-out; }
.lightbox img { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 24px 80px rgba(0,0,0,0.6); }
.lb-btn {
  position: absolute; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid rgba(243,234,211,0.25); background: rgba(23,22,20,0.8); color: var(--parchment); cursor: pointer;
}
.lb-btn:hover { background: rgba(243,234,211,0.14); }
.lb-close { top: 16px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: 0.14em; color: var(--stone); }

/* Page titles (Services, Contact) */
.page-title { padding: 72px var(--pad) 0; }
.page-title .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.page-title h1 { margin: 0; font-size: clamp(48px, 6.5vw, 96px); font-weight: 400; line-height: 0.92; letter-spacing: -0.04em; text-transform: uppercase; }
.page-title p { margin: 0; max-width: 44ch; font-size: 16px; line-height: 1.5; color: var(--stone); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 24px; }
.card { border: 1px solid rgba(243,234,211,0.18); padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 24px; }
.card.featured { background: var(--frame); border-color: rgba(243,234,211,0.4); }
.card-top { display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-size: 36px; font-weight: 400; line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; }
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--sand); }
.card ul { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.4; }
.card li { padding: 13px 0; border-top: 1px solid var(--line); }
.card li:last-child { border-bottom: 1px solid var(--line); }

.btn {
  height: 48px; padding: 0 28px; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--parchment); color: var(--ink); border: 0;
  font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.card .btn { margin-top: auto; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.cta-row p { margin: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.02em; max-width: 30ch; }

/* Contact */
.contact { padding: 48px var(--pad) 96px; }
.contact .wrap { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.contact-info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.contact-info > p { margin: 0; max-width: 22ch; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -0.025em; }
.info-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; }
.info-row:last-child { border-bottom: 1px solid var(--line); }
.info-row .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); padding-top: 3px; }

.contact-form { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.field-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(243,234,211,0.35); border-radius: 0;
  padding: 0; color: var(--parchment); font-family: inherit; font-size: 16px; outline: none;
}
.field input, .field select { height: 48px; }
.field select { background: var(--ink); }
.field textarea { padding: 12px 0; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--parchment); }
input::placeholder, textarea::placeholder { color: #7A7062; }
.contact-form .btn { align-self: flex-start; height: 52px; padding: 0 32px; }
.contact-form .btn[disabled] { opacity: .6; cursor: default; }
.form-status { margin: 0; font-size: 14px; line-height: 1.5; color: var(--sand); min-height: 1.5em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 80px var(--pad) 40px; }
.site-footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.site-footer .logo { width: min(324px, 63%); height: auto; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-base { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(243,234,211,0.14); font-size: 12px; color: var(--stone); }

@media (max-width: 640px) {
  :root { --pad: 20px; }
  .hero { padding: 32px 24px; }
  .stills-grid { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  html { scroll-behavior: auto; }
}
