/* Abbey Accountancy. Palette: blacks, greys and silver. */

@font-face { font-family: "Libre Caslon Display"; src: url("../fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --black: #0c0d0e;
  --charcoal: #17191b;
  --graphite: #2b2e31;
  --slate: #565b61;
  --steel: #8a9097;
  --silver: #b9bdc2;
  --mist: #e4e6e9;
  --paper: #f4f5f6;
  --white: #ffffff;
  --green: #00ab4e;       /* AAT green: accents on dark, and fills with black text */
  --green-deep: #08703a;  /* green for text and fills on light backgrounds */
  --silver-sheen: linear-gradient(135deg, #f6f7f8 0%, #b4b9bf 48%, #e6e8eb 100%);
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--graphite); background: var(--paper); }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; color: var(--black); text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.125rem; line-height: 1.35; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; box-shadow: 0 0 0 6px var(--white); border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--white); color: var(--black); padding: .75rem 1rem; font-weight: 600; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 50rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.5rem; font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer; transition: filter .15s, background-color .15s, color .15s; }
.btn-primary { background: var(--green); color: var(--black); border-color: var(--green); }
.btn-primary:hover { background: #19c266; border-color: #19c266; }
.btn-ghost { color: var(--white); border-color: var(--steel); }
.btn-ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-small { min-height: 2.75rem; padding: .45rem 1rem; font-size: .9375rem; white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); border-bottom: 1px solid var(--graphite); color: var(--white); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.brand { display: block; flex: none; }
.brand img { width: 190px; height: auto; }
.site-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--mist); text-decoration: none; font-size: .9688rem; font-weight: 500; padding: .5rem 0; border-bottom: 1px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--white); border-bottom-color: var(--green); }
.nav-toggle { display: none; align-items: center; gap: .6rem; background: none; border: 1px solid var(--slate); color: var(--white); font: 500 .9375rem var(--sans); padding: .55rem .85rem; min-height: 2.75rem; border-radius: 2px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-header :focus-visible, .section-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--white); box-shadow: 0 0 0 6px var(--black); }

@media (max-width: 60rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); border-bottom: 1px solid var(--graphite); max-height: calc(100vh - 4.75rem); max-height: calc(100dvh - 4.75rem); overflow-y: auto; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; }
  .site-nav a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--graphite); font-size: 1.0625rem; }
  .site-nav .btn { margin-top: 1.25rem; width: 100%; min-height: 3rem; }
  html.no-js .site-header { position: static; }
  html.no-js .nav-toggle { display: none; }
  html.no-js .header-row { flex-wrap: wrap; padding-top: .75rem; }
  html.no-js .site-nav { display: block; position: static; flex-basis: 100%; max-height: none; border-bottom: 0; }
  html.no-js .site-nav ul { padding-inline: 0; }
}

/* Hero */
.hero { background: radial-gradient(120% 90% at 85% 10%, #26292c 0%, var(--charcoal) 38%, var(--black) 78%); color: var(--mist); padding-top: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero h1 { color: var(--white); max-width: 17ch; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; max-width: 56ch; margin: 1.75rem 0 0; color: var(--mist); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2.25rem; }
.hero-art { justify-self: end; width: 100%; max-width: 25rem; }
.tracery { width: 100%; }
.hero-facts { list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--graphite); }
.hero-facts li { padding: 1.5rem 1.5rem 1.75rem 0; font-size: .9688rem; line-height: 1.5; color: var(--silver); }
.hero-facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--graphite); }
.hero-facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3125rem; color: var(--white); margin-bottom: .2rem; }

@media (max-width: 52rem) {
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li, .hero-facts li + li { padding: 1.1rem 0; border-left: 0; }
  .hero-facts li + li { border-top: 1px solid var(--graphite); }
}
@media (max-width: 40rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { position: relative; }
  .hero-copy, .hero-facts { position: relative; z-index: 1; }
  .hero-art { position: absolute; right: -5rem; top: 13rem; width: 17rem; max-width: none; opacity: .14; pointer-events: none; }
  .hero-art .motif { display: none; }
}

/* One page-load moment: the window draws itself. */
@media (prefers-reduced-motion: no-preference) {
  .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s cubic-bezier(.6, 0, .2, 1) forwards; }
  .d2 { animation-delay: .35s; }
  .d3 { animation-delay: .7s; }
  .d4 { animation-delay: 1.05s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Sections */
.section { padding-block: var(--section); }
.section-light { background: var(--white); }
.section-mist { background: var(--mist); }
.section-dark { background: var(--black); color: var(--mist); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head p { margin: 1.25rem 0 0; font-size: 1.125rem; max-width: 68ch; }
.section-light + .section-light { border-top: 1px solid var(--mist); }

/* Services ledger */
.ledger { margin: 0; border-top: 2px solid var(--black); }
.ledger-row { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: 1rem 3rem; padding: 1.6rem 0; border-bottom: 1px solid var(--silver); align-items: center; }
.svc-icon { flex: none; width: 3.25rem; height: 3.25rem; padding: .6rem; color: var(--white); background: var(--black); border-radius: 50%; }
.svc-icon .g { stroke: var(--green); }
.ledger dt { display: flex; align-items: center; gap: 1.1rem; font-family: var(--serif); font-size: 1.4375rem; line-height: 1.25; color: var(--black); }
.ledger dd { margin: 0; max-width: 62ch; }
@media (max-width: 46rem) { .ledger-row { grid-template-columns: 1fr; gap: .5rem; padding: 1.35rem 0; } .ledger dt { font-size: 1.3125rem; } }

/* Making Tax Digital */
.mtd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); }
.mtd-block { border-top: 1px solid var(--slate); padding-top: 1.5rem; }
.mtd-block h3, .mtd-grid-lower h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: .9rem; }
.mtd-grid-lower { margin-top: clamp(2.5rem, 5vw, 4rem); }
.mtd-grid-lower > div { border-top: 1px solid var(--slate); padding-top: 1.5rem; }
.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; border-left: 1px solid var(--silver); }
.timeline li { position: relative; display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .7rem 0 .7rem 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 1.2rem; width: 9px; height: 9px; background: var(--green); transform: rotate(45deg); }
.timeline-date { font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }
.timeline-what strong { color: var(--white); font-weight: 600; }
.timeline-note { display: block; font-size: .9063rem; color: var(--silver); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: .45rem 0 .45rem 1.75rem; }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: 1rem; width: .85rem; height: .45rem; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); transform-origin: left top; }
.fineprint { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding-top: 1.5rem; border-top: 1px solid var(--graphite); font-size: .9375rem; color: var(--silver); max-width: 72ch; }
@media (max-width: 52rem) { .mtd-grid { grid-template-columns: 1fr; } }
@media (max-width: 26rem) { .timeline li { grid-template-columns: 1fr; gap: .1rem; } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.about-grid h2 { margin-bottom: 1.5rem; }
.about-grid h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: 1rem; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 2px solid var(--black); }
.steps li { counter-increment: step; position: relative; padding: 1.15rem 0 1.15rem 3.25rem; border-bottom: 1px solid var(--silver); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 1.05rem; font-family: var(--display); font-size: 1.875rem; line-height: 1; color: var(--green-deep); }
.steps strong { color: var(--black); font-weight: 600; }
@media (max-width: 52rem) { .about-grid { grid-template-columns: 1fr; } }

/* Key dates */
.table-scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--silver); }
.dates { width: 100%; min-width: 42rem; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.dates th, .dates td { text-align: left; vertical-align: top; padding: .95rem 1.25rem; border-bottom: 1px solid var(--mist); }
.dates thead th { background: var(--black); color: var(--white); font-weight: 600; font-size: .9375rem; border-bottom: 0; }
.dates tbody th { font-family: var(--serif); font-weight: 400; font-size: 1.1875rem; color: var(--black); width: 15rem; border-right: 1px solid var(--mist); border-bottom-color: var(--silver); background: var(--paper); }
.dates td.when { font-weight: 600; color: var(--black); width: 17rem; }
.dates tbody tr:last-child > * { border-bottom: 0; }

/* Questions */
#questions h2 { margin-bottom: 2rem; }
.faq { border-top: 2px solid var(--black); }
.faq details { border-bottom: 1px solid var(--silver); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 1.25rem 3rem 1.25rem 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; color: var(--black); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: .35rem; top: 50%; width: 1rem; height: 2px; background: var(--black); transition: transform .2s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin: 0; padding: 0 3rem 1.5rem 0; max-width: 68ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.contact-intro h2 { margin-bottom: 1.25rem; }
.contact-details { margin: 2.25rem 0 0; border-top: 1px solid var(--slate); }
.contact-details > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--graphite); }
.contact-details dt { color: var(--silver); }
.contact-details dd { margin: 0; color: var(--white); overflow-wrap: break-word; min-width: 0; }
@media (max-width: 26rem) { .contact-details > div { grid-template-columns: 1fr; gap: .15rem; } }
.contact-form { background: var(--paper); color: var(--graphite); padding: clamp(1.5rem, 4vw, 2.75rem); border-top: 4px solid var(--green); }
.contact-form :focus-visible { outline-color: var(--black); box-shadow: 0 0 0 6px var(--white); }
.form-note { font-size: .9375rem; color: var(--slate); margin-bottom: 1.25rem; }
.field { margin-bottom: 1.25rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
label { display: block; font-weight: 600; color: var(--black); margin-bottom: .4rem; }
.optional { font-weight: 400; color: var(--slate); }
input, select, textarea { width: 100%; font: 400 1.0625rem/1.4 var(--sans); color: var(--black); background: var(--white); border: 1px solid var(--slate); border-radius: 2px; padding: .75rem .85rem; min-height: 3rem; }
textarea { resize: vertical; min-height: 9rem; }
input:hover, select:hover, textarea:hover { border-color: var(--black); }
[aria-invalid="true"] { border: 2px solid var(--black); border-left-width: 6px; }
.error { margin: .45rem 0 0; font-size: .9375rem; font-weight: 600; color: var(--black); padding-left: 1.6rem; position: relative; }
.error::before { content: "!"; position: absolute; left: 0; top: .1rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--black); color: var(--white); font-size: .8125rem; line-height: 1.15rem; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mtd-now { margin: clamp(2rem, 4vw, 3rem) 0 0; max-width: none; padding: 1rem 1.25rem; border: 1px solid var(--slate); border-left: 4px solid var(--green); color: var(--white); }
.form-privacy { font-size: .9375rem; color: var(--slate); }
.contact-form .btn-primary { background: var(--green-deep); color: var(--white); border-color: var(--green-deep); min-width: 12rem; }
.contact-form .btn-primary:hover { background: #055a2d; border-color: #055a2d; }
.contact-form .btn[disabled] { opacity: .6; cursor: progress; }
.form-status:empty { display: none; }
.form-status { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border: 2px solid var(--black); background: var(--white); color: var(--black); font-weight: 500; }
.form-status.ok { border-left-width: 8px; }
.contact-form .form-status h3 { font-size: 1.125rem; margin-bottom: .25rem; color: var(--black); }
.form-status p { margin: 0; }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 34rem) { .field-pair { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--black); color: var(--silver); border-top: 1px solid var(--graphite); padding-block: 3.5rem 2.5rem; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .7fr 1.4fr; gap: 2.5rem; }
.site-footer img { margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--mist); display: inline-block; padding: .65rem 0; min-width: 2.75rem; }
.site-footer li { margin-bottom: 0; }
.legal p { margin-bottom: .75rem; }
@media (max-width: 52rem) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Plain pages (privacy notice, form confirmation) */
.page { background: var(--white); padding-block: clamp(3rem, 7vw, 5rem); }
.page h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1.5rem; }
.page h2 { font-size: 1.625rem; margin: 2.25rem 0 .75rem; }
.page ul { padding-left: 1.25rem; }
.page li { margin-bottom: .4rem; }
.page .btn-back { background: var(--black); color: var(--white); margin-top: 1rem; }

@media print {
  .site-header, .hero-art, .nav-toggle, .contact-form { display: none; }
  .hero, .section-dark, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .section-dark h2, .section-dark h3, .timeline-date, .timeline-what strong, .hero-facts strong { color: #000 !important; }
}

/* Pages with a single header button keep it visible on small screens */
.site-header .site-nav.site-nav-plain { display: block; position: static; background: none; border: 0; max-height: none; overflow: visible; }
.site-header .site-nav.site-nav-plain ul { flex-direction: row; padding: 0; }
.site-header .site-nav.site-nav-plain .btn { margin: 0; width: auto; }

/* Small phones */
@media (max-width: 40rem) { .brand img { width: 156px; } .header-row { min-height: 4.25rem; } }
@media (max-width: 22rem) { .brand img { width: 136px; } .header-row { gap: .75rem; } }

/* Key dates restack on small screens: each area becomes a heading with its dates listed beneath */
@media (max-width: 46rem) {
  .table-scroll { overflow: visible; border: 0; background: none; }
  .dates { min-width: 0; display: block; }
  .dates thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .dates tbody, .dates tr, .dates th, .dates td { display: block; width: auto; }
  .dates tbody th { width: auto; border: 0; background: var(--black); color: var(--white); padding: .75rem 1rem; margin-top: 1.25rem; font-size: 1.125rem; }
  .dates tbody tr:first-child th { margin-top: 0; }
  .dates tr { background: var(--white); border-inline: 1px solid var(--silver); border-bottom: 1px solid var(--silver); }
  .dates td { border: 0; padding: 0 1rem .9rem; }
  .dates td.when { width: auto; padding: .9rem 1rem .2rem; }
}
.table-scroll:focus-visible { outline-offset: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Professional membership */
.credential { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--paper); border-left: 4px solid var(--green); }
.credential img { flex: none; width: 120px; height: auto; }
.credential p { margin: 0; }
.credential strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--black); }
@media (max-width: 30rem) { .credential { flex-direction: column; align-items: flex-start; } }

/* Green accents */
.hero-facts strong::before { content: ""; display: inline-block; width: .55rem; height: .55rem; margin-right: .6rem; background: var(--green); transform: rotate(45deg) translateY(-.15rem); }
.section-light a, .section-mist a, .page a:not(.btn) { text-decoration-color: var(--green-deep); text-decoration-thickness: 2px; }
.section-dark a:not(.btn), .site-footer a { text-decoration-color: var(--green); }
.ledger { border-top-color: var(--black); }
.faq details[open] summary::before, .faq details[open] summary::after { background: var(--green-deep); }
.section-head h2::after, .about-grid h2::after, #questions h2::after, .contact-intro h2::after { content: ""; display: block; width: 3.5rem; height: 3px; margin-top: 1.1rem; background: var(--green); }

/* Stained glass in the hero window */
.pane.p0 { fill: url(#glass-green); }
.pane.p1 { fill: url(#glass-silver); }
.motif .pound { font-family: var(--display); font-size: 42px; fill: var(--white); }
.motif .tag { font-family: var(--serif); font-size: 17px; letter-spacing: 2px; fill: var(--mist); }
.motif .bars rect { fill: var(--silver); }
.motif .rules path { stroke: var(--silver); stroke-width: 1.5; fill: none; }
.motif .graph path { stroke: var(--white); stroke-width: 2.5; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.motif .graph circle { fill: var(--white); }
.motif .cal rect { fill: var(--silver); opacity: .75; }
.motif .bars rect.hot, .motif .graph circle.hot, .motif .cal rect.hot { fill: var(--green); opacity: 1; }
.tracery { overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .glass { opacity: 0; animation: glass-in 1.2s ease-out 1.2s forwards; }
  @keyframes glass-in { to { opacity: 1; } }
}

/* Gloucester skyline band */
.skyline { background: radial-gradient(60% 120% at 50% 100%, rgba(0,171,78,.22), rgba(0,171,78,0) 70%) var(--black); line-height: 0; border-top: 1px solid var(--graphite); }
.skyline svg { width: 100%; max-width: 80rem; margin-inline: auto; aspect-ratio: 1200 / 260; height: auto; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
@media (max-width: 46rem) { .skyline svg { aspect-ratio: auto; height: 10.5rem; -webkit-mask-image: none; mask-image: none; } }
.skyline .hill { fill: #15181a; }
.skyline .win { fill: none; stroke-width: 1.2; }
.skyline .lit { fill: var(--green); stroke: none; }
.skyline .water { fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linecap: round; opacity: .55; }

/* Contact backdrop: the arch mark, large and faint */
.contact-section { position: relative; overflow: hidden; }
.contact-section::before { content: ""; position: absolute; left: -6rem; bottom: -8rem; width: 34rem; height: 34rem; background: url("../img/mark-on-dark.svg") no-repeat center / contain; opacity: .07; pointer-events: none; }
.contact-section .wrap { position: relative; }

/* AAT logo in the footer */
.aat-line { display: flex; align-items: center; gap: .9rem; }
.aat-chip { flex: none; background: var(--white); padding: .45rem .6rem; border-radius: 2px; }
.aat-chip img { width: 62px; height: auto; margin: 0; }
@media (max-width: 46rem) { .ledger-row { align-items: start; } .svc-icon { width: 2.75rem; height: 2.75rem; padding: .5rem; } }

html { -webkit-tap-highlight-color: rgba(0, 171, 78, .25); }
.brand { min-height: 2.75rem; display: flex; align-items: center; }
.kept-message { white-space: pre-wrap; border: 1px solid var(--silver); padding: 1rem; }
