/* Shared across index.html and contact.html. Page-specific rules that only
   ever apply to one page (the hero) live at the bottom, grouped. */

:root {
  --cream: #f7f2ec;
  --ink: #2b2420;
  --bar-h: 56px;
  --rule: rgba(43, 36, 32, .08);
  --muted: rgba(43, 36, 32, .55);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--bar-h);
  background: var(--cream);
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  grid-column: 2; justify-self: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500; font-size: 22px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  padding-left: .28em; /* balance trailing letter-spacing */
  white-space: nowrap;
}
.menu-btn {
  grid-column: 3; justify-self: end;
  width: 32px; height: 32px; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.menu-btn span {
  display: block; height: 1px; background: var(--ink);
  transition: transform .35s ease, opacity .25s ease;
}
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: var(--bar-h) 0 0 0; z-index: 15;
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu a {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 5vw, 44px); color: var(--ink); text-decoration: none;
  letter-spacing: .04em;
}
.menu a:hover { font-style: italic; }

/* ---------- Shared section furniture ---------- */
.eyebrow {
  font-size: 10px; letter-spacing: .35em; text-transform: uppercase;
  font-weight: 400; color: var(--muted);
}
.serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.75;
}
/* A link inside running text: underlined so it is findable without colour,
   darkening rather than changing hue on hover. */
.inline-link {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid rgba(43, 36, 32, .45);
  font-style: italic;
  transition: border-color .25s ease;
}
.inline-link:hover,
.inline-link:focus-visible { border-bottom-color: var(--ink); }

/* Hidden only once the inline head script has proved JS is running, so a
   broken or blocked script leaves content plainly visible. */
.js .reveal > * { opacity: 0; transform: translateY(14px); }
.reveal.in > * {
  opacity: 1; transform: none;
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.in > *:nth-child(2) { transition-delay: .12s; }
.reveal.in > *:nth-child(3) { transition-delay: .24s; }

/* ---------- Meet me ---------- */
.about { padding: clamp(72px, 11vw, 140px) 6vw; }
.about-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; gap: clamp(36px, 6vw, 72px);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: center;
}
.about-photo {
  width: 100%; height: auto; display: block;
  aspect-ratio: 2075 / 2594;      /* reserve the box so nothing reflows */
  object-fit: cover;
  background: rgba(43, 36, 32, .06);
}
.about-eyebrow { margin-bottom: 22px; }
.about-text p { font-size: clamp(19px, 1.5vw, 23px); color: rgba(43, 36, 32, .92); }

/* ---------- Packages ---------- */
.packages {
  padding: clamp(72px, 10vw, 128px) 6vw;
  border-top: 1px solid var(--rule);
}
.packages-head { max-width: 640px; margin: 0 auto clamp(48px, 6vw, 76px); text-align: center; }
.packages-head .eyebrow { margin-bottom: 20px; }
.packages-head h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400; font-size: clamp(30px, 4vw, 44px); letter-spacing: .02em;
  margin-bottom: 18px;
}
.packages-head p { font-size: clamp(18px, 1.4vw, 21px); color: rgba(43, 36, 32, .72); }

.package-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; gap: clamp(32px, 5vw, 56px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.package { display: flex; flex-direction: column; }
/* The camera shots are product photos on white, so they get a white tile of
   their own rather than floating as pale rectangles on the cream. */
.package-shot {
  background: #fff;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 3vw, 38px);
  margin-bottom: 28px;
}
/* The two cameras are different shapes (one square, one landscape), so the
   IMAGE gets the fixed height and object-fit letterboxes it. Sizing the tile
   instead and fitting the image inside it leaves the tiles uneven, because a
   percentage max-height does not resolve against an aspect-ratio height. */
.package-shot img {
  width: 100%; height: clamp(170px, 21vw, 250px);
  object-fit: contain;
  mix-blend-mode: multiply;  /* melts the last of the white edge into the tile */
}
.package h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400; font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 6px;
}
.package .package-kicker { margin-bottom: 18px; }
.package > p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(17px, 1.3vw, 20px); line-height: 1.7;
  color: rgba(43, 36, 32, .82);
}
.package-specs {
  list-style: none; margin-top: 22px;
  border-top: 1px solid var(--rule);
}
.package-specs li {
  font-size: 12px; letter-spacing: .06em;
  color: rgba(43, 36, 32, .66);
  padding: 11px 0; border-bottom: 1px solid var(--rule);
}
.packages-foot {
  max-width: 640px; margin: clamp(48px, 6vw, 72px) auto 0;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(18px, 1.4vw, 21px); line-height: 1.7;
  color: rgba(43, 36, 32, .72);
}

/* ---------- Contact page ---------- */
.page-head {
  padding: calc(var(--bar-h) + clamp(56px, 9vw, 104px)) 6vw clamp(28px, 4vw, 44px);
  text-align: center;
}
.page-head .eyebrow { margin-bottom: 20px; }
.page-head h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400; font-size: clamp(34px, 5vw, 52px); letter-spacing: .02em;
  margin-bottom: 18px;
}
.page-head p {
  max-width: 540px; margin: 0 auto;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(18px, 1.4vw, 21px); line-height: 1.7;
  color: rgba(43, 36, 32, .72);
}

.form-wrap { padding: 0 6vw clamp(72px, 10vw, 128px); }
form.inquiry { max-width: 680px; margin: 0 auto; }
.field-row {
  display: grid; gap: 0 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field { margin-bottom: 26px; }
.field label {
  display: block;
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 9px;
}
.field .req { color: rgba(43, 36, 32, .4); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(43, 36, 32, .25);
  padding: 8px 0 10px;
  border-radius: 0;          /* iOS rounds inputs by default */
  -webkit-appearance: none; appearance: none;
  transition: border-color .25s ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field select {
  /* appearance:none strips the arrow, so draw one back in. */
  background-image: linear-gradient(45deg, transparent 50%, rgba(43,36,32,.5) 50%),
                    linear-gradient(135deg, rgba(43,36,32,.5) 50%, transparent 50%);
  background-position: calc(100% - 11px) 18px, calc(100% - 6px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 26px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-bottom-color: var(--ink);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(43, 36, 32, .3); }
/* Only scold a field the visitor has actually left, never one mid-typing. */
.field input:not(:placeholder-shown):invalid,
.field textarea:not(:placeholder-shown):invalid { border-bottom-color: #b4522f; }

/* Bot trap: a real person never sees or fills this. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit {
  display: inline-block; margin-top: 10px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink); background: transparent;
  border: 1px solid rgba(43, 36, 32, .45);
  padding: 17px 42px; cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.submit:hover:not(:disabled) { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.submit:disabled { opacity: .5; cursor: default; }

.form-note {
  margin-top: 26px;
  font-size: 12px; line-height: 1.7; color: var(--muted);
}
.form-status {
  margin-top: 24px; padding: 18px 20px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px; line-height: 1.6;
  border: 1px solid var(--rule); background: rgba(255, 255, 255, .6);
}
.form-status.error { border-color: rgba(180, 82, 47, .4); }

/* ---------- Films ---------- */
.films {
  padding: clamp(72px, 10vw, 128px) 6vw;
  border-top: 1px solid var(--rule);
}
.films-head { max-width: 640px; margin: 0 auto clamp(48px, 6vw, 76px); text-align: center; }
.films-head .eyebrow { margin-bottom: 20px; }
.films-head h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400; font-size: clamp(30px, 4vw, 44px); letter-spacing: .02em;
  margin-bottom: 18px;
}
.films-head p { font-size: clamp(18px, 1.4vw, 21px); color: rgba(43, 36, 32, .72); }

.film-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; gap: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 44px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.film .eyebrow { margin-bottom: 13px; }

/* The card is an <a> to the real video, so it still works with no JavaScript;
   the script only upgrades the click into an in-page player. */
.film-player {
  position: relative; display: block;
  width: 100%; aspect-ratio: 16 / 9;
  background: #1a1410;
  overflow: hidden;
  text-decoration: none;
}
.film-player img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s ease, opacity .4s ease;
}
.film-player:hover img,
.film-player:focus-visible img { transform: scale(1.035); opacity: .82; }
.film-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.film-play svg {
  width: clamp(48px, 5vw, 62px); height: auto;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .45));
  transition: transform .35s ease;
}
.film-player:hover .film-play svg { transform: scale(1.08); }
/* The swapped-in player keeps the same box so nothing jumps on click. */
.film iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0;
  background: #1a1410;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: 44px 6vw;
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.footer a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.footer a:hover { border-bottom-color: var(--muted); }

/* ---------- Hero (index only) ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: #1a1410;
}
/* Both layers share one box so the swap is pixel-for-pixel. */
.hero-poster,
.hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* The still sits underneath and is never removed — it is the fallback
   for slow connections, blocked autoplay, and reduced-motion. */
.hero-poster { z-index: 0; }
/* The video fades in over it, but only once it is genuinely playing. */
.hero video {
  z-index: 1;
  opacity: 0; transition: opacity .9s ease;
}
.hero.video-ready video { opacity: 1; }
.hero::after { /* soft darkening so the white logo always reads */
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.28) 0%, rgba(0,0,0,.12) 55%, rgba(0,0,0,.35) 100%);
}
.hero-content {
  position: absolute; inset: var(--bar-h) 0 0 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 6vw;
}
.hero-logo {
  width: min(560px, 78vw); height: auto;
  filter: drop-shadow(0 2px 18px rgba(0,0,0,.35));
  opacity: 0; transform: translateY(8px);
  animation: rise 1.6s .3s ease forwards;
}
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3; color: #fff; text-decoration: none;
  font-size: 10px; letter-spacing: .35em; text-transform: uppercase; font-weight: 300;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: .85;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 36px; background: rgba(255,255,255,.8);
  animation: drip 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; margin: 0 auto; }
  .about-text { text-align: center; }
  .package-grid { grid-template-columns: 1fr; }
  .package-shot { max-width: 460px; width: 100%; margin-left: auto; margin-right: auto; }
  .film-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  /* Drop the decorative motion only. The hero film is the portfolio itself,
     so it still plays — hiding it would read as a broken page, not a
     considerate one. */
  .hero-logo { animation: none; opacity: 1; transform: none; }
  .scroll-cue::after { animation: none; }
  .hero video { transition: none; }
  .js .reveal > * { opacity: 1; transform: none; }
  .film-player img,
  .film-play svg { transition: none; }
  .film-player:hover img { transform: none; }
  .film-player:hover .film-play svg { transform: none; }
}

@media (max-width: 480px) {
  :root { --bar-h: 50px; }
  .wordmark { font-size: 16px; letter-spacing: .22em; padding-left: .22em; }
  .submit { width: 100%; text-align: center; }
}
