*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  font-synthesis: none;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -0.012em;
  word-break: keep-all;
  background: var(--white);
  max-width: 100%;
}

body.nav-open,
body.menu-open {
  overflow: hidden;
}

html.menu-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  html {
    scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

section, [id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

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

a {
  color: var(--purple-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--navy-900);
  font-weight: 700;
  word-break: keep-all;
}

h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 0.6em; line-height: 1.22; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); margin-bottom: 20px; line-height: 1.3; letter-spacing: -0.03em; }
h3 { font-size: 1.15rem; margin-bottom: 0.6em; line-height: 1.4; letter-spacing: -0.02em; }

p,
li {
  line-height: 1.8;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

p { margin: 0 0 16px; }

ul { margin: 0; padding: 0; }

a[href^="mailto:"],
.footer address,
.footer__address,
.location-address {
  overflow-wrap: anywhere;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: fixed;
  top: 0;
  left: 16px;
  z-index: 99999;
  padding: 12px 18px;
  background: var(--brass-500);
  color: var(--navy-950);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: none;
}

.skip-link:hover {
  text-decoration: none;
  color: var(--navy-950);
}

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

.container,
.site-container,
.page-container,
.section-inner,
.main-hero__inner,
.sub-hero__inner,
.page-hero__inner,
.company-hero__inner,
.about-hero__inner,
.service-inner,
.footer__inner,
.faq-page,
.checklist-page,
.subpage-hero__inner,
.subpage-content__inner {
  width: min(var(--site-width), calc(100% - (var(--site-gutter) * 2)));
  max-width: none;
  margin-inline: auto;
  box-sizing: border-box;
}

.reading-width {
  max-width: 820px;
}

.page-section,
.section {
  padding-block: 92px;
}

main > .page-section:last-of-type,
main > .section:last-of-type,
main > .company-message:last-of-type,
main > .inner-section:last-of-type {
  padding-bottom: 88px;
}

.section-heading,
.section-head {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-title {
  margin: 0 0 18px;
  font-size: clamp(30px, 3vw, 42px);
}

.section-head h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.section-description,
.section-head .lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.page-content {
  width: min(820px, 100%);
  margin: 0;
  text-align: left;
}

.page-content--wide {
  width: 100%;
}

.page-content h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.page-content h3 {
  margin: 32px 0 14px;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.page-content p,
.page-content li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  word-break: keep-all;
}

.page-content p + p {
  margin-top: 18px;
}

.page-content ul li + li,
.page-content ol li + li {
  margin-top: 8px;
}

.eyebrow,
.section-head .en {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--purple-700);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-family: var(--font-en);
}

.lead {
  font-size: 16px;
  color: var(--text-secondary);
}

.note {
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: var(--ivory-50);
  border-left: 4px solid var(--purple-700);
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
  margin-top: 28px;
}

.placeholder-chip {
  display: inline-block;
  background: var(--ivory-100);
  color: var(--navy-800);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.is-reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

img.is-broken {
  opacity: 0;
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--ivory-100);
}

.media-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .site-container,
  .container,
  .section-inner,
  .page-hero__inner,
  .company-hero__inner,
  .about-hero__inner,
  .main-hero__inner {
    width: calc(100% - 40px);
  }

  .page-section,
  .section {
    padding-block: 60px;
  }

  .page-content {
    width: 100%;
  }

  body {
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: -0.015em;
    word-break: keep-all;
  }

  h1 {
    font-size: clamp(32px, 9vw, 38px);
    line-height: 1.28;
    letter-spacing: -0.035em;
  }

  h2,
  .page-content h2,
  .section-head h2,
  .section-title {
    font-size: 26px;
    line-height: 1.35;
    letter-spacing: -0.03em;
  }

  h3 {
    font-size: 19px;
    line-height: 1.45;
  }

  p {
    margin: 0 0 18px;
  }

  body,
  .page-content p,
  .page-content li,
  p,
  li {
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: -0.015em;
    word-break: keep-all;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-reveal { animation: none; opacity: 1; transform: none; }
}
