/* Corwin CPA: Springforth concept demo for a fictional business (wow8-public/accounting).
   Art direction: from soft focus to sharp. Paper, blue-black ink and one highlighter yellow.
   Young Serif (display) and Work Sans (text), both SIL OFL 1.1, self-hosted. */

@font-face {
  font-family: "Young Serif";
  src: url("../assets/fonts/young-serif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/work-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/work-sans-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/work-sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f4f4f4;
  --paper-rgb: 244 244 244;
  --paper-hi: #fbfbfb;
  --ink: #161a22;
  --ink-2: #353b47;
  --ink-3: #5b616d;
  --rule: #d5d7db;
  --rule-strong: #b6bac1;
  --hl: #f5df3b;
  --on-hl: #161a22;
  --on-hl-2: #353b47;
  --ledger: #e8efe6;
  --ledger-rule: #b3c8af;
  --ledger-rule-strong: #87a782;
  --shade: 0 0 0 / 0;

  --serif: "Young Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 72px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --radius: 2px;

  --h1: clamp(2.7rem, 1.35rem + 4.3vw, 5.4rem);
  --h2: clamp(2.05rem, 1.35rem + 2.6vw, 3.6rem);
  --h3: clamp(1.35rem, 1.15rem + 0.6vw, 1.7rem);
  --body: clamp(1rem, 0.96rem + 0.18vw, 1.1rem);
  --small: 0.875rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* layers */
  --z-header: 40;
  --z-menu: 50;
  --z-skip: 60;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12151b;
    --paper-rgb: 18 21 27;
    --paper-hi: #1a1e26;
    --ink: #eef0f3;
    --ink-2: #c9cdd4;
    --ink-3: #9ba1ab;
    --rule: #2b303a;
    --rule-strong: #434a56;
    --ledger: #151d18;
    --ledger-rule: #2c3f2e;
    --ledger-rule-strong: #47644a;
    --shade: 18 21 27 / 0.64;
  }
}

@media (max-width: 767px) {
  :root { --header-h: 60px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}
h2 { font-size: var(--h2); line-height: 1.06; letter-spacing: -0.015em; }
h3 { font-size: var(--h3); line-height: 1.18; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }

a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--radius);
}

::selection { background: var(--hl); color: var(--on-hl); }

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }

.caption {
  font-size: var(--small);
  line-height: 1.45;
  color: var(--ink-3);
}

/* Highlighter mark: a single flat stroke behind the words. */
.hl {
  color: var(--on-hl);
  background-color: transparent;
  background-image: linear-gradient(100deg, transparent 0.6%, var(--hl) 1.8%, var(--hl) 97.5%, transparent 99.4%);
  background-repeat: no-repeat;
  background-position: 0 62%;
  background-size: 100% 80%;
  padding: 0 0.14em;
  margin: 0 -0.08em;
  border-radius: 0.22em 0.5em 0.3em 0.55em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  font: 700 1rem/1 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.button--ink { background: var(--ink); color: var(--paper); }
.button--ink:hover { box-shadow: inset 0 -4px 0 var(--hl); }
.button:active { transform: translateY(1px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: rgb(var(--paper-rgb) / 0);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled {
  background: rgb(var(--paper-rgb) / 0.94);
  box-shadow: 0 1px 0 var(--rule);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-scrolled {
    background: rgb(var(--paper-rgb) / 0.86);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    backdrop-filter: saturate(1.2) blur(10px);
  }
}
.header-row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.62em;
  letter-spacing: 0.12em;
  vertical-align: 0.18em;
  margin-left: 0.12em;
}
.nav { margin-left: auto; }
.nav ul {
  display: flex;
  gap: clamp(18px, 2.2vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: inline-block;
  padding: 10px 0;
  color: var(--ink);
  font-size: 0.97rem;
  text-decoration: none;
  background-image: linear-gradient(var(--hl), var(--hl));
  background-repeat: no-repeat;
  background-position: 0 72%;
  background-size: 0% 0.42em;
  transition: background-size 0.35s var(--ease-out);
}
.nav a:hover { background-size: 100% 0.42em; }
.header-call { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }

.menu { display: none; position: relative; }
.menu summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  list-style: none;
  cursor: pointer;
  background: var(--paper);
}
.menu summary::-webkit-details-marker { display: none; }
.menu-bars {
  position: relative;
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  border-top: 2px solid currentColor;
}
.menu[open] .menu-bars { border-color: transparent; }
.menu[open] .menu-bars::after { top: 3px; transform: rotate(45deg); }
.menu[open] .menu-bars::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  border-top: 2px solid currentColor;
  transform: rotate(-45deg);
}
.menu-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: var(--z-menu);
  padding: 8px var(--gutter) 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 24px 40px -24px rgb(22 26 34 / 0.25);
}
.menu-panel ul { margin: 0; padding: 0; list-style: none; }
.menu-panel a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  text-decoration: none;
}
.menu-panel li:last-child a { border-bottom: 0; }

@media (max-width: 1023px) {
  .nav { display: none; }
  .header-call { margin-left: auto; }
  .menu { display: block; }
}
@media (max-width: 479px) {
  .header-row { gap: 12px; }
  .brand { font-size: 1.35rem; }
  .header-call { padding: 0 12px; font-size: 0.88rem; }
  .menu summary { padding: 0 11px; }
  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
@media (max-width: 369px) {
  .header-call { display: none; }
  .menu { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: max(660px, 100svh);
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: var(--header-h);
  background: var(--paper);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-media picture,
.hero-still,
.hero-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.hero-still,
.hero-film {
  object-fit: cover;
  object-position: 100% 46%;
}
@media (min-width: 1024px) {
  .hero-media { left: 34%; }
}
.hero-film { display: none; }
/* Dark mode: dim the bright paper film so it sits in a dark page. */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(var(--shade));
  pointer-events: none;
}
/* The page's paper flows into the film's paper. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgb(var(--paper-rgb) / 1) 0%,
      rgb(var(--paper-rgb) / 0.97) 10%,
      rgb(var(--paper-rgb) / 0.9) 17%,
      rgb(var(--paper-rgb) / 0.74) 24%,
      rgb(var(--paper-rgb) / 0.52) 31%,
      rgb(var(--paper-rgb) / 0.3) 38%,
      rgb(var(--paper-rgb) / 0.13) 45%,
      rgb(var(--paper-rgb) / 0.03) 51%,
      rgb(var(--paper-rgb) / 0) 55%),
    linear-gradient(0deg,
      rgb(var(--paper-rgb) / 1) 0%,
      rgb(var(--paper-rgb) / 0.96) 10%,
      rgb(var(--paper-rgb) / 0.78) 19%,
      rgb(var(--paper-rgb) / 0.42) 28%,
      rgb(var(--paper-rgb) / 0.13) 36%,
      rgb(var(--paper-rgb) / 0) 42%),
    linear-gradient(180deg,
      rgb(var(--paper-rgb) / 0.92) 0%,
      rgb(var(--paper-rgb) / 0.55) 9%,
      rgb(var(--paper-rgb) / 0) 20%);
}
.hero-inner {
  align-self: center;
  padding-block: clamp(28px, 7vh, 88px) clamp(28px, 5vh, 56px);
}
.hero-title {
  max-width: 10.4em;
  font-size: var(--h1);
  line-height: 1.02;
  letter-spacing: -0.022em;
}
.hero-title .w { display: inline-block; }
.hl--hero {
  padding: 0 0.1em 0.02em;
  margin: 0 -0.04em;
  background-position: 0 70%;
  background-size: 100% 74%;
}
.hero-lede {
  max-width: 27em;
  margin-top: clamp(20px, 3vh, 30px);
  color: var(--ink-2);
  font-size: clamp(1.08rem, 0.98rem + 0.42vw, 1.32rem);
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: clamp(26px, 4vh, 40px);
}
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  padding-bottom: clamp(22px, 4vh, 40px);
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  margin: 0;
}
.fact {
  padding: 2px clamp(18px, 2.4vw, 36px) 2px 16px;
  border-left: 1px solid var(--rule-strong);
}
.fact dt {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.1rem + 0.8vw, 1.9rem);
  line-height: 1.1;
  font-variant-numeric: lining-nums;
}
.fact dd {
  max-width: 15.5em;
  margin: 6px 0 0;
  color: var(--ink-3);
  font-size: var(--small);
  line-height: 1.4;
}
.film-ui {
  position: absolute;
  top: calc(var(--header-h) + 16px);
  right: max(var(--gutter), calc((100% - var(--max)) / 2));
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 3px 3px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgb(var(--paper-rgb) / 0.9);
}
.film-note { font-size: 0.8rem; color: var(--ink-3); }
.film-ui:has(.film-toggle[hidden]) { padding: 9px 16px; }
.film-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper-hi);
  color: var(--ink);
  font: 700 0.85rem/1 var(--sans);
  cursor: pointer;
}
.film-toggle[hidden] { display: none; }
.film-icon {
  position: relative;
  width: 10px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.film-toggle[data-state="paused"] .film-icon,
.film-toggle[data-state="ended"] .film-icon {
  width: 0;
  height: 0;
  border-right: 0;
  border-left: 10px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

@media (max-width: 1100px) {
  .facts { grid-template-columns: repeat(2, minmax(0, max-content)); row-gap: 18px; }
}
/* Concept demo: a small caption under the facts strip. */
.hero-foot { flex-wrap: wrap; }
.facts-note { flex-basis: 100%; margin: -12px 0 0 17px; }
@media (max-width: 1023px) {
  .facts-note { margin-left: 13px; }
}
@media (max-width: 1023px) {
  .hero-foot { flex-direction: column; align-items: flex-start; }
}

/* Tablets and phones: the film becomes a band at its own 16:9 proportion, above the copy. */
@media (max-width: 1023px) {
  .hero {
    display: block;
    min-height: 0;
    padding-top: var(--header-h);
  }
  .hero-media {
    position: relative;
    inset: auto;
    height: clamp(230px, 56.25vw, 520px);
  }
  .hero-still,
  .hero-film { object-position: 58% 46%; }
  .hero-media::after {
    background:
      linear-gradient(0deg,
        rgb(var(--paper-rgb) / 1) 0%,
        rgb(var(--paper-rgb) / 0.86) 12%,
        rgb(var(--paper-rgb) / 0.45) 30%,
        rgb(var(--paper-rgb) / 0) 52%),
      linear-gradient(180deg,
        rgb(var(--paper-rgb) / 0.5) 0%,
        rgb(var(--paper-rgb) / 0) 22%);
  }
  .hero-inner {
    position: relative;
    margin-top: -64px;
    padding-block: 0 28px;
  }
  .hero-foot { gap: 22px; padding-bottom: 28px; }
  .facts {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 12px;
  }
  .fact { padding-right: 8px; padding-left: 12px; }
  .film-ui {
    top: calc(var(--header-h) + 12px);
    right: var(--gutter);
  }
}
@media (max-width: 767px) {
  .hero-title { max-width: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film-ui {
    padding: 0;
    border: 0;
    background: none;
  }
  .film-ui:has(.film-toggle[hidden]) { display: none; }
  .film-note { display: none; }
}

/* ---------- Records: from receipts to books ---------- */
.records {
  position: relative;
  padding-block: clamp(96px, 14vh, 168px) clamp(72px, 10vh, 140px);
}
.records-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.records-title { max-width: 12em; }
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 24px;
}
.step:first-child { min-height: 40vh; }
.step h3 {
  max-width: 15em;
  font-size: clamp(1.45rem, 1.15rem + 0.9vw, 2.05rem);
  line-height: 1.22;
}
.step p {
  max-width: 28em;
  margin-top: 14px;
  color: var(--ink-3);
}
.hl--step {
  color: inherit;
  background-size: 0% 78%;
  transition: background-size 0.8s var(--ease-in-out), color 0.4s ease;
}
.records[data-step="1"] .step:nth-child(1) .hl--step,
.records[data-step="2"] .step:nth-child(-n + 2) .hl--step,
.records[data-step="3"] .step .hl--step,
.records:not([data-step]) .step .hl--step {
  background-size: 100% 78%;
  color: var(--on-hl);
}
.records-stage-col {
  position: sticky;
  top: calc(var(--header-h) + max(4vh, (100vh - var(--header-h) - 620px) / 2));
}
.stage { margin: 0; }
.stage-frame {
  --t: 0%; --r: 0%; --b: 0%; --l: 0%;
  --bt: 3cqh; --br: 3cqw; --bb: 3cqh; --bl: 3cqw;
  --bo: 0.85;
  position: relative;
  aspect-ratio: 5 / 4;
  max-height: min(620px, calc(100vh - var(--header-h) - 120px));
  width: 100%;
  container-type: size;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e9e9e9;
}
.stage-a,
.stage-soft,
.stage-window,
.stage-b {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.stage-a,
.stage-soft,
.stage-b { object-fit: cover; }
.stage-a,
.stage-soft { object-position: 30% 40%; }
.stage-b { object-position: 46% 50%; }
.stage-soft {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.9s ease, transform 1.2s var(--ease-out);
}
.stage-window {
  clip-path: inset(var(--t) var(--r) var(--b) var(--l));
  transition: clip-path 1.25s var(--ease-out);
}
.bracket {
  position: absolute;
  z-index: 2;
  width: clamp(18px, 3.4cqw, 34px);
  height: clamp(18px, 3.4cqw, 34px);
  border: 0 solid #161a22; /* sits on bright photographs in both themes */
  opacity: var(--bo);
  filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.9));
  transition: transform 1.25s var(--ease-out), opacity 0.6s ease;
}
.bracket--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; transform: translate(var(--bl), var(--bt)); }
.bracket--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; transform: translate(calc(-1 * var(--br)), var(--bt)); }
.bracket--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; transform: translate(var(--bl), calc(-1 * var(--bb))); }
.bracket--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; transform: translate(calc(-1 * var(--br)), calc(-1 * var(--bb))); }

/* Step 1: focus on the loose records. */
.records[data-step="1"] .stage-frame {
  --t: 50%; --r: 50%; --b: 50%; --l: 50%;
  --bt: 9cqh; --br: 30cqw; --bb: 22cqh; --bl: 7cqw;
  --bo: 1;
}
/* Step 2: the records soften, order opens in the middle. */
.records[data-step="2"] .stage-frame {
  --t: 17%; --r: 19%; --b: 17%; --l: 19%;
  --bt: 17cqh; --br: 19cqw; --bb: 17cqh; --bl: 19cqw;
  --bo: 1;
}
.records[data-step="2"] .stage-soft,
.records[data-step="3"] .stage-soft { opacity: 1; transform: scale(1); }
/* Step 3 (and the default): everything in order, edge to edge. */
.records[data-step="3"] .stage-frame {
  --t: 0%; --r: 0%; --b: 0%; --l: 0%;
  --bt: 3cqh; --br: 3cqw; --bb: 3cqh; --bl: 3cqw;
  --bo: 0.85;
}
.stage .caption { margin-top: 12px; }

/* Without JavaScript: both photographs, one after the other. */
html:not(.js) .stage-frame {
  aspect-ratio: auto;
  max-height: none;
  container-type: normal;
  overflow: visible;
  background: none;
  display: grid;
  gap: 12px;
}
html:not(.js) .stage-a,
html:not(.js) .stage-window,
html:not(.js) .stage-b {
  position: static;
  height: auto;
  aspect-ratio: 3 / 2;
  clip-path: none;
}
html:not(.js) .stage-soft,
html:not(.js) .bracket { display: none; }
html:not(.js) .records-stage-col { position: static; }

@media (max-width: 959px) {
  .records-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }
  .records-copy { display: contents; }
  .records-title { order: 1; }
  .records-stage-col { order: 2; position: static; }
  .steps { order: 3; display: grid; gap: 28px; }
  .step,
  .step:first-child { min-height: 0; padding: 0; }
  .stage-frame { aspect-ratio: 4 / 3; max-height: none; }
}

/* ---------- Services ---------- */
.services {
  padding-block: clamp(80px, 11vw, 150px) clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--rule);
}
.section-head { max-width: 40em; }
.section-head p {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  row-gap: clamp(56px, 7vw, 104px);
  margin-top: clamp(48px, 6vw, 80px);
  align-items: start;
}
.svc { margin: 0; min-width: 0; }
.svc--tax { grid-column: 1 / span 7; }
.svc--books { grid-column: 9 / span 4; margin-top: clamp(64px, 10vw, 168px); }
.svc--business { grid-column: 1 / span 5; }
.svc--personal { grid-column: 7 / span 6; margin-top: clamp(32px, 6vw, 96px); }
.svc-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e6e6e6;
  aspect-ratio: 3 / 2;
}
.svc--books .svc-photo,
.svc--business .svc-photo { aspect-ratio: 4 / 3; }
.svc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc--business .svc-photo img { object-position: 50% 30%; }
.svc--personal .svc-photo img { object-position: 50% 40%; }
.svc-body { margin-top: 24px; max-width: 34em; }
.svc-body h3 { font-size: clamp(1.6rem, 1.2rem + 1.1vw, 2.2rem); }
.svc-body > p { margin-top: 10px; }
.ticks {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}
.ticks li {
  position: relative;
  padding-left: 32px;
  line-height: 1.45;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 20px;
  height: 1.15em;
  border-radius: 0.2em 0.4em 0.25em 0.45em;
  background: var(--hl);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.38em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--on-hl);
  border-bottom: 2px solid var(--on-hl);
  transform: rotate(-45deg);
}
.services-note { margin-top: clamp(40px, 6vw, 72px); }

@media (max-width: 1023px) {
  .svc--tax,
  .svc--personal { grid-column: 1 / -1; margin-top: 0; }
  .svc--books { grid-column: 1 / span 6; margin-top: 0; }
  .svc--business { grid-column: 7 / span 6; }
}
@media (max-width: 680px) {
  .svc-grid { row-gap: 56px; }
  .svc--books,
  .svc--business { grid-column: 1 / -1; }
}

/* ---------- Payroll ---------- */
.payroll {
  padding-block: clamp(80px, 11vw, 150px);
  background: var(--paper-hi);
  border-block: 1px solid var(--rule);
}
.payroll-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.payroll-copy h2 { max-width: 13em; }
.payroll-copy p { max-width: 33em; margin-top: 20px; font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); }
.payroll-photo { margin: 0; }
.payroll-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: #e6e6e6;
}
.payroll-photo { overflow: hidden; }
.payroll-photo .caption { margin-top: 10px; }

.year { margin: clamp(56px, 8vw, 104px) 0 0; }
.year-ruler {
  display: grid;
  grid-template-columns: repeat(52, minmax(0, 1fr));
  align-items: end;
  height: 76px;
  border-bottom: 1px solid var(--ink);
}
.tick {
  justify-self: center;
  width: 1px;
  height: 24px;
  background: var(--ink-3);
  transform-origin: 50% 100%;
}
.tick--quarter {
  width: 2px;
  height: 48px;
  background: var(--ink);
}
.tick--year {
  position: relative;
  width: 2px;
  height: 76px;
  background: var(--ink);
}
.tick--year::before {
  content: "";
  position: absolute;
  inset: 0 -5px;
  z-index: -1;
  background: var(--hl);
}
.year-months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.year-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 26px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}
.legend { display: inline-flex; align-items: center; gap: 10px; }
.key { display: inline-block; width: 12px; height: 18px; position: relative; }
.legend--week .key { width: 1px; height: 12px; background: var(--ink-3); margin-inline: 5px 6px; }
.legend--quarter .key { width: 2px; height: 18px; background: var(--ink); margin-inline: 5px; }
.legend--year .key { width: 12px; height: 20px; background: var(--hl); }
.legend--year .key::after { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: var(--on-hl); }

.pull {
  max-width: 1000px;
  margin: clamp(72px, 10vw, 136px) 0 0;
}
.pull blockquote { margin: 0; }
.pull blockquote p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 1.05rem + 1.9vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  text-indent: -0.42em;
}
.pull figcaption,
.note-quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 20px;
}
.pull-name { color: var(--ink); font-weight: 700; }
.pull-source { color: var(--ink-3); font-size: var(--small); }

@media (max-width: 860px) {
  .payroll-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 600px) {
  .year-ruler { height: 60px; }
  .tick { height: 18px; }
  .tick--quarter { height: 38px; }
  .tick--year { height: 60px; }
  .year-months span:nth-child(even) { visibility: hidden; }
}

/* ---------- The firm: a ledger ---------- */
.firm {
  padding-block: clamp(88px, 11vw, 160px);
  background: var(--ledger);
}
.firm-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 104px);
  align-items: start;
}
.firm-head { position: sticky; top: calc(var(--header-h) + 40px); }
.firm-head p { margin-top: 20px; max-width: 30em; font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); }
.ledger-sheet {
  --year-col: clamp(72px, 9vw, 112px);
  --tick-col: 56px;
  position: relative;
  padding: 8px 0 18px;
}
/* Ledger column rules: a double rule after the year, a single rule before the tick. */
.ledger-sheet::before,
.ledger-sheet::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  transform-origin: 50% 0;
}
.ledger-sheet::before {
  left: calc(var(--year-col) - 6px);
  width: 4px;
  border-left: 1px solid var(--ledger-rule-strong);
  border-right: 1px solid var(--ledger-rule-strong);
}
.ledger-sheet::after {
  right: var(--tick-col);
  width: 1px;
  background: var(--ledger-rule);
}
.ledger {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ledger li {
  position: relative;
  display: grid;
  grid-template-columns: var(--year-col) minmax(0, 1fr) var(--tick-col);
  align-items: baseline;
  min-height: 56px;
  padding-block: 15px 13px;
}
.ledger li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ledger-rule);
  transform-origin: 0 50%;
}
.l-year {
  padding-right: 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.l-entry {
  padding-inline: 18px;
  color: var(--ink);
  line-height: 1.45;
}
.l-tick {
  position: relative;
  justify-self: center;
  align-self: center;
  width: 16px;
  height: 9px;
}
.l-tick::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg) translate(1px, -2px);
}
.ledger .l-total { padding-block: 20px 22px; }
.ledger .l-total::after {
  height: 5px;
  background: none;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.l-total .l-entry { font-weight: 700; }

@media (max-width: 959px) {
  .firm-grid { grid-template-columns: minmax(0, 1fr); }
  .firm-head { position: static; }
}
@media (max-width: 520px) {
  .ledger-sheet { --year-col: 64px; --tick-col: 34px; }
  .l-entry { padding-inline: 14px 8px; font-size: 0.97rem; }
  .l-year { font-size: 1.05rem; padding-right: 10px; }
}

/* ---------- Team ---------- */
.team { padding-block: clamp(88px, 11vw, 160px); }
.team-head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.note-quote { margin: 0; }
.note-quote blockquote { margin: 0; }
.note-quote blockquote p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1rem + 0.75vw, 1.6rem);
  line-height: 1.32;
  text-indent: -0.4em;
}
.roster {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 48px);
  margin: 0;
  padding: 32px 0 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.person { grid-column: span 2; }
.person--owner { grid-column: span 3; }
.person h3 { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem); }
.person--owner h3 { font-size: clamp(1.9rem, 1.3rem + 1.9vw, 3rem); }
.role {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}
.role-sep {
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin: 0 0.7em;
  vertical-align: -0.12em;
  background: var(--rule-strong);
}
.person p:not(.role) { margin-top: 10px; max-width: 30em; }
.person--owner { padding-bottom: clamp(8px, 2vw, 24px); }

@media (max-width: 860px) {
  .team-head { grid-template-columns: minmax(0, 1fr); }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person,
  .person--owner { grid-column: span 1; }
}
@media (max-width: 560px) {
  .roster { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Questions ---------- */
.questions {
  padding-block: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--rule);
}
.questions-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 104px);
  align-items: start;
}
.questions-head p { margin-top: 16px; color: var(--ink-3); }
.faq details { border-top: 1px solid var(--rule-strong); }
.faq details:last-child { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
  position: relative;
  display: block;
  padding: 22px 56px 22px 0;
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.faq details p {
  max-width: 38em;
  padding: 0 56px 24px 0;
}

@media (max-width: 859px) {
  .questions-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Contact ---------- */
.contact-sheet {
  background: var(--hl);
  color: var(--on-hl);
  padding-block: clamp(80px, 11vw, 150px);
}
.contact-sheet h2,
.contact-sheet h3 { color: var(--on-hl); }
.contact-title { font-size: var(--h2); }
.contact-phone {
  display: inline-block;
  margin-top: clamp(10px, 2vw, 20px);
  color: var(--on-hl);
  font-family: var(--serif);
  font-size: clamp(2.1rem, 0.5rem + 8vw, 7.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-decoration: none;
  font-variant-numeric: lining-nums;
  border-bottom: 3px solid currentColor;
  white-space: nowrap;
}
.contact-phone:hover { border-bottom-width: 6px; }
.contact-sheet :focus-visible { outline-color: var(--on-hl); }
.contact-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px clamp(24px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: 28px;
  border-top: 1px solid rgb(22 26 34 / 0.4);
}
.contact-col h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.contact-col p { margin-top: 8px; color: var(--on-hl-2); }
.contact-col a { color: var(--on-hl); font-weight: 700; text-underline-offset: 0.25em; }
.contact-small { font-size: var(--small); }

@media (max-width: 760px) {
  .contact-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 56px 64px;
  color: var(--ink-3);
  font-size: var(--small);
  line-height: 1.55;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 32px clamp(32px, 6vw, 104px);
}
.brand--footer { font-size: 1.4rem; margin-bottom: 10px; }
.footer-brand p + p { margin-top: 4px; }
.footer-notes p + p { margin-top: 10px; }
.site-footer a { color: var(--ink); text-underline-offset: 0.2em; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Motion (only when the visitor has not asked for less) ---------- */
@keyframes word-in {
  from { opacity: 0; filter: blur(12px); transform: translateY(0.16em); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes hl-sweep {
  from { background-size: 0% 74%; }
  to { background-size: 100% 74%; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.motion .hero-title .w {
  animation: word-in 1.15s var(--ease-out) both;
}
.motion .hero-title .w:nth-child(1) { animation-delay: 0.25s; }
.motion .hero-title .w:nth-child(2) { animation-delay: 0.34s; }
.motion .hero-title .w:nth-child(3) { animation-delay: 0.43s; }
.motion .hero-title .w:nth-child(4) { animation-delay: 0.52s; }
.motion .hero-title .w:nth-child(5) { animation-delay: 0.61s; }
.motion .hl--hero { animation: hl-sweep 0.95s var(--ease-in-out) 1.45s both; }
.motion .hero-lede { animation: rise-in 0.9s var(--ease-out) 0.85s both; }
.motion .hero-actions { animation: rise-in 0.9s var(--ease-out) 1s both; }
.motion .hero-foot { animation: rise-in 0.9s var(--ease-out) 1.2s both; }
.motion .film-ui { animation: fade-in 0.8s ease-out 1.6s both; }

.film-ready .hero-film {
  display: block;
  z-index: 0;
  animation: fade-in 0.9s ease-out both;
}
.film-ready .hero-still { visibility: hidden; }

/* Scroll reveals: armed only once the script is running, so content never waits on it. */
.is-armed.motion [data-reveal] {
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.is-armed.motion [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
}
.is-armed.motion .roster [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.is-armed.motion .roster [data-reveal]:nth-child(3) { transition-delay: 0.12s; }
.is-armed.motion .roster [data-reveal]:nth-child(4) { transition-delay: 0.2s; }
.is-armed.motion .roster [data-reveal]:nth-child(5) { transition-delay: 0.28s; }

/* Photographs sharpen as they arrive. */
.is-armed.motion [data-focus] img {
  transition: filter 1.5s var(--ease-out), transform 1.8s var(--ease-out);
}
.is-armed.motion [data-focus]:not(.is-in) img {
  filter: blur(14px);
  transform: scale(1.06);
}

/* The year ruler draws itself, week by week. */
.is-armed.motion .year .tick {
  transition: transform 0.55s var(--ease-out);
  transition-delay: calc(var(--t) * 16ms);
}
.is-armed.motion .year:not(.is-in) .tick { transform: scaleY(0); }
.is-armed.motion .year .year-legend { transition: opacity 0.8s ease 0.9s; }
.is-armed.motion .year:not(.is-in) .year-legend { opacity: 0; }

/* The ledger rules itself, entry by entry, and closes with a double rule. */
.is-armed.motion .ledger-sheet::before,
.is-armed.motion .ledger-sheet::after {
  transition: transform 1.1s var(--ease-in-out);
}
.is-armed.motion .ledger-sheet:not(.is-in)::before,
.is-armed.motion .ledger-sheet:not(.is-in)::after { transform: scaleY(0); }
.is-armed.motion .ledger li::after {
  transition: transform 0.6s var(--ease-in-out);
  transition-delay: calc(0.35s + var(--i) * 0.12s);
}
.is-armed.motion .ledger-sheet:not(.is-in) li::after { transform: scaleX(0); }
.is-armed.motion .ledger li > .l-year,
.is-armed.motion .ledger li > .l-entry {
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
  transition-delay: calc(0.45s + var(--i) * 0.12s);
}
.is-armed.motion .ledger-sheet:not(.is-in) li > .l-year,
.is-armed.motion .ledger-sheet:not(.is-in) li > .l-entry {
  opacity: 0;
  transform: translateX(-6px);
}
.is-armed.motion .ledger .l-tick::before {
  transition: clip-path 0.35s ease-out;
  transition-delay: calc(0.75s + var(--i) * 0.12s);
  clip-path: inset(0 0 0 0);
}
.is-armed.motion .ledger-sheet:not(.is-in) .l-tick::before { clip-path: inset(0 0 100% 0); }
.is-armed.motion .ledger .l-total::after { transition-delay: calc(0.6s + var(--i) * 0.12s); transition-duration: 0.9s; }

/* The contact sheet arrives like a highlighter stroke. */
.is-armed.motion .contact[data-wipe] .contact-sheet {
  transition: clip-path 1.15s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.is-armed.motion .contact[data-wipe]:not(.is-in) .contact-sheet { clip-path: inset(0 100% 0 0); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .hero-film { display: none !important; }
  .hero-still { visibility: visible !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .film-ui,
  .skip-link { display: none !important; }
  .hero { min-height: 0; }
  [data-reveal], [data-focus] img, .contact-sheet { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
}
