:root {
  color-scheme: light;
  --paper: #f4f4ec;
  --white: #fbfbf5;
  --ink: #142b3b;
  --accent: #9b471d;
  --soft: #f3e5d7;
  --muted: #425761;
  --rule: #c9ae98;
  --focus: #873d17;
  --error: #912d28;
  --header-clearance: 79px;
  --body: "Segoe UI", system-ui, sans-serif;
  --display: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-color: #91654d var(--paper); scroll-padding-top: calc(var(--header-clearance) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button, input, textarea { font: inherit; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(48px, 6.25vw, 94px); }
h2 { font-size: clamp(33px, 3.75vw, 57px); }
p { margin: 0; }
p + p { margin-top: 1em; }
ul { margin: 0; }
.wrap { width: min(100% - 112px, 1320px); margin-inline: auto; }
.section { padding-block: clamp(80px, 7vw, 110px); }
.skip { position: fixed; top: 8px; left: 8px; z-index: 20; background: var(--white); padding: 10px 14px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; font: 22px/1.15 var(--display); text-decoration: none; white-space: nowrap; }
.brand strong { font-weight: 700; }
.brand-icon { width: 40px; flex: 0 0 auto; }
.header nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 46px); }
.header nav a { color: var(--ink); text-decoration: none; padding-block: 10px; }
.header nav a:hover, .header nav [aria-current] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 1.2em; padding: 12px 18px; border: 1px solid var(--accent); border-radius: 5px; background: var(--accent); color: #fff; font-weight: 650; line-height: 1.35; text-decoration: none; cursor: pointer; min-height: 50px; }
.button:hover { background: #7e3413; }
.button:active { background: #6b2b10; }
.button:disabled { opacity: .7; cursor: wait; }
.button.secondary { background: transparent; color: var(--accent); }
.button.secondary:hover { background: var(--soft); }
.hero-grid { display: grid; grid-template-columns: 1fr .94fr; gap: clamp(34px, 5vw, 82px); align-items: center; }
.home-hero { padding-block: 80px 92px; border-bottom: 1px solid var(--rule); }
.hero-copy h1 { max-width: 12.5ch; }
.hero-copy p, .inner-hero p { font-size: clamp(19px, 2vw, 24px); color: var(--muted); margin-top: 24px; max-width: 42ch; }
.hero-copy .button, .overview .button, .about-layout .button { margin-top: 30px; }
.map { align-self: center; min-width: 0; position: relative; isolation: isolate; background: var(--soft); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.map h2 { font-size: clamp(23px, 2.3vw, 32px); padding: 24px 24px 0; position: relative; z-index: 1; }
.map-art { width: 100%; margin-block: -20px -18px; }
.map-links { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); background: var(--white); }
.map-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 15px; min-height: 57px; color: var(--ink); font-weight: 600; line-height: 1.25; text-decoration: none; }
.map-link:nth-child(odd) { border-right: 1px solid var(--rule); }
.map-link:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
.map-link span, .service-links span { color: var(--accent); flex: 0 0 auto; }
.map-link:hover, .service-links a:hover { background: var(--soft); text-decoration: underline; }
.map-link:focus-visible { outline-offset: -4px; }
.overview, .about-layout, .contact-layout { display: grid; grid-template-columns: .95fr 1fr; align-items: start; gap: clamp(40px, 8vw, 125px); }
.overview p, .about-layout p, .contact-layout p { color: var(--muted); margin-top: 20px; max-width: 54ch; }
.service-links, .service-index ul { list-style: none; padding: 0; }
.service-links { border-top: 1px solid var(--rule); }
.service-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--rule); font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-strip { background: var(--ink); color: var(--white); padding-block: 72px; }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.strip-inner p { margin-top: 14px; max-width: 54ch; }
.strip-inner .button { color: var(--ink); background: var(--soft); border-color: var(--soft); white-space: nowrap; }
.strip-inner .button:hover { background: #fff; }
.strip-inner .button:focus-visible { outline-color: #ffc59d; }
.footer { border-top: 1px solid var(--rule); }
.footer-inner { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.footer-inner .brand-icon { width: 33px; }
.inner-hero { padding-block: 78px 72px; background: var(--soft); border-bottom: 1px solid var(--rule); }
.services-layout { display: grid; grid-template-columns: minmax(245px, .72fr) 2fr; gap: clamp(45px, 8vw, 120px); align-items: start; }
.service-index { position: sticky; top: calc(var(--header-clearance) + 24px); border-left: 3px solid var(--accent); padding-left: 18px; }
.service-index h2 { font-size: 23px; margin-bottom: 12px; }
.service-index a { display: block; padding-block: 5px; }
.service { padding-block: 32px; border-top: 1px solid var(--rule); }
.service:first-child { padding-top: 18px; }
.service:last-child { padding-bottom: 0; }
.service h2 { font-size: clamp(30px, 3.1vw, 47px); }
.service-lead { color: var(--muted); font-size: 1.12em; margin-block: 13px 14px; }
.service ul { padding-left: 1.22em; }
.service li + li { margin-top: 8px; }
.about-art { grid-column: 2; grid-row: 1; width: min(100%, 440px); justify-self: center; margin: 0; overflow: hidden; background: var(--soft); border: 1px solid var(--rule); border-radius: 6px; }
.contact-layout { grid-template-columns: .8fr 1.2fr; }
.contact-card { grid-column: 2; grid-row: 1; padding: clamp(20px, 3.5vw, 44px); background: var(--white); border: 1px solid var(--rule); border-top: 5px solid var(--accent); border-radius: 5px; }
.contact-card:focus { outline-offset: 4px; }
.contact-card h2 { font-size: clamp(26px, 3vw, 42px); }
.contact-card form { margin-top: 24px; }
.contact-card label { font-weight: 650; display: block; margin-top: 14px; }
.contact-card input, .contact-card textarea { width: 100%; border: 1px solid #9b7460; border-radius: 4px; background: #fff; color: var(--ink); padding: 10px; }
.contact-card textarea { display: block; min-height: 135px; resize: vertical; }
.contact-card [aria-invalid="true"] { border-color: var(--error); }
.contact-card .field-error, .contact-card [data-kind="error"] { color: var(--error); }
.contact-card .field-error { margin-top: 5px; }
.contact-card .field-help { margin: 3px 0 8px; }
.contact-card .form-topic { margin: 0 0 12px; padding: 9px 12px; border-left: 2px solid var(--accent); color: var(--ink); background: var(--soft); }
.contact-card .form-note { margin-block: 16px; }
.new-tab-note { white-space: nowrap; }
.contact-card .form-status { min-height: 2em; margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  main h1 { animation: enter-view 720ms cubic-bezier(.2, .7, .3, 1); }
  [data-reveal] { --reveal-distance: clamp(32px, 5vw, 58px); }
  [data-reveal].is-entering {
    animation: reveal-on-scroll 820ms cubic-bezier(.22, .62, .32, 1) var(--reveal-delay, 0ms) backwards;
  }
  [data-reveal="second"], .service-directory-group:nth-child(2) { --reveal-delay: 120ms; }
  [data-reveal="third"], .service-directory-group:nth-child(3) { --reveal-delay: 220ms; }
  .home-hero [data-reveal].is-entering, .services-hero [data-reveal].is-entering {
    animation: enter-view 620ms cubic-bezier(.2, .7, .3, 1);
  }
  [data-reveal].is-entering:is(:focus-within, :target) { animation: none; }

  .home-section-intro h2, .service-directory > .wrap > h2 { position: relative; }
  .home-section-intro.is-entering h2::after, .service-directory h2.is-entering::after {
    content: '';
    position: absolute;
    inset: auto auto -8px 0;
    width: min(100%, 7em);
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #df9a63 78%, transparent);
    transform-origin: left center;
    pointer-events: none;
    opacity: 0;
    animation: reveal-accent 1080ms ease-out;
  }

  @supports (clip-path: inset(0)) {
    :is([data-reveal-art], .service-chapter-cover).is-entering:not(:focus-within, :target) img {
      animation: reveal-image 960ms cubic-bezier(.22, .74, .22, 1) backwards;
    }
    .service-chapter-cover.is-entering .service-chapter-image { overflow: clip; }
    .process-route.is-entering { animation: reveal-route 1040ms ease-out backwards; }
  }

  @keyframes enter-view {
    from { transform: translateY(20px); opacity: .65; }
    to { transform: translateY(0); opacity: 1; }
  }
  @keyframes reveal-on-scroll {
    from { transform: translateY(var(--reveal-distance)) scale(.978); opacity: .12; }
    72% { transform: translateY(-3px) scale(1); opacity: 1; }
    to { transform: none; opacity: 1; }
  }
  @keyframes reveal-image {
    from { clip-path: inset(0 100% 0 0); transform: scale(1.08); }
    to { clip-path: inset(0); transform: none; }
  }
  @keyframes reveal-accent {
    0% { transform: scaleX(0); opacity: 0; }
    38% { transform: scaleX(1); opacity: .93; }
    63% { transform: scaleX(1); opacity: .7; }
    100% { transform: scaleX(1); opacity: 0; }
  }
  @keyframes reveal-route {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0); }
  }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
  [data-reveal="second"], .service-directory-group:nth-child(2) { --reveal-delay: 58ms; }
  [data-reveal="third"], .service-directory-group:nth-child(3) { --reveal-delay: 105ms; }
  .process-map:has(.process-list > li:first-child.is-entering)::after {
    transform-origin: center top;
    animation: reveal-route-mobile 900ms ease-out backwards;
  }
  @keyframes reveal-route-mobile {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
  }
}
.privacy { background: var(--soft); border-top: 1px solid var(--rule); padding-block: 58px; }
.privacy-inner h2 { margin-bottom: 12px; font-size: clamp(24px, 2.2vw, 32px); }
.privacy-inner h2:not(:first-child) { margin-top: 30px; }
.privacy-inner p { max-width: 78ch; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero-grid { gap: 30px; }
  .home-hero { padding-block: 70px; }
  .map h2 { padding: 20px 16px 0; }
  .map-link { padding-inline: 10px; }
}
@media (min-width: 768px) and (max-width: 850px) {
  .hero-grid { grid-template-columns: 1fr .88fr; }
  .map-links { grid-template-columns: 1fr; }
  .map-link:nth-child(odd) { border-right: 0; }
  .map-link:not(:last-child) { border-bottom: 1px solid var(--rule); }
}
@media (min-width: 768px) and (max-height: 460px) {
  .service-index { position: static; }
}
@media (max-width: 767px) {
  :root { --header-clearance: 72px; }
  body { font-size: 17px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 64px; gap: 5px; }
  .brand { font-size: 18px; gap: 6px; }
  .brand-icon { width: 31px; }
  .header nav { gap: 12px; }
  .header nav a { font-size: 16px; }
  h1 { font-size: clamp(43px, 8vw, 62px); }
  .hero-grid, .overview, .about-layout, .contact-layout, .services-layout { grid-template-columns: 1fr; gap: 32px; }
  .home-hero, .section, .inner-hero, .contact-strip { padding-block: 48px; }
  .home-hero { padding-top: 32px; }
  .contact-hero { padding-block: 30px; }
  .about-section, .contact-section { padding-top: 26px; }
  .hero-copy h1 { max-width: 15ch; }
  .hero-copy p, .inner-hero p { margin-top: 17px; }
  .hero-copy .button, .overview .button, .about-layout .button { margin-top: 22px; }
  .map { display: flex; flex-direction: column; }
  .map h2 { padding-bottom: 14px; }
  .map-link { min-height: 54px; }
  .map-art { order: 1; max-height: 180px; object-fit: contain; margin-block: 6px; }
  .about-art, .contact-card { grid-column: auto; grid-row: auto; }
  .strip-inner { align-items: start; flex-direction: column; gap: 20px; }
  .service-index { position: static; }
  .footer-inner { min-height: 72px; }
}
@media (max-width: 470px) {
  .header-inner { justify-content: center; flex-direction: column; padding-top: 3px; gap: 0; }
  .header nav { width: 100%; justify-content: center; gap: clamp(12px, 4vw, 22px); }
  .header nav a { padding-block: 4px; }
  .footer-inner { align-items: start; flex-direction: column; gap: 7px; }
}
@media (max-width: 355px) {
  .map-link span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
