/* ============================================================
   Facelift by Dr. Kassis — additions on top of styles.css / pages.css
   Only new components + photo-backed overrides live here.
   ============================================================ */

/* ------------------------------------------------------------
   GRID SAFETY — grid/flex children default to min-width:auto, so a
   nowrap child can push a column past the viewport. Let them shrink.
   ------------------------------------------------------------ */
.hero-grid > *,
.layers > *,
.about > *,
.cv-split > *,
.qual-split > *,
.form-grid > * { min-width: 0; }

/* The hero eyebrow is nowrap by design; on narrow screens that alone
   sets the column's min-content width. Let it wrap instead. */
@media (max-width: 680px) {
  .hero-pre { white-space: normal; text-align: center; line-height: 1.6; }
  .hero-pre span { white-space: normal; }
}

/* ------------------------------------------------------------
   PHOTO FILLS — the base system ships gradient placeholders.
   These let a real photograph sit inside the same frames.
   ------------------------------------------------------------ */
.photo-fill {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* About / portrait block: real photo instead of the silhouette */
.about-photo.has-photo { background: var(--ink-3); padding: 0; }
.about-photo.has-photo .photo-fill { z-index: 0; }
.about-photo.has-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,15,8,.78) 0%, rgba(20,15,8,.15) 42%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.about-photo.has-photo .name-tag {
  position: absolute;
  left: 24px; bottom: 24px;
  z-index: 2;
}

/* VSL cover image */
.vsl-thumb.has-photo {
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
}
.vsl-thumb.has-photo::after {
  background: linear-gradient(180deg, rgba(10,8,6,.25) 0%, rgba(10,8,6,.55) 100%);
}

/* ------------------------------------------------------------
   CREDENTIAL MARQUEE — serif wordmarks + institution seals
   ------------------------------------------------------------ */
.backer.seal-img {
  display: inline-flex;
  align-items: center;
  height: 34px;
  opacity: .5;
}
.backer.seal-img img {
  height: 100%;
  width: auto;
  filter: grayscale(1) brightness(2.4);
}

/* ------------------------------------------------------------
   ANATOMY — the deep plane explainer
   ------------------------------------------------------------ */
.layers {
  max-width: var(--col-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 940px) { .layers { grid-template-columns: 1fr 1fr; gap: 72px; } }

.layers-copy h3 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.layers-copy p {
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.65;
}
.layers-copy p + p { margin-top: 14px; }
.layers-copy p strong { color: var(--bone); font-weight: 600; }

.layer-key {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.layer-key li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
.layer-key li:first-child { border-top: 0; }
.layer-key .sw {
  width: 12px; height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
  transform: translateY(1px);
}
.layer-key .nm {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--bone);
  letter-spacing: -0.005em;
  margin-bottom: 3px;
}

.layer-figure {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 34px);
  position: relative;
  overflow: hidden;
}
.layer-figure svg { width: 100%; height: auto; display: block; }
.layer-figure .fig-cap {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: center;
}

/* ------------------------------------------------------------
   BEFORE / AFTER
   ------------------------------------------------------------ */
.ba-grid {
  max-width: var(--col-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 800px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }

.ba-card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.ba-card:hover { transform: translateY(-4px); border-color: var(--gold-soft); }

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-2);
  position: relative;
}
.ba-shot {
  position: relative;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center top;
  background-color: var(--ink-3);
}
.ba-shot .tag {
  position: absolute;
  left: 10px; top: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(0,0,0,.6);
  border: 1px solid var(--line-2);
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.ba-shot.after .tag { color: var(--gold); border-color: var(--gold-soft); }

.ba-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ba-body .proc {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.ba-body .meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.ba-body .meta .gd { color: var(--gold); }
.ba-note {
  max-width: var(--col-wide);
  margin: 28px auto 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-2);
  text-align: center;
}

/* ------------------------------------------------------------
   CREDENTIAL TIMELINE
   ------------------------------------------------------------ */
.cv-split {
  max-width: var(--col-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (min-width: 940px) { .cv-split { grid-template-columns: 380px 1fr; gap: 72px; } }

.cv-photo {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-3) center/cover no-repeat;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
@media (min-width: 940px) { .cv-photo { position: sticky; top: 96px; } }

.cv {
  max-width: 880px;
  margin: 0 auto;
}
.cv-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.cv-row:last-child { border-bottom: 1px solid var(--line); }
.cv-row .y {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--gold);
}
.cv-row .l {
  font-family: var(--sans);
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--bone);
}
.cv-row .l small {
  display: block;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0;
}

/* ------------------------------------------------------------
   COMPARISON TABLE — traditional vs deep plane
   ------------------------------------------------------------ */
.compare {
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .compare-row { grid-template-columns: 1fr 1fr; } }

.compare-cell {
  padding: 20px 24px;
  font-size: clamp(14.5px, 1.2vw, 16px);
  line-height: 1.55;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) {
  .compare-row > .compare-cell:first-child { border-right: 1px solid var(--line); }
}
.compare-row:first-child .compare-cell { border-top: 0; }

.compare-cell.old { background: var(--ink-2); color: var(--muted); }
.compare-cell.new { background: rgba(232,185,35,.05); color: var(--bone); }

.compare-head {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 18px 24px;
}
.compare-head.old { color: var(--muted-2); background: var(--ink-3); }
.compare-head.new { color: var(--gold); background: rgba(232,185,35,.10); }

/* Mobile: label each cell so the pairing stays legible */
@media (max-width: 759px) {
  .compare-cell.old::before,
  .compare-cell.new::before {
    display: block;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .compare-cell.old::before { content: "Skin-only lift"; color: var(--muted-2); }
  .compare-cell.new::before { content: "Deep plane"; color: var(--gold); }
  .compare-head { display: none; }
}

/* ------------------------------------------------------------
   RECOVERY TIMELINE
   ------------------------------------------------------------ */
.timeline {
  max-width: var(--col-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .timeline { grid-template-columns: repeat(5, 1fr); } }

.tl-step {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
  transition: border-color .3s, transform .3s var(--ease);
}
.tl-step:hover { border-color: var(--gold-soft); transform: translateY(-3px); }
.tl-step .when {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.tl-step h4 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 8px;
}
.tl-step p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ------------------------------------------------------------
   PRACTICE / CONTACT STRIP
   ------------------------------------------------------------ */
.suite-photo {
  max-width: var(--col-wide);
  margin: 0 auto 20px;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-3) center 45%/cover no-repeat;
  position: relative;
}
.suite-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.65), transparent 55%);
}
.suite-photo .cap {
  position: absolute;
  left: 22px; bottom: 20px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bone);
}
.suite-photo .cap .gd { color: var(--gold); }
@media (max-width: 640px) { .suite-photo { aspect-ratio: 16 / 10; } }

.practice {
  max-width: var(--col-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 760px) { .practice { grid-template-columns: repeat(3, 1fr); } }
.practice-cell {
  padding: 26px 24px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.practice-cell .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.practice-cell .v {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--bone);
}
.practice-cell .v a:hover { color: var(--gold); }

/* ------------------------------------------------------------
   FOOTER LOGO
   ------------------------------------------------------------ */
.foot-logo { height: 46px; width: auto; margin-bottom: 16px; opacity: .92; }

/* `.foot-col a { display:block }` in styles.css would stretch the
   ghost button across the whole column — keep it hugging its label. */
.foot-col a.cta-ghost { display: inline-flex; width: auto; }
.foot-col a.cta-ghost:hover { padding-left: 14px; }

/* ------------------------------------------------------------
   INLINE APPLICATION FORM
   ------------------------------------------------------------ */
.form-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(26px, 4vw, 52px);
  position: relative;
}
.form-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, var(--gold-soft) 0%, transparent 50%, var(--gold-soft) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) { .form-grid { grid-template-columns: repeat(3, 1fr); } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > .lbl,
.qgroup > .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 15px 16px;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15.5px;
  transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus {
  outline: none;
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 4px rgba(232,185,35,.10);
}

.qgroup { margin-top: 30px; }
.qgroup > .lbl { display: block; margin-bottom: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  font-size: 14.5px;
  line-height: 1.3;
  transition: border-color .25s, background .25s, color .25s;
}
.chip:hover span { border-color: var(--gold-soft); }
.chip input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.chip input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.form-actions {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.form-error {
  color: var(--red);
  font-size: 13.5px;
  min-height: 20px;
  text-align: center;
  margin-bottom: 8px;
}
.form-privacy {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.7;
}

/* Success state */
.form-done { display: none; text-align: center; padding: clamp(20px, 4vw, 40px) 0; }
.form-done.show { display: block; }
form.hide { display: none; }
.form-done .os-check {
  width: 62px; height: 62px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.form-done .os-check svg { width: 30px; height: 30px; stroke: var(--ink); fill: none; }
.form-done h3 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.form-done p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   SAFETY / DISCLOSURE NOTE
   ------------------------------------------------------------ */
.disclosure {
  max-width: var(--col);
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.6;
}
.disclosure strong { color: var(--muted); font-weight: 600; }
