/*
 * HogarPro landing.
 * Direction: compact ultrabold signage type, warm gray canvas, cream modules
 * joined by 16px seams, printed halftone dots. Brand navy owns the large
 * story/conversion planes and the hero ground; brand orange is reserved for
 * actions, proof cards and dots. Text on orange is navy ink (white fails AA).
 */

:root {
  /* Color: brand (sampled from the logo) */
  --orange: #f86c05;
  --orange-hover: #ff7d1f;
  --orange-text: #c24e00; /* orange for text on light surfaces (4.3:1 on cream) */
  --navy: #04244e;
  --ink: #021a38;

  /* Color: neutrals */
  --canvas: #e3e3df;
  --panel: #f7f6f3;
  --paper: #fbfaf7;
  --muted: #4d5058;
  --rule: rgba(2, 26, 56, 0.55);
  --rule-light: rgba(247, 246, 243, 0.7);
  --window-gray: #9a9b9e;
  --error: #b42318;
  --error-on-navy: #ffb4a8;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --fs-hero: clamp(3.25rem, 1.6rem + 5.2vw, 6.75rem);
  --fs-manifesto: clamp(3.5rem, 0.8rem + 9.4vw, 11.8rem);
  --fs-section: clamp(2.6rem, 1.2rem + 4vw, 5rem);
  --fs-card: clamp(2.2rem, 1.6rem + 1.6vw, 3rem);
  --fs-compact: clamp(2rem, 1.5rem + 1.3vw, 2.5rem);
  --fs-proof: clamp(3rem, 2.4rem + 1.8vw, 4rem);
  --fs-lead: 1.125rem;
  --fs-body: 1rem;

  /* Space */
  --gutter: clamp(16px, 3.9vw, 56px);
  --seam: 16px;
  --pad-card: clamp(24px, 2.8vw, 40px);
  --chapter: clamp(96px, 11vw, 200px);

  /* Shape */
  --r-panel: 40px;
  --r-card: 32px;
  --r-badge: 16px;
  --r-pill: 800px;

  /* Motion */
  --ease: cubic-bezier(0.44, 0, 0.56, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 500 var(--fs-body)/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 12px 20px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--paper);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

.wrap {
  width: 100%;
  max-width: 1540px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type recipes ---------- */

.display,
.manifesto,
.section-title,
.card-title,
.compact-title,
.story__title,
.proof__value,
.step__num,
.wordmark__text,
.closing__mark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

.display { font-size: var(--fs-hero); line-height: .92; }
.manifesto { font-size: var(--fs-manifesto); line-height: .9; }
.section-title { font-size: var(--fs-section); line-height: 1; text-align: center; }
.section-title--left { text-align: left; }
.card-title { font-size: var(--fs-card); line-height: 1; }
.compact-title { font-size: var(--fs-compact); line-height: 1; }

.lead { font-size: var(--fs-lead); line-height: 1.5; text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  font-size: .875rem; line-height: 1.3; color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange); flex: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--r-pill);
  font: 500 1rem/1.25 var(--font-body);
  white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 44px; padding: 10px 20px; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }

.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--orange-hover); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--navy); }

.btn--dotted {
  background: transparent; color: var(--ink);
  border: 1.5px dotted var(--ink);
}
.btn--dotted:hover { background: rgba(2, 26, 56, .06); }

.btn--dotted-light {
  background: transparent; color: var(--paper);
  border: 1.5px dotted var(--rule-light);
}
.btn--dotted-light:hover { background: rgba(247, 246, 243, .08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header / floating nav ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 16px var(--gutter);
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  max-width: 1428px;
  height: 72px;
  margin-inline: auto;
  padding: 8px 8px 8px 24px;
  border-radius: var(--r-pill);
  background: rgba(227, 227, 223, 0);
  transition: max-width .45s var(--ease-out), background-color .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}

.is-scrolled .nav {
  max-width: 1040px;
  height: 64px;
  background: rgba(247, 246, 243, .92);
  box-shadow: 0 1px 0 rgba(2, 26, 56, .06), 0 10px 30px -18px rgba(2, 26, 56, .35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.wordmark { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.wordmark__roof { width: 36px; height: 26px; fill: var(--navy); }
.wordmark__text { font-size: 1.75rem; line-height: 1; text-transform: uppercase; display: flex; gap: .18em; color: var(--navy); }
.wordmark__pro { color: var(--orange); }

.nav__links {
  display: flex; align-items: center; gap: 4px;
  margin-inline: auto;
}
.nav__links a {
  display: block; padding: 8px 14px; border-radius: var(--r-pill);
  transition: background-color .1s var(--ease);
}
.nav__links a:hover { background: rgba(2, 26, 56, .07); }

.nav__actions { display: flex; align-items: center; gap: 8px; }

.nav__phone {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-right: 1.5px dotted var(--rule);
  margin-right: 4px;
  border-radius: 0;
  font-variant-numeric: tabular-nums;
}
.nav__phone .icon { width: 18px; height: 18px; color: var(--orange); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1.5px dotted var(--ink); border-radius: 50%;
  background: transparent;
}

/* ---------- Hero: shaped halftone poster ---------- */

.hero { padding-top: 104px; }

.hero__stage {
  position: relative;
  height: clamp(600px, 52vw, 790px);
  isolation: isolate;
}

.hero__art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  /* Rounded here, not on the stage: clipping the pockets too would leave a
     navy anti-aliasing hairline around the two outer corners they cover. */
  clip-path: inset(0 round var(--r-panel));
}

.hero__pocket {
  position: absolute;
  background: var(--canvas);
}

/* Concave inner turns where a pocket meets the poster edge */
.hero__pocket::before,
.hero__pocket::after {
  content: "";
  position: absolute;
  width: var(--r-panel); height: var(--r-panel);
  pointer-events: none;
}

.hero__pocket--title {
  top: 0; left: 0;
  width: min(52%, 720px);
  padding: 28px 48px 44px 0;
  border-bottom-right-radius: var(--r-panel);
}
.hero__pocket--title::before,
.hero__pocket--title::after {
  background: radial-gradient(circle at 100% 100%, transparent 39.5px, var(--canvas) 40.5px);
}
.hero__pocket--title::before { top: 0; left: 100%; }
.hero__pocket--title::after { top: 100%; left: 0; }

.hero__pocket--action {
  right: 0; bottom: 0;
  width: min(42%, 580px);
  padding: 36px 0 0 40px;
  border-top-left-radius: var(--r-panel);
}
.hero__pocket--action::before,
.hero__pocket--action::after {
  background: radial-gradient(circle at 0 0, transparent 39.5px, var(--canvas) 40.5px);
}
.hero__pocket--action::before { bottom: 100%; right: 0; }
.hero__pocket--action::after { bottom: 0; right: 100%; }
.hero__pocket--action .lead { margin-bottom: 24px; max-width: 52ch; }

/* Assurance rail (three plain promises under the poster) */
.assurance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--seam);
  border-radius: var(--r-pill);
  background: var(--panel);
}
.assurance li {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 20px 24px;
  text-align: center;
}
.assurance li + li { border-left: 1.5px dotted var(--rule); }
.assurance .icon { color: var(--orange); }

/* ---------- Services ---------- */

.services { padding-top: var(--chapter); }
.services .manifesto { margin-bottom: clamp(48px, 6vw, 80px); }

.services__grid {
  display: grid;
  grid-template-columns: minmax(320px, 5fr) 7fr;
  gap: var(--seam);
  align-items: stretch;
}

.selector { display: flex; flex-direction: column; gap: 10px; }

.selector__tab {
  display: flex; align-items: center; gap: 20px;
  width: 100%;
  padding: 14px 28px 14px 14px;
  border: 1.5px dotted var(--rule);
  border-radius: var(--r-pill);
  background: transparent;
  text-align: left;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), border-radius .3s var(--ease-out);
}
.selector__tab:hover { background: rgba(247, 246, 243, .6); }

.selector__tab[aria-selected="true"] {
  flex: 1 1 auto;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: var(--pad-card);
  border-color: transparent;
  border-radius: var(--r-panel);
  background: var(--panel);
}

.selector__body { display: flex; flex-direction: column; gap: 10px; }

.selector__title {
  font: 800 1.75rem/1 var(--font-display);
  letter-spacing: .02em;
}
.selector__tab[aria-selected="true"] .selector__title { font-size: var(--fs-card); letter-spacing: 0; }

.selector__desc { display: none; color: var(--muted); max-width: 40ch; text-wrap: pretty; }
.selector__tab[aria-selected="true"] .selector__desc { display: block; font-size: var(--fs-lead); }

/* Dot-matrix pictogram badge */
.badge {
  display: grid; place-items: center;
  width: 56px; height: 56px; flex: none;
  border-radius: var(--r-badge);
  background: var(--ink);
}
.badge svg { width: 70%; height: 70%; }
.selector__tab[aria-selected="true"] .badge { width: 80px; height: 80px; }

.story {
  border-radius: var(--r-panel);
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
}
.story__panel {
  display: flex; flex-direction: column; align-items: flex-start;
  height: 100%;
  padding: clamp(32px, 4.4vw, 64px);
}
.story__panel[hidden] { display: none; }
.story__kicker { color: var(--orange); font-weight: 700; margin-bottom: 20px; }
.story__title { font-size: var(--fs-card); line-height: 1; margin-bottom: 20px; max-width: 20ch; }
.story__copy { font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); line-height: 1.45; max-width: 36ch; color: rgba(247, 246, 243, .86); text-wrap: pretty; }

.story__list {
  width: 100%;
  margin: auto 0 32px;
  padding-top: 40px;
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 32px;
}
.story__list li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 14px 0;
  border-top: 1.5px dotted rgba(247, 246, 243, .35);
}
.story__list li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); flex: none; transform: translateY(-1px);
}

.story__panel.is-entering { animation: story-in .45s var(--ease-out); }
@keyframes story-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Proof strip ---------- */

.proof { padding-top: var(--chapter); }
.proof .section-title { margin-bottom: clamp(48px, 5.5vw, 80px); }

.proof__strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  max-width: 1166px;
  margin-inline: auto;
}
.proof__card {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 72px;
  min-height: 250px;
  padding: var(--pad-card);
  border-radius: var(--r-panel);
  background: var(--orange);
  color: var(--ink);
}
/* Same-color necks bridging the seams: the row reads as one joined assembly */
.proof__card + .proof__card::before {
  content: "";
  position: absolute; right: 100%; top: 50%;
  width: 16px; height: 56px;
  transform: translateY(-50%);
  background: var(--orange);
}
.proof__label { font-size: var(--fs-lead); line-height: 1.35; max-width: 16ch; }
.proof__value { font-size: var(--fs-proof); line-height: 1; }

/* ---------- Gray halftone atmosphere ---------- */

.has-dots {
  position: relative;
  isolation: isolate;
}
.has-dots::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image: var(--dots, none);
  background-size: max(1800px, 140%) auto;
  background-position: 50% 30%;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

/* ---------- Process ---------- */

.process { padding-block: var(--chapter); }
.process__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.process__intro { max-width: 44ch; justify-self: end; color: var(--muted); }

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--seam);
  counter-reset: step;
}
.step {
  display: flex; flex-direction: column; justify-content: space-between; gap: 64px;
  min-height: 340px;
  padding: var(--pad-card);
  border-radius: var(--r-panel);
  background: var(--panel);
}
.step:nth-child(even) { transform: translateY(40px); }
.step__num { font-size: var(--fs-proof); line-height: 1; color: var(--orange-text); }
.step__title { font: 800 1.875rem/1.02 var(--font-display); margin-bottom: 12px; text-wrap: balance; }
.step p { color: var(--muted); text-wrap: pretty; }

/* ---------- Contact panel ---------- */

.contact { padding-top: clamp(24px, 4vw, 64px); }

.contact__panel {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 5vw, 80px);
  padding: clamp(32px, 5.5vw, 88px) clamp(24px, 4.4vw, 64px);
  border-radius: var(--r-panel);
  background: var(--navy);
  color: var(--paper);
}

.contact__sub { margin-top: 20px; font-size: var(--fs-lead); color: rgba(247, 246, 243, .82); max-width: 40ch; }

.direct { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.direct__label { font-weight: 700; margin-bottom: 4px; }
.direct__item {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 24px 8px 8px;
  border: 1.5px dotted rgba(247, 246, 243, .4);
  border-radius: var(--r-pill);
  transition: background-color .15s var(--ease);
  max-width: 380px;
}
.direct__item:hover { background: rgba(247, 246, 243, .07); }
.direct__kind { display: block; font-size: .8125rem; color: rgba(247, 246, 243, .7); line-height: 1.2; }
.direct__value { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }

.disc {
  display: grid; place-items: center;
  width: 48px; height: 48px; flex: none;
  border-radius: 50%;
  background: var(--orange); color: var(--ink);
}
.disc--lg { width: 80px; height: 80px; transition: transform .2s var(--ease-out), background-color .15s var(--ease); }
.disc--lg .icon { width: 30px; height: 30px; }
.disc--lg:hover { background: var(--orange-hover); transform: translateY(-3px); }

/* Form */
.form { display: flex; flex-direction: column; gap: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { font-weight: 700; padding: 0; }
.field__hint { font-weight: 500; color: rgba(247, 246, 243, .65); margin-left: 6px; font-size: .875rem; }

.input {
  width: 100%;
  min-height: 60px;
  padding: 16px 26px;
  border: 1.5px dotted var(--rule-light);
  border-radius: 100px;
  background: transparent;
  color: var(--paper);
  font-size: 1.0625rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
textarea.input { min-height: 120px; border-radius: 28px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: rgba(247, 246, 243, .74); }
.input:hover { background: rgba(247, 246, 243, .04); }
.input:focus { outline: none; border-style: solid; border-color: var(--orange); background: rgba(247, 246, 243, .06); }
.input[aria-invalid="true"] { border-color: var(--error-on-navy); border-style: solid; }

.field__error { color: var(--error-on-navy); font-size: .9375rem; }
.field__error::before { content: "● "; font-size: .7em; vertical-align: .15em; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip, .segmented label { position: relative; cursor: pointer; }
.chip input, .segmented input {
  position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer;
}
.chip span, .segmented span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 10px 20px;
  border: 1.5px dotted var(--rule-light);
  border-radius: var(--r-pill);
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
  user-select: none;
}
.chip:hover span, .segmented label:hover span { background: rgba(247, 246, 243, .07); }
.chip input:checked + span,
.segmented input:checked + span {
  background: var(--orange); color: var(--ink); border-color: var(--orange); border-style: solid;
}
.chip input:checked + span::before {
  content: ""; width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9.5 16.2-4.2-4.2-1.4 1.4 5.6 5.6L21.1 7.4 19.7 6 9.5 16.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9.5 16.2-4.2-4.2-1.4 1.4 5.6 5.6L21.1 7.4 19.7 6 9.5 16.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chip input:focus-visible + span,
.segmented input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 3px; }
.chips.is-invalid .chip span { border-color: var(--error-on-navy); }

.segmented { display: flex; gap: 8px; flex-wrap: wrap; }

.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form__note { font-size: .875rem; color: rgba(247, 246, 243, .65); }
.form__status:empty { display: none; }
.form__status {
  padding: 16px 22px;
  border-radius: 24px;
  background: rgba(247, 246, 243, .1);
  font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq { padding-top: var(--chapter); }
.faq .section-title { margin-bottom: clamp(40px, 5vw, 72px); }
.faq__list {
  max-width: 938px; margin-inline: auto;
  border-radius: var(--r-panel);
  background: var(--panel);
  padding: 8px clamp(20px, 4vw, 48px);
}
.faq__item + .faq__item { border-top: 1.5px dotted var(--rule); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0;
  font: 800 clamp(1.375rem, 1.2rem + .6vw, 1.75rem)/1.1 var(--font-display);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon {
  width: 40px; height: 40px; padding: 9px;
  border-radius: 50%;
  background: var(--ink); fill: var(--paper);
  transition: transform .3s var(--ease-out), background-color .15s var(--ease);
}
.faq__item summary:hover .icon { background: var(--navy); }
.faq__item[open] summary .icon { transform: rotate(45deg); background: var(--orange); fill: var(--ink); }
.faq__item p { padding: 0 64px 28px 0; color: var(--muted); font-size: var(--fs-lead); max-width: 64ch; text-wrap: pretty; }

/* ---------- Closing assembly ---------- */

.closing { padding-block: var(--chapter) var(--gutter); }

.closing__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--seam);
}

.closing__statement {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  gap: 32px;
  min-height: 320px;
  padding: var(--pad-card);
  border-radius: var(--r-panel);
  background: var(--ink);
  color: var(--paper);
}
.closing__mark { font-size: 2rem; line-height: 1; text-transform: uppercase; display: flex; gap: .18em; color: var(--paper); }
.closing__statement .compact-title { max-width: 20ch; }

.closing__stack { display: flex; flex-direction: column; gap: var(--seam); }
.discs { display: flex; gap: var(--seam); }

.utility {
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: var(--pad-card);
  border-radius: var(--r-panel);
  background: var(--panel);
}
.utility__top { display: flex; align-items: center; gap: 32px; }
.utility__top img { width: 150px; height: auto; flex: none; }
.utility__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.utility__links a:hover { color: var(--orange); }
.utility__legal { padding-top: 20px; border-top: 1.5px dotted var(--rule); font-size: .875rem; color: var(--muted); }

/* ---------- Mobile dock ---------- */

.dock { display: none; }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .step.reveal:nth-child(even) { transform: translateY(58px); }
.js .step.reveal.is-in:nth-child(even) { transform: translateY(40px); }

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .nav__links a { padding: 8px 10px; }
  .nav__phone span { display: none; }
  .nav__phone { border-right: 0; padding: 10px; }
  .story__list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(even),
  .js .step.reveal.is-in:nth-child(even) { transform: none; }
  .js .step.reveal:nth-child(even) { transform: translateY(18px); }
}

@media (max-width: 1000px) {
  .nav__links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch;
    padding: 12px;
    border-radius: 28px;
    background: var(--panel);
    box-shadow: 0 20px 40px -20px rgba(2, 26, 56, .4);
  }
  .nav { position: relative; }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 14px 18px; font-size: 1.125rem; }
  .nav__toggle { display: inline-flex; }
  .nav__actions { margin-left: auto; }

  /* Poster stacks: headline, poster, support */
  .hero__stage { height: auto; }
  .hero__art {
    position: relative; z-index: 0;
    height: auto; aspect-ratio: 4 / 3;
    clip-path: inset(0 round var(--r-card));
  }
  .hero__pocket { position: static; width: auto; padding: 0; border-radius: 0; }
  .hero__pocket::before, .hero__pocket::after { display: none; }
  .hero__pocket--title { padding: 16px 0 28px; }
  .hero__pocket--action { padding-top: 24px; }
  .hero__stage { display: flex; flex-direction: column; }
  .hero__pocket--title { order: 1; }
  .hero__art { order: 2; }
  .hero__pocket--action { order: 3; }

  .assurance { grid-template-columns: 1fr; border-radius: var(--r-card); margin-top: 32px; }
  .assurance li { justify-content: flex-start; text-align: left; padding: 16px 24px; }
  .assurance li + li { border-left: 0; border-top: 1.5px dotted var(--rule); }

  .services__grid { grid-template-columns: minmax(0, 1fr); }
  .services__grid > * { min-width: 0; }
  .story { display: none; }
  .selector__tab[aria-selected="true"] { border-radius: var(--r-card); }

  .proof__strip { grid-template-columns: 1fr 1fr; }
  .proof__card:nth-child(odd)::before { display: none; }

  .process__head { grid-template-columns: 1fr; }
  .process__intro { justify-self: start; }

  .contact__panel { grid-template-columns: 1fr; }
  .direct { margin-top: 32px; }

  .closing__grid { grid-template-columns: 1fr; }
}

/* Mobile: the active service panel moves into the selector (accordion) */
.selector .story__panel {
  margin-top: -6px;
  border-radius: var(--r-card);
  background: var(--navy);
  color: var(--paper);
}

@media (max-width: 640px) {
  :root { --r-panel: 28px; }
  html { scroll-padding-top: 88px; }
  .site-header { padding: 10px 12px; }
  .nav { height: 60px; padding: 6px 6px 6px 16px; }
  .is-scrolled .nav { height: 60px; }
  .wordmark__text { font-size: 1.5rem; }
  .wordmark__roof { width: 30px; height: 22px; }
  .nav__actions .btn--sm { display: none; }
  .hero { padding-top: 84px; }
  .hero .btn-row .btn { flex: 1 1 100%; }

  .selector__tab { padding: 10px 20px 10px 10px; gap: 14px; }
  .selector__title { font-size: 1.5rem; }
  .selector .story__list { grid-template-columns: 1fr; }
  .selector .story__panel { padding: 28px 20px; }
  .story__panel .btn { width: 100%; white-space: normal; text-align: center; }
  .badge { width: 48px; height: 48px; border-radius: 14px; }
  .selector__tab[aria-selected="true"] .badge { width: 64px; height: 64px; }

  .proof__strip { grid-template-columns: 1fr; gap: var(--seam); }
  .proof__card { min-height: 0; gap: 28px; }
  .proof__card::before { display: none; }

  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; gap: 32px; }

  .form__row { grid-template-columns: 1fr; }
  .form__actions .btn { flex: 1 1 100%; }
  .faq__item p { padding-right: 0; }

  .discs .disc--lg { width: 64px; height: 64px; }
  .utility__top { flex-direction: column; align-items: flex-start; gap: 20px; }

  .dock {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px;
    border-radius: var(--r-pill);
    background: rgba(247, 246, 243, .94);
    box-shadow: 0 16px 40px -16px rgba(2, 26, 56, .5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform: translateY(140%);
    transition: transform .4s var(--ease-out);
  }
  .dock.is-visible { transform: none; }
  .dock .btn { min-height: 52px; }
  body { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .step.reveal:nth-child(even) { opacity: 1; transform: none; }
}
