/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.1;
  font-weight: 700;
}

em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
}

a { color: var(--ink); text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ===== Utilities ===== */
.label-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin-bottom: 16px;
}

.label-tag.light {
  color: var(--accent-light);
}

.text-link {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  transition: all 0.3s;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Directional reveals */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* Scale reveal for service numbers */
.reveal-scale {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

/* Blur-in reveal */
.reveal-blur {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-blur.revealed { opacity: 1; filter: blur(0); transform: translateY(0); }

/* Parallax section backgrounds */
.parallax-bg {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Animated counter pulse */
@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.stat-num.counted {
  animation: countPulse 0.4s ease-out;
}

/* Gold line draw animation */
.line-draw {
  position: relative;
}
.line-draw::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.line-draw.revealed::after {
  width: 100%;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 20px 52px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.btn-hero {
  background: var(--accent);
  color: var(--ink-deep);
  border-color: var(--accent);
}

.btn-hero:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--ink-deep);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(var(--accent-rgb),0.35);
}

.btn-hero-ghost {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 20px 52px;
  border: 2px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  color: var(--white);
}

.btn-hero-ghost:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(255,255,255,0.15);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--ink-deep);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.btn-full { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(var(--ink-rgb),0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 14px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-bottom: 1px solid var(--cloud);
}

.nav { display: flex; align-items: center; justify-content: space-between; }

.logo {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.35em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.4;
}

.logo span {
  display: block;
  font-weight: 500;
  letter-spacing: 0.4em;
  font-size: 0.56rem;
  opacity: 0.5;
}

.site-header.scrolled .logo { color: var(--ink); }
.logo:hover { opacity: 0.8; }

.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; }

.nav-links li a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

.site-header.scrolled .nav-links li a { color: var(--text-light); }
.nav-links li a:hover { color: var(--white); }
.site-header.scrolled .nav-links li a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-image) center/cover no-repeat;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(13,13,13,0.8) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 160px 0 100px;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 40%, transparent 70%);
  padding: 60px 48px;
  border-radius: 8px;
}

/* Hero Badge */
.hero-badge {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.badge-border {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb),0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  animation: badgeRotateBorder 20s linear infinite;
  position: relative;
}

.badge-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--accent);
  animation: badgeSpin 4s linear infinite;
}

@keyframes badgeSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes badgeRotateBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.badge-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb),0.3);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  animation: badgeCounterRotate 20s linear infinite;
}

@keyframes badgeCounterRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

.badge-top {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.badge-star {
  font-size: 0.6rem;
  color: var(--accent);
  line-height: 1;
}

.badge-main {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  line-height: 1;
}

.badge-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  line-height: 1;
  margin-top: 2px;
}

.badge-bottom {
  font-family: var(--sans);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}

.hero h1 {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-size: 4.6rem;
  color: var(--accent-light);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  margin: 0 auto 48px;
  max-width: 560px;
  line-height: 1.9;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-num {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.trust-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
  animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Marquee ===== */
.marquee-bar {
  background: var(--ink);
  padding: 16px 0;
  overflow: hidden;
  border-bottom: 2px solid var(--accent);
  width: 100%;
  position: relative;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: marquee 18s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-track span {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.marquee-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Intro ===== */
.intro {
  padding: 140px 0;
  background: var(--pearl);
  border-bottom: 1px solid var(--cloud);
}

.intro-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 100px;
  align-items: start;
}

.intro-left h2 {
  font-size: 2.8rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.intro-left h2 em {
  color: var(--accent-muted);
  font-size: 3.2rem;
}

.intro-right {
  padding-top: 12px;
}

.intro-right p {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.95;
  margin-bottom: 22px;
  font-weight: 400;
}

.intro-right .text-link {
  margin-top: 16px;
  display: inline-block;
}

/* ===== Services ===== */
.services {
  padding: 0;
  background: var(--ink);
}

.services .container {
  padding-top: 110px;
  padding-bottom: 110px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}

.service-card {
  padding: 52px 40px;
  background: var(--ink-soft);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  background: #484848;
}

.service-card.featured {
  background: #444;
  border-top: 3px solid var(--accent);
}

.service-card.featured:hover {
  background: #505050;
}

.service-top {
  margin-bottom: 24px;
}

.service-number {
  font-family: var(--display);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--accent-light);
  display: block;
  line-height: 1;
  margin-bottom: 16px;
  transition: color 0.4s ease;
}

.service-card:hover .service-number {
  color: var(--accent-light);
  opacity: 0.7;
}

.service-card.featured .service-number {
  color: var(--accent-light);
}

.service-card h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.service-card p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.9;
  font-weight: 400;
  flex-grow: 1;
  margin-top: 4px;
}

.service-card:hover p {
  color: rgba(255,255,255,0.75);
}

.service-card.featured p {
  color: rgba(255,255,255,0.7);
}

/* ===== About ===== */
.about {
  background: var(--snow);
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
}

.about-image {
  overflow: hidden;
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 80%, var(--snow) 100%);
  pointer-events: none;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image:hover .about-img {
  transform: scale(1.04);
}

.about-content {
  padding: 88px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content h2 {
  font-size: 3.4rem;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.about-content h2 em {
  color: var(--accent-muted);
  font-size: 3.8rem;
}

.about-lead {
  font-size: 1.18rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 20px;
  font-weight: 600;
}

.about-content p {
  font-size: 1.08rem;
  color: var(--text-mid);
  line-height: 1.95;
  font-weight: 400;
}

.about-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid var(--mist);
}

.stat-num {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 130px 0;
  background: var(--ink-deep);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
}

.testimonials-top {
  text-align: center;
  margin-bottom: 72px;
}

.script-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
}

.script-quote em {
  color: var(--accent-light);
  font-size: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  padding: 48px 36px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.testimonial:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.testimonial.accent {
  background: rgba(var(--accent-rgb),0.08);
  border-color: rgba(var(--accent-rgb),0.2);
}

.testimonial.accent:hover {
  background: rgba(var(--accent-rgb),0.12);
  border-color: rgba(var(--accent-rgb),0.3);
}

.testimonial p {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.9;
  font-style: italic;
  margin-bottom: 32px;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.testimonial.accent p {
  color: rgba(255,255,255,0.75);
}

.testimonial p em {
  color: var(--accent-light);
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.testimonial.accent footer {
  border-color: rgba(var(--accent-rgb),0.15);
}

.testimonial footer strong {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.testimonial footer span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  margin-top: 2px;
}

.testimonial.accent footer span {
  color: rgba(255,255,255,0.5);
}

/* ===== Contact ===== */
.contact {
  padding: 130px 0;
  background: var(--snow);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-text h2 {
  font-size: 3.4rem;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.contact-text > p {
  font-size: 1.12rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 48px;
  font-weight: 400;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item .contact-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
}

.contact-item a,
.contact-item > span {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-item a:hover {
  color: var(--accent-muted);
}

.contact-form-wrap {
  background: var(--white);
  padding: 56px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--accent) 100%);
}

.form-group { margin-bottom: 4px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 20px 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-bottom: 2px solid var(--cloud);
  background: transparent;
  color: var(--text);
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ash);
  font-weight: 400;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact .btn-primary {
  margin-top: 24px;
  padding: 22px 52px;
}

/* ===== Pre-footer ===== */
.pre-footer {
  padding: 72px 0;
  background: var(--pearl);
  text-align: center;
  border-top: 1px solid var(--cloud);
}

.pre-footer p {
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 1.02rem;
  color: var(--text-light);
  line-height: 1.9;
  font-weight: 400;
}

.pre-footer-social {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.pre-footer-social a {
  color: var(--silver);
  transition: all 0.3s;
}

.pre-footer-social a:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink-deep);
  padding: 60px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer-logo { color: var(--white); font-size: 0.78rem; }
.footer-logo span { color: rgba(255,255,255,0.3); }

.footer-links { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }

.footer-links a {
  font-size: 0.76rem;
  font-weight: 800;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--accent-light); }

.footer-legal { display: flex; gap: 12px; align-items: center; }
.footer-legal a { font-size: 0.72rem; color: rgba(255,255,255,0.25); }
.footer-legal a:hover { color: rgba(255,255,255,0.5); }
.footer-legal span { color: rgba(255,255,255,0.12); font-size: 0.65rem; }

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.08em;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .container { padding: 0 36px; }
  .hero h1 { font-size: 3.2rem; }
  .hero h1 em { font-size: 3.6rem; }
  .intro-inner { gap: 64px; }
  .intro-left h2 { font-size: 2.3rem; }
  .intro-left h2 em { font-size: 2.6rem; }
  .about-content h2 { font-size: 2.8rem; }
  .about-content h2 em { font-size: 3.1rem; }
  .about-content { padding: 64px 48px; }
  .contact-text h2 { font-size: 2.8rem; }
  .service-number { font-size: 3.5rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 32px 24px;
    gap: 18px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li a { color: var(--text) !important; font-size: 0.85rem; }

  .hero h1 { font-size: 2.5rem; }
  .hero h1 em { font-size: 2.8rem; }
  .hero-sub { font-size: 1.02rem; }
  .hero-scroll-hint { display: none; }
  .badge-border { width: 190px; height: 190px; }
  .badge-main { font-size: 1.3rem; }
  .badge-sub { font-size: 0.85rem; }
  .badge-top, .badge-bottom { font-size: 0.55rem; }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn,
  .hero-cta .btn-hero-ghost {
    width: 260px;
  }

  .hero-trust { gap: 24px; }
  .trust-num { font-size: 1.3rem; }

  .intro { padding: 90px 0; }
  .intro-inner { grid-template-columns: 1fr; gap: 32px; }
  .intro-left h2 { font-size: 2rem; }
  .intro-left h2 em { font-size: 2.3rem; }

  .services .container { padding-top: 80px; padding-bottom: 80px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-number { font-size: 3rem; }

  .about-split { grid-template-columns: 1fr; min-height: auto; }
  .about-image::after { display: none; }
  .about-img { max-height: 450px; }
  .about-content { padding: 56px 24px; }
  .about-content h2 { font-size: 2.4rem; }
  .about-content h2 em { font-size: 2.7rem; }
  .about-stats { gap: 32px; flex-wrap: wrap; }

  .testimonials { padding: 80px 0; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .script-quote { font-size: 1.9rem; }
  .script-quote em { font-size: 2.2rem; }

  .contact { padding: 80px 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-text h2 { font-size: 2.4rem; }
  .contact-form-wrap { padding: 40px 24px; }

  .footer-links { gap: 20px; }
}

@media (max-width: 480px) {
  .hero { min-height: 90vh; }
  .hero h1 { font-size: 2rem; }
  .hero h1 em { font-size: 2.3rem; }
  .badge-border { width: 160px; height: 160px; }
  .badge-main { font-size: 1.1rem; }
  .badge-sub { font-size: 0.75rem; }
  .about-content h2 { font-size: 2rem; }
  .about-content h2 em { font-size: 2.2rem; }
  .about-stats { flex-direction: column; gap: 20px; }
  .contact-text h2 { font-size: 2rem; }
  .stat-num { font-size: 2rem; }
  .service-number { font-size: 2.5rem; }
}

/* ===== FAQ ===== */
.faq {
  padding: 110px 0;
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.faq-header {
  text-align: center;
  margin-bottom: 60px;
}
.faq-header h2 {
  font-size: 3rem;
  color: #fff;
  margin-top: 16px;
}
.faq-header h2 em {
  font-style: italic;
  color: var(--accent);
  font-family: serif;
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(var(--accent-rgb),0.18);
  border-radius: 4px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.faq-item[open] {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb),0.05);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 28px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  letter-spacing: 0.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 28px 26px;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  font-size: 0.97rem;
}
@media (max-width: 720px) {
  .faq-header h2 { font-size: 2.2rem; }
  .faq-header h2 em { font-size: 2.4rem; }
}

/* ===== Accessibility (WCAG 2.1 AA) =====
   Standard on every build since 2026-10-01. Keep this block when re-skinning for a client,
   then run a11y-check/check.mjs on the site folder before it goes live.
   When you change the palette: text and button colors need 4.5:1 against their background. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 3000;
  background: var(--ink-deep);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 18px;
}
.skip-link:focus { top: 0; }

/* keyboard focus is always visible: dark ring on light sections, white ring on dark ones */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.site-header:not(.scrolled) :focus-visible,
.hero :focus-visible,
.marquee-bar :focus-visible,
.services :focus-visible,
.faq :focus-visible,
.testimonials :focus-visible,
.site-footer :focus-visible,
.skip-link:focus-visible { outline-color: var(--white); }
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }

/* form: a visible label on every field, field edges people can see, sent / failed message */
.contact-form .form-group { margin-bottom: 22px; }
.contact-form .form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea { padding: 12px 0 14px; border-bottom-color: var(--slate); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.optional { font-weight: 500; letter-spacing: 0.04em; text-transform: none; }
.form-status { text-align: center; font-size: 0.88rem; font-weight: 700; color: var(--text); margin-top: 14px; }
.form-status:empty { margin: 0; }
.form-note { text-align: center; font-size: 0.8rem; color: var(--text-light); margin-top: 14px; }
.form-note a,
.legal a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* pause button for the marquee and the spinning badge (WCAG 2.2.2 pause, stop, hide) */
.motion-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.55);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}
.motion-toggle:hover { border-color: var(--accent); color: var(--accent-light); }
.motion-toggle .icon-play { display: none; }
body.motion-paused .motion-toggle .icon-play { display: block; }
body.motion-paused .motion-toggle .icon-pause { display: none; }
body.motion-paused .marquee-track,
body.motion-paused .badge-border,
body.motion-paused .badge-border::before,
body.motion-paused .badge-inner,
body.motion-paused .hero-scroll-hint span { animation-play-state: paused; }

/* footer text bright enough to read on the dark background */
.footer-logo span { color: rgba(255,255,255,0.75); }
.footer-links a { color: rgba(255,255,255,0.8); }
.footer-legal a { color: rgba(255,255,255,0.8); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--white); }
.footer-legal span { color: rgba(255,255,255,0.5); }
.footer-copy { color: rgba(255,255,255,0.7); }

/* small print that was too faint to read */
.logo span { opacity: 0.85; }
.service-card p,
.service-card.featured p { color: rgba(255,255,255,0.8); }
.testimonial footer span { color: rgba(255,255,255,0.75); }
.faq .label-tag { color: var(--accent); }

/* closed mobile menu is out of the tab order, not just invisible */
@media (max-width: 768px) {
  .nav-links {
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s 0.4s;
  }
  .nav-links.open { visibility: visible; transition-delay: 0s; }
}

/* visitors who ask for less motion get the page with everything already in place */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur, .fade-up {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ===== Legal pages (privacy policy, accessibility) ===== */
.legal { padding: 170px 0 110px; background: var(--white); }
.legal-inner { max-width: 800px; }
.legal h1 { font-size: 3rem; margin-bottom: 10px; }
.legal-date { font-size: 0.85rem; font-weight: 700; color: var(--text-light); margin-bottom: 36px; }
.legal h2 { font-size: 1.6rem; margin: 44px 0 12px; }
.legal p,
.legal li { color: var(--text-mid); line-height: 1.85; margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
@media (max-width: 768px) {
  .legal { padding: 130px 0 80px; }
  .legal h1 { font-size: 2.3rem; }
}


/* ===== Additions for the hosted product (not in the original template) ===== */

/* A logo image instead of the lettered wordmark */
.logo img { display: block; height: 46px; width: auto; }
.footer-logo img { height: 54px; }

/* The header starts over the hero photo and turns white on scroll: show the matching logo */
.logo .logo-on-light { display: none; }
.site-header.scrolled .logo .logo-on-dark { display: none; }
.site-header.scrolled .logo .logo-on-light { display: block; }

/* The small line between the badge and the headline */
.hero-kicker { font-family: var(--sans); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 18px; }

/* The testimonials heading is a real heading now, set the way the template's quote line was */
h2.script-quote { margin: 0; }

/* The reviewer's business line stays readable on every palette, the highlighted card included */
.testimonial footer span, .testimonial.accent footer span { color: rgba(255,255,255,0.82); }

/* The three words under the hero buttons (were inline styles in the template) */
.hero-trust .trust-label { font-size: 0.78rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.8); margin-top: 0; }

/* Contact without a form: details, then one button */
.contact-inner.solo { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; text-align: center; }
.contact-inner.solo .contact-details { align-items: center; }
.contact-inner.solo .contact-item { align-items: center; }
.contact-book { margin-top: 36px; }

/* Sample content marker, only ever shown in the editor preview */
.sample-tag { display: none; }

/* Blog index and posts */
.blog, .post { padding: 170px 0 110px; background: var(--white); }
.blog-head { text-align: center; margin-bottom: 56px; }
.blog-head h1 { font-size: 3rem; margin: 6px 0 14px; }
.blog-head p { color: var(--text-light); max-width: 560px; margin: 0 auto; line-height: 1.7; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  display: flex; flex-direction: column; background: var(--pearl); border: 1px solid var(--border);
  padding: 36px 32px; color: inherit; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--ink); color: inherit; }
.post-card h2 { font-size: 1.5rem; margin: 12px 0 12px; line-height: 1.25; }
.post-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; margin-bottom: 22px; flex: 1; }
.post-card .text-link { align-self: flex-start; }
.post-meta { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-light); }
.post-inner { max-width: 760px; }
.post-inner h1 { font-size: 3rem; margin: 6px 0 14px; line-height: 1.15; }
.post-inner .post-meta { display: block; margin-bottom: 40px; }
.post .label-tag a { color: inherit; }
.post-body { font-size: 1.05rem; color: var(--text-mid); line-height: 1.85; }
.post-body h2 { font-size: 1.8rem; margin: 46px 0 14px; }
.post-body h3 { font-size: 1.35rem; margin: 32px 0 10px; }
.post-body p { margin-bottom: 18px; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 20px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { color: var(--ink); }
.post-body a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.post-body .callout { padding: 20px 24px; background: var(--pearl); border-left: 3px solid var(--accent-muted); color: var(--text); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem; font-style: italic; line-height: 1.5; }
.post-cta { margin-top: 52px; padding: 48px 40px; background: var(--ink); text-align: center; }
.post-cta h2 { color: var(--white); font-size: 1.9rem; margin-bottom: 12px; }
.post-cta p { color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.post-more { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--border); }
.post-more h2 { font-size: 1.3rem; margin-bottom: 14px; }
.post-more ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.post-more a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1024px) { .post-grid { grid-template-columns: 1fr 1fr; } .blog-head h1, .post-inner h1 { font-size: 2.4rem; } }
@media (max-width: 768px) { .post-grid { grid-template-columns: 1fr; } .blog, .post { padding: 130px 0 80px; } .blog-head h1, .post-inner h1 { font-size: 2.1rem; } .post-cta { padding: 36px 24px; } }

/* ===== Optional sections, appended to every design by build-assets.mjs =====
   How it works, Pricing, Industries served and the member's own sections (renderer/blocks.mjs).
   One layout for all three designs. The colors, radius and type sizes come from the --x-*
   tokens each design sets beside its brand tokens, and every text and background pair those
   tokens produce is in that design's contrastPairs(). */
.x-sec { padding: 110px 0; background: var(--x-bg); border-top: 1px solid var(--x-border); }
.x-sec p, .x-sec li { color: var(--x-text); overflow-wrap: break-word; }
.x-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.x-head h2 { font-size: clamp(2.1rem, 4.6vw, var(--x-h2)); margin: 14px 0 16px; }
.x-sec .x-intro { color: var(--x-muted); font-size: 1.06rem; line-height: 1.75; max-width: 600px; margin: 0 auto; }

.x-grid { display: grid; gap: 26px; list-style: none; margin: 0; padding: 0; }
.x-grid.x-n1 { grid-template-columns: minmax(0, 520px); justify-content: center; }
.x-grid.x-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin-left: auto; margin-right: auto; }
.x-grid.x-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.x-grid.x-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.x-item { position: relative; background: var(--x-card); border: 1px solid var(--x-border); border-radius: var(--x-radius); padding: 34px 28px; }
.x-item h3 { font-size: var(--x-h3); color: var(--x-head); margin: 0 0 10px; overflow-wrap: break-word; }
.x-sec .x-item p { font-size: 0.98rem; line-height: 1.7; margin: 0; }
.x-num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--x-badge-bg); color: var(--x-badge-fg); font-family: var(--x-sans); font-weight: 800; font-size: 1.05rem;
  letter-spacing: 0; margin-bottom: 18px;
}

/* Pricing */
.x-plan { display: flex; flex-direction: column; }
.x-plan.x-featured { border: 2px solid var(--x-accent); }
.x-badge {
  align-self: flex-start; background: var(--x-badge-bg); color: var(--x-badge-fg); font-family: var(--x-sans);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.x-sec .x-price { margin: 4px 0 14px; color: var(--x-muted); font-size: 0.95rem; }
.x-price strong { display: block; font-family: var(--x-display); font-size: 2.3rem; line-height: 1.15; font-weight: var(--x-price-weight, 600); color: var(--x-head); overflow-wrap: break-word; }
.x-features { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--x-border); display: flex; flex-direction: column; gap: 10px; }
.x-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; line-height: 1.5; }
.x-features svg { flex: none; margin-top: 3px; color: var(--x-accent); }
.x-link { align-self: flex-start; margin-top: auto; padding-top: 24px; font-family: var(--x-sans); font-weight: 700; color: var(--x-accent); text-decoration: underline; text-underline-offset: 4px; }
.x-link:hover { color: var(--x-head); }
.x-sec .x-note { text-align: center; color: var(--x-muted); font-size: 0.95rem; line-height: 1.6; max-width: 640px; margin: 34px auto 0; }

/* The member's own section */
.x-own { max-width: 780px; margin: 0 auto; }
.x-own.x-has-image { max-width: none; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.x-media img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--x-radius); }
.x-body h2 { font-size: clamp(2rem, 4.2vw, var(--x-h2)); margin: 14px 0 20px; overflow-wrap: break-word; }
.x-body { min-width: 0; }
.x-sec .x-body p { font-size: 1.05rem; line-height: 1.8; margin: 0 0 16px; }
.x-sec .x-body .x-action { margin: 26px 0 0; }
.x-sec .x-placeholder { color: var(--x-muted); font-style: italic; }

@media (max-width: 1024px) {
  .x-grid.x-n3, .x-grid.x-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-own.x-has-image { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 640px) {
  .x-sec { padding: 72px 0; }
  .x-head { margin-bottom: 40px; }
  .x-grid.x-n1, .x-grid.x-n2, .x-grid.x-n3, .x-grid.x-n4 { grid-template-columns: minmax(0, 1fr); }
}

/* Client Login in the menu (every design): the menu's own link style plus a small padlock. */
.nav-links a.nav-login { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-links a.nav-login svg { width: 15px; height: 15px; flex: none; }

/* Numbers band: up to four big figures with a short label each */
.x-sec.x-numbers { padding: 64px 0; }
.x-numbers .x-head { margin-bottom: 36px; }
.x-stats { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 20px; max-width: 1040px; }
.x-stats.x-n1 { grid-template-columns: minmax(0, 320px); justify-content: center; }
.x-stats.x-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; }
.x-stats.x-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.x-stats.x-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.x-stat { text-align: center; padding: 6px 14px; }
.x-stat + .x-stat { border-left: 1px solid var(--x-border); }
.x-stat strong { display: block; font-family: var(--x-display); font-size: clamp(2.3rem, 4.2vw, 3.1rem); line-height: 1.1; font-weight: var(--x-price-weight, 600); color: var(--x-head); overflow-wrap: anywhere; }
.x-sec .x-stat span { display: block; margin-top: 8px; color: var(--x-muted); font-size: 0.98rem; line-height: 1.45; overflow-wrap: break-word; }
.x-stat strong.x-stat-empty { font-family: var(--x-sans); font-size: 1rem; font-weight: 700; color: var(--x-muted); border: 1px dashed var(--x-border); border-radius: 10px; padding: 12px 8px; }
@media (max-width: 720px) {
  .x-stats.x-n3, .x-stats.x-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .x-stat + .x-stat { border-left: 0; }
}

/* Blog cover photos (every design): on the post's card and at the top of the post */
.post-card-img { display: block; aspect-ratio: 16 / 9; margin: 0 0 18px; border-radius: var(--x-radius); overflow: hidden; background: var(--x-border); }
.post-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-cover { margin: 26px 0 34px; border-radius: var(--x-radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--x-border); }
.post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== First-screen fit, appended to this design by build-assets.mjs =====
   The top of the page must fit the first screen: headline, paragraph, buttons and trust cards
   with no scrolling. shared/site.js measures it and, only when it would not fit, adds .fit-1
   (tighter spacing), then scales the headline down, then adds .fit-2 (tightest). It also sets
   --header-h to the real height of the menu bar, so nothing ever starts underneath it.
   scripts/hero-fit.mjs is the gate. */
.hero.fit-1 .hero-inner, .hero.clear-header .hero-inner { padding-top: calc(var(--header-h, 80px) + 16px); }
.hero.fit-1 .hero-inner { padding-bottom: 24px; }
.hero.fit-1 .hero-content { padding-top: 20px; padding-bottom: 20px; }
.hero.fit-1 .hero-badge { margin-bottom: 20px; }
.hero.fit-1 .badge-border { width: 160px; height: 160px; }
.hero.fit-1 .badge-main { font-size: 1.1rem; }
.hero.fit-1 .badge-sub { font-size: 0.75rem; }
.hero.fit-1 .badge-top, .hero.fit-1 .badge-bottom { font-size: 0.55rem; }
.hero.fit-1 .hero-kicker { margin-bottom: 12px; }
.hero.fit-1 h1 { margin-bottom: 18px; }
.hero.fit-1 .hero-cta { margin-bottom: 24px; }
.hero.fit-1 .hero-scroll-hint { display: none; }
/* The round badge repeats the name already in the menu bar, so it is the first thing to go. */
.hero.fit-2 .hero-badge { display: none; }
.hero.fit-2 .hero-inner { padding-top: calc(var(--header-h, 80px) + 10px); padding-bottom: 14px; }
.hero.fit-2 .hero-content { padding-top: 8px; padding-bottom: 8px; }
.hero.fit-2 .hero-cta { margin-bottom: 14px; gap: 10px; }
.hero.fit-2 .btn-hero, .hero.fit-2 .btn-hero-ghost { padding-top: 14px; padding-bottom: 14px; }
.hero.fit-2 .hero-trust { gap: 20px; }

/* The menu folded because it did not fit on one line (see shared/site.js). Same as the phone menu. */
html.nav-collapsed .nav-toggle { display: flex; }
html.nav-collapsed .nav-links {
  position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column;
  padding: 32px 24px; gap: 18px; border-bottom: 1px solid var(--border);
  transform: translateY(-10px); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.4s;
}
html.nav-collapsed .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
html.nav-collapsed .nav-links li a { color: var(--text) !important; font-size: 0.85rem; }

/* ===== Reflow guard, appended to every design by build-assets.mjs =====
   WCAG 1.4.10 and 1.4.4: nothing may sit wider than the screen at 320px or at 200% zoom.
   scripts/reflow.mjs is the gate for this. */
html { overflow-x: clip; }

/* Sections that slide in from the side make a phone page wider than its screen until they
   have played, which pushes the menu button off the edge. Wherever the layout is a single
   column they rise into place instead. */
@media (max-width: 1100px) {
  .reveal-left, .reveal-right { transform: translateY(30px); }
  .reveal-left.revealed, .reveal-right.revealed { transform: none; }
}

/* A long email address or pasted link wraps instead of pushing its box wider. */
a[href^="mailto:"], .post-body a, .legal a, .footer-contact a { overflow-wrap: anywhere; }

/* Grid and flex children may shrink below their longest word. */
.contact-grid > *, .contact-inner > *, .contact-card > div, .about-split > *,
.faq-inner > *, .intro-inner > *, .form-row > *, .hero-inner > * { min-width: 0; }

/* A long word in the headline breaks instead of pushing the hero wider than the screen. */
.hero h1, .hero-sub, .hero-tag, .hero-kicker { overflow-wrap: anywhere; }

/* A long practice name wraps onto two lines instead of pushing the menu button off the screen. */
.site-header .nav > .logo { min-width: 0; flex: 0 1 auto; overflow-wrap: anywhere; }
.footer-logo, .footer-logo * { overflow-wrap: anywhere; }
.site-header .nav-toggle { flex: none; }

/* Phones. Buttons with long words wrap instead of running off the screen; form fields are at
   least 16px so an iPhone does not zoom in when one is tapped (scripts/phone.mjs checks both). */
@media (max-width: 768px) {
  .btn, [class*="btn-"], .x-action a { white-space: normal; max-width: 100%; overflow-wrap: break-word; text-align: center; }
}
/* Any touch screen, a phone held sideways or a tablet included. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { font-size: max(16px, 1em) !important; }
}

/* Small links get a bigger area to tap without moving anything: the extra padding is taken
   back by a matching negative margin, and inline links ignore both for layout. */
.nav-links a, footer a, .footer a, .service-link, .legal a, .x-link, .section-tag a, .label-tag a, .post-more a { padding-block: 5px; margin-block: -5px; }
.nav-toggle { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }

/* The open phone menu never runs past the bottom of a short screen. */
.nav-links.open { max-height: calc(100vh - 60px); overflow-y: auto; }

/* On a desktop-width menu bar the logo keeps its natural width (up to about half the bar), so
   a crowded menu folds into the menu button (site.js) instead of squeezing a long practice
   name until a word breaks in the middle. Once folded, the logo may shrink as usual. */
@media (min-width: 769px) {
  html:not(.nav-collapsed) .site-header .logo { flex-shrink: 0; max-width: 46%; }
}
html.nav-measuring .nav-links, html.nav-measuring .nav-links * { transition: none !important; }

/* ===== Section animations (migration 0017), appended to every design by build-assets.mjs =====
   A section the member gave an animation carries data-anim. Its pieces start hidden only once
   site.js has run (the reveal classes are what it watches), so a page without scripts shows
   everything. "none" shows the section as it is; reduced motion turns every animation off. */
[data-anim] :is(.reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur, .fade-up) {
  filter: none; transition: opacity .7s ease, transform .7s ease;
}
[data-anim="fade"] :is(.reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur, .fade-up) { opacity: 0; transform: none; }
[data-anim="slide"] :is(.reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur, .fade-up) { opacity: 0; transform: translateY(40px); }
[data-anim="zoom"] :is(.reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur, .fade-up) { opacity: 0; transform: scale(.92); }
[data-anim] :is(.reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur).revealed,
[data-anim] .fade-up.visible { opacity: 1; transform: none; }
[data-anim="none"] :is(.reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur, .fade-up) {
  opacity: 1 !important; transform: none !important; transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  [data-anim] :is(.reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur, .fade-up) {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}
