/* Apex DDC Landing - mobile-first, cleaned steel/ember theme */
:root {
  --ink: #14181e;
  --ink-soft: #3a424c;
  --paper: #f2eee5;
  --paper-2: #e7e0d2;
  --sand: #d8c9ad;
  --steel: #3a5556;
  --steel-deep: #274042;
  --ember: #c45c26;
  --ember-hot: #a3481a;
  --banner-garage: #2f6f6a;
  --banner-adu: #8b4d2b;
  --white: #fffdf8;
  --line: rgba(20, 24, 30, 0.1);
  --shadow: 0 14px 32px rgba(20, 24, 30, 0.12);
  --radius: 16px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 720px;
  --pad: clamp(1rem, 4.2vw, 1.4rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(100% 70% at 100% -10%, rgba(58, 85, 86, 0.14), transparent 55%),
    radial-gradient(80% 50% at 0% 10%, rgba(196, 92, 38, 0.08), transparent 45%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  min-height: 100dvh;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--steel-deep);
}

.wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: var(--pad);
  padding-bottom: 4rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0 1rem;
}

/* Home: full-bleed sticky nav flush to top; rule appears once scrolled */
body[data-funnel-path="home"] {
  overflow-x: clip;
}

body[data-funnel-path="home"] .wrap {
  padding-top: 0;
}

body[data-funnel-path="home"] .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-sizing: border-box;
  /* Mobile-safe full bleed: cancel wrap pad without 100vw shift bugs */
  width: auto;
  max-width: none;
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
  padding: 0.35rem var(--pad) 0.55rem;
  background: rgba(242, 238, 229, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body[data-funnel-path="home"] .site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(20, 24, 30, 0.04);
}

/* Desktop: true viewport-wide sticky bar aligned to content column */
@media (min-width: 720px) {
  body[data-funnel-path="home"] .site-header {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-top: 0.55rem;
    padding-bottom: 0.65rem;
    padding-left: max(var(--pad), calc(50vw - (var(--max) / 2)));
    padding-right: max(var(--pad), calc(50vw - (var(--max) / 2)));
  }
}

.logo {
  height: 52px;
  width: auto;
  background: transparent;
  mix-blend-mode: multiply;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.header-meta {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
  line-height: 1.35;
}

.header-meta a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.header-pdf-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--ember);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(196, 92, 38, 0.25);
}

.header-pdf-btn:hover,
.header-pdf-btn:focus-visible {
  background: var(--ember-hot);
}

@media (max-width: 420px) {
  .header-pdf-btn {
    font-size: 0.68rem;
    padding: 0.4rem 0.65rem;
    min-height: 36px;
  }

  .header-actions {
    gap: 0.45rem;
  }
}

.hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 6.6vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  text-align: center;
}

.hero-support {
  margin: 0.35rem 0 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: none;
  width: 100%;
}

.adu-definition {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #a68b6e;
}

.hero-stage {
  position: relative;
  margin-top: 0.25rem;
  overflow: visible;
  padding-bottom: 0.35rem;
}

.video-shell {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  width: 86%;
}

.video-shell video,
.video-shell .video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-shell .video-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.25s ease;
}

.video-shell.is-ready .video-poster {
  opacity: 0;
  pointer-events: none;
}

.video-shell video {
  position: relative;
  z-index: 0;
}

/* Matches video-shell size; sits above Leroy so controls stay clickable */
.video-ui {
  position: absolute;
  left: 0;
  top: 0;
  width: 86%;
  aspect-ratio: 16 / 9;
  z-index: 5;
  pointer-events: none;
}

.video-ui .video-unmute,
.video-ui .video-bar,
.video-ui .video-end-overlay {
  pointer-events: auto;
}

.video-unmute {
  appearance: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 24, 30, 0.55);
  color: #fffdf8;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.video-unmute:hover {
  background: rgba(20, 24, 30, 0.72);
  transform: translate(-50%, -50%) scale(1.05);
}

.video-unmute[hidden] {
  display: none !important;
}

.video-bar {
  position: absolute;
  left: 50%;
  bottom: 0.65rem;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 4px 14px rgba(20, 24, 30, 0.22);
  pointer-events: auto;
}

.video-bar[hidden] {
  display: none !important;
}

.video-end-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem 2.6rem;
  background: rgba(20, 24, 30, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-align: center;
}

.video-end-overlay[hidden] {
  display: none !important;
}

.video-end-cta {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--ember);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(196, 92, 38, 0.35);
}

.video-end-cta:hover,
.video-end-cta:focus-visible {
  background: var(--ember-hot);
  outline: none;
}

.video-end-replay {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 253, 248, 0.95);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.video-end-replay:hover,
.video-end-replay:focus-visible {
  color: var(--white);
  outline: none;
}

.video-pause-toggle,
.video-volume-btn {
  appearance: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.video-pause-toggle .icon-play,
.video-volume-btn .icon-vol-on {
  display: none;
}

.video-pause-toggle .icon-pause,
.video-volume-btn .icon-vol-off {
  display: block;
}

.video-pause-toggle.is-paused .icon-play {
  display: block;
}

.video-pause-toggle.is-paused .icon-pause {
  display: none;
}

.video-volume-btn:not(.is-muted) .icon-vol-on {
  display: block;
}

.video-volume-btn:not(.is-muted) .icon-vol-off {
  display: none;
}

.video-volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.video-volume {
  display: flex;
  align-items: center;
  margin: 0;
  padding-right: 0.35rem;
}

.video-volume[hidden] {
  display: none !important;
}

.video-volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: rgba(20, 24, 30, 0.18);
  outline: none;
  cursor: pointer;
}

.video-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  border: 0;
  cursor: pointer;
}

.video-volume input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  border: 0;
  cursor: pointer;
}

.leroy-lean {
  position: absolute;
  right: -1.5%;
  bottom: -1%;
  width: min(34%, 118px);
  height: auto;
  max-height: 108%;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(20, 24, 30, 0.25));
  z-index: 6;
  transform: none;
  transform-origin: bottom right;
}

/* Phones: keep him clear of the right edge and smaller so video stays readable */
@media (max-width: 559px) {
  .hero {
    margin-top: 0.35rem;
    gap: 1.25rem;
  }

  .hero-stage {
    margin-top: 0.85rem;
    padding-right: 0.15rem;
    padding-bottom: 0.5rem;
  }

  .video-shell {
    width: 82%;
  }

  .video-ui {
    width: 82%;
  }

  .leroy-lean {
    right: 2%;
    bottom: 0;
    width: 28%;
    max-width: 104px;
    max-height: 102%;
  }

  .video-unmute {
    width: 56px;
    height: 56px;
  }

  .video-bar {
    left: 50%;
    bottom: 0.5rem;
    transform: translateX(-50%);
  }

  .video-pause-toggle,
  .video-volume-btn {
    width: 34px;
    height: 34px;
  }

  .video-volume input[type="range"] {
    width: 58px;
  }
}

.section-label {
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--steel);
  margin: 0 0 0.7rem;
}

.choice-grid {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.choice-card {
  position: relative;
  display: block;
  border: 0;
  width: 100%;
  padding: 0;
  text-align: left;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 168px;
  color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  isolation: isolate;
  background: var(--ink);
  transition: transform 0.25s ease, min-height 0.25s ease;
}

.choice-card img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.choice-card .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(20, 24, 30, 0.78) 100%);
  z-index: 1;
}

.choice-card .banner {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.choice-card[data-path="garage"] .banner {
  background: var(--banner-garage);
}

.choice-card[data-path="adu"] .banner {
  background: var(--banner-adu);
}

.choice-card .label {
  position: absolute;
  left: 1rem;
  right: 4.25rem;
  bottom: 0.9rem;
  z-index: 2;
}

.choice-card .label strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
}

.choice-card .label span {
  display: block;
  font-size: 0.86rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, margin 0.25s ease, opacity 0.2s ease;
  opacity: 0;
}

.choice-arrow {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(20, 24, 30, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.choice-arrow svg {
  display: block;
}

.choice-card:hover,
.choice-card.is-open,
.choice-card:focus-visible {
  transform: translateY(-2px);
  min-height: 198px;
  outline: none;
}

.choice-card:hover img,
.choice-card.is-open img,
.choice-card:focus-visible img {
  transform: scale(1.05);
}

.choice-card:hover .label span,
.choice-card.is-open .label span,
.choice-card:focus-visible .label span {
  max-height: 3.5rem;
  margin-top: 0.2rem;
  opacity: 0.95;
}

.choice-card:hover .choice-arrow,
.choice-card.is-open .choice-arrow {
  transform: translateX(3px);
  background: var(--white);
}

.contact-leroy {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  box-shadow: 0 8px 20px rgba(20, 24, 30, 0.05);
}

.contact-leroy img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 999px;
  background: var(--sand);
}

.contact-leroy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.contact-leroy span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.contact-leroy .phone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
  align-items: center;
}

.chip-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--steel);
  color: var(--white);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  min-height: 36px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.chip-btn.ember {
  background: var(--ember);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.form-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.form-card .sub {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.form-card label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0.8rem 0 0.3rem;
}

.form-card label:first-of-type {
  margin-top: 0;
}

.form-card input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.form-card select,
.form-card textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  box-sizing: border-box;
}

.form-card textarea {
  min-height: 96px;
  resize: vertical;
}

.form-card textarea.grow-field {
  min-height: 0;
  height: 3.1rem;
  max-height: 12rem;
  padding: 0.5rem 0.7rem;
  line-height: 1.4;
  font-size: 0.92rem;
  resize: none;
  overflow-y: auto;
  field-sizing: content;
}

.form-card label.comment-label {
  margin-top: 0.85rem;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
}

.form-card label.comment-label em {
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: 2px solid var(--steel);
  outline-offset: 1px;
}

.step {
  display: none;
}

.step.is-active {
  display: block;
}

.interest-options {
  display: grid;
  gap: 0.3rem;
}

.interest-options label.option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin: 0;
  padding: 0.42rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}

.interest-options label.option .opt-hint {
  flex: 1 1 100%;
  margin-left: 1.55rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.interest-options label.option input[type="radio"] {
  width: 1rem;
  height: 1rem;
  min-height: 0;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--ember);
}

.interest-options .other-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 0.65rem 0.55rem;
}

.interest-options .other-row span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.interest-options .other-row input {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.45rem 0.7rem;
  font: inherit;
}

.btn {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 1rem;
  border-radius: 999px;
  background: var(--ember);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--ember-hot);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--steel);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--steel-deep);
}

.form-note {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.form-status {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.error {
  color: #9b1c1c;
}

.form-status.ok {
  color: var(--steel-deep);
}

.upload-field {
  position: relative;
  display: grid;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1.5px dashed rgba(58, 85, 86, 0.35);
  background: var(--paper);
  cursor: pointer;
}

.upload-field input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 0;
}

.upload-field .upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--steel);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  width: fit-content;
  pointer-events: none;
}

.upload-field .upload-names {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.35;
  pointer-events: none;
}

.upload-field:hover {
  border-color: var(--steel);
}

.secondary-stack {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.secondary-link {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  min-height: 84px;
  box-shadow: 0 8px 18px rgba(20, 24, 30, 0.05);
  cursor: pointer;
  font: inherit;
  width: 100%;
  text-align: left;
}

.secondary-link img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
}

.secondary-link strong {
  display: block;
  font-size: 0.98rem;
}

.secondary-link span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.84rem;
  margin-top: 0.12rem;
}

.secondary-link .chev {
  font-size: 1.35rem;
  color: var(--ember);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "feature thumb1"
    "feature thumb2"
    "wide wide";
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.project-card {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  min-height: 0;
  width: 100%;
}

.project-card.is-featured {
  grid-area: feature;
  aspect-ratio: 9 / 14;
}

.project-card.is-thumb {
  aspect-ratio: 1 / 1;
}

.project-card.is-thumb[data-project="unit-b"] {
  grid-area: thumb1;
}

.project-card.is-thumb[data-project="unit-a"] {
  grid-area: thumb2;
}

.project-card.is-wide {
  grid-area: wide;
  aspect-ratio: 16 / 9;
  min-height: 140px;
}

.project-card img,
.project-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card .meta {
  position: absolute;
  inset: auto 0 0;
  padding: 0.75rem 3.4rem 0.75rem 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(20, 24, 30, 0.82));
  z-index: 2;
}

.project-card .meta strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  display: block;
}

.project-card .meta span {
  font-size: 0.78rem;
  opacity: 0.9;
  display: block;
}

.project-card .choice-arrow {
  width: 40px;
  height: 40px;
  right: 0.65rem;
  bottom: 0.65rem;
}

.project-card.is-thumb .choice-arrow {
  width: 36px;
  height: 36px;
  right: 0.5rem;
  bottom: 0.5rem;
}

.project-card.is-thumb .meta strong {
  font-size: 0.95rem;
}

@media (min-width: 560px) {
  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .video-shell {
    width: 88%;
  }

  .video-ui {
    width: 88%;
  }

  .leroy-lean {
    right: -2%;
    width: min(30%, 158px);
    max-height: 110%;
  }

  .projects-grid {
    gap: 0.85rem;
  }

  .project-card.is-featured {
    aspect-ratio: 9 / 13;
  }

  .project-card .meta strong {
    font-size: 1.15rem;
  }
}

/* Desktop: header polish only - Leroy uses the 560px rules above */
@media (min-width: 720px) {
  body[data-funnel-path="home"] .logo {
    height: 58px;
  }

  body[data-funnel-path="home"] .header-meta {
    font-size: 0.78rem;
  }

  body[data-funnel-path="home"] .header-pdf-btn {
    min-height: 42px;
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
  }

  .video-end-cta {
    min-height: 48px;
    padding: 0.65rem 1.35rem;
    font-size: 1rem;
  }

  .video-end-replay {
    font-size: 0.98rem;
  }
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 30, 0.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  z-index: 40;
}

.dialog-backdrop.is-open {
  display: flex;
}

.dialog {
  width: min(100%, 440px);
  max-height: min(92dvh, 760px);
  overflow: auto;
  background: var(--white);
  border-radius: 20px;
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.dialog-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.dialog-close {
  appearance: none;
  border: 0;
  background: var(--paper);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
}

.dialog-person {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: var(--paper);
}

.dialog-person img {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--sand);
}

.dialog-person strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.dialog-person .phone-number {
  display: block;
  margin-top: 0.2rem;
  font-weight: 700;
  color: var(--steel-deep);
  text-decoration: none;
  font-size: 1rem;
}

.dialog form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0.75rem 0 0.3rem;
  color: var(--ink-soft);
}

.dialog form label:first-of-type {
  margin-top: 0;
}

.dialog form input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.dialog form textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  box-sizing: border-box;
}

.dialog form textarea {
  min-height: 96px;
  resize: vertical;
}

.dialog form textarea.grow-field {
  min-height: 0;
  height: 3.1rem;
  max-height: 12rem;
  padding: 0.5rem 0.7rem;
  line-height: 1.4;
  font-size: 0.92rem;
  resize: none;
  overflow-y: auto;
  field-sizing: content;
}

.dialog .btn {
  margin-top: 1rem;
}

/* Same steel green as Contact Leroy Call chip */
.contact-leroy-cta {
  appearance: none;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  margin-top: 0.7rem;
  padding: 0.75rem 0.85rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--steel);
  color: var(--white);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(58, 85, 86, 0.28);
}

.contact-leroy-cta:hover,
.contact-leroy-cta:focus-visible {
  background: var(--steel-deep);
  outline: none;
}

.contact-leroy-cta img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.18);
}

.contact-leroy-cta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
}

.contact-leroy-cta span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255, 253, 248, 0.88);
}

.contact-leroy-cta .chev {
  display: block;
  margin: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: rgba(255, 253, 248, 0.95);
}

.path-banner {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.path-banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.path-banner.is-creative {
  background: #142033;
}

.path-banner.is-creative img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.path-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ember);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.path-kicker.garage {
  background: var(--banner-garage);
}

.path-kicker.adu {
  background: var(--banner-adu);
}

.carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 3;
  margin-bottom: 0.75rem;
}

.carousel img,
.carousel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  pointer-events: none;
}

.carousel-nav button {
  pointer-events: auto;
  appearance: none;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.3rem;
}

.site-footer a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

.thanks-panel,
.admin-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.admin-pass-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin: 0.4rem 0 0.8rem;
}

.admin-pass-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.7rem;
  font: inherit;
}

.admin-pass-toggle {
  flex-shrink: 0;
  min-height: 48px;
  padding-inline: 0.9rem;
}

.admin-lead {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.admin-lead:first-of-type {
  border-top: 0;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--paper-2);
}

.badge.submitted {
  background: #d7ebe4;
  color: #18483d;
}

.badge.partial {
  background: #f6e2cf;
  color: #7a3b12;
}

.badge.draft {
  background: #e5e7ea;
  color: #3a424c;
}

.admin-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

@media (max-width: 820px) {
  .admin-board {
    grid-template-columns: 1fr;
  }
}

.admin-col {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
  min-height: 12rem;
}

.admin-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--cream, #f3ebe0) 80%, white);
}

.admin-col-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
}

.admin-col-count {
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--ink);
  color: var(--paper);
}

.admin-col-rows {
  display: flex;
  flex-direction: column;
}

.admin-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.45rem 0.55rem;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.admin-row:hover,
.admin-row.is-open {
  background: color-mix(in srgb, var(--cream, #f3ebe0) 55%, white);
}

.admin-row-main {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.admin-row-main strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-row-meta,
.admin-row-path,
.admin-row-time {
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-row-path {
  max-width: 6.5rem;
  font-weight: 600;
  color: var(--ink);
}

.admin-row-detail {
  padding: 0.55rem 0.75rem 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--cream, #f3ebe0) 40%, white);
}

.admin-col-more {
  padding: 0.55rem 0.75rem;
  margin: 0;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.admin-filters .chip-btn.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.admin-filters .chip-btn span {
  opacity: 0.75;
  margin-left: 0.2rem;
}

.admin-group {
  margin-top: 1.1rem;
}

.admin-group h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
}

.admin-form-rows {
  display: grid;
  gap: 0.55rem;
}

.admin-form-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.admin-form-row strong {
  display: block;
}

.admin-form-row span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.86rem;
  margin-top: 0.15rem;
}

.admin-form-actions {
  display: flex;
  gap: 0.4rem;
}

.admin-links {
  display: grid;
  gap: 0.45rem;
}

.admin-links a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.admin-links a:hover {
  border-color: var(--steel);
}

.work-section {
  margin: 1.5rem 0 0.5rem;
}

.work-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.work-thumb {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(20, 24, 30, 0.1);
  color: var(--white);
  text-align: left;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-thumb-label {
  position: absolute;
  left: 0.4rem;
  right: 2rem;
  bottom: 0.4rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.work-thumb .choice-arrow {
  width: 28px;
  height: 28px;
  right: 0.35rem;
  bottom: 0.35rem;
}

.work-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(20, 24, 30, 0.75));
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 420px) {
  .work-thumb-label {
    font-size: 0.6rem;
    right: 1.6rem;
  }

  .work-thumb .choice-arrow {
    width: 24px;
    height: 24px;
  }
}
