/* Professor Title — site styles */
:root {
  --navy: #0e213d;
  --navy-deep: #0a182d;
  --navy-soft: #1b3358;
  --ivory: #faf6ee;
  --cream: #f3ecdf;
  --sand: #e8dcc6;
  --gold: #b08634;
  --gold-light: #cfa860;
  --gold-text: #8a6620;
  --ink: #22262d;
  --muted: #5a606b;
  --line: rgba(14, 33, 61, 0.12);
  --white: #ffffff;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 4px;
  --shadow: 0 24px 60px -28px rgba(10, 24, 45, 0.35);
  --ease: cubic-bezier(0.23, 1, 0.32, 1); /* ease-out */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -0.012em; line-height: 1.2; }
h4 { font-size: 1.2rem; }
strong { font-weight: 700; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--navy); color: var(--white); padding: 0.7rem 1rem;
  text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }
.section { padding: var(--section) 0; }
.section--tight-top { padding-top: 0; }
.section--ivory { background: var(--ivory); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, 0.82); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 1.25rem;
}
.eyebrow::before { content: ""; flex: none; width: 2.25rem; height: 1px; background: currentColor; opacity: 0.7; }
.section--navy .eyebrow, .on-dark .eyebrow { color: var(--gold-light); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.7; color: var(--muted); }
.section--navy .lead { color: rgba(255, 255, 255, 0.78); }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 0.95rem 1.6rem; min-height: 48px;
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-light); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  color: var(--navy); text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 0.2rem;
  transition: color 200ms ease, border-color 200ms ease;
}
.text-link:hover { color: var(--gold-text); }
.text-link .arrow { transition: transform 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .text-link:hover .arrow { transform: translateX(4px); } }
.on-dark .text-link, .section--navy .text-link { color: var(--white); }
.on-dark .text-link:hover, .section--navy .text-link:hover { color: var(--gold-light); }

/* Email/phone links: no size change on hover, no awkward wrapping */
.contact-link {
  color: inherit; text-decoration: underline; text-decoration-color: rgba(176, 134, 52, 0.55);
  text-underline-offset: 0.22em; text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
  white-space: nowrap;
}
.contact-link:hover { color: var(--gold-text); text-decoration-color: var(--gold); }
.on-dark .contact-link:hover, .site-footer .contact-link:hover, .utility .contact-link:hover { color: var(--gold-light); }

/* Utility bar */
.utility {
  background: var(--navy-deep); color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem; letter-spacing: 0.02em;
}
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.utility p { margin: 0; }
.utility__links { display: flex; gap: 1.75rem; }
.utility .contact-link { text-decoration: none; }
@media (max-width: 720px) {
  .utility__area { display: none; }
  .utility .wrap { justify-content: center; }
  .utility__links { gap: 1.25rem; }
}
@media (max-width: 400px) { .utility__email { display: none; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: #fff; } }
@media (prefers-reduced-transparency: reduce) { .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-contrast: more) { .site-header { background: #fff; border-bottom-color: var(--navy); } }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(10, 24, 45, 0.4); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: 200px; height: auto; }
.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav__list { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative; text-decoration: none; color: var(--navy);
  font-size: 0.94rem; font-weight: 600; letter-spacing: 0.01em; padding: 0.5rem 0;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.1rem; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { padding: 0.75rem 1.3rem; min-height: 44px; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; cursor: pointer; align-items: center; justify-content: center; color: var(--navy);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: transform 200ms var(--ease), background-color 150ms ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .brand img { width: 172px; }
  .site-header .wrap { min-height: 72px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-top: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.75rem; box-shadow: var(--shadow);
    max-height: calc(100vh - 72px); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 150ms ease-out, transform 150ms ease-out, visibility 0s linear 150ms;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity 240ms var(--ease-drawer), transform 240ms var(--ease-drawer), visibility 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__list a::after { display: none; }
  .nav__list a[aria-current="page"] { color: var(--gold-text); }
  .nav__cta { margin-top: 1.25rem; width: 100%; }
}

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: min(86vh, 800px);
  display: flex; align-items: center;
  color: var(--white); overflow: hidden;
  background: var(--navy-deep);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 24, 45, 0.93) 0%, rgba(10, 24, 45, 0.8) 36%, rgba(10, 24, 45, 0.3) 68%, rgba(10, 24, 45, 0.08) 100%),
    linear-gradient(0deg, rgba(10, 24, 45, 0.5) 0%, rgba(10, 24, 45, 0) 35%);
}
.hero__content { max-width: 780px; padding: clamp(4rem, 9vw, 7rem) 0; }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 400; }
.hero p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, 0.86); max-width: 600px; }
.hero .eyebrow { color: var(--gold-light); white-space: nowrap; }
@media (max-width: 480px) { .hero .eyebrow { white-space: normal; letter-spacing: 0.14em; } }
.hero h1 { max-width: 720px; }
@media (max-width: 760px) {
  .hero { min-height: 0; align-items: flex-end; }
  .hero__media img { object-position: 68% 40%; }
  .hero::before { background: linear-gradient(0deg, rgba(10, 24, 45, 0.96) 0%, rgba(10, 24, 45, 0.85) 55%, rgba(10, 24, 45, 0.4) 100%); }
  .hero__content { padding-top: 10rem; }
}

/* Page hero (internal) */
.page-hero { position: relative; isolation: isolate; color: var(--white); background: var(--navy); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 24, 45, 0.94) 0%, rgba(10, 24, 45, 0.82) 45%, rgba(10, 24, 45, 0.38) 100%);
}
.page-hero--plain::before { background: radial-gradient(120% 140% at 100% 0%, var(--navy-soft) 0%, var(--navy) 55%, var(--navy-deep) 100%); }
.page-hero__content { padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(4rem, 8vw, 6rem); max-width: 780px; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-hero p { color: rgba(255, 255, 255, 0.85); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 650px; }
.page-hero .eyebrow { color: var(--gold-light); }
@media (max-width: 760px) { .page-hero::before { background: linear-gradient(0deg, rgba(10, 24, 45, 0.95) 0%, rgba(10, 24, 45, 0.82) 100%); } }
.breadcrumb { font-size: 0.82rem; letter-spacing: 0.04em; margin: 0 0 1.5rem; color: rgba(255, 255, 255, 0.7); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin: 0 0.6rem; opacity: 0.55; }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }

/* Statement (Who we are) */
.statement { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.statement h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); margin: 0; }
.statement__body { border-top: 1px solid var(--gold); }
.statement__body p { font-size: 1.12rem; color: var(--muted); margin-top: 1.75rem; }
.statement__body .text-link { margin-top: 1.75rem; }
.owl-mark { width: 56px; height: 56px; margin-bottom: 1.75rem; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }

/* Residential feature */
.feature { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; }
.feature__media { grid-column: 1 / span 8; grid-row: 1; position: relative; }
.feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.feature__panel {
  grid-column: 7 / span 6; grid-row: 1; position: relative; z-index: 1;
  background: var(--navy); color: rgba(255, 255, 255, 0.84);
  padding: clamp(2.25rem, 4.5vw, 3.75rem); border-radius: var(--radius); box-shadow: var(--shadow);
}
.feature__panel h2 { color: var(--white); }
.feature__panel .eyebrow { color: var(--gold-light); }
.feature__tag {
  position: absolute; left: 1.25rem; top: 1.25rem;
  background: rgba(255, 255, 255, 0.95); color: var(--navy);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.5rem 0.85rem; border-radius: 2px;
}
.feature__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; }
.feature__list li { display: flex; gap: 0.75rem; align-items: baseline; font-size: 0.98rem; }
.feature__list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); transform: translateY(-2px); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature__media, .feature__panel { grid-column: 1; }
  .feature__panel { grid-row: 2; margin: -4rem 1rem 0; }
}
@media (max-width: 480px) { .feature__panel { margin: -2.5rem 0 0; } }

/* Section heads */
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; flex-wrap: wrap; }
.section-head--split > div { max-width: 640px; }
.section-head--split > p { max-width: 420px; color: var(--muted); margin: 0; }
.section--navy .section-head--split > p { color: rgba(255, 255, 255, 0.75); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

/* Supporting services (editorial pair) */
.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.editorial__item { display: flex; flex-direction: column; }
.editorial__item:nth-child(2) { margin-top: clamp(0rem, 6vw, 5rem); }
.editorial__media { overflow: hidden; border-radius: var(--radius); margin-bottom: 1.75rem; display: block; }
.editorial__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 500ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .editorial__item:hover .editorial__media img { transform: scale(1.03); } }
.editorial__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 0.6rem; }
.editorial__item h3 { margin-bottom: 0.75rem; }
.editorial__item p { color: var(--muted); }
.editorial__item .text-link { margin-top: 1.25rem; align-self: flex-start; }
@media (max-width: 760px) {
  .editorial { grid-template-columns: 1fr; gap: 3rem; }
  .editorial__item:nth-child(2) { margin-top: 0; }
}

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.pillar { border-top: 1px solid rgba(207, 168, 96, 0.55); padding-top: 1.75rem; }
.pillar__num { font-family: var(--serif); font-size: 0.95rem; color: var(--gold-light); letter-spacing: 0.08em; margin-bottom: 1.25rem; display: block; }
.pillar h3 { color: var(--white); margin-bottom: 0.75rem; }
.pillar p { color: rgba(255, 255, 255, 0.76); }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* Underwriter */
.underwriter { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.underwriter h2 { margin-bottom: 0; }
.underwriter__rule { width: 1px; align-self: stretch; background: var(--gold); opacity: 0.6; }
.underwriter__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.underwriter__name { font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 1.8rem); line-height: 1.25; color: var(--navy); margin: 0 0 1.1rem; }
.underwriter p { color: var(--muted); }
@media (max-width: 820px) {
  .underwriter { grid-template-columns: 1fr; }
  .underwriter__rule { width: 64px; height: 1px; align-self: auto; }
}

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.process li { position: relative; padding: 0 1.75rem 0 0; }
.process__marker { position: relative; display: flex; align-items: center; margin-bottom: 1.75rem; }
.process__marker span {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--white);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem; color: var(--navy);
}
.process__marker::after { content: ""; flex: 1; height: 1px; background: var(--sand); margin-left: 0.75rem; }
.process li:last-child .process__marker::after { display: none; }
.process h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.process p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 2.75rem; }
  .process li:nth-child(2) .process__marker::after { display: none; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; row-gap: 0; }
  .process li { display: grid; grid-template-columns: 52px 1fr; column-gap: 1.25rem; padding: 0 0 2.25rem; }
  .process__marker { grid-row: span 2; flex-direction: column; margin: 0; align-items: center; }
  .process__marker::after { display: block; width: 1px; height: auto; flex: 1; margin: 0.5rem 0 -2.25rem; }
  .process li:nth-child(2) .process__marker::after { display: block; }
  .process li:last-child .process__marker::after { display: none; }
}

/* Final CTA */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy); color: rgba(255, 255, 255, 0.84);
  border-radius: var(--radius);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.75rem, 6vw, 5rem);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 120% at 100% 100%, rgba(176, 134, 52, 0.24) 0%, rgba(176, 134, 52, 0) 60%);
}
.cta-band h2 { color: var(--white); }
.cta-band .btn-row { justify-content: flex-end; margin: 0; }
@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
}
.slim-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2.25rem 0;
}
.slim-cta p { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.65rem); color: var(--navy); }
.slim-cta .btn-row { margin: 0; }
.slim-cta .text-link { align-self: center; }

/* Split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; isolation: isolate; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split__media--wide img { aspect-ratio: 4 / 3; }
.split__media::after {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; z-index: -1;
  border: 1px solid var(--gold); border-radius: var(--radius); opacity: 0.6;
}
.split p { color: var(--muted); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { margin-right: 0.75rem; }
  .split__media::after { inset: 0.75rem -0.75rem -0.75rem 0.75rem; }
  .split__media img { aspect-ratio: 4 / 3; }
}

/* Services overview */
.service-primary {
  display: grid; grid-template-columns: 1.15fr 1fr; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.service-primary__media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.service-primary__body { padding: clamp(2rem, 4.5vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.service-primary__body p { color: var(--muted); }
.service-primary__body .btn { margin-top: 1rem; }
@media (max-width: 860px) { .service-primary { grid-template-columns: 1fr; } .service-primary__media img { min-height: 0; aspect-ratio: 16 / 10; } }
.service-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.service-card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.service-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.service-card__body { padding: clamp(1.75rem, 3vw, 2.5rem); display: flex; flex-direction: column; flex: 1; }
.service-card__body p { color: var(--muted); margin-bottom: 1.5rem; }
.service-card__body .text-link { margin-top: auto; align-self: flex-start; }
.card-label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 0.7rem; display: block; }
@media (max-width: 760px) { .service-secondary { grid-template-columns: 1fr; } }

/* Prose & detail lists */
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 0; }
.prose h3 { margin-top: 2.5rem; font-size: 1.45rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--gold); }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.aside-card { background: var(--ivory); border-top: 2px solid var(--gold); padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: 0 0 var(--radius) var(--radius); position: sticky; top: 110px; }
@media (max-width: 900px) { .aside-card { position: static; } }
.aside-card h3 { font-size: 1.35rem; margin-top: 0; }
.aside-card p { color: var(--muted); font-size: 0.98rem; }
.aside-card .btn { width: 100%; margin-top: 0.75rem; }
.aside-card__contact { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.95rem; display: grid; gap: 0.35rem; }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.85rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--muted); }
.check-list li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.42em; width: 1rem; height: 0.5rem;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}
.check-list strong { color: var(--ink); }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.related a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.6rem 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color 200ms ease, transform 200ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .related a:hover { border-color: var(--gold); transform: translateY(-2px); } }
.related a:active { transform: scale(0.99); }
.related small { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 0.35rem; }
.related strong { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--navy); }
.related .arrow { color: var(--gold); font-size: 1.3rem; }
@media (max-width: 680px) { .related { grid-template-columns: 1fr; } }

/* Expect (About) */
.expect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.expect__item { background: var(--white); padding: 2.25rem 2rem; border-radius: var(--radius); border: 1px solid var(--line); }
.expect__icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 1.5rem; }
.expect__item h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.expect__item p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 860px) { .expect { grid-template-columns: 1fr; } }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq-nav { position: sticky; top: 110px; }
.faq-nav p { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 1rem; }
.faq-nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.faq-nav a { display: block; padding: 0.55rem 0 0.55rem 1.25rem; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; margin-left: -1px; border-left: 1px solid transparent; }
.faq-nav a:hover { color: var(--navy); border-color: var(--gold); }
.faq-group + .faq-group { margin-top: 3.5rem; }
.faq-group h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); scroll-margin-top: 120px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  padding: 1.35rem 0; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--gold-text); }
.faq__answer { padding: 0 0 1.5rem; color: var(--muted); max-width: 720px; }
.faq__answer ul { padding-left: 1.2rem; }
.faq__answer li { margin-bottom: 0.4rem; }
.faq__answer li::marker { color: var(--gold); }
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; margin: 0; }
.glossary div { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.glossary dt { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin-bottom: 0.3rem; }
.glossary dd { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 700px) { .glossary { grid-template-columns: 1fr; } }
.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  background: var(--ivory); border-left: 3px solid var(--gold); padding: 1.5rem 1.6rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.notice svg { width: 26px; height: 26px; color: var(--gold-text); margin-top: 0.15rem; }
.notice h3 { font-family: var(--sans); font-size: 1rem; font-weight: 800; letter-spacing: 0.02em; margin: 0 0 0.35rem; color: var(--navy); }
.notice p { font-size: 0.96rem; color: var(--ink); }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-nav { position: static; } }

/* Contact */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column;
}
.contact-card__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold-light); display: grid; place-items: center; margin-bottom: 1.5rem; }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.contact-card p { color: var(--muted); }
.contact-card__value { font-family: var(--serif); font-size: clamp(1.3rem, 2.3vw, 1.7rem); color: var(--navy); margin: 1.25rem 0 0; }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .contact-card__value { font-size: 1.15rem; } }
.contact-meta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.98rem; }
.contact-meta p { margin: 0; }

/* Order form */
.order-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .order-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.form-intro { color: var(--muted); margin-bottom: 2rem; }
fieldset { border: 0; padding: 0; margin: 0 0 2.25rem; min-width: 0; }
legend { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 1.1rem; padding: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.field label .opt { font-weight: 500; color: var(--muted); }
.field label .req { color: var(--gold-text); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background-color: var(--white); border: 1px solid #c9ced6; border-radius: var(--radius);
  padding: 0.8rem 0.95rem; min-height: 50px; transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 134, 52, 0.2); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: 0.85rem; margin-top: 0.35rem; display: none; }
.field__error.is-visible { display: block; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form-actions .btn { min-width: 220px; }
.form-fineprint { font-size: 0.86rem; color: var(--muted); margin-top: 1.25rem; }
.form-status { margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); display: none; font-size: 0.98rem; }
.form-status.is-visible { display: block; }
.form-status--success { background: #eef5ee; border: 1px solid #b9d4ba; color: #1f4a22; }
.form-status--error { background: #fbefee; border: 1px solid #e3b8b4; color: #7a1f17; }
.form-status--info { background: var(--ivory); border: 1px solid var(--sand); color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.order-aside { display: grid; gap: 1.5rem; position: sticky; top: 110px; }
.order-aside .aside-card { position: static; }
@media (max-width: 960px) { .order-aside { position: static; } }
.ordered-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.7rem; counter-reset: item; }
.ordered-list li { counter-increment: item; display: grid; grid-template-columns: 1.9rem 1fr; gap: 0.4rem; color: var(--muted); font-size: 0.96rem; }
.ordered-list li::before { content: counter(item, decimal-leading-zero); font-family: var(--serif); color: var(--gold-text); font-size: 0.92rem; padding-top: 0.08rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }
.footer-main { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); padding: clamp(3.5rem, 7vw, 5.5rem) 0 3rem; }
.footer-brand img { width: 220px; margin-bottom: 1.5rem; }
.footer-brand p { max-width: 340px; }
.footer-title { font-family: var(--sans); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); margin: 0.4rem 0 1.25rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-list a { text-decoration: none; color: rgba(255, 255, 255, 0.84); transition: color 150ms ease; }
.footer-list a:hover { color: var(--gold-light); }
.footer-list .contact-link { text-decoration: underline; text-decoration-color: rgba(207, 168, 96, 0.45); }
.footer-underwriter { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.75rem 0; }
.footer-underwriter p { margin: 0; }
.footer-underwriter strong { color: var(--white); font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.5rem 0 2rem; font-size: 0.84rem; color: rgba(255, 255, 255, 0.58); display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-main { grid-template-columns: 1fr; } }

/* 404 */
.notfound { text-align: center; padding: clamp(5rem, 12vw, 9rem) 0; }
.notfound img { width: 84px; margin: 0 auto 2rem; }
.notfound .btn-row { justify-content: center; }

/* Reveal on scroll */
/* Decorative, plays once per element. Siblings stagger by 60ms via --stagger set in JS. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--stagger, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Reduced motion: keep a gentle cross-fade, drop the movement */
@media (prefers-reduced-motion: reduce) { .js .reveal { transform: none; transition: opacity 300ms ease; transition-delay: 0ms; } }

.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; }

.mt-0 { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .btn:active, .related a:active { transform: none; }
  .nav, .nav-open .nav { transform: none !important; }
}

/* ---------- Mobile refinements ---------- */
/* Grid tracks never grow past the viewport, even on 320px phones */
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .service-primary { grid-template-columns: minmax(0, 1fr); } }
html, body { overflow-x: clip; }

/* Eyebrows that wrap keep the gold rule aligned with the first line */
@media (max-width: 600px) {
  .eyebrow { align-items: flex-start; letter-spacing: 0.14em; }
  .eyebrow::before { width: 1.5rem; margin-top: 0.6em; }
  .page-hero .eyebrow, .hero .eyebrow { font-size: 0.74rem; }
}

/* Comfortable tap targets (44px) for inline links on touch screens */
@media (pointer: coarse) {
  .text-link { min-height: 44px; }
  .aside-card__contact { gap: 0; }
  .aside-card__contact .contact-link,
  .footer-list a,
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-list { gap: 0; }
}

/* Long email address can wrap on the narrowest phones */
@media (max-width: 380px) { .contact-card__value .contact-link { white-space: normal; overflow-wrap: anywhere; } }

/* Full-width primary actions on phones */
@media (max-width: 600px) {
  .form-actions .btn { width: 100%; min-width: 0; }
  .hero .btn-row .btn, .cta-band .btn-row .btn { flex: 1 1 auto; justify-content: center; }
}
