/*! Atelier design system 1.0.0 (2026-11-07). Licensed to Design Systems Library members, single user. */

/* ---- base ---- */
/* Base: document defaults, zero-specificity resets inside .at-page, type roles and layout helpers.
   Instrument Serif sets the name and headings only (400 and italic, never bold);
   Funnel Sans sets everything you read in paragraphs and everything you press. */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--at-nav-h) + var(--at-space-5));
}

body {
  margin: 0;
  background: var(--at-bone);
  color: var(--at-body);
  font-family: var(--at-font-sans);
  font-size: var(--at-fs-body);
  font-weight: var(--at-weight-regular);
  line-height: var(--at-lh-body);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Phones: interface text inside paragraphs (meta, hints, notes under actions) grows to 16px so no
   paragraph on a small screen is set below 16px. Labels in spans and badges may stay smaller. */
@media (max-width: 499px) {
  :root {
    --at-fs-ui: 1rem;
    --at-fs-meta: 1rem;
  }
}

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

.at-page {
  display: flow-root;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--at-bone);
}

:where(.at-page) :where(*, *::before, *::after) {
  box-sizing: border-box;
}

:where(.at-page) :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd, pre, fieldset, legend) {
  margin: 0;
}

:where(.at-page) :where(fieldset) {
  min-width: 0;
  padding: 0;
  border: 0;
}

:where(.at-page) :where(h1, h2, h3) {
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-weight: var(--at-weight-regular);
  line-height: var(--at-lh-heading);
  text-wrap: balance;
}

:where(.at-page) :where(h4, h5, h6) {
  color: var(--at-ink);
  font-family: var(--at-font-sans);
  font-size: var(--at-fs-sub);
  font-weight: var(--at-weight-semibold);
  line-height: var(--at-lh-ui);
  text-wrap: balance;
}

:where(.at-page) :where(h1) {
  font-size: var(--at-fs-display);
  line-height: var(--at-lh-display);
  letter-spacing: var(--at-track-display);
}

:where(.at-page) :where(h2) {
  font-size: var(--at-fs-title);
  line-height: var(--at-lh-title);
  letter-spacing: var(--at-track-title);
}

:where(.at-page) :where(h3) {
  font-size: var(--at-fs-card);
}

/* Instrument Serif ships at 400 only: never let a browser fake a bold */
:where(.at-page) :where(h1, h2, h3) :where(strong, b) {
  font-weight: var(--at-weight-regular);
}

:where(.at-page) :where(h1, h2, h3) :where(em, i) {
  font-style: italic;
}

:where(.at-page) :where(p, li, dd, figcaption) {
  text-wrap: pretty;
}

:where(.at-page) :where(a) {
  color: var(--at-link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--at-dur-fast) var(--at-ease), text-decoration-color var(--at-dur-fast) var(--at-ease);
}

:where(.at-page) :where(a:hover) {
  color: var(--at-ink);
  text-decoration-thickness: 2px;
}

:where(.at-page) :where(:focus-visible) {
  outline: 2px solid var(--at-focus);
  outline-offset: 3px;
}

:where(.at-page) :where(img, svg, video, canvas) {
  display: block;
  max-width: 100%;
}

:where(.at-page) :where(a svg, button svg, span svg, li svg, p svg, label svg, summary svg) {
  display: inline-block;
  flex: none;
  vertical-align: middle;
}

:where(.at-page) :where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
}

:where(.at-page) :where(strong, b) {
  font-weight: var(--at-weight-semibold);
}

:where(.at-page) :where(code, kbd, samp) {
  font-family: var(--at-font-mono);
  font-size: 0.9em;
}

:where(.at-page) :where(hr) {
  height: 0;
  margin: 0;
  border: 0;
  border-block-start: var(--at-line-hair) solid var(--at-line);
}

:where(.at-page) :where(time, data) {
  font-variant-numeric: tabular-nums;
}

::selection {
  background: var(--at-accent-soft);
  color: var(--at-ink);
}

/* Page container and section rhythm */
.at-wrap {
  width: min(var(--at-page), 100% - 2 * var(--at-gutter));
  margin-inline: auto;
}

.at-wrap--text {
  width: min(var(--at-measure), 100% - 2 * var(--at-gutter));
}

.at-section {
  padding-block: var(--at-section);
}

.at-section + .at-section {
  padding-block-start: 0;
}

.at-section--tint {
  background: var(--at-bone-2);
}

.at-section--tint + .at-section,
.at-section + .at-section--tint,
.at-section--tint + .at-section--tint {
  padding-block-start: var(--at-section);
}

.at-section--tight {
  padding-block: calc(var(--at-section) * 0.5);
}

.at-section--ruled {
  border-block-start: var(--at-line-hair) solid var(--at-line);
}

.at-section + .at-section--ruled {
  padding-block-start: var(--at-section);
}

/* Two-column layouts used inside sections: a narrow start column and a wide end column */
.at-split {
  display: grid;
  gap: var(--at-space-7) var(--at-space-8);
}

.at-split > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .at-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .at-split--even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .at-split--reverse {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .at-split--aside {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  }

  .at-split__sticky {
    position: sticky;
    inset-block-start: calc(var(--at-nav-h) + var(--at-space-6));
    align-self: start;
  }
}

/* Inverse panel: the one dark moment on a page (booking, the featured plan, a closing call).
   Off-black in light, raised warm charcoal in dark. Use the .at-btn--inverse buttons inside it. */
.at-inverse {
  border-radius: var(--at-radius-card);
  background: var(--at-inverse);
  color: var(--at-inverse-ink);
}

.at-inverse--pad {
  display: inline-block;
  padding: var(--at-space-6);
}

/* Type roles */
.at-display {
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: var(--at-fs-display);
  font-weight: var(--at-weight-regular);
  line-height: var(--at-lh-display);
  letter-spacing: var(--at-track-display);
  text-wrap: balance;
}

.at-title {
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: var(--at-fs-title);
  font-weight: var(--at-weight-regular);
  line-height: var(--at-lh-title);
  letter-spacing: var(--at-track-title);
  text-wrap: balance;
}

.at-headline {
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: var(--at-fs-headline);
  font-weight: var(--at-weight-regular);
  line-height: var(--at-lh-heading);
  text-wrap: balance;
}

.at-lede {
  color: var(--at-body);
  font-size: var(--at-fs-lede);
  line-height: 1.45;
  text-wrap: pretty;
}

.at-meta {
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-medium);
  line-height: var(--at-lh-ui);
}

.at-caption {
  color: var(--at-muted);
  font-size: var(--at-fs-small);
  line-height: var(--at-lh-ui);
}

.at-serif {
  font-family: var(--at-font-display);
  font-weight: var(--at-weight-regular);
}

.at-muted {
  color: var(--at-muted);
}

.at-num {
  font-variant-numeric: tabular-nums lining-nums;
}

/* Keep a compound ("30-minute", "UTC+0") on one line */
.at-nowrap {
  white-space: nowrap;
}

/* Text link with a trailing arrow */
.at-link {
  display: inline-flex;
  align-items: center;
  gap: var(--at-space-2);
  color: var(--at-ink);
  font-family: var(--at-font-sans);
  font-size: var(--at-fs-ui);
  font-weight: var(--at-weight-medium);
  text-decoration: underline;
  text-decoration-color: var(--at-line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.at-link:hover {
  color: var(--at-link);
  text-decoration-color: currentColor;
}

.at-link svg {
  transition: transform var(--at-dur-fast) var(--at-ease);
}

.at-link:hover svg {
  transform: translate(2px, -2px);
}

[dir="rtl"] .at-link svg {
  transform: scaleX(-1);
}

[dir="rtl"] .at-link:hover svg {
  transform: scaleX(-1) translate(2px, -2px);
}

/* Vertical rhythm */
.at-stack > * + * {
  margin-block-start: var(--at-space-4);
}

.at-stack--tight > * + * {
  margin-block-start: var(--at-space-2);
}

.at-stack--loose > * + * {
  margin-block-start: var(--at-space-6);
}

/* Visually hidden, still read aloud */
.at-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.at-skip {
  position: absolute;
  inset-block-start: var(--at-space-3);
  inset-inline-start: var(--at-space-3);
  z-index: 100;
  padding: var(--at-space-2) var(--at-space-5);
  border-radius: var(--at-radius-pill);
  background: var(--at-ink);
  color: var(--at-bone);
  font-size: var(--at-fs-ui);
  font-weight: var(--at-weight-medium);
  text-decoration: none;
  transform: translateY(-180%);
}

.at-skip:focus {
  transform: none;
  color: var(--at-bone);
}

/* Specimen layout for the kitchen sink (demo/components.html) */
.at-specimen {
  padding-block: var(--at-space-7);
  border-block-start: var(--at-line-hair) solid var(--at-line);
}

/* Small components sit beside their heading on wide screens, so the gallery stays short */
@media (min-width: 1000px) {
  .at-specimen--side {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: var(--at-space-8);
    align-items: start;
  }

  .at-specimen--side .at-specimen__head {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--at-space-3);
    margin-block-end: 0;
  }
}

.at-specimen__head {
  display: grid;
  gap: var(--at-space-2);
  margin-block-end: var(--at-space-6);
}

@media (min-width: 900px) {
  .at-specimen__head {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: var(--at-space-8);
    align-items: baseline;
  }
}

.at-specimen__title {
  font-size: var(--at-fs-headline);
}

.at-specimen__note {
  max-width: 44rem;
  color: var(--at-muted);
}

.at-specimen__body > * + * {
  margin-block-start: var(--at-space-6);
}

.at-specimen__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--at-space-4) var(--at-space-5);
}

.at-specimen__grid {
  display: grid;
  gap: var(--at-space-5);
}

@media (min-width: 760px) {
  .at-specimen__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .at-specimen__grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.at-specimen__label {
  display: block;
  margin-block-end: var(--at-space-2);
  color: var(--at-muted);
  font-size: var(--at-fs-small);
  font-weight: var(--at-weight-medium);
}

.at-specimen__frame {
  overflow: hidden;
  border: var(--at-line-hair) solid var(--at-line);
  border-radius: var(--at-radius-card);
}

.at-specimen__switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--at-space-2) var(--at-space-3);
}

.at-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: -2px;
}

.at-swatch--moss {
  background: var(--at-swatch-moss);
}

.at-swatch--rust {
  background: var(--at-swatch-rust);
}

.at-swatch--ocean {
  background: var(--at-swatch-ocean);
}

@media (prefers-reduced-motion: reduce) {
  :where(.at-page) :where(a),
  .at-link svg {
    transition: none;
  }
}

/* ---- buttons ---- */
/* Buttons: pills, always. Atelier is the one pill-button system in the library.
   One moss primary per view; the round knob is reserved for the main booking or contact call. */

.at-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: var(--at-line-hair) solid transparent;
  border-radius: var(--at-radius-btn);
  background: transparent;
  color: var(--at-ink);
  font-family: var(--at-font-sans);
  font-size: var(--at-fs-ui);
  font-weight: var(--at-weight-medium);
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--at-dur-fast) var(--at-ease),
    border-color var(--at-dur-fast) var(--at-ease),
    color var(--at-dur-fast) var(--at-ease),
    transform var(--at-dur-fast) var(--at-ease);
}

.at-btn:hover {
  text-decoration: none;
}

.at-btn:focus-visible {
  outline: 2px solid var(--at-focus);
  outline-offset: 3px;
}

.at-btn:active {
  transform: translateY(1px);
}

.at-btn--primary {
  background: var(--at-btn);
  color: var(--at-btn-ink);
}

.at-btn--primary:hover {
  background: var(--at-btn-hover);
  color: var(--at-btn-ink);
}

.at-btn--secondary {
  border-color: var(--at-ink);
  color: var(--at-ink);
}

.at-btn--secondary:hover {
  background: var(--at-ink);
  color: var(--at-bone);
}

.at-btn--ghost {
  color: var(--at-ink);
}

.at-btn--ghost:hover {
  background: var(--at-bone-2);
  color: var(--at-ink);
}

.at-btn--inverse {
  background: var(--at-inverse-btn);
  color: var(--at-inverse-btn-ink);
}

.at-btn--inverse:hover {
  background: var(--at-inverse-btn-hover);
  color: var(--at-inverse-btn-ink);
}

.at-btn--inverse-outline {
  border-color: var(--at-inverse-muted);
  color: var(--at-inverse-ink);
}

.at-btn--inverse-outline:hover {
  border-color: var(--at-inverse-ink);
  background: var(--at-inverse-ink);
  color: var(--at-inverse);
}

.at-btn--danger {
  border-color: var(--at-danger);
  color: var(--at-danger);
}

.at-btn--danger:hover {
  background: var(--at-danger);
  color: var(--at-surface);
}

.at-btn--sm {
  min-height: 38px;
  padding: 0 16px;
  gap: 8px;
  font-size: var(--at-fs-meta);
}

.at-btn--lg {
  min-height: 58px;
  padding: 0 30px;
  font-size: 1.0625rem;
}

.at-btn--block {
  display: flex;
  width: 100%;
}

.at-btn--icon {
  width: 48px;
  padding: 0;
}

.at-btn--icon.at-btn--sm {
  width: 38px;
}

/* The knob: a round end cap that holds the arrow. The pill tightens its end padding around it. */
.at-btn:has(.at-btn__knob) {
  padding-inline-end: 7px;
}

.at-btn--lg:has(.at-btn__knob) {
  padding-inline-end: 9px;
}

.at-btn__knob {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-inline-start: 4px;
  border-radius: 50%;
  background: var(--at-btn-ink);
  color: var(--at-btn);
  transition: transform var(--at-dur) var(--at-ease);
}

.at-btn--lg .at-btn__knob {
  width: 40px;
  height: 40px;
}

.at-btn--inverse .at-btn__knob {
  background: var(--at-inverse-btn-ink);
  color: var(--at-inverse-btn);
}

.at-btn__knob svg {
  transition: transform var(--at-dur) var(--at-ease);
}

.at-btn:hover .at-btn__knob svg {
  transform: rotate(45deg);
}

[dir="rtl"] .at-btn__knob svg {
  transform: scaleX(-1);
}

[dir="rtl"] .at-btn:hover .at-btn__knob svg {
  transform: scaleX(-1) rotate(45deg);
}

.at-btn[aria-disabled="true"],
.at-btn:disabled {
  border-color: var(--at-line);
  background: var(--at-bone-2);
  color: var(--at-muted);
  cursor: not-allowed;
  pointer-events: none;
}

.at-btn[aria-busy="true"] {
  cursor: progress;
  pointer-events: none;
}

.at-btn__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: at-spin 800ms linear infinite;
}

@keyframes at-spin {
  to {
    transform: rotate(1turn);
  }
}

@media (pointer: coarse) {
  .at-btn--sm {
    min-height: 44px;
  }

  .at-btn--icon.at-btn--sm {
    width: 44px;
  }
}

/* Action group: one primary and at most one secondary */
.at-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--at-space-3);
}

.at-actions--center {
  justify-content: center;
}

.at-actions__note {
  flex-basis: 100%;
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
}

.at-actions--center .at-actions__note {
  text-align: center;
}

@media (max-width: 479px) {
  .at-actions--stack-sm {
    flex-direction: column;
    align-items: stretch;
  }

  .at-actions--stack-sm .at-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-btn,
  .at-btn__knob,
  .at-btn__knob svg {
    transition: none;
  }

  .at-btn:active {
    transform: none;
  }

  .at-btn:hover .at-btn__knob svg {
    transform: none;
  }

  .at-btn__spinner {
    animation-duration: 2400ms;
  }
}

/* ---- badges ---- */
/* Badges: small static pills. Tags: pill chips that link or toggle. */

.at-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 2px 11px;
  border: var(--at-line-hair) solid transparent;
  border-radius: var(--at-radius-tag);
  background: var(--at-bone-2);
  color: var(--at-ink);
  font-family: var(--at-font-sans);
  font-size: var(--at-fs-small);
  font-weight: var(--at-weight-medium);
  line-height: 1.2;
  white-space: nowrap;
}

.at-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.at-badge--accent {
  background: var(--at-accent-soft);
  color: var(--at-ink);
}

.at-badge--ok {
  background: var(--at-ok-soft);
  color: var(--at-ok);
}

.at-badge--warn {
  background: var(--at-warn-soft);
  color: var(--at-warn);
}

.at-badge--danger {
  background: var(--at-danger-soft);
  color: var(--at-danger);
}

.at-badge--outline {
  border-color: var(--at-line-strong);
  background: transparent;
  color: var(--at-body);
}

.at-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--at-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 16px;
  border: var(--at-line-hair) solid var(--at-line-strong);
  border-radius: var(--at-radius-tag);
  background: transparent;
  color: var(--at-ink);
  font-family: var(--at-font-sans);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-medium);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--at-dur-fast) var(--at-ease), border-color var(--at-dur-fast) var(--at-ease),
    color var(--at-dur-fast) var(--at-ease);
}

.at-tag:hover {
  border-color: var(--at-ink);
  color: var(--at-ink);
  text-decoration: none;
}

.at-tag[aria-pressed="true"],
.at-tag[aria-current] {
  border-color: var(--at-ink);
  background: var(--at-ink);
  color: var(--at-bone);
}

.at-tag--static {
  cursor: default;
}

.at-tag--static:hover {
  border-color: var(--at-line-strong);
}

@media (pointer: coarse) {
  .at-tag {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-tag {
    transition: none;
  }
}

/* ---- avatar ---- */
/* Avatar: initials in Instrument Serif italic on a round chip. No photos. */

.at-avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--at-accent-soft);
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: var(--at-weight-regular);
  line-height: 1;
  letter-spacing: 0.01em;
  user-select: none;
}

.at-avatar--sm {
  width: 32px;
  height: 32px;
  font-size: 0.9375rem;
}

.at-avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 1.75rem;
}

.at-avatar--xl {
  width: 112px;
  height: 112px;
  font-size: 3rem;
}

.at-avatar--ink {
  background: var(--at-inverse);
  color: var(--at-inverse-ink);
}

.at-avatar--line {
  border: var(--at-line-hair) solid var(--at-line-strong);
  background: transparent;
}

.at-avatar__mark {
  width: 64%;
  height: 64%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}

.at-avatar__mark circle {
  fill: var(--at-accent);
  stroke: none;
}

.at-avatars {
  display: inline-flex;
  align-items: center;
}

.at-avatars .at-avatar {
  box-shadow: 0 0 0 3px var(--at-bone);
}

.at-avatars .at-avatar + .at-avatar {
  margin-inline-start: -8px;
}

/* ---- availability-badge ---- */
/* Availability badge: one pill, one live dot, one sentence with a real month. */

.at-avail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 4px 16px 4px 13px;
  border: var(--at-line-hair) solid var(--at-line);
  border-radius: var(--at-radius-pill);
  background: var(--at-surface);
  color: var(--at-ink);
  font-family: var(--at-font-sans);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-medium);
  line-height: 1.2;
  white-space: nowrap;
}

.at-avail__dot {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--at-live);
}

.at-avail__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--at-live-ring);
  animation: at-pulse var(--at-dur-pulse) var(--at-ease) infinite;
}

@keyframes at-pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(3.2);
  }
}

.at-avail__detail {
  padding-inline-start: 10px;
  border-inline-start: var(--at-line-hair) solid var(--at-line-strong);
  color: var(--at-muted);
  font-weight: var(--at-weight-regular);
}

.at-avail--limited .at-avail__dot {
  background: var(--at-warn);
}

.at-avail--limited .at-avail__dot::after {
  background: var(--at-warn-soft);
}

.at-avail--booked .at-avail__dot {
  background: var(--at-control);
}

.at-avail--booked .at-avail__dot::after {
  display: none;
}

.at-avail--booked {
  background: transparent;
  color: var(--at-muted);
}

.at-avail--sm {
  min-height: 32px;
  padding: 2px 13px 2px 11px;
  gap: 8px;
  font-size: var(--at-fs-small);
}

.at-avail--sm .at-avail__dot {
  width: 8px;
  height: 8px;
}

.at-avail--lg {
  min-height: 46px;
  padding: 6px 20px 6px 16px;
  gap: 12px;
  font-size: var(--at-fs-ui);
}

.at-avail--lg .at-avail__dot {
  width: 10px;
  height: 10px;
}

.at-avail--inverse {
  border-color: var(--at-inverse-line);
  background: transparent;
  color: var(--at-inverse-ink);
}

.at-avail--inverse .at-avail__dot {
  background: var(--at-inverse-btn);
}

@media (prefers-reduced-motion: reduce) {
  .at-avail__dot::after {
    animation: none;
    opacity: 0.6;
    transform: scale(1.9);
  }
}

/* ---- nav ---- */
/* Nav: the name, the availability badge, a pill rail of links, the theme toggle and one booking pill. */

.at-nav {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  border-block-end: var(--at-line-hair) solid transparent;
  background: var(--at-bone);
  transition: border-color var(--at-dur) var(--at-ease);
}

.at-nav.is-scrolled {
  border-block-end-color: var(--at-line);
}

.at-nav--static {
  position: relative;
  z-index: 1;
}

.at-nav__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--at-space-3) var(--at-space-4);
  min-height: var(--at-nav-h);
}

.at-nav__brand {
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.at-nav__brand em {
  color: var(--at-accent);
}

.at-nav__brand:hover {
  color: var(--at-ink);
  text-decoration: none;
}

.at-nav__menu {
  margin-inline-start: auto;
}

.at-nav__links {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 4px;
  border: var(--at-line-hair) solid var(--at-line);
  border-radius: var(--at-radius-pill);
  list-style: none;
}

.at-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--at-radius-pill);
  color: var(--at-ink);
  font-size: var(--at-fs-ui);
  font-weight: var(--at-weight-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--at-dur-fast) var(--at-ease);
}

.at-nav__link:hover {
  background: var(--at-bone-2);
  color: var(--at-ink);
  text-decoration: none;
}

.at-nav__link[aria-current="page"] {
  background: var(--at-accent-soft);
  color: var(--at-ink);
}

.at-nav__extra {
  display: none;
}

.at-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--at-space-2);
}

.at-nav__toggle {
  display: none;
}

.at-nav__bars,
.at-nav__bars::before {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--at-dur) var(--at-ease);
}

.at-nav__bars {
  position: relative;
  transform: translateY(-3.5px);
}

.at-nav__bars::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  transform: translateY(7px);
}

.at-nav.is-open .at-nav__bars {
  transform: rotate(45deg);
}

.at-nav.is-open .at-nav__bars::before {
  transform: rotate(-90deg);
}

/* Theme toggle: the moon shows in light (switch to dark), the sun in dark */
.at-theme-toggle__sun {
  display: none;
}

:root[data-theme="dark"] .at-theme-toggle__sun {
  display: inline-flex;
}

:root[data-theme="dark"] .at-theme-toggle__moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .at-theme-toggle__sun {
    display: inline-flex;
  }

  :root:not([data-theme="light"]) .at-theme-toggle__moon {
    display: none;
  }
}

@media (max-width: 1099px) {
  .at-nav__avail {
    display: none;
  }
}

@media (max-width: 899px) {
  .at-nav__menu {
    order: 3;
    flex-basis: 100%;
    margin-inline-start: 0;
    padding-block-end: var(--at-space-3);
  }

  .at-nav__links {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .at-nav__actions {
    margin-inline-start: auto;
  }

  .at-nav.is-ready .at-nav__menu {
    display: none;
  }

  .at-nav.is-ready .at-nav__toggle {
    display: inline-flex;
  }

  .at-nav.is-ready.is-open .at-nav__menu {
    position: absolute;
    inset-block-start: 100%;
    inset-inline: calc(var(--at-gutter) * -1);
    display: block;
    max-height: calc(100vh - var(--at-nav-h));
    padding: var(--at-space-3) var(--at-gutter) var(--at-space-7);
    overflow-y: auto;
    border-block-end: var(--at-line-hair) solid var(--at-line);
    background: var(--at-bone);
    box-shadow: var(--at-shadow-float);
  }

  .at-nav.is-open .at-nav__links {
    flex-direction: column;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .at-nav.is-open .at-nav__link {
    width: 100%;
    min-height: 64px;
    padding: 0;
    border-block-end: var(--at-line-hair) solid var(--at-line);
    border-radius: 0;
    font-family: var(--at-font-display);
    font-size: 2.5rem;
    font-weight: var(--at-weight-regular);
    letter-spacing: -0.01em;
  }

  .at-nav.is-open .at-nav__link:hover {
    background: transparent;
  }

  .at-nav.is-open .at-nav__link[aria-current="page"] {
    background: transparent;
    color: var(--at-accent);
    font-style: italic;
  }

  .at-nav.is-open .at-nav__extra {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--at-space-4);
    margin-block-start: var(--at-space-6);
  }
}

@media (max-width: 379px) {
  .at-nav__cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-nav,
  .at-nav__link,
  .at-nav__bars,
  .at-nav__bars::before {
    transition: none;
  }
}

/* ---- announcement-bar ---- */
/* Announcement bar: one line above the nav. */

.at-announce {
  border-block-end: var(--at-line-hair) solid var(--at-line);
  background: var(--at-bone-2);
  color: var(--at-body);
}

.at-announce--accent {
  background: var(--at-accent-soft);
}

.at-announce[hidden] {
  display: none;
}

.at-announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--at-space-3);
  min-height: 48px;
  padding-block: var(--at-space-2);
}

.at-announce__text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  font-size: var(--at-fs-ui);
  line-height: var(--at-lh-ui);
  text-align: center;
}

.at-announce__text a {
  color: var(--at-ink);
  font-weight: var(--at-weight-medium);
}

.at-announce__close {
  flex: none;
  margin-inline-start: auto;
}

.at-announce__inner:has(.at-announce__close) .at-announce__text {
  margin-inline-start: auto;
}

/* ---- breadcrumbs ---- */
/* Breadcrumbs: Home / Work / Project */

.at-crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-medium);
}

.at-crumbs__item + .at-crumbs__item::before {
  content: "/";
  margin-inline: 10px;
  color: var(--at-line-strong);
}

.at-crumbs__item a {
  color: var(--at-muted);
  text-decoration: none;
}

.at-crumbs__item a:hover {
  color: var(--at-ink);
  text-decoration: underline;
}

.at-crumbs__item [aria-current] {
  color: var(--at-ink);
}

/* ---- sidebar-nav ---- */
/* Sidebar nav: pill links with counts. */

.at-sidenav__title {
  margin-block-end: var(--at-space-3);
  color: var(--at-muted);
  font-family: var(--at-font-sans);
  font-size: var(--at-fs-small);
  font-weight: var(--at-weight-medium);
  letter-spacing: 0.01em;
}

.at-sidenav__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-sidenav__link {
  display: flex;
  align-items: center;
  gap: var(--at-space-3);
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--at-radius-pill);
  color: var(--at-ink);
  font-size: var(--at-fs-ui);
  font-weight: var(--at-weight-medium);
  text-decoration: none;
  white-space: nowrap;
}

.at-sidenav__link:hover {
  background: var(--at-bone-2);
  color: var(--at-ink);
  text-decoration: none;
}

.at-sidenav__link[aria-current] {
  background: var(--at-accent-soft);
}

.at-sidenav__count {
  margin-inline-start: auto;
  color: var(--at-muted);
  font-size: var(--at-fs-small);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 900px) {
  .at-sidenav--sticky {
    position: sticky;
    inset-block-start: calc(var(--at-nav-h) + var(--at-space-6));
    align-self: start;
  }
}

@media (max-width: 899px) {
  .at-sidenav__list {
    display: flex;
    gap: var(--at-space-2);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .at-sidenav__link {
    border: var(--at-line-hair) solid var(--at-line);
  }

  .at-sidenav__link[aria-current] {
    border-color: transparent;
  }
}

/* ---- name-masthead ---- */
/* Name masthead: the name fills the width. Its size comes from the container, not the viewport:
   font-size = container width / the name's width in em (--at-name-fit), capped at --at-fs-name-max. */

.at-masthead {
  padding-block: clamp(1.5rem, 0.5rem + 3.5vw, 4rem) var(--at-space-5);
}

.at-masthead__inner {
  container-type: inline-size;
}

.at-masthead__name {
  margin-inline-start: -0.035em;
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: min(var(--at-fs-name-max), calc(100cqi / var(--at-name-fit)));
  font-weight: var(--at-weight-regular);
  line-height: var(--at-lh-name);
  letter-spacing: var(--at-track-name);
  white-space: nowrap;
  text-wrap: nowrap;
}

.at-masthead__name em {
  color: var(--at-accent);
  font-style: italic;
}

.at-masthead__line {
  display: inline-block;
  animation: at-rise var(--at-dur-slow) var(--at-ease) both;
}

.at-masthead__line + .at-masthead__line {
  animation-delay: 110ms;
}

@keyframes at-rise {
  from {
    opacity: 0;
    transform: translateY(0.14em);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.at-masthead--short {
  --at-name-fit: 3.4;
}

.at-masthead--long {
  --at-name-fit: 5.2;
}

.at-masthead--xlong {
  --at-name-fit: 6.4;
}

.at-masthead--compact .at-masthead__name {
  font-size: min(10rem, calc(100cqi / var(--at-name-fit)));
}

.at-masthead--compact {
  padding-block: 0;
}

.at-masthead__foot {
  display: grid;
  gap: var(--at-space-6);
  margin-block-start: clamp(1.5rem, 0.75rem + 2.5vw, 3rem);
  padding-block-start: var(--at-space-5);
  border-block-start: var(--at-line-hair) solid var(--at-line);
}

.at-masthead__role {
  max-width: 30ch;
  color: var(--at-ink);
  font-size: var(--at-fs-lede);
  line-height: 1.4;
  text-wrap: pretty;
}

.at-masthead__aside {
  display: grid;
  gap: var(--at-space-5);
  justify-items: start;
}

@container (min-width: 900px) {
  .at-masthead__foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .at-masthead__aside {
    justify-items: end;
  }
}

/* Phones: one word per line, the italic word set to the end, both as large as the width allows */
@container (max-width: 639px) {
  .at-masthead__name {
    margin-inline-start: -0.03em;
    font-size: calc(100cqi / var(--at-name-fit-stack));
    line-height: 0.86;
  }

  .at-masthead__line {
    display: block;
  }

  .at-masthead__line + .at-masthead__line {
    text-align: end;
  }

  .at-masthead--compact .at-masthead__name {
    font-size: min(7rem, calc(100cqi / var(--at-name-fit-stack)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-masthead__line {
    animation: none;
  }
}

/* ---- hero ---- */
/* Hero: the page title, in the masthead's language. */

.at-hero {
  padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) var(--at-space-5);
}

.at-hero__crumbs {
  margin-block-end: var(--at-space-6);
}

.at-hero__title {
  margin-inline-start: -0.03em;
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: var(--at-fs-display);
  font-weight: var(--at-weight-regular);
  line-height: var(--at-lh-display);
  letter-spacing: var(--at-track-display);
  text-wrap: balance;
}

.at-hero__title em {
  color: var(--at-accent);
  font-style: italic;
}

.at-hero--compact .at-hero__title {
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 6rem);
  line-height: 0.98;
}

.at-hero__foot {
  display: grid;
  gap: var(--at-space-6);
  margin-block-start: clamp(1.5rem, 0.75rem + 2.5vw, 3rem);
  padding-block-start: var(--at-space-5);
  border-block-start: var(--at-line-hair) solid var(--at-line);
}

@media (min-width: 900px) {
  .at-hero__foot {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--at-space-8);
    align-items: start;
  }
}

.at-hero__lede {
  max-width: 40ch;
  color: var(--at-ink);
  font-size: var(--at-fs-lede);
  line-height: 1.45;
}

.at-hero__aside {
  display: grid;
  gap: var(--at-space-4);
  justify-items: start;
}

.at-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--at-space-4);
  margin: 0;
}

.at-hero__facts dt {
  color: var(--at-muted);
  font-size: var(--at-fs-small);
  font-weight: var(--at-weight-medium);
}

.at-hero__facts dd {
  margin: 4px 0 0;
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: 1.75rem;
  line-height: 1.1;
  font-variant-numeric: lining-nums;
}

.at-hero--center {
  text-align: center;
}

.at-hero--center .at-hero__foot {
  justify-items: center;
  grid-template-columns: none;
}

.at-hero--center .at-hero__lede {
  margin-inline: auto;
}

/* ---- section-header ---- */
/* Section header: a wide title and a narrow note. */

.at-head {
  display: grid;
  gap: var(--at-space-5);
  margin-block-end: clamp(2rem, 1.25rem + 3vw, 4rem);
}

@media (min-width: 900px) {
  .at-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: var(--at-space-8);
    align-items: end;
  }

  .at-head--stack {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--at-space-5);
    align-content: start;
    align-self: start;
  }
}

.at-head__title {
  max-width: 18ch;
  font-size: var(--at-fs-title);
  line-height: var(--at-lh-title);
  letter-spacing: var(--at-track-title);
}

.at-head__count {
  display: inline-flex;
  align-items: center;
  min-height: 1.6em;
  margin-inline-start: 0.35em;
  padding: 0 0.6em;
  border: var(--at-line-hair) solid var(--at-line-strong);
  border-radius: var(--at-radius-pill);
  color: var(--at-muted);
  font-family: var(--at-font-sans);
  font-size: max(0.75rem, 0.22em);
  font-style: normal;
  font-weight: var(--at-weight-medium);
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  vertical-align: 1.9em;
}

.at-head__side {
  display: grid;
  gap: var(--at-space-4);
  justify-items: start;
}

.at-head__intro {
  max-width: 42ch;
  color: var(--at-body);
}

.at-head--stack .at-head__intro {
  max-width: 52ch;
  font-size: var(--at-fs-lede);
  line-height: 1.45;
}

.at-head--center {
  justify-items: center;
  text-align: center;
}

.at-head--center .at-head__title {
  max-width: 22ch;
}

.at-head--center .at-head__side {
  justify-items: center;
}

/* ---- composition ---- */
/* Composition: coded drawings of product screens, drawn from tokens so they follow theme and accent. */

.at-comp {
  display: grid;
  gap: var(--at-space-3);
  margin: 0;
}

.at-comp__stage {
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 0.25rem + 2.4vw, 2.5rem);
  overflow: hidden;
  border-radius: var(--at-radius-card);
  background: var(--at-bone-2);
}

.at-comp--soft .at-comp__stage {
  background: var(--at-accent-soft);
}

.at-comp--inverse .at-comp__stage {
  background: var(--at-inverse);
}

.at-comp--bare .at-comp__stage {
  padding: 0;
  background: transparent;
}

.at-comp--wide .at-comp__stage {
  aspect-ratio: 21 / 9;
}

.at-comp__stage > img {
  width: 100%;
  height: auto;
  border-radius: var(--at-radius-inner);
}

.at-comp__svg {
  width: 100%;
  height: auto;
  max-height: 100%;
}

.at-comp__caption {
  max-width: 60ch;
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
  line-height: var(--at-lh-ui);
}

/* Shapes */
.at-comp__win { fill: var(--at-surface); stroke: var(--at-line); stroke-width: 1; }
.at-comp__bar { fill: var(--at-bone-2); }
.at-comp__card { fill: var(--at-bone); stroke: var(--at-line); stroke-width: 1; }
.at-comp__head { fill: var(--at-ink); }
.at-comp__text { fill: var(--at-line-strong); }
.at-comp__dot { fill: var(--at-line-strong); }
.at-comp__rule { fill: none; stroke: var(--at-line); stroke-width: 1.25; }
.at-comp__soft { fill: var(--at-accent-soft); }
.at-comp__accent { fill: var(--at-accent); }
.at-comp__onaccent { fill: var(--at-accent-ink); opacity: 0.85; }
.at-comp__onaccentdot { fill: var(--at-accent-ink); }
.at-comp__accentline { fill: none; stroke: var(--at-accent); stroke-width: 2; }
.at-comp__ctrl { fill: none; stroke: var(--at-control); stroke-width: 1.5; }
.at-comp__ctrlrect { fill: none; stroke: var(--at-control); stroke-width: 1.25; }
.at-comp__tick { fill: none; stroke: var(--at-accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.at-comp__tickink { fill: none; stroke: var(--at-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.at-comp__cursor { fill: var(--at-ink); stroke: var(--at-surface); stroke-width: 1.5; stroke-linejoin: round; }
.at-comp__well { fill: var(--at-bone-2); }
.at-comp__live { fill: var(--at-live); }
.at-comp__ink { fill: var(--at-ink); }
.at-comp__ring { fill: none; stroke: var(--at-accent); stroke-width: 1.5; opacity: 0.45; }
.at-comp__ringline { fill: none; stroke: var(--at-line-strong); stroke-width: 1; }
.at-comp__floatline { fill: none; stroke: var(--at-line-strong); stroke-width: 1; }
.at-comp__fieldshape { fill: var(--at-accent-soft); stroke: var(--at-accent); stroke-width: 1.5; }

.at-comp__glyph {
  fill: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: 112px;
  font-style: italic;
}

.at-comp--inverse .at-comp__caption {
  color: var(--at-muted);
}

/* ---- project-index ---- */
/* Project index: a ruled table that opens into previews. The signature way Atelier shows work. */

.at-index__table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.at-index__table thead th {
  padding: 0 var(--at-space-4) var(--at-space-3) 0;
  border-block-end: var(--at-line-hair) solid var(--at-ink);
  color: var(--at-muted);
  font-family: var(--at-font-sans);
  font-size: var(--at-fs-small);
  font-weight: var(--at-weight-medium);
  line-height: var(--at-lh-ui);
  text-align: start;
  white-space: nowrap;
}

.at-index__table thead th:first-child {
  width: 9%;
}

.at-index__table thead th:last-child {
  width: 56px;
  padding-inline-end: 0;
}

.at-index__row {
  position: relative;
}

.at-index__row > * {
  padding: var(--at-space-5) var(--at-space-4) var(--at-space-5) 0;
  border-block-end: var(--at-line-hair) solid var(--at-line);
  text-align: start;
  vertical-align: middle;
}

.at-index__group.is-open .at-index__row > * {
  border-block-end-color: transparent;
}

.at-index__year {
  color: var(--at-muted);
  font-size: var(--at-fs-ui);
  font-weight: var(--at-weight-medium);
}

.at-index__title {
  width: 42%;
  font-weight: var(--at-weight-regular);
}

.at-index__toggle {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: var(--at-fs-card);
  font-weight: var(--at-weight-regular);
  line-height: 1.1;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--at-dur-fast) var(--at-ease);
}

/* The whole row opens the preview */
.at-index__toggle::after {
  content: "";
  position: absolute;
  inset: 0;
}

.at-index__toggle:focus-visible {
  outline: none;
}

.at-index__row:has(.at-index__toggle:focus-visible) {
  outline: 2px solid var(--at-focus);
  outline-offset: -2px;
}

.at-index__row:hover .at-index__toggle {
  color: var(--at-link);
}

.at-index__group.is-open .at-index__toggle {
  color: var(--at-accent);
  font-style: italic;
}

.at-index__client {
  color: var(--at-body);
  font-size: var(--at-fs-ui);
}

.at-index__disc {
  color: var(--at-muted);
  font-size: var(--at-fs-ui);
}

.at-index__icon {
  width: 56px;
  padding-inline-end: 0;
  text-align: end;
}

.at-index__plus {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  border: var(--at-line-hair) solid var(--at-line-strong);
  border-radius: 50%;
  transition: background-color var(--at-dur-fast) var(--at-ease), border-color var(--at-dur-fast) var(--at-ease),
    transform var(--at-dur) var(--at-ease);
}

.at-index__plus::before,
.at-index__plus::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: var(--at-ink);
}

.at-index__plus::after {
  transform: rotate(90deg);
}

.at-index:not(.is-ready) .at-index__plus {
  display: none;
}

.at-index__row:hover .at-index__plus {
  border-color: var(--at-ink);
  background: var(--at-ink);
}

.at-index__row:hover .at-index__plus::before,
.at-index__row:hover .at-index__plus::after {
  background: var(--at-bone);
}

.at-index__group.is-open .at-index__plus {
  border-color: var(--at-accent-soft);
  background: var(--at-accent-soft);
  transform: rotate(45deg);
}

.at-index__group.is-open .at-index__row:hover .at-index__plus::before,
.at-index__group.is-open .at-index__row:hover .at-index__plus::after {
  background: var(--at-ink);
}

/* Preview row */
.at-index__preview > td {
  padding: 0 0 var(--at-space-7);
  border-block-end: var(--at-line-hair) solid var(--at-line);
}

.at-index__panel {
  display: grid;
  gap: var(--at-space-6);
}

@media (min-width: 900px) {
  .at-index__panel {
    grid-template-columns: minmax(0, 9%) minmax(0, 7fr) minmax(0, 4fr);
    gap: 0 var(--at-space-7);
    align-items: start;
  }

  .at-index__media {
    grid-column: 2;
  }
}

.at-index__group.is-open .at-index__panel {
  animation: at-index-open var(--at-dur-slow) var(--at-ease) both;
}

@keyframes at-index-open {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.at-index__body {
  display: grid;
  gap: var(--at-space-5);
  justify-items: start;
  padding-block-start: var(--at-space-2);
}

.at-index__summary {
  color: var(--at-body);
  font-size: var(--at-fs-body);
}

.at-index__facts {
  display: grid;
  width: 100%;
  margin: 0;
}

.at-index__facts > div {
  display: flex;
  justify-content: space-between;
  gap: var(--at-space-4);
  padding-block: 10px;
  border-block-start: var(--at-line-hair) solid var(--at-line);
}

.at-index__facts dt {
  color: var(--at-muted);
  font-size: var(--at-fs-ui);
}

.at-index__facts dd {
  margin: 0;
  color: var(--at-ink);
  font-size: var(--at-fs-ui);
  font-weight: var(--at-weight-medium);
  text-align: end;
}

/* Compact: rows link straight to a page */
.at-index--compact a.at-index__toggle:hover {
  color: var(--at-link);
}

/* Phones: each project becomes a labelled stack */
@media (max-width: 639px) {
  .at-index__table,
  .at-index__table tbody,
  .at-index__table tr,
  .at-index__table td,
  .at-index__table th {
    display: block;
  }

  .at-index__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .at-index__table .at-index__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px var(--at-space-4);
    padding-block: var(--at-space-5);
    border-block-end: var(--at-line-hair) solid var(--at-line);
  }

  .at-index__group.is-open .at-index__row {
    border-block-end-color: transparent;
  }

  .at-index__row > * {
    padding: 0;
    border: 0;
  }

  .at-index__year {
    grid-row: 1;
    grid-column: 1;
  }

  .at-index__title {
    grid-column: 1;
    width: auto;
  }

  .at-index__icon {
    grid-row: 1 / span 2;
    grid-column: 2;
    width: auto;
    align-self: center;
  }

  .at-index__client,
  .at-index__disc {
    grid-column: 1;
  }

  .at-index__client::before,
  .at-index__disc::before {
    content: attr(data-label) "  ";
    color: var(--at-muted);
    font-size: var(--at-fs-small);
    font-weight: var(--at-weight-medium);
  }

  .at-index__client::before {
    content: attr(data-label) ": ";
  }

  .at-index__disc::before {
    content: attr(data-label) ": ";
  }

  .at-index__preview > td {
    padding-block-end: var(--at-space-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-index__toggle,
  .at-index__plus {
    transition: none;
  }

  .at-index__group.is-open .at-index__panel {
    animation: none;
  }
}

/* ---- case-preview ---- */
/* Case preview: one project at a glance. */

.at-case {
  display: grid;
  gap: var(--at-space-6) var(--at-space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .at-case {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .at-case--reverse {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .at-case--reverse .at-case__media {
    order: 2;
  }

  .at-case--stacked {
    grid-template-columns: minmax(0, 1fr);
  }
}

.at-case__body {
  display: grid;
  gap: var(--at-space-4);
  justify-items: start;
}

.at-case__title {
  font-size: var(--at-fs-headline);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.at-case__title a {
  color: var(--at-ink);
  text-decoration: none;
}

.at-case__title a:hover {
  color: var(--at-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.at-case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-medium);
}

.at-case__meta span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-inline: 10px;
  border-radius: 50%;
  background: var(--at-line-strong);
  vertical-align: middle;
}

.at-case__text {
  max-width: 46ch;
}

.at-case__outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--at-space-4);
  width: 100%;
  margin: var(--at-space-2) 0;
  padding-block-start: var(--at-space-4);
  border-block-start: var(--at-line-hair) solid var(--at-line);
}

.at-case__outcomes dt {
  order: 2;
  color: var(--at-muted);
  font-size: var(--at-fs-small);
  line-height: var(--at-lh-ui);
}

.at-case__outcomes div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.at-case__outcomes dd {
  margin: 0;
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  line-height: 1;
}

/* ---- cards ---- */
/* Cards: 20px corners, a lighter sheet, a hairline edge. */

.at-cards {
  display: grid;
  gap: var(--at-space-5);
}

@media (min-width: 700px) {
  .at-cards--2,
  .at-cards--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .at-cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.at-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: var(--at-line-hair) solid var(--at-line);
  border-radius: var(--at-radius-card);
  background: var(--at-surface);
  color: var(--at-body);
  transition: transform var(--at-dur) var(--at-ease), box-shadow var(--at-dur) var(--at-ease),
    border-color var(--at-dur) var(--at-ease);
}

.at-card:has(.at-card__link):hover {
  transform: translateY(-3px);
  border-color: var(--at-line-strong);
  box-shadow: var(--at-shadow-lift);
}

.at-card:focus-within {
  outline: 2px solid var(--at-focus);
  outline-offset: 3px;
}

.at-card__media {
  margin: 8px 8px 0;
  overflow: hidden;
  border-radius: var(--at-radius-inner);
  background: var(--at-bone-2);
}

.at-card__media > svg {
  width: 100%;
  height: auto;
}

.at-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--at-space-3);
  padding: var(--at-space-5) var(--at-space-5) var(--at-space-6);
}

.at-card__title {
  font-size: var(--at-fs-card);
  line-height: 1.08;
}

.at-card__link {
  color: inherit;
  text-decoration: none;
}

.at-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.at-card__link:hover {
  color: inherit;
  text-decoration: none;
}

.at-card__link:focus-visible {
  outline: none;
}

.at-card__text {
  color: var(--at-body);
}

.at-card__meta {
  margin-block-start: auto;
  padding-block-start: var(--at-space-2);
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-medium);
}

.at-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--at-space-2);
  margin-block-start: auto;
  padding-block-start: var(--at-space-2);
}

.at-card--tint {
  border-color: transparent;
  background: var(--at-bone-2);
}

.at-card--tint .at-card__media {
  background: var(--at-bone);
}

.at-card--inverse {
  border-color: transparent;
  background: var(--at-inverse);
  color: var(--at-inverse-ink);
}

.at-card--inverse .at-card__title,
.at-card--inverse .at-card__text {
  color: var(--at-inverse-ink);
}

.at-card--inverse .at-card__meta {
  color: var(--at-inverse-muted);
}

.at-card--flat {
  border-color: transparent;
  background: transparent;
}

.at-card--flat .at-card__body {
  padding-inline: 0;
}

@media (prefers-reduced-motion: reduce) {
  .at-card {
    transition: none;
  }

  .at-card:has(.at-card__link):hover {
    transform: none;
  }
}

/* ---- bento ---- */
/* Bento: a six-column grid of cards in mixed spans. */

.at-bento {
  display: grid;
  gap: var(--at-space-5);
}

@media (min-width: 700px) {
  .at-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .at-bento__item--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .at-bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .at-bento__item {
    grid-column: span 2;
  }

  .at-bento__item--half {
    grid-column: span 3;
  }

  .at-bento__item--wide {
    grid-column: span 4;
  }

  .at-bento__item--tall {
    grid-row: span 2;
  }
}

.at-bento__fact {
  margin-block-end: auto;
  padding-block-end: var(--at-space-6);
  color: var(--at-accent);
  font-family: var(--at-font-display);
  font-size: clamp(4.5rem, 2.5rem + 7vw, 10rem);
  font-style: italic;
  line-height: 0.85;
  letter-spacing: -0.02em;
}

/* ---- features ---- */
/* Features: a ruled grid, one icon chip per item. */

.at-features {
  display: grid;
  gap: var(--at-space-7) var(--at-space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .at-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .at-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .at-features--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.at-features__item {
  display: grid;
  gap: var(--at-space-3);
  align-content: start;
  padding-block-start: var(--at-space-5);
  border-block-start: var(--at-line-hair) solid var(--at-line);
}

.at-features__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-block-end: var(--at-space-2);
  border-radius: 50%;
  background: var(--at-accent-soft);
  color: var(--at-ink);
}

.at-features__title {
  color: var(--at-ink);
  font-family: var(--at-font-sans);
  font-size: var(--at-fs-sub);
  font-weight: var(--at-weight-semibold);
  line-height: var(--at-lh-ui);
}

.at-features__text {
  max-width: 38ch;
  color: var(--at-body);
}

.at-features--list {
  grid-template-columns: minmax(0, 1fr);
}

.at-features--list .at-features__item {
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: var(--at-space-5);
}

.at-features--list .at-features__icon {
  grid-row: span 2;
  margin: 0;
}

/* ---- stats ---- */
/* Stats: big serif numbers, labels in Funnel Sans. */

.at-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--at-space-7) var(--at-space-5);
  margin: 0;
}

@media (min-width: 1000px) {
  .at-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .at-stats--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.at-stats__item {
  display: flex;
  flex-direction: column;
  gap: var(--at-space-2);
  padding-block-start: var(--at-space-4);
  border-block-start: var(--at-line-hair) solid var(--at-line);
}

.at-stats__label {
  order: 2;
  color: var(--at-ink);
  font-size: var(--at-fs-ui);
  font-weight: var(--at-weight-semibold);
}

.at-stats__value {
  order: 1;
  margin: 0;
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: var(--at-fs-price);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}

.at-stats__note {
  order: 3;
  margin: 0;
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
}

.at-stats--inverse .at-stats__item {
  border-color: var(--at-inverse-line);
}

.at-stats--inverse .at-stats__label,
.at-stats--inverse .at-stats__value {
  color: var(--at-inverse-ink);
}

.at-stats--inverse .at-stats__note {
  color: var(--at-inverse-muted);
}

/* ---- logo-row ---- */
/* Logo row: invented monograms and names, in ink, never in color. */

.at-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--at-space-5) var(--at-space-7);
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-logos--center {
  justify-content: center;
}

.at-logos__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--at-ink);
}

.at-logos__mark {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.at-logos__fill {
  fill: currentColor;
}

.at-logos__name {
  font-size: var(--at-fs-sub);
  font-weight: var(--at-weight-semibold);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---- services-rates ---- */
/* Services and rates: what, how long, starting at. */

.at-rates {
  border-block-start: var(--at-line-hair) solid var(--at-ink);
}

.at-rates__row {
  display: grid;
  gap: var(--at-space-5) var(--at-space-7);
  padding-block: var(--at-space-6);
  border-block-end: var(--at-line-hair) solid var(--at-line);
}

@media (min-width: 900px) {
  .at-rates__row {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

.at-rates__main {
  display: grid;
  gap: var(--at-space-3);
  justify-items: start;
}

.at-rates__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--at-space-2) var(--at-space-3);
  font-size: var(--at-fs-headline);
  line-height: 1.05;
}

.at-rates__desc {
  max-width: 52ch;
}

.at-rates__includes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--at-space-2);
  margin: var(--at-space-2) 0 0;
  padding: 0;
  list-style: none;
}

.at-rates__terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--at-space-4);
  margin: 0;
}

.at-rates__term {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.at-rates__term dt {
  color: var(--at-muted);
  font-size: var(--at-fs-small);
  font-weight: var(--at-weight-medium);
}

.at-rates__term dd {
  margin: 0;
  color: var(--at-ink);
  font-size: var(--at-fs-body);
  font-weight: var(--at-weight-medium);
}

.at-rates__term dd.at-rates__price {
  font-family: var(--at-font-display);
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem);
  font-weight: var(--at-weight-regular);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
}

.at-rates__unit {
  margin-inline-start: 2px;
  color: var(--at-muted);
  font-family: var(--at-font-sans);
  font-size: var(--at-fs-ui);
  letter-spacing: 0;
}

.at-rates__action {
  justify-self: start;
}

.at-rates__row.is-paused .at-rates__desc,
.at-rates__row.is-paused .at-rates__term dd {
  color: var(--at-muted);
}

.at-rates--compact .at-rates__row {
  padding-block: var(--at-space-5);
}

.at-rates--compact .at-rates__name {
  font-size: var(--at-fs-card);
}

/* ---- process ---- */
/* Process: a numbered track with a node per step. */

.at-process {
  display: grid;
  gap: var(--at-space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .at-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--at-space-7) var(--at-space-5);
  }
}

@media (min-width: 1100px) {
  .at-process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .at-process--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.at-process__step {
  position: relative;
  display: grid;
  gap: var(--at-space-3);
  align-content: start;
  justify-items: start;
  padding-block-start: var(--at-space-6);
  border-block-start: var(--at-line-hair) solid var(--at-line-strong);
}

.at-process__step::before {
  content: "";
  position: absolute;
  inset-block-start: -7px;
  inset-inline-start: 0;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--at-accent);
  border-radius: 50%;
  background: var(--at-bone);
}

.at-process__step.is-current::before {
  background: var(--at-accent);
}

.at-process__num {
  color: var(--at-accent);
  font-family: var(--at-font-display);
  font-size: clamp(3rem, 2.4rem + 2vw, 4.25rem);
  font-style: italic;
  line-height: 0.9;
  font-variant-numeric: lining-nums;
}

.at-process__title {
  color: var(--at-ink);
  font-family: var(--at-font-sans);
  font-size: var(--at-fs-sub);
  font-weight: var(--at-weight-semibold);
  line-height: var(--at-lh-ui);
}

.at-process__text {
  max-width: 34ch;
}

.at-process__time {
  margin-block-start: var(--at-space-2);
}

.at-process--vertical {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-inline-start: var(--at-space-6);
  border-inline-start: var(--at-line-hair) solid var(--at-line-strong);
}

.at-process--vertical .at-process__step {
  padding-block: 0 var(--at-space-7);
  border: 0;
}

.at-process--vertical .at-process__step::before {
  inset-block-start: 6px;
  inset-inline-start: calc(var(--at-space-6) * -1 - 7px);
}

/* ---- notes ---- */
/* Notes: short quotes from collaborators, attributed to a role and a year. */

.at-notes {
  display: grid;
  gap: var(--at-space-7) var(--at-space-6);
}

@media (min-width: 900px) {
  .at-notes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .at-notes--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .at-notes--single {
    grid-template-columns: minmax(0, 1fr);
  }
}

.at-notes__item {
  display: flex;
  flex-direction: column;
  gap: var(--at-space-5);
  margin: 0;
  padding-block-start: var(--at-space-5);
  border-block-start: var(--at-line-hair) solid var(--at-line);
}

.at-notes__quote {
  margin: 0;
}

.at-notes__quote p {
  position: relative;
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: var(--at-fs-quote);
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  hanging-punctuation: first;
}

.at-notes__quote p::before {
  content: "\201C";
  position: absolute;
  inset-inline-end: 100%;
  margin-inline-end: 0.04em;
  color: var(--at-accent);
}

.at-notes__who {
  display: flex;
  align-items: center;
  gap: var(--at-space-3);
  line-height: var(--at-lh-ui);
  margin-block-start: auto;
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-medium);
}

.at-notes__who::before {
  content: "";
  flex: none;
  width: 20px;
  height: 1.5px;
  background: var(--at-accent);
}

.at-notes--single .at-notes__item {
  max-width: 54rem;
  border: 0;
}

.at-notes--single .at-notes__quote p {
  font-size: var(--at-fs-title);
  line-height: 1.04;
}

@media (max-width: 899px) {
  .at-notes__quote p::before {
    position: static;
    margin-inline-end: 0.02em;
  }
}

/* ---- now-block ---- */
/* Now block: a dated entry about this month. */

.at-now {
  display: grid;
  gap: var(--at-space-6);
  padding: clamp(1.5rem, 1rem + 2.4vw, 3.5rem);
  border: var(--at-line-hair) solid var(--at-line);
  border-radius: var(--at-radius-card);
  background: var(--at-surface);
}

.at-now__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--at-space-3) var(--at-space-5);
}

.at-now__title {
  font-size: var(--at-fs-title);
  line-height: 0.9;
}

.at-now__title em {
  color: var(--at-accent);
}

.at-now__date {
  display: inline-block;
  padding: 6px 14px;
  border: var(--at-line-hair) solid var(--at-line);
  border-radius: var(--at-radius-pill);
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-medium);
}

.at-now__date time {
  color: var(--at-ink);
}

.at-now__list {
  display: grid;
  margin: 0;
}

.at-now__item {
  display: grid;
  gap: var(--at-space-2) var(--at-space-6);
  padding-block: var(--at-space-4);
  border-block-start: var(--at-line-hair) solid var(--at-line);
}

@media (min-width: 700px) {
  .at-now__item {
    grid-template-columns: 11rem minmax(0, 1fr);
    align-items: baseline;
  }
}

.at-now__label {
  color: var(--at-ink);
  font-size: var(--at-fs-ui);
  font-weight: var(--at-weight-semibold);
}

.at-now__text {
  margin: 0;
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  line-height: 1.2;
  text-wrap: pretty;
}

.at-now__foot {
  padding-block-start: var(--at-space-2);
}

.at-now--page {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.at-now--page .at-now__text {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.625rem);
  line-height: 1.15;
}

.at-now--past {
  gap: var(--at-space-4);
  padding: var(--at-space-6) 0 0;
  border-width: var(--at-line-hair) 0 0;
  border-radius: 0;
  background: transparent;
}

.at-now--past .at-now__title {
  font-size: var(--at-fs-card);
}

.at-now--past .at-now__text {
  color: var(--at-body);
  font-family: var(--at-font-sans);
  font-size: var(--at-fs-body);
  line-height: var(--at-lh-body);
}

/* ---- booking-cta ---- */
/* Booking CTA: the dark moment. A week of slots as pill radios. */

.at-booking {
  display: grid;
  gap: var(--at-space-7) var(--at-space-8);
  padding: clamp(1.5rem, 0.75rem + 3.5vw, 4rem);
}

@media (min-width: 1000px) {
  .at-booking {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
}

.at-booking__copy {
  display: grid;
  gap: var(--at-space-5);
  align-content: start;
}

.at-booking__title {
  max-width: 16ch;
  color: var(--at-inverse-ink);
  font-size: var(--at-fs-title);
  line-height: 0.98;
}

.at-booking__title em {
  color: var(--at-inverse-btn);
}

.at-booking__text {
  max-width: 40ch;
  color: var(--at-inverse-ink);
}

.at-booking__points {
  display: grid;
  gap: var(--at-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--at-inverse-ink);
}

.at-booking__points li {
  display: flex;
  align-items: center;
  gap: var(--at-space-3);
}

.at-booking__points svg {
  color: var(--at-inverse-btn);
}

.at-booking__form {
  display: grid;
  gap: var(--at-space-5);
  min-width: 0;
}

.at-booking__fieldset {
  display: grid;
  gap: var(--at-space-4);
  min-width: 0;
  padding: var(--at-space-5);
  border: var(--at-line-hair) solid var(--at-inverse-line);
  border-radius: var(--at-radius-card);
}

.at-booking__legend {
  float: inline-start;
  width: 100%;
  padding: 0;
  color: var(--at-inverse-ink);
  font-family: var(--at-font-display);
  font-size: var(--at-fs-card);
  line-height: 1.1;
}

.at-booking__tz {
  clear: both;
  color: var(--at-inverse-muted);
  font-size: var(--at-fs-meta);
}

.at-booking__days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--at-space-4) var(--at-space-2);
}

@media (max-width: 559px) {
  .at-booking__days {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.at-booking__day {
  display: grid;
  gap: var(--at-space-2);
  align-content: start;
}

.at-booking__dayname {
  padding-block-end: var(--at-space-2);
  border-block-end: var(--at-line-hair) solid var(--at-inverse-line);
  color: var(--at-inverse-muted);
  font-size: var(--at-fs-small);
  font-weight: var(--at-weight-medium);
}

.at-booking__dayname b {
  display: block;
  color: var(--at-inverse-ink);
  font-family: var(--at-font-display);
  font-size: 1.75rem;
  font-weight: var(--at-weight-regular);
  line-height: 1.1;
}

.at-booking__slot {
  position: relative;
  display: block;
}

.at-booking__slot input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.at-booking__time {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: var(--at-line-hair) solid var(--at-inverse-line);
  border-radius: var(--at-radius-pill);
  color: var(--at-inverse-ink);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-medium);
  font-variant-numeric: tabular-nums;
  transition: background-color var(--at-dur-fast) var(--at-ease), border-color var(--at-dur-fast) var(--at-ease);
}

.at-booking__slot:hover .at-booking__time {
  border-color: var(--at-inverse-ink);
}

.at-booking__slot input:focus-visible + .at-booking__time {
  outline: 2px solid var(--at-inverse-btn);
  outline-offset: 2px;
}

.at-booking__slot input:checked + .at-booking__time {
  border-color: var(--at-inverse-btn);
  background: var(--at-inverse-btn);
  color: var(--at-inverse-btn-ink);
}

.at-booking__slot input:disabled {
  cursor: not-allowed;
}

.at-booking__slot input:disabled + .at-booking__time {
  border-style: dashed;
  color: var(--at-inverse-muted);
  text-decoration: line-through;
}

.at-booking__off {
  color: var(--at-inverse-muted);
  font-size: var(--at-fs-small);
  line-height: var(--at-lh-ui);
}

.at-booking__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--at-space-3) var(--at-space-5);
}

.at-booking__note {
  color: var(--at-inverse-muted);
  font-size: var(--at-fs-meta);
}

/* Light variant: the same panel on the page surface */
.at-booking--light {
  border: var(--at-line-hair) solid var(--at-line);
  background: var(--at-surface);
  color: var(--at-body);
}

.at-booking--light .at-booking__title,
.at-booking--light .at-booking__text,
.at-booking--light .at-booking__points,
.at-booking--light .at-booking__legend,
.at-booking--light .at-booking__dayname b,
.at-booking--light .at-booking__time {
  color: var(--at-ink);
}

.at-booking--light .at-booking__title em,
.at-booking--light .at-booking__points svg {
  color: var(--at-accent);
}

.at-booking--light .at-booking__tz,
.at-booking--light .at-booking__dayname,
.at-booking--light .at-booking__off,
.at-booking--light .at-booking__note {
  color: var(--at-muted);
}

.at-booking--light .at-booking__fieldset,
.at-booking--light .at-booking__dayname,
.at-booking--light .at-booking__time {
  border-color: var(--at-line);
}

.at-booking--light .at-booking__slot input:checked + .at-booking__time {
  border-color: var(--at-btn);
  background: var(--at-btn);
  color: var(--at-btn-ink);
}

.at-booking--light .at-booking__slot input:disabled + .at-booking__time {
  color: var(--at-muted);
}

@media (prefers-reduced-motion: reduce) {
  .at-booking__time {
    transition: none;
  }
}

/* ---- pricing ---- */
/* Pricing: plan cards, the featured one on the inverse card. */

.at-plans {
  display: grid;
  gap: var(--at-space-5);
}

@media (min-width: 1000px) {
  .at-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .at-plans--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.at-plan {
  display: flex;
  flex-direction: column;
  gap: var(--at-space-4);
  padding: var(--at-space-6);
  border: var(--at-line-hair) solid var(--at-line);
  border-radius: var(--at-radius-card);
  background: var(--at-surface);
}

.at-plan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--at-space-2);
}

.at-plan__name {
  font-size: var(--at-fs-headline);
  line-height: 1;
}

.at-plan__desc {
  min-height: 3.2em;
  color: var(--at-body);
}

.at-plan__price {
  display: grid;
  gap: 6px;
  padding-block: var(--at-space-4);
  border-block: var(--at-line-hair) solid var(--at-line);
}

.at-plan__amount {
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: var(--at-fs-price);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}

.at-plan__unit {
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-medium);
}

.at-plan__list {
  display: grid;
  gap: var(--at-space-3);
  margin: 0 0 var(--at-space-3);
  padding: 0;
  list-style: none;
}

.at-plan__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--at-space-3);
}

.at-plan__list svg {
  margin-block-start: 3px;
  color: var(--at-accent);
}

.at-plan__action {
  margin-block-start: auto;
}

.at-plan__note {
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
  text-align: center;
}

.at-plan--featured {
  border-color: transparent;
  background: var(--at-inverse);
  color: var(--at-inverse-ink);
}

.at-plan--featured .at-plan__name,
.at-plan--featured .at-plan__amount,
.at-plan--featured .at-plan__desc,
.at-plan--featured .at-plan__list {
  color: var(--at-inverse-ink);
}

.at-plan--featured .at-plan__unit {
  color: var(--at-inverse-muted);
}

.at-plan--featured .at-plan__price {
  border-color: var(--at-inverse-line);
}

.at-plan--featured .at-plan__list svg {
  color: var(--at-inverse-btn);
}

.at-plan.is-full .at-plan__amount,
.at-plan.is-full .at-plan__name {
  color: var(--at-muted);
}

/* ---- cta ---- */
/* CTA: one honest ask. */

.at-cta {
  display: grid;
  gap: var(--at-space-5);
  justify-items: start;
}

.at-cta__title {
  max-width: 16ch;
  font-size: var(--at-fs-title);
  line-height: 0.98;
}

.at-cta__title em {
  color: var(--at-accent);
}

.at-cta__text {
  max-width: 44ch;
  font-size: var(--at-fs-lede);
  line-height: 1.45;
}

.at-cta__body {
  display: grid;
  gap: var(--at-space-5);
  justify-items: start;
}

@media (min-width: 900px) {
  .at-cta--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--at-space-8);
    align-items: end;
  }
}

.at-cta--center {
  justify-items: center;
  text-align: center;
}

.at-cta--center .at-cta__title {
  max-width: 18ch;
}

.at-cta--inverse {
  padding: clamp(2rem, 1rem + 5vw, 6rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  border-radius: var(--at-radius-card);
  background: var(--at-inverse);
  color: var(--at-inverse-ink);
}

.at-cta--inverse .at-cta__title,
.at-cta--inverse .at-cta__text {
  color: var(--at-inverse-ink);
}

.at-cta--inverse .at-cta__title em {
  color: var(--at-inverse-btn);
}

.at-cta + .at-cta {
  margin-block-start: var(--at-space-9);
}

/* ---- writing-list ---- */
/* Writing list: dated rows, serif titles. */

.at-writing {
  margin: 0;
  padding: 0;
  border-block-start: var(--at-line-hair) solid var(--at-ink);
  list-style: none;
}

.at-writing__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--at-space-2) var(--at-space-5);
  align-items: baseline;
  padding-block: var(--at-space-5);
  border-block-end: var(--at-line-hair) solid var(--at-line);
}

@media (min-width: 800px) {
  .at-writing__item {
    grid-template-columns: 9rem minmax(0, 1fr) 8rem 4.5rem 24px;
    padding-block: var(--at-space-6);
  }
}

.at-writing__date {
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-medium);
  font-variant-numeric: tabular-nums;
}

.at-writing__main {
  display: grid;
  gap: var(--at-space-2);
}

.at-writing__title {
  font-size: var(--at-fs-card);
  line-height: 1.1;
}

.at-writing__link {
  color: var(--at-ink);
  text-decoration: none;
  transition: color var(--at-dur-fast) var(--at-ease);
}

.at-writing__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.at-writing__link:focus-visible {
  outline: none;
}

.at-writing__item:focus-within {
  outline: 2px solid var(--at-focus);
  outline-offset: 4px;
  border-radius: var(--at-radius-inner);
}

.at-writing__item:hover .at-writing__link {
  color: var(--at-link);
}

.at-writing__excerpt {
  max-width: 58ch;
  color: var(--at-body);
}

.at-writing__topic,
.at-writing__time {
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-medium);
}

.at-writing__time {
  font-variant-numeric: tabular-nums;
}

.at-writing__arrow {
  display: inline-flex;
  color: var(--at-ink);
  transition: transform var(--at-dur-fast) var(--at-ease);
}

.at-writing__item:hover .at-writing__arrow {
  transform: translate(3px, -3px);
  color: var(--at-link);
}

[dir="rtl"] .at-writing__arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .at-writing__item:hover .at-writing__arrow {
  transform: scaleX(-1) translate(3px, -3px);
}

@media (max-width: 799px) {
  .at-writing__date {
    grid-column: 1;
    grid-row: 1;
  }

  .at-writing__main {
    grid-column: 1 / -1;
  }

  .at-writing__topic {
    grid-column: 1;
  }

  .at-writing__time {
    grid-column: 2;
    grid-row: 1;
  }

  .at-writing__arrow {
    display: none;
  }
}

.at-writing--compact .at-writing__excerpt {
  display: none;
}

@media (min-width: 800px) {
  .at-writing--compact .at-writing__item {
    padding-block: var(--at-space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-writing__link,
  .at-writing__arrow {
    transition: none;
  }
}

/* ---- prose ---- */
/* Prose: long-form reading in Funnel Sans, headings in Instrument Serif. */

.at-prose {
  max-width: var(--at-measure);
  color: var(--at-body);
  font-size: var(--at-fs-read);
  line-height: var(--at-lh-read);
}

.at-prose > * + * {
  margin-block-start: 1.15em;
}

.at-prose > :first-child {
  margin-block-start: 0;
}

.at-prose__lead {
  color: var(--at-ink);
  font-size: var(--at-fs-lede);
  line-height: 1.5;
}

.at-prose h2 {
  margin-block-start: 2.1em;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.875rem);
  line-height: 1.02;
  letter-spacing: var(--at-track-title);
  scroll-margin-top: calc(var(--at-nav-h) + var(--at-space-5));
}

.at-prose h3 {
  margin-block-start: 1.8em;
  font-size: clamp(1.625rem, 1.45rem + 0.6vw, 2rem);
  line-height: 1.1;
  scroll-margin-top: calc(var(--at-nav-h) + var(--at-space-5));
}

.at-prose h4 {
  margin-block-start: 1.6em;
}

.at-prose h2 + *,
.at-prose h3 + *,
.at-prose h4 + * {
  margin-block-start: 0.6em;
}

.at-prose--case h2[data-n]::before {
  content: attr(data-n);
  display: block;
  margin-block-end: 0.3em;
  color: var(--at-accent);
  font-size: 0.5em;
  font-style: italic;
}

.at-prose a {
  color: var(--at-link);
}

.at-prose a:hover {
  color: var(--at-ink);
}

.at-prose em {
  font-style: italic;
}

.at-prose ul,
.at-prose ol {
  display: grid;
  gap: 0.5em;
  padding-inline-start: 1.3em;
}

.at-prose li::marker {
  color: var(--at-accent);
}

.at-prose ol li::marker {
  font-variant-numeric: tabular-nums;
}

.at-prose blockquote {
  margin-block: 1.8em;
  padding-inline-start: var(--at-space-5);
  border-inline-start: 2px solid var(--at-accent);
}

.at-prose blockquote p {
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  font-style: italic;
  line-height: 1.15;
}

.at-prose figure {
  margin-block: 2em;
}

.at-prose figcaption {
  margin-block-start: var(--at-space-3);
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
  line-height: var(--at-lh-ui);
}

.at-prose__wide {
  margin-inline: calc(min(0px, (var(--at-measure) - min(64rem, 100vw - 2 * var(--at-gutter))) / 2));
}

@media (min-width: 1100px) {
  .at-prose__wide {
    width: min(64rem, 100vw - 2 * var(--at-gutter));
    margin-inline: calc((var(--at-measure) - min(64rem, 100vw - 2 * var(--at-gutter))) / 2);
  }
}

.at-prose :not(pre) > code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--at-bone-2);
  color: var(--at-ink);
  font-size: 0.86em;
}

.at-prose pre {
  padding: var(--at-space-5);
  overflow-x: auto;
  border-radius: var(--at-radius-inner);
  background: var(--at-bone-2);
  color: var(--at-ink);
  font-size: 0.875rem;
  line-height: 1.6;
}

.at-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--at-fs-ui);
  line-height: var(--at-lh-ui);
  font-variant-numeric: tabular-nums;
}

.at-prose th,
.at-prose td {
  padding: 10px 12px 10px 0;
  border-block-end: var(--at-line-hair) solid var(--at-line);
  text-align: start;
  vertical-align: top;
}

.at-prose th {
  color: var(--at-muted);
  font-size: var(--at-fs-small);
  font-weight: var(--at-weight-medium);
}

.at-prose hr {
  width: 72px;
  margin-block: 2.5em;
  margin-inline: auto;
  border-block-start: 1px solid var(--at-line-strong);
}

.at-prose--center {
  margin-inline: auto;
}

/* ---- callout ---- */
/* Callout: a rounded note with an icon in a circle. */

.at-callout {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--at-space-4);
  align-items: start;
  padding: var(--at-space-5);
  border-radius: var(--at-radius-card);
  background: var(--at-accent-soft);
  color: var(--at-ink);
}

.at-callout__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--at-surface);
  color: var(--at-ink);
}

.at-callout__body {
  display: grid;
  gap: 4px;
  padding-block-start: 7px;
}

.at-callout__title {
  color: var(--at-ink);
  font-size: var(--at-fs-body);
  font-weight: var(--at-weight-semibold);
  line-height: var(--at-lh-ui);
}

.at-callout__text {
  color: var(--at-ink);
  font-size: var(--at-fs-body);
  line-height: var(--at-lh-body);
}

.at-callout--ok {
  background: var(--at-ok-soft);
}

.at-callout--ok .at-callout__icon {
  color: var(--at-ok);
}

.at-callout--warn {
  background: var(--at-warn-soft);
}

.at-callout--warn .at-callout__icon {
  color: var(--at-warn);
}

.at-callout--danger {
  background: var(--at-danger-soft);
}

.at-callout--danger .at-callout__icon {
  color: var(--at-danger);
}

.at-callout--plain {
  background: var(--at-bone-2);
}

.at-prose .at-callout {
  margin-block: 1.8em;
  font-size: var(--at-fs-body);
}

/* ---- toc ---- */
/* Table of contents: numbered links, a moss bar on the section in view. */

.at-toc__title {
  margin-block-end: var(--at-space-3);
  color: var(--at-muted);
  font-family: var(--at-font-sans);
  font-size: var(--at-fs-small);
  font-weight: var(--at-weight-medium);
  line-height: var(--at-lh-ui);
}

.at-toc__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: at-toc;
  border-inline-start: var(--at-line-hair) solid var(--at-line);
}

.at-toc__list li {
  counter-increment: at-toc;
}

.at-toc__link {
  position: relative;
  display: flex;
  gap: var(--at-space-3);
  padding: 8px 0 8px var(--at-space-4);
  color: var(--at-muted);
  font-size: var(--at-fs-ui);
  line-height: var(--at-lh-ui);
  text-decoration: none;
}

.at-toc__link::before {
  content: counter(at-toc, decimal-leading-zero);
  flex: none;
  color: var(--at-muted);
  font-variant-numeric: tabular-nums;
}

.at-toc__link:hover {
  color: var(--at-ink);
  text-decoration: none;
}

.at-toc__link[aria-current="true"] {
  color: var(--at-ink);
  font-weight: var(--at-weight-medium);
}

.at-toc__link[aria-current="true"]::after {
  content: "";
  position: absolute;
  inset-block: 6px;
  inset-inline-start: -1.5px;
  width: 2px;
  border-radius: 2px;
  background: var(--at-accent);
}

@media (min-width: 1000px) {
  .at-toc--sticky {
    position: sticky;
    inset-block-start: calc(var(--at-nav-h) + var(--at-space-6));
    align-self: start;
  }
}

/* ---- byline ---- */
/* Byline: avatar, name, date and reading time. */

.at-byline {
  display: flex;
  align-items: center;
  gap: var(--at-space-3);
}

.at-byline__text {
  display: grid;
  gap: 2px;
}

.at-byline__name {
  color: var(--at-ink);
  font-size: var(--at-fs-ui);
  font-weight: var(--at-weight-semibold);
  line-height: var(--at-lh-ui);
}

.at-byline__meta {
  display: flex;
  flex-wrap: wrap;
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
  line-height: var(--at-lh-ui);
}

.at-byline__meta > * + *::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-inline: 8px;
  border-radius: 50%;
  background: var(--at-line-strong);
  vertical-align: middle;
}

.at-byline--lg {
  gap: var(--at-space-4);
}

.at-byline--lg .at-byline__name {
  font-size: var(--at-fs-body);
}

/* ---- timeline ---- */
/* Timeline: dated entries on a hairline. */

.at-timeline {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-timeline__item {
  position: relative;
  display: grid;
  gap: var(--at-space-2) var(--at-space-6);
  padding-block-end: var(--at-space-7);
  padding-inline-start: var(--at-space-6);
  border-inline-start: var(--at-line-hair) solid var(--at-line-strong);
}

.at-timeline__item:last-child {
  padding-block-end: 0;
  border-inline-start-color: transparent;
}

.at-timeline__item::before {
  content: "";
  position: absolute;
  inset-block-start: 6px;
  inset-inline-start: -7px;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--at-line-strong);
  border-radius: 50%;
  background: var(--at-bone);
}

.at-timeline__item.is-now::before {
  border-color: var(--at-accent);
  background: var(--at-accent);
}

@media (min-width: 800px) {
  .at-timeline__item {
    grid-template-columns: 10rem minmax(0, 1fr);
  }
}

.at-timeline__date {
  color: var(--at-muted);
  font-family: var(--at-font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.1;
}

.at-timeline__item.is-now .at-timeline__date {
  color: var(--at-accent);
}

.at-timeline__body {
  display: grid;
  gap: var(--at-space-2);
}

.at-timeline__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--at-space-2) var(--at-space-3);
  font-size: var(--at-fs-card);
  line-height: 1.1;
}

.at-timeline__text {
  max-width: 56ch;
}

.at-timeline--compact .at-timeline__item {
  padding-block-end: var(--at-space-5);
}

.at-timeline--compact .at-timeline__text {
  display: none;
}

/* ---- description-list ---- */
/* Description list: ruled facts. */

.at-dl {
  display: grid;
  margin: 0;
}

.at-dl__row {
  display: grid;
  gap: 4px;
  padding-block: var(--at-space-4);
  border-block-start: var(--at-line-hair) solid var(--at-line);
}

.at-dl__term {
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-medium);
}

.at-dl__detail {
  margin: 0;
  color: var(--at-ink);
  font-size: var(--at-fs-body);
}

@media (min-width: 700px) {
  .at-dl--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--at-space-6);
  }
}

.at-dl--inline .at-dl__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--at-space-2) var(--at-space-5);
  padding-block: var(--at-space-3);
}

.at-dl--inline .at-dl__detail {
  text-align: end;
}

/* ---- contact-card ---- */
/* Contact card: the email, large, with a copy button. */

.at-contact {
  display: grid;
  gap: var(--at-space-4);
  justify-items: start;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: var(--at-line-hair) solid var(--at-line);
  border-radius: var(--at-radius-card);
  background: var(--at-surface);
}

.at-contact__email {
  max-width: 100%;
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: clamp(1.5rem, 1rem + 2.6vw, 3rem);
  line-height: 1.05;
  text-decoration: underline;
  text-decoration-color: var(--at-line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.at-contact__email:hover {
  color: var(--at-link);
  text-decoration-color: currentColor;
}

.at-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--at-space-3);
}

.at-contact__copy {
  display: none;
}

.at-contact.is-ready .at-contact__copy {
  display: inline-flex;
}

.at-contact__copy-idle,
.at-contact__copy-done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.at-contact__copy-done,
.at-contact__copy.is-copied .at-contact__copy-idle {
  display: none;
}

.at-contact__copy.is-copied .at-contact__copy-done {
  display: inline-flex;
}

.at-contact__copy.is-copied {
  border-color: var(--at-ok);
  color: var(--at-ok);
}

.at-contact__status:empty {
  display: none;
}

.at-contact__status {
  color: var(--at-ok);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-medium);
}

.at-contact__socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--at-space-2) var(--at-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-contact__social {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--at-ink);
  font-weight: var(--at-weight-medium);
  text-decoration: none;
}

.at-contact__social:hover {
  color: var(--at-link);
  text-decoration: underline;
}

.at-contact__note {
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
}

.at-contact--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--at-space-3) var(--at-space-4);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.at-contact--compact .at-contact__email {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
}

/* ---- forms ---- */
/* Forms: pill inputs, labels above, hints and errors below. */

.at-form {
  display: grid;
  gap: var(--at-space-5);
}

.at-form__row {
  display: grid;
  gap: var(--at-space-5);
}

@media (min-width: 700px) {
  .at-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.at-field {
  display: grid;
  gap: var(--at-space-2);
  align-content: start;
}

.at-field__label,
.at-fieldset__legend {
  color: var(--at-ink);
  font-size: var(--at-fs-ui);
  font-weight: var(--at-weight-medium);
  line-height: var(--at-lh-ui);
}

.at-field__optional {
  color: var(--at-muted);
  font-weight: var(--at-weight-regular);
}

.at-input,
.at-select__input,
.at-textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 22px;
  border: var(--at-line-hair) solid var(--at-control);
  border-radius: var(--at-radius-input);
  background: var(--at-surface);
  color: var(--at-ink);
  font-family: var(--at-font-sans);
  font-size: var(--at-fs-body);
  line-height: 1.4;
  transition: border-color var(--at-dur-fast) var(--at-ease), box-shadow var(--at-dur-fast) var(--at-ease);
}

.at-textarea {
  min-height: 140px;
  padding: 16px 22px;
  border-radius: var(--at-radius-area);
  resize: vertical;
}

.at-input::placeholder,
.at-textarea::placeholder {
  color: var(--at-muted);
  opacity: 1;
}

.at-input:hover,
.at-select__input:hover,
.at-textarea:hover {
  border-color: var(--at-ink);
}

.at-input:focus-visible,
.at-select__input:focus-visible,
.at-textarea:focus-visible {
  border-color: var(--at-ink);
  outline: 2px solid var(--at-focus);
  outline-offset: 2px;
}

.at-input[aria-invalid="true"],
.at-field.is-invalid .at-input,
.at-field.is-invalid .at-textarea,
.at-field.is-invalid .at-select__input {
  border-color: var(--at-danger);
  box-shadow: inset 0 0 0 1px var(--at-danger);
}

.at-field.is-valid .at-input {
  border-color: var(--at-ok);
}

.at-input:disabled,
.at-select__input:disabled,
.at-textarea:disabled {
  border-style: dashed;
  border-color: var(--at-control);
  background: var(--at-bone-2);
  color: var(--at-muted);
  cursor: not-allowed;
}

.at-input[readonly] {
  border-color: var(--at-line);
  background: transparent;
}

.at-select {
  position: relative;
}

.at-select__input {
  padding-inline-end: 52px;
  appearance: none;
  cursor: pointer;
}

.at-select__icon {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 20px;
  display: inline-flex;
  color: var(--at-ink);
  pointer-events: none;
  transform: translateY(-50%);
}

.at-field__hint,
.at-field__error,
.at-field__success,
.at-form__note {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
  line-height: var(--at-lh-ui);
}

.at-field__hint,
.at-field__error,
.at-field__success {
  padding-inline-start: 22px;
}

.at-field__error {
  color: var(--at-danger);
  font-weight: var(--at-weight-medium);
}

.at-field__success {
  color: var(--at-ok);
  font-weight: var(--at-weight-medium);
}

.at-fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: var(--at-space-3) var(--at-space-5);
}

.at-fieldset__legend {
  float: inline-start;
  width: 100%;
  margin-block-end: var(--at-space-1);
  padding: 0;
}

/* Checkboxes and radios: the real input sits over a drawn box */
.at-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--at-space-3);
  min-height: 44px;
  color: var(--at-ink);
  font-size: var(--at-fs-body);
  cursor: pointer;
}

.at-check__input {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  opacity: 0;
  transform: translateY(-50%);
  cursor: pointer;
}

.at-check__box {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--at-control);
  border-radius: var(--at-radius-check);
  background: var(--at-surface);
  color: transparent;
  transition: background-color var(--at-dur-fast) var(--at-ease), border-color var(--at-dur-fast) var(--at-ease);
}

.at-check__box--radio {
  border-radius: 50%;
}

.at-check__box--radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
}

.at-check:hover .at-check__box {
  border-color: var(--at-ink);
}

.at-check__input:checked + .at-check__box {
  border-color: var(--at-btn);
  background: var(--at-btn);
  color: var(--at-btn-ink);
}

.at-check__input:checked + .at-check__box--radio {
  background: var(--at-surface);
}

.at-check__input:checked + .at-check__box--radio::after {
  background: var(--at-btn);
}

.at-check__input:focus-visible + .at-check__box {
  outline: 2px solid var(--at-focus);
  outline-offset: 3px;
}

.at-check__input:disabled,
.at-check__input:disabled ~ .at-check__label {
  color: var(--at-muted);
  cursor: not-allowed;
}

.at-check__input:disabled + .at-check__box {
  border-style: dashed;
  background: var(--at-bone-2);
}

.at-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--at-space-3) var(--at-space-5);
  padding-block-start: var(--at-space-2);
}

@media (prefers-reduced-motion: reduce) {
  .at-input,
  .at-select__input,
  .at-textarea,
  .at-check__box {
    transition: none;
  }
}

/* ---- switch ---- */
/* Switch: a pill track on a real checkbox. */

.at-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--at-space-3);
  min-height: 44px;
  color: var(--at-ink);
  cursor: pointer;
}

.at-switch__input {
  position: absolute;
  width: 46px;
  height: 28px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.at-switch:not(.at-switch--row) .at-switch__input {
  inset-inline-start: 0;
}

.at-switch__track {
  position: relative;
  display: inline-block;
  flex: none;
  width: 46px;
  height: 28px;
  border: 1.5px solid var(--at-control);
  border-radius: var(--at-radius-pill);
  background: var(--at-bone-2);
  transition: background-color var(--at-dur-fast) var(--at-ease), border-color var(--at-dur-fast) var(--at-ease);
}

.at-switch__thumb {
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--at-surface);
  box-shadow: var(--at-shadow-lift);
  transition: transform var(--at-dur) var(--at-ease);
}

.at-switch:hover .at-switch__track {
  border-color: var(--at-ink);
}

.at-switch__input:checked + .at-switch__track {
  border-color: var(--at-btn);
  background: var(--at-btn);
}

.at-switch__input:checked + .at-switch__track .at-switch__thumb {
  background: var(--at-btn-ink);
  transform: translateX(18px);
}

[dir="rtl"] .at-switch__input:checked + .at-switch__track .at-switch__thumb {
  transform: translateX(-18px);
}

.at-switch__input:focus-visible + .at-switch__track {
  outline: 2px solid var(--at-focus);
  outline-offset: 3px;
}

.at-switch__input:disabled + .at-switch__track {
  border-style: dashed;
  opacity: 0.6;
}

.at-switch:has(.at-switch__input:disabled) {
  color: var(--at-muted);
  cursor: not-allowed;
}

.at-switch__label {
  font-size: var(--at-fs-body);
}

.at-switch__text {
  display: grid;
  gap: 2px;
}

.at-switch__hint {
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
}

.at-switch--row {
  justify-content: space-between;
  width: 100%;
  padding-block: var(--at-space-4);
  border-block: var(--at-line-hair) solid var(--at-line);
}

.at-switch--row .at-switch__label {
  font-weight: var(--at-weight-medium);
}

.at-switch--row .at-switch__input {
  inset-inline-end: 0;
}

@media (prefers-reduced-motion: reduce) {
  .at-switch__track,
  .at-switch__thumb {
    transition: none;
  }
}

/* ---- choice-cards ---- */
/* Choice cards: big radio choices. */

.at-choices {
  display: grid;
  gap: var(--at-space-3);
}

.at-choices__legend {
  float: inline-start;
  width: 100%;
  margin-block-end: var(--at-space-3);
  padding: 0;
  color: var(--at-ink);
  font-size: var(--at-fs-ui);
  font-weight: var(--at-weight-medium);
}

.at-choices__grid {
  display: grid;
  gap: var(--at-space-3);
  clear: both;
}

@media (min-width: 700px) {
  .at-choices--2 .at-choices__grid,
  .at-choices--3 .at-choices__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .at-choices--3 .at-choices__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.at-choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--at-space-4);
  padding: var(--at-space-5);
  border: var(--at-line-hair) solid var(--at-control);
  border-radius: var(--at-radius-card);
  background: var(--at-surface);
  cursor: pointer;
  transition: border-color var(--at-dur-fast) var(--at-ease), box-shadow var(--at-dur-fast) var(--at-ease);
}

.at-choice__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.at-choice__body {
  display: grid;
  gap: 4px;
}

.at-choice__title {
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: 1.625rem;
  line-height: 1.1;
}

.at-choice__text {
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
}

.at-choice__mark {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--at-control);
  border-radius: 50%;
}

.at-choice:hover {
  border-color: var(--at-ink);
}

.at-choice:has(.at-choice__input:checked) {
  border-color: var(--at-accent);
  box-shadow: inset 0 0 0 1px var(--at-accent);
  background: var(--at-accent-soft);
}

.at-choice__input:checked ~ .at-choice__mark {
  border-color: var(--at-btn);
  background: var(--at-btn);
}

.at-choice__input:checked ~ .at-choice__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--at-btn-ink);
}

.at-choice:has(.at-choice__input:focus-visible) {
  outline: 2px solid var(--at-focus);
  outline-offset: 3px;
}

.at-choice:has(.at-choice__input:disabled) {
  border-style: dashed;
  background: transparent;
  cursor: not-allowed;
}

.at-choice:has(.at-choice__input:disabled) .at-choice__title {
  color: var(--at-muted);
}

.at-choice__input:disabled {
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .at-choice {
    transition: none;
  }
}

/* ---- search-field ---- */
/* Search field: a pill with the submit tucked inside. */

.at-search {
  display: flex;
  align-items: center;
  gap: var(--at-space-2);
  width: 100%;
  max-width: 34rem;
  min-height: 52px;
  padding: 6px 6px 6px 18px;
  border: var(--at-line-hair) solid var(--at-control);
  border-radius: var(--at-radius-pill);
  background: var(--at-surface);
  transition: border-color var(--at-dur-fast) var(--at-ease);
}

.at-search:hover {
  border-color: var(--at-ink);
}

.at-search:focus-within {
  border-color: var(--at-ink);
  outline: 2px solid var(--at-focus);
  outline-offset: 2px;
}

.at-search__icon {
  display: inline-flex;
  flex: none;
  color: var(--at-muted);
}

.at-search__input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--at-ink);
  font-size: var(--at-fs-body);
  outline: none;
}

.at-search__input::placeholder {
  color: var(--at-muted);
  opacity: 1;
}

.at-search__input::-webkit-search-cancel-button {
  cursor: pointer;
}

.at-search--lg {
  max-width: 40rem;
  min-height: 62px;
  padding-inline-start: 22px;
}

.at-search--lg .at-search__input {
  font-size: var(--at-fs-lede);
}

@media (prefers-reduced-motion: reduce) {
  .at-search {
    transition: none;
  }
}

/* ---- file-drop ---- */
/* File drop: a rounded zone on a real file input. */

.at-drop {
  position: relative;
  display: grid;
  gap: var(--at-space-3);
}

.at-drop__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.at-drop__zone {
  display: grid;
  gap: var(--at-space-2);
  justify-items: center;
  padding: var(--at-space-6) var(--at-space-5);
  border: 1.5px dashed var(--at-control);
  border-radius: var(--at-radius-area);
  background: var(--at-surface);
  color: var(--at-ink);
  text-align: center;
  cursor: pointer;
  transition: background-color var(--at-dur-fast) var(--at-ease), border-color var(--at-dur-fast) var(--at-ease);
}

.at-drop__zone:hover {
  border-color: var(--at-ink);
}

.at-drop__input:focus-visible + .at-drop__zone {
  outline: 2px solid var(--at-focus);
  outline-offset: 3px;
}

.at-drop.is-dragover .at-drop__zone {
  border-color: var(--at-accent);
  border-style: solid;
  background: var(--at-accent-soft);
}

.at-drop.is-error .at-drop__zone {
  border-color: var(--at-danger);
}

.at-drop__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-block-end: var(--at-space-2);
  border-radius: 50%;
  background: var(--at-accent-soft);
  color: var(--at-ink);
}

.at-drop__title {
  font-size: var(--at-fs-body);
  font-weight: var(--at-weight-medium);
}

.at-drop__hint {
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
}

.at-drop__choose {
  margin-block-start: var(--at-space-3);
  pointer-events: none;
}

.at-drop__list {
  display: grid;
  gap: var(--at-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-drop__list:empty {
  display: none;
}

.at-drop__file {
  display: flex;
  align-items: center;
  gap: var(--at-space-2);
  min-height: 44px;
  padding: 0 18px;
  border: var(--at-line-hair) solid var(--at-line);
  border-radius: var(--at-radius-pill);
  background: var(--at-surface);
  color: var(--at-ink);
  font-size: var(--at-fs-ui);
}

.at-drop__size {
  margin-inline-start: auto;
  color: var(--at-muted);
  font-variant-numeric: tabular-nums;
}

.at-drop__error {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--at-danger);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-medium);
}

@media (prefers-reduced-motion: reduce) {
  .at-drop__zone {
    transition: none;
  }
}

/* ---- newsletter ---- */
/* Newsletter: one field with the subscribe pill inside it. */

.at-newsletter {
  display: grid;
  gap: var(--at-space-6) var(--at-space-8);
  align-items: end;
}

@media (min-width: 900px) {
  .at-newsletter {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .at-newsletter--stack {
    grid-template-columns: minmax(0, 1fr);
  }
}

.at-newsletter--card {
  padding: clamp(1.5rem, 1rem + 2.4vw, 3.5rem);
  border: var(--at-line-hair) solid var(--at-line);
  border-radius: var(--at-radius-card);
  background: var(--at-surface);
}

.at-newsletter > * {
  min-width: 0;
}

.at-newsletter__copy {
  display: grid;
  gap: var(--at-space-3);
}

.at-newsletter__title {
  font-size: var(--at-fs-title);
  line-height: 1;
}

.at-newsletter__title em {
  color: var(--at-accent);
}

.at-newsletter__text {
  max-width: 44ch;
}

.at-newsletter__form {
  display: grid;
  gap: var(--at-space-2);
}

.at-newsletter__label {
  color: var(--at-ink);
  font-size: var(--at-fs-ui);
  font-weight: var(--at-weight-medium);
}

.at-newsletter__field {
  display: flex;
  align-items: center;
  gap: var(--at-space-2);
  min-height: 56px;
  padding: 6px 6px 6px 22px;
  border: var(--at-line-hair) solid var(--at-control);
  border-radius: var(--at-radius-pill);
  background: var(--at-surface);
}

.at-newsletter--card .at-newsletter__field {
  background: var(--at-bone);
}

.at-newsletter__field:focus-within {
  border-color: var(--at-ink);
  outline: 2px solid var(--at-focus);
  outline-offset: 2px;
}

.at-newsletter__input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--at-ink);
  font-size: var(--at-fs-body);
  outline: none;
}

.at-newsletter__input::placeholder {
  color: var(--at-muted);
  opacity: 1;
}

.at-newsletter__note {
  padding-inline-start: 22px;
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
}

.at-newsletter__error {
  display: none;
  align-items: center;
  gap: 6px;
  padding-inline-start: 22px;
  color: var(--at-danger);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-medium);
}

.at-newsletter__form.is-invalid .at-newsletter__field {
  border-color: var(--at-danger);
  box-shadow: inset 0 0 0 1px var(--at-danger);
}

.at-newsletter__form.is-invalid .at-newsletter__error {
  display: flex;
}

.at-newsletter__done {
  display: flex;
  align-items: center;
  gap: var(--at-space-3);
  min-height: 56px;
  padding: 6px 22px;
  border-radius: var(--at-radius-pill);
  background: var(--at-ok-soft);
  color: var(--at-ink);
  font-weight: var(--at-weight-medium);
}

.at-newsletter__done svg {
  color: var(--at-ok);
}

/* ---- tables ---- */
/* Tables: ruled, tabular figures, labelled stacks on phones. */

.at-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.at-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--at-body);
  font-size: var(--at-fs-ui);
  line-height: var(--at-lh-ui);
  font-variant-numeric: tabular-nums;
}

.at-table__caption {
  margin-block-end: var(--at-space-4);
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: var(--at-fs-card);
  line-height: 1.1;
  text-align: start;
}

.at-table th,
.at-table td {
  padding: 14px var(--at-space-4) 14px 0;
  border-block-end: var(--at-line-hair) solid var(--at-line);
  text-align: start;
  vertical-align: top;
}

.at-table thead th {
  padding-block: 0 var(--at-space-3);
  border-block-end-color: var(--at-ink);
  color: var(--at-muted);
  font-size: var(--at-fs-small);
  font-weight: var(--at-weight-medium);
  white-space: nowrap;
}

.at-table tbody th {
  color: var(--at-ink);
  font-weight: var(--at-weight-medium);
}

.at-table tbody tr:hover > * {
  background: var(--at-bone-2);
}

.at-table .at-table__num {
  text-align: end;
}

.at-table thead th:not(:first-child) {
  text-align: end;
}

.at-table .is-featured {
  background: var(--at-accent-soft);
  padding-inline: var(--at-space-4);
}

.at-table thead th.is-featured {
  border-radius: var(--at-radius-inner) var(--at-radius-inner) 0 0;
  padding-block-start: var(--at-space-3);
  color: var(--at-ink);
}

.at-table__group th {
  padding-block: var(--at-space-5) var(--at-space-2);
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: 1.375rem;
  font-style: italic;
  font-weight: var(--at-weight-regular);
}

.at-table tbody tr.at-table__group:hover > * {
  background: transparent;
}

.at-table__yes,
.at-table__no {
  color: var(--at-accent);
  text-align: end;
}

.at-table__no {
  color: var(--at-muted);
}

.at-table--compact th,
.at-table--compact td {
  padding-block: 9px;
}

@media (max-width: 639px) {
  .at-table--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .at-table--stack,
  .at-table--stack tbody,
  .at-table--stack tr,
  .at-table--stack th,
  .at-table--stack td {
    display: block;
  }

  .at-table--stack tbody tr {
    padding-block: var(--at-space-3);
    border-block-end: var(--at-line-hair) solid var(--at-line);
  }

  .at-table--stack tbody th,
  .at-table--stack td {
    padding: 4px 0;
    border: 0;
  }

  .at-table--stack td {
    display: flex;
    justify-content: space-between;
    gap: var(--at-space-4);
    text-align: end;
  }

  .at-table--stack td::before {
    content: attr(data-label);
    color: var(--at-muted);
    font-size: var(--at-fs-small);
    font-weight: var(--at-weight-medium);
    text-align: start;
  }

  .at-table--stack .is-featured {
    padding-inline: 0;
    background: transparent;
  }

  .at-table--stack .at-table__group {
    border: 0;
  }
}

/* ---- pagination ---- */
/* Pagination: round numbers, the current one in ink. */

.at-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--at-space-3);
  padding-block-start: var(--at-space-6);
}

.at-pager__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-pager__link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--at-ink);
  font-size: var(--at-fs-ui);
  font-weight: var(--at-weight-medium);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.at-pager__link:hover {
  background: var(--at-bone-2);
  color: var(--at-ink);
}

.at-pager__link[aria-current="page"] {
  background: var(--at-ink);
  color: var(--at-bone);
}

.at-pager__gap {
  width: 28px;
  color: var(--at-muted);
  text-align: center;
}

[dir="rtl"] .at-pager__step svg {
  transform: scaleX(-1);
}

@media (max-width: 479px) {
  .at-pager__list {
    order: -1;
    width: 100%;
    justify-content: center;
  }
}

/* ---- chart ---- */
/* Chart: SVG marks from the viz tokens, labels in HTML so they stay readable at any width. */

.at-chart {
  display: grid;
  gap: var(--at-space-5);
  align-content: start;
  margin: 0;
}

.at-chart--card {
  padding: var(--at-space-6);
  border: var(--at-line-hair) solid var(--at-line);
  border-radius: var(--at-radius-card);
  background: var(--at-surface);
}

.at-chart__title {
  display: grid;
  gap: 4px;
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: var(--at-fs-card);
  line-height: 1.1;
}

.at-chart__sub {
  color: var(--at-muted);
  font-family: var(--at-font-sans);
  font-size: var(--at-fs-meta);
  line-height: var(--at-lh-ui);
}

/* Bars */
.at-chart__bars {
  display: grid;
  gap: var(--at-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-chart__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px var(--at-space-3);
  align-items: center;
}

.at-chart__label {
  color: var(--at-ink);
  font-size: var(--at-fs-meta);
}

.at-chart__value {
  color: var(--at-ink);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-semibold);
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.at-chart__track {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  height: 12px;
  overflow: visible;
  border-radius: var(--at-radius-pill);
  background: var(--at-bone-2);
}

.at-chart__bar {
  fill: var(--at-viz-1);
}

/* Line */
.at-chart__plot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px var(--at-space-3);
}

.at-chart__y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 160px;
  margin-block: -0.6em;
  color: var(--at-muted);
  font-size: var(--at-fs-small);
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.at-chart__svg {
  width: 100%;
  height: 160px;
  overflow: visible;
}

.at-chart__grid {
  fill: none;
  stroke: var(--at-line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.at-chart__line {
  fill: none;
  stroke: var(--at-viz-1);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.at-chart__line--2 {
  stroke: var(--at-viz-6);
  stroke-dasharray: 5 5;
  stroke-width: 2;
}

.at-chart__x {
  display: flex;
  grid-column: 2;
  justify-content: space-between;
  color: var(--at-muted);
  font-size: var(--at-fs-small);
}

/* Legend */
.at-chart__legend {
  display: grid;
  gap: var(--at-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-chart__legend--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--at-space-4);
}

.at-chart__key {
  display: flex;
  align-items: center;
  gap: var(--at-space-2);
  color: var(--at-ink);
  font-size: var(--at-fs-meta);
  line-height: var(--at-lh-ui);
}

.at-chart__swatch {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.at-chart__swatch--1 { background: var(--at-viz-1); }
.at-chart__swatch--2 { background: var(--at-viz-2); }
.at-chart__swatch--3 { background: var(--at-viz-3); }
.at-chart__swatch--4 { background: var(--at-viz-4); }
.at-chart__swatch--5 { background: var(--at-viz-5); }
.at-chart__swatch--6 { background: var(--at-viz-6); }

.at-chart__swatch--dash {
  width: 16px;
  height: 0;
  border-block-start: 2px dashed var(--at-viz-6);
  border-radius: 0;
}

/* Donut */
.at-chart__donut-wrap {
  display: grid;
  place-items: center;
}

.at-chart__donut-wrap > * {
  grid-area: 1 / 1;
}

.at-chart__donut {
  width: min(200px, 100%);
  height: auto;
}

[dir="rtl"] .at-chart__donut {
  transform: scaleX(-1);
}

.at-chart__ring {
  fill: none;
  stroke: var(--at-bone-2);
  stroke-width: 5;
}

.at-chart__slice {
  fill: none;
  stroke-width: 5;
}

.at-chart__slice--1 { stroke: var(--at-viz-1); }
.at-chart__slice--2 { stroke: var(--at-viz-2); }
.at-chart__slice--3 { stroke: var(--at-viz-3); }
.at-chart__slice--4 { stroke: var(--at-viz-4); }
.at-chart__slice--5 { stroke: var(--at-viz-5); }
.at-chart__slice--6 { stroke: var(--at-viz-6); }

.at-chart__center {
  display: grid;
  justify-items: center;
  color: var(--at-muted);
  font-size: var(--at-fs-small);
  line-height: 1.2;
}

.at-chart__center span {
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: 2.25rem;
  line-height: 1;
}

/* Data table */
.at-chart__data summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--at-ink);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-medium);
  text-decoration: underline;
  text-decoration-color: var(--at-line-strong);
  text-underline-offset: 0.3em;
  cursor: pointer;
}

.at-chart__data[open] summary {
  margin-block-end: var(--at-space-3);
}

/* ---- faq ---- */
/* FAQ: native details on ruled rows. */

.at-faq {
  border-block-start: var(--at-line-hair) solid var(--at-ink);
}

.at-faq__item {
  border-block-end: var(--at-line-hair) solid var(--at-line);
}

.at-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--at-space-5);
  min-height: 44px;
  padding-block: var(--at-space-5);
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: var(--at-fs-card);
  line-height: 1.15;
  list-style: none;
  cursor: pointer;
}

.at-faq__q::-webkit-details-marker {
  display: none;
}

.at-faq__q:hover {
  color: var(--at-link);
}

.at-faq__q:focus-visible {
  outline: 2px solid var(--at-focus);
  outline-offset: 4px;
  border-radius: var(--at-radius-inner);
}

.at-faq__icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: var(--at-line-hair) solid var(--at-line-strong);
  border-radius: 50%;
  transition: transform var(--at-dur) var(--at-ease), background-color var(--at-dur-fast) var(--at-ease);
}

.at-faq__icon::before,
.at-faq__icon::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: var(--at-ink);
}

.at-faq__icon::after {
  transform: rotate(90deg);
}

.at-faq__item[open] .at-faq__icon {
  border-color: var(--at-accent-soft);
  background: var(--at-accent-soft);
  transform: rotate(45deg);
}

.at-faq__a {
  max-width: 60ch;
  padding-block-end: var(--at-space-6);
  color: var(--at-body);
}

.at-faq__a > * + * {
  margin-block-start: var(--at-space-3);
}

@media (prefers-reduced-motion: reduce) {
  .at-faq__icon {
    transition: none;
  }
}

/* ---- alert ---- */
/* Alert: a message after an action. */

.at-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--at-space-3) var(--at-space-4);
  align-items: start;
  padding: var(--at-space-4) var(--at-space-4) var(--at-space-4) var(--at-space-5);
  border: var(--at-line-hair) solid var(--at-line);
  border-inline-start: 3px solid var(--at-accent);
  border-radius: var(--at-radius-card);
  background: var(--at-surface);
  color: var(--at-ink);
}

.at-alert + .at-alert {
  margin-block-start: var(--at-space-3);
}

.at-alert[hidden] {
  display: none;
}

.at-alert__icon {
  display: inline-flex;
  padding-block-start: 2px;
  color: var(--at-accent);
}

.at-alert__body {
  display: grid;
  gap: 2px;
}

.at-alert__title {
  font-weight: var(--at-weight-semibold);
  line-height: var(--at-lh-ui);
}

.at-alert__text {
  color: var(--at-body);
}

.at-alert__close {
  margin-block: -6px;
}

.at-alert--ok {
  border-inline-start-color: var(--at-ok);
}

.at-alert--ok .at-alert__icon {
  color: var(--at-ok);
}

.at-alert--warn {
  border-inline-start-color: var(--at-warn);
}

.at-alert--warn .at-alert__icon {
  color: var(--at-warn);
}

.at-alert--danger {
  border-inline-start-color: var(--at-danger);
  background: var(--at-danger-soft);
}

.at-alert--danger .at-alert__icon {
  color: var(--at-danger);
}

/* ---- toast ---- */
/* Toast: a dark pill that rises from the bottom. */

.at-toast-region {
  position: fixed;
  inset-block-end: var(--at-space-5);
  inset-inline: 0;
  z-index: 80;
  display: grid;
  justify-items: center;
  padding-inline: var(--at-gutter);
  pointer-events: none;
}

.at-toast {
  display: inline-flex;
  align-items: center;
  gap: var(--at-space-3);
  min-height: 48px;
  padding: 6px 8px 6px 18px;
  border-radius: var(--at-radius-pill);
  background: var(--at-inverse);
  color: var(--at-inverse-ink);
  font-size: var(--at-fs-ui);
  font-weight: var(--at-weight-medium);
  box-shadow: var(--at-shadow-float);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--at-dur) var(--at-ease), transform var(--at-dur) var(--at-ease);
}

.at-toast.is-in,
.at-toast--static {
  opacity: 1;
  transform: none;
}

.at-toast__icon {
  display: inline-flex;
  color: var(--at-inverse-btn);
}

.at-toast__text {
  padding-inline-end: var(--at-space-2);
}

.at-toast__action {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--at-radius-pill);
  background: var(--at-inverse-btn);
  color: var(--at-inverse-btn-ink);
  font-weight: var(--at-weight-semibold);
  text-decoration: none;
}

.at-toast__action:hover {
  background: var(--at-inverse-btn-hover);
  color: var(--at-inverse-btn-ink);
}

.at-toast:not(:has(.at-toast__action)) {
  padding-inline-end: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .at-toast {
    transform: none;
    transition: opacity 1ms;
  }
}

/* ---- dialog ---- */
/* Dialog: a native modal on a 20px sheet. */

.at-dialog {
  width: min(560px, 100% - 2 * var(--at-gutter));
  max-height: calc(100vh - 2 * var(--at-space-6));
  padding: 0;
  border: 0;
  border-radius: var(--at-radius-card);
  background: var(--at-surface);
  color: var(--at-body);
  box-shadow: var(--at-shadow-float);
}

.at-dialog--sm {
  width: min(420px, 100% - 2 * var(--at-gutter));
}

.at-dialog::backdrop {
  background: var(--at-overlay);
}

.at-dialog[open] {
  animation: at-dialog-in var(--at-dur) var(--at-ease);
}

@keyframes at-dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.at-dialog__panel {
  display: grid;
  gap: var(--at-space-4);
  padding: var(--at-space-6);
}

.at-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--at-space-4);
}

.at-dialog__title {
  font-size: var(--at-fs-card);
  line-height: 1.1;
}

.at-dialog__close {
  margin: -6px -8px 0 0;
}

.at-dialog__body > * + * {
  margin-block-start: var(--at-space-3);
}

.at-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--at-space-3);
  padding-block-start: var(--at-space-2);
}

@media (prefers-reduced-motion: reduce) {
  .at-dialog[open] {
    animation: none;
  }
}

/* ---- tooltip ---- */
/* Tooltip: a small dark bubble on hover and focus. */

.at-tip {
  position: relative;
  display: inline-flex;
}

.at-tip__trigger {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--at-muted);
  cursor: help;
}

.at-tip__trigger:hover {
  color: var(--at-ink);
}

.at-tip__trigger--text {
  min-width: 0;
  min-height: 0;
  border-radius: 4px;
  color: inherit;
  font: inherit;
  text-decoration: underline dotted;
  text-decoration-color: var(--at-muted);
  text-underline-offset: 0.25em;
}

.at-tip__bubble {
  position: absolute;
  inset-block-end: calc(100% + 10px);
  inset-inline-start: 50%;
  z-index: 30;
  width: max-content;
  max-width: 260px;
  padding: 10px 14px;
  border-radius: var(--at-radius-inner);
  background: var(--at-inverse);
  color: var(--at-inverse-ink);
  font-size: var(--at-fs-meta);
  font-weight: var(--at-weight-regular);
  line-height: var(--at-lh-ui);
  text-align: start;
  box-shadow: var(--at-shadow-float);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity var(--at-dur-fast) var(--at-ease), transform var(--at-dur-fast) var(--at-ease),
    visibility var(--at-dur-fast);
  pointer-events: none;
}

[dir="rtl"] .at-tip__bubble {
  transform: translate(50%, 4px);
}

.at-tip--end .at-tip__bubble {
  inset-inline-start: auto;
  inset-inline-end: 0;
  transform: translateY(4px);
}

.at-tip:hover .at-tip__bubble,
.at-tip:focus-within .at-tip__bubble {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

[dir="rtl"] .at-tip:hover .at-tip__bubble,
[dir="rtl"] .at-tip:focus-within .at-tip__bubble {
  transform: translate(50%, 0);
}

.at-tip--end:hover .at-tip__bubble,
.at-tip--end:focus-within .at-tip__bubble {
  transform: none;
}

.at-tip.is-dismissed .at-tip__bubble {
  opacity: 0;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .at-tip__bubble {
    transition: none;
  }
}

/* ---- empty-state ---- */
/* Empty state: a dashed frame, a drawing and one way forward. */

.at-empty {
  display: grid;
  gap: var(--at-space-3);
  justify-items: center;
  padding: var(--at-space-7) var(--at-space-5);
  border: 1.5px dashed var(--at-line-strong);
  border-radius: var(--at-radius-card);
  text-align: center;
}

.at-empty__art {
  width: 160px;
  margin-block-end: var(--at-space-2);
}

.at-empty__art svg {
  width: 100%;
  height: auto;
}

.at-empty__title {
  font-size: var(--at-fs-card);
}

.at-empty__text {
  max-width: 44ch;
  color: var(--at-body);
}

.at-empty .at-actions {
  margin-block-start: var(--at-space-3);
}

.at-empty--plain {
  border: 0;
}

/* ---- skeleton ---- */
/* Skeleton: bone-2 shapes that breathe. */

.at-skel {
  display: grid;
  gap: var(--at-space-3);
  padding: var(--at-space-5);
  border: var(--at-line-hair) solid var(--at-line);
  border-radius: var(--at-radius-card);
  background: var(--at-surface);
}

.at-skel__block,
.at-skel__line,
.at-skel__circle {
  background: var(--at-bone-2);
  animation: at-breathe 1600ms var(--at-ease) infinite alternate;
}

.at-skel__block {
  aspect-ratio: 16 / 9;
  margin-block-end: var(--at-space-2);
  border-radius: var(--at-radius-inner);
}

.at-skel__line {
  height: 12px;
  border-radius: var(--at-radius-pill);
}

.at-skel__line--title {
  width: 70%;
  height: 22px;
}

.at-skel__line--mid {
  width: 60%;
}

.at-skel__line--short {
  width: 38%;
}

.at-skel__circle {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.at-skel__row {
  display: flex;
  align-items: center;
  gap: var(--at-space-3);
  margin-block-end: var(--at-space-2);
}

.at-skel__stack {
  display: grid;
  flex: 1;
  gap: var(--at-space-2);
}

@keyframes at-breathe {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-skel__block,
  .at-skel__line,
  .at-skel__circle {
    animation: none;
  }
}

/* ---- progress ---- */
/* Progress: a native bar in a pill track, and step pills. */

.at-progress {
  display: grid;
  gap: var(--at-space-2);
}

.at-progress__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--at-space-3);
  font-size: var(--at-fs-ui);
}

.at-progress__label {
  color: var(--at-ink);
  font-weight: var(--at-weight-medium);
}

.at-progress__value {
  color: var(--at-muted);
  font-variant-numeric: tabular-nums;
}

.at-progress__bar {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 0;
  border-radius: var(--at-radius-pill);
  background: var(--at-bone-2);
  color: var(--at-btn);
  appearance: none;
}

.at-progress__bar::-webkit-progress-bar {
  border-radius: var(--at-radius-pill);
  background: var(--at-bone-2);
}

.at-progress__bar::-webkit-progress-value {
  border-radius: var(--at-radius-pill);
  background: var(--at-btn);
}

.at-progress__bar::-moz-progress-bar {
  border-radius: var(--at-radius-pill);
  background: var(--at-btn);
}

.at-progress__bar:indeterminate {
  background: linear-gradient(90deg, var(--at-btn) 0 30%, var(--at-bone-2) 30% 100%) 0 0 / 300% 100% no-repeat,
    var(--at-bone-2);
  animation: at-indeterminate 1400ms linear infinite;
}

.at-progress__bar:indeterminate::-webkit-progress-bar {
  background: transparent;
}

.at-progress__bar:indeterminate::-moz-progress-bar {
  background: transparent;
}

@keyframes at-indeterminate {
  from {
    background-position: 100% 0, 0 0;
  }

  to {
    background-position: -50% 0, 0 0;
  }
}

.at-progress--sm .at-progress__bar {
  height: 6px;
}

.at-steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--at-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-steps__item {
  display: inline-flex;
  align-items: center;
  gap: var(--at-space-2);
  min-height: 40px;
  padding: 4px 16px 4px 5px;
  border: var(--at-line-hair) solid var(--at-line);
  border-radius: var(--at-radius-pill);
  color: var(--at-muted);
  font-size: var(--at-fs-ui);
  font-weight: var(--at-weight-medium);
}

.at-steps__mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: var(--at-line-hair) solid var(--at-line-strong);
  border-radius: 50%;
  font-size: var(--at-fs-small);
  font-variant-numeric: tabular-nums;
}

.at-steps__item.is-done {
  color: var(--at-ink);
}

.at-steps__item.is-done .at-steps__mark {
  border-color: var(--at-btn);
  background: var(--at-btn);
  color: var(--at-btn-ink);
}

.at-steps__item.is-current {
  border-color: var(--at-ink);
  color: var(--at-ink);
}

.at-steps__item.is-current .at-steps__mark {
  border-color: var(--at-ink);
  background: var(--at-ink);
  color: var(--at-bone);
}

@media (prefers-reduced-motion: reduce) {
  .at-progress__bar:indeterminate {
    animation: none;
    background-position: 30% 0, 0 0;
  }
}

/* ---- footer ---- */
/* Footer: a closing question, the email, two link columns, then the name again across the width. */

.at-footer {
  padding-block: var(--at-section) var(--at-space-6);
  border-block-start: var(--at-line-hair) solid var(--at-line);
  background: var(--at-bone);
}

.at-footer > .at-wrap {
  container-type: inline-size;
}

.at-footer__top {
  display: grid;
  gap: var(--at-space-7) var(--at-space-6);
}

@media (min-width: 760px) {
  .at-footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .at-footer__lead {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .at-footer__top {
    grid-template-columns: minmax(0, 7fr) minmax(0, 2.5fr) minmax(0, 2.5fr);
  }

  .at-footer__lead {
    grid-column: auto;
  }
}

.at-footer__lead {
  display: grid;
  gap: var(--at-space-5);
  align-content: start;
}

.at-footer__title {
  max-width: 17ch;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: var(--at-track-title);
}

.at-footer__heading {
  margin-block-end: var(--at-space-4);
  color: var(--at-muted);
  font-family: var(--at-font-sans);
  font-size: var(--at-fs-small);
  font-weight: var(--at-weight-medium);
  line-height: var(--at-lh-ui);
  letter-spacing: 0.01em;
}

.at-footer__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-footer__link {
  color: var(--at-ink);
  font-size: var(--at-fs-body);
  text-decoration: none;
}

.at-footer__link:hover {
  color: var(--at-link);
  text-decoration: underline;
}

.at-footer__signoff {
  margin-block: var(--at-space-9) var(--at-space-5);
  color: var(--at-ink);
  font-family: var(--at-font-display);
  font-size: min(var(--at-fs-name-max), calc(100cqi / var(--at-name-fit)));
  font-weight: var(--at-weight-regular);
  line-height: var(--at-lh-name);
  letter-spacing: var(--at-track-name);
  white-space: nowrap;
  user-select: none;
}

.at-footer__signoff em {
  color: var(--at-accent);
}

.at-footer--plain .at-footer__signoff {
  display: none;
}

.at-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--at-space-3) var(--at-space-5);
  padding-block-start: var(--at-space-5);
  border-block-start: var(--at-line-hair) solid var(--at-line);
}

.at-footer--plain .at-footer__bottom {
  margin-block-start: var(--at-space-8);
}

.at-footer__meta {
  color: var(--at-muted);
  font-size: var(--at-fs-meta);
}
