/* ===========================================================
   Laevis — design tokens ("Minimal" direction)
   Palette:  --void (near-black ground) / --ink (near-white text) / --slate (secondary text)
             --accent (single muted blue, the only color on the page)
   Type:     Plus Jakarta Sans only — hierarchy comes from size/weight, not multiple families
   =========================================================== */

:root{
  --void: #000000;
  --panel: #0B0B0C;
  --ink: #F5F5F7;
  --slate: #86868B;
  --accent: #5B90CC;
  --accent-bright: #78A6D9;
  --line: #1D1D1F;
  --paper: #000000;

  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  --wrap: 1180px;
  --radius: 999px;
  --radius-sm: 0px;
  --ease: cubic-bezier(.22,.7,.2,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}

/* height:auto is required, not cosmetic: the width/height attributes on an
   <img> are presentational hints that set the CSS width and height. Without
   this, any image given a CSS width renders at its attribute height and is
   visibly stretched. */
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; }

.wrap{
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 28px;
}

.skip-link{
  position: absolute; left: -999px; top: auto;
  background: var(--ink); color: var(--void);
  padding: 12px 18px; border-radius: 8px; z-index: 999;
}
.skip-link:focus{ left: 20px; top: 20px; }

:focus-visible{
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn span{ transition: transform .25s var(--ease); }
.btn:hover span{ transform: translateX(3px); }

.btn-dark{ background: var(--accent); color: #fff; }
.btn-dark:hover{ background: var(--accent-bright); }

.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); }

.btn-light{ background: var(--accent); color: #fff; }
.btn-light:hover{ background: var(--accent-bright); }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--void) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex; align-items: center; gap: 32px;
  padding-block: 18px;
}
.logo{
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.logo-mark{ color: var(--ink); flex-shrink: 0; }
.logo-word{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
}

/* ---------- Logo intro (one-time) ----------
   The mark's three layers (frame / orbit / dot) start separated in
   depth and tilted, then assemble into the flat logo on page load.
   Pure CSS, runs once, never moves again. */
.logo-mark3d{
  position: relative;
  width: 30px; height: 30px;
  flex-shrink: 0;
  perspective: 300px;
  transform-style: preserve-3d;
  animation: logo-settle 1.5s cubic-bezier(.2,.75,.25,1) both;
}
.logo-layer{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.logo-layer-frame{ animation: logo-layer-frame 1.5s cubic-bezier(.2,.75,.25,1) both; }
.logo-layer-orbit{ animation: logo-layer-orbit 1.5s cubic-bezier(.2,.75,.25,1) both; }
.logo-layer-dot{ animation: logo-layer-dot 1.5s cubic-bezier(.2,.75,.25,1) both; }

@keyframes logo-settle{
  0%   { transform: rotateY(-34deg) rotateX(14deg); opacity: 0; }
  25%  { opacity: 1; }
  70%  { transform: rotateY(5deg) rotateX(-2deg); }
  100% { transform: rotateY(0) rotateX(0); opacity: 1; }
}
@keyframes logo-layer-frame{
  0%   { transform: translateZ(-14px); }
  100% { transform: translateZ(0); }
}
@keyframes logo-layer-orbit{
  0%   { transform: translateZ(12px); }
  100% { transform: translateZ(0); }
}
@keyframes logo-layer-dot{
  0%   { transform: translateZ(24px); }
  100% { transform: translateZ(0); }
}

.site-header .logo-word{
  animation: logo-word-in .6s ease-out .8s both;
}
@keyframes logo-word-in{
  from{ opacity: 0; transform: translateY(4px); }
  to  { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  .logo-mark3d, .logo-layer-frame, .logo-layer-orbit, .logo-layer-dot,
  .site-header .logo-word{ animation: none; }
}

.main-nav{ display: flex; gap: 30px; }
.main-nav a{
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--slate);
  position: relative;
  padding-bottom: 3px;
  transition: color .2s var(--ease);
}
.main-nav a:hover{ color: var(--ink); }

.btn-nav{ padding: 11px 20px; font-size: 14px; }

.nav-toggle{
  display: none;
  width: 40px; height: 40px;
  border: none; background: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.nav-toggle span{ width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-nav{
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 28px 20px;
}
.mobile-nav a:not(.btn){
  padding: 12px 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border-top: 1px solid var(--line);
}
.mobile-nav .btn{ margin-top: 12px; justify-content: center; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  padding-top: 90px;
  padding-bottom: 100px;
  text-align: center;
}
.hero-sky{ display: none; }
.hero-inner{ text-align: center; }
.eyebrow{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slate);
  margin: 0 0 20px;
}
.hero-title{
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: .98;
  max-width: 16ch;
  margin-inline: auto;
}
.hero-title em{
  font-style: normal;
  color: var(--accent);
}
.hero-sub{
  max-width: 560px;
  margin: 26px auto 0;
  color: var(--slate);
  font-size: 18px;
}
.hero-ctas{
  display: flex; justify-content: center; gap: 14px;
  margin-top: 34px;
}

/* ---------- Reveal (signature element) ---------- */
.reveal{ margin-top: 72px; }
.reveal-frame{
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  aspect-ratio: 3/2;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.reveal-img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.reveal-clip{
  position: absolute; inset: 0;
  width: 50%;
  overflow: hidden;
}
.reveal-clip .reveal-img{ width: var(--frame-w, 980px); max-width: none; }
.reveal-handle{
  position: absolute; top: 0; bottom: 0;
  width: 2px; background: rgba(245,245,247,.85);
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
}
.reveal-grip{
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--void);
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.reveal-tag{
  position: absolute; bottom: 16px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 12.5px;
  letter-spacing: .02em;
  padding: 7px 13px;
  border-radius: var(--radius);
  background: rgba(0,0,0,.55);
  color: var(--ink);
  backdrop-filter: blur(6px);
  pointer-events: none;
  border: 1px solid var(--line);
}
.reveal-tag-before{ left: 16px; }
.reveal-tag-after{ right: 16px; color: var(--accent-bright); }
.reveal-caption{
  max-width: 980px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--slate);
}

/* ---------- Sections (shared) ---------- */
.section-title{
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.06;
  max-width: 760px;
  letter-spacing: -0.02em;
}
.section-sub{ color: var(--slate); font-size: 17px; margin-top: 10px; }
.section-head{ margin-bottom: 48px; }

/* ---------- Stat bar ---------- */
.stat-bar{ padding-block: 56px; border-top: 1px solid var(--line); }
.stat-bar-inner{ display: flex; justify-content: center; gap: 90px; flex-wrap: wrap; text-align: center; }
.stat{ min-width: 130px; }
.stat-num{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  font-feature-settings: "tnum" 1;
}
.stat-num span{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .4em;
  color: var(--slate);
  margin-left: 4px;
}
.stat-label{ color: var(--slate); font-size: 14px; margin: 8px 0 0; }

/* ---------- Process ---------- */
.process{ padding-block: 120px; border-top: 1px solid var(--line); }
.steps{
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px;
}
.step{ border-top: 1px solid var(--line); padding-top: 22px; }
.step-num{
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 14px;
}
.step h3{ font-size: 21px; margin-bottom: 10px; font-weight: 700; }
.step p{ color: var(--slate); margin: 0; font-size: 15.5px; }
.step-tip{
  margin-top: 14px !important;
  padding: 12px 14px;
  background: var(--panel);
  border-left: 2px solid var(--accent);
  border-radius: 0;
  font-size: 13.5px !important;
  line-height: 1.5;
  color: var(--slate);
}
.step-tip strong{ color: var(--ink); font-family: var(--font-display); font-weight: 600; }

/* ---------- Work / Portfolio ---------- */
.work{ padding-block: 120px; border-top: 1px solid var(--line); }

.work-feature{
  position: relative;
  margin: 0 0 20px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}
.work-feature video{
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
/* Footage shot at a non-16:9 ratio displays at its own shape
   rather than being force-cropped into the standard frame. */
.work-feature-natural video{
  aspect-ratio: auto;
  object-fit: contain;
}
.work-feature figcaption{
  position: absolute; inset: auto 0 0 0;
  padding: 20px 22px;
  display: flex; justify-content: space-between; align-items: flex-end;
  background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,0) 70%);
  color: var(--ink);
  font-family: var(--font-display);
  pointer-events: none;
}
.work-feature figcaption span:first-child{ font-weight: 700; font-size: 17px; }

.work-subhead{
  color: var(--slate);
  font-size: 15px;
  margin: 0 0 20px;
}

.work-project + .work-project{
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}
.work-project-label{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.work-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
/* A gallery whose photo count isn't divisible by 3 leaves a dangling
   last row — instead of stretching it full-width (leaving an empty,
   visibly-colored cell), it gets its own narrower grid, centered,
   with cards matching the main grid's column width. */
.work-grid-remainder{
  grid-template-columns: repeat(2, 1fr);
  max-width: calc(2 / 3 * 100%);
  margin: 1px auto 0;
}

.work-card{
  position: relative;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel);
}
.work-card img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
  opacity: .92;
}
.work-card:hover img{ transform: scale(1.04); opacity: 1; }
.work-card-btn{
  all: unset;
  display: block;
  width: 100%; height: 100%;
  cursor: zoom-in;
}
.work-card-btn:focus-visible{
  outline: 2.5px solid var(--accent);
  outline-offset: -3px;
  border-radius: var(--radius-sm);
}
.work-card-expand{
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none;
  border: 1px solid var(--line);
}
.work-card:hover .work-card-expand,
.work-card-btn:focus-visible ~ .work-card-expand{
  opacity: 1;
  transform: scale(1);
}
.work-card figcaption{
  position: absolute; inset: auto 0 0 0;
  padding: 16px;
  display: flex; justify-content: space-between; align-items: flex-end;
  background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,0) 65%);
  color: var(--ink);
  font-family: var(--font-display);
  pointer-events: none;
}
.work-card figcaption span:first-child{ font-weight: 600; font-size: 14px; }
.work-type{ font-size: 12px; color: rgba(245,245,247,.7); font-weight: 500; }
.work-note{ margin-top: 30px; color: var(--slate); font-size: 15px; }
.work-note a{ color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }

.work-testimonial{
  margin: 30px 0 0;
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.work-testimonial-mark{
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 8px;
}
.work-testimonial blockquote{ margin: 0; }
.work-testimonial blockquote p{
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 62ch;
}
.work-testimonial blockquote p:last-child{ margin-bottom: 0; }
.work-testimonial figcaption{
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--slate);
}

/* ---------- Lightbox ---------- */
.lightbox{
  position: fixed; inset: 0;
  z-index: 300;
  background: rgba(0,0,0,.96);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.lightbox[hidden]{ display: none; }
.lightbox.is-visible{ opacity: 1; }
.lightbox-figure{ margin: 0; max-width: 100%; }
.lightbox-img{
  display: block;
  max-width: min(88vw, 1400px);
  max-height: 76vh;
  width: auto; height: auto;
  border-radius: 0;
  margin-inline: auto;
  border: 1px solid var(--line);
}
.lightbox-caption{
  margin-top: 16px;
  text-align: center;
  color: var(--slate);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
}
.lightbox-close,
.lightbox-nav{
  position: fixed;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(245,245,247,.06);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.lightbox-close:hover,
.lightbox-nav:hover{ background: rgba(245,245,247,.14); }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible{ outline: 2.5px solid var(--accent); outline-offset: 2px; }
.lightbox-close{ top: 22px; right: 22px; width: 44px; height: 44px; }
.lightbox-nav{ top: 50%; width: 52px; height: 52px; transform: translateY(-50%); }
.lightbox-nav:hover{ transform: translateY(-50%) scale(1.06); }
.lightbox-prev{ left: 22px; }
.lightbox-next{ right: 22px; }

/* The clip viewer borrows the photo lightbox's chrome; only the media
   box differs, because 9:16 is height-bound rather than width-bound. */
.cliplight-video{
  display: block;
  height: min(76vh, 900px);
  width: auto;
  max-width: 88vw;
  aspect-ratio: 9/16;
  object-fit: cover;
  margin-inline: auto;
  background: var(--panel);
  border: 1px solid var(--line);
}

/* ---------- Pricing ---------- */
.pricing{ padding-block: 120px; border-top: 1px solid var(--line); }
.pricing .wrap{ max-width: 1480px; }
.price-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: stretch;
  border-top: 1px solid var(--line);
}
.price-card{
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 26px;
  border: none;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.price-card:last-child{ border-right: none; }
.price-card-featured{
  background: var(--panel);
}
.price-badge{
  position: absolute; top: -1px; left: 26px;
  transform: translateY(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius);
}
.price-eyebrow{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 14px;
}
.price-amount{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.price-period{
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--slate);
  margin-left: 2px;
}
.price-desc{
  color: var(--slate);
  font-size: 14.5px;
  margin: 10px 0 24px;
}
.price-features{
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex-grow: 1;
}
.price-features li{
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.4;
}
.price-features li::before{
  content: "\2013";
  position: absolute; left: 0; top: 0;
  color: var(--accent);
}
.price-features li.excluded{
  color: var(--slate);
}
.price-features li.excluded::before{ color: var(--slate); }
.price-addon{
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--slate);
  margin: -8px 0 20px;
}
.price-addon strong{ color: var(--ink); font-weight: 600; }
.price-addon a{ color: var(--accent); font-weight: 600; text-decoration: underline; }
.price-cta{ justify-content: center; width: 100%; }

/* ---------- About ---------- */
.about{ padding-block: 110px; border-top: 1px solid var(--line); }
.about-inner{ max-width: 760px; }
.about p{ margin-top: 22px; color: var(--slate); font-size: 18px; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq{ padding-block: 120px; border-top: 1px solid var(--line); }
.faq-list{ max-width: 820px; }
.faq-item{
  border-top: 1px solid var(--line);
  padding-block: 22px;
}
.faq-item:last-child{ border-bottom: 1px solid var(--line); }
.faq-item summary{
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 18px;
  line-height: 1;
  color: var(--slate);
  transition: transform .25s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.faq-item[open] summary::after{ content: "\2212"; }
.faq-item summary:hover{ color: var(--accent); }
.faq-item summary:hover::after{ border-color: var(--accent); color: var(--accent); }
.faq-item p{
  margin: 16px 0 0;
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 62ch;
}
.faq-item p a{ color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---------- CTA ---------- */
.cta{ padding-block: 130px; border-top: 1px solid var(--line); }
.cta-inner{ text-align: center; }
.cta h2{ font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 680px; margin-inline: auto; letter-spacing: -0.02em; }
.cta p{ color: var(--slate); margin: 18px auto 34px; max-width: 460px; font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer{ padding-block: 44px; border-top: 1px solid var(--line); }
.footer-inner{
  display: flex; align-items: center; flex-wrap: wrap; gap: 24px;
  justify-content: space-between;
}
.logo-footer{ margin-right: 0; }
.footer-nav{ display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a{ text-decoration: none; font-size: 14.5px; color: var(--slate); }
.footer-nav a:hover{ color: var(--ink); }
.footer-copy{ width: 100%; margin: 0; font-size: 13px; color: var(--slate); order: 3; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px){
  .price-grid{ grid-template-columns: repeat(2, 1fr); }
  .price-card{ border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px){
  .main-nav, .btn-nav{ display: none; }
  .nav-toggle{ display: flex; }
  .mobile-nav.is-open{ display: flex; }
  .work-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .work-grid-remainder{ max-width: 100%; margin-top: 1px; }
  .steps{ grid-template-columns: 1fr; gap: 32px; }
  .price-grid{ grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; border-top: none; }
  .price-card{ border-right: none; border-top: 1px solid var(--line); }
  .price-card-featured{ order: -1; }
}

@media (max-width: 560px){
  .wrap{ padding-inline: 20px; }
  .hero{ padding-top: 68px; padding-bottom: 70px; }
  .hero-ctas{ flex-direction: column; align-items: stretch; }
  .work-grid{ grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .work-grid-remainder{ grid-template-columns: 1fr; max-width: 100%; }
  .footer-inner{ flex-direction: column; align-items: flex-start; }
  .lightbox{ padding: 80px 16px 24px; }
  .lightbox-img{ max-height: 62vh; }
  .lightbox-close{ top: 12px; right: 12px; width: 40px; height: 40px; }
  .lightbox-nav{ width: 44px; height: 44px; top: auto; bottom: 24px; transform: none; }
  .lightbox-nav:hover{ transform: scale(1.06); }
  .lightbox-prev{ left: 16px; }
  .lightbox-next{ right: 16px; }
}

/* ---------- Free-preview form (#start) ----------
   Six CTAs across the page point at #start, so this is where most of the
   site's intent lands. Centred to match .cta-inner, but the fields
   themselves stay left-aligned — centred labels are hard to scan. */
.lead-form{
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  text-align: left;
}
.lead-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form label{ display: block; font-size: 13.5px; font-weight: 600; margin: 0 0 7px; }
.lead-form label span{ color: var(--slate); font-weight: 400; }
.lead-form input,
.lead-form textarea{
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: #111113;
  border: 1px solid #2A2A2E;
  border-radius: 0;
  padding: 13px 15px;
  -webkit-appearance: none;
}
.lead-form input:focus,
.lead-form textarea:focus{
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: transparent;
}
.lead-form textarea{ min-height: 92px; resize: vertical; line-height: 1.5; }
.lead-hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-actions{
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-top: 4px;
}
.lead-msg{ margin: 0 !important; font-size: 14px; max-width: none !important; }
.lead-msg.err{ color: #E2664F; }
.lead-fine{ margin: 4px 0 0 !important; font-size: 13px; color: var(--slate); max-width: none !important; }

.lead-thanks{ display: none; max-width: 560px; margin-inline: auto; }
.lead-thanks h3{ font-size: 24px; letter-spacing: -0.03em; margin: 0 0 10px; }
.lead-thanks p{ margin: 0 0 8px !important; }
.cta.is-sent .lead-form{ display: none; }
.cta.is-sent .lead-thanks{ display: block; }

@media (max-width: 620px){
  .lead-row{ grid-template-columns: 1fr; }
}

/* Anchor jumps clear the sticky header (83px) instead of landing beneath it.
   Six CTAs point at #start, so this is on the conversion path. */
section[id], [id]:target{ scroll-margin-top: 96px; }

/* ---------- Social clips (9:16 rail) ---------- */
.clips{ padding-block: 120px; border-top: 1px solid var(--line); }

/* A grid, not a scroller. All six clips fit at once, so no card is ever
   half-shown and there is nothing to scroll past — the enlarged viewer
   is what makes a clip big, so the thumbnails can afford to be small. */
.clip-rail{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.clip{ margin: 0; min-width: 0; }
.clip-btn{
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}
.clip-btn:focus-visible{ outline: 2.5px solid var(--accent); outline-offset: 3px; }
.clip video{
  display: block;
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.clip-expand{
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(11,11,12,.72);
  color: var(--ink);
  opacity: 0;
  transition: opacity .2s var(--ease);
  pointer-events: none;
}
.clip-btn:hover .clip-expand,
.clip-btn:focus-visible .clip-expand{ opacity: 1; }
/* Touch devices get no hover, so the badge is simply always on. */
@media (hover: none){
  .clip-expand{ opacity: 1; }
}
.clip figcaption{
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- Virtual staging (before / after) ---------- */
.staging{ padding-block: 120px; border-top: 1px solid var(--line); }

.stage-frame{
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  aspect-ratio: 16/9;
  touch-action: pan-y;
}
.stage-frame img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The "after" lies exactly on top of the "before" and is revealed with
   clip-path, so both images keep identical geometry at every viewport
   width — no second layout to drift out of sync. --pos is the split, and
   the after is clipped from the LEFT so it occupies everything right of
   the handle: original on the left, restaged on the right, matching the
   two labels. */
.stage-frame{ --pos: 50%; }
.stage-after-clip{
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}

.stage-tag{
  position: absolute;
  bottom: 16px;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(11,11,12,.82);
  padding: 6px 12px;
  border-radius: var(--radius);
  pointer-events: none;
}
.stage-tag-l{ left: 16px; }
.stage-tag-r{ right: 16px; }

.stage-handle{
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
  z-index: 4;
  pointer-events: none;
}
.stage-handle span{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 2px 14px rgba(0,0,0,.5);
}
/* Two chevrons, drawn with borders so the knob needs no extra markup. */
.stage-handle span::before,
.stage-handle span::after{
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border: 2px solid var(--void);
  border-width: 2px 2px 0 0;
}
.stage-handle span::before{ left: 12px; transform: rotate(-135deg); }
.stage-handle span::after{ right: 12px; transform: rotate(45deg); }

/* The range input is the real control — invisible, but focusable,
   draggable and operable with the arrow keys. */
.stage-range{
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.stage-range::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 48px;
  height: 100vh;
  cursor: ew-resize;
}
.stage-range::-moz-range-thumb{
  width: 48px;
  height: 100vh;
  border: 0;
  border-radius: 0;
  cursor: ew-resize;
}
.stage-range:focus-visible ~ .stage-handle span{
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}
.stage-sr{
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.stage-picks{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.stage-pick{
  display: block;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.stage-pick img{
  display: block;
  width: 100%;
  /* height:auto is load-bearing — the img carries width/height attributes,
     which are presentational hints that would otherwise pin the box to the
     file's own 900px and defeat aspect-ratio entirely. */
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  opacity: .55;
  transition: opacity .2s var(--ease);
}
.stage-pick span{
  display: block;
  padding: 11px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slate);
}
.stage-pick:hover img,
.stage-pick.is-on img{ opacity: 1; }
.stage-pick.is-on{ border-color: var(--accent); }
.stage-pick.is-on span{ color: var(--ink); }
.stage-pick:focus-visible{ outline: 2px solid var(--accent-bright); outline-offset: 2px; }

@media (max-width: 900px){
  .clips, .staging{ padding-block: 84px; }
  .clip-rail{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px){
  .clip-rail{ grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* Edge to edge on phones. The comparison is the whole point of the
     section and a 16:9 frame inside the gutters is only ~188px tall —
     small enough that the furniture stops being legible. */
  .stage-compare{ margin-inline: calc(50% - 50vw); }
  .stage-frame{ border-left: 0; border-right: 0; }
  .stage-picks{ grid-template-columns: 1fr 1fr; }
  .stage-picks .stage-pick:last-child{ grid-column: span 2; }
  .stage-tag{ bottom: 10px; font-size: 10px; padding: 5px 10px; }
  .stage-tag-l{ left: 10px; }
  .stage-tag-r{ right: 10px; }
}
