/* Carmina CPA site styles. The homepage is a printed feature. Paper, navy ink, two navy bands.
   Scrollcraft supplies the entry fades and counters; the plate depth and the
   year line are this page's own (home.js). */

:root {
  --paper: #fbfaf6;
  --paper-2: #f2efe7;
  --ink: #12233d;
  --soft: #4a5870;
  --rule: #dcd7ca;
  --rule-strong: #b9b3a3;
  --blue: #1d4e86;
  --navy: #0f2440;
  --navy-ink: #f3f0e8;
  --navy-soft: #b7c3d6;
  --navy-rule: rgb(243 240 232 / 0.22);
  --blue-light: #a3c8f2;

  --sc-canvas: var(--paper);
  --sc-surface: var(--paper-2);
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--soft);
  --sc-accent: var(--blue);
  --sc-accent-ink: #ffffff;
  --sc-font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sc-font-text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --mast-h: 5.75rem;
  --brass: #dcb76a;
  --sec: clamp(4.5rem, 9vw, 8.5rem);
  --serif: var(--sc-font-display);
}

body { font-size: clamp(1rem, 0.97rem + 0.18vw, 1.125rem); line-height: 1.6; letter-spacing: 0; }
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote, address { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
a { text-decoration: none; }
.wrap { width: 100%; max-width: calc(78rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 3px; }
.skip:focus { top: 1rem; }

h1, h2, h3, .today__date, .now__season, .detail__what, .figures dt, blockquote { font-family: var(--serif); font-optical-sizing: auto; }
h2 { font-weight: 400; font-size: clamp(2rem, 1.2rem + 2.9vw, 3.5rem); line-height: 1.06; letter-spacing: -0.018em; text-wrap: balance; max-width: 18ch; }
h3 { font-weight: 500; font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem); line-height: 1.15; letter-spacing: -0.008em; }
p { text-wrap: pretty; }

/* links and buttons */
.more { display: inline-flex; align-items: baseline; gap: 0.45em; font-weight: 600; color: var(--blue); padding-block: 0.3rem; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; background-size: calc(100% - 1.2em) 1px; }
.more::after { content: "\2192"; display: inline-block; transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1); }
.more:hover::after, a:hover > .more::after { transform: translateX(4px); }
.navy .more { color: var(--blue-light); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.75rem 1.5rem; border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: var(--paper); font-weight: 600; letter-spacing: 0.005em; cursor: pointer; transition: background-color 200ms, border-color 200ms, color 200ms; }
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--sm { min-height: 2.6rem; padding: 0.45rem 1.05rem; font-size: 0.95rem; }

/* ---------------------------------------------------------------- mast -- */
.mast { position: sticky; top: 0; z-index: 60; background: var(--paper); transition: transform 320ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 200ms; }
.mast.is-hidden { transform: translateY(-102%); }
.mast.is-stuck { box-shadow: 0 1px 0 var(--rule); }
.mast__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--mast-h); }
.mast__brand { display: inline-flex; align-items: center; gap: 1rem; color: var(--ink); }
.mast__brand img { width: 46px; height: 49px; flex: none; }
.mast__brand b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.72rem); line-height: 1.08; letter-spacing: -0.01em; white-space: nowrap; }
.mast__brand i { font-style: normal; color: var(--blue); }
.mast__brand small { display: block; margin-top: 0.32rem; font-size: 0.72rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.mast__nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); font-size: 0.98rem; }
.mast__nav > a:not(.btn), .menu > summary { color: var(--ink); padding-block: 0.6rem; cursor: pointer; }
.mast__nav > a:not(.btn):hover, .menu > summary:hover { color: var(--blue); }
.menu { position: relative; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 0.4em; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; width: 0.42em; height: 0.42em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.12em) rotate(45deg); }
.menu[open] > summary::after { transform: translateY(0.1em) rotate(225deg); }
.menu__panel { position: absolute; top: calc(100% + 0.5rem); left: -1.25rem; z-index: 5; min-width: 17.5rem; padding: 0.6rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 18px 40px -18px rgb(18 35 61 / 0.35); }
.menu__panel a { display: block; padding: 0.55rem 0.7rem; border-radius: 3px; color: var(--ink); }
.menu__panel a:hover { background: var(--paper-2); color: var(--blue); }
.mast__toggle { display: none; min-height: 2.75rem; padding: 0.4rem 0.9rem; border: 1px solid var(--rule-strong); border-radius: 3px; background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; }

/* --------------------------------------------------------------- folio -- */
.folio { position: fixed; left: 1.15rem; top: 50%; z-index: 40; display: none; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); transition: color 200ms; pointer-events: none; white-space: nowrap; }
.folio.is-light { color: var(--navy-soft); }
.folio span { display: inline-block; transition: opacity 180ms; }
.folio.is-changing span { opacity: 0; }
@media (min-width: 1280px) { .folio { display: block; } }

/* ------------------------------------------------------------ chapters -- */
.ch { padding-block: var(--sec); }
.tone { background: var(--paper-2); }
.navy { background: var(--navy); color: var(--navy-ink); --sc-ink: var(--navy-ink); --sc-ink-soft: var(--navy-soft); --sc-accent: var(--blue-light); --sc-accent-ink: var(--navy); }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.25rem); }
.head > p { color: var(--soft); max-width: 44ch; padding-bottom: 0.35rem; }
.head--narrow { grid-template-columns: 1fr; }

/* opening type, shared by every page */
.kicker { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); margin-bottom: clamp(1.25rem, 2.4vw, 2rem); }
h1 { font-weight: 400; font-size: clamp(2.65rem, 0.5rem + 4.9vw, 5.3rem); line-height: 1.01; letter-spacing: -0.024em; text-wrap: balance; max-width: 15ch; }
.lede { margin-top: clamp(1.4rem, 2.6vw, 2.1rem); font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem); line-height: 1.5; color: var(--soft); max-width: 46ch; }
.actions { margin-top: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* ------------------------------------------------------ the first screen --
   Navy, the headline, and the year as a ruled line that fills to today.
   Brass is used for three things only: today, the present season, what is due next. */
.hero { position: relative; overflow: hidden; color: var(--navy-ink); background: radial-gradient(120% 90% at 18% 20%, #16335c 0%, #0f2440 46%, #0a1a31 100%); --sc-ink: var(--navy-ink); --sc-ink-soft: var(--navy-soft); --sc-accent: var(--brass); --sc-accent-ink: var(--navy); }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24.5rem); grid-template-rows: 1fr auto; column-gap: clamp(2rem, 5vw, 4.5rem); min-height: max(37rem, calc(100vh - var(--mast-h))); padding-top: clamp(2.75rem, 9.5vh, 5.5rem); padding-bottom: clamp(3rem, 7.5vh, 4.75rem); }
.hero__numeral { position: absolute; right: calc(max(var(--gutter), (100vw - 78rem) / 2) - 0.6rem); top: clamp(0.5rem, 3vh, 2rem); font-family: var(--serif); font-size: clamp(9rem, 17.5vw, 16.5rem); line-height: 0.82; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgb(243 240 232 / 0.1); user-select: none; pointer-events: none; }
.hero__main { position: relative; z-index: 1; align-self: start; }
.hero .kicker { color: #a9b9d0; }
.hero .kicker b { font-weight: 600; color: var(--navy-ink); }
.hero h1 { color: #f6f3ea; }
.hero .actions { margin-top: clamp(2.4rem, 5.6vh, 3.5rem); }
.hero .btn { background: var(--navy-ink); border-color: var(--navy-ink); color: var(--navy); }
.hero .btn:hover { background: #fff; border-color: #fff; }
.hero .more { color: var(--navy-ink); }

/* today, in words */
.now { position: relative; z-index: 1; align-self: start; margin-top: clamp(7.5rem, 20.5vh, 11.5rem); padding-left: 1.75rem; border-left: 1px solid var(--brass); }
.now__label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.now__season { margin-top: 0.6rem; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.12; letter-spacing: -0.012em; }
.now__text { margin-top: 0.8rem; color: var(--navy-soft); }

/* the year line */
.yearline { position: relative; z-index: 1; grid-column: 1 / -1; margin-top: clamp(1.75rem, 5.2vh, 3.5rem); --today: 0%; --ink: 0; }
.yearline::before { content: ""; position: absolute; z-index: -1; left: -100vw; right: -100vw; top: -2.4rem; bottom: -6rem; background: linear-gradient(180deg, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / 0.03) 45%, rgb(255 255 255 / 0.05) 100%); pointer-events: none; }
.yearline__next { min-height: 1.3em; margin-bottom: 3.7rem; text-align: right; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #a9b9d0; opacity: 0; transition: opacity 800ms ease 500ms; }
.yearline__next b { font-weight: 600; color: var(--brass); }
.yearline.has-today .yearline__next { opacity: 1; }
.scale { position: relative; }
.ruler { position: relative; height: 5.3rem; }
.ruler__ticks span { position: absolute; top: calc(2.75rem - 6px); width: 1px; height: 6px; background: rgb(243 240 232 / 0.3); }
.ruler__months span { position: absolute; top: 3.9rem; padding-left: 0.5rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #a9b9d0; }
.ruler__months span::before { content: ""; position: absolute; left: 0; top: -0.75rem; width: 1px; height: 0.6rem; background: rgb(243 240 232 / 0.3); }
.ruler__track { position: absolute; left: 0; right: 0; top: 2.75rem; height: 1px; background: rgb(243 240 232 / 0.38); }
.ruler__ink { position: absolute; left: 0; top: -1px; height: 3px; width: var(--today); border-radius: 2px; background: #fbf8f0; box-shadow: 0 0 14px rgb(251 248 240 / 0.45), 0 0 2px rgb(251 248 240 / 0.9); transform-origin: 0 50%; transform: scaleX(var(--ink)); }
.ruler__today { position: absolute; left: var(--today); top: -1.15rem; width: 2px; height: 3.9rem; margin-left: -1px; background: var(--brass); box-shadow: 0 0 12px rgb(220 183 106 / 0.5); transform-origin: 50% 100%; transform: scaleY(0); opacity: 0; transition: transform 800ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 300ms; }
.ruler__today i { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); padding-bottom: 0.35rem; font-style: normal; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); white-space: nowrap; opacity: 0; transition: opacity 600ms ease 450ms; }
.yearline.has-today .ruler__today { transform: none; opacity: 1; }
.yearline.has-today .ruler__today i { opacity: 1; }

.marks { position: absolute; left: 0; right: 0; top: 2.75rem; height: 0; }
.marks li { position: absolute; left: var(--x); top: 0; }
.marks a { position: absolute; left: -1.375rem; top: -1.375rem; width: 2.75rem; height: 2.75rem; display: block; border-radius: 50%; color: var(--navy-ink); }
.marks a::before { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #10294a; box-shadow: 0 0 0 1.5px var(--navy-soft); transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1), background-color 400ms, box-shadow 400ms; }
.marks a[data-major]::before { width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px; }
.marks li.is-past a::before { background: #fbf8f0; box-shadow: 0 0 0 1.5px #fbf8f0; }
.marks li.is-past a[data-major]::before { box-shadow: 0 0 0 1.5px #fbf8f0, 0 0 12px rgb(251 248 240 / 0.35); }
/* the moment the line reaches a date: the dot swells and a ring opens out from it, once */
.marks a::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 1.5px solid #fbf8f0; opacity: 0; pointer-events: none; }
.marks li.is-hit a::after { animation: mark-ring 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) 1 both; }
.marks li.is-hit a::before { animation: mark-dot 700ms cubic-bezier(0.3, 0.7, 0.2, 1) 1; }
@keyframes mark-ring { 0% { opacity: 0.85; transform: scale(0.6); } 100% { opacity: 0; transform: scale(2.7); } }
@keyframes mark-dot { 0% { transform: scale(0.7); } 45% { transform: scale(1.4); } 100% { transform: scale(1); } }
.marks time { position: absolute; left: 50%; bottom: calc(100% - 0.15rem); transform: translateX(-50%); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; color: var(--navy-ink); white-space: nowrap; opacity: 0; transition: opacity 500ms, color 300ms; }
.marks li.is-past a[data-major] time, .yearline.has-today .marks li:not(.was) a[data-major] time, .marks li.is-on time { opacity: 1; }
.yearline.has-today .marks li.is-next a::before { background: #fbf8f0; box-shadow: 0 0 0 2px var(--brass), 0 0 0 9px rgb(220 183 106 / 0.2), 0 0 22px rgb(220 183 106 / 0.45); }
.yearline.has-today .marks li.is-next time { opacity: 1; color: var(--brass); }
.marks li.is-on a::before { transform: scale(1.25); }
.marks li.is-crowded:not(.is-on) time { opacity: 0 !important; }
.marks li:last-child time { left: auto; right: 0.7rem; transform: none; }
.marks b, .marks a > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the firm's seasons, under the months */
.seasons { position: relative; height: 2.9rem; margin-top: 0.5rem; }
.seasons span { position: absolute; top: 0; height: 100%; padding-top: 0.62rem; border-top: 1px solid rgb(243 240 232 / 0.2); font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.3; color: #a9b9d0; text-align: center; white-space: nowrap; transition: color 700ms ease 200ms, border-color 700ms ease 200ms, background-color 700ms ease 200ms; }
.seasons span::before, .seasons span::after { content: ""; position: absolute; top: -4px; width: 1px; height: 7px; background: rgb(243 240 232 / 0.3); }
.seasons span::before { left: 0; } .seasons span::after { right: 0; }
/* the season the line is passing through: lit in cream, quickly, then let go slowly */
.seasons span.is-lit { color: #fbf8f0; border-top-color: rgb(251 248 240 / 0.85); background: linear-gradient(180deg, rgb(251 248 240 / 0.11), rgb(251 248 240 / 0)); transition-duration: 320ms; transition-delay: 0ms; }
.yearline.has-today .seasons span.is-now { transition-delay: 0ms; color: #fbf8f0; border-top: 2px solid var(--brass); background: linear-gradient(180deg, rgb(220 183 106 / 0.16), rgb(220 183 106 / 0)); }

/* just below the first screen */
.intro { padding-top: clamp(2rem, 4vw, 3rem); }
.intro__lede { margin-top: clamp(2.75rem, 6vw, 4.5rem); max-width: 34ch; font-family: var(--serif); font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.3rem); line-height: 1.22; letter-spacing: -0.012em; text-wrap: balance; }
.client { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem clamp(1.25rem, 3vw, 2.5rem); border-bottom: 1px solid var(--rule); padding-bottom: 1.4rem; }
.client h2 { font-family: var(--sc-font-text); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.4; max-width: none; }
.client p { color: var(--soft); font-size: 0.98rem; }
.client__links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.2rem 1.5rem; }

.figures { margin-top: clamp(2.5rem, 5vw, 3.75rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figures > div { padding: 0.2rem clamp(1rem, 2.4vw, 2.25rem) 0.3rem; border-left: 1px solid var(--rule); }
.figures > div:first-child { padding-left: 0; border-left: 0; }
.figures dt { font-weight: 400; font-size: clamp(2.6rem, 1.7rem + 3vw, 4.4rem); line-height: 1; letter-spacing: -0.025em; font-variant-numeric: lining-nums tabular-nums; }
.figures dd { margin-top: 0.7rem; color: var(--soft); font-size: 0.98rem; line-height: 1.4; max-width: 17ch; }

/* working with us: the four steps two by two on the left, a photograph on
   the right that drifts a little inside its frame. Sized to sit on one screen. */
.working { padding-block: clamp(4rem, 7vw, 6.25rem); }
.working__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem clamp(2.5rem, 6vw, 5rem); align-items: stretch; }
.working__head > p { margin-top: 1rem; color: var(--soft); max-width: 44ch; }
.working .path { margin-top: clamp(2rem, 4vw, 3rem); }
.path h3 a { color: inherit; background: linear-gradient(var(--rule-strong), var(--rule-strong)) 0 100% / 100% 1px no-repeat; transition: color 200ms; }
.path h3 a:hover { color: var(--blue); }
.working__act { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; color: var(--soft); }
.working__act span a { color: var(--blue); font-weight: 600; white-space: nowrap; }
.working__act span a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
/* the star beside the Google rating: an outline as tall as the figures
   (0.72em is the height of this face's numerals), standing on their baseline */
.figures__star { display: inline-block; height: 0.72em; width: auto; aspect-ratio: 20 / 19.15; margin-left: 0.16em; vertical-align: baseline; fill: none; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; }
.wide { position: relative; overflow: hidden; border-radius: 3px; min-height: 24rem; max-height: 38rem; background: #7a5a3c; --dp: 0; }
.wide img { position: absolute; left: 0; top: -11%; width: 100%; height: 122%; max-width: none; object-fit: cover; object-position: 66% 50%; transform: translate3d(0, calc(var(--dp) * 7.5%), 0); will-change: transform; }

/* hairlines draw themselves as their block arrives */
.js .trio article, .js .path li { border-top-color: transparent; position: relative; }
.js .trio article::after, .js .path li::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1100ms cubic-bezier(0.22, 0.9, 0.24, 1) 200ms; }
.js .trio article.sc-in::after, .js .path li.sc-in::after { transform: scaleX(1); }

/* entry: a slightly longer rise than the engine default */
[data-sc-in]:not(.sc-in), [data-sc-stagger] > :not(.sc-in) { transform: translate3d(0, 20px, 0); }
[data-sc-in], [data-sc-stagger] > * { transition-duration: 760ms; }

/* who we serve */
.serve { border-top: 1px solid var(--rule); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem); }
.trio article { border-top: 1px solid var(--ink); padding-top: 1.35rem; display: grid; gap: 0.7rem; align-content: start; }
.trio p { color: var(--soft); }
.trio .more { justify-self: start; margin-top: 0.35rem; }

/* services index. Extra room at the bottom, so the list has been read before
   the navy section starts to rise over it. */
.services { padding-bottom: clamp(7.5rem, 15vw, 13.5rem); }
.index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 5rem); border-bottom: 1px solid var(--rule-strong); }
.index li { border-top: 1px solid var(--rule-strong); }
.index a { position: relative; display: block; padding: 1.45rem 3rem 1.5rem 0; color: var(--ink); }
.index h3 { transition: color 200ms; }
.index p { margin-top: 0.35rem; color: var(--soft); font-size: 0.98rem; }
.index a::after { content: "\2192"; position: absolute; right: 0.25rem; top: 1.45rem; font-size: 1.3rem; color: var(--blue); transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1); }
.index a:hover h3 { color: var(--blue); }
.index a:hover::after { transform: translateX(5px); }

/* ---------------------------------------- the year, date by date -- */
.year { padding-block: clamp(5rem, 10vw, 9rem) clamp(4rem, 7vw, 6.5rem); }
.navy .head > p { color: var(--navy-soft); }
.dates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(6, auto); grid-auto-flow: column; column-gap: clamp(2rem, 6vw, 5rem); }
.dates li { border-top: 1px solid var(--navy-rule); }
.dates li:nth-child(6), .dates li:last-child { border-bottom: 1px solid var(--navy-rule); }
.dates a { position: relative; display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0.15rem 1rem; padding: 1.05rem 2.75rem 1.1rem 0; color: var(--navy-ink); }
.dates time { grid-row: span 2; padding-top: 0.32rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-light); }
.dates b { font-family: var(--serif); font-weight: 500; font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.32rem); line-height: 1.2; transition: transform 460ms cubic-bezier(0.23, 1, 0.32, 1); }
.dates a > span { color: var(--navy-soft); font-size: 0.95rem; line-height: 1.45; transition: transform 460ms cubic-bezier(0.23, 1, 0.32, 1); }
.dates a::after { content: "\2192"; position: absolute; right: 0.25rem; top: 1.05rem; font-size: 1.2rem; color: var(--blue-light); transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1); }
.dates a:hover b, .dates a:hover > span, .dates a:focus-visible b, .dates a:focus-visible > span { transform: translate3d(8px, 0, 0); }
.dates a:hover::after { transform: translateX(5px); }
.dates li.is-past a { opacity: 0.55; }
.dates li.is-next time { color: var(--brass); }
.dates li.is-next b::after { content: "Next"; margin-left: 0.6rem; padding: 0.1rem 0.45rem; border: 1px solid var(--brass); border-radius: 2px; font-family: var(--sc-font-text); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); vertical-align: 0.25em; }
.fine { margin-top: clamp(2rem, 4vw, 3rem); font-size: 0.86rem; color: var(--navy-soft); max-width: 70ch; }

/* the steps */
.path { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3.5vw, 3rem); counter-reset: step; }
.path li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.path li::before { content: "Step " counter(step); display: block; margin-bottom: 0.8rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); }
.path p { margin-top: 0.5rem; color: var(--soft); }

/* the firm */
.firm__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem clamp(2.5rem, 7vw, 6rem); align-items: start; }
.firm__story p { margin-top: 1.4rem; max-width: 56ch; font-size: clamp(1.08rem, 1.02rem + 0.3vw, 1.22rem); line-height: 1.6; color: var(--soft); }
.firm__story h2 + p { margin-top: clamp(1.75rem, 3vw, 2.5rem); color: var(--ink); }
/* the review card: a client's words, one review at a time (About page) */
.voice { justify-self: end; width: min(100%, 24rem); padding: 1.6rem 1.75rem 1.5rem; background: #fff; border-top: 2px solid var(--blue); box-shadow: 0 0 0 1px rgb(18 35 61 / 0.06), 0 26px 48px -28px rgb(18 35 61 / 0.4); }
.voice .stars { display: block; margin: 0 0 0.8rem; }
.voice blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.7rem); line-height: 1.28; letter-spacing: -0.008em; }
.voice figcaption { margin-top: 1rem; font-size: 0.93rem; color: var(--soft); }
/* the reviews share one space, sized by the longest, and fade one to the next */
.voice__stage { display: grid; }
.voice__slide { grid-area: 1 / 1; align-self: center; margin: 0; opacity: 0; visibility: hidden; transform: translate3d(0, 8px, 0); transition: opacity 500ms ease, transform 700ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 500ms; }
.voice__slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 700ms ease 150ms, transform 800ms cubic-bezier(0.23, 1, 0.32, 1) 150ms, visibility 0s; }
.voice__dots { display: flex; gap: 0.1rem; margin: 1.1rem 0 0.5rem -0.55rem; }
.voice__dot { position: relative; width: 1.6rem; height: 1.6rem; padding: 0; border: 0; background: none; cursor: pointer; }
.voice__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--rule-strong); transition: background-color 200ms, transform 200ms; }
.voice__dot:hover::before { background: var(--soft); }
.voice__dot.is-active::before { background: var(--blue); transform: scale(1.3); }
.quote blockquote { font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.25; letter-spacing: -0.01em; }
.quote figcaption { margin-top: 1.1rem; font-size: 0.95rem; color: var(--soft); line-height: 1.9; }
.stars { color: var(--blue); letter-spacing: 0.12em; margin-right: 0.5rem; }
.roster { margin-top: clamp(2.25rem, 4vw, 3.25rem); border-top: 1px solid var(--ink); }
.roster li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule-strong); }
.roster b { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }
.roster span { color: var(--soft); font-size: 0.93rem; text-align: right; }

/* contact */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2.5rem, 7vw, 6rem); align-items: start; }
.contact address { margin-top: clamp(1.75rem, 3vw, 2.5rem); font-family: var(--serif); font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.45rem); line-height: 1.35; }
.contact__lines { margin-top: 1.4rem; display: grid; gap: 0.2rem; justify-items: start; }
.contact__lines a { color: var(--navy-ink); font-size: 1.12rem; padding-block: 0.25rem; background: linear-gradient(var(--navy-rule), var(--navy-rule)) 0 100% / 100% 1px no-repeat; }
.contact__lines a:hover { color: var(--blue-light); }
.contact__hours { margin-top: 1.4rem; color: var(--navy-soft); }
.form { background: var(--paper); color: var(--ink); padding: clamp(1.5rem, 3.4vw, 2.5rem); border-radius: 4px; display: grid; gap: 1.1rem; --sc-accent: var(--blue); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.86rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 2.9rem; padding: 0.6rem 0.75rem; border: 1px solid var(--rule-strong); border-radius: 3px; background: #fff; color: var(--ink); }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form .btn { justify-self: start; }
.form__status { font-size: 0.95rem; color: var(--soft); }
.form__status:empty { display: none; }
.form__status.is-error { color: #8c1d1d; }
.form__note { font-size: 0.86rem; color: var(--soft); }
.form__thanks h3 { margin-bottom: 0.5rem; }
.form__thanks a { color: var(--blue); text-decoration: underline; }

/* footer: the same layout as the live site, dark, four columns */
.foot { background: #0a1524; color: #c5cfdd; padding-block: clamp(3.25rem, 6vw, 4.5rem); font-size: 0.98rem; border-top: 1px solid rgb(255 255 255 / 0.07); }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem); }
.foot__brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.2; color: #fff; }
.foot__brand img { width: 34px; height: 36px; flex: none; }
.foot address, .foot a { display: block; line-height: 1.5; padding-block: 0.22rem; color: inherit; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.25em; }
.foot strong { display: block; margin-bottom: 0.55rem; font-weight: 600; color: #fff; }
.foot__copy { margin-top: 1.1rem; font-size: 0.85rem; color: #8d99ad; }

/* ------------------------------------------------- added movement -- */
/* the headline is set line by line as the page opens */
.js h1 .w { display: inline-block; overflow: clip; padding: 0.1em 0.04em 0.24em; margin: -0.1em -0.04em -0.24em; }
.js h1 .w > span { display: inline-block; transform: translate3d(0, 112%, 0); opacity: 0; }
.js h1.is-set .w > span { transform: none; opacity: 1; transition: transform 1050ms cubic-bezier(0.2, 0.85, 0.2, 1), opacity 500ms ease-out; transition-delay: calc(var(--l, 0) * 140ms + 80ms); }

/* service rows come in from the side, one after another, and answer the mouse */
.index > li:not(.sc-in) { transform: translate3d(-26px, 0, 0); }
.index a { isolation: isolate; }
.index a::before { content: ""; position: absolute; inset: 0 -1rem; z-index: -1; border-radius: 3px; background: rgb(255 255 255 / 0.62); transform: scaleX(0); transform-origin: 0 50%; transition: transform 460ms cubic-bezier(0.23, 1, 0.32, 1); }
.index a:hover::before, .index a:focus-visible::before { transform: scaleX(1); }
.index h3, .index p { transition: transform 460ms cubic-bezier(0.23, 1, 0.32, 1), color 200ms; }
.index a:hover h3, .index a:hover p, .index a:focus-visible h3, .index a:focus-visible p { transform: translate3d(10px, 0, 0); }

/* the review arrives a few words at a time */
.js .quote .ph { display: inline-block; opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity 800ms ease-out, transform 800ms cubic-bezier(0.23, 1, 0.32, 1); transition-delay: calc(var(--i, 0) * 300ms + 350ms); }
.js .quote.sc-in .ph { opacity: 1; transform: none; }

/* a navy section is laid over the section before it: that section holds at the
   bottom of the screen, dims and steps back a little while the navy rises.
   --h is the held section's height and --cover runs 0 to 1 (both from home.js). */
@media (min-width: 761px) {
  .js .stack > .is-stuckable { position: sticky; top: min(0px, calc(100vh - var(--h))); z-index: 0; --cover: 0; }
  .js .stack > .is-stuckable > .wrap { transform: scale(calc(1 - var(--cover) * 0.03)); transform-origin: 50% 100%; will-change: transform; }
  .js .stack > .is-stuckable::after { content: ""; position: absolute; inset: 0; background: #0b1a30; opacity: calc(var(--cover) * 0.3); pointer-events: none; }
  .js .stack > .navy { position: relative; z-index: 1; border-radius: 1.4rem 1.4rem 0 0; box-shadow: 0 -30px 70px -34px rgb(8 18 36 / 0.6); }
}

/* ------------------------------------------------------------ tablets -- */
@media (max-width: 1020px) {
  .mast__toggle { display: inline-flex; align-items: center; }
  .mast__nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.5rem; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 24px 40px -28px rgb(18 35 61 / 0.4); max-height: calc(100vh - var(--mast-h)); overflow: auto; }
  .mast.is-open .mast__nav { display: flex; }
  .mast__nav > a:not(.btn), .menu > summary { padding-block: 0.85rem; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .menu > summary { display: flex; justify-content: space-between; }
  .menu__panel { position: static; border: 0; box-shadow: none; padding: 0.25rem 0 0.5rem 0.75rem; min-width: 0; }
  .mast__nav .btn { margin-top: 1.1rem; }
  .head, .year__head, .firm__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 19.5rem); }
  .now { margin-top: clamp(6.5rem, 17vh, 9.5rem); padding-left: 1.4rem; }
  .seasons span { font-size: 1rem; }
  .working__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4.6fr); }
  .foot__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; padding-top: 2.75rem; padding-bottom: 3rem; }
  .hero__numeral { font-size: 38vw; top: 0.75rem; -webkit-text-stroke-color: rgb(243 240 232 / 0.07); }
  .now { margin-top: 2.75rem; max-width: 30rem; }
  .yearline { margin-top: 3.25rem; }
  .yearline__next { text-align: left; line-height: 1.7; margin-bottom: 2.9rem; }
  .seasons span { font-size: 0.86rem; }
  .working__grid { grid-template-columns: 1fr; }
  .wide { min-height: 0; max-height: none; aspect-ratio: 16 / 9; }
  .wide img { object-position: 50% 60%; }
  .client__links { margin-left: 0; }
}

/* -------------------------------------------------------------- phones -- */
@media (max-width: 760px) {
  :root { --mast-h: 4.5rem; }
  .mast__brand small { display: none; }
  .mast__brand { gap: 0.75rem; }
  .mast__brand img { width: 38px; height: 40px; }
  .mast__brand b { font-size: 1.3rem; }
  h1 { font-size: clamp(2.5rem, 1rem + 7.4vw, 3.6rem); }
  .wide { aspect-ratio: 3 / 2; }
  .wide img { object-position: 55% 60%; }
  .foot__in { grid-template-columns: 1fr; gap: 2rem; }
  .foot strong[aria-hidden] { display: none; }
  .foot__in > div:nth-child(3) { margin-top: -2rem; }
  .figures { margin-top: 2.75rem; grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .figures > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .trio, .index { grid-template-columns: 1fr; }
  .trio { gap: 2rem; }

  /* the year line on a phone: single-letter months, only today and the next
     date are labelled, and the seasons are shown as bands without their names */
  .ruler__months span { padding-left: 0.2rem; font-size: 0.62rem; letter-spacing: 0.04em; }
  .ruler__ticks span:nth-child(odd) { display: none; }
  .marks a::before { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
  .marks a[data-major]::before { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
  .marks a::after { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
  .marks li a[data-major] time { opacity: 0 !important; }
  .yearline.has-today .marks li.is-next time { opacity: 1 !important; }
  .seasons { height: 0.9rem; }
  .seasons span { font-size: 0; padding: 0; }
  .yearline::before { bottom: -4rem; }
  .dates { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .dates li:nth-child(6) { border-bottom: 0; }
  .intro__lede { margin-top: 2.5rem; }
  .path { grid-template-columns: 1fr; gap: 1.75rem; }
  .form__row { grid-template-columns: 1fr; }
  .roster li { flex-direction: column; gap: 0.1rem; }
  .roster span { text-align: left; }
}

/* The owner's own PC has Windows animations switched off, which hid every move
   on this page. At his request the page keeps its motion in that mode: all of
   it is either tied to the visitor's own scrolling or a short one-time fade. */
@media (prefers-reduced-motion: reduce) {
  [data-sc-in]:not(.sc-in), [data-sc-stagger] > :not(.sc-in) { transform: translate3d(0, 20px, 0); }
  [data-sc-in], [data-sc-stagger] > * { transition-duration: 760ms; }
}
