/* =====================================================================
   Calder (Atelier) · industry layer
   What a private-client accounting firm needs on top of atelier.css: a
   multi-page nav, smaller display type on inner pages, the family-group
   structure drawing, chips, an indicative fee stepper, the key-dates
   ledger, a tax-time checklist, the discovery-call flow, people panels
   with monograms and a footer with the regulatory notes. Atelier tokens
   only; square corners and hairlines throughout.
   ===================================================================== */

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- nav */
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-login { position: relative; padding: 6px 0; font: 500 var(--fs-label)/1 var(--ui); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color 0.3s; }
.nav-login:hover { color: var(--ink); }
.menu ul a[aria-current="page"] { color: var(--accent); }
.menu-foot .btn { flex: 1 1 auto; }
@media (max-width: 1280px) { .nav-login { display: none; } }

/* ---------------------------------------------------------------- inner pages: a step smaller */
body.inner { --fs-display: clamp(46px, 9vw, 140px); }
@media (max-width: 640px) { body.inner { --fs-display: clamp(40px, 12.4vw, 58px); } }
.hero-foot a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; color: var(--ink); }
.more-row { margin-top: 32px; }
.btn-text svg { width: 24px; height: 10px; }

/* ---------------------------------------------------------------- chips (square, hairline) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 12px 16px; border: 1px solid var(--rule-2); font: 500 11px/1.2 var(--ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.4s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip small { display: block; margin-top: 4px; font-size: 10px; letter-spacing: 0.14em; opacity: 0.75; }

/* ---------------------------------------------------------------- the family group, drawn */
.struct-fig { margin-top: 72px; }
.struct { display: block; width: 100%; height: auto; overflow: visible; }
.struct-n { display: none; }
.struct .edge { fill: none; stroke: var(--rule-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.struct .lease { stroke-dasharray: 3 5; }
.struct .tick { fill: var(--accent); }
.struct .nname { font-family: var(--display); font-size: 31px; fill: var(--ink); letter-spacing: -0.01em; }
.struct .node-top .nname { font-size: 38px; }
.struct .nrole { font-family: var(--ui); font-size: 15px; font-variant-caps: all-small-caps; letter-spacing: 0.12em; fill: var(--muted); }
.struct .elab { font-family: var(--display); font-style: italic; font-size: 17px; fill: var(--accent); }
.struct .flow { fill: var(--accent); }
.struct-n .nname { font-size: 22px; }
.struct-n .nrole { font-size: 13px; }
.struct-fig figcaption { margin-top: 28px; }
.struct-fig.rise .edge:not(.lease) { stroke-dasharray: 1; animation: drawEdge 2.6s var(--ease) backwards 0.3s; }
.struct-fig.rise .node { animation: rise 1.4s var(--ease) backwards; }
.struct-fig.rise .node:nth-of-type(2) { animation-delay: 0.1s; } .struct-fig.rise .node:nth-of-type(3) { animation-delay: 0.2s; }
.struct-fig.rise .node:nth-of-type(4) { animation-delay: 0.3s; } .struct-fig.rise .node:nth-of-type(5) { animation-delay: 0.4s; }
@keyframes drawEdge { from { stroke-dashoffset: 1; } }
.group-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--rule); }
.group-facts dt { font: 400 clamp(26px, 2.4vw, 34px)/1.1 var(--display); color: var(--ink); letter-spacing: -0.015em; margin-bottom: 8px; }
.group-facts dd { max-width: 34ch; }

/* ---------------------------------------------------------------- registrations beside the sample review */
.creds li { display: grid; gap: 4px; }
.creds li b { font: 400 clamp(21px, 1.9vw, 26px)/1.15 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.creds li span { font: 400 14px/1.4 var(--ui); font-variant-caps: all-small-caps; letter-spacing: 0.12em; color: var(--muted); }

/* ---------------------------------------------------------------- services in full */
.svc .svc-n { grid-row: 1 / span 6; }
.svc > :not(.svc-n) { grid-column: 2; }
.incl { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 6px; max-width: 60ch; }
.incl li { position: relative; padding-left: 16px; font-size: 14.5px; color: var(--ink-2); }
.incl li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 1px; background: var(--accent); }
.warn { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--rule); font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 62ch; }

/* ---------------------------------------------------------------- indicative fee */
.ind { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); margin-top: 64px; align-items: start; }
.ind-rows { border-top: 1px solid var(--ink); }
.ind-row { display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; padding: 22px 0; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); margin: 0; min-width: 0; }
.ind-row h3 { font: 400 clamp(24px, 2.2vw, 32px)/1.1 var(--display); color: var(--ink); letter-spacing: -0.015em; }
.ind-row .cap { margin-top: 4px; }
.ind-review { flex-wrap: wrap; }
.stepper { display: flex; align-items: center; gap: 14px; flex: none; }
.step-b { width: 46px; height: 46px; border-radius: var(--r-round); border: 1px solid var(--rule-2); display: grid; place-items: center; font: 300 22px/1 var(--ui); color: var(--ink); transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.4s; }
.step-b:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.step-b:disabled { opacity: 0.3; pointer-events: none; }
.stepper output { min-width: 1.6ch; text-align: center; font: 400 36px/1 var(--display); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.ind-out { position: sticky; top: 120px; padding: clamp(24px, 3vw, 40px); background: var(--paper); border-top: 1px solid var(--ink); box-shadow: var(--shadow-lift); }
.ind-fee { margin: 16px 0 8px; font: 400 clamp(54px, 6.6vw, 104px)/0.95 var(--display); color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.ind-sub { color: var(--ink-2); }
.ind-lines { margin: 26px 0 30px; border-top: 1px solid var(--rule); }
.ind-lines div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.ind-lines dt { color: var(--ink-2); }
.ind-lines dd { color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.ind-note { margin-top: 20px; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---------------------------------------------------------------- scope (in / quoted / not provided) */
.scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); margin-top: 56px; }
.scope ul { margin-top: 14px; border-top: 1px solid var(--ink); }
.scope li { padding: 15px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }

/* ---------------------------------------------------------------- people */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 24px; margin-top: 64px; align-items: start; }
.person:nth-child(even) { margin-top: 72px; }
.person .plate { aspect-ratio: 4 / 5; box-shadow: var(--shadow-lift); transition: transform 1.1s var(--ease); }
.person:hover .plate { transform: translateY(-8px); }
.mono { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding-right: 0.06em; font: italic 400 clamp(60px, 6.4vw, 104px)/1 var(--display); letter-spacing: -0.02em; color: var(--ink); opacity: 0.85; }
.person figcaption { margin-top: 12px; }
.person h3 { margin-top: 22px; font: 400 var(--fs-h3)/1.1 var(--display); color: var(--ink); letter-spacing: -0.015em; }
.person .label { margin-top: 8px; }
.person p:not(.label):not(.cap) { margin-top: 10px; }
.person .cap:last-child { margin-top: 6px; display: block; }
html.calm .person:hover .plate { transform: none; }

/* ---------------------------------------------------------------- prose, facts, registrations */
.prose { display: grid; gap: 22px; max-width: 64ch; }
.prose > .lead { max-width: 44ch; font-size: clamp(19px, 1.6vw, 24px); color: var(--ink); }
.facts { border-top: 1px solid var(--rule); margin-top: 8px; }
.facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.facts dt { padding-top: 4px; font: 500 var(--fs-label)/1.6 var(--ui); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.facts dd { color: var(--ink); }
.facts a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.facts.big dd { font-size: 17px; }
.split-l .facts { margin-top: 20px; max-width: 460px; }
.regs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); margin-top: 32px; }
.reg { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 8px 16px; padding: 34px 0; border-bottom: 1px solid var(--rule); align-content: start; }
.reg .fee-k { grid-row: 1 / span 3; padding-top: 0.2em; }
.reg > :not(.fee-k) { grid-column: 2; }
.reg h3 { font: 400 clamp(24px, 2.2vw, 32px)/1.1 var(--display); color: var(--ink); letter-spacing: -0.015em; }

/* ---------------------------------------------------------------- key dates ledger */
.kd-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 48px; }
.kd-next { font: italic 400 clamp(20px, 1.8vw, 24px)/1.3 var(--display); color: var(--ink); }
.kd-next b { font-weight: 400; color: var(--accent); }
.ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 2.4vw, 36px); margin-top: 36px; }
.mo { padding: 20px 0 30px; border-top: 1px solid var(--ink); }
.mo-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.mo-n { font: 400 clamp(26px, 2.2vw, 32px)/1 var(--display); color: var(--ink); letter-spacing: -0.015em; }
.mo-y { font: 500 var(--fs-label)/1 var(--ui); letter-spacing: 0.24em; color: var(--muted); }
.kd { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--rule); transition: opacity 0.6s var(--ease); }
.kd-d { grid-row: 1 / span 2; font: 400 40px/0.92 var(--display); color: var(--accent); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.kd-t { color: var(--ink); font-size: 15px; line-height: 1.35; }
.kd-t small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.kd-g { grid-column: 2; font: 400 13px/1.4 var(--ui); font-variant-caps: all-small-caps; letter-spacing: 0.12em; color: var(--muted); }
.kd.past .kd-d { color: var(--muted); }
.kd.past .kd-t::before { content: "Past · "; font-size: 13px; color: var(--muted); }
.kd.next { background: linear-gradient(var(--accent-soft), var(--accent-soft)) 0 0 / 100% 100% no-repeat; padding-inline: 10px; margin-inline: -10px; border-top-color: var(--accent); }
.kd.next::after { content: "Next"; position: absolute; top: 14px; right: 10px; padding: 4px 7px 3px; background: var(--accent); color: var(--on-accent); font: 500 9.5px/1.2 var(--ui); letter-spacing: 0.2em; text-transform: uppercase; }
.kd.next .kd-t { padding-right: 52px; }
.kd-none { padding-top: 12px; border-top: 1px solid var(--rule); font: italic 400 18px/1.3 var(--display); color: var(--muted); }
.mo.rise .kd { animation: rise 1.2s var(--ease) backwards; }
.mo.rise .kd:nth-child(2) { animation-delay: 0.1s; } .mo.rise .kd:nth-child(3) { animation-delay: 0.2s; } .mo.rise .kd:nth-child(4) { animation-delay: 0.3s; }
.kd-note { margin-top: 28px; max-width: 86ch; font-size: 14px; color: var(--muted); }
.kd-note b { font-weight: 500; color: var(--ink); }

/* ---------------------------------------------------------------- tax-time checklist */
.cks { display: grid; gap: 8px; }
.ck-g { border: 0; margin: 0; padding: 0; min-width: 0; }
.ck-g legend { padding: 30px 0 12px; }
.ck-g:first-child legend { padding-top: 0; }
.ck { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 16px; align-items: start; padding: 15px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); color: var(--ink); font-size: 16.5px; cursor: pointer; }
.ck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck .box { position: relative; width: 18px; height: 18px; margin-top: 3px; border: 1px solid var(--ink-2); transition: background-color 0.5s var(--ease), border-color 0.4s; }
.ck .box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border-right: 1.5px solid var(--on-accent); border-bottom: 1.5px solid var(--on-accent); transform: rotate(45deg) scale(0); transition: transform 0.5s var(--ease); }
.ck input:checked + .box { background: var(--accent); border-color: var(--accent); }
.ck input:checked + .box::after { transform: rotate(45deg) scale(1); }
.ck input:checked ~ span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.ck input:focus-visible + .box { outline: 1px solid var(--ink); outline-offset: 4px; box-shadow: 0 0 0 4px var(--stone), 0 0 0 5px var(--accent); }
.ck-sum { margin-top: 32px; display: grid; gap: 16px; max-width: 380px; }
.ck-count { font: 400 22px/1 var(--display); color: var(--ink); }
.ck-count b { font-weight: 400; font-size: 52px; letter-spacing: -0.02em; margin-right: 6px; font-variant-numeric: lining-nums tabular-nums; }
.ck-rule { position: relative; display: block; height: 1px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.ck-rule i { position: absolute; inset: -0.5px 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform 1s var(--ease); }

/* ---------------------------------------------------------------- discovery-call flow */
.flow-steps { position: relative; display: flex; flex-wrap: wrap; gap: 12px 30px; padding-bottom: 18px; margin-bottom: 40px; border-bottom: 1px solid var(--rule); }
.flow-steps::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: calc(var(--p, 0.3333) * 100%); background: var(--ink); transition: width 1s var(--ease); }
.flow-steps li { display: flex; align-items: baseline; gap: 10px; font: 500 var(--fs-label)/1 var(--ui); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.flow-steps li i { font: italic 400 21px/1 var(--display); letter-spacing: 0; text-transform: none; }
.flow-steps li.on, .flow-steps li.done { color: var(--ink); }
.flow-steps li.on i { color: var(--accent); }
.flow fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.flow fieldset + fieldset { margin-top: 48px; }
.flow.live fieldset + fieldset { margin-top: 0; }
.flow.live fieldset[data-step]:not(.on) { display: none; }
.flow.live fieldset.on { animation: rise 1s var(--ease) backwards; }
.flow-q { padding: 0; margin-bottom: 10px; font: 400 clamp(30px, 3vw, 46px)/1.08 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.flow-sub { margin-top: 14px; font: 500 var(--fs-label)/1.5 var(--ui); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.flow-err { min-height: 1.5em; color: var(--accent); font-size: 14px; }
.chips.days .chip { min-width: 92px; text-align: left; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 32px; }
.field { display: grid; gap: 4px; padding-top: 12px; }
.field > span { font: 500 var(--fs-label)/1.5 var(--ui); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.field em { font-style: normal; letter-spacing: 0.08em; text-transform: none; }
.field input, .field textarea { width: 100%; min-width: 0; padding: 8px 0 10px; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; background: transparent; color: var(--ink); font: 400 18px/1.4 var(--ui); resize: vertical; transition: border-color 0.4s; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; box-shadow: none; border-bottom-color: var(--ink); background: linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 1px no-repeat; }
.field input[aria-invalid="true"] { border-bottom-color: var(--accent); }
.field ::placeholder { color: var(--muted); opacity: 0.8; }
.field-w { grid-column: 1 / -1; }
.flow-review { margin-top: 18px; border-top: 1px solid var(--rule); }
.flow-review:empty { display: none; }
.flow-review div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.flow-review dt { font: 500 var(--fs-label)/1.8 var(--ui); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.flow-review dd { color: var(--ink); overflow-wrap: anywhere; }
.flow-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 36px; }
.flow-fine { margin-top: 18px; font-size: 13px; color: var(--muted); }
.flow-done { display: grid; gap: 18px; padding-top: 8px; }
.flow-thanks { font: 400 clamp(64px, 8vw, 124px)/0.95 var(--display); color: var(--ink); letter-spacing: -0.03em; outline: none; }
.flow-thanks em { font-style: italic; color: var(--accent); padding-right: 0.06em; }
.flow-done.rise > * { animation: rise 1.2s var(--ease) backwards; }
.portal .fee-p span { font: 400 13.5px var(--ui); font-variant-caps: all-small-caps; letter-spacing: 0.12em; font-size: 15px; }

/* ---------------------------------------------------------------- footer additions */
.foot-reg { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.foot-legal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(24px, 4vw, 64px); padding: 0 0 32px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }

/* ---------------------------------------------------------------- calm */
html.calm .struct-fig.rise .edge, html.calm .struct-fig.rise .node, html.calm .mo.rise .kd, html.calm .flow.live fieldset.on, html.calm .flow-done.rise > * { animation: none; }

/* ---------------------------------------------------------------- print: the checklist only */
@media print {
  .nav, .menu, .hero, .sec:not(#checklist), .interlude, .close, .foot, .ck-sum .cta-row, .skip, .cursor { display: none !important; }
  .library { background: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-l { position: static; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person:nth-child(even) { margin-top: 0; }
  .person:nth-child(4n + 2), .person:nth-child(4n + 4) { margin-top: 72px; }
  .ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .ind { grid-template-columns: minmax(0, 1fr); }
  .ind-out { position: static; }
  .scope, .regs, .group-facts { grid-template-columns: minmax(0, 1fr); }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-legal { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .struct-w { display: none; }
  .struct-n { display: block; max-width: 440px; }
}
@media (max-width: 640px) {
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .people { gap: 40px 16px; }
  .person:nth-child(4n + 2), .person:nth-child(4n + 4) { margin-top: 40px; }
  .mono { font-size: 56px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .flow-steps { gap: 10px 18px; }
  .flow-steps li:not(.on) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .facts div, .flow-review div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ind-row { padding: 18px 0; }
  .ind-row h3 { font-size: 23px; }
  .step-b { width: 40px; height: 40px; }
  .stepper { gap: 10px; }
  .stepper output { font-size: 30px; }
  .reg { grid-template-columns: 34px minmax(0, 1fr); }
  .chip { padding: 11px 13px; }
}
/* Fee rows line up across rows whatever the action label's length. */
@media (min-width: 1181px) { .fee { grid-template-columns: 70px minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr) 200px; } }
