/* ==========================================================================
   RAKESH LAW - site stylesheet
   Law Office of Rakesh R. Rampertab, PLLC
   Plain CSS, no build step. Brand tokens live in :root below.
   ========================================================================== */

:root {
  --burgundy: #6A0F1A;
  --burgundy-deep: #3B0008;
  --burgundy-ink: var(--burgundy-deep);
  --gold: #D4AF37;
  --gold-soft: #E6C964;
  --gold-dark: var(--burgundy); /* small caps on light backgrounds: burgundy (gold fails contrast) */
  --ivory: #FAF6ED;
  --ivory-2: #F2ECDF;
  --paper: #FFFFFF;
  --charcoal: #1E1E1E;
  --ink: #1E1E1E;
  --muted: #4D4D4D;
  --line: #E6DFD0;
  --line-dark: rgba(212, 175, 55, .28);
  --hero-dark: #1E1E1E;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Montserrat", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-script: "Allura", "Segoe Script", cursive;

  --container: 1280px;
  --gutter: clamp(16px, 3.2vw, 32px);
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 10px 30px rgba(42, 0, 6, .10);
  --shadow-lg: 0 24px 60px rgba(20, 4, 4, .28);
  --header-h: 140px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--burgundy); text-underline-offset: 3px; }
a:hover { color: var(--burgundy-deep); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.on-light :focus-visible, .form :focus-visible { outline-color: var(--burgundy); }
::selection { background: var(--gold); color: var(--charcoal); }

.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--gold); color: var(--charcoal); padding: 10px 16px;
  font-weight: 600; border-radius: var(--radius); text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--charcoal); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; }
.icon--gold { color: var(--gold); }
.icon--burgundy { color: var(--burgundy); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 .9rem;
}
.on-dark .eyebrow, .eyebrow--gold { color: var(--gold); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--muted); }
.on-dark .lead { color: rgba(255, 255, 255, .86); }
.script { font-family: var(--font-script); font-weight: 400; }
.gold { color: var(--gold); }
.rule-gold { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 1.25rem 0; }
.center { text-align: center; }
.center .rule-gold { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .75em 1.5em;
  font-family: var(--font-sans); font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  line-height: 1.2; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .arrow { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary { background: var(--burgundy); color: #fff; border-color: var(--burgundy); }
.btn--primary:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); color: #fff; box-shadow: 0 8px 20px rgba(59, 0, 8, .25); }
.on-dark .btn--primary { border-color: var(--burgundy); }
.btn--gold { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--charcoal); }
.btn--outline-light { background: rgba(0, 0, 0, .15); color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn--outline-light:hover { background: #fff; color: var(--charcoal); }
.btn--outline-gold { background: transparent; color: #fff; border-color: var(--gold); }
.btn--outline-gold:hover { background: var(--gold); color: var(--charcoal); }
.btn--outline { background: transparent; color: var(--burgundy); border-color: var(--burgundy); }
.btn--outline:hover { background: var(--burgundy); color: #fff; }
.btn--sm { min-height: 42px; padding: .6em 1.15em; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.text-link {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; color: var(--burgundy); text-decoration: none;
  border-bottom: 1px solid rgba(106, 15, 26, .3); padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: var(--burgundy); }
.text-link .arrow { width: .95em; height: .95em; transition: transform .2s var(--ease); }
.text-link:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(30, 10, 10, .14); }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 12px; padding-bottom: 12px;
  transition: padding .25s var(--ease);
}
.is-scrolled .topbar { padding-top: 8px; padding-bottom: 8px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--charcoal); min-width: 0; }
.brand:hover { color: var(--charcoal); }
.brand__mark { width: 50px; height: 50px; color: var(--burgundy); flex: none; transition: width .25s, height .25s; }
.is-scrolled .brand__mark { width: 46px; height: 46px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-family: var(--font-serif); font-weight: 700; font-size: 2rem; line-height: 1;
  letter-spacing: .04em; white-space: nowrap;
}
.brand__tag {
  font-size: .68rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  margin-top: 7px; white-space: nowrap; color: var(--ink);
}

.topbar__contact { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.topbar__item {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--charcoal); text-decoration: none; font-size: .9rem; line-height: 1.35;
}
.topbar__item:hover { color: var(--burgundy); }
.topbar__item .icon { width: 22px; height: 22px; color: var(--burgundy); }
.topbar__phone { font-weight: 600; font-size: 1rem; }
.topbar__cta { flex: none; }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -8px;
  background: transparent; border: 0; border-radius: var(--radius); cursor: pointer;
  color: var(--charcoal);
}
.nav-toggle__bars { position: relative; width: 26px; height: 2px; background: currentColor; transition: background .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 26px; height: 2px; background: currentColor;
  transition: transform .25s var(--ease);
}
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

.mainnav { background: var(--burgundy); color: #fff; }
.mainnav__list {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter);
  max-width: var(--container);
  display: flex; align-items: stretch; justify-content: space-between; gap: 4px;
}
.mainnav__list a {
  position: relative; display: flex; align-items: center;
  padding: 11px 4px; min-height: 44px;
  color: #fff; text-decoration: none; font-size: .86rem; font-weight: 500; letter-spacing: .01em;
  white-space: nowrap;
}
.mainnav__list a::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 9px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.mainnav__list a:hover::after, .mainnav__list a[aria-current="page"]::after { transform: scaleX(1); }
.mainnav__list a[aria-current="page"] { color: var(--gold); }
.mainnav__extra { display: none; }

/* Collapse to hamburger */
@media (max-width: 1100px) {
  .topbar__contact { display: none; }
}
@media (max-width: 1023px) {
  :root { --header-h: 80px; }
  html { scroll-padding-top: 90px; }
  .topbar { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .is-scrolled .topbar { padding-top: 8px; padding-bottom: 8px; }
  .topbar__cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand__mark, .is-scrolled .brand__mark { width: 44px; height: 44px; }
  .brand { gap: 10px; }
  .brand__name { font-size: 1.55rem; }
  .brand__tag { font-size: .56rem; letter-spacing: .26em; margin-top: 5px; }

  /* Without JS the nav stays visible as a wrapped list; with JS it becomes a drawer. */
  .mainnav__list { flex-wrap: wrap; justify-content: flex-start; gap: 0 18px; }
  .js .mainnav {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto;
    background: var(--burgundy-deep);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .22s, transform .22s var(--ease), visibility 0s linear .22s;
  }
  .js .mainnav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .22s, transform .22s var(--ease); }
  .js .mainnav__list { flex-direction: column; padding-top: 8px; padding-bottom: 8px; gap: 0; }
  .js .mainnav__list li + li { border-top: 1px solid rgba(255, 255, 255, .09); }
  .js .mainnav__list a { padding: 14px 2px; font-size: 1.02rem; min-height: 52px; }
  .js .mainnav__list a::after { left: 0; right: auto; width: 28px; bottom: 8px; }
  .js .mainnav__extra {
    display: grid; gap: 12px; padding: 8px var(--gutter) 24px; max-width: var(--container); margin: 0 auto;
  }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 380px) {
  .brand__name { font-size: 1.3rem; }
  .brand__tag { font-size: .5rem; letter-spacing: .2em; }
  .brand__mark, .is-scrolled .brand__mark { width: 38px; height: 38px; }
}
@media (max-width: 340px) {
  .brand__tag { display: none; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(40px, 5vw, 68px) 0; }
.section--tight { padding: clamp(32px, 4vw, 48px) 0; }
.section--ivory { background: var(--ivory); }
.section--paper { background: var(--paper); }
.section--dark {
  background:
    radial-gradient(1100px 500px at 85% 0%, rgba(106, 15, 26, .45), transparent 60%),
    linear-gradient(180deg, var(--burgundy-deep), #1E1E1E 70%);
  color: #fff;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(20px, 3vw, 32px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- Home hero ---------- */
/* Full-bleed photo (assets/img/hero-portrait-2.jpg, 3:2, subject right of centre)
   under a dark left-to-right gradient; the headline sits on the darker left side. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  background: var(--hero-dark);
  min-height: clamp(500px, 42vw, 620px);
  display: flex; align-items: center;
}
.hero__media { position: absolute; inset: 0; z-index: -1; margin: 0; overflow: hidden; } /* clip the load "settle" zoom (it spilled past the fade as a bright seam) */
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 65% 30%;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 30, 30, .95) 0%, rgba(30, 30, 30, .86) 28%, rgba(30, 30, 30, .5) 50%, rgba(30, 30, 30, .08) 68%, rgba(30, 30, 30, 0) 100%),
    linear-gradient(0deg, rgba(30, 30, 30, .55), transparent 30%);
}
.hero__inner { position: relative; width: 100%; }
.hero__copy { position: relative; padding: clamp(40px, 5vw, 64px) 0 clamp(32px, 4vw, 48px); max-width: 580px; }
.hero__title {
  font-size: clamp(3rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.01em;
  color: #fff; margin: 0 0 1rem; text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero__title span { display: block; }
.hero__title span:nth-child(2) { padding-left: .42em; }
.hero__title span:nth-child(3) { padding-left: .84em; color: var(--gold); }
.hero__lead { font-size: clamp(1.1rem, 1.8vw, 1.32rem); line-height: 1.5; color: rgba(255, 255, 255, .92); max-width: 31ch; margin-left: .3em; text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0 1.5rem; }
.hero__actions .btn { min-width: 200px; min-height: 52px; font-size: 1rem; }
.values-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0; }
.values-row li {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 22px 4px 0; margin-right: 22px;
  font-size: .86rem; line-height: 1.3; color: rgba(255, 255, 255, .92);
  border-right: 1px solid rgba(255, 255, 255, .22);
}
.values-row li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.values-row .icon { width: 40px; height: 40px; color: var(--gold); }

/* Wide screens: stop the 3:2 photo scaling up past the frame (it cropped his head);
   anchor it right at a capped width and fade it into the dark background. */
@media (min-width: 1500px) {
  .hero { min-height: clamp(580px, 32vw, 760px); }
  .hero__media { left: auto; width: min(66%, 1500px); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
  .hero__media img { object-position: 60% 20%; }
  .hero__media::after {
    background:
      linear-gradient(90deg, var(--hero-dark) 0%, rgba(30, 30, 30, .82) 16%, rgba(30, 30, 30, .35) 34%, rgba(30, 30, 30, 0) 55%),
      linear-gradient(0deg, rgba(30, 30, 30, .55), transparent 30%);
  }
}
@media (max-width: 1180px) and (min-width: 901px) {
  .hero__media img { object-position: 72% 30%; }
  .hero__copy { max-width: 500px; }
}
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; }
  .hero__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 3.4; max-height: 70vh; width: 100%; }
  .hero__media img { object-position: 62% 20%; }
  .hero__media::after { background: linear-gradient(0deg, var(--hero-dark) 0%, rgba(30, 30, 30, .55) 30%, rgba(30, 30, 30, 0) 58%); }
  .hero__copy { padding-top: 0; margin-top: -88px; max-width: 640px; }
  .hero__title { font-size: clamp(2.6rem, 11vw, 3.8rem); }
  .hero__title span:nth-child(2) { padding-left: .3em; }
  .hero__title span:nth-child(3) { padding-left: .6em; }
  .hero__lead { margin-left: 0; }
}
@media (max-width: 560px) {
  .hero__media { aspect-ratio: 1 / 1; }
  .hero__copy { margin-top: -72px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .values-row { flex-direction: column; gap: 14px; }
  .values-row li { border-right: 0; padding: 0; margin: 0; }
  .values-row .icon { width: 34px; height: 34px; }
}

/* ---------- Service cards ---------- */
.services-strip { background: var(--ivory); border-bottom: 1px solid var(--line); }
.service-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 24px 20px 20px;
  text-decoration: none; color: var(--ink);
  transition: background-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.service-card + .service-card::before {
  content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line);
}
.service-card::after {
  content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 3px; background: var(--gold);
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.service-card:hover { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); z-index: 1; }
.service-card:hover::after, .service-card:focus-visible::after { transform: scaleX(1); }
.service-card .icon { width: 46px; height: 46px; color: var(--burgundy); margin-bottom: 10px; }
.service-card h3 { font-size: 1.22rem; color: var(--burgundy); margin-bottom: .4rem; }
.service-card p { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; line-height: 1.5; max-width: 22ch; }
.service-card .arrow { margin-top: auto; width: 20px; height: 20px; color: var(--burgundy); align-self: flex-end; transition: transform .2s var(--ease); }
.service-card:hover .arrow { transform: translateX(4px); }
@media (max-width: 960px) {
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card:nth-child(3)::before { display: none; }
  .service-card:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .service-cards { grid-template-columns: 1fr; }
  .service-card { flex-direction: row; text-align: left; align-items: center; gap: 16px; padding: 20px 4px; }
  .service-card::before { display: none; }
  .service-card + .service-card { border-top: 1px solid var(--line); }
  .service-card .icon { width: 44px; height: 44px; margin: 0; }
  .service-card__body { flex: 1; }
  .service-card p { margin: 0; max-width: none; }
  .service-card .arrow { margin: 0; align-self: center; }
}

/* ---------- About (home) ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.3fr .95fr; gap: clamp(24px, 3vw, 40px); align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; box-shadow: var(--shadow-lg); }
.about-photo::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--gold); z-index: -1;
}
.about-copy h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.about-copy p { color: var(--muted); }
/* About intro: three short paragraphs, the first a shade darker (sized to stay on 3 lines on desktops) */
.about-intro { line-height: 1.7; margin: 0 0 .9rem; }
.about-copy .about-intro, .prose .about-intro { color: var(--ink); }
.about-body { margin: 0 0 .9rem; line-height: 1.7; text-wrap: pretty; }
.about-copy .btn { margin-top: .6rem; }
.value-list { list-style: none; padding: 0 0 0 clamp(0px, 2vw, 28px); margin: 0; border-left: 1px solid var(--line); display: grid; gap: 20px; }
.value-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.value-list .icon { width: 40px; height: 40px; color: var(--burgundy); }
.value-list h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; margin: 4px 0 .25rem; color: var(--charcoal); }
.value-list p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 1023px) {
  .about-grid { grid-template-columns: 1fr 1.2fr; }
  .value-list { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
}
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .value-list { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Video ---------- */
.video-section .section-head { margin-bottom: 24px; }
.video-layout { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.video-layout .section-head { margin: 0; }
@media (max-width: 900px) { .video-layout { grid-template-columns: 1fr; } }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-lg);
  background: #1E1E1E;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-dark);
}
.video-frame > video, .video-frame > iframe, .video-frame > .video-placeholder, .video-frame > .video-facade {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-frame > video { object-fit: cover; background: #000; }
.video-placeholder, .video-facade {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px; color: #fff;
  background:
    radial-gradient(60% 80% at 50% 40%, rgba(106, 15, 26, .75), transparent 70%),
    radial-gradient(40% 50% at 85% 90%, rgba(212, 175, 55, .14), transparent 70%),
    linear-gradient(135deg, rgba(59, 0, 8, .88), rgba(30, 30, 30, .9)),
    url("../img/office.jpg") center 45% / cover no-repeat,
    var(--burgundy-deep);
}
.video-placeholder__play, .video-facade__play {
  display: grid; place-items: center;
  width: clamp(60px, 9vw, 84px); height: clamp(60px, 9vw, 84px);
  border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold);
  margin-bottom: 16px;
}
.video-placeholder__play svg, .video-facade__play svg { width: 34%; height: 34%; margin-left: 8%; }
.video-placeholder__title { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 0 0 .25rem; color: #fff; }
.video-placeholder__note { font-family: var(--font-script); font-size: clamp(1.5rem, 3.2vw, 2.2rem); color: var(--gold); margin: 0; line-height: 1.1; }
.video-placeholder__small { font-size: .82rem; color: rgba(255, 255, 255, .75); margin: .6rem 0 0; letter-spacing: .04em; }
.video-facade { cursor: pointer; border: 0; font: inherit; }
.video-facade::before { content: ""; position: absolute; inset: 0; background: rgba(30, 30, 30, .35); transition: background .2s; }
.video-facade:hover::before { background: rgba(30, 30, 30, .15); }
.video-facade > * { position: relative; }
.video-facade:hover .video-facade__play { background: var(--gold); color: var(--charcoal); }

/* ---------- Family banner ---------- */
.banner {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: #1E1E1E;
}
.banner__img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  object-fit: cover; object-position: 0% 55%;
}
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(30, 30, 30, 0) 0%, rgba(30, 30, 30, .1) 32%, rgba(30, 30, 30, .78) 56%, rgba(30, 30, 30, .9) 100%);
}
.banner__inner { display: flex; justify-content: flex-end; padding-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(44px, 6vw, 80px); }
.banner__copy { max-width: 520px; }
.banner__copy h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.banner__copy p { color: rgba(255, 255, 255, .9); font-size: 1.08rem; }
.banner__copy .btn { margin-top: .6rem; }
@media (max-width: 760px) {
  .banner__img { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; object-position: 12% 60%; }
  .banner::before { background: linear-gradient(180deg, transparent 0, transparent 22%, #1E1E1E 40%); }
  .banner__inner { padding-top: 8px; }
  .banner { display: flex; flex-direction: column; }
}

/* ---------- Commitments (replaces mock-up testimonials) ---------- */
.commit-layout { display: grid; grid-template-columns: .85fr 2fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.commit-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.commit-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 20px; box-shadow: 0 2px 0 rgba(0, 0, 0, .02);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.commit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.commit-card .icon { width: 36px; height: 36px; color: var(--burgundy); margin-bottom: 12px; }
.commit-card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.commit-card p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .commit-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .commit-cards { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(100deg, rgba(59, 0, 8, .96), rgba(106, 15, 26, .9) 55%, rgba(106, 15, 26, .82)),
    url("../img/office.jpg") center 55% / cover no-repeat,
    var(--burgundy);
}
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 48px); align-items: center; padding-top: 30px; padding-bottom: 30px; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: .4rem; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .88); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.cta-band h2 { text-wrap: balance; }
@media (min-width: 700px) { .cta-band h2 { white-space: nowrap; } }
.cta-band__location { display: flex; gap: 14px; align-items: flex-start; padding-left: clamp(0px, 3vw, 32px); border-left: 1px solid rgba(255, 255, 255, .2); }
.cta-band__location .icon { width: 30px; height: 30px; color: var(--gold); margin-top: 2px; }
.cta-band__location strong { display: block; font-weight: 600; margin-bottom: 2px; }
.cta-band__location a { color: #fff; text-decoration: none; }
.cta-band__location { min-width: max-content; }
.cta-band__location a:hover { text-decoration: underline; }
@media (max-width: 1023px) {
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band__location { border-left: 0; padding-left: 0; }
}
@media (max-width: 480px) { .cta-band__actions .btn { width: 100%; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ivory); color: var(--ink); border-top: 1px solid var(--line); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr; gap: 28px; padding-top: 36px; padding-bottom: 24px; }
.footer-brand .brand__mark { width: 50px; height: 50px; }
.footer-brand .brand__name { font-size: 1.6rem; }
.footer-brand .brand__tag { font-size: .58rem; }
.footer-brand__promise { font-family: var(--font-script); font-size: 1.9rem; color: var(--burgundy); margin: 16px 0 6px; line-height: 1.1; }
.footer-brand__formal { color: var(--muted); margin: 0; }
.site-footer h2 {
  font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--burgundy); margin: 6px 0 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--burgundy); text-decoration: underline; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.footer-contact .icon { width: 20px; height: 20px; color: var(--burgundy); margin-top: 3px; }
.footer-contact a { color: var(--ink); text-decoration: none; word-break: break-word; }
.footer-contact a:hover { color: var(--burgundy); text-decoration: underline; }
.socials { display: flex; gap: 10px; margin-top: 18px; list-style: none; padding: 0; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--charcoal); border: 1px solid var(--line); background: var(--paper);
  transition: background .2s, color .2s, border-color .2s;
}
.socials a:hover { background: var(--burgundy); color: #fff; border-color: var(--burgundy); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid var(--line); padding: 14px 0 18px; font-size: .8rem; color: var(--muted); }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--burgundy); }
.footer-disclaimer { font-weight: 500; color: var(--ink) !important; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background:
    linear-gradient(90deg, rgba(59, 0, 8, .95) 0%, rgba(59, 0, 8, .86) 45%, rgba(106, 15, 26, .62) 100%),
    url("../img/office.jpg") center 42% / cover no-repeat,
    var(--burgundy-deep);
  padding: clamp(32px, 4.5vw, 56px) 0 clamp(28px, 4vw, 48px);
}
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { max-width: 60ch; margin-bottom: 0; }
.page-hero__icon { width: 56px; height: 56px; color: var(--gold); margin-bottom: 18px; }
.breadcrumb { font-size: .82rem; margin-bottom: 18px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, .5); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--gold); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; } }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-top: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--burgundy); }
.prose .callout { margin: 1.8rem 0; }

.callout {
  background: var(--ivory); border-left: 3px solid var(--gold); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
}
.callout p:last-child { margin-bottom: 0; }

.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
@media (max-width: 960px) { .sidebar { position: static; } }
.side-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.side-card--dark { background: linear-gradient(160deg, var(--burgundy), var(--burgundy-deep)); color: #fff; border: 0; }
.side-card--dark h2, .side-card--dark h3 { color: #fff; }
.side-card h2 { font-size: 1.35rem; }
.side-card p { font-size: .95rem; }
.side-card .btn { width: 100%; margin-top: 8px; }
.side-card--dark p { color: rgba(255, 255, 255, .88); }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li + li { border-top: 1px solid var(--line); }
.side-links a { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; color: var(--ink); font-weight: 500; }
.side-links a:hover { color: var(--burgundy); }
.side-links .icon { width: 26px; height: 26px; color: var(--burgundy); }

/* Feature grid ("what we help with") */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 1.2rem 0 1.4rem; padding: 0; list-style: none; }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px;
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
.feature:hover { border-color: rgba(212, 175, 55, .7); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature h3 { font-size: 1.12rem; margin-bottom: .35rem; color: var(--burgundy); }
.feature p { margin: 0; font-size: .94rem; color: var(--muted); }

/* Process steps */
.steps { list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--burgundy); color: var(--gold); font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem;
}
.steps h3 { font-size: 1.1rem; margin: .3rem 0 .25rem; }
.steps p { margin: 0; color: var(--muted); }

/* Who we help chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 1rem 0 2rem; }
.chips li { background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 12px; margin: 1.4rem 0 0; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: rgba(212, 175, 55, .8); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 14px 48px 14px 18px; font-weight: 600; color: var(--charcoal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--burgundy); border-bottom: 2px solid var(--burgundy); transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--burgundy); }
.faq .faq__body { padding: 0 18px 16px; color: var(--ink); }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* Two-column split with image */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.split figure { margin: 0; position: relative; }
.split figure img { width: 100%; border-radius: 2px; box-shadow: var(--shadow-lg); }

/* Area cards (about / services overview) */
.area-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.area-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; text-decoration: none; color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .2s;
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(212, 175, 55, .7); color: var(--ink); }
.area-card .icon { width: 44px; height: 44px; color: var(--burgundy); margin-bottom: 14px; }
.area-card h3 { color: var(--burgundy); font-size: 1.2rem; margin-bottom: .35rem; }
.area-card p { color: var(--muted); font-size: .94rem; margin-bottom: 1rem; }
.area-card .text-link { margin-top: auto; align-self: flex-start; }

/* Resource links */
.resource-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 14px; }
.resource-list a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper);
  text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.resource-list a:hover { border-color: var(--burgundy); box-shadow: var(--shadow); color: var(--ink); }
.resource-list strong { color: var(--burgundy); font-family: var(--font-serif); font-size: 1.15rem; }
.resource-list span { grid-column: 1; color: var(--muted); font-size: .92rem; }
.resource-list .ext { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; color: var(--burgundy); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 32px); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list .icon-wrap { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--burgundy); color: var(--gold); }
.contact-list .icon-wrap .icon { width: 22px; height: 22px; }
.contact-list strong { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list a { color: var(--charcoal); font-weight: 500; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--burgundy); text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; font-size: .94rem; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; color: var(--ink); }
.hours td { color: var(--muted); text-align: right; }
.map-wrap { margin-top: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--ivory-2); width: 100%; height: clamp(300px, 40vw, 480px); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }


/* Form */
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .9rem; color: var(--charcoal); }
.field .req { color: var(--burgundy); }
.field .hint { font-size: .82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #fff; border: 1.5px solid #CFC2AC; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--burgundy) 50%), linear-gradient(135deg, var(--burgundy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(106, 15, 26, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B3261E; }
.field__error { color: #B3261E; font-size: .84rem; font-weight: 500; min-height: 0; }
.field__error:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .9rem; color: var(--ink); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--burgundy); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
/* "I'm not a robot" spam check (captcha.js) */
.captcha { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; max-width: 420px; padding: 14px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(42, 0, 6, .05); }
.captcha__label { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; color: var(--ink); margin: 0; }
.captcha__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.captcha__mark { position: relative; flex: none; width: 26px; height: 26px; border: 2px solid #8C8C8C; border-radius: 3px; background: var(--paper);
  transition: border-color .2s var(--ease), background .2s var(--ease); }
.captcha__label:hover .captcha__mark { border-color: var(--burgundy); }
.captcha__input:focus-visible + .captcha__mark { outline: 3px solid var(--gold); outline-offset: 2px; }
.captcha.is-checking .captcha__mark { border-color: var(--line); border-top-color: var(--burgundy); border-radius: 50%; animation: captcha-spin .8s linear infinite; }
.captcha.is-done .captcha__mark { border-color: #2E7D4F; background: #2E7D4F; }
.captcha.is-done .captcha__mark::after { content: ""; position: absolute; left: 7px; top: 2px; width: 7px; height: 13px;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.captcha__state { font-size: .82rem; color: var(--muted); }
.captcha.is-done .captcha__state { color: #2E7D4F; font-weight: 600; }
.captcha.is-failed .captcha__state { color: #A3141F; }
.captcha__badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); }
.captcha__badge svg { width: 20px; height: 20px; color: var(--burgundy); }
.field.has-error .captcha { border-color: #A3141F; }
@keyframes captcha-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .captcha.is-checking .captcha__mark { animation-duration: 2.4s; } }
.form-note { font-size: .84rem; color: var(--muted); margin: 0; }
.form-status { border-radius: var(--radius); padding: 0; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 16px 18px; background: #EEF6EE; border: 1px solid #9CC79C; color: #1E4D1E; }
.form-status.is-error { padding: 16px 18px; background: #FBEDEC; border: 1px solid #E3A6A1; color: #7A1C14; }
.form-status a { color: inherit; font-weight: 700; }

/* Legal pages */
.legal h2 { font-size: 1.6rem; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.toc { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 2rem; }
.toc h2 { font-size: 1rem !important; font-family: var(--font-sans); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .6rem !important; padding: 0 !important; border: 0 !important; color: var(--burgundy); }
.toc ol { margin: 0; }

/* 404 */
.notfound { text-align: center; padding: clamp(48px, 8vw, 96px) 0; }
.notfound .icon { width: 72px; height: 72px; color: var(--gold); margin: 0 auto 20px; }
.notfound__code { font-family: var(--font-serif); font-size: clamp(4rem, 12vw, 7rem); line-height: 1; color: var(--gold); margin: 0 0 .1em; }
.notfound .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1.6rem; }

/* Quote band */
.quote-band { text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 820px; }
.quote-band blockquote p { font-family: var(--font-script); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.1; color: var(--gold); margin: 0 0 .4rem; }
.quote-band .q-open { margin-right: .14em; }
.quote-band blockquote footer { letter-spacing: .26em; text-transform: uppercase; font-size: .82rem; color: rgba(255, 255, 255, .85); }

/* ==========================================================================
   Scroll reveal (only when JS is on and motion is OK)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
  .js .reveal-stagger.is-visible > :nth-child(2) { transition-delay: .08s; }
  .js .reveal-stagger.is-visible > :nth-child(3) { transition-delay: .16s; }
  .js .reveal-stagger.is-visible > :nth-child(4) { transition-delay: .24s; }
  .js .reveal-stagger.is-visible > :nth-child(5) { transition-delay: .32s; }
  .js .reveal-stagger.is-visible > :nth-child(6) { transition-delay: .4s; }
  .hero__copy > * { animation: rise .7s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > :nth-child(4) { animation-delay: .24s; }
  .hero__copy > :nth-child(5) { animation-delay: .32s; }
  .hero__media img { animation: settle 1.6s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { transform: scale(1.04); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Print */
@media print {
  .site-header, .mainnav, .cta-band, .video-section, .socials, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .page-hero, .section--dark { background: #fff !important; color: #000 !important; }
  .hero *, .page-hero * { color: #000 !important; }
}
.text-link--light { color: #fff; border-bottom-color: rgba(255, 255, 255, .4); }
.text-link--light:hover { color: var(--gold); border-bottom-color: var(--gold); }
.about-photo { isolation: isolate; }
.service-card { padding-left: 18px; padding-right: 18px; }
.service-card h3 { font-size: 1.14rem; }
.contact-card h2 { font-size: 1.5rem; }
.contact-card h3 { font-size: 1.1rem; margin-top: .4rem; }
.notfound h1 { color: #fff; }
.notfound .lead a { color: var(--gold); }
.site-header .topbar :focus-visible { outline-color: var(--burgundy); }
@media (max-width: 480px) {
  .video-placeholder__small { display: none; }
  .video-placeholder__play { width: 48px; height: 48px; margin-bottom: 8px; }
}

/* In-page jump links (merged service pages) */
.page-toc { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 2rem; }
.page-toc a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--ivory); color: var(--burgundy); font-weight: 600; font-size: .88rem; text-decoration: none; }
.page-toc a:hover { border-color: var(--burgundy); }
.prose h3.group-title { font-size: 1.2rem; color: var(--burgundy); margin: 1.6rem 0 0; }

/* ==========================================================================
   Mobile density pass (Trey 2026-10-15: less padding, shorter page on phones)
   ========================================================================== */
@media (max-width: 720px) {
  .about-photo { max-width: none; }
  .about-photo img { aspect-ratio: 4 / 3; object-position: 50% 22%; }
  .about-photo::before { display: none; }
  .value-list { gap: 14px; padding-top: 20px; }
}
@media (max-width: 560px) {
  .section { padding: 36px 0; }
  .hero__copy { padding-bottom: 28px; }
  .hero__actions { margin: 1.1rem 0 1.2rem; gap: 10px; }
  .values-row { flex-direction: row; flex-wrap: nowrap; gap: 0; justify-content: space-between; }
  .values-row li { flex-direction: column; align-items: flex-start; gap: 6px; font-size: .78rem; padding: 0 10px 0 0; margin: 0; border-right: 0; }
  .values-row .icon { width: 28px; height: 28px; }
  .service-card { padding: 14px 2px; }
  .commit-cards { gap: 0; }
  .commit-card {
    display: grid; grid-template-columns: 32px 1fr; column-gap: 14px;
    background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 14px 0;
  }
  .commit-card:hover { transform: none; box-shadow: none; }
  .commit-card .icon { grid-row: span 2; width: 28px; height: 28px; margin: 2px 0 0; }
  .commit-card h3 { margin-bottom: .15rem; }
  .commit-card p { font-size: .92rem; }
  .banner__inner { padding-bottom: 36px; }
  .cta-band__inner { gap: 18px; padding-top: 28px; padding-bottom: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-top: 28px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-links { gap: 6px; }
  .page-hero { padding: 28px 0 24px; }
}
.prose .feature h3, .prose .area-card h3, .prose .steps h3 { margin-top: 0; }
.prose .steps h3 { margin-top: .3rem; }
@media (max-width: 900px) { .commit-layout { gap: 8px; } .video-layout { gap: 20px; } }

/* ==========================================================================
   Client accounts + consultation booking (booking.js)
   ========================================================================== */
.topbar__account {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  color: var(--charcoal); text-decoration: none; font-size: .9rem; font-weight: 600;
  min-height: 44px; padding: 0 4px;
}
.topbar__account .icon { width: 22px; height: 22px; color: var(--burgundy); }
.topbar__account:hover, .topbar__account[aria-current="page"] { color: var(--burgundy); }
@media (max-width: 1279px) and (min-width: 1024px) {
  .topbar__account span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1023px) { .topbar__account { display: none; } }
.mainnav__extra .icon { width: 20px; height: 20px; }

.page-hero--slim { padding: clamp(24px, 3.5vw, 40px) 0 clamp(22px, 3vw, 34px); }
.account-wrap { max-width: 860px; }
.enquiry-wrap { max-width: 820px; }
.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: var(--burgundy);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.linklike:hover { color: var(--burgundy-deep); }
.label { font-weight: 600; font-size: .9rem; color: var(--charcoal); margin: 0; }

/* sign in / create account */
.auth { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.auth__intro { margin: 0 0 16px; color: var(--muted); }
.auth__tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.auth__tab {
  background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  padding: 10px 14px; min-height: 44px; font: inherit; font-weight: 600; font-size: .95rem; color: var(--muted); cursor: pointer;
}
.auth__tab.is-active { color: var(--burgundy); border-bottom-color: var(--gold); }
.auth__form { display: grid; gap: 16px; }
.auth__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.auth__actions .hint { margin: 0; font-size: .85rem; color: var(--muted); }
.pw { position: relative; }
.pw input { width: 100%; padding-right: 76px; }
.pw__toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--radius); background: var(--ivory-2);
  font: inherit; font-size: .8rem; font-weight: 600; color: var(--burgundy); cursor: pointer;
}

/* booking form */
.booker__form { display: grid; gap: 18px; }
.booker__who { margin: 0; padding: 12px 16px; background: var(--ivory-2); border-radius: var(--radius); font-size: .9rem; color: var(--muted); }
.booker__who strong { color: var(--charcoal); }
.daystrip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.daystrip .hint { margin: 6px 0; }
.day {
  flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 2px;
  width: 68px; padding: 10px 0 9px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--charcoal); font: inherit; cursor: pointer; transition: border-color .15s, background .15s;
}
.day:hover { border-color: var(--burgundy); }
.day__wd, .day__m { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.day__n { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.day[aria-pressed="true"] { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.day[aria-pressed="true"] .day__wd, .day[aria-pressed="true"] .day__m { color: var(--gold); }
.daystrip__nav { display: flex; justify-content: space-between; font-size: .88rem; }
.daystrip__nav:empty { display: none; }
.slots { display: grid; gap: 12px; margin-top: 4px; }
.tz-note { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 6px; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px;
  background: var(--ivory-2); border: 1px solid var(--line); font-size: .86rem; color: var(--ink); }
.tz-note strong { color: var(--burgundy); }
.slots__label { margin: 0 0 6px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot {
  min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--charcoal); cursor: pointer;
}
.slot:hover { border-color: var(--burgundy); color: var(--burgundy); }
.slot[aria-pressed="true"] { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.booker__summary { margin: 4px 0 0; font-weight: 600; color: var(--burgundy); }
.booker__summary:empty { display: none; }
.field.has-error .daystrip, .field.has-error .slots { outline: 2px solid #E3A6A1; outline-offset: 4px; border-radius: var(--radius); }
.booker__done { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.booker__done:focus { outline: none; }
.booker__done h3 { margin-top: 4px; }
.booker__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* my account */
.acct { display: grid; gap: clamp(22px, 3vw, 34px); }
.acct__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.acct__head h2 { margin: 2px 0 0; }
.acct__headactions { display: flex; flex-wrap: wrap; gap: 10px; }
.acct__block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); }
.acct__block h3 { margin: 0 0 14px; font-size: 1.25rem; }
.acct__block .form { display: grid; gap: 14px; }
.appts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.appt {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory);
}
.appt__when { grid-column: 1; }
.appt__area { grid-column: 1; margin: 0; color: var(--muted); font-size: .9rem; }
.appt .badge { grid-column: 1; justify-self: start; }
.appt__cancel { grid-column: 2; grid-row: 1 / span 3; }
.appt .form-status { grid-column: 1 / -1; }
.appts--past .appt { opacity: .7; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .02em; }
.badge.is-requested { background: #FBF3DC; color: #6B4E00; border: 1px solid #E8D18C; }
.badge.is-confirmed { background: #EEF6EE; color: #1E4D1E; border: 1px solid #9CC79C; }
.badge.is-declined, .badge.is-cancelled { background: #F1EEEA; color: #5A5148; border: 1px solid #DDD5CB; }
@media (max-width: 560px) {
  .appt { grid-template-columns: 1fr; }
  .appt__cancel { grid-column: 1; grid-row: auto; justify-self: start; }
  .acct__headactions .btn, .booker__actions .btn { flex: 1 1 100%; }
}

/* Firm's formal name under the header logo (client request 2026-10-17) */
.brand__firm {
  font-size: .76rem; font-weight: 500; letter-spacing: .02em; color: var(--ink);
  margin-top: 6px; white-space: nowrap;
}
@media (max-width: 1023px) { .brand__firm { font-size: .64rem; margin-top: 4px; } }
@media (max-width: 480px) { .brand__firm { font-size: .58rem; white-space: normal; max-width: 210px; line-height: 1.25; } }

/* one-step cancel page (link in client emails) */
.cancel-wrap { max-width: 640px; }
.cancel { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.cancel .eyebrow { margin: 0 0 .4rem; }
.cancel .daystrip { margin: 0 0 .5rem; }
.cancel .slots { margin: 0 0 1rem; }
.cancel .booker__summary { margin: 0 0 1rem; }
.cancel__title { font-family: var(--font-serif); font-size: clamp(1.45rem, 3.2vw, 1.85rem); line-height: 1.25; margin: 0 0 1.25rem; }
.cancel__details { margin: 0 0 1.4rem; padding: 16px 20px; background: var(--ivory); border-left: 3px solid var(--gold); display: grid; gap: 10px; }
.cancel__details div { display: grid; gap: 2px; }
.cancel__details dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cancel__details dd { margin: 0; font-weight: 600; color: var(--ink); }
.cancel__lead { margin: 0 0 1.1rem; }
.cancel__actions { margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cancel__actions .btn { min-width: 220px; }
.cancel .form-status { margin: 0 0 1rem; }
.cancel__keep, .cancel__help { margin: 0 0 .4rem; color: var(--muted); font-size: .92rem; }
.cancel__help a { color: var(--burgundy); font-weight: 600; }
.cancel__demo { margin: 0 0 1rem; padding: 10px 14px; background: #FFF8E1; border: 1px dashed var(--gold); border-radius: var(--radius); font-size: .88rem; }
.cancel__loading { color: var(--muted); }
@media (max-width: 520px) { .cancel__actions .btn { width: 100%; } }

/* ---------- Back to top (phones and tablets) ---------- */
.to-top { display: none; }
@media (max-width: 1023px) {
  .to-top {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--gold);
    background: var(--burgundy); color: #fff; box-shadow: 0 8px 22px rgba(42, 0, 6, .28);
    font: 600 .62rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
    opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), left .2s var(--ease), top .2s var(--ease);
    touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  }
  .to-top svg { width: 20px; height: 20px; }
  .to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
  .to-top:active { transform: scale(.94); }
  .to-top.is-dragging { transition: opacity .25s var(--ease); transform: scale(1.08); box-shadow: 0 14px 30px rgba(42, 0, 6, .4); cursor: grabbing; }
}
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
@media print { .to-top { display: none !important; } }
a.tel-link { white-space: nowrap; }

/* ---------- Phone links on a computer: number + copy, instead of launching a calling app ---------- */
.call-pop {
  position: absolute; z-index: 80; width: 300px; padding: 18px 20px 16px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  font-family: var(--font-sans); text-align: left;
}
.call-pop__label { margin: 0 0 2px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); }
.call-pop__num { margin: 0 0 14px; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--ink); white-space: nowrap; user-select: all; }
.call-pop__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.call-pop__app { font-size: .82rem; color: var(--muted); }
.call-pop__app:hover { color: var(--burgundy); }
.call-pop__hint { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.call-pop__close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent;
  color: var(--muted); font-size: .95rem; cursor: pointer; }
.call-pop__close:hover { background: var(--ivory); color: var(--ink); }
@media print { .call-pop { display: none !important; } }

/* "film" in the film heading: no fi ligature and a hair of space, so the f and i do not touch */
#film-title { font-variant-ligatures: no-common-ligatures; }
.fi-gap { margin-left: .06em; }

/* "People first. Always." picked out in gold as the firm's slogan (About page banner) */
.lead .slogan { color: var(--gold); font-weight: 600; }
