/* =========================================================
   Lodger Films — Contact
   Two clear paths (a quick-message sheet + a dark "Start a
   Project" invitation), then the Visit block: address beside
   a framed Google Map. Tokens + header/footer come from
   landing.css.
   ========================================================= */

/* Netlify honeypot — off-screen but present in the DOM so FormData(form) still
   includes it; hidden from layout, assistive tech (aria-hidden) and autofill. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-body { background: var(--paper); }
.contact-headwrap { padding: var(--frame-pad) var(--frame-pad) 0; }
.contact-headwrap .nav .is-active { color: var(--ink); }
.contact-shell { padding: 0 var(--frame-pad); }
.contact-inner { max-width: var(--maxw); margin: 0 auto; }

/* ---------- intro (compact, not a hero) ---------- */
.contact-intro {
  padding: clamp(2.75rem, 6vw, 5.5rem) 0 clamp(2rem, 4vw, 3.25rem);
}
.contact-intro .eyebrow { margin-bottom: 1rem; }
.ci-head {
  display: block;
}
.contact-intro .ci-title {
  font-weight: 300;
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
  white-space: nowrap;
}
.contact-intro .ci-lead {
  margin: 1.6rem 0 0;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  text-align: left;
}

/* ======================================================
   TWO PATHS — light message sheet + dark Start-a-Project
   ====================================================== */
.paths {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

/* shared head for each path */
.path-head { display: flex; align-items: baseline; gap: 0.85rem; margin: 0 0 0.85rem; }
.path-num {
  font-size: 13px; font-variant-numeric: tabular-nums;
  color: var(--muted-2); letter-spacing: 0.02em;
}
.path-kicker {
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted-2); white-space: nowrap;
}

/* ---- the light message sheet ---- */
.path-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(1.75rem, 3vw, 2.85rem);
  display: flex;
  flex-direction: column;
}
.path-form h2 {
  font-weight: 300; letter-spacing: -0.025em;
  font-size: clamp(26px, 3vw, 36px); line-height: 1.05;
  margin: 0.4rem 0 0;
}
.path-form .pf-sub {
  font-size: 14.5px; line-height: 1.6; color: var(--muted);
  margin: 0.9rem 0 0; max-width: 40ch;
}

.quick-form { margin-top: clamp(1.75rem, 3vw, 2.4rem); display: flex; flex-direction: column; }
.qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 2.5vw, 2rem); }
.qf-field { display: flex; flex-direction: column; }
.qf-field + .qf-field { margin-top: 0; }
.qf-row + .qf-field { margin-top: 1.6rem; }
.qf-field + .qf-field:not(.qf-row .qf-field) { margin-top: 1.6rem; }
.quick-form > .qf-field + .qf-field { margin-top: 1.6rem; }
.qf-field label {
  font-size: 13px; letter-spacing: 0.02em; color: var(--muted);
  margin-bottom: 0.55rem;
}
.qf-field label .req { color: var(--ink); }
.qf-field input,
.qf-field textarea {
  font-family: inherit; font-size: 18px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 0.55rem 0; width: 100%; transition: border-color 0.3s ease; resize: none;
}
.qf-field input::placeholder, .qf-field textarea::placeholder { color: var(--muted-2); }
.qf-field input:focus, .qf-field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.qf-field textarea { line-height: 1.55; min-height: 4.75rem; }

.qf-foot {
  margin-top: clamp(1.75rem, 3vw, 2.4rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap;
}
.qf-foot .note { font-size: 12.5px; color: var(--muted-2); margin: 0; max-width: 30ch; line-height: 1.5; }
.qf-send {
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  padding: 0.95rem 1.75rem; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 0.7rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease;
}
.qf-send:hover { transform: translateY(-2px); background: #1c1c1f; box-shadow: 0 16px 38px rgba(0,0,0,0.26); }
.qf-send .arr { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.14); display: grid; place-items: center; transition: transform 0.35s var(--ease); }
.qf-send .arr svg { width: 12px; height: 12px; }
.qf-send:hover .arr { transform: translateX(3px); }

/* quick-form success state */
.quick-success { display: none; margin-top: clamp(1.75rem, 3vw, 2.4rem); }
.quick-success.show { display: block; }
.quick-form.hide { display: none; }
.qs-mark { width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.qs-mark svg { width: 22px; height: 22px; }
.quick-success h3 { font-weight: 300; letter-spacing: -0.02em; font-size: clamp(24px, 3vw, 32px); margin: 1.5rem 0 0; line-height: 1.1; }
.quick-success p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0.9rem 0 0; max-width: 38ch; }

/* quick-form error state — mirrors the success slot (same toggle, mark sizing,
   tokens and clamp() scale); the form stays visible so nothing typed is lost */
.quick-error { display: none; margin-top: clamp(1.75rem, 3vw, 2.4rem); }
.quick-error.show { display: block; }
.qe-mark { width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.qe-mark svg { width: 22px; height: 22px; }
.quick-error h3 { font-weight: 300; letter-spacing: -0.02em; font-size: clamp(24px, 3vw, 32px); margin: 1.5rem 0 0; line-height: 1.1; }
.quick-error p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0.9rem 0 0; max-width: 42ch; }
.qe-actions { margin: 1.5rem 0 0; display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap; }
.qe-retry {
  background: var(--ink); color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  padding: 0.7rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.qe-retry:hover { transform: translateY(-2px); background: #1c1c1f; }
.qe-or { font-size: 14px; color: var(--muted); }
.qe-or a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color 0.25s ease; }
.qe-or a:hover { border-bottom-color: var(--ink); }

/* ---- the dark Start-a-Project invitation ---- */
.path-start {
  position: relative;
  background: #0b0b0c;
  color: #fff;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.85rem);
  text-decoration: none;
}
.path-start .ps-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 80% at 80% -10%, #2a2a2e 0%, #161618 48%, #0b0b0c 80%);
}
.path-start > * { position: relative; z-index: 1; }
.path-start .path-kicker { color: rgba(255,255,255,0.5); }
.path-start .path-num { color: rgba(255,255,255,0.4); }
.path-start h2 {
  font-weight: 300; letter-spacing: -0.025em;
  font-size: clamp(26px, 3vw, 36px); line-height: 1.05;
  margin: 0.4rem 0 0; max-width: 14ch;
}
.path-start h2 .accent {
  font-weight: 700; letter-spacing: -0.01em;
  background: var(--silver); background-size: 250% 100%; background-position: 120% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: silver-sweep 5s linear infinite;
}
.path-start .ps-sub {
  font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.65);
  margin: 0.9rem 0 0; max-width: 34ch;
}
.ps-steps { margin: clamp(1.75rem, 3vw, 2.4rem) 0 0; padding: 0; list-style: none; counter-reset: ps; }
.ps-steps li {
  position: relative; padding: 0.85rem 0 0.85rem 2.4rem;
  border-top: 1px solid rgba(255,255,255,0.12); counter-increment: ps;
  font-size: 14px; color: rgba(255,255,255,0.82);
}
.ps-steps li:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.ps-steps li::before {
  content: counter(ps, decimal-leading-zero);
  position: absolute; left: 0; top: 0.85rem;
  font-size: 12.5px; color: rgba(255,255,255,0.4); font-variant-numeric: tabular-nums;
}
.ps-cta {
  margin-top: auto; padding-top: clamp(1.75rem, 3vw, 2.4rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.ps-cta .ps-cta-label { font-size: 15px; font-weight: 500; letter-spacing: 0.01em; }
.ps-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: grid; place-items: center; flex: 0 0 auto;
  transition: transform 0.4s var(--ease);
}
.ps-arrow svg { width: 16px; height: 16px; }
.path-start:hover .ps-arrow { transform: translateX(4px); }

/* ======================================================
   VISIT — address beside a framed Google Map
   ====================================================== */
.visit {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}
.visit-info { display: flex; flex-direction: column; }
.visit-info .path-kicker { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.visit-block + .visit-block { margin-top: clamp(1.5rem, 2.5vw, 2.25rem); padding-top: clamp(1.5rem, 2.5vw, 2.25rem); border-top: 1px solid var(--line); }
.visit-block .vk { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 0.7rem; }
.visit-block .vline { font-size: 18px; line-height: 1.5; color: var(--ink); margin: 0; font-weight: 400; }
.visit-block a.vline { text-decoration: none; border-bottom: 1px solid var(--line); display: inline-block; padding-bottom: 1px; transition: border-color 0.25s ease; }
.visit-block a.vline:hover { border-bottom-color: var(--ink); }
.visit-block .vsmall { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.visit-dir {
  margin-top: clamp(1.5rem, 2.5vw, 2.25rem);
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--ink); font-size: 14px;
  padding: 0.5rem 0.55rem 0.5rem 1.15rem;
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.visit-dir:hover { border-color: rgba(0,0,0,0.28); background: #fafafa; }
.visit-dir .vd-arrow { width: 27px; height: 27px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: 0 0 auto; transition: transform 0.35s var(--ease); }
.visit-dir .vd-arrow svg { width: 12px; height: 12px; }
.visit-dir:hover .vd-arrow { transform: translateX(3px); }

.visit-map {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  min-height: 380px;
}
.visit-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(0.95); transition: filter 0.5s ease; }
.visit-map:hover iframe { filter: grayscale(0) contrast(1); }
.visit-map .vm-pin {
  position: absolute; z-index: 2; left: 1.25rem; top: 1.25rem;
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 0.55rem 1rem 0.55rem 0.85rem;
  font-size: 13px; letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16); pointer-events: none;
}
.visit-map .vm-pin svg { width: 13px; height: 13px; }

.contact-tail { height: clamp(3.5rem, 7vw, 6rem); }

/* footer spacing tweak for this page */
.contact-body .site-footer { padding-top: 0; }

/* ---------- reveals ---------- */
.c-reveal { opacity: 0; transform: translateY(24px); }
.c-reveal.in { opacity: 1; transform: translateY(0); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .c-reveal { opacity: 1 !important; transform: none !important; }
  .path-start h2 .accent { animation: none; background-position: 50% 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .paths { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
  .visit-map { min-height: 340px; }
}
@media (max-width: 768px) {
  .contact-headwrap .nav { display: none; }
  .contact-intro .ci-title { white-space: normal; }
  .contact-intro .ci-lead { text-align: left; margin-top: 1.4rem; }
  .ci-head { flex-direction: column; align-items: flex-start; gap: 0; }
}
@media (max-width: 560px) {
  .qf-row { grid-template-columns: 1fr; gap: 1.6rem; }
  .qf-foot { flex-direction: column; align-items: stretch; }
  .qf-send { justify-content: center; }
}
/* 320px polish: shrink the card inner padding so fields keep their width,
   and keep the Google Map embed width-constrained / shorter on tiny phones. */
@media (max-width: 400px) {
  .path-form, .path-start { padding: clamp(1.25rem, 5vw, 1.75rem); }
  .visit-map { width: 100%; max-width: 100%; min-height: 260px; }
}
