/* Shared readability refinement — loaded after the visual-system stylesheet. */
:root {
  --type-body: 1.125rem;
  --type-support: 1rem;
  --type-meta: 1rem;
  --type-lead: clamp(1.25rem, 1.5vw, 1.45rem);
  --leading-body: 1.65;
  --leading-heading: 1.12;
  --reading-measure: 68ch;
  --gold-readable: #7a5b11;
}

html { text-size-adjust: 100%; }
body {
  font-size: var(--type-body);
  line-height: var(--leading-body);
  font-weight: 400;
}

p, li, address, input, select, textarea, button { font-size: inherit; }
p { max-width: var(--reading-measure); }

.hero h1,
.page-hero h1,
.not-found h1 {
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  letter-spacing: -0.05em;
  line-height: var(--leading-heading);
}

.section h2,
.final-cta h2,
.service-detail__content h2,
.project-profile h2,
.leadership-copy h2,
.contact-aside h2,
.reference-panel h2,
.quote-form__header h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.16;
}

.hero__subhead,
.prose .lead,
.lead {
  font-size: var(--type-lead);
  line-height: 1.48;
}

.hero__copy,
.page-hero__content > p:not(.eyebrow):not(.hero-kicker),
.prose,
.reference-panel p,
.contact-aside > p,
.not-found p {
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.hero__copy { color: #f1f1f1; }
.page-hero__content > p:not(.eyebrow):not(.hero-kicker) { color: #eeeeee; }
.prose { color: #343434; max-width: var(--reading-measure); }
.section-note { color: #454545; font-size: var(--type-support); line-height: 1.6; }
.section-heading > p:not(.eyebrow) { font-size: var(--type-body); line-height: var(--leading-body); opacity: 1; }

/* Navigation, calls to action, and metadata that visitors still need to read. */
.header__inner { min-height: 96px; height: auto; }
.brand { min-width: 238px; }
.brand__type { font-size: 0.75rem; letter-spacing: 0.09em; }
.brand__type strong { font-size: 0.8125rem; }
.site-nav { gap: 1.125rem; }
.nav-link {
  font-size: 1rem;
  letter-spacing: 0.035em;
  line-height: 1.25;
}
.button {
  min-height: 3.5rem;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  letter-spacing: 0.035em;
  line-height: 1.25;
  white-space: nowrap;
}
.eyebrow,
.hero-kicker,
.hero__credentials,
.service-card__top,
.project-preview p,
.project-preview div,
.project-profile__type,
.project-profile__number p,
.credential-band p,
.contact-detail span,
.quote-form__header > p,
.form-grid label,
.footer__credentials,
.site-footer h2 {
  font-size: var(--type-meta);
  letter-spacing: 0.075em;
  line-height: 1.45;
}
.hero__credentials { color: #e4e4e4; }
.hero__mark-label,
.leadership-visual span { font-size: var(--type-meta); line-height: 1.45; }
.text-link,
.service-card > a,
.project-preview a {
  font-size: var(--type-support);
  letter-spacing: 0.045em;
  line-height: 1.4;
}

/* Cards, supporting descriptions, process details, and service capability text. */
.service-card { min-height: 0; padding: 2rem; }
.service-card h3,
.advantage h3,
.process-step h3,
.specialty-grid h3,
.values-grid h3,
.qualification-grid h3,
.faq-grid h3,
.project-scope h3,
.capability-list h3 {
  font-size: clamp(1.375rem, 1.8vw, 1.65rem);
  line-height: 1.2;
}
.project-preview h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.14;
}
.service-card p,
.advantage p,
.process-step p,
.specialty-grid p,
.values-grid p,
.faq-grid p,
.capability-list li,
.project-scope li {
  font-size: var(--type-body);
  line-height: 1.62;
}
.project-facts,
.footer__brand > p,
.footer__links a,
.footer__contact a,
.footer__contact address,
.form-privacy,
.form-status {
  font-size: var(--type-support);
  line-height: 1.62;
}
.service-card p { min-height: 0; color: #ebebeb; }
.advantage p,
.process-step p,
.specialty-grid p,
.values-grid p,
.faq-grid p,
.capability-list li,
.project-scope li { color: #494949; }
.service-detail--dark .capability-list li,
.project-profile--dark .project-scope li { color: #f0f0f0; }
.project-facts { color: #48443d; }
.project-profile--dark .project-facts { color: #eeeeee; }
.process-step { min-height: 0; padding: 1.75rem 1.25rem 1.75rem 0; }
.process-step h3 { margin: 1.1rem 0 0.65rem; }
.specialty-grid article,
.values-grid article,
.faq-grid article,
.qualification-grid article { min-height: 0; padding: 1.75rem; }
.advantage { padding: 2rem 0; }
.advantage > span,
.process-step > span,
.specialty-grid span,
.values-grid span,
.faq-grid span,
.project-profile__number span { font-size: var(--type-meta); }
.credential-band h2 { font-size: 1.25rem; line-height: 1.35; }
.qualification-grid strong { font-size: var(--type-support); line-height: 1.5; }

/* Form controls should be comfortably tappable and readable. */
.quote-form-wrap { padding: 3rem; }
.quote-form__header > p,
.quote-form__header span { font-size: var(--type-support); line-height: 1.55; }
.form-grid { gap: 1.5rem; margin-top: 2.25rem; }
.form-grid label { gap: 0.55rem; color: #fff0b3; font-size: var(--type-support); }
.form-grid input,
.form-grid select,
.form-grid textarea {
  min-height: 3.25rem;
  padding: 0.75rem 0;
  border-bottom-color: rgba(255, 255, 255, 0.62);
  color: #ffffff;
  font-size: var(--type-body);
  line-height: 1.55;
}
.form-grid textarea { min-height: 11rem; }
.form-grid input::placeholder,
.form-grid textarea::placeholder { color: #d6d6d6; opacity: 1; }
.form-privacy { color: #f1f1f1; }
.form-status { min-height: 1.7rem; font-weight: 500; }
.contact-detail a,
.contact-detail address { font-size: 1.125rem; line-height: 1.5; }
.contact-license { font-size: var(--type-meta); line-height: 1.5; }
.contact-license strong { font-size: var(--type-support); }

/* Footer and dense secondary areas retain hierarchy without becoming illegible. */
.footer__brand > p,
.footer__links a,
.footer__contact a,
.footer__contact address { color: #f0f0f0; }
.footer__credentials { color: #dddddd; }
.footer__bottom { font-size: var(--type-meta); line-height: 1.55; letter-spacing: 0.04em; }
.license-stamp,
.license-stamp strong { font-size: var(--type-support); line-height: 1.45; }
.license-stamp { color: #f0f0f0; }
.license-stamp strong { color: var(--gold-pale); }

/* Let reading-focused sections breathe as type grows. */
.split-layout,
.difference-grid,
.contact-layout__grid,
.leadership-section__grid,
.service-detail__grid,
.service-detail--dark .service-detail__grid { gap: clamp(3.5rem, 7vw, 6.5rem); }
.prose + .prose { margin-top: 1.25rem; }
.prose p + p { margin-top: 1.25rem; }
.reference-panel p { color: #38342d; }

/* Gold stays bright on dark surfaces and deepens where it carries small text on light panels. */
.section:not(.section--ink) .eyebrow,
.section:not(.section--ink) h2 em,
.service-detail:not(.service-detail--dark) .eyebrow,
.service-index a span,
.contact-detail span,
.project-profile:not(.project-profile--dark) .project-profile__type,
.project-profile:not(.project-profile--dark) .project-profile__number span,
.section:not(.section--ink) .advantage > span,
.section:not(.section--ink) .process-step > span,
.section:not(.section--ink) .specialty-grid span,
.section:not(.section--ink) .values-grid span,
.section:not(.section--ink) .faq-grid span {
  color: var(--gold-readable);
}

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer__contact { grid-column: 1 / -1; max-width: 30rem; }
  .project-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-preview:last-child { grid-column: 1 / -1; }
}

/* Switch from desktop links before larger labels become crowded. */
@media (max-width: 860px) {
  :root { --shell: min(100% - 2.5rem, 1240px); }
  .header__inner { min-height: 5rem; }
  .menu-button {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0.45rem;
    width: 2.5rem;
    padding: 0.5rem 0;
    border: 0;
    background: transparent;
  }
  .menu-button span { display: block; width: 100%; height: 0.125rem; background: var(--gold); transition: 0.2s; }
  .menu-button[aria-expanded=true] span:first-child { transform: translateY(0.325rem) rotate(45deg); }
  .menu-button[aria-expanded=true] span:last-child { transform: translateY(-0.325rem) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.25rem;
    padding: 7rem 2.5rem 2.5rem;
    background: rgba(9, 9, 9, 0.98);
    transform: translateX(100%);
    transition: transform 0.25s;
  }
  .site-nav.is-open { transform: none; }
  .nav-link { font-size: clamp(1.4rem, 4vw, 1.8rem); letter-spacing: -0.025em; }
  .nav-quote { margin-top: 1rem; }
  .project-preview:last-child { grid-column: auto; }
}

@media (max-width: 640px) {
  :root {
    --shell: min(100% - 2rem, 1240px);
    --type-body: 1.125rem;
    --type-support: 1rem;
    --type-meta: 1rem;
    --type-lead: clamp(1.25rem, 5.5vw, 1.375rem);
  }
  .header__inner { min-height: 4.75rem; }
  .brand { min-width: 0; }
  .brand__type { font-size: 0.6875rem; }
  .brand__type strong { font-size: 0.75rem; }
  .hero__copy,
  .page-hero__content > p:not(.eyebrow):not(.hero-kicker) { font-size: var(--type-body); }
  .hero__credentials { max-width: 18rem; font-size: var(--type-meta); }
  .hero__actions { gap: 0.875rem; }
  .button { min-height: 3.25rem; padding-inline: 1rem; font-size: 1rem; }
  .section { padding-block: 5rem; }
  .service-card { padding: 1.5rem; }
  .service-card h3,
  .advantage h3,
  .process-step h3,
  .specialty-grid h3,
  .values-grid h3,
  .qualification-grid h3,
  .faq-grid h3 { font-size: 1.375rem; }
  .project-preview-grid { grid-template-columns: 1fr; }
  .project-preview:last-child { grid-column: auto; }
  .project-preview { min-height: 20rem; padding: 1.5rem; }
  .project-preview h3 { font-size: clamp(1.375rem, 7vw, 1.75rem); line-height: 1.14; }
  .reference-panel { padding: 2rem 1.25rem; }
  .reference-panel .button { width: 100%; white-space: normal; text-align: center; }
  .quote-form-wrap { padding: 1.75rem 1.25rem; }
  .form-grid { gap: 1.25rem; }
  .form-grid input,
  .form-grid select,
  .form-grid textarea { min-height: 3.4rem; }
  .credential-band h2 { font-size: 1.125rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__contact { grid-column: auto; }
  .footer__bottom { font-size: var(--type-meta); }
}

@media (min-width: 641px) and (max-width: 860px) {
  .service-detail__grid,
  .service-detail--dark .service-detail__grid,
  .split-layout,
  .contact-layout__grid,
  .leadership-section__grid,
  .difference-grid { grid-template-columns: 1fr; }
  .service-detail--dark .service-detail__visual { order: 0; }
  .prose { margin-top: 0; }
}
