/* Roseworth brand system.
   Logo face: Lexend Exa (the R). Display: Lexend Exa. Reading text: Spectral serif.
   Navy is the voice, paper is the room, azure is punctuation.
   Structure is square (sharp corners, layered-page brackets); action is round (pills, dots). */

:root {
  --paper: #F8F2ED;
  --surface: #FDF8F3;
  --ink: #0B1E39;
  --ink-soft: #24334F;
  --slate: #5C6579;
  --line: #E3D9CD;
  --azure: #00B8FF;
  --azure-deep: #0076AD;
  --display: 'Lexend Exa', ui-sans-serif, system-ui, sans-serif;
  --body: 'Spectral', Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 6px 6px 0 rgba(16, 30, 56, .07);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* the hidden attribute must beat any display class */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

.wrap { max-width: 74rem; margin: 0 auto; padding: 0 1.4rem; }
.dot { color: var(--azure); }

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0 0 1.1rem;
}
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-family: var(--sans); font-size: 1rem; font-weight: 650; margin: 0 0 .5rem; }

p { margin: .8rem 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; }

.eyebrow {
  font-family: var(--display);
  font-weight: 400;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.2rem;
}
.eyebrow::before {
  content: "";
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--azure);
  flex: none;
}
.eyebrow::after {
  content: "";
  flex: 0 1 4rem;
  height: 1px;
  background: var(--line);
}

.lede { color: var(--slate); font-size: 1.1rem; max-width: 44rem; }

/* ---------- logo lockup: the real mark ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}
.brand-logo {
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  display: block;
}
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .02em;
  line-height: 1.15;
}
.reg {
  font-family: var(--sans);
  font-size: .42em;
  vertical-align: super;
  margin-left: .08em;
  font-weight: 500;
}
.brand-name small {
  display: block;
  font-weight: 400;
  font-size: .52rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: .18rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.4rem;
}
.site-nav { display: flex; align-items: center; gap: 1.15rem; font-family: var(--sans); font-size: .85rem; flex-wrap: nowrap; }
.site-nav a { text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--azure); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  border-radius: 999px;
  padding: .55rem 1.2rem !important;
  border-bottom: none !important;
  transition: background .18s;
}
.nav-cta:hover { background: var(--azure-deep); }
.nav-portal {
  border: 1px solid var(--line) !important;
  border-radius: 999px;
  padding: .5rem 1.1rem !important;
  transition: border-color .18s, color .18s;
}
.nav-portal:hover { border-color: var(--azure-deep) !important; color: var(--azure-deep); }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  /* backdrop-filter would make the header the containing block for the fixed menu — solid paper instead */
  .site-header { backdrop-filter: none; background: var(--paper); }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .45rem 1rem;
    font-family: var(--sans);
    font-size: .8rem;
    color: var(--ink);
    cursor: pointer;
  }
  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h, 4.4rem);
    left: 0; right: 0;
    max-height: calc(100dvh - var(--header-h, 4.4rem));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(11, 30, 57, .12);
    padding: .6rem 1.4rem 1.2rem;
    z-index: 60;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); white-space: normal; }
  .nav-portal { margin-top: .8rem; text-align: center; border-bottom: none !important; padding: .7rem 1.1rem !important; }
  .nav-cta { margin-top: .6rem; text-align: center; }
}

/* ---------- sections ---------- */
section.band { padding: 5.5rem 0; position: relative; }
section.band + section.band { border-top: 1px solid var(--line); }
section.band--alt { background: var(--surface); }
.band-head { max-width: 46rem; margin-bottom: 2.8rem; }

/* ghost numeral on section corners */
.band[data-num]::after {
  content: attr(data-num);
  position: absolute;
  top: 2.2rem;
  right: 1.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  color: var(--ink);
  opacity: .05;
  pointer-events: none;
}

/* corner-bracket card: structure is square */
.cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.7rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.band--alt .card { background: var(--paper); }
.card::before {
  content: "";
  position: absolute;
  top: .55rem; left: .55rem;
  width: .85rem; height: .85rem;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  opacity: .3;
  transition: opacity .18s, border-color .18s;
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow);
  border-color: var(--ink-soft);
}
.card:hover::before { opacity: 1; border-color: var(--azure); }

/* rhythm: a light azure accent on every few cards */
.cards .card:nth-child(4n+3)::before { border-color: var(--azure); opacity: 1; }
.cards .card:nth-child(4n+3) { border-top: 3px solid var(--azure); }
.card h3 { font-family: var(--display); font-weight: 600; font-size: .98rem; letter-spacing: -.01em; }
.card p { color: var(--slate); font-size: .95rem; margin: 0; }
.card .go {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--azure-deep);
}
a.card-link { text-decoration: none; }

/* buttons: action is round */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: .84rem;
  letter-spacing: .01em;
  border-radius: 999px;
  padding: .9rem 1.8rem;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--azure-deep); border-color: var(--azure-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--azure-deep); color: var(--azure-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }

/* ---------- hero ---------- */
.hero {
  padding: 6.5rem 0 6.5rem;
  min-height: 74vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(46rem 30rem at 88% 10%, rgba(0, 184, 255, .06), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { max-width: 46rem; }
.hero .lede { margin-top: 1rem; }
.type-line {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--azure-deep);
  min-height: 1.6em;
  margin: .4rem 0 0;
  display: flex;
  align-items: baseline;
}
.type-line .caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--azure);
  margin-left: 3px;
  align-self: center;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .type-line .caret { animation: none; } }

/* the mark itself as hero ornament, parallax-driven */
.hero-art {
  position: absolute;
  right: clamp(-3rem, 3vw, 5rem);
  top: 44%;
  transform: translateY(-50%);
  width: clamp(15rem, 28vw, 22rem);
  aspect-ratio: 1;
  pointer-events: none;
  user-select: none;
}
.hero-art img { width: 100%; height: 100%; opacity: 1; filter: drop-shadow(0 18px 40px rgba(11, 30, 56, .12)); }
@media (max-width: 720px) {
  .hero-art { opacity: .35; right: -5rem; }
}

/* site-wide ambient dot field + travelling guide dot */
#dot-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
#guide-dot {
  position: fixed;
  z-index: 30;
  width: .8rem;
  height: .8rem;
  margin: -.4rem 0 0 -.4rem;
  border-radius: 50%;
  background: var(--azure);
  box-shadow: 0 0 0 .45rem rgba(0, 184, 255, .16), 0 0 22px rgba(0, 184, 255, .45);
  pointer-events: none;
  opacity: 0;
}
@media (prefers-reduced-motion: reduce), (max-width: 720px) {
  #guide-dot { display: none; }
}

/* ---------- scrollytelling: the deadline story ---------- */
.scrolly-band { background: var(--surface); border-top: 1px solid var(--line); }
.scrolly {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.scrolly-visual {
  position: sticky;
  top: 5.6rem;
  padding: 2rem 0 3rem;
}
.scrolly-frame {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  min-height: 26rem;
}
.scrolly-frame::before {
  content: "";
  position: absolute;
  top: .6rem; left: .6rem;
  width: 1rem; height: 1rem;
  border-top: 2.5px solid var(--ink);
  border-left: 2.5px solid var(--ink);
}
.cal-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 1.1rem;
}
.cal-title small { font-weight: 400; letter-spacing: .04em; color: var(--slate); text-transform: none; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .45rem;
}
.cal-cell {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  position: relative;
  transition: background .5s ease, border-color .5s ease;
}
.cal-cell .mark {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--azure);
  transform: scale(0);
  transition: transform .45s cubic-bezier(.2, .9, .3, 1.4);
}
.cal-cell .mark--ink { background: var(--ink); border-radius: 0; }
.cal-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; min-height: 2rem; }
.cal-tag {
  font-family: var(--display);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: .3rem .7rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease;
}
.notice {
  position: absolute;
  left: 1.4rem; right: 1.4rem;
  bottom: 1.3rem;
  background: var(--ink);
  color: var(--paper);
  padding: .95rem 1.1rem;
  font-family: var(--sans);
  font-size: .84rem;
  line-height: 1.5;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
  box-shadow: var(--shadow);
}
.notice .pulse {
  flex: none;
  width: .65rem; height: .65rem;
  margin-top: .35rem;
  border-radius: 50%;
  background: var(--azure);
  box-shadow: 0 0 0 .4rem rgba(0, 184, 255, .18);
}
.notice strong { font-weight: 650; display: block; }
.notice--done { background: #12331F; }
.notice--done .pulse { background: #63D598; box-shadow: 0 0 0 .4rem rgba(99, 213, 152, .18); }

/* state machine: which layers show at each chapter */
.scrolly[data-state="1"] .cal-cell .mark,
.scrolly[data-state="1"] .cal-tag,
.scrolly[data-state="1"] .notice { /* empty year — nothing yet */ }
.scrolly[data-state="2"] .cal-cell .mark { transform: scale(1); }
.scrolly[data-state="2"] .cal-tag { opacity: 1; transform: none; }
.scrolly[data-state="3"] .cal-cell .mark { transform: scale(1); }
.scrolly[data-state="3"] .cal-tag { opacity: 1; transform: none; }
.scrolly[data-state="3"] .notice--alert { opacity: 1; transform: none; }
.scrolly[data-state="4"] .cal-cell .mark { transform: scale(1); }
.scrolly[data-state="4"] .cal-tag { opacity: 1; transform: none; }
.scrolly[data-state="4"] .notice--done { opacity: 1; transform: none; }

.scrolly-steps { padding: 2rem 0; }
.scrolly-step {
  min-height: 24rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
  opacity: .3;
  transition: opacity .4s ease;
}
.scrolly-step:last-child { border-bottom: 0; }
.scrolly-step.active { opacity: 1; }
.scrolly-step .k {
  font-family: var(--display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--azure-deep);
  margin-bottom: .7rem;
}
.scrolly-step h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
.scrolly-step p { color: var(--slate); max-width: 26rem; }

@media (max-width: 860px) {
  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scrolly-visual { position: static; padding: 1rem 0; background: var(--surface); }
  .scrolly-frame { min-height: 0; }
  .cal-grid { gap: .3rem; }
  .scrolly-step { min-height: 55vh; }
}
@media (prefers-reduced-motion: reduce) {
  .cal-cell .mark, .cal-tag, .notice, .scrolly-step { transition: none; }
}

/* ---------- steps ---------- */
.steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); counter-reset: step; }
.step {
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
  counter-increment: step;
}
.step h3 { font-family: var(--display); font-weight: 600; font-size: .95rem; }
.step h3::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--azure);
  margin-bottom: .35rem;
}
.step p { color: var(--slate); font-size: .95rem; }

/* ---------- vault (the one navy moment per page) ---------- */
.vault {
  background: var(--ink);
  color: var(--paper);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.vault::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(248, 242, 237, .1) 1px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(42rem 26rem at 85% 20%, #000, transparent 70%);
}
.vault .wrap { position: relative; }
.vault h2 { color: var(--paper); }
.vault p { color: #B7C0D2; }
.vault .eyebrow { color: #8FA0BC; }
.vault .eyebrow::after { background: #33415C; }
.vault .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.vault .btn-primary:hover { background: var(--azure); border-color: var(--azure); color: var(--ink); }
.vault .btn-ghost { color: var(--paper); border-color: #3C4A66; }
.vault .btn-ghost:hover { border-color: var(--azure); color: var(--azure); }

/* ---------- lists ---------- */
.ticks { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: var(--azure);
}

.systems { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.systems span, .systems a {
  font-family: var(--display);
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .04em;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: .55rem 1.1rem;
  text-decoration: none;
  transition: border-color .18s, transform .18s;
}
.systems a:hover, .systems span:hover { border-color: var(--azure); transform: translateY(-2px); }

/* ---------- article / guide ---------- */
.article { max-width: 46rem; padding: 4.5rem 0 5.5rem; }
.article h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.article .meta {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--slate);
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  margin: 1.2rem 0 2.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.article h2 { font-size: 1.3rem; margin-top: 2.6rem; }
.article ul { padding-left: 1.3rem; }
.article li { margin: .35rem 0; }
.article li::marker { color: var(--azure); }
.article blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--azure);
  color: var(--slate);
}
.article.legal h2 {
  font-size: 1.15rem;
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.article.legal h3 { font-family: var(--display); font-weight: 600; font-size: .85rem; margin-top: 1.6rem; }
.article.legal p { font-size: .95rem; }
.article.legal ol { padding-left: 1.5rem; }
.article.legal li { margin: .3rem 0; font-size: .95rem; }

.sources {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--slate);
}

/* guide sidebar rail */
.guide-grid {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}
.guide-rail {
  position: sticky;
  top: 5.4rem;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  padding-top: 2.5rem;
}
.rail-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 .6rem;
}
.guide-rail a {
  display: block;
  padding: .7rem 0 .7rem .8rem;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.guide-rail a:hover { border-left-color: var(--azure); background: var(--surface); }
.guide-rail a.is-rel { border-left-color: var(--azure); }
.guide-rail a strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: .78rem;
  line-height: 1.45;
}
.guide-rail a span { font-size: .68rem; color: var(--slate); }
.guide-rail .rail-all {
  border-bottom: none;
  padding-left: 0;
  margin-top: .6rem;
  font-family: var(--display);
  font-size: .74rem;
  color: var(--azure-deep);
}
.guide-rail .rail-all:hover { background: none; border-left-color: transparent; }
@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr; gap: 0; }
  .guide-rail { position: static; padding-top: 1.5rem; }
  .guide-rail a:nth-child(n+5):not(.rail-all) { display: none; }
}

/* breadcrumbs */
.crumbs {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--slate);
  padding-top: 1.6rem;
}
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span::before { content: "·"; margin: 0 .5rem; }

/* ---------- faq ---------- */
.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); padding: .3rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  padding: .8rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.faq summary::after { content: "+"; color: var(--azure); font-size: 1.2rem; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1rem; color: var(--slate); font-size: .95rem; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 1rem; max-width: 34rem; }
.form-grid label {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  display: grid;
  gap: .35rem;
}
.form-grid input, .form-grid textarea, .form-grid select {
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: .8rem .9rem;
  width: 100%;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus {
  outline: 2px solid var(--azure);
  outline-offset: 1px;
  border-color: var(--azure);
}
.form-status { font-family: var(--sans); font-size: .9rem; min-height: 1.4rem; }
.form-status.ok { color: #2F6B47; }
.form-status.err { color: #A0353F; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #A9B3C6;
  font-family: var(--sans);
  font-size: .88rem;
  padding: 4rem 0 2.5rem;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-grid {
  display: grid;
  gap: 2.8rem 2.2rem;
  grid-template-columns: 1.5fr 1.1fr 1.1fr 1fr 1.1fr;
  margin-bottom: 3rem;
}
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h3 {
  color: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-brand .brand-name { color: var(--paper); }
.footer-brand .brand-mark::before, .footer-brand .brand-mark::after { border-color: var(--paper); }
.footer-brand .brand-mark b { color: var(--paper); }
.footer-brand p { max-width: 18rem; }
.footer-legal {
  border-top: 1px solid #26334E;
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  justify-content: space-between;
}

/* ---------- tools ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-result {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
  position: relative;
}
.tool-result::before {
  content: "";
  position: absolute;
  top: .55rem; left: .55rem;
  width: .85rem; height: .85rem;
  border-top: 2px solid var(--azure);
  border-left: 2px solid var(--azure);
}
.result-rows, .result-col { display: grid; gap: 0; }
.rrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .92rem;
}
.rrow strong { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.rrow--total { border-top: 2px solid var(--ink); border-bottom: none; margin-top: .3rem; }
.rrow--total strong { color: var(--azure-deep); font-size: 1.15rem; }
.result-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 640px) { .result-compare { grid-template-columns: 1fr; } }
.result-col h3 { font-family: var(--display); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.result-verdict {
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--slate);
}
.tool-note {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--slate);
  max-width: 46rem;
}
.tool-hint { font-family: var(--sans); font-size: .92rem; color: var(--slate); margin: 0; }
.form-grid label.check { display: flex; gap: .6rem; align-items: center; font-weight: 500; }
.form-grid label.check input { width: auto; }

/* A–Z service index */
.az-grid {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  margin-top: 1.5rem;
}
.az-grid--tight { margin-top: .8rem; }
.az-item {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.az-item:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); border-color: var(--azure); }
.az-item h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: .82rem;
  margin: 0 0 .3rem;
}
.az-item p {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}
.az-parent {
  display: block;
  margin-top: .55rem;
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--azure-deep);
}

/* homepage service groups */
.cards--groups { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.cards--groups .card { cursor: default; }
.group-links { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .35rem; }
.group-links a {
  font-family: var(--sans);
  font-size: .88rem;
  text-decoration: none;
  border-left: 2px solid var(--line);
  padding-left: .7rem;
  display: block;
  transition: border-color .15s, color .15s;
}
.group-links a:hover { border-left-color: var(--azure); color: var(--azure-deep); }
.btn-footer--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-footer--solid:hover { background: var(--azure); border-color: var(--azure); color: var(--ink); }

/* booking layout */
.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }
.book-aside { display: grid; gap: 1.2rem; position: sticky; top: 5.4rem; }
@media (max-width: 860px) { .book-aside { position: static; } }
.book-aside .card { cursor: default; }
.book-aside .card:hover { transform: none; box-shadow: none; border-color: var(--line); }
.book-aside .card p { font-size: .92rem; }
.book-aside .card p a { color: var(--ink); }
.steps--stacked { grid-template-columns: 1fr; gap: 1rem; margin-top: .8rem; }
.steps--stacked .step { border-top-width: 1.5px; padding-top: .7rem; }
.steps--stacked .step h3::before { font-size: 1.2rem; margin-bottom: .1rem; }
.card--quiet { background: transparent; border-style: dashed; }
.card--quiet::before { display: none; }

/* contact map */
.map-frame {
  margin: 0 0 3rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}
.map-frame::before {
  content: "";
  position: absolute;
  top: .55rem; left: .55rem;
  width: .85rem; height: .85rem;
  border-top: 2px solid var(--azure);
  border-left: 2px solid var(--azure);
  z-index: 1;
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 22rem;
  border: 0;
  filter: grayscale(.35) contrast(1.02);
}
.map-load {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 14rem;
  border: none;
  background: var(--surface);
  color: var(--azure-deep);
  font-family: var(--display);
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  transition: background .18s;
}
.map-load:hover { background: var(--paper); }

/* My Tax Calendar */
.cal-label {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  display: block;
  margin: 1.6rem 0 .4rem;
}
.cal-search input {
  font: inherit;
  font-size: 1.05rem;
  width: 100%;
  max-width: 34rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: .95rem 1.1rem;
}
.cal-search input:focus { outline: 2px solid var(--azure); border-color: var(--azure); }
.cal-results { max-width: 34rem; margin-top: .4rem; display: grid; }
.cal-result {
  text-align: left;
  font: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: none;
  padding: .8rem 1.1rem;
  cursor: pointer;
  display: grid;
  gap: .15rem;
}
.cal-result:first-child { border-top: 1px solid var(--line); }
.cal-result:hover { background: var(--paper); border-left: 3px solid var(--azure); }
.cal-result strong { font-family: var(--display); font-size: .85rem; }
.cal-result span { font-family: var(--sans); font-size: .76rem; color: var(--slate); }
.cal-picked { margin-top: 1.4rem; max-width: 34rem; cursor: default; }
.cal-picked:hover { transform: none; box-shadow: none; }
.cal-questions { margin-top: 2rem; display: grid; gap: 1.1rem; max-width: 40rem; }
.cal-output { margin-top: 3rem; }
.cal-events { display: grid; gap: .7rem; margin: 1.6rem 0 2rem; max-width: 46rem; }
.cal-event {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--slate);
  padding: .9rem 1.1rem;
  display: grid;
  gap: .15rem;
}
.cal-event--verified { border-left-color: var(--azure); }
.cal-event--calculated { border-left-color: var(--ink); }
.cal-event-date { font-family: var(--display); font-weight: 700; font-size: .74rem; letter-spacing: .06em; color: var(--azure-deep); }
.cal-event strong { font-family: var(--display); font-weight: 600; font-size: .92rem; }
.cal-event-kind { font-family: var(--sans); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.cal-event p { font-family: var(--sans); font-size: .84rem; color: var(--slate); margin: .2rem 0 0; }
.cal-subscribe { max-width: 46rem; cursor: default; }
.cal-subscribe:hover { transform: none; box-shadow: var(--shadow); }
.cal-link-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.cal-link-row code { font-size: .74rem; word-break: break-all; padding: .5rem .7rem; }

/* calendar page layout + year visual */
.cal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) { .cal-layout { grid-template-columns: 1fr; } .cal-side { order: -1; position: static; } }
.cal-side { position: sticky; top: 5.4rem; }
.cal-viz { min-height: 0; padding: 1.6rem; }
#cal-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem .9rem;
  margin-top: 1rem;
}
.cvm h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 .3rem;
}
.cvm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2.5px; }
.cvd {
  width: 100%;
  max-width: 13px;
  justify-self: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--line);
  opacity: .55;
  transition: transform .4s cubic-bezier(.2, .9, .3, 1.4), background .4s, opacity .4s;
}
.cvd--pad { background: transparent; opacity: 0; }
.cvd[data-tip] { cursor: help; position: relative; }
.cvd[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: .7rem;
  line-height: 1.4;
  padding: .45rem .7rem;
  width: max-content;
  max-width: 15rem;
  box-shadow: var(--shadow);
  z-index: 5;
  pointer-events: none;
}
.cvd--verified { background: var(--azure); opacity: 1; transform: scale(1.5); }
.cvd--calculated { background: var(--ink); opacity: 1; transform: scale(1.5); }
.cvd--general { background: var(--slate); opacity: 1; transform: scale(1.3); }
.cal-legend {
  display: flex;
  gap: 1.1rem;
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-size: .7rem;
  color: var(--slate);
}
.cal-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.cal-legend .cvd { width: .55rem; height: .55rem; transform: none; display: inline-block; aspect-ratio: auto; }

/* Talk to Rose — straight to WhatsApp */
.rose-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: .82rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 999px;
  padding: .9rem 1.5rem;
  box-shadow: 0 10px 28px rgba(11, 30, 57, .28);
  transition: background .18s, transform .18s;
}
.rose-fab:hover { background: var(--azure-deep); transform: translateY(-2px); }
.rose-dot {
  width: .6rem; height: .6rem;
  border-radius: 50%;
  background: var(--azure);
  box-shadow: 0 0 0 .3rem rgba(0, 184, 255, .2);
  animation: rose-pulse 2.4s ease-in-out infinite;
  flex: none;
}
@keyframes rose-pulse {
  0%, 100% { box-shadow: 0 0 0 .3rem rgba(0, 184, 255, .18); }
  50% { box-shadow: 0 0 0 .55rem rgba(0, 184, 255, .06); }
}
@media (prefers-reduced-motion: reduce) { .rose-dot { animation: none; } }

/* biscuit banner */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 46rem;
  margin: 0 auto;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.4rem;
  box-shadow: 0 14px 34px rgba(11, 30, 57, .3);
}
.cookie-banner p { margin: 0; font-family: var(--sans); font-size: .88rem; color: #C6CDDB; max-width: 26rem; }
.cookie-banner strong { color: var(--paper); }
.cookie-banner a { color: var(--azure); }
.cookie-actions { display: flex; gap: .6rem; }
.cookie-actions .btn { padding: .6rem 1.2rem; font-size: .74rem; }
.cookie-banner .btn-primary { background: var(--azure); border-color: var(--azure); color: var(--ink); }
.cookie-banner .btn-primary:hover { background: var(--paper); border-color: var(--paper); }
.cookie-banner .btn-ghost { color: var(--paper); border-color: #3C4A66; }
.cookie-banner .btn-ghost:hover { border-color: var(--azure); color: var(--azure); }

/* footer wordmark, full size with the dot */
.brand-logo--footer { width: 3.4rem; height: 3.4rem; }
.brand-name--footer { font-size: 1.7rem; letter-spacing: .01em; }

/* booking pills */
.slot-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}
.slot-fieldset legend {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 0;
  margin-bottom: .5rem;
}
.day-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span {
  display: inline-block;
  font-family: var(--display);
  font-size: .78rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: .5rem 1rem;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill input:focus-visible + span { outline: 2px solid var(--azure); outline-offset: 1px; }
.btn-footer { font-size: .76rem; padding: .6rem 1.3rem; color: var(--paper); border-color: #3C4A66; }
.btn-footer:hover { border-color: var(--azure); color: var(--azure); }
.gbg {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  margin-top: 1.8rem;
  text-decoration: none !important;
  max-width: 15rem;
  opacity: .9;
  transition: opacity .18s;
}
.gbg:hover { opacity: 1; }
.gbg-label {
  font-family: var(--display);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8FA0BC;
}
.gbg img { width: 100%; height: auto; }

/* advisory story chart */
.schart {
  position: absolute;
  left: .6rem; right: .6rem; top: .4rem;
  height: 7rem;
}
.schart .ychart-bars { height: 100%; }
.schart .ychart-bars span { height: 0; }
.schart.on .ychart-bars span { height: var(--h); }
.footer-social { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }

/* ---------- generated documents (shared by live preview and print) ---------- */
.print-sheet { display: none; }

.doc-page {
  width: 210mm;
  min-height: 296mm;
  background: var(--doc-paper, #FBF5EC);
  color: #0B1E39;
  font-family: 'Spectral', Georgia, serif;
  font-size: 10.5pt;
  line-height: 1.6;
  display: flex;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.paper-cream { --doc-paper: #FBF5EC; }
.paper-white { --doc-paper: #FFFFFF; }
.paper-aged {
  --doc-paper: #F3E8D0;
  background-image:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(ellipse at 8% 100%, rgba(122, 92, 40, .14), transparent 55%),
    radial-gradient(ellipse at 95% 90%, rgba(122, 92, 40, .1), transparent 50%);
}
.accent-navy { --doc-accent: #0B1E39; --doc-live: #00B8FF; }
.accent-azure { --doc-accent: #0076AD; --doc-live: #00B8FF; }
.accent-burgundy { --doc-accent: #6E1F2C; --doc-live: #A8434F; }
.accent-green { --doc-accent: #1F4D3A; --doc-live: #3E8E68; }

.doc-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 11mm;
  padding: 10mm 12mm;
  position: relative;
}
.theme-classic .doc-frame { border: 3px double var(--doc-accent); }
.theme-classic .doc-frame::before {
  content: "";
  position: absolute;
  inset: 1.8mm;
  border: .3mm solid var(--doc-accent);
  pointer-events: none;
}
.theme-minimal .doc-frame { margin: 14mm; padding: 2mm 0; }

.doc-logo { width: 12mm; height: 12mm; }
.doc-word {
  font-family: 'Lexend Exa', sans-serif;
  font-weight: 700;
  font-size: 12pt;
  letter-spacing: .32em;
  color: var(--doc-accent);
}
.doc-sub {
  font-size: 6.5pt;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #5C6579;
}
.doc-head--classic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6mm;
  text-align: center;
  padding: 2mm 0 4mm;
  margin-bottom: 5mm;
  border-bottom: .4mm solid var(--doc-accent);
}
.theme-classic .doc-title {
  text-align: center;
  font-family: 'Spectral', Georgia, serif;
  font-variant: small-caps;
  font-weight: 600;
  font-size: 19pt;
  letter-spacing: .1em;
  margin: 1mm 0 1mm;
}
.doc-refline {
  text-align: center;
  font-family: 'Lexend Exa', sans-serif;
  font-size: 6.4pt;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #5C6579;
  margin: 0 0 7mm;
}
.doc-head--modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: .7mm solid var(--doc-accent);
  padding-bottom: 4mm;
  margin-bottom: 7mm;
}
.doc-head--modern .doc-brand { display: flex; gap: 3mm; align-items: center; }
.doc-brand-name {
  font-family: 'Lexend Exa', sans-serif;
  font-weight: 600;
  font-size: 11pt;
  line-height: 1.2;
}
.doc-brand-name small {
  display: block;
  font-weight: 400;
  font-size: 5.2pt;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #5C6579;
  margin-top: .6mm;
}
.doc-head--minimal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: .3mm solid #C9C2B4;
  padding-bottom: 3mm;
  margin-bottom: 7mm;
}
.doc-head--minimal .doc-word { letter-spacing: .02em; font-size: 11pt; }
.doc-meta {
  text-align: right;
  font-family: 'Lexend Exa', sans-serif;
  font-size: 6.4pt;
  letter-spacing: .06em;
  color: #5C6579;
  line-height: 1.9;
}
.theme-modern .doc-title, .theme-minimal .doc-title {
  font-family: 'Lexend Exa', sans-serif;
  font-weight: 600;
  font-size: 15pt;
  letter-spacing: -.01em;
  margin: 0 0 5mm;
}
.doc-dot { color: var(--doc-live, #00B8FF); font-style: normal; }

.doc-intro, .doc-present { font-size: 10.5pt; margin: 0 0 4mm; }
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4mm 0 6mm;
}
.doc-table th {
  text-align: left;
  font-family: 'Lexend Exa', sans-serif;
  font-weight: 600;
  font-size: 6.4pt;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #5C6579;
  width: 32%;
  padding: 3mm 4mm 3mm 0;
  border-bottom: .3mm solid #D8CFC0;
  vertical-align: top;
}
.doc-table td {
  padding: 3mm 0;
  border-bottom: .3mm solid #D8CFC0;
  vertical-align: top;
}
.theme-classic .doc-table th {
  font-family: 'Spectral', Georgia, serif;
  font-variant: small-caps;
  text-transform: none;
  letter-spacing: .06em;
  font-size: 10pt;
  color: var(--doc-accent);
}
.doc-total th, .doc-total td {
  border-top: .6mm solid var(--doc-accent);
  border-bottom: none;
  font-weight: 600;
  font-size: 12.5pt;
  color: var(--doc-accent);
}
.doc-list { padding-left: 5mm; margin: 0 0 4mm; }
.doc-list li { margin: 0 0 3mm; }
.doc-list li::marker { color: var(--doc-accent); font-weight: 600; }
.doc-notes { padding-left: 5mm; margin: 2mm 0 4mm; }
.doc-notes li { margin: 0 0 2.5mm; }
.doc-notes li::marker { color: var(--doc-live); }
.doc-h2 {
  font-family: 'Lexend Exa', sans-serif;
  font-weight: 600;
  font-size: 8pt;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--doc-accent);
  margin: 6mm 0 2mm;
}
.doc-small { font-size: 8pt; color: #5C6579; }
.sig { margin-top: 10mm; }
.sig-name { font-variant: small-caps; letter-spacing: .04em; }
.doc-foot {
  margin-top: auto;
  padding-top: 3mm;
  border-top: .3mm solid #D8CFC0;
  display: flex;
  justify-content: space-between;
  gap: 8mm;
  font-family: 'Lexend Exa', sans-serif;
  font-size: 6pt;
  letter-spacing: .04em;
  color: #5C6579;
}
.doc-foot b { color: var(--doc-accent); font-weight: 600; }
.theme-classic .doc-foot {
  flex-direction: column;
  gap: 1mm;
  text-align: center;
  border-top: .4mm solid var(--doc-accent);
}
.doc-foot--platform { flex-direction: column; gap: 1.6mm; }
.doc-foot-brand { display: inline-flex; align-items: center; gap: 2mm; }
.theme-classic .doc-foot-brand { justify-content: center; }
.doc-foot-brand img { width: 4mm; height: 4mm; }
.doc-disclaimer { font-size: 5.6pt; color: #8A94A6; line-height: 1.6; }
.doc-user-logo { max-height: 14mm; max-width: 46mm; object-fit: contain; }
.doc-head--modern .doc-user-logo { max-height: 11mm; }
.form-grid input[type="file"] { padding: .55rem; font-size: .8rem; }

/* live preview: real pages, scaled to fit the column */
.doc-preview { overflow: hidden; position: relative; }
.pv-scale { transform-origin: top left; width: 210mm; }
.pv-scale .doc-page { box-shadow: 0 8px 30px rgba(11, 30, 57, .2); margin-bottom: 6mm; }
.tool-wrap[data-tool="dividend-voucher"] .tool-result,
.tool-wrap[data-tool="new-employee"] .tool-result { position: sticky; top: 5.4rem; }

@media print {
  @page { size: A4; margin: 0; }
  html, body { margin: 0 !important; padding: 0 !important; background: none !important; }
  body > *:not(.print-sheet) { display: none !important; }
  body::before { display: none; }
  .print-sheet { display: block; margin: 0; padding: 0; }
  /* full bleed: each page is exactly one sheet, background edge to edge */
  .print-sheet .doc-page {
    width: 210mm;
    height: 296.8mm;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    box-shadow: none;
    page-break-after: always;
  }
  .print-sheet .doc-page:last-child { page-break-after: auto; }
}

/* ---------- A–Z groups ---------- */
.az-group { margin-top: 2.6rem; }
.az-group-head { display: flex; align-items: center; gap: .8rem; }
.az-group-head h3 { margin: 0; font-family: var(--display); font-size: 1rem; }
.az-group-head h3 a { text-decoration: none; }
.az-group-head h3 a:hover { color: var(--azure-deep); }
.stack-motif { position: relative; width: 1.5rem; height: 1.5rem; flex: none; }
.stack-motif i {
  position: absolute;
  inset: 0;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  animation: stack-shuffle 3.2s ease-in-out infinite;
}
.stack-motif i:nth-child(1) { animation-delay: 0s; opacity: .35; }
.stack-motif i:nth-child(2) { animation-delay: .25s; opacity: .6; }
.stack-motif i:nth-child(3) { animation-delay: .5s; }
@keyframes stack-shuffle {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(-2.5px, -2.5px) rotate(-3deg); }
}

/* ---------- the year story (accounts scroll experience) ---------- */
.ystory {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  margin: 3rem 0 4rem;
}
.ystory-visual { position: sticky; top: 5.4rem; padding: 1rem 0 2rem; }
.ystage {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 2rem;
  min-height: 29rem;
  overflow: hidden;
}
.ystage::before {
  content: "";
  position: absolute;
  top: .6rem; left: .6rem;
  width: 1rem; height: 1rem;
  border-top: 2.5px solid var(--ink);
  border-left: 2.5px solid var(--ink);
  z-index: 2;
}
.ydocs {
  position: relative;
  width: 19.6rem;
  height: 19.4rem;
  margin: 1.2rem auto 0;
}
.ydoc {
  position: absolute;
  top: 0; left: 0;
  width: 4.3rem;
  height: 5.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 2px 2px 0 rgba(11, 30, 57, .06);
  padding: .95rem .45rem .4rem;
  transition: transform .8s cubic-bezier(.25, .8, .3, 1), opacity .5s ease;
}
.ydoc::after { /* category strip, appears once "recorded" */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: .3rem;
  background: var(--azure);
  opacity: 0;
  transition: opacity .5s ease .2s;
}
.ydoc:nth-child(3n)::after { background: var(--ink); }
.ydoc:nth-child(3n+2)::after { background: var(--slate); }
.ydoc-tag {
  position: absolute;
  top: .32rem; left: .45rem; right: .3rem;
  font-family: var(--display);
  font-size: .42rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}
.ydoc i { display: block; height: 2px; background: var(--line); margin: .35rem .1rem; }
.ydoc i:nth-child(3) { width: 70%; }

/* per-document scatter + grid coordinates */
.ydoc.d1  { --sx: .2rem;   --sy: .4rem;    --sr: -8deg;  --gx: 0;       --gy: 0; }
.ydoc.d2  { --sx: 5.5rem;  --sy: -.3rem;   --sr: 6deg;   --gx: 5.1rem;  --gy: 0; }
.ydoc.d3  { --sx: 11rem;   --sy: .6rem;    --sr: -4deg;  --gx: 10.2rem; --gy: 0; }
.ydoc.d4  { --sx: 15rem;   --sy: -.2rem;   --sr: 10deg;  --gx: 15.3rem; --gy: 0; }
.ydoc.d5  { --sx: 2.8rem;  --sy: 4.6rem;   --sr: -7deg;  --gx: 0;       --gy: 6.5rem; }
.ydoc.d6  { --sx: 8.6rem;  --sy: 4.1rem;   --sr: 5deg;   --gx: 5.1rem;  --gy: 6.5rem; }
.ydoc.d7  { --sx: 13.4rem; --sy: 4.9rem;   --sr: -10deg; --gx: 10.2rem; --gy: 6.5rem; }
.ydoc.d8  { --sx: 1.2rem;  --sy: 9.2rem;   --sr: 7deg;   --gx: 15.3rem; --gy: 6.5rem; }
.ydoc.d9  { --sx: 6.4rem;  --sy: 9.7rem;   --sr: -5deg;  --gx: 0;       --gy: 13rem; }
.ydoc.d10 { --sx: 12rem;   --sy: 9.1rem;   --sr: 9deg;   --gx: 5.1rem;  --gy: 13rem; }
.ydoc.d11 { --sx: 3.4rem;  --sy: 13.2rem;  --sr: -6deg;  --gx: 10.2rem; --gy: 13rem; }
.ydoc.d12 { --sx: 9rem;    --sy: 13.6rem;  --sr: 4deg;   --gx: 15.3rem; --gy: 13rem; }

/* stage choreography */
.ystory[data-stage="1"] .ydoc { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)); }
.ystory[data-stage="1"] .ydoc.late,
.ystory[data-stage="2"] .ydoc.late { opacity: 0; }
.ystory[data-stage="2"] .ydoc,
.ystory[data-stage="3"] .ydoc { transform: translate(var(--gx), var(--gy)); }
.ystory:not([data-stage="1"]) .ydoc::after { opacity: 1; }
.ystory[data-stage="4"] .ydoc,
.ystory[data-stage="5"] .ydoc { transform: translate(var(--gx), calc(var(--gy) * .62)) scale(.86); }
.ystory[data-stage="6"] .ydoc,
.ystory[data-stage="7"] .ydoc { transform: translate(7.6rem, 6.4rem) scale(.06) rotate(0); opacity: 0; }

.ytally, .ychart {
  position: absolute;
  left: 1.4rem; right: 1.4rem;
  bottom: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: .9rem 1.1rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
  z-index: 3;
}
.ystory[data-stage="4"] .ytally { opacity: 1; transform: none; }
.ystory[data-stage="5"] .ychart { opacity: 1; transform: none; }
.ychart-bars { display: flex; align-items: flex-end; gap: .55rem; height: 5.2rem; }
.ychart-bars span {
  flex: 1;
  height: 0;
  background: var(--ink);
  transition: height .9s cubic-bezier(.25, .8, .3, 1);
}
.ychart-bars span:nth-child(even) { background: var(--azure); }
.ystory[data-stage="5"] .ychart-bars span,
.ybook .ychart-bars span { height: var(--h); }
.ychart-cap { font-family: var(--sans); font-size: .78rem; color: var(--slate); margin: .6rem 0 0; }

/* the book */
.ybook {
  position: absolute;
  left: 50%; top: 46%;
  width: 11rem; height: 14.5rem;
  margin: -7.2rem 0 0 -5.5rem;
  perspective: 900px;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .6s ease, transform .6s ease;
  z-index: 2;
}
.ystory[data-stage="6"] .ybook { opacity: 1; transform: scale(1); }
.ystory[data-stage="7"] .ybook { opacity: 0; transform: scale(.25) translate(16rem, 6rem); }
.ybook-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: ybook-turn 7s ease-in-out infinite alternate;
}
@keyframes ybook-turn {
  0% { transform: rotateY(-32deg); }
  100% { transform: rotateY(145deg); }
}
.ybook-face { position: absolute; inset: 0; backface-visibility: hidden; }
.ybook-front {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .22em;
  text-align: center;
  border-radius: 2px 6px 6px 2px;
  transform: translateZ(.9rem);
}
.ybook-brand { font-size: 2.2rem; font-weight: 700; letter-spacing: 0; }
.ybook-brand em { font-style: normal; color: var(--azure); }
.ybook-year {
  border: 1px solid rgba(248, 242, 237, .4);
  padding: .3rem .8rem;
  border-radius: 999px;
  letter-spacing: .12em;
}
.ybook-back {
  background: var(--surface);
  border: 1px solid var(--line);
  transform: rotateY(180deg) translateZ(.9rem);
  padding: 1.2rem;
  display: flex;
  align-items: flex-end;
}
.ychart-bars--page { width: 100%; height: 70%; }
.ybook-spine {
  width: 1.8rem;
  left: -.9rem; right: auto;
  background: var(--ink);
  color: var(--paper);
  transform: rotateY(-90deg) translateZ(.9rem);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: .6rem;
  letter-spacing: .2em;
}

/* the library */
.yshelf {
  position: absolute;
  left: 1.4rem; right: 1.4rem;
  top: 50%;
  transform: translateY(-42%) scale(.92);
  opacity: 0;
  transition: opacity .6s ease .25s, transform .6s ease .25s;
  text-align: center;
  z-index: 2;
}
.ystory[data-stage="7"] .yshelf { opacity: 1; transform: translateY(-42%) scale(1); }
.yshelf-row { display: flex; justify-content: center; align-items: flex-end; gap: .6rem; }
.yspine {
  writing-mode: vertical-rl;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .18em;
  padding: 1rem .5rem;
  height: 8.5rem;
  display: flex;
  align-items: center;
  position: relative;
}
.yspine--now { background: var(--ink); color: var(--paper); height: 9.5rem; }
.yspine--now .dot-mark {
  position: absolute;
  bottom: .5rem; left: 50%;
  width: .5rem; height: .5rem;
  margin-left: -.25rem;
  border-radius: 50%;
  background: var(--azure);
}
.yshelf-board { height: .45rem; background: var(--ink); margin-top: 0; }
.yshelf-cap { font-family: var(--sans); font-size: .8rem; color: var(--slate); margin: .8rem 0 0; }

/* pinned story head (title stays frozen while chapters scroll) */
.ystory--hero { margin: 1rem 0 4rem; }
.ystory-head h1 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin: 0 0 .7rem; }
.ystory-head .lede { font-size: .96rem; margin: 0 0 1.5rem; max-width: none; }
.ybook-logo { width: 3.4rem; height: 3.4rem; }
.ybook-year { border: none; padding: 0; font-size: .82rem; letter-spacing: .24em; }
.ybook-year .ydot { font-style: normal; color: var(--azure); font-size: 1.1em; }

/* generic service-story stage */
.svc-stage { min-height: 27rem; padding: 1.8rem; }
.svc-field { position: relative; width: 20rem; height: 19rem; margin: 1rem auto 0; max-width: 100%; }
.svc-stage [data-show] { opacity: 0; transition: opacity .55s ease, transform .7s cubic-bezier(.25, .8, .3, 1); }
.svc-stage [data-show].on { opacity: 1; }
.sitem { position: absolute; top: 0; left: 0; transform: translate(var(--x, 0), calc(var(--y, 0) + .9rem)); }
.sitem.on { transform: translate(var(--x, 0), var(--y, 0)); }
.sdoc {
  width: 4.4rem;
  height: 5.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 2px 2px 0 rgba(11, 30, 57, .06);
  padding: .95rem .45rem .4rem;
}
.sdoc--wide { width: 7rem; height: 4.6rem; }
.sdoc-tag {
  position: absolute;
  top: .32rem; left: .45rem; right: .3rem;
  font-family: var(--display);
  font-size: .44rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}
.sdoc i { display: block; height: 2px; background: var(--line); margin: .35rem .1rem; }
.sdoc i:nth-child(3) { width: 70%; }
.schip {
  display: inline-block;
  font-family: var(--display);
  font-size: .58rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: .35rem .7rem;
  white-space: nowrap;
}
.schip.on { border-color: var(--azure); }
.sbox {
  min-width: 6.4rem;
  padding: .8rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: .72rem;
  text-align: center;
  box-shadow: 3px 3px 0 rgba(11, 30, 57, .08);
}
.savatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  font-size: .72rem;
}
.senvelope {
  width: 6.2rem; height: 4.2rem;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: .4rem;
  font-family: var(--display);
  font-size: .6rem;
  letter-spacing: .18em;
}
.senvelope::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  border-left: 3rem solid transparent;
  border-right: 3rem solid transparent;
  border-top: 1.9rem solid var(--ink);
  opacity: .12;
}
.stally {
  position: absolute;
  left: 0; right: 0;
  bottom: 5.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: .7rem 1rem;
  z-index: 2;
}
.stally--left { right: 52%; bottom: 6.4rem; }
.stally--right { left: 52%; bottom: 6.4rem; }
.snote {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  background: var(--ink);
  color: var(--paper);
  padding: .85rem 1rem;
  font-family: var(--sans);
  font-size: .82rem;
  line-height: 1.45;
  display: flex;
  gap: .7rem;
  align-items: center;
  box-shadow: var(--shadow);
  z-index: 3;
}
.snote .pulse {
  flex: none;
  width: .6rem; height: .6rem;
  border-radius: 50%;
  background: var(--azure);
  box-shadow: 0 0 0 .35rem rgba(0, 184, 255, .18);
}
.snote--ok { background: #12331F; }
.snote--ok .pulse { background: #63D598; box-shadow: 0 0 0 .35rem rgba(99, 213, 152, .18); }

/* story text column */
.ystory-steps { padding: 1rem 0; }
.ystory-step {
  min-height: 21rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  opacity: .3;
  transition: opacity .4s ease;
}
.ystory-step:last-child { border-bottom: 0; }
.ystory-step.active { opacity: 1; }
.ystory-step .k {
  font-family: var(--display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--azure-deep);
  margin-bottom: .7rem;
}
.ystory-step h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
.ystory-step p { color: var(--slate); max-width: 26rem; }

@media (max-width: 860px) {
  .ystory { grid-template-columns: 1fr; gap: 0; }
  .ystory-visual { position: static; background: var(--paper); padding: .6rem 0; }
  .ystage { min-height: 0; padding-bottom: 2rem; }
  .ydocs { transform: scale(.8); transform-origin: top center; height: 16rem; }
  .ystory-step { min-height: 60vh; }
}
@media (prefers-reduced-motion: reduce) {
  .ydoc, .ytally, .ychart, .ybook, .yshelf, .ystory-step, .ychart-bars span { transition: none; }
  .ybook-inner, .stack-motif i { animation: none; }
}

/* ---------- reveal animation (gated on .js so no-JS visitors see everything) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .systems a, .systems span { transition: none; }
}

/* ---------- tool landing sections ---------- */
.seo-prose { max-width: 46rem; }
.seo-prose p { color: var(--slate); font-size: 1.02rem; line-height: 1.75; margin: 0 0 1.1rem; }
.seo-prose em { color: var(--ink); font-style: italic; }
.tool-cta {
  margin-top: 3.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 2.2rem 2.4rem;
}
.tool-cta h3 { margin: 0 0 .5rem; font-size: 1.35rem; }
.tool-cta p { color: var(--slate); max-width: 40rem; margin: 0 0 1.2rem; }
.tool-cta-btns { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 0 !important; }
@media (max-width: 860px) {
  .tool-cta { padding: 1.6rem 1.4rem; }
}

/* ---------- google reviews ---------- */
.gr-wrap { margin-top: 3rem; }
.gr-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem;
}
.gr-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  border: 1px solid var(--line); background: var(--paper);
  padding: .55rem .9rem; font-size: .95rem;
}
.gr-badge strong { font-size: 1.15rem; color: var(--ink); }
.gr-g { width: 1.15rem; height: 1.15rem; flex: none; }
.gr-stars { color: #E8A33D; letter-spacing: .1em; font-size: .95rem; }
.gr-star-dim { color: var(--line); }
.gr-count { color: var(--slate); }
.cards--reviews .gr-card { display: flex; flex-direction: column; margin: 0; }
.gr-card .gr-stars { margin-bottom: .7rem; }
.gr-card blockquote {
  margin: 0 0 1rem; padding: 0; border: 0;
  color: var(--slate); font-size: .98rem; line-height: 1.7; flex: 1;
}
.gr-card figcaption { color: var(--ink); font-size: .88rem; font-weight: 600; }
.gr-card figcaption a { color: var(--azure); }
.gr-card--cta { border-style: dashed; }
.gr-card--cta .gr-stars { color: var(--line); }
.gr-card--cta blockquote { font-style: italic; }
@media (max-width: 860px) {
  .gr-head { flex-direction: column; align-items: flex-start; }
}
.gr-card figcaption { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.gr-ava { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.gr-goog { font-weight: 400; font-size: .82rem; }
.gr-card blockquote {
  display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden;
}
