:root {
  color-scheme: dark;
  --charcoal: #000000;
  --ink: #222825;
  --paper: #f3f1eb;
  --white: #fbfaf6;
  --soft: #c5c9c5;
  --rule-dark: #515654;
  --rule-light: #cccfc7;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --header: 5.5rem;
  --footer: clamp(3.25rem, 7.5vh, 5.5rem);
  --screen: calc(100vh - var(--header) - 1px);
}
@supports (height: 100svh) { :root { --screen: calc(100svh - var(--header) - 1px); } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 1px); scroll-snap-type: y mandatory; background: var(--charcoal); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--charcoal); color: var(--white); font: 400 1rem/1.58 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: var(--paper); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { max-width: 11.7ch; font-size: clamp(3.25rem, 5.9vw, 5.65rem); line-height: 1.03; letter-spacing: -.055em; }
h2 { font-size: clamp(2.65rem, 4.3vw, 4.05rem); line-height: 1.08; letter-spacing: -.05em; }
h3 { font-size: clamp(1.55rem, 2.2vw, 2.12rem); line-height: 1.16; letter-spacing: -.035em; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #74b5ff; outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
.wrap { width: min(78rem, 87.5%); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); padding: .65rem 1rem; color: var(--ink); background: white; z-index: 5; }
.skip:focus { transform: none; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.site-header { min-height: var(--header); }
.header-shell { position: sticky; top: 0; z-index: 10; background: rgb(0 0 0 / .95); border-bottom: 1px solid var(--rule-dark); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
.brand { width: clamp(11rem, 18vw, 15.5rem); }
nav { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 2rem); }
nav a { text-decoration: none; font-size: .96rem; font-weight: 500; }
.nav-text, .email-address { text-decoration-line: underline; text-decoration-color: transparent; text-underline-offset: .24em; transition: text-decoration-color .25s ease, color .25s ease; }
.nav-text:hover, .email-address:hover { text-decoration-color: currentColor; }
.nav-contact { padding: .48rem 1.05rem; border: 1px solid #929995; border-radius: 4px; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s cubic-bezier(.2,.8,.2,1); }
.nav-contact:active { transform: scale(.97); }
.nav-contact:hover { background: var(--white); color: var(--ink); }
.button { transition: background-color .25s ease, box-shadow .3s ease, transform .25s cubic-bezier(.2,.8,.2,1); display: inline-flex; width: fit-content; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1.18rem; border-radius: 4px; text-decoration: none; font-weight: 600; line-height: 1.35; }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: white; box-shadow: 0 0 0 2px #9ca69c, 0 10px 28px -12px rgb(251 250 246 / .45); transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.hero { position: relative; display: grid; grid-template-columns: 1fr .95fr; gap: clamp(2rem, 6vw, 6.1rem); align-items: center; align-content: center; min-height: var(--screen); padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(5rem, 8vw, 6.5rem); scroll-snap-align: start; scroll-snap-stop: always; }
.hero-copy > p { margin-block: 1.3rem 1.7rem; max-width: 41ch; color: var(--soft); font-size: clamp(1.05rem, 1.45vw, 1.24rem); }
.hero-image { overflow: hidden; background: #191c1e; border-radius: 2px; }
.hero-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.services { position: relative; background: var(--paper); color: var(--ink); min-height: var(--screen); display: flex; align-items: center; scroll-snap-align: start; scroll-snap-stop: always; view-timeline: --services block; }
.services .section-layout { padding-block: clamp(1.5rem, min(6vw, 5vh), 6rem) calc(clamp(1.5rem, min(6vw, 5vh), 6rem) + 2.75rem); }
.section-layout { display: grid; grid-template-columns: .68fr 1.32fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(2rem, min(6vw, 7vh), 6rem); }
.matters-heading { margin-top: 1.65rem; font: 600 1rem/1.4 var(--sans); letter-spacing: normal; }
.matters-list { display: grid; gap: .3rem; margin: .6rem 0 0; padding: 0; list-style: none; color: #454e47; }
.service-list { border-top: 1px solid var(--rule-light); }
.service-list article { padding: 1.4rem 0 1.5rem; border-bottom: 1px solid var(--rule-light); }
.service-list article:first-child { padding-top: 1.2rem; }
.service-list p { margin-top: .6rem; max-width: 59ch; color: #454e47; }
.rest { min-height: calc(var(--screen) - var(--footer)); display: flex; flex-direction: column; justify-content: space-evenly; scroll-snap-align: start; scroll-snap-stop: always; }
.process { padding-block: clamp(1.25rem, min(4vw, 3.5vh), 3.5rem); }
.process ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: 0; margin: clamp(1rem, 3.5vh, 2.1rem) 0 0; }
.process ol { counter-reset: step; }
.process li { counter-increment: step; border-top: 1px solid var(--rule-dark); padding-top: clamp(.85rem, 2.2vh, 1.35rem); }
.process li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: clamp(.5rem, 1.4vh, .85rem); font: 500 .8rem/1 var(--sans); letter-spacing: .04em; color: #929995; font-variant-numeric: tabular-nums; }
.process h3 { font-size: clamp(1.5rem, 2.2vw, 1.95rem); }
.process p { max-width: 38ch; color: var(--soft); margin-top: .65rem; }
.contact { background: transparent; }
.contact-layout { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(1.5rem, 4vw, 3.5rem); row-gap: 1.5rem; align-items: center; padding-block: clamp(1.25rem, min(4vw, 3.5vh), 3.5rem); border-top: 1px solid var(--rule-dark); }
.contact-layout > div:first-child { grid-column: span 2; }
.contact h2 { font-size: clamp(2rem, 3.1vw, 2.85rem); letter-spacing: -.04em; }
.contact-layout p { max-width: 52ch; color: #d5dad4; margin-top: .7rem; }
.contact-layout p.contact-note { font-size: .9rem; color: #9ca69c; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.contact .button { min-height: 3.25rem; padding-inline: 1.4rem; font-size: 1.02rem; }
.contact .button::after { content: "→"; content: "→" / ""; margin-left: .6em; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.contact .button:hover::after { transform: translateX(4px); }
.email-address { color: var(--soft); }
.email-address { font-size: .95rem; overflow-wrap: anywhere; text-underline-offset: .22em; }
.site-footer { min-height: var(--footer); border-top: 1px solid var(--rule-dark); }
.footer-brand { width: 10.5rem; }
.site-footer small { color: var(--soft); font-size: .875rem; }
@media (max-width: 52rem) {
  .hero { gap: 1.9rem; }
  .hero h1 { font-size: clamp(2.8rem, 6.6vw, 4rem); }
  .wrap { width: 90%; }
  .section-layout { grid-template-columns: .6fr 1.4fr; }
}
@media (max-width: 42rem), (max-height: 600px) { html { scroll-snap-type: y proximity; } }
@media (max-width: 42rem) {
  :root { --header: 4.75rem; --footer: 7rem; }
  .site-header { min-height: var(--header); }
  nav .nav-text { display: none; }
  .hero, .section-layout, .process ol { grid-template-columns: 1fr; }
  .hero { padding-block: 2rem 4.5rem; gap: 1.6rem; }
  .hero h1 { font-size: clamp(3.1rem, 11.5vw, 4.45rem); max-width: 15ch; }
  .hero-copy > p { margin-block: 1rem 1.4rem; }
  .hero-image img { aspect-ratio: 1.85; }
  .section-layout { gap: 1.6rem; }
  .matters-heading { margin-top: 1rem; }
  .matters-list { grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); column-gap: 1rem; }
  .process ol { gap: 1.25rem; margin-top: 1.5rem; }
  .process li { padding-top: 1.15rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-layout > div:first-child { grid-column: auto; }
  .site-footer { flex-wrap: wrap; padding-block: 1.5rem; }
}

/* Scroll cue: a quiet chevron at the bottom of the first screen */
.scroll-cue { position: absolute; left: 50%; bottom: clamp(1.25rem, 3vh, 2rem); transform: translateX(-50%); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--soft); opacity: .75; transition: opacity .25s ease, color .25s ease; }
.scroll-cue:hover { opacity: 1; color: var(--white); }
.scroll-cue svg { width: 1.6rem; height: 1.6rem; }
.scroll-cue-dark { color: var(--ink); }
.scroll-cue-dark:hover { color: #000; }

/* ---------- Motion: native scrolling, CSS only, off for reduced-motion users ---------- */
.service-list h3 { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.service-list article:hover h3 { transform: translateX(6px); }

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance on load */
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
  .hero-copy > * { animation: rise .9s cubic-bezier(.16,1,.3,1) both; }
  .hero-copy > p { animation-delay: .08s; }
  .hero-copy > .button { animation-delay: .16s; }
  .hero-image img { animation: settle 1.2s cubic-bezier(.16,1,.3,1) .05s both; }
  @keyframes bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
  .scroll-cue svg { animation: bob 2.4s ease-in-out 1.2s infinite; }
  @keyframes cue-in { from { opacity: 0; } to { opacity: .75; } }
  .scroll-cue { animation: cue-in .9s ease .6s both; }

  @supports (animation-timeline: view()) {
    /* Reading-progress line under the sticky header */
    @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    .header-shell::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--white); opacity: .7; transform-origin: 0 50%; transform: scaleX(0); animation: progress linear both; animation-timeline: scroll(root); }

    /* Header firms up after the first scroll */
    @keyframes firm { from { background-color: rgb(0 0 0 / .6); border-bottom-color: transparent; } to { background-color: rgb(0 0 0 / .97); border-bottom-color: var(--rule-dark); } }
    .header-shell { animation: firm linear both; animation-timeline: scroll(root); animation-range: 0 140px; }

    /* Arrow fades away once you start scrolling */
    @keyframes cue-out { to { opacity: 0; } }
    .scroll-cue { animation: cue-in .9s ease .6s both, cue-out linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 22vh; }

    /* Services arrow: appears once Services settles into view, fades as you move on */
    @keyframes cue-services { 0% { opacity: 0; } entry 55% { opacity: 0; } entry 100% { opacity: .75; } exit 0% { opacity: .75; } exit 18% { opacity: 0; } 100% { opacity: 0; } }
    .scroll-cue-dark { animation: cue-services linear both; animation-timeline: --services; }

    /* Content rises into view as it enters */
    @keyframes reveal { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
    .section-intro, .service-list article, .process h2, .process li, .contact-layout > * {
      animation: reveal cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    /* Hero photo drifts slower than the page as it leaves */
    @keyframes drift { to { transform: translateY(9%) scale(1.08); } }
    .hero-image img { animation: settle 1.2s cubic-bezier(.16,1,.3,1) .05s both, drift linear both; animation-timeline: auto, view(); animation-range: normal, exit 0% exit 100%; }
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
