/* ==========================================================================
   RAE'S RESUMES — Design System
   Brand preserved from raesresume.com: ink-on-paper monochrome editorial,
   high-contrast serif (logo monogram) + Inter body, warm off-white paper.
   Accent: muted bronze (from the Twenty Twenty-Four sandstone family).
   ========================================================================== */

:root {
  /* Color tokens — preserved brand palette */
  --ink: #141414;
  --ink-soft: #2b2b2b;
  --paper: #f7f5f1;
  --paper-deep: #efece5;
  --white: #ffffff;
  --muted: #6b6760;
  --line: #e3dfd7;
  --bronze: #b08d57;
  --bronze-soft: #c2a990;
  --gold-star: #d9a441;

  /* Type */
  --serif: "Playfair Display", "Cardo", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Depth & shape */
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(20, 20, 20, 0.04), 0 12px 32px rgba(20, 20, 20, 0.07);
  --shadow-lift: 0 2px 4px rgba(20, 20, 20, 0.06), 0 20px 48px rgba(20, 20, 20, 0.12);

  /* Rhythm */
  --section-pad: clamp(4.5rem, 10vw, 8rem);
  --container: 1160px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* The UA's [hidden] rule is a bare display:none, which any component rule
   that sets display (.field { display: flex }, for one) quietly beats — so
   a field toggled with the hidden attribute would still render. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

section { padding-block: var(--section-pad); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

.display { font-size: clamp(2.3rem, 4.5vw + 1rem, 4rem); text-wrap: balance; }
h2, .h2 { font-size: clamp(1.9rem, 3vw + 0.5rem, 2.9rem); }
h3, .h3 { font-size: clamp(1.25rem, 1.4vw + 0.6rem, 1.6rem); }

.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1.1rem;
}

.lede { font-size: clamp(1.05rem, 0.5vw + 0.9rem, 1.25rem); color: var(--muted); max-width: 56ch; }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-soft); transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.btn-ghost { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 241, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(20, 20, 20, 0.05); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  transition: padding 0.3s ease;
}

.nav.scrolled .nav-inner { padding-block: 0.65rem; }

/* Wordmark — recreates the logo lockup: RR monogram + letterspaced caps */
.wordmark { display: flex; align-items: baseline; gap: 0.65rem; }
.wordmark .monogram {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 1;
}
.wordmark .wordmark-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.25rem;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--ink);
  transition: width 0.25s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn)[aria-current="page"]::after { width: 100%; }
.nav-links .btn { padding: 0.6rem 1.3rem; font-size: 0.9rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.75rem, 6vw, 4rem) clamp(3rem, 6vw, 4.5rem); }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-orb.one { width: 520px; height: 520px; background: var(--bronze-soft); top: -180px; right: -120px; opacity: 0.28; }
.hero-orb.two { width: 420px; height: 420px; background: #d8d2c4; bottom: -200px; left: -140px; opacity: 0.5; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero h1 em { font-style: italic; font-weight: 400; }

.hero .lede { margin-top: 1.1rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

.hero-proof { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.8rem; font-size: 0.92rem; color: var(--muted); }
.stars { color: var(--gold-star); letter-spacing: 0.12em; font-size: 1rem; white-space: nowrap; }

/* Floating stat-card cluster — reflow grid collage.
   Cards live in normal flow (no absolute positioning), so overlap is
   impossible at any width. Tilt uses the standalone `rotate` property so
   the hover translateY and the entrance animation compose with it. */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  align-content: center;
}

.float-card {
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.2rem 1.4rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: card-in 0.7s ease backwards;
}
.float-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.float-card .label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.float-card .value { font-family: var(--serif); font-size: 1.9rem; line-height: 1.15; margin-top: 0.25rem; }
.float-card .sub { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }

.float-card.fc-1 { grid-column: 1; justify-self: start; rotate: -2deg; animation-delay: 0.15s; }
.float-card.fc-2 { grid-column: 1 / -1; justify-self: end; rotate: 1.2deg; animation-delay: 0.3s; }
.float-card.fc-3 { grid-column: 1 / -1; justify-self: start; margin-right: 8%; rotate: -1.5deg; animation-delay: 0.45s; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.chip {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

/* ---------- Trust strip ---------- */
.trust-strip { border-block: 1px solid var(--line); background: var(--white); padding-block: 2.2rem; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.trust-item .big { font-family: var(--serif); font-size: 2rem; line-height: 1.1; }
.trust-item .big.text { font-size: 1.3rem; line-height: 1.25; }
.trust-item .small { font-size: 0.86rem; color: var(--muted); margin-top: 0.3rem; }

/* ---------- Reviews carousel ---------- */
.reviews-section { padding-block: clamp(3rem, 6vw, 4.5rem); }

.review-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.track-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.review-track {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  padding-block: 0.35rem;
  padding-inline: 0.2rem;
  cursor: grab;
  touch-action: pan-y; /* let vertical page scroll pass through; we handle horizontal drag ourselves */
  will-change: transform;
}
.review-track.dragging { cursor: grabbing; }
.review-track:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; border-radius: 4px; }

.carousel-arrow {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--muted);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.carousel-arrow:hover { background: var(--paper-deep); border-color: var(--ink); color: var(--ink); }

@media (max-width: 640px) {
  .carousel-arrow { display: none; }
}

.review-card {
  width: min(280px, 78vw);
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  user-select: none;
}

.review-card .quote { font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft); }
.review-card .who { display: flex; align-items: center; gap: 0.6rem; margin-top: auto; }

.placeholder-card { border-style: dashed; background: var(--paper); }
.placeholder-card .quote { color: var(--muted); font-style: italic; }
.placeholder-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bronze);
  border: 1px solid var(--bronze-soft);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 0.82rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.avatar.bronze { background: var(--bronze); color: var(--white); }

.who .name { font-weight: 600; font-size: 0.84rem; line-height: 1.3; }
.who .meta { font-size: 0.74rem; color: var(--muted); }

.badge-card {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.badge-card .quote { color: var(--paper); }
.badge-card .big-stat { font-family: var(--serif); font-size: 1.7rem; }
.badge-card .big-stat.text { font-size: 1.1rem; line-height: 1.3; }
.badge-card .small-stat { font-size: 0.78rem; color: rgba(247, 245, 241, 0.75); }

/* ---------- Service cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.service-card .price { font-family: var(--serif); font-size: 2.1rem; }
.service-card .price span { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.service-card p { font-size: 0.94rem; color: var(--muted); }
.service-card .card-link { margin-top: auto; font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.service-card .card-link .arrow { transition: transform 0.2s ease; }
.service-card:hover .card-link .arrow { transform: translateX(4px); }

/* ---------- Quote band ---------- */
.quote-band { background: var(--ink); color: var(--paper); text-align: center; }
.quote-band blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.35;
  max-width: 820px;
  margin-inline: auto;
}
.quote-band cite { display: block; font-family: var(--sans); font-style: normal; font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze-soft); margin-top: 1.6rem; }

/* ---------- Alternating service blocks (services page) ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.service-block + .service-block { border-top: 1px solid var(--line); }
.service-block.flip .media { order: 2; }

.service-block .media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  background: var(--white);
}
.service-block .media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.5s ease; }
.service-block:hover .media img { transform: scale(1.03); }

.service-block .price-tag {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.5rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.4rem 1.3rem;
  margin-bottom: 1.2rem;
}
.service-block h2 { margin-bottom: 0.9rem; }
.service-block p { color: var(--muted); }
.service-block ul { margin-top: 1.2rem; list-style: none; display: grid; gap: 0.55rem; }
.service-block ul li { padding-left: 1.6rem; position: relative; font-size: 0.95rem; }
.service-block ul li::before { content: "✓"; position: absolute; left: 0; color: var(--bronze); font-weight: 700; }
.service-block .btn { margin-top: 1.6rem; }

/* ---------- Layouts gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.gallery-item img { width: 100%; }
.gallery-item figcaption { padding: 0.9rem 1.2rem; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Testimonials grid (reviews page) ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.9rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.testimonial-card .quote { font-size: 0.98rem; line-height: 1.65; color: var(--ink-soft); }
.testimonial-card.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.testimonial-card.featured .quote { color: var(--paper); font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.testimonial-card.featured .who .meta { color: rgba(247, 245, 241, 0.7); }

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  width: fit-content;
}
.testimonial-card.featured .platform-pill { border-color: rgba(247, 245, 241, 0.3); color: rgba(247, 245, 241, 0.8); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--ink); color: var(--paper); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; text-align: center; }
.stat .num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1.1; }
.stat .num.text { font-size: clamp(1.35rem, 1.6vw + 0.7rem, 1.7rem); line-height: 1.25; }
.stat .num sup { font-size: 55%; color: var(--bronze-soft); }
.stat .lbl { font-size: 0.88rem; color: rgba(247, 245, 241, 0.7); margin-top: 0.4rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 0.9rem; }

.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
}
.faq-q .icon { font-family: var(--serif); font-size: 1.4rem; line-height: 1; transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 1.4rem 1.3rem; font-size: 0.95rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--paper); text-align: center; border-radius: var(--radius); padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 4rem); position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: var(--bronze);
  filter: blur(120px);
  opacity: 0.22;
  top: -160px; right: -100px;
}
.cta-band h2 { position: relative; }
.cta-band p { position: relative; color: rgba(247, 245, 241, 0.75); margin-top: 0.9rem; }
.cta-band .btn { position: relative; margin-top: 1.8rem; }

.cta-wrap { padding-block: 0 var(--section-pad); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.6rem, 3vw, 2.5rem);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.86rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.78rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }

.file-fields { display: flex; flex-direction: column; gap: 0.6rem; }
.file-fields input[type="file"] { padding: 0.65rem 0.8rem; }

fieldset.field { border: none; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.55rem; margin-top: 0.3rem; }
.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.check:has(input:checked) { border-color: var(--ink); background: var(--white); }
.check input { accent-color: var(--ink); width: 16px; height: 16px; flex-shrink: 0; }
.checks-wide { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.check-price { margin-left: auto; padding-left: 0.6rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.check:has(input:checked) .check-price { color: var(--bronze); }

.form-note { font-size: 0.84rem; color: var(--muted); margin-top: 0.9rem; }

.price-detail { font-size: 0.9rem; color: var(--muted); margin-top: -0.5rem; margin-bottom: 0.9rem; }
.price-qualifier { display: block; font-family: var(--sans); font-size: 0.76rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 0.15rem; }

/* ---------- Contact wizard ---------- */
.wizard-sub { font-size: 0.94rem; color: var(--muted); margin-bottom: 1.3rem; }

.wizard-progress-wrap { margin-bottom: 1.6rem; }
.wizard-bar { height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; }
.wizard-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--bronze);
  transition: width 0.35s ease;
}
.wizard-progress { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-top: 0.55rem; }

/* Progressive enhancement: every step is visible by default (no-JS
   fallback = one long form, just grouped into sections).
   js/contact-wizard.js adds "wizard-form-js" to the form once it
   initializes, and only then do steps hide/show one at a time. */
.wizard-step + .wizard-step { border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: 1.6rem; }
.wizard-form-js .wizard-step { display: none; border: none; margin: 0; padding: 0; }
.wizard-form-js .wizard-step.active { display: block; animation: wizard-in 0.35s ease; }
@keyframes wizard-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Without JS there's no progress to report and no draft to restore, so
   both stay hidden until the wizard marks the card as enhanced. */
.wizard-progress-wrap, .draft-banner { display: none; }
.contact-form-card.wizard-js .wizard-progress-wrap { display: block; }
.contact-form-card.wizard-js .draft-banner:not([hidden]) { display: block; }

.wizard-question { font-family: var(--serif); font-weight: 500; font-size: clamp(1.25rem, 1.4vw + 0.7rem, 1.55rem); margin-bottom: 0.5rem; }
.wizard-question:focus { outline: none; }
.wizard-hint { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.2rem; }
.label-note { font-weight: 400; color: var(--muted); font-size: 0.8rem; }

.wizard-error {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a3322b;
  margin-top: 0.2rem;
}

.reveal-field { animation: wizard-in 0.25s ease; }

/* Price note shown when Resume or Curriculum Vitae is ticked. */
/* A reassurance line — reads as guidance, not as another question. */
.wizard-aside {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  border-left: 2px solid var(--bronze-soft);
  padding-left: 0.85rem;
  margin: 0.2rem 0 1.2rem;
}

/* A full-width checkbox with an explanatory second line. */
.check-block { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.9rem 1rem; font-size: 0.88rem; line-height: 1.5; }
.check-block input { margin-top: 0.18rem; }
.check-block strong { font-weight: 600; }

/* Price note shown when Resume or Curriculum Vitae is ticked. Without JS
   nothing toggles it, so it simply stays visible for everyone. */
.contact-form-card:not(.wizard-js) .service-note[hidden] { display: block !important; }
.service-note {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--bronze);
  background: var(--paper);
  border: 1px solid var(--bronze-soft);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.1rem;
  animation: wizard-in 0.25s ease;
}

/* Running total on the services step. */
.running-total {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 0.95rem 1.1rem;
  margin-top: 0.4rem;
  animation: wizard-in 0.25s ease;
}
.running-line { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; color: var(--muted); }
.running-line + .running-line { margin-top: 0.3rem; }
.running-sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.running-sum strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--bronze); }
.running-note { font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin-top: 0.55rem; }

/* Draft restore */
.draft-banner {
  border: 1px solid var(--bronze-soft);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 1.4rem;
}
.draft-banner p { font-size: 0.9rem; color: var(--ink-soft); }
.draft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.8rem; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }

/* Yes / no choice cards */
.choice-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.5rem; }
.choice-btn {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.3rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.choice-btn strong { font-size: 1rem; font-weight: 600; }
.choice-btn span { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.choice-btn:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-card); }

.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.wizard-nav .btn-ghost { padding: 0.7rem 1.2rem; }
.wizard-nav .btn-primary:only-child { margin-left: auto; }

.wizard-skip {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  cursor: pointer;
}
.wizard-skip:hover { color: var(--ink); }

.field-help { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin-top: -0.15rem; }

/* Job-title picker over the keyword registry. */
.combo { position: relative; }
.combo-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.3rem);
  left: 0; right: 0;
  max-height: 260px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
}
.combo-list li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}
.combo-list li:hover, .combo-list li.is-active { background: var(--paper-deep); }
.combo-alt { font-size: 0.76rem; color: var(--muted); }

/* Confirms which role was matched. Deliberately never lists the terms —
   that list is the deliverable, and it belongs in the submission. */
.role-confirmed {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--bronze);
  line-height: 1.5;
  margin-top: 0.15rem;
  animation: wizard-in 0.25s ease;
}

/* Repeating work-history / education entries */
.entry-list { display: flex; flex-direction: column; gap: 1rem; }
.entry {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 1.1rem 1.15rem 0.2rem;
  animation: wizard-in 0.25s ease;
}
.entry-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.entry-index { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.entry-remove {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-remove:hover { color: #a3322b; }
.entry .field textarea { min-height: 84px; }
.btn-add { margin-top: 1rem; padding: 0.65rem 1.1rem; font-size: 0.9rem; }

/* The repeating entry cards need JS to exist at all. Whichever way that
   falls, exactly one route into work history and education is offered:
   the cards when enhanced, the plain textarea when not. */
.contact-form-card:not(.wizard-js) .entry-list,
.contact-form-card:not(.wizard-js) .btn-add { display: none; }

/* Nothing to step through without JS, so the step buttons would be dead
   controls. The submit button is not one of them and stays. */
.contact-form-card:not(.wizard-js) [data-next],
.contact-form-card:not(.wizard-js) [data-back] { display: none; }
.contact-form-card.wizard-js .entry-fallback {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prompt-list { list-style: none; margin: 0 0 0.6rem; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.prompt-list li { position: relative; padding-left: 1rem; font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.prompt-list li::before { content: "·"; position: absolute; left: 0.25rem; color: var(--bronze); font-weight: 700; }

/* Layout picker.
   Adding a template is a copy-paste of one .layout-card in contact.html;
   the planned per-color preview swaps the img src, so nothing here is
   tied to a fixed number of templates or colors. */
.layout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 0.7rem; margin-top: 0.3rem; }
.layout-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.layout-card:hover { border-color: var(--bronze-soft); }
.layout-card:has(input:checked) { border-color: var(--ink); background: var(--white); box-shadow: var(--shadow-card); }
/* The radio itself is taken out of the layout rather than hidden, so it
   stays focusable and screen-reader visible; the card carries the focus
   ring on its behalf. */
.layout-card { position: relative; }
.layout-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.layout-card:has(input:focus-visible) { outline: 2px solid var(--bronze); outline-offset: 3px; }
.layout-card img { border-radius: 6px; border: 1px solid var(--line); aspect-ratio: 8.5 / 11; object-fit: cover; object-position: top center; margin-bottom: 0.35rem; }
.layout-card-plain { justify-content: center; text-align: center; min-height: 120px; border-style: dashed; }
.layout-name { font-size: 0.88rem; font-weight: 600; }
.layout-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

.swatch-legend { font-size: 0.86rem; font-weight: 600; margin-bottom: 0.5rem; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  padding: 0.45rem 0.8rem 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.swatch::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--swatch, var(--ink));
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.12);
}
.swatch { position: relative; }
.swatch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.swatch:has(input:focus-visible) { outline: 2px solid var(--bronze); outline-offset: 3px; }
.swatch:has(input:checked) { border-color: var(--ink); background: var(--white); font-weight: 600; }

/* Review & deposit */
.review-summary { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.2rem; font-size: 0.92rem; margin-bottom: 1.3rem; }
.review-summary dt { font-weight: 600; color: var(--muted); }
.review-summary dd { color: var(--ink-soft); word-break: break-word; }

.deposit-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 1.1rem 1.2rem;
}
.deposit-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 0.92rem; }
.deposit-row + .deposit-row { margin-top: 0.45rem; padding-top: 0.45rem; border-top: 1px solid var(--line); }
.deposit-row span { color: var(--muted); }
.deposit-row strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.deposit-due strong { color: var(--bronze); font-size: 1.35rem; }
.deposit-note { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin-top: 0.8rem; }

/* Deposit block on the thank-you page */
.deposit-panel {
  max-width: 640px;
  margin: 2.5rem auto 0;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.deposit-panel h2 { font-size: clamp(1.25rem, 1.4vw + 0.8rem, 1.6rem); margin-bottom: 0.5rem; }
.deposit-panel > p { font-size: 0.93rem; color: var(--muted); }
.deposit-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.9rem; margin-top: 1.4rem; }
.deposit-method {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.deposit-method .label { font-family: var(--serif); font-size: 1.05rem; display: flex; align-items: center; gap: 0.5rem; }
.deposit-method p { font-size: 0.84rem; color: var(--muted); }
.deposit-method .btn { padding: 0.6rem 1rem; font-size: 0.87rem; justify-content: center; }

.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.8rem;
}
.aside-card + .aside-card { margin-top: 1.4rem; }
.aside-card h3 { margin-bottom: 1rem; }
.aside-card .row { display: flex; gap: 0.8rem; align-items: baseline; padding-block: 0.55rem; font-size: 0.95rem; }
.aside-card .row + .row { border-top: 1px solid var(--line); }
.aside-card .row .k { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); min-width: 84px; }
.aside-card .row a { font-weight: 600; }
.aside-card .row a:hover { color: var(--bronze); }

.payment-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }

/* ---------- Contact sidebar: tips, employer notes, market stats ---------- */
.aside-lede { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }

.stat-list { list-style: none; margin: 0; padding: 0; }
.stat-list li { padding-block: 0.9rem; }
.stat-list li + li { border-top: 1px solid var(--line); }
.stat-figure {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--bronze);
}
.stat-label { display: block; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; margin-top: 0.3rem; }
.stat-source {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.45rem;
}

.check-list { list-style: none; margin: 0; padding: 0; counter-reset: tip; }
.check-list li {
  position: relative;
  counter-increment: tip;
  padding-left: 1.9rem;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.6;
}
.check-list li + li { margin-top: 0.85rem; }
.check-list li::before {
  content: counter(tip);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.3rem; height: 1.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
}
.check-list strong { color: var(--ink); font-weight: 600; }
.inline-source {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li + li { margin-top: 0.2rem; }
.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
  padding-block: 0.6rem;
  font-size: 0.89rem;
  font-weight: 600;
}
.link-list li + li a { border-top: 1px solid var(--line); }
.link-list a:hover { color: var(--bronze); }

/* ---------- Payment method grid (services page) ---------- */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.payment-method {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.payment-method.featured { border-color: var(--bronze); box-shadow: var(--shadow-lift); }
.payment-method .label { font-family: var(--serif); font-size: 1.2rem; display: flex; align-items: center; gap: 0.55rem; }
.payment-method .tag, .deposit-method .tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bronze);
  color: var(--white);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-family: var(--sans);
}
.payment-method p { font-size: 0.92rem; color: var(--muted); flex: 1; }
.payment-method .btn { align-self: flex-start; }

.payment-value { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.payment-number { font-weight: 600; font-size: 1.02rem; }
.copy-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.copied { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.4rem, 4.5vw + 0.5rem, 4rem); max-width: 800px; }
.page-hero .lede { margin-top: 1.2rem; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.post-thumb {
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
  background: var(--paper-deep);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-thumb img { transform: scale(1.04); }

.post-hero-image {
  max-width: 700px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.post-hero-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.post-card-body { padding: 1.6rem 1.7rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-date { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bronze); }
.post-card h3 { font-size: 1.25rem; }
.post-excerpt { font-size: 0.93rem; color: var(--muted); flex: 1; }
.post-card .card-link { margin-top: 0.4rem; font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.post-card .card-link .arrow { transition: transform 0.2s ease; }
.post-card:hover .card-link .arrow { transform: translateX(4px); }

/* Single post */
.post-header { max-width: 760px; margin-inline: auto; text-align: center; }
.post-header .post-date { display: block; margin-bottom: 0.8rem; }
.post-header .byline { font-size: 0.9rem; color: var(--muted); margin-top: 0.9rem; }

.post-body { max-width: 700px; margin-inline: auto; font-size: 1.02rem; line-height: 1.75; color: var(--ink-soft); }
.post-body h2 { margin-top: 2.4rem; margin-bottom: 0.9rem; font-size: clamp(1.4rem, 2vw + 0.6rem, 1.9rem); }
.post-body p { margin-bottom: 1.2rem; }
.post-body ul, .post-body ol { margin: 0 0 1.2rem 1.4rem; display: grid; gap: 0.5rem; }
.post-body strong { color: var(--ink); }
.post-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  border-left: 3px solid var(--bronze);
  padding-left: 1.2rem;
  margin: 1.8rem 0;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; margin-top: 0; }
.footer a:hover { color: var(--bronze-soft); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247, 245, 241, 0.14);
}

.footer .wordmark { color: var(--paper); margin-bottom: 1rem; }
.footer .tagline { font-size: 0.92rem; color: rgba(247, 245, 241, 0.65); max-width: 30ch; }

.footer h4 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-soft); margin-bottom: 1.1rem; }
.footer ul { list-style: none; display: grid; gap: 0.6rem; font-size: 0.93rem; }
.footer ul a, .footer ul li { color: rgba(247, 245, 241, 0.8); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.8rem;
  font-size: 0.82rem;
  color: rgba(247, 245, 241, 0.5);
}

/* ---------- Reveal animations ---------- */
/* Scoped to html.js (set by js/main.js) so that without JavaScript —
   which is what fades these back in — the page renders visible rather
   than blank. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.js .reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ---------- Reduced motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .review-track { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 1.5rem; max-width: 540px; }
  .service-block { grid-template-columns: 1fr; }
  .service-block.flip .media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(20, 20, 20, 0.08);
    display: none;
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding-block: 0.65rem; }
  .nav-links .btn { justify-content: center; margin-top: 0.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .float-card .value { font-size: 1.5rem; }

  /* Hero proof cards become a timed crossfade rotator: one card at a
     time in a compact frame (the frame sizes itself to the tallest
     card via grid stacking). js/main.js cycles .is-active every few
     seconds; without JS, :not(.is-rotating) keeps card 1 visible.
     Reduced-motion users get the manual swipe strip below instead. */
  .hero-visual {
    display: grid;
    margin-top: 1.25rem;
  }
  .hero-visual .float-card {
    grid-area: 1 / 1;
    align-self: center;
    justify-self: stretch;
    rotate: none;
    margin: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: none;
  }
  .hero-visual .float-card.is-active { opacity: 1; }
  .hero-visual:not(.is-rotating) .float-card:first-child { opacity: 1; }
}

/* Reduced motion on small screens: no auto-rotation — fall back to the
   compact horizontal swipe strip (next card peeks to signal swipe). */
@media (max-width: 520px) and (prefers-reduced-motion: reduce) {
  .hero-visual {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.4rem;
  }
  .hero-visual::-webkit-scrollbar { display: none; }
  .hero-visual .float-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    opacity: 1;
  }
}

/* Short laptop screens: keep the CTA above the fold even when vertical
   space is scarce, independent of width. */
@media (min-width: 961px) and (max-height: 820px) {
  .hero { padding-block: 2.25rem 3rem; }
}
