/* Self-hosted fonts. A Google Fonts @import blocks render and fails in headless
   Chrome, so the two families ship with the site instead. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url('../fonts/cormorant.woff2') format('woff2');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url('../fonts/cormorant-italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url('../fonts/ibmplexsans.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/*
  Lesethabiso architectural identity
  Metaphor: an architect's tracing table meets a facilities-maintenance dossier.
  Palette is sampled from the supplied logo artwork.
*/
:root {
  --ink: #253439;
  --ink-soft: #35494f;
  --black: #253439;
  --black-raised: #30444b;
  --cream: #f6f6e9;
  --cream-deep: #e7dfd2;
  --taupe: #b29e84;
  --taupe-deep: #806b55;
  --yellow: #b29e84;
  --mint: #d8c8b4;
  --cyan: #b29e84;
  --pink: #b29e84;
  --white: #f6f6e9;
  --line-dark: rgba(246, 246, 233, 0.2);
  --line-light: rgba(37, 52, 57, 0.2);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-mono: "IBM Plex Sans", sans-serif;
  --header-height: 92px;
  --shadow: 0 22px 55px rgba(37, 52, 57, 0.16);
}

html,
body {
  background: var(--cream);
}

body {
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
}

body::before {
  position: fixed;
  z-index: 9998;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.67' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

h1,
h2,
h3,
.display,
.section-title,
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.mono,
.eyebrow,
.section-index,
.meta,
.nav-link,
.chip,
.form-label,
.document-meta,
.project-kicker,
.hero-meta,
.btn,
.text-link,
.footer-bottom {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
}

:focus-visible {
  outline-color: var(--taupe-deep);
}

::selection {
  color: var(--cream);
  background: var(--ink);
}

.skip-link {
  color: var(--cream);
  background: var(--ink);
}

.eyebrow {
  color: var(--mint);
}

.eyebrow::before {
  border-radius: 0;
  transform: rotate(45deg);
}

.eyebrow.is-dark,
.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--taupe-deep);
}

.site-header,
.site-header.is-scrolled,
.site-header.is-solid {
  height: var(--header-height);
  border-color: rgba(37, 52, 57, 0.18);
  background: rgba(246, 246, 233, 0.95);
  backdrop-filter: blur(12px);
  isolation: isolate;
}

.brand img {
  width: clamp(158px, 13vw, 198px);
  max-height: 84px;
  background: transparent;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.nav-link {
  color: rgba(37, 52, 57, 0.72);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-link::after {
  background: var(--taupe-deep);
}

.nav-cta {
  color: var(--cream);
  background: var(--ink);
}

.menu-toggle {
  border-color: rgba(37, 52, 57, 0.35);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  background: var(--ink);
}

.hero {
  color: var(--ink);
  background: var(--cream);
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(246, 246, 233, 1) 0%, rgba(246, 246, 233, 0.98) 30%, rgba(246, 246, 233, 0.84) 43%, rgba(246, 246, 233, 0.18) 68%, transparent 100%),
    linear-gradient(0deg, rgba(246, 246, 233, 0.72), transparent 30%);
}

.hero-copy {
  grid-column: 1 / span 6;
}

.hero-title {
  max-width: 8.8ch;
  font-size: clamp(4.8rem, 8.4vw, 9.5rem);
  font-weight: 600;
  line-height: 0.82;
}

.hero-title .accent {
  color: var(--taupe-deep);
  font-style: italic;
}

.hero-lede,
.page-hero .hero-lede {
  color: rgba(37, 52, 57, 0.78);
}

.hero-meta {
  color: rgba(37, 52, 57, 0.62);
}

.hero-meta span::before {
  border-radius: 0;
  background: var(--taupe-deep);
  transform: rotate(45deg);
}

.hero-layer {
  object-position: center;
  mix-blend-mode: multiply;
}

.hero-layer.base {
  animation: architectural-sketch-in 900ms var(--ease) both;
}

.hero-layer.spectral-a,
.hero-layer.spectral-b,
.material-canvas,
.scene-loader {
  display: none !important;
}

@keyframes architectural-sketch-in {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

.hero .btn-primary {
  color: var(--cream);
  border-color: var(--ink);
  background: var(--ink);
}

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

.hero .btn-ghost {
  color: var(--ink);
  border-color: rgba(37, 52, 57, 0.38);
}

.hero .btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(178, 158, 132, 0.18);
}

.hero-rail {
  color: var(--ink);
  background: var(--taupe);
}

.section-dark,
.section-ink,
.work-story,
.site-footer {
  color: var(--white);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(246, 246, 233, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 246, 233, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

.section-cream,
.manifesto,
.studio,
.closing-macro,
.page-hero {
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(37, 52, 57, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 52, 57, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}

.manifesto-title em {
  color: var(--taupe-deep);
  -webkit-text-stroke: 0;
  font-style: italic;
}

.service-card:hover,
.document-card:hover {
  color: var(--ink);
  background: var(--taupe);
}

.service-card .service-no,
.service-row-no,
.project-kicker,
.document-meta,
.contact-list strong,
.footer-nav strong,
.footer-contact strong,
.action-day strong {
  color: var(--mint);
}

.work-plate {
  border-color: rgba(216, 200, 180, 0.55);
  box-shadow: 0 24px 60px rgba(10, 18, 21, 0.32);
}

.locator-item.is-active {
  border-color: var(--taupe);
}

.work-progress-fill {
  background: var(--taupe);
}

.studio-frame {
  border: 1px solid rgba(37, 52, 57, 0.28);
  box-shadow: 0 18px 44px rgba(37, 52, 57, 0.12);
}

.studio-frame img {
  mix-blend-mode: multiply;
}

.studio-frame.secondary {
  border-color: var(--cream);
}

.studio-copy li::before,
.process-step strong {
  color: var(--taupe-deep);
}

.action-card {
  background: var(--ink-soft);
}

.action-card::before {
  background: var(--taupe);
}

.closing-macro {
  min-height: 110vh;
}

.macro-image {
  border: 1px solid rgba(37, 52, 57, 0.22);
  box-shadow: var(--shadow);
}

.macro-image img {
  mix-blend-mode: multiply;
}

.macro-scrim {
  background: linear-gradient(0deg, rgba(246, 246, 233, 0.98), rgba(246, 246, 233, 0.08) 64%);
}

.macro-copy {
  color: var(--ink);
}

.macro-copy .btn-primary {
  color: var(--cream);
  border-color: var(--ink);
  background: var(--ink);
}

.page-hero {
  min-height: 76vh;
}

.page-hero::after {
  background: linear-gradient(90deg, rgba(246, 246, 233, 1), rgba(246, 246, 233, 0.96) 38%, rgba(246, 246, 233, 0.48) 61%, transparent 88%);
}

.page-hero-image {
  inset: 0 0 0 34%;
}

.page-hero-image img {
  object-position: center;
  mix-blend-mode: multiply;
}

.page-hero-copy {
  color: var(--ink);
}

.page-hero .display {
  max-width: 9.5ch;
}

.fact strong {
  color: var(--taupe);
}

.director-profile {
  overflow: hidden;
  border-bottom: 1px solid rgba(37, 52, 57, 0.16);
}

.director-portrait {
  grid-column: 1 / span 6;
  margin: 0;
  border: 1px solid rgba(37, 52, 57, 0.22);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.director-portrait img {
  width: 100%;
  max-height: 820px;
  object-fit: cover;
  object-position: center 22%;
  mix-blend-mode: multiply;
}

.director-copy {
  grid-column: 8 / -1;
  align-self: center;
}

.director-copy .section-title {
  margin-bottom: 0.45rem;
}

.director-role {
  margin-bottom: 2rem;
  color: var(--taupe-deep);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.partner-card,
.document-card,
.project-card,
.action-card {
  background: var(--black-raised);
}

.project-toolbar {
  top: var(--header-height);
  border-color: rgba(37, 52, 57, 0.18);
  background: rgba(246, 246, 233, 0.96);
}

.filter-button {
  color: rgba(37, 52, 57, 0.72);
  border-color: rgba(37, 52, 57, 0.25);
}

.filter-button[aria-pressed="true"] {
  color: var(--cream);
  border-color: var(--ink);
  background: var(--ink);
}

.project-card:hover .project-media img {
  filter: saturate(0.86) contrast(1.02);
}

.client-mark {
  background: rgba(255, 255, 255, 0.36);
}

.certificate-card,
.contact-form-wrap {
  color: var(--ink);
  background: var(--cream-deep);
}

.field input,
.field select,
.field textarea {
  background: rgba(246, 246, 233, 0.72);
}

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

.btn-primary:hover {
  color: var(--cream);
  border-color: var(--taupe-deep);
  background: var(--taupe-deep);
}

.btn-ghost:hover {
  border-color: var(--taupe);
  background: rgba(178, 158, 132, 0.12);
}

.site-footer {
  border-color: rgba(246, 246, 233, 0.18);
}

.footer-brand img {
  width: min(420px, 78%);
  background: transparent;
  filter: grayscale(1) brightness(0) invert(1);
  mix-blend-mode: screen;
}

.footer-brand p,
.footer-nav a,
.footer-contact a {
  color: rgba(246, 246, 233, 0.68);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--taupe);
}

@media (max-width: 1100px) {
  .site-header,
  .site-header.is-scrolled,
  .site-header.is-solid {
    backdrop-filter: none;
  }

  .nav-open .site-header {
    border-color: transparent;
    background: transparent;
  }

  .site-nav {
    min-height: 100svh;
    color: var(--cream);
    background: rgba(37, 52, 57, 0.99);
  }

  .site-nav .nav-link {
    color: rgba(246, 246, 233, 0.78);
  }

  .site-nav .nav-link:hover,
  .site-nav .nav-link[aria-current="page"] {
    color: var(--cream);
  }

  .site-nav .nav-cta {
    color: var(--ink);
    background: var(--taupe);
  }

  .nav-open .brand img {
    filter: grayscale(1) brightness(0) invert(1);
    mix-blend-mode: screen;
  }

  .nav-open .menu-toggle {
    border-color: rgba(246, 246, 233, 0.4);
  }

  .nav-open .menu-toggle span,
  .nav-open .menu-toggle::before,
  .nav-open .menu-toggle::after {
    background: var(--cream);
  }
}

@media (max-width: 820px) {
  :root {
  --header-height: 76px;
  }

  .brand img {
    width: 142px;
    max-height: 68px;
  }

  .hero,
  .hero-grid {
    min-height: 900px;
  }

  .hero-grid {
    align-items: end;
    padding-top: 27rem;
    padding-bottom: 8rem;
  }

  .hero-copy {
    grid-column: 1;
    padding-top: 0;
  }

  .hero::before {
    background: linear-gradient(0deg, rgba(246, 246, 233, 1) 0%, rgba(246, 246, 233, 0.98) 52%, rgba(246, 246, 233, 0.3) 72%, transparent 100%);
  }

  .hero-layer {
    top: var(--header-height);
    height: 52%;
    object-position: 63% center;
  }

  .hero-title {
    font-size: clamp(4rem, 17vw, 6.4rem);
    line-height: 0.82;
  }

  .page-hero {
    min-height: 780px;
    padding-top: 28rem;
  }

  .page-hero::after {
    background: linear-gradient(0deg, rgba(246, 246, 233, 1) 0%, rgba(246, 246, 233, 0.98) 50%, rgba(246, 246, 233, 0.24) 76%, transparent 100%);
  }

  .page-hero-image {
    inset: var(--header-height) 0 auto;
    height: 52%;
  }

  .page-hero-image img {
    object-position: 62% center;
  }

  .director-portrait,
  .director-copy {
    grid-column: 1;
  }

  .director-copy {
    padding-top: 2.5rem;
  }

  .closing-macro {
    min-height: 900px;
  }

  .macro-image {
    top: 7rem;
    width: calc(100vw - 2 * var(--gutter));
    height: 55vh;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 132px;
  }

  .hero,
  .hero-grid {
    min-height: 940px;
  }

  .hero-grid {
    padding-top: 28rem;
  }

  .hero-title {
    font-size: clamp(3.75rem, 18vw, 5.4rem);
  }

  .page-hero {
    min-height: 790px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-layer.base {
    animation: none;
  }
}

@media print {
  body::before {
    display: none;
  }
}

/* Immersive architectural navigation atlas */
.header-actions {
  position: relative;
  z-index: 103;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.4rem);
}

.header-shortcuts {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.header-shortcuts a {
  position: relative;
  padding-block: 0.75rem;
  color: rgba(37, 52, 57, 0.72);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.header-shortcuts a::after {
  position: absolute;
  right: 0;
  bottom: 0.45rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--taupe-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease);
}

.header-shortcuts a:hover::after,
.header-shortcuts a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: inline-flex;
  width: auto;
  min-width: 116px;
  height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.7rem 0 1rem;
  border: 1px solid rgba(37, 52, 57, 0.32);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(246, 246, 233, 0.66);
  font-family: "IBM Plex Sans", sans-serif;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.menu-toggle::before,
.menu-toggle::after {
  content: none;
}

.menu-toggle .menu-word,
.menu-toggle .menu-glyph {
  position: static;
  width: auto;
  height: auto;
  background: none;
  opacity: 1;
  transform: none;
}

.menu-toggle .menu-word {
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.menu-toggle .menu-glyph {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
}

.menu-toggle .menu-glyph i {
  position: absolute;
  left: 9px;
  width: 16px;
  height: 1px;
  background: var(--cream);
  transition: transform 260ms var(--ease), top 260ms var(--ease);
}

.menu-toggle .menu-glyph i:first-child {
  top: 13px;
}

.menu-toggle .menu-glyph i:last-child {
  top: 20px;
}

.menu-toggle:hover {
  color: var(--cream);
  border-color: var(--ink);
  background: var(--ink);
}

.menu-toggle:hover .menu-glyph {
  background: var(--taupe);
}

.js .site-nav {
  position: fixed;
  z-index: 101;
  inset: 0;
  display: block;
  min-height: 100svh;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--cream);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(246, 246, 233, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 246, 233, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transform: none;
  transition: clip-path 580ms var(--ease), opacity 300ms ease, visibility 0s linear 580ms;
}

.js .nav-open .site-nav {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  clip-path: inset(0);
  transition: clip-path 580ms var(--ease), opacity 300ms ease, visibility 0s linear;
}

.nav-atlas {
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 2rem;
}

.nav-atlas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(246, 246, 233, 0.2);
  color: rgba(246, 246, 233, 0.58);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-atlas-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  padding-top: clamp(1.25rem, 2.5vh, 2rem);
}

.nav-route-list {
  align-self: center;
  border-top: 1px solid rgba(246, 246, 233, 0.18);
}

.site-nav .nav-link {
  position: relative;
  display: grid;
  width: 100%;
  min-height: clamp(72px, 9.2vh, 104px);
  grid-template-columns: 2.2rem minmax(0, 1fr) minmax(10rem, 15rem) 2.7rem;
  align-items: center;
  gap: clamp(0.8rem, 1.8vw, 2rem);
  padding: 0.55rem clamp(0.35rem, 1vw, 0.9rem);
  overflow: hidden;
  border-bottom: 1px solid rgba(246, 246, 233, 0.18);
  color: var(--cream);
  font-family: "IBM Plex Sans", sans-serif;
  opacity: 0;
  transform: translateY(20px);
  transition: color 250ms ease, opacity 360ms ease, transform 460ms var(--ease);
}

.site-nav .nav-link.nav-cta {
  margin-top: 0;
  color: var(--cream);
  background: transparent;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.site-nav .nav-link::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: var(--taupe);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 320ms var(--ease);
}

.site-nav .nav-link::after {
  content: none;
}

.nav-open .site-nav .nav-link {
  opacity: 1;
  transform: translateY(0);
}

.nav-open .site-nav .nav-link:nth-child(1) { transition-delay: 170ms; }
.nav-open .site-nav .nav-link:nth-child(2) { transition-delay: 220ms; }
.nav-open .site-nav .nav-link:nth-child(3) { transition-delay: 270ms; }
.nav-open .site-nav .nav-link:nth-child(4) { transition-delay: 320ms; }
.nav-open .site-nav .nav-link:nth-child(5) { transition-delay: 370ms; }
.nav-open .site-nav .nav-link:nth-child(6) { transition-delay: 420ms; }

.site-nav .nav-link > span {
  position: relative;
  z-index: 1;
}

.nav-route-no {
  color: var(--taupe);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.nav-route-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.2vw, 4.85rem);
  font-weight: 600;
  line-height: 0.84;
  letter-spacing: -0.045em;
}

.nav-route-note {
  color: rgba(246, 246, 233, 0.55);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-route-arrow {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border: 1px solid rgba(246, 246, 233, 0.28);
  border-radius: 50%;
  font-size: 0.9rem;
  transition: transform 260ms var(--ease), border-color 260ms ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible,
.site-nav .nav-link[aria-current="page"] {
  color: var(--ink);
}

.site-nav .nav-link:hover::before,
.site-nav .nav-link:focus-visible::before,
.site-nav .nav-link[aria-current="page"]::before {
  transform: scaleY(1);
  transform-origin: top;
}

.site-nav .nav-link:hover .nav-route-no,
.site-nav .nav-link:hover .nav-route-note,
.site-nav .nav-link:focus-visible .nav-route-no,
.site-nav .nav-link:focus-visible .nav-route-note,
.site-nav .nav-link[aria-current="page"] .nav-route-no,
.site-nav .nav-link[aria-current="page"] .nav-route-note {
  color: rgba(37, 52, 57, 0.7);
}

.site-nav .nav-link:hover .nav-route-arrow,
.site-nav .nav-link:focus-visible .nav-route-arrow {
  border-color: rgba(37, 52, 57, 0.35);
  transform: rotate(45deg);
}

.nav-contact-card {
  position: relative;
  display: grid;
  min-height: 0;
  align-self: stretch;
  grid-template-rows: minmax(180px, 0.9fr) auto;
  overflow: hidden;
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 28px 70px rgba(8, 15, 18, 0.28);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 420ms ease 360ms, transform 540ms var(--ease) 360ms;
}

.nav-open .nav-contact-card {
  opacity: 1;
  transform: translateY(0);
}

.nav-contact-card figure {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(37, 52, 57, 0.18);
}

.nav-contact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  mix-blend-mode: multiply;
  transition: transform 900ms var(--ease);
}

.nav-open .nav-contact-card img {
  transform: scale(1.025);
}

.nav-contact-copy {
  padding: clamp(1.25rem, 2vw, 2rem);
}

.nav-contact-kicker,
.nav-contact-meta {
  color: var(--taupe-deep);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-card-title {
  max-width: 11ch;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3vw, 3.65rem);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.nav-card-copy {
  max-width: 33rem;
  margin-bottom: 1rem;
  color: rgba(37, 52, 57, 0.7);
  font-size: 0.88rem;
  line-height: 1.55;
}

.nav-contact-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  color: var(--cream);
  background: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 220ms ease, background 220ms ease;
}

.nav-contact-action:hover,
.nav-contact-action:focus-visible {
  color: var(--ink);
  background: var(--taupe);
}

.nav-contact-meta {
  display: grid;
  gap: 0.45rem;
}

.nav-contact-meta a {
  width: fit-content;
  color: rgba(37, 52, 57, 0.72);
  letter-spacing: 0.06em;
  text-transform: none;
}

.nav-contact-meta a:hover {
  color: var(--ink);
}

.nav-open .site-header,
.nav-open .site-header.is-solid,
.nav-open .site-header.is-scrolled {
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
}

.nav-open .brand img {
  filter: grayscale(1) brightness(0) invert(1);
  mix-blend-mode: screen;
}

.nav-open .header-shortcuts {
  opacity: 0;
  pointer-events: none;
}

.nav-open .menu-toggle,
.nav-open .menu-toggle:hover {
  color: var(--cream);
  border-color: rgba(246, 246, 233, 0.4);
  background: rgba(246, 246, 233, 0.08);
}

.nav-open .menu-toggle .menu-word,
.nav-open .menu-toggle .menu-glyph {
  opacity: 1;
}

.nav-open .menu-toggle .menu-word {
  position: static;
  width: auto;
  height: auto;
  background: transparent;
  transform: none;
}

.nav-open .menu-toggle .menu-glyph {
  background: var(--taupe);
}

.nav-open .menu-toggle .menu-glyph i {
  top: 16px;
  background: var(--ink);
}

.nav-open .menu-toggle .menu-glyph i:first-child {
  transform: rotate(45deg);
}

.nav-open .menu-toggle .menu-glyph i:last-child {
  transform: rotate(-45deg);
}

@media (max-width: 1100px) {
  .header-shortcuts {
    display: none;
  }

  .nav-atlas-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 1.5rem;
  }

  .site-nav .nav-link {
    grid-template-columns: 2rem minmax(0, 1fr) 2.7rem;
  }

  .nav-route-note {
    display: none;
  }
}

@media (max-width: 820px) {
  .header-actions {
    gap: 0;
  }

  .menu-toggle {
    min-width: 102px;
    height: 44px;
    padding: 0 0.45rem 0 0.85rem;
  }

  .menu-toggle .menu-glyph {
    width: 32px;
    height: 32px;
  }

  .menu-toggle .menu-glyph i {
    left: 8px;
  }

  .nav-atlas {
    display: block;
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 1.15rem);
    padding-bottom: 1.15rem;
  }

  .nav-atlas-head {
    padding-bottom: 0.7rem;
  }

  .nav-atlas-head span:last-child {
    display: none;
  }

  .nav-atlas-grid {
    display: block;
    padding-top: 0.65rem;
  }

  .nav-route-list {
    margin-bottom: 0.8rem;
  }

  .site-nav .nav-link {
    min-height: 58px;
    grid-template-columns: 1.6rem minmax(0, 1fr) 2.25rem;
    gap: 0.65rem;
    padding: 0.35rem 0;
  }

  .nav-route-title {
    font-size: clamp(2.2rem, 11.5vw, 3.15rem);
    line-height: 0.84;
  }

  .nav-route-arrow {
    width: 2.2rem;
    height: 2.2rem;
  }

  .nav-contact-card {
    display: block;
    min-height: 0;
  }

  .nav-contact-card figure,
  .nav-card-copy,
  .nav-contact-meta {
    display: none;
  }

  .nav-contact-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.75rem 1rem;
    padding: 1rem;
  }

  .nav-contact-kicker {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .nav-card-title {
    margin-bottom: 0;
    font-size: clamp(1.8rem, 8.4vw, 2.45rem);
  }

  .nav-contact-action {
    min-height: 44px;
    margin-bottom: 0;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .menu-toggle {
    min-width: 96px;
  }

  .nav-contact-copy {
    display: block;
  }

  .nav-contact-kicker,
  .nav-card-title {
    margin-bottom: 0.65rem;
  }

  .nav-contact-action {
    width: 100%;
  }
}

@media (max-height: 700px) and (max-width: 820px) {
  .site-nav .nav-link {
    min-height: 49px;
  }

  .nav-route-title {
    font-size: 2rem;
  }

  .nav-card-title {
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .site-nav,
  .site-nav .nav-link,
  .nav-contact-card,
  .nav-contact-card img,
  .menu-toggle .menu-glyph i {
    transition: none;
  }
}

/* Premium proof system: tracing-table loader, reference folio and credential ledger. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main [id] {
  scroll-margin-top: calc(var(--header-height) + 1.25rem);
}

.site-preloader {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(37, 52, 57, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 52, 57, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  clip-path: inset(0);
  transition: clip-path 720ms cubic-bezier(.77, 0, .18, 1), visibility 720ms;
}

.is-preloading body {
  overflow: hidden;
}

.is-preloaded .site-preloader {
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}

.preloader-sheet {
  position: relative;
  width: min(86vw, 860px);
  padding: clamp(1.25rem, 3vw, 2.4rem);
  border: 1px solid rgba(37, 52, 57, 0.28);
  background: rgba(246, 246, 233, 0.84);
  box-shadow: 0 24px 70px rgba(37, 52, 57, 0.12);
}

.preloader-sheet::before,
.preloader-sheet::after {
  position: absolute;
  width: 18px;
  height: 18px;
  content: "";
  border-color: var(--taupe-deep);
  border-style: solid;
}

.preloader-sheet::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.preloader-sheet::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.preloader-coordinate,
.preloader-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.preloader-coordinate {
  color: rgba(37, 52, 57, 0.58);
}

.preloader-drawing {
  position: relative;
  display: grid;
  min-height: clamp(190px, 34vw, 300px);
  place-items: center;
  overflow: hidden;
}

.preloader-drawing img {
  position: relative;
  z-index: 3;
  width: min(72%, 510px);
  opacity: 0;
  mix-blend-mode: multiply;
  animation: dossier-mark-in 640ms 260ms var(--ease) forwards;
}

.preloader-axis {
  position: absolute;
  z-index: 1;
  display: block;
  background: rgba(37, 52, 57, 0.24);
}

.preloader-axis::after {
  position: absolute;
  content: "";
  background: var(--taupe-deep);
}

.preloader-axis.axis-x {
  right: 4%;
  left: 4%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  animation: dossier-axis-x 900ms 80ms var(--ease) forwards;
}

.preloader-axis.axis-x::after {
  top: -3px;
  right: 18%;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
}

.preloader-axis.axis-y {
  top: 10%;
  bottom: 10%;
  left: 22%;
  width: 1px;
  transform: scaleY(0);
  transform-origin: top;
  animation: dossier-axis-y 760ms 140ms var(--ease) forwards;
}

.preloader-axis.axis-y::after {
  bottom: 22%;
  left: -3px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
}

.preloader-building {
  position: absolute;
  z-index: 2;
  top: 19%;
  right: 11%;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  opacity: 0;
  animation: dossier-lines-in 560ms 360ms ease forwards;
}

.preloader-building i {
  display: block;
  width: 28px;
  border: 1px solid rgba(37, 52, 57, 0.48);
  border-bottom-width: 3px;
}

.preloader-building i:nth-child(1) { height: 44px; }
.preloader-building i:nth-child(2) { height: 72px; }
.preloader-building i:nth-child(3) { height: 56px; }

.preloader-gear {
  position: absolute;
  z-index: 2;
  bottom: 15%;
  left: 10%;
  width: 74px;
  height: 74px;
  border: 1px dashed rgba(37, 52, 57, 0.42);
  border-radius: 50%;
  opacity: 0;
  animation: dossier-gear-in 760ms 230ms var(--ease) forwards;
}

.preloader-gear::before,
.preloader-gear::after {
  position: absolute;
  inset: 13px;
  content: "";
  border: 1px solid rgba(37, 52, 57, 0.28);
  transform: rotate(45deg);
}

.preloader-gear::after {
  inset: 26px;
  border-color: var(--taupe-deep);
}

.preloader-caption {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(37, 52, 57, 0.72);
}

.preloader-caption strong {
  display: flex;
  align-items: baseline;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 500;
  line-height: 0.72;
}

.preloader-caption small {
  margin-left: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.preloader-rule {
  height: 2px;
  margin-top: 1.25rem;
  overflow: hidden;
  background: rgba(37, 52, 57, 0.14);
}

.preloader-rule i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--taupe-deep);
  transform: scaleX(0);
  transform-origin: left;
  animation: dossier-progress 1050ms 80ms linear forwards;
}

@keyframes dossier-mark-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dossier-axis-x { to { transform: scaleX(1); } }
@keyframes dossier-axis-y { to { transform: scaleY(1); } }
@keyframes dossier-progress { to { transform: scaleX(1); } }

@keyframes dossier-lines-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dossier-gear-in {
  from { opacity: 0; transform: rotate(-18deg) scale(0.82); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

.proof-ribbon {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  border-top: 1px solid rgba(246, 246, 233, 0.16);
  border-bottom: 1px solid rgba(246, 246, 233, 0.16);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(246, 246, 233, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 246, 233, 0.026) 1px, transparent 1px);
  background-size: 32px 32px;
}

.proof-ribbon::after {
  position: absolute;
  right: -9rem;
  bottom: -12rem;
  width: 27rem;
  height: 27rem;
  content: "";
  border: 1px dashed rgba(216, 200, 180, 0.2);
  border-radius: 50%;
}

.proof-ribbon-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) 2.22fr;
  border-left: 1px solid rgba(246, 246, 233, 0.16);
}

.proof-ribbon-intro {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid rgba(246, 246, 233, 0.16);
}

.proof-ribbon-intro h2 {
  max-width: 8ch;
  margin: auto 0 1.5rem;
  font-size: clamp(2.4rem, 4vw, 4.8rem);
}

.proof-ribbon-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-ribbon-items a {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 2vw, 2rem);
  border-right: 1px solid rgba(246, 246, 233, 0.16);
  transition: color 300ms var(--ease), background 300ms var(--ease), transform 300ms var(--ease);
}

.proof-ribbon-items a:hover {
  color: var(--ink);
  background: var(--taupe);
  transform: translateY(-4px);
}

.proof-ribbon-items span,
.proof-ribbon-items small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-ribbon-items span { color: var(--mint); }
.proof-ribbon-items a:hover span { color: var(--ink); }

.proof-ribbon-items strong {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 3.35vw, 4.6rem);
  font-weight: 500;
  line-height: 0.86;
}

.reference-folio {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(37, 52, 57, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 52, 57, 0.038) 1px, transparent 1px);
  background-size: 40px 40px;
}

.reference-folio::before {
  position: absolute;
  top: 11rem;
  right: -8rem;
  width: 27rem;
  height: 27rem;
  content: "";
  border: 1px dashed rgba(37, 52, 57, 0.15);
  border-radius: 50%;
}

.reference-folio-intro {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
}

.reference-source-note {
  margin-top: 1.5rem;
  color: var(--taupe-deep);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reference-folio .lede {
  color: rgba(37, 52, 57, 0.76);
}

.reference-slider {
  position: relative;
  z-index: 1;
}

.reference-stage {
  position: relative;
  min-height: 720px;
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  color: var(--cream);
  border: 1px solid rgba(37, 52, 57, 0.32);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(246, 246, 233, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 246, 233, 0.028) 1px, transparent 1px);
  background-size: 28px 28px;
  box-shadow: 0 28px 70px rgba(37, 52, 57, 0.18);
}

.reference-stage::after {
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 23rem;
  height: 23rem;
  content: "";
  border: 1px solid rgba(216, 200, 180, 0.18);
  transform: rotate(45deg);
}

.reference-quote-mark {
  position: absolute;
  z-index: 0;
  top: -2.5rem;
  left: clamp(1rem, 3vw, 3rem);
  color: rgba(216, 200, 180, 0.1);
  font-family: var(--font-display);
  font-size: clamp(14rem, 26vw, 29rem);
  line-height: 1;
}

.reference-slides {
  position: relative;
  z-index: 1;
  max-width: 1040px;
}

.reference-slide {
  display: none;
  min-height: 560px;
  flex-direction: column;
  justify-content: space-between;
}

.reference-slide.is-active {
  display: flex;
  animation: reference-draft-in 620ms var(--ease) both;
}

.reference-slide blockquote {
  max-width: 24ch;
  margin: 2rem 0 3rem;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.8vw, 5.4rem);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.035em;
}

.reference-index {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.reference-attribution {
  display: flex;
  max-width: 820px;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 246, 233, 0.22);
}

.reference-attribution strong,
.reference-attribution span {
  display: block;
}

.reference-attribution strong {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.reference-attribution span,
.reference-attribution a {
  color: rgba(246, 246, 233, 0.7);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-attribution a {
  min-height: 44px;
  padding: 0.8rem 0 0.4rem;
  border-bottom: 1px solid var(--taupe);
}

.reference-counter {
  position: absolute;
  z-index: 2;
  top: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.reference-counter i {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: rgba(246, 246, 233, 0.4);
}

.reference-navigation {
  display: grid;
  grid-template-columns: 1fr auto;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.reference-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reference-tab,
.reference-arrows button {
  min-height: 86px;
  color: var(--ink);
  border: 0;
  border-right: 1px solid var(--line-light);
  background: rgba(246, 246, 233, 0.72);
  cursor: pointer;
  transition: color 260ms var(--ease), background 260ms var(--ease);
}

.reference-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  text-align: left;
}

.reference-tab span {
  color: var(--taupe-deep);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.reference-tab strong {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 600;
}

.reference-tab:hover,
.reference-tab.is-active,
.reference-arrows button:hover {
  color: var(--cream);
  background: var(--ink);
}

.reference-tab.is-active span { color: var(--mint); }

.reference-arrows {
  display: grid;
  grid-template-columns: repeat(2, 74px);
}

.reference-arrows button {
  display: grid;
  min-width: 74px;
  place-items: center;
  padding: 0;
  font-size: 1.25rem;
}

@keyframes reference-draft-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.credential-hero {
  position: relative;
  overflow: hidden;
}

.credential-hero::after {
  position: absolute;
  right: -13rem;
  bottom: -16rem;
  width: 42rem;
  height: 42rem;
  content: "";
  border: 1px dashed rgba(216, 200, 180, 0.2);
  border-radius: 50%;
}

.credential-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) 1.18fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.credential-document {
  position: relative;
  max-width: 520px;
  margin: 0;
  padding: clamp(0.7rem, 2vw, 1.2rem);
  color: var(--ink);
  border: 1px solid rgba(216, 200, 180, 0.5);
  background: var(--cream);
  box-shadow: 18px 24px 0 rgba(178, 158, 132, 0.16), 0 35px 70px rgba(0, 0, 0, 0.24);
  transform: rotate(-1.5deg);
  transition: transform 420ms var(--ease);
}

.credential-document:hover {
  transform: rotate(0) translateY(-6px);
}

.credential-document img {
  width: 100%;
  aspect-ratio: 0.706 / 1;
  object-fit: cover;
  object-position: top;
}

.credential-document figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.25rem 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credential-hero-copy {
  max-width: 760px;
}

.credential-status {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  padding: 0.42rem 0.65rem;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.credential-status.is-current { color: var(--cream); background: rgba(246, 246, 233, 0.08); }
.credential-status.is-record { color: var(--taupe-deep); background: rgba(178, 158, 132, 0.12); }
.credential-status.is-history { color: rgba(37, 52, 57, 0.68); background: rgba(37, 52, 57, 0.045); }

.credential-hero-copy .section-title {
  max-width: 10ch;
  margin-top: 1.5rem;
}

.credential-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2.5rem 0;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.credential-summary div {
  padding: 1rem;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.credential-summary dt,
.credential-summary dd {
  margin: 0;
}

.credential-summary dt {
  margin-bottom: 0.45rem;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credential-summary dd {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.credential-ledger {
  position: relative;
  overflow: hidden;
}

.credential-ledger-head {
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.credential-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.15rem;
  margin: 1.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.credential-key span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.credential-key i {
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.key-current { color: var(--ink); background: var(--ink); }
.key-record { color: var(--taupe-deep); background: var(--taupe-deep); }
.key-history { color: rgba(37, 52, 57, 0.46); }

.credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.credential-record {
  position: relative;
  display: grid;
  min-height: 690px;
  grid-template-rows: auto 210px 1fr auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  overflow: hidden;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  background: rgba(246, 246, 233, 0.58);
  transition: background 320ms var(--ease), transform 320ms var(--ease);
}

.credential-record:hover {
  z-index: 2;
  background: var(--cream-deep);
  transform: translateY(-5px);
}

.credential-record::after {
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: 17rem;
  height: 17rem;
  content: "";
  border: 1px dashed rgba(37, 52, 57, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.credential-record > * {
  position: relative;
  z-index: 1;
}

.credential-record header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.credential-number {
  color: var(--taupe-deep);
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
}

/* Specimen plate: every mark is mounted on the same white ground at the same
   ratio, so four different vendor logos read as one register rather than four
   stray PNGs floating on cream. */
.credential-mark {
  position: relative;
  display: grid;
  height: 100%;
  margin: 0;
  padding: 1.75rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(37, 52, 57, 0.18);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 10px 26px rgba(37, 52, 57, 0.07);
}

/* Registration ticks, the drafting language used elsewhere on the site */
.credential-mark::before,
.credential-mark::after {
  position: absolute;
  width: 12px;
  height: 12px;
  content: "";
  pointer-events: none;
  opacity: 0.5;
}

.credential-mark::before {
  top: 9px;
  left: 9px;
  border-top: 1px solid var(--taupe-deep);
  border-left: 1px solid var(--taupe-deep);
}

.credential-mark::after {
  right: 9px;
  bottom: 9px;
  border-right: 1px solid var(--taupe-deep);
  border-bottom: 1px solid var(--taupe-deep);
}

.credential-mark img {
  width: auto;
  max-width: 76%;
  max-height: 72%;
  object-fit: contain;
  transition: transform 420ms var(--ease);
}

.credential-record:hover .credential-mark img { transform: scale(1.04); }

/* The NHBRC entry is a scanned page, not a mark: it fills its plate edge to edge. */
.credential-mark.is-document {
  padding: 0;
}

.credential-mark.is-document img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: 50% 4%;
  transform: none;
}

.credential-record:hover .credential-mark.is-document img { transform: scale(1.03); }

.credential-record .credential-status.is-current {
  color: var(--ink);
  background: var(--taupe);
}

.credential-record-copy h3 {
  max-width: 17ch;
  margin-bottom: 1.6rem;
  font-size: clamp(2rem, 3.6vw, 4rem);
}

.credential-record-copy dl {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line-light);
}

.credential-record-copy dl div {
  display: grid;
  grid-template-columns: minmax(110px, 0.58fr) 1.42fr;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-light);
}

.credential-record-copy dt,
.credential-record-copy dd {
  margin: 0;
}

.credential-record-copy dt {
  color: var(--taupe-deep);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credential-record-copy dd {
  font-size: 0.88rem;
  text-align: right;
}

.credential-action {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credential-action.is-note {
  color: rgba(37, 52, 57, 0.66);
  border-top-color: var(--line-light);
}

.credential-record.is-historical .credential-mark img {
  filter: grayscale(0.35) saturate(0.75);
}

.credential-disclaimer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  color: var(--cream);
  background: var(--ink);
}

.credential-disclaimer > span {
  color: var(--mint);
  font-family: var(--font-mono);
}

.credential-disclaimer p {
  max-width: 80ch;
  margin: 0;
  color: rgba(246, 246, 233, 0.76);
  font-size: 0.88rem;
}

@media (max-width: 1080px) {
  .proof-ribbon-grid { grid-template-columns: 1fr; }
  .proof-ribbon-intro { min-height: 230px; }
  .proof-ribbon-intro h2 { max-width: 12ch; }
  .proof-ribbon-items a { min-height: 240px; }

  .credential-hero-grid { grid-template-columns: minmax(240px, 0.8fr) 1.2fr; gap: 3rem; }
  .credential-record { min-height: 650px; }
}

@media (max-width: 820px) {
  .preloader-sheet { width: calc(100vw - 2rem); }
  .preloader-drawing { min-height: 190px; }
  .preloader-building { right: 7%; transform: scale(0.78); }
  .preloader-gear { left: 5%; width: 58px; height: 58px; }

  .proof-ribbon-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-ribbon-items a { min-height: 220px; border-bottom: 1px solid rgba(246, 246, 233, 0.16); }

  .reference-stage { min-height: 700px; padding: 2rem; }
  .reference-slide { min-height: 620px; }
  .reference-slide blockquote { margin-top: 3.2rem; font-size: clamp(2.2rem, 7.4vw, 3.8rem); }
  .reference-attribution { align-items: flex-start; flex-direction: column; }
  .reference-navigation { grid-template-columns: 1fr; }
  .reference-tabs { grid-template-columns: 1fr; }
  .reference-tab { min-height: 64px; border-bottom: 1px solid var(--line-light); }
  .reference-arrows { grid-template-columns: repeat(2, 1fr); }
  .reference-arrows button { min-width: 0; border-top: 1px solid var(--line-light); }

  .credential-hero-grid { grid-template-columns: 1fr; }
  .credential-document { width: min(90%, 520px); margin-inline: auto; }
  .credential-grid { grid-template-columns: 1fr; }
  .credential-record { min-height: 0; }
}

@media (max-width: 560px) {
  .preloader-coordinate { font-size: 0.72rem; }
  .preloader-drawing img { width: 90%; }
  .preloader-caption { align-items: flex-start; flex-direction: column; }
  .preloader-caption strong { align-self: flex-end; }

  .proof-ribbon-items { grid-template-columns: 1fr; }
  .proof-ribbon-items a { min-height: 180px; }

  .reference-stage { min-height: 670px; padding: 1.35rem; }
  .reference-slide { min-height: 610px; }
  .reference-slide blockquote { margin-bottom: 2rem; font-size: clamp(2rem, 10vw, 3rem); }
  .reference-counter { top: 1.3rem; right: 1.3rem; }
  .reference-attribution span { line-height: 1.5; }

  .credential-summary { grid-template-columns: 1fr; }
  .credential-record { grid-template-rows: auto 180px 1fr auto; padding: 1rem; }
  .credential-record header { align-items: flex-start; flex-direction: column; }
  .credential-record-copy dl div { grid-template-columns: 1fr; gap: 0.25rem; }
  .credential-record-copy dd { text-align: left; }
  .credential-disclaimer { grid-template-columns: auto 1fr; }
  .credential-disclaimer .text-link { grid-column: 1 / -1; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .site-preloader { display: none !important; }
  .is-preloading body { overflow: auto; }
  .reference-slide.is-active { animation: none; }
  .credential-document,
  .credential-record,
  .credential-mark img,
  .proof-ribbon-items a { transform: none !important; transition: none !important; }
}
