/* ==========================================================================
   KF BTP — inner pages: page hero, service sections, about, contact form
   ========================================================================== */

/* ---------- Page hero (shorter version of the home hero) ---------- */
.page-hero {
  position: relative;
  min-height: clamp(420px, 64dvh, 640px);
  padding-block: clamp(36px, 5vw, 72px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.page-hero--compact { min-height: clamp(340px, 46dvh, 460px); }
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-zoom 2.4s var(--ease) forwards;
}
.page-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 19, 22, 0.55) 0%, rgba(14, 19, 22, 0.35) 40%, rgba(14, 19, 22, 0.9) 100%),
    linear-gradient(90deg, rgba(14, 19, 22, 0.55), transparent 70%);
}
@keyframes hero-zoom { to { transform: scale(1); } }

.page-hero__inner {
  container-type: inline-size;
  opacity: 0;
  transform: translateY(24px);
  animation: page-rise 1s 120ms var(--ease) forwards;
}
@keyframes page-rise { to { opacity: 1; transform: none; } }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.78); }
.crumbs a { transition: color var(--fast); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { color: var(--accent); }

.page-hero__title {
  margin-top: clamp(14px, 2vw, 22px);
  font-size: clamp(2.4rem, 12.5cqw, 10.5rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.page-hero__title.is-long { font-size: clamp(2.1rem, 9.2cqw, 8.6rem); }
.page-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: clamp(20px, 2.6vw, 34px);
}
.page-hero__lead { max-width: 52ch; color: rgba(255, 255, 255, 0.86); font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.15rem); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sticky in-page navigation (services) ---------- */
.subnav {
  position: sticky;
  top: 0;
  z-index: 15;
  padding: 12px var(--edge);
  background: rgba(15, 20, 22, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background var(--fast), color var(--fast), box-shadow var(--fast);
}
.subnav a small { color: var(--accent); font-size: inherit; }
.subnav a:hover { color: var(--text); }
.subnav a[aria-current="true"] { background: var(--text); color: var(--accent-ink); box-shadow: none; }
.subnav a[aria-current="true"] small { color: inherit; }
/* Anchors and focused elements must not land under the sticky sub-nav */
.page:has(.subnav) { scroll-padding-top: 76px; }

/* ---------- Intro block used under page heroes ---------- */
.intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.intro__lead { font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.45rem); line-height: 1.45; }
.intro__text { color: var(--muted); }
.intro__text p + p { margin-top: 14px; }

/* ---------- Service sections: text and photos in two equal columns ---------- */
.service {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.service:nth-of-type(even) .service__media { order: -1; }
.service__num { color: var(--accent); }
.service__title { margin-top: 14px; font-size: clamp(1.8rem, 1rem + 3vw, 3.4rem); }
.service__kicker { margin-top: 14px; font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem); font-weight: 600; }
.service__text { margin-top: 14px; max-width: 54ch; color: var(--muted); }
.ticks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: clamp(20px, 2.4vw, 30px);
}
.ticks li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}
.ticks svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent); }
.service__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: clamp(24px, 3vw, 36px); }
.service__free { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.service__free svg { width: 16px; height: 16px; }

/* Three-photo collage: one tall + two stacked */
.collage {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(10px, 1.2vw, 16px);
  aspect-ratio: 5 / 4.4;
}
.collage > * { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--card-raised); }
.collage > :first-child { grid-row: span 2; }
.collage .work__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.collage .work__btn:hover img, .collage .work__btn:focus-visible img { transform: scale(1.05); }
.collage figcaption { display: none; }

/* ---------- Values (about) ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
.value {
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--radius-sm);
  background: var(--card-raised);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}
.value:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(217, 196, 160, 0.35); }
.value svg { width: 28px; height: 28px; color: var(--accent); }
.value h3 { margin-top: 26px; font-size: var(--text-h3); font-weight: 600; }
.value p { margin-top: 10px; color: var(--muted); font-size: var(--text-sm); }

/* ---------- Timeline (about: method A to Z) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px);
  counter-reset: step;
}
.timeline li { position: relative; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.timeline li::before {
  content: "";
  position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--muted);
}
.timeline li.is-free { border-top-color: rgba(217, 196, 160, 0.6); }
.timeline li.is-free::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(217, 196, 160, 0.18); }
.timeline__num { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); font-weight: 400; color: var(--muted); }
.timeline li.is-free .timeline__num { color: var(--accent); }
.timeline h3 { margin-top: 12px; font-size: var(--text-h3); font-weight: 600; }
.timeline p { margin-top: 8px; color: var(--muted); font-size: var(--text-sm); }
.timeline .badge { margin-top: 12px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(217, 196, 160, 0.14);
  color: var(--accent);
}

/* ---------- About split ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-sm); }
.split__media figcaption { margin-top: 12px; }
.split__body > * + * { margin-top: 16px; }
.split__body p { color: var(--muted); max-width: 58ch; }
.split__body .h2 + p { margin-top: clamp(20px, 2.6vw, 30px); }
.split__body .intro__lead { color: var(--text); }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.contact__info > * + * { margin-top: 22px; }
.contact__info .free-list { margin-top: clamp(24px, 3vw, 36px); }
.contact__lines { display: grid; gap: 14px; margin-top: clamp(24px, 3vw, 36px); }
.contact__line {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--card-raised);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--fast), transform var(--fast) var(--ease);
}
.contact__line:hover { box-shadow: inset 0 0 0 1px rgba(217, 196, 160, 0.45); transform: translateY(-2px); }
.contact__line > svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.contact__line span { display: grid; gap: 2px; min-width: 0; }
.contact__line strong { font-size: clamp(1rem, 0.92rem + 0.4vw, 1.2rem); font-weight: 600; overflow-wrap: anywhere; }
.contact__line small { color: var(--muted); }

.form {
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--card-raised);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(0, 0, 0, 0.7);
}
.form__title { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); }
.form__note { margin-top: 8px; color: var(--muted); font-size: var(--text-sm); }
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  margin-top: clamp(20px, 2.6vw, 30px);
}
.field { display: grid; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--muted); }
.field label b { color: var(--accent); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text);
  font: inherit;
  font-size: max(16px, 1em); /* below 16px iOS Safari zooms in on focus */
  transition: box-shadow var(--fast), background var(--fast);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ba5a9' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select option { background: var(--card); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: rgba(155, 165, 169, 0.7); }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { box-shadow: inset 0 0 0 2px #e58a7a; }
.field__error { min-height: 0; color: #f0a596; font-size: var(--text-xs); }
.field__error:empty { display: none; }

.check { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: var(--text-sm); cursor: pointer; }
/* The consent box must not inherit the text-field styles above */
.field .check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; flex: none; background: none; box-shadow: none; accent-color: var(--accent); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.form__status { font-size: var(--text-sm); color: var(--muted); }
.form__status.is-ok { color: var(--accent); }
.form__status.is-error { color: #f0a596; }
/* Honeypot: hidden from people, visible to naive bots */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .service, .intro, .split, .contact { grid-template-columns: minmax(0, 1fr); }
  .service .service__media, .service:nth-of-type(even) .service__media { order: -1; }
  .collage { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 640px) {
  .ticks, .form__grid, .values { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .page-hero__actions .btn, .service__actions .btn, .form__foot .btn { flex: 1 1 100%; }
  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr; aspect-ratio: 4 / 4.2; }
  .collage > :first-child { grid-row: auto; grid-column: span 2; }
  .subnav { padding-inline: 0; }
  .subnav ul { padding-inline: var(--card-pad); }
}

/* ==========================================================================
   Homepage-style details for the inner pages
   ========================================================================== */

/* Page hero: the same "free" chips as the homepage hero */
.page-hero__free { justify-content: flex-start; margin-top: clamp(18px, 2.4vw, 26px); }

/* Services: number pill, card-style ticks, chip-style "free" note */
.service__num.num-pill { font-size: 0.78rem; }
.ticks { gap: 10px; }
.ticks li {
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--card-raised);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--fast), transform var(--fast) var(--ease);
}
.ticks li:hover { box-shadow: inset 0 0 0 1px rgba(217, 196, 160, 0.45); transform: translateY(-2px); }
.ticks svg {
  box-sizing: content-box;
  width: 15px; height: 15px;
  margin-top: 0;
  padding: 6px;
  border-radius: 50%;
  background: rgba(217, 196, 160, 0.12);
}
.service__free {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(217, 196, 160, 0.12);
  box-shadow: inset 0 0 0 1px rgba(217, 196, 160, 0.3);
}

/* Collage tiles: border drawn above the photo, clean rounded clipping, lift on hover */
.collage > * {
  clip-path: inset(0 round var(--radius-sm));
  transform: translateZ(0);
  transition: transform 500ms var(--ease);
}
.collage > *::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}
.collage > *:hover { transform: translateY(-4px) translateZ(0); }
.collage__tag { position: absolute; top: 14px; left: 14px; z-index: 2; pointer-events: none; }

/* Timeline steps as cards; the free ones highlighted like on the homepage */
.timeline { gap: 14px; }
.timeline li {
  padding: clamp(18px, 2vw, 24px);
  border-top: 0;
  border-radius: var(--radius-sm);
  background: var(--card-raised);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}
.timeline li::before { display: none; }
.timeline li:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(217, 196, 160, 0.4); }
.timeline li.is-free {
  background: linear-gradient(135deg, rgba(217, 196, 160, 0.13), rgba(217, 196, 160, 0.04));
  box-shadow: inset 0 0 0 1px rgba(217, 196, 160, 0.32);
}
.timeline__num { color: rgba(217, 196, 160, 0.35); }

/* About: photo label as a glass pill on the image */
.split__media { position: relative; }
.split__media figcaption.num-pill { position: absolute; top: 14px; right: 14px; margin: 0; }

/* Contact: icon circles like the CTA panel, WhatsApp line, rich "free" card */
.contact__line > svg {
  box-sizing: content-box;
  width: 18px; height: 18px;
  padding: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}
.contact__line--wa > svg { background: #25d366; color: #fff; }
.free-card {
  margin-top: clamp(24px, 3vw, 36px);
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(217, 196, 160, 0.12), rgba(217, 196, 160, 0.04));
  box-shadow: inset 0 0 0 1px rgba(217, 196, 160, 0.28);
}
.free-card__title { margin-bottom: 4px; color: var(--accent); }
.contact__info .free-card .free-list { margin-top: 0; }

@media (max-width: 640px) {
  .ticks { gap: 8px; }
}
/* Exactly three steps (contact page): three equal columns, no empty slot */
.timeline:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .timeline:has(> li:nth-child(3):last-child) { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Custom dropdown (select.js) ---------- */
.cselect { position: relative; }
.cselect__native {
  position: absolute !important;
  width: 1px !important; height: 1px !important; min-height: 0 !important;
  padding: 0 !important; margin: 0 !important;
  overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none;
}
.cselect__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text);
  font-size: max(16px, 1em);
  text-align: left;
  transition: box-shadow var(--fast), background var(--fast);
}
.cselect__btn:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.cselect__btn:focus-visible, .cselect.is-open .cselect__btn {
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.cselect.is-placeholder .cselect__value { color: rgba(155, 165, 169, 0.85); }
.cselect__chevron {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 300ms var(--ease);
}
.cselect.is-open .cselect__chevron { transform: rotate(180deg); }
.field.is-invalid .cselect__btn { box-shadow: inset 0 0 0 2px #e58a7a; }

.cselect__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  max-height: 290px;
  overflow-y: auto;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: #1d2528;
  box-shadow: inset 0 0 0 1px rgba(217, 196, 160, 0.3), 0 24px 48px -20px rgba(0, 0, 0, 0.85);
  scrollbar-width: thin;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 180ms var(--ease), transform 220ms var(--ease), visibility 0s linear 220ms;
}
.cselect.is-up .cselect__list { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; transform: translateY(6px) scale(0.98); }
.cselect.is-open .cselect__list { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms var(--ease), transform 220ms var(--ease); }
.cselect.no-motion .cselect__list { transition: none; }
.cselect__list:focus { outline: none; }
.cselect__opt {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: 6px;
  color: rgba(238, 240, 238, 0.88);
  cursor: pointer;
  transition: background var(--fast), color var(--fast);
}
.cselect__opt svg { width: 16px; height: 16px; flex: none; color: var(--accent); opacity: 0; transition: opacity var(--fast); }
.cselect__opt.is-active { background: rgba(217, 196, 160, 0.1); color: var(--text); }
.cselect__opt[aria-selected="true"] { color: var(--accent); font-weight: 600; }
.cselect__opt[aria-selected="true"] svg { opacity: 1; }
/* Phones: hero buttons take the full width, like on the homepage */
@media (max-width: 640px) {
  .page-hero__actions { width: 100%; }
  .page-hero__actions .btn { flex: 1 1 100%; }
}

/* Phones: the "free visit" badge under each service button is full width and centred too */
@media (max-width: 640px) {
  .service__free { width: 100%; justify-content: center; text-align: center; }
}
/* Page hero bottom: lead on top; the "free" chips and the button share one row (button on the right) */
.page-hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "lead ." "chips actions";
  align-items: center;
  gap: 0 40px;
}
.page-hero__lead { grid-area: lead; }
.page-hero__row > .page-hero__actions { grid-area: actions; margin-top: clamp(18px, 2.4vw, 26px); }
.page-hero__row > .page-hero__free { grid-area: chips; }
@media (max-width: 640px) {
  /* Phones: lead, full-width button, then the one-row chips */
  .page-hero__row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "actions" "chips"; }
  .page-hero__row > .page-hero__actions { margin-top: 20px; }
  .page-hero__row > .page-hero__free { margin-top: 14px; }
}

/* Long service titles ("Aménagements extérieurs") must fit narrow phones */
@media (max-width: 640px) {
  .service__title { font-size: clamp(1.35rem, 7.4vw, 2.2rem); overflow-wrap: anywhere; }
}

/* ---------- About: CTA under the intro ---------- */
.split__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 2.8vw, 32px); }

/* ---------- About: several trades vs one company ---------- */
.compare {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
  align-items: stretch;
}
.compare__col {
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.8vw, 38px);
  border-radius: var(--radius);
  background: var(--card-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.compare__col:not(.compare__col--us) { opacity: 0.9; }
.compare__col--us {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(217, 196, 160, 0.22), transparent 60%),
    linear-gradient(160deg, #2a2f2c, #1d2427 70%);
  box-shadow: inset 0 0 0 1px rgba(217, 196, 160, 0.45), 0 30px 60px -30px rgba(217, 196, 160, 0.35);
}
.compare__head {
  display: flex; align-items: center; gap: 10px;
  min-height: 36px;
  margin-bottom: 18px;
  color: var(--muted);
}
.compare__col--us .compare__head { color: var(--accent); }
.compare__head .logo__mark { width: 30px; height: 30px; color: var(--accent); }
.compare__head .logo__text { font-size: 1.25rem; color: var(--text); }
.compare__list { display: grid; gap: 10px; }
.compare__list li {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--text-sm);
  color: var(--muted);
}
.compare__col--us .compare__list li {
  background: rgba(217, 196, 160, 0.07);
  box-shadow: inset 0 0 0 1px rgba(217, 196, 160, 0.2);
  color: var(--text);
  font-weight: 500;
  transition: transform var(--fast) var(--ease), background var(--fast);
}
.compare__col--us .compare__list li:hover { transform: translateX(4px); background: rgba(217, 196, 160, 0.12); }
.compare__list svg {
  box-sizing: content-box;
  width: 14px; height: 14px; flex: none;
  padding: 6px;
  border-radius: 50%;
  background: rgba(229, 138, 122, 0.12);
  color: #e39a8c;
}
.compare__col--us .compare__list svg { background: var(--accent); color: var(--accent-ink); stroke-width: 2.2; }
.compare__cta { align-self: flex-start; margin-top: clamp(20px, 2.4vw, 28px); }
/* Round "VS" badge between the two cards */
.compare__vs {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  display: grid; place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-bar);
  box-shadow: inset 0 0 0 1px rgba(217, 196, 160, 0.5), 0 0 0 8px var(--bg);
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* ---------- About: domains as full-photo cards ---------- */
.domains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.domain {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 8px;
  min-height: clamp(280px, 26vw, 360px);
  padding: clamp(18px, 2vw, 26px);
  border-radius: var(--radius-sm);
  overflow: hidden;
  isolation: isolate;
  clip-path: inset(0 round var(--radius-sm));
  transform: translateZ(0);
  background: var(--card-raised);
  transition: transform 500ms var(--ease);
}
.domain__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.85);
  transition: transform 900ms var(--ease), filter 600ms var(--ease);
}
.domain::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12, 17, 20, 0.1) 0%, rgba(12, 17, 20, 0.3) 40%, rgba(12, 17, 20, 0.92) 100%);
}
/* border drawn above the photo */
.domain::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
  transition: box-shadow 500ms var(--ease);
}
.domain .num-pill { position: absolute; top: 16px; left: 16px; font-size: 0.75rem; }
.domain h3 { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); font-weight: 700; }
.domain p { max-width: 36ch; color: rgba(238, 240, 238, 0.8); font-size: var(--text-sm); }
.domain__more {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  max-height: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: max-height 400ms var(--ease), opacity 400ms var(--ease), transform 400ms var(--ease);
}
.domain__more svg { width: 15px; height: 15px; }
.domain:hover, .domain:focus-visible { transform: translateY(-6px) translateZ(0); }
.domain:hover::before, .domain:focus-visible::before { box-shadow: inset 0 0 0 1px rgba(217, 196, 160, 0.55); }
.domain:hover .domain__img, .domain:focus-visible .domain__img { transform: scale(1.07); filter: none; }
.domain:hover .domain__more, .domain:focus-visible .domain__more { max-height: 24px; opacity: 1; transform: none; }
@media (hover: none) { .domain__more { max-height: 24px; opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .domains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  /* Stacked cards: the badge's grid row collapses to 0 (-29px margins = half its 58px height),
     so it sits exactly in the middle of the 32px space and overlaps both cards by 13px */
  .compare { gap: 16px; }
  .compare__vs { position: relative; left: auto; top: auto; justify-self: center; transform: none; margin: -29px 0; }
}
@media (max-width: 640px) {
  .domains { grid-template-columns: minmax(0, 1fr); }
  .domain { min-height: 240px; }
  .compare__cta { align-self: stretch; min-width: 0; padding-inline: 16px; white-space: normal; text-align: center; }
  .split__actions .btn { flex: 1 1 100%; min-width: 0; padding-inline: 16px; white-space: normal; text-align: center; }
}
