/* The motion and surface layer, after the other stylesheets on every page: glass,
   entrances, cards, links, sections, the credits pop-up. What moves is inside
   prefers-reduced-motion: no-preference; what waits for an entrance waits only once
   motion.js has marked the page (html.has-motion). Colours are Prax-Copperslate's, each
   named beside it. */

:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --copper: linear-gradient(90deg, rgb(143, 82, 50), rgb(234, 179, 140)); /* burnished copper */
  --glass: rgba(29, 43, 64, 0.38); /* slate tide */
  --glass-line: rgba(255, 255, 255, 0.08); /* platinum at 8% */
}

/* ---- in-page links scroll; pages change at once (no cross-document view transition:
   in Chrome and Brave 158 the new page can hold its first frame through one, then jump) ---- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ---- the header: frosted glass once the page scrolls, a copper hairline at its foot ---- */
.prax-header.is-pinned::before {
  height: calc((var(--top) * 1.4 + var(--h)) * var(--u));
  background: rgba(15, 18, 24, 0.75); /* charcoal abyss */
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(234, 179, 140, 0.45), transparent) 1; /* burnished copper */
  transition: opacity 200ms linear;
}
/* without backdrop-filter the glass would be see-through: the solid scrim stays */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .prax-header.is-pinned::before {
    background: #0f1218; /* charcoal abyss */
  }
}
/* the menu's links: a copper line draws in under the hovered or current link */
.prax-nav__list a {
  position: relative;
}
.prax-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 380ms var(--ease-out);
}
.prax-nav__list a:hover::after,
.prax-nav__list a[aria-current]::after {
  transform: scaleX(1);
  transform-origin: left;
}
/* the phone menu's panel: glass, and it unfolds */
@media (orientation: portrait), (orientation: landscape) and (max-height: 500px) {
  .prax-header.has-js[data-open] .prax-nav__list {
    background: rgba(15, 18, 24, 0.72); /* charcoal abyss */
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    transform-origin: top right;
  }
  @media (prefers-reduced-motion: no-preference) {
    .prax-header.has-js[data-open] .prax-nav__list {
      animation: panel-in 280ms var(--ease-out) both;
    }
  }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
}

/* ---- the canvas: a still light behind every page, and a fine dot grid that fades out ---- */
.practices,
.page,
.home-band {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.page::before,
.practices::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20% -10% auto -10%;
  height: 900px;
  background:
    radial-gradient(40% 50% at 18% 30%, rgba(52, 80, 111, 0.32), transparent 70%), /* slate glow */
    radial-gradient(30% 40% at 82% 20%, rgba(143, 82, 50, 0.16), transparent 70%); /* burnished copper */
  pointer-events: none;
}
.page::after,
.practices::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px); /* platinum */
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

/* ---- headings: the page's title settles in, with a light that passes across it once ---- */
.page h1 {
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 40%, #f0bd98 50%, #ffffff 60%, #ffffff 100%); /* platinum, ember */
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .page h1 {
    animation: title-in 900ms var(--ease-out) both, sheen 2.4s var(--ease-in-out) 500ms both;
  }
}
@keyframes title-in {
  from { opacity: 0; transform: translateY(18px); letter-spacing: -0.01em; }
}
@keyframes sheen {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}
/* an eyebrow: a short uppercase label over a section's heading */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #f0bd98; /* ember */
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--copper);
}

/* ---- entrances: what motion.js marks .reveal fades up out of the page as it comes into
   view. No blur: blurred pale text over the dark slate reads as purple. The hidden state
   takes hold at once (.motion-armed comes a frame later), so nothing fades out first. ---- */
@media (prefers-reduced-motion: no-preference) {
  .has-motion .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .has-motion.motion-armed .reveal {
    transition:
      opacity 900ms var(--ease-out),
      transform 900ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .has-motion .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---- glass cards: the practices, the services, the blog's posts ---- */
.practices__grid {
  gap: clamp(16px, 2vw, 24px);
}
.practice,
.card,
.page .post-list li {
  --mx: 50%;
  --my: 0%;
  position: relative;
  box-sizing: border-box;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    border-color 400ms var(--ease-out),
    background-color 400ms var(--ease-out),
    transform 500ms var(--ease-out);
}
/* the light that follows the pointer (motion.js sets --mx and --my) */
.practice::after,
.card::after,
.page .post-list li::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(240, 189, 152, 0.1), transparent 45%); /* ember */
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
  pointer-events: none;
}
.practice:hover,
.card:hover,
.page .post-list li:hover {
  border-color: rgba(240, 189, 152, 0.28); /* ember */
  background-color: rgba(29, 43, 64, 0.52); /* slate tide */
}
.practice:hover::after,
.card:hover::after,
.page .post-list li:hover::after {
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .card:hover,
  .page .post-list li:hover {
    transform: translateY(-4px);
  }
}
.practices__head {
  max-width: 1120px;
  margin: 0 0 clamp(32px, 4vw, 56px);
}
.practices__head h2 {
  margin: 0;
  max-width: 18em;
  color: #ffffff; /* platinum */
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.03em;
}

/* the blog's list as a grid of cards, each card one link */
.page .post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: 40px;
}
.page .post-list li {
  max-width: none;
  display: flex;
  flex-direction: column;
}
.page .post-list h2 {
  order: 2;
  margin: 8px 0 12px;
  font-size: clamp(19px, 1.4vw, 22px);
  line-height: 1.3;
}
.page .post-list .meta {
  order: 1;
  margin: 0;
  color: #b6c0cc; /* steel mist */
  font-size: 13px;
  letter-spacing: 0.04em;
}
.page .post-list .gist {
  order: 3;
  margin: 0;
  font-size: 15px;
}
.page .post-list h2 a {
  color: #ffffff; /* platinum */
  text-decoration: none;
}
/* the whole card is the link's target */
.page .post-list h2 a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
}
.page .post-list li:hover h2 a {
  color: #f0bd98; /* ember */
}
.page .post-list h2 a:focus-visible {
  outline: none;
}
.page .post-list h2 a:focus-visible::before {
  outline: 2px solid #f0bd98; /* ember */
  outline-offset: 3px;
}

/* the services as two cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 2vw, 24px);
  max-width: 1120px;
  margin: 40px 0 0;
}
.card h2 {
  margin: 20px 0 12px !important;
}
.card p:last-child {
  margin-bottom: 0;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(143, 82, 50, 0.35), rgba(52, 80, 111, 0.35)); /* burnished copper, slate glow */
  border: 1px solid rgba(240, 189, 152, 0.25); /* ember */
  color: #f0bd98; /* ember */
}
.card__icon svg {
  width: 24px;
  height: 24px;
}
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #f0bd98; /* ember */
  font-size: 14px;
  font-weight: 500;
}
.card__more svg {
  width: 16px;
  height: 16px;
  transition: transform 400ms var(--ease-out);
}
.card:hover .card__more svg {
  transform: translateX(4px);
}

/* ---- the home page's bands under the practices ---- */
.home-band {
  --fw: 100%;
  --x: 0.1;
  padding-inline: calc((100% - var(--fw)) / 2 + var(--fw) * var(--x));
  padding-block: clamp(64px, 8vw, 128px);
  background: #0f1218; /* charcoal abyss */
}
.home-band + .home-band {
  padding-top: 0;
}
@media (orientation: landscape) and (max-height: 500px) {
  .home-band { --x: 0.0625; }
}
@media (orientation: portrait) {
  .home-band { --fw: min(100%, 100svh * 9 / 16); --x: 0.0741; }
}
.home-band h2 {
  margin: 0 0 16px;
  max-width: 18em;
  color: #ffffff; /* platinum */
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.home-band p {
  max-width: 38em;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.6;
}
.home-band a:focus-visible {
  outline: 2px solid #f0bd98; /* ember */
  outline-offset: 4px;
  border-radius: 6px;
}

/* the latest posts: three cards and a link to the rest */
.latest__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.latest__head h2 {
  margin: 0;
}
.latest .post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.latest .post-list li {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  transition: border-color 400ms var(--ease-out), transform 500ms var(--ease-out), background-color 400ms var(--ease-out);
}
.latest .post-list li::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(240, 189, 152, 0.1), transparent 45%); /* ember */
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
  pointer-events: none;
}
.latest .post-list li:hover {
  border-color: rgba(240, 189, 152, 0.28); /* ember */
  background-color: rgba(29, 43, 64, 0.52); /* slate tide */
}
.latest .post-list li:hover::after {
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .latest .post-list li:hover {
    transform: translateY(-4px);
  }
}
.latest .post-list .meta {
  order: 1;
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.latest .post-list h3 {
  order: 2;
  margin: 0 0 12px;
  font-size: clamp(18px, 1.3vw, 21px);
  line-height: 1.3;
  font-weight: 500;
}
.latest .post-list h3 a {
  color: #ffffff; /* platinum */
  text-decoration: none;
}
.latest .post-list h3 a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
}
.latest .post-list li:hover h3 a {
  color: #f0bd98; /* ember */
}
.latest .post-list h3 a:focus-visible {
  outline: none;
}
.latest .post-list h3 a:focus-visible::before {
  outline: 2px solid #f0bd98; /* ember */
  outline-offset: 3px;
}
.latest .post-list p:not(.meta) {
  order: 3;
  margin: 0;
  font-size: 15px;
}

/* the closing call: a glass panel with a copper and slate light behind it */
.cta {
  position: relative;
  max-width: 1120px;
  padding: clamp(32px, 5vw, 72px);
  border-radius: 28px;
  background: rgba(29, 43, 64, 0.45); /* slate tide */
  border: 1px solid rgba(240, 189, 152, 0.18); /* ember */
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40%;
  background:
    radial-gradient(35% 45% at 75% 40%, rgba(143, 82, 50, 0.4), transparent 70%), /* burnished copper */
    radial-gradient(40% 50% at 20% 70%, rgba(52, 80, 111, 0.45), transparent 70%); /* slate glow */
}
.cta p {
  color: #edf2f9; /* slate mist */
}

/* buttons: a copper pill, and a quiet outlined one */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  /* burnished copper, ending at rgb(179, 121, 86): basalt deep text keeps 5.4:1 to its end */
  background: linear-gradient(135deg, rgb(234, 179, 140), rgb(179, 121, 86));
  color: #090b0f; /* basalt deep */
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
  transition: transform 400ms var(--ease-out), filter 400ms var(--ease-out);
}
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%); /* platinum */
  transform: translateX(-120%);
}
.button:hover {
  filter: brightness(1.08);
}
@media (prefers-reduced-motion: no-preference) {
  .button:hover {
    transform: translateY(-2px);
  }
  .button:hover::after {
    transition: transform 800ms var(--ease-out);
    transform: translateX(120%);
  }
}
.button svg {
  width: 18px;
  height: 18px;
  transition: transform 400ms var(--ease-out);
}
.button:hover svg {
  transform: translateX(3px);
}
.button--quiet {
  min-height: 44px;
  background: transparent;
  color: #ffffff; /* platinum */
  border: 1px solid rgba(255, 255, 255, 0.2); /* platinum at 20% */
}
.button--quiet:hover {
  border-color: rgba(240, 189, 152, 0.6); /* ember */
  color: #f0bd98; /* ember */
}
.cta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---- the hero: as the page scrolls, the copy drifts up and fades, ahead of the film; not
   where the copy sits below the film (zoomed in, hero.css), since it is scrolled to there ---- */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (not ((orientation: landscape) and (max-width: 41em))) {
    .prax-copy {
      animation: copy-away linear both;
      animation-timeline: scroll(root);
      animation-range: 0 70vh;
    }
    /* not while one of its links has focus: it stays readable, its focus ring with it */
    .prax-copy:focus-within {
      animation: none;
    }
    .prax-hero__still,
    .prax-hero__video {
      animation: film-away linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
  }
}
@keyframes copy-away {
  to { opacity: 0; transform: translateY(-48px); }
}
@keyframes film-away {
  to { transform: scale(1.06); filter: brightness(0.55); }
}

/* ---- a blog post: a copper line across the top fills as the post is read ---- */
.read-progress {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--copper);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .read-progress {
    animation: read linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes read {
  to { transform: scaleX(1); }
}

/* ---- the footer: a copper hairline over it ---- */
.site-footer {
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234, 179, 140, 0.35), transparent); /* burnished copper */
}
.site-footer__links a {
  text-decoration: none;
}

/* ---- links in running text: an ember chip, no underline ---- */
.page :is(p, li, td, th) a:not(.button, .link-list a, .toc a, .more a, .post-list a),
.home-band p a:not(.button) {
  padding: 0.05em 0.35em;
  margin: 0 -0.1em;
  border-radius: 6px;
  background: rgba(240, 189, 152, 0.1); /* ember */
  box-shadow: inset 0 0 0 1px rgba(240, 189, 152, 0.55); /* ember: the edge, so a link is told by its shape too */
  color: #f0bd98; /* ember */
  text-decoration: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-color 300ms var(--ease-out);
}
.page :is(p, li, td, th) a:not(.button, .link-list a, .toc a, .more a, .post-list a):hover,
.home-band p a:not(.button):hover {
  background: rgba(240, 189, 152, 0.22); /* ember */
  color: #ffffff; /* platinum */
}
/* a link on its own line ("All posts"): a quiet pill with an arrow back */
.page .more {
  margin-top: 40px;
}
.page .more a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.2); /* platinum at 20% */
  border-radius: 999px;
  background: none;
  color: #ffffff; /* platinum */
  font-weight: 500;
  text-decoration: none;
  transition: border-color 300ms var(--ease-out);
}
.page .more a::before {
  content: "\2190";
  transition: transform 400ms var(--ease-out);
}
.page .more a:hover {
  border-color: rgba(240, 189, 152, 0.6); /* ember */
  background: none;
  color: #f0bd98; /* ember */
}
.page .more a:hover::before {
  transform: translateX(-3px);
}

/* ---- page structure: a lead paragraph, sections with a heading block, action rows ---- */
.page .lead,
.practices__head .lead {
  max-width: 36em;
  margin: 0 0 8px;
  color: #edf2f9; /* slate mist */
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
}
.practices__head .lead {
  margin: clamp(16px, 1.6vw, 24px) 0 0;
  text-wrap: pretty; /* no last line of one word, where supported (not Firefox 160) */
}
.page .meta {
  color: #b6c0cc; /* steel mist */
  letter-spacing: 0.04em;
}
.section {
  margin-top: clamp(56px, 7vw, 96px);
}
.section__head {
  max-width: 1120px;
  margin-bottom: clamp(20px, 2.5vw, 32px);
}
.page .section__head h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.page .section__intro {
  margin: 12px 0 0;
  max-width: 36em;
}
.page .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.button__icon {
  width: 18px;
  height: 18px;
}
/* the page's link colours do not reach buttons */
.page .button,
.page .button:hover {
  color: #090b0f; /* basalt deep */
}
.page .button--quiet {
  color: #ffffff; /* platinum */
}
.page .button--quiet:hover {
  color: #f0bd98; /* ember */
}
.button--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}
.page .cta {
  margin-top: clamp(56px, 7vw, 96px);
}
.page .cta h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* ---- cards: one grid for all of them; titles are h2 or h3 ---- */
.page > .cards {
  margin-top: 40px;
}
.cards--two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.cards--three {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.cards--four {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.page .card h2,
.page .card h3 {
  margin: 20px 0 10px !important;
  max-width: none;
  color: #ffffff; /* platinum */
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.page .card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
}
.card__icon {
  transition: transform 500ms var(--ease-out), border-color 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}
.practice .card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(143, 82, 50, 0.35), rgba(52, 80, 111, 0.35)); /* burnished copper, slate glow */
  border: 1px solid rgba(240, 189, 152, 0.25); /* ember */
  color: #f0bd98; /* ember */
}
.practice .card__icon svg {
  width: 24px;
  height: 24px;
}
.practice:hover .card__icon,
.card:hover .card__icon {
  border-color: rgba(240, 189, 152, 0.55); /* ember */
  box-shadow: 0 0 24px rgba(240, 189, 152, 0.18); /* ember */
}
@media (prefers-reduced-motion: no-preference) {
  .practice:hover .card__icon,
  .card:hover .card__icon {
    transform: translateY(-2px) rotate(-4deg);
  }
}
/* a card that is one link: its title's link (or button) covers the whole card */
.card--link :is(h2, h3) a,
.card__button {
  color: #ffffff; /* platinum */
  text-decoration: none;
}
.card__button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.card--link :is(h2, h3) a::before,
.card__button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
}
.card--link:hover :is(h2, h3) a,
.card--link:hover .card__button {
  color: #f0bd98; /* ember */
}
.card--link :is(h2, h3) a:focus-visible,
.card__button:focus-visible {
  outline: none;
}
.card--link :is(h2, h3) a:focus-visible::before,
.card__button:focus-visible::before {
  outline: 2px solid #f0bd98; /* ember */
  outline-offset: 3px;
}
.card:not(.card--link):hover {
  transform: none;
}
.card--link {
  display: flex;
  flex-direction: column;
}
.card--link .card__more {
  margin-top: auto;
  padding-top: 20px;
}
/* a practice reached from its phrase in the hero: its edge lights, and a ring pulses once */
.practice:target {
  border-color: rgba(240, 189, 152, 0.55); /* ember */
}
@media (prefers-reduced-motion: no-preference) {
  .practice:target {
    animation: target-ring 1.6s var(--ease-out) 600ms both;
  }
}
@keyframes target-ring {
  from { box-shadow: 0 0 0 0 rgba(240, 189, 152, 0.45); } /* ember */
  to { box-shadow: 0 0 0 16px rgba(240, 189, 152, 0); }
}
.practice h3 {
  margin-top: 20px;
}
/* a note: the icon beside the text */
.card--note {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: clamp(40px, 5vw, 64px);
}
.card--note .card__icon {
  flex: none;
}
.page .card--note h2 {
  margin: 4px 0 8px !important;
}
.card--standard {
  margin-top: 40px;
  border-color: rgba(240, 189, 152, 0.3); /* ember */
  background: linear-gradient(120deg, rgba(143, 82, 50, 0.18), rgba(29, 43, 64, 0.45) 60%); /* burnished copper, slate tide */
}
/* contact: the email card leads, wider */
.cards--contact {
  grid-template-columns: 1.4fr 1fr;
}
@media (max-width: 900px), (orientation: portrait) {
  .cards--contact { grid-template-columns: 1fr; }
}
.card--feature {
  border-color: rgba(240, 189, 152, 0.3); /* ember */
  background: linear-gradient(140deg, rgba(143, 82, 50, 0.2), rgba(29, 43, 64, 0.5) 65%); /* burnished copper, slate tide */
}
.card--feature .actions {
  margin-top: 24px;
}
.card .button {
  position: relative;
  z-index: 1;
}

/* the "in development" badge, its dot pulsing */
.page .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border: 1px solid rgba(240, 189, 152, 0.3); /* ember */
  border-radius: 999px;
  background: rgba(240, 189, 152, 0.08); /* ember */
  color: #f0bd98; /* ember */
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0bd98; /* ember */
}
@media (prefers-reduced-motion: no-preference) {
  .badge__dot {
    animation: ping 2.2s var(--ease-out) 2; /* 4.4 s: under the 5 s that WCAG 2.2.2 allows */
  }
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(240, 189, 152, 0.6); } /* ember */
  70%, 100% { box-shadow: 0 0 0 10px rgba(240, 189, 152, 0); }
}
.page .product .section__head h2 {
  font-size: clamp(30px, 3.4vw, 48px);
}

/* steps: a short numbered path, joined by a copper line */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  max-width: 1120px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(234, 179, 140, 0.6), rgba(52, 80, 111, 0.4)); /* burnished copper, slate glow */
}
.page .steps li {
  position: relative;
  max-width: none;
}
.steps__n {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0f1218; /* charcoal abyss */
  border: 1px solid rgba(240, 189, 152, 0.4); /* ember */
  color: #f0bd98; /* ember */
  font-weight: 500;
}
.page .steps h3 {
  margin: 16px 0 4px;
}
.page .steps p {
  margin: 0;
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { top: 24px; bottom: 24px; left: 24px; right: auto; width: 1px; height: auto; }
  .page .steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; }
  .page .steps h3 { margin: 12px 0 0; }
  .page .steps p { grid-column: 2; }
}

/* ---- a long document: the contents beside the text, the section in view marked ---- */
.page .cards--summary {
  margin-top: 40px;
}
.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  max-width: 1120px;
  margin-top: clamp(48px, 6vw, 80px);
}
.toc {
  position: sticky;
  top: 120px;
  align-self: start;
}
.page .toc__title {
  margin: 0 0 12px;
  color: #f0bd98; /* ember */
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1); /* platinum at 10% */
}
.page .toc li {
  margin: 0;
  font-size: 14px;
}
.page .toc a {
  position: relative;
  display: block;
  margin: 0;
  padding: 7px 0 7px 16px;
  border-radius: 0;
  background: none;
  color: #b6c0cc; /* steel mist */
  text-decoration: none;
}
.page .toc a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--copper);
  transform: scaleY(0);
  transition: transform 350ms var(--ease-out);
}
.page .toc a:hover,
.page .toc a[aria-current] {
  background: none;
  color: #ffffff; /* platinum */
}
.page .toc a[aria-current]::before {
  transform: scaleY(1);
}
.page .toc a:focus-visible {
  outline: 2px solid #f0bd98; /* ember */
  outline-offset: 2px;
}
.page .doc__body > h2:first-child {
  margin-top: 0;
}
@media (max-width: 900px), (orientation: portrait) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
}

/* ---- the site map: one card per section, each link a row with an arrow ---- */
.cards--map {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
}
.page .site-map {
  padding: 0;
}
/* the blog, the longest list, across the full width in two columns */
.cards--map .map-card:last-child {
  grid-column: 1 / -1;
}
.page .cards--map .map-card:last-child .link-list {
  columns: 2 300px;
  column-gap: 40px;
}
.page .cards--map .map-card:last-child .link-list li {
  break-inside: avoid;
}
.page .link-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.page .link-list li {
  margin: 0;
  max-width: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07); /* platinum at 7% */
}
.page .link-list a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  color: #b6c0cc; /* steel mist */
  font-size: 15px;
  text-decoration: none;
  transition: padding-left 400ms var(--ease-out);
}
.page .link-list a svg {
  flex: none;
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 300ms, transform 400ms var(--ease-out);
}
.page .link-list a:hover {
  padding-left: 6px;
  color: #ffffff; /* platinum */
}
.page .link-list a:hover svg {
  opacity: 1;
  transform: none;
  color: #f0bd98; /* ember */
}
.page .link-list a:focus-visible {
  outline: 2px solid #f0bd98; /* ember */
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- page not found ---- */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.card__icon--big {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 18px;
}
.card__icon--big svg {
  width: 30px;
  height: 30px;
}

/* ---- the credits: a dark glass panel that rises in; its rows follow one by one ---- */
.credits {
  position: relative;
  max-width: 680px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(240, 189, 152, 0.22); /* ember */
  border-radius: 24px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(143, 82, 50, 0.22), transparent 60%), /* burnished copper */
    radial-gradient(90% 70% at 0% 100%, rgba(52, 80, 111, 0.25), transparent 60%), /* slate glow */
    rgba(15, 18, 24, 0.86); /* charcoal abyss */
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 40px 100px rgba(9, 11, 15, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06); /* basalt deep, platinum */
}
.credits::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234, 179, 140, 0.8), transparent); /* burnished copper */
}
.credits__head {
  align-items: flex-start;
  margin-bottom: 20px;
}
.page .credits__head .eyebrow {
  margin: 0 0 8px;
}
.page .credits h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.025em;
}
.credits__close {
  width: 44px;
  height: 44px;
  margin: 0 -8px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12); /* platinum at 12% */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04); /* platinum at 4% */
  transition: transform 400ms var(--ease-out), border-color 300ms, color 300ms, background-color 300ms;
}
.credits__close:hover {
  border-color: rgba(240, 189, 152, 0.5); /* ember */
  background: rgba(240, 189, 152, 0.08); /* ember */
  color: #f0bd98; /* ember */
}
@media (prefers-reduced-motion: no-preference) {
  .credits__close:hover {
    transform: rotate(90deg);
  }
}
.credits__close:focus-visible {
  outline-offset: 2px;
  border-radius: 50%;
}
.credits__close svg {
  width: 18px;
  height: 18px;
}
.credits__table {
  border-spacing: 0 6px;
}
.credits__scroll {
  max-height: 30em;
}
.credits__table thead th {
  padding: 0 12px 6px;
  border: 0;
  background: #0f1218; /* charcoal abyss */
  color: #f0bd98; /* ember */
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.16em;
}
.credits__table tbody th,
.credits__table tbody td {
  padding: 14px 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.03); /* platinum at 3% */
  transition: background-color 300ms;
}
.credits__table tbody tr > :first-child {
  border-radius: 12px 0 0 12px;
}
.credits__table tbody tr > :last-child {
  border-radius: 0 12px 12px 0;
}
.credits__table tbody tr:hover > * {
  background: rgba(240, 189, 152, 0.07); /* ember */
}
.credits__table td:last-child {
  color: #edf2f9; /* slate mist */
  font-size: 13px;
}
.credits::backdrop {
  background: rgba(9, 11, 15, 0.6); /* basalt deep */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
/* the motion: the panel rises and sharpens, the page behind it blurs, the rows follow */
@media (prefers-reduced-motion: no-preference) {
  .credits {
    transition:
      opacity 320ms var(--ease-out),
      transform 520ms var(--ease-out),
      filter 420ms var(--ease-out),
      overlay 520ms allow-discrete,
      display 520ms allow-discrete;
  }
  .credits:not(:popover-open) {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    filter: blur(10px);
  }
  @starting-style {
    .credits:popover-open {
      opacity: 0;
      transform: translateY(24px) scale(0.96);
      filter: blur(10px);
    }
  }
  .credits::backdrop {
    transition:
      background-color 400ms var(--ease-out),
      backdrop-filter 400ms var(--ease-out),
      overlay 400ms allow-discrete,
      display 400ms allow-discrete;
  }
  @starting-style {
    .credits:popover-open::backdrop {
      background: rgba(9, 11, 15, 0); /* basalt deep */
      -webkit-backdrop-filter: blur(0);
      backdrop-filter: blur(0);
    }
  }
  .credits:popover-open tbody tr {
    animation: row-in 600ms var(--ease-out) both;
  }
  .credits:popover-open tbody tr:nth-child(2) { animation-delay: 60ms; }
  .credits:popover-open tbody tr:nth-child(3) { animation-delay: 120ms; }
  .credits:popover-open tbody tr:nth-child(4) { animation-delay: 180ms; }
  .credits:popover-open tbody tr:nth-child(5) { animation-delay: 240ms; }
  .credits:popover-open tbody tr:nth-child(6) { animation-delay: 300ms; }
}
@keyframes row-in {
  from { opacity: 0; transform: translateY(10px); }
}

/* ---- accessibility: focus, reduced motion, print ---- */
/* content waiting for its entrance shows as soon as anything in it takes focus */
.has-motion .reveal:focus-within {
  opacity: 1;
  transform: none;
}
/* once a block has eased in (motion.js: .is-settled), a card answers hover at its own pace */
@media (prefers-reduced-motion: no-preference) {
  .has-motion.motion-armed .reveal.is-settled {
    transition:
      border-color 400ms var(--ease-out),
      background-color 400ms var(--ease-out),
      transform 500ms var(--ease-out);
    transition-delay: 0s;
  }
}
/* a linked card that has eased in still lifts on hover */
@media (prefers-reduced-motion: no-preference) {
  .has-motion .card--link.reveal.is-in:hover,
  .has-motion .post-list li.reveal.is-in:hover {
    transform: translateY(-4px);
  }
}
/* a pill keeps its shape when focused */
.button:focus-visible {
  border-radius: 999px;
}
/* the contents list's links are full touch targets on phones */
@media (pointer: coarse) {
  .page .toc a {
    padding-block: 11px;
  }
}
/* with reduced motion, nothing slides, draws or fills either */
@media (prefers-reduced-motion: reduce) {
  .prax-nav__list a::after,
  .page .toc a::before,
  .card__more svg,
  .button svg,
  .page .more a::before,
  .page .link-list a,
  .page .link-list a svg,
  .credits__close,
  .card__icon {
    transition: none;
  }
  .read-progress {
    display: none;
  }
}
/* printed: everything shown, the titles in ink */
@media print {
  .has-motion .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .page h1 {
    background: none;
    color: #000000;
  }
  .read-progress {
    display: none;
  }
}
