@import url("./tokens.css");
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding: 128px 0 80px; }
body {
  min-width: 320px;
  background: var(--color-water);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.35; font-style: normal; font-weight: 700; overflow-wrap: anywhere; }
p { margin-bottom: 1.4em; }
figure { margin: 0; }
.container { width: min(calc(100% - 64px), var(--measure)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1000; padding: 10px 16px; background: var(--color-white); color: var(--color-water-dark); }
.skip-link:focus { top: 12px; }
.site-header {
  position: fixed;
  z-index: 50;
  top: 20px;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: max-content;
  max-width: calc(100% - 32px);
}
.header-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 66px;
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-pill);
  background: var(--color-nav);
  box-shadow: 0 12px 32px var(--color-shadow);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 10px;
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: .12em;
  white-space: nowrap;
  text-decoration: none;
}
.logo-slot {
  display: inline-block;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--color-rule);
  border-radius: 2px;
}
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--color-water-deep);
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: .12em;
  pointer-events: none;
  animation: loader-fallback 0s 1s forwards;
}
.site-loader .logo-slot { width: 34px; height: 34px; }
.site-ready .site-loader { visibility: hidden; animation: none; }
@keyframes loader-fallback { to { visibility: hidden; } }
.header-links { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.header-links a { display: inline-block; font-size: .83rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
.header-links a:hover, .header-links a[aria-current="page"] { color: var(--color-water-pale); }
.header-contact { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--color-white); border-radius: var(--radius-pill); font-size: .82rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
.header-contact:hover { background: var(--color-white); color: var(--color-water-deep); }
.menu-panel { position: relative; flex: none; }
.menu-panel summary { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; list-style: none; border-radius: 50%; }
.menu-panel summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 21px; height: 2px; background: var(--color-white); content: ""; transition: transform var(--dur-fast) var(--ease-standard); }
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -7px; }
.menu-icon::after { position: absolute; top: 7px; }
.menu-panel[open] summary { position: fixed; z-index: 82; top: 22px; right: max(20px, calc((100vw - 1120px)/2)); background: var(--color-water-mid); }
.menu-panel[open] .menu-icon { background: transparent; }
.menu-panel[open] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-panel[open] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }
.menu-panel:not([open]) .menu-sheet { display: none; }
.menu-sheet { position: fixed; z-index: 80; inset: 0; width: 100%; height: 100dvh; padding: 104px max(24px, calc((100% - 940px)/2)) 40px; overflow-y: auto; overscroll-behavior: contain; background: var(--color-water-deep); }
.menu-sheet p { font-size: .76rem; letter-spacing: .16em; color: var(--color-white-muted); }
.menu-sheet nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.menu-sheet nav a { display: block; min-height: 60px; padding: 14px 20px; border: 1px solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-water-dark); font-weight: 700; text-decoration: none; }
.menu-sheet nav a:hover { background: var(--color-water-mid); }
.menu-sheet .menu-contact { margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; max-width: 100%; padding: 12px 24px; border: 1px solid var(--color-white); border-radius: var(--radius-pill); font-weight: 700; font-size: .93rem; white-space: nowrap; text-decoration: none; transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard); }
.button:hover { background: var(--color-white); color: var(--color-water-deep); }
.button--solid { background: var(--color-white); color: var(--color-water-deep); }
.button--solid:hover { background: var(--color-water-pale); border-color: var(--color-water-pale); }
.button--dark { background: var(--color-water-deep); border-color: var(--color-water-deep); color: var(--color-white); }
.button--dark:hover { background: var(--color-water-dark); color: var(--color-white); }
.button--small { min-height: 44px; padding: 8px 18px; font-size: .82rem; }
.eyebrow { margin-bottom: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; color: var(--color-white-muted); }
.section-heading { margin-bottom: 48px; text-align: center; }
.section-heading h2 { margin-bottom: 16px; font-size: clamp(1.7rem, 3vw, 2.55rem); letter-spacing: .07em; }
.section-heading p:last-child { margin-bottom: 0; }
.section-block { padding-block: clamp(80px, 9vw, 132px); }
.section--deep { background: var(--color-water-deep); }
.section--mid { background: var(--color-water-mid); }
.section--water { background: var(--color-water); }
.section--dark { background: var(--color-water-dark); }
.page-main { padding-top: 0; }
.page-intro { position: relative; padding: 180px 0 94px; background: var(--color-water); overflow: hidden; }
.page-intro::after { position: absolute; content: ""; width: 44vw; aspect-ratio: 1; border: 1px solid var(--color-rule); border-radius: 50%; right: -8vw; top: -10vw; pointer-events: none; }
.page-intro .container { position: relative; z-index: 1; }
.page-intro h1 { margin-bottom: 20px; font-size: clamp(2.2rem, 5.5vw, 4.5rem); letter-spacing: .08em; }
.page-intro p:not(.eyebrow) { max-width: 42em; margin-bottom: 0; color: var(--color-white-soft); }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 24px; font-size: .78rem; color: var(--color-white-muted); }
.breadcrumb a { white-space: nowrap; }
.visual-note { margin-top: 10px; font-size: .72rem; color: var(--color-white-muted); }
.rule-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--color-rule); }
.rule-list li { padding: 22px 0; border-bottom: 1px solid var(--color-rule); }
.end-cta { padding-block: 72px; background: var(--color-water-mid); text-align: center; }
.end-cta h2 { font-size: clamp(1.7rem,3vw,2.5rem); }
.end-cta p { color: var(--color-white-soft); }
.footer { padding: 84px 0 26px; background: var(--color-water-deep); }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 9vw; }
.footer .wordmark { font-size: 1.65rem; }
.footer .logo-slot { width: 34px; height: 34px; }
.footer-tagline { margin: 14px 0 32px; color: var(--color-white-muted); }
.footer-contact { display: grid; gap: 10px; margin-bottom: 30px; }
.footer-contact a { width: fit-content; font-weight: 700; }
.footer-contact .phone { font-size: 1.5rem; letter-spacing: .04em; }
.footer address { font-style: normal; color: var(--color-white-soft); }
.footer-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 24px; }
.footer-nav a { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; font-size: .89rem; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-small { display: flex; justify-content: space-between; gap: 20px; margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--color-rule); font-size: .74rem; color: var(--color-white-muted); }
.footer-small p { margin: 0; }
.mobile-call { display: none; }
@media (max-width: 1050px) {
  .header-links { gap: 12px; }
  .header-links a { font-size: .75rem; }
  .header-shell { gap: 14px; }
}
@media (max-width: 800px) {
  html { scroll-padding: 84px 0 128px; }
  .container { width: min(calc(100% - 36px), var(--measure)); }
  .site-header { top: 12px; width: calc(100% - 24px); }
  .footer-visible .site-header { display: none; }
  .header-shell { justify-content: space-between; width: 100%; min-height: 58px; padding: 6px 8px 6px 14px; }
  .header-links, .header-contact { display: none; }
  .menu-panel[open] summary { right: 14px; top: 15px; }
  .menu-sheet { padding: 92px 18px 40px; }
  .menu-sheet nav { grid-template-columns: 1fr; }
  .page-intro { padding: 138px 0 72px; }
  .page-intro h1 { font-size: clamp(2rem, 8vw, 3.2rem); }
  .section-block { padding-block: 72px; }
  .section-heading { margin-bottom: 32px; }
  .footer { padding-top: 72px; }
  .footer-grid { grid-template-columns: 1fr; gap: 50px; }
  .footer-small { margin-top: 50px; }
  .mobile-call { position: fixed; z-index: 45; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 72px; padding: 8px 18px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--color-rule); background: var(--color-water-dark); box-shadow: 0 -10px 30px var(--color-shadow); }
  .mobile-call span { font-size: .72rem; line-height: 1.35; }
  .mobile-call .button { min-height: 44px; padding: 8px 15px; font-size: .82rem; }
  body { padding-bottom: 72px; }
}
@media (max-width: 480px) {
  .footer-nav { grid-template-columns: 1fr; gap: 2px; }
  .footer-nav a { white-space: nowrap; }
  .footer-small { flex-direction: column; }
  .button { font-size: .84rem; padding-inline: 18px; }
  .wordmark { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .motion-rise, .motion-char { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* Reference-led chrome: wide dark navigation and contact/map footer. */
.site-header { top: 42px; width: calc(100% - 88px); max-width: 1440px; }
.header-shell { min-height: 70px; gap: 28px; padding: 8px 26px; border-radius: 8px; box-shadow: none; }
.header-links { gap: 26px; }
.header-contact { border-radius: 4px; }
.menu-panel { margin-left: auto; }
.menu-panel summary { border-radius: 4px; }
.menu-panel[open] summary { top: 48px; right: 52px; }
.menu-sheet nav a { border: 0; border-radius: 9px; background: var(--color-nav); }
.site-scrolled .header-shell { justify-content: flex-end; border-color: transparent; background: transparent; }
.site-scrolled .header-shell .wordmark, .site-scrolled .header-links, .site-scrolled .header-contact { display: none; }
.site-scrolled .menu-panel { margin-left: 0; }
.footer { padding: 112px 0 28px; background: var(--color-water); }
.footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9%; }
.footer .wordmark { font-size: 1.4rem; }
.footer-tagline { margin: 20px 0 32px; }
.footer-contact { margin-bottom: 24px; }
.footer-estimate { margin: 24px 0 0; font-weight: 700; }
.footer-map-block h2 { margin: 0 0 18px; font-size: 1rem; }
.footer-map-block iframe { display: block; width: 100%; height: 330px; border: 0; background: var(--color-water-pale); }
.footer-map-block a { display: inline-block; margin-top: 10px; font-size: .84rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 2px 24px; margin-top: 58px; padding-top: 24px; border-top: 1px solid var(--color-rule); }
.footer-nav a { white-space: nowrap; }
.footer-small { justify-content: flex-end; margin-top: 36px; padding-top: 0; border: 0; }
@media (max-width: 800px) {
  .site-header { top: 12px; width: calc(100% - 24px); max-width: none; }
  .header-shell { min-height: 50px; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .header-shell .wordmark { padding: 8px 11px; border-radius: 8px; background: var(--color-nav); }
  .header-shell .logo-slot { width: 18px; height: 18px; }
  .menu-panel[open] summary { top: 12px; right: 12px; }
  .menu-sheet { padding-top: 100px; }
  .menu-sheet p { display: none; }
  html { scroll-padding: 84px 0 128px; }
  .footer { padding: 48px 0 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-tagline { margin: 12px 0 18px; }
  .footer-contact { gap: 6px; margin-bottom: 16px; }
  .footer-estimate { margin-top: 14px; }
  .footer-map-block h2 { margin-bottom: 10px; }
  .footer-map-block iframe { height: 220px; }
  .footer-map-block a { margin-top: 6px; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 14px; margin-top: 28px; padding-top: 16px; }
  .footer-small { margin-top: 18px; }
  .footer-visible .mobile-call, .inline-contact-visible .mobile-call { display: none; }
}
@media (max-width: 480px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-nav a { font-size: .78rem; }
  .footer-contact .phone { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-rise { opacity: 0; transform: translateY(22px); transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1); transition-delay: var(--motion-delay, 0ms); }
  .motion-rise.is-visible { opacity: 1; transform: none; }
  .motion-heading .motion-char { display: inline-block; opacity: 0; transform: translateY(.6em) scale(.85); }
  .motion-heading.is-visible .motion-char { animation: motion-character .55s cubic-bezier(.16,1,.3,1) both; animation-delay: var(--letter-delay, 0ms); }
  @keyframes motion-character { to { opacity: 1; transform: none; } }
}
