@font-face {
  font-family: "DTI Seasons";
  src: url("assets/fonts/dti-seasons-latin-ext.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
}

@font-face {
  font-family: "DTI Seasons";
  src: url("assets/fonts/dti-seasons.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
}

@font-face {
  font-family: "DTI Montserrat";
  src: url("assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "DTI Montserrat";
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  --font-display: "DTI Seasons", Georgia, serif;
  --font-sans: "DTI Montserrat", Arial, sans-serif;
  --ink: #18343a;
  --ink-soft: #42585c;
  --teal-1000: #03333f;
  --teal-950: #043f4e;
  --teal-900: #064b5a;
  --teal-800: #075664;
  --teal-700: #0a6372;
  --umbrella-canopy-edge: var(--teal-800);
  --teal-200: #bcdadd;
  --teal-100: #deebeb;
  --gold-600: #de9e31;
  --gold-500: #f5b84f;
  --gold-300: #f7d899;
  --paper: #f3f1eb;
  --paper-bright: #faf9f6;
  --paper-deep: #e9e4da;
  --white: #fff;
  --line: #dbe3e0;
  --shadow-sm: 0 14px 40px rgba(3, 63, 78, 0.08);
  --shadow-lg: 0 24px 70px rgba(3, 63, 78, 0.11);
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --content: 1264px;
  --header-height: 112px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
select,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 0.75rem 1rem;
  color: var(--teal-950);
  background: var(--gold-500);
  border-radius: 999px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1rem;
  color: var(--teal-700);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--gold-300);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

h1 {
  max-width: 950px;
  margin-bottom: 1.4rem;
  font-size: clamp(3.1rem, 7vw, 7rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 4.5vw, 4.8rem);
}

h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.1;
}

.lede {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.75;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(270px, 0.7fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}

.section-heading > :last-child {
  margin-bottom: 0.5rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.82rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--gold {
  color: var(--teal-1000);
  background: var(--gold-500);
}

.button--gold:hover {
  background: #ffc45f;
}

.button--teal {
  color: var(--white);
  background: var(--teal-900);
}

.button--teal:hover {
  background: var(--teal-700);
}

.button--outline {
  color: var(--teal-950);
  background: transparent;
  border-color: rgba(4, 63, 78, 0.35);
}

.button--outline:hover {
  background: var(--teal-100);
  border-color: var(--teal-700);
}

.button--light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.button--light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.button__arrow {
  font-size: 1.1em;
  transition: transform 180ms ease;
}

.button:hover .button__arrow {
  transform: translateX(3px);
}

/* Header */
.site-header {
  --header-top: var(--teal-950);
  --header-edge: var(--teal-1000);
  --header-pattern: var(--gold-300);
  --pattern-color: var(--header-pattern);
  --pattern-opacity: 0.48;
  --pattern-size: min(820px, 70vw) auto;
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  color: var(--white);
  background: linear-gradient(180deg, var(--header-top), var(--header-edge));
  border-bottom: 0;
  isolation: isolate;
}

.home-page .site-header {
  --header-edge: var(--umbrella-canopy-edge);
  position: fixed;
  right: 0;
  left: 0;
  background: transparent;
  transition: background-color 220ms ease;
}

.home-page .site-header.is-scrolled,
.home-page.menu-open .site-header {
  background-color: var(--teal-950);
}

.site-header__inner {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo,
.brand__lockup {
  width: clamp(185px, 17vw, 236px);
  height: auto;
  flex: 0 0 auto;
}

.brand__mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: left center;
  border-radius: 50%;
}

.brand__name {
  display: grid;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.13rem;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.brand__name small {
  margin-top: 0.22rem;
  color: var(--gold-300);
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding-inline: clamp(12px, 1.15vw, 18px);
  color: var(--teal-950);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  right: 24%;
  bottom: 4px;
  left: 24%;
  height: 3px;
  background: var(--gold-500);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #956514;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  gap: 0.35rem;
}

.header-cluster {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-self: end;
  gap: 0.35rem;
  padding: 8px;
  background: color-mix(in srgb, var(--white) 96%, var(--paper-bright));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 26, 34, 0.11), 0 2px 6px rgba(0, 26, 34, 0.06);
}

.header-cluster .button {
  min-height: 48px;
  padding-inline: 1.15rem;
}

.header-cluster .button--light {
  color: var(--teal-950);
  border-color: rgba(4, 63, 78, 0.16);
}

.header-cluster .button--light:hover {
  color: var(--white);
  background: var(--teal-700);
  border-color: var(--teal-700);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--teal-950);
  background: var(--white);
  border: 0;
  border-radius: 50%;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  --pattern-color: var(--gold-300);
  --pattern-opacity: 0.7;
  --pattern-size: cover;
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header-height));
  color: var(--white);
  background:
    radial-gradient(
      ellipse 76% 64% at 50% 45%,
      rgba(10, 110, 121, 0.34) 0,
      rgba(7, 86, 100, 0.14) 50%,
      transparent 75%
    ),
    radial-gradient(circle at 18% 30%, rgba(247, 216, 153, 0.08), transparent 35%),
    radial-gradient(circle at 82% 25%, rgba(245, 184, 79, 0.1), transparent 34%),
    linear-gradient(125deg, #03333f 0%, #064b5a 36%, #075d67 55%, #054956 77%, #033843 100%);
}

.home-page .hero {
  min-height: 100svh;
}

.hero::before {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  background:
    linear-gradient(90deg, rgba(3, 51, 63, 0.2) 0, transparent 17%, transparent 83%, rgba(3, 51, 63, 0.16) 100%),
    linear-gradient(0deg, rgba(3, 51, 63, 0.3) 0, transparent 27%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  content: "";
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100svh - var(--header-height));
  grid-template-columns: 1fr;
  place-items: center;
  padding-block: clamp(2.75rem, 5vw, 4.5rem) clamp(4.75rem, 7vw, 6rem);
}

.home-page .hero__inner {
  min-height: 100svh;
  padding-top: calc(var(--header-height) + clamp(2.75rem, 5vw, 4.5rem));
}

.hero__constellation {
  position: relative;
  display: grid;
  width: 100%;
  place-items: center;
  gap: clamp(0.8rem, 1.6vw, 1.25rem);
}

.hero__tagline {
  min-height: 1.4em;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.7rem, 1vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.hero__tagline.is-branch-name {
  color: var(--gold-300);
}

.hero-orbit {
  --orbit-duration: 84s;
  --orbit-node-width: clamp(88px, 12.2svh, 112px);
  --orbit-node-height: clamp(64px, 8.75svh, 80px);
  --spotlight-entry: 1.18;
  --spotlight-cruise: 1.46;
  --spotlight-peak: 1.62;
  position: relative;
  justify-self: center;
  width: min(92vw, calc(100svh - var(--header-height) - 112px), 680px);
  aspect-ratio: 1;
  isolation: isolate;
}

.hero-orbit__halo {
  position: absolute;
  z-index: 0;
  inset: 24%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014) 44%, transparent 74%);
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  pointer-events: none;
}

.hero-orbit__core {
  position: absolute;
  z-index: 3;
  inset: 29%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.72);
  background: color-mix(in srgb, var(--teal-1000) 72%, transparent);
  border: 1px solid rgba(247, 216, 153, 0.26);
  border-radius: 50%;
  box-shadow: 0 24px 68px rgba(3, 42, 52, 0.3);
  text-align: center;
  text-decoration: none;
  animation: dti-core-aura 6s ease-in-out infinite;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-orbit__core:hover,
.hero-orbit__core:focus-visible {
  background: color-mix(in srgb, var(--teal-900) 86%, transparent);
  border-color: var(--gold-300);
  transform: scale(1.025);
}

.hero-orbit__core:focus-visible,
.hero-orbit__link:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: 4px;
}

.hero-orbit__dti-lockup {
  display: block;
  width: min(100%, 215px);
  height: auto;
  animation: dti-lockup-breathe 6s ease-in-out infinite;
}

.hero-orbit__list {
  position: absolute;
  z-index: 2;
  inset: 0;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  list-style: none;
  pointer-events: none;
  animation: dti-orbit-turn var(--orbit-duration) linear infinite;
}

.hero-orbit__list::before {
  position: absolute;
  inset: 8.5%;
  background: conic-gradient(
    from -18deg,
    transparent 0deg,
    rgba(245, 184, 79, 0.035) 18deg,
    rgba(247, 216, 153, 0.18) 56deg,
    rgba(245, 184, 79, 0.12) 94deg,
    rgba(247, 216, 153, 0.04) 132deg,
    transparent 162deg 190deg,
    rgba(245, 184, 79, 0.06) 214deg,
    rgba(247, 216, 153, 0.2) 252deg,
    rgba(245, 184, 79, 0.1) 292deg,
    rgba(247, 216, 153, 0.025) 328deg,
    transparent 360deg
  );
  border-radius: 50%;
  content: "";
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.45px), #fff calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.45px), #fff calc(100% - 1px));
}

.hero-orbit__item {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: rotate(var(--orbit-angle));
}

.hero-orbit__item:nth-child(1) { --spotlight-delay: -47.25s; --mobile-arrival-delay: 0.16s; }
.hero-orbit__item:nth-child(2) { --spotlight-delay: -57.75s; --mobile-arrival-delay: 0.44s; }
.hero-orbit__item:nth-child(3) { --spotlight-delay: -68.25s; --mobile-arrival-delay: 0.72s; }
.hero-orbit__item:nth-child(4) { --spotlight-delay: -78.75s; --mobile-arrival-delay: 1s; }
.hero-orbit__item:nth-child(5) { --spotlight-delay: -5.25s; --mobile-arrival-delay: 1.28s; }
.hero-orbit__item:nth-child(6) { --spotlight-delay: -15.75s; --mobile-arrival-delay: 1.56s; }
.hero-orbit__item:nth-child(7) { --spotlight-delay: -26.25s; --mobile-arrival-delay: 1.84s; }
.hero-orbit__item:nth-child(8) { --spotlight-delay: -36.75s; --mobile-arrival-delay: 2.12s; }

.hero-orbit__anchor {
  position: absolute;
  top: 50%;
  right: 1.5%;
  display: block;
  width: var(--orbit-node-width);
  height: var(--orbit-node-height);
  pointer-events: none;
  transform: translateY(-50%) rotate(var(--orbit-angle-inverse));
}

.hero-orbit__counter {
  display: block;
  width: 100%;
  height: 100%;
  animation: dti-orbit-counter var(--orbit-duration) linear infinite;
}

.hero-orbit__link {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  overflow: visible;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  padding: 0.3rem;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  box-shadow: 0 10px 26px rgba(3, 42, 52, 0.24);
  text-decoration: none;
  animation: dti-branch-spotlight var(--orbit-duration) linear infinite;
  animation-delay: var(--spotlight-delay);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hero-orbit__link:hover,
.hero-orbit__link:focus-visible {
  z-index: 5;
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 13px 32px rgba(3, 42, 52, 0.34);
  transform: scale(1.1);
}

.hero-orbit__link > img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
  mix-blend-mode: screen;
}

.hero-orbit__link--safa { background: #15738b; }
.hero-orbit__link--anwar { background: #6b2837; }
.hero-orbit__link--nur { background: #c97272; }
.hero-orbit__link--mustafa {
  background: #f7fbfc;
  border-color: rgba(21, 159, 211, 0.38);
}
.hero-orbit__link--youth { background: #0f8b84; }
.hero-orbit__link--pathways { background: #fffdf8; }
.hero-orbit__link--hanan {
  background: #fff8f1;
  border-color: rgba(211, 72, 111, 0.36);
}
.hero-orbit__link--timbuktu { background: #f6e9e7; }

.hero-orbit__link--pathways > img,
.hero-orbit__link--hanan > img,
.hero-orbit__link--mustafa > img {
  mix-blend-mode: normal;
}

.hero-orbit__rosette {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  overflow: hidden;
  background: #972c24;
  border-radius: 50%;
  isolation: isolate;
}

.hero-orbit__rosette img {
  position: absolute;
  top: 0;
  right: 0;
  width: 178px;
  height: 58px;
  max-width: none;
  object-fit: contain;
  object-position: right center;
  mix-blend-mode: screen;
}

.hero-orbit:hover .hero-orbit__list,
.hero-orbit:focus-within .hero-orbit__list,
.hero-orbit:hover .hero-orbit__counter,
.hero-orbit:focus-within .hero-orbit__counter,
.hero-orbit:hover .hero-orbit__link,
.hero-orbit:focus-within .hero-orbit__link,
.hero-orbit:hover .hero-orbit__core,
.hero-orbit:focus-within .hero-orbit__core,
.hero-orbit:hover .hero-orbit__dti-lockup,
.hero-orbit:focus-within .hero-orbit__dti-lockup,
.hero-orbit:hover .hero-orbit__link > img,
.hero-orbit:focus-within .hero-orbit__link > img,
.hero-orbit:hover .hero-orbit__rosette,
.hero-orbit:focus-within .hero-orbit__rosette,
.hero-orbit:hover .hero-orbit__item::before,
.hero-orbit:focus-within .hero-orbit__item::before {
  animation-play-state: paused;
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  bottom: 2rem;
  left: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero__scroll::after {
  width: 1px;
  height: 28px;
  margin-top: 0.5rem;
  background: var(--gold-500);
  content: "";
}

@keyframes dti-orbit-turn {
  to { transform: rotate(1turn); }
}

@keyframes dti-orbit-counter {
  to { transform: rotate(-1turn); }
}

@keyframes dti-core-aura {
  0%, 100% {
    box-shadow: 0 24px 68px rgba(3, 42, 52, 0.3), 0 0 0 0 rgba(245, 184, 79, 0.13);
  }
  50% {
    box-shadow: 0 30px 90px rgba(3, 42, 52, 0.38), 0 0 0 20px rgba(245, 184, 79, 0);
  }
}

@keyframes dti-lockup-breathe {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(245, 184, 79, 0));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(245, 184, 79, 0.2));
    transform: scale(1.035);
  }
}

@keyframes dti-branch-spotlight {
  0%, 33.333%, 66.667%, 100% {
    box-shadow: 0 10px 26px rgba(3, 42, 52, 0.24), 0 0 0 rgba(247, 216, 153, 0);
    scale: 1;
  }
  36% {
    box-shadow: 0 12px 30px rgba(3, 42, 52, 0.26), 0 0 5px rgba(247, 216, 153, 0.06);
    scale: var(--spotlight-entry);
  }
  41.667%, 58.333% {
    box-shadow: 0 14px 34px rgba(3, 42, 52, 0.28), 0 0 10px rgba(247, 216, 153, 0.09);
    scale: var(--spotlight-cruise);
  }
  46%, 54% {
    box-shadow: 0 16px 38px rgba(3, 42, 52, 0.3), 0 0 16px rgba(247, 216, 153, 0.12);
    scale: var(--spotlight-peak);
  }
  64% {
    box-shadow: 0 12px 30px rgba(3, 42, 52, 0.26), 0 0 5px rgba(247, 216, 153, 0.06);
    scale: var(--spotlight-entry);
  }
}

@keyframes dti-mobile-constellation-arrive {
  0% {
    opacity: 0.58;
    scale: 0.9;
  }
  68% {
    opacity: 1;
    scale: 1.055;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}

@keyframes dti-mobile-connection-arrive {
  0% {
    opacity: 0;
    transform: scaleX(0.08);
  }
  62% {
    opacity: 0.58;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes dti-mobile-core-arrive {
  0% {
    opacity: 0.7;
    scale: 0.94;
  }
  62% {
    opacity: 1;
    scale: 1.025;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}

/* Pathfinder */
.pathfinder {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--paper);
}

.pathfinder::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100% - 40px, var(--content));
  height: 1px;
  background: var(--line);
  content: "";
  transform: translateX(-50%);
}

.decision-tree {
  overflow: hidden;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.decision-tree__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  gap: 3rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  color: var(--white);
  background: var(--teal-950);
}

.decision-tree__top h3 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.decision-tree__top p {
  align-self: end;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.decision-tree__body {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.45fr);
  min-height: 430px;
}

.decision-step {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--paper-deep);
  border-right: 1px solid var(--line);
}

.decision-step__number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1.5rem;
  place-items: center;
  color: var(--teal-950);
  background: var(--gold-500);
  border-radius: 50%;
  font-weight: 900;
}

.decision-step h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.35;
}

.path-options {
  display: grid;
  gap: 0.65rem;
}

.path-option {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  color: var(--ink);
  text-align: left;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.path-option:hover,
.path-option[aria-pressed="true"] {
  color: var(--white);
  background: var(--teal-700);
  border-color: var(--teal-700);
  transform: translateX(3px);
}

.decision-results {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.decision-results__empty {
  max-width: 570px;
}

.decision-results__empty h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.decision-results__empty p {
  color: var(--ink-soft);
}

.recommendations {
  display: grid;
  gap: 1rem;
}

.recommendation {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
}

.logo-well {
  display: grid;
  width: 100%;
  height: 78px;
  overflow: hidden;
  place-items: center;
  padding: 0.65rem;
  background: var(--logo-surface, var(--teal-900));
  border-radius: 0.55rem;
  isolation: isolate;
}

.logo-well img,
.branch-logo {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.logo-well--matte img,
.logo-matte {
  mix-blend-mode: screen;
}

.logo-well:not(.logo-well--dti):not(.logo-well--text):not(.logo-well--timbuktu):not(.logo-well--pathways):not(.logo-well--hanan):not(.logo-well--mustafa) img {
  mix-blend-mode: screen;
}

.logo-well--text {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
}

.logo-well--dti img,
.logo-clean {
  mix-blend-mode: normal;
}

.logo-well--safa { --logo-surface: #0c6175; }
.logo-well--anwar { --logo-surface: #6b2837; }
.logo-well--nur { --logo-surface: #85585c; }
.logo-well--mustafa { --logo-surface: #f7fbfc; }
.logo-well--youth { --logo-surface: #0a6f70; }
.logo-well--pathways { --logo-surface: #fffdf8; }
.logo-well--hanan { --logo-surface: #fff8f1; }
.logo-well--timbuktu { --logo-surface: var(--paper-deep); }
.logo-well--dti { --logo-surface: var(--teal-950); }

.recommendation .logo-well {
  align-self: stretch;
}

.recommendation h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.recommendation p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

.recommendation a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--teal-700);
  font-size: 0.78rem;
  font-weight: 850;
}

/* Branches */
.branches {
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.branch-list {
  display: grid;
  gap: 1rem;
}

.branch-card {
  --branch-accent: var(--teal-700);
  --branch-tint: var(--teal-100);
  position: relative;
  display: grid;
  min-height: 215px;
  grid-template-columns: 180px minmax(0, 1.15fr) minmax(180px, 0.6fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.2rem, 2.8vw, 2.2rem);
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(100deg, var(--branch-tint) 0, var(--paper) 42%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.branch-card::before {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--branch-accent);
  content: "";
}

.branch-card::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 48%,
    color-mix(in srgb, var(--branch-accent) 32%, transparent) 72%,
    var(--branch-accent) 100%
  );
  content: "";
  pointer-events: none;
  -webkit-mask-image: url("assets/patterns/islamic-girih-lattice.svg");
  mask-image: url("assets/patterns/islamic-girih-lattice.svg");
  -webkit-mask-position: right center;
  mask-position: right center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 360px auto;
  mask-size: 360px auto;
  opacity: 0.48;
}

.branch-card > * {
  position: relative;
  z-index: 1;
}

.branch-card:hover {
  border-color: color-mix(in srgb, var(--branch-accent) 45%, transparent);
  box-shadow: var(--shadow-sm);
  transform: translateX(6px);
}

.branch-card:nth-child(even) {
  margin-left: 4vw;
}

.branch-card__identity {
  display: grid;
  min-width: 0;
  gap: 0.7rem;
}

.branch-card__identity .branch-logo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.branch-card__identity .logo-well {
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 0.55rem;
}

.branch-card__identity span,
.branch-card__meta {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.branch-card__copy h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.65rem, 2.5vw, 2.4rem);
}

.branch-card__copy p,
.branch-card__meta p {
  margin: 0;
  color: var(--ink-soft);
}

.branch-card__meta {
  line-height: 1.6;
}

.branch-card__arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: var(--branch-accent);
  border-radius: 50%;
  font-size: 1.3rem;
}

.branch-card--safa { --branch-accent: #15738b; --branch-tint: #e8f4f7; --logo-surface: #0c6175; }
.branch-card--anwar { --branch-accent: #6b2837; --branch-tint: #f4e8eb; --logo-surface: #6b2837; }
.branch-card--nur { --branch-accent: #c97272; --branch-tint: #fbeaea; --logo-surface: #85585c; }
.branch-card--mustafa { --branch-accent: #159fd3; --branch-tint: #e8f5fa; --logo-surface: #f7fbfc; }
.branch-card--youth { --branch-accent: #0f8b84; --branch-tint: #e5f4f2; --logo-surface: #0a6f70; }
.branch-card--pathways { --branch-accent: #15ad95; --branch-tint: #e8f7f4; --logo-surface: #fffdf8; }
.branch-card--hanan { --branch-accent: #d3486f; --branch-tint: #fff0f3; --logo-surface: #fff8f1; }
.branch-card--timbuktu { --branch-accent: #972c24; --branch-tint: #f6e9e7; --logo-surface: var(--paper-deep); }

.all-branches-link {
  margin-top: 2rem;
  text-align: right;
}

/* Story / Impact */
.story {
  padding-block: clamp(5rem, 10vw, 9rem);
  color: var(--white);
  background: var(--teal-950);
}

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.story__copy .lede {
  color: rgba(255, 255, 255, 0.72);
}

.story__image-wrap {
  position: relative;
  margin: 0;
}

.story__image-wrap::before {
  position: absolute;
  top: -18px;
  right: -18px;
  bottom: 18px;
  left: 18px;
  border: 1px solid rgba(245, 184, 79, 0.45);
  border-radius: var(--radius-md);
  content: "";
}

.story__image-wrap img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 48%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.story__caption {
  position: relative;
  display: inline-block;
  margin: -1rem 0 0 1rem;
  padding: 0.65rem 0.9rem;
  color: var(--teal-1000);
  background: var(--gold-500);
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.impact-item {
  padding: 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.impact-item:last-child {
  border-right: 0;
}

.impact-item strong {
  display: block;
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1;
}

.impact-item span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 720;
}

/* Cross-site CTA */
.support-panel {
  padding-block: clamp(5rem, 10vw, 8rem);
  background: var(--paper);
}

.support-panel__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  gap: 3rem;
  align-items: center;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 5rem);
  color: var(--white);
  background: linear-gradient(115deg, var(--teal-950), #0b6678);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.support-panel__inner::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, transparent 12%, rgba(245, 184, 79, 0.78));
  content: "";
  pointer-events: none;
  -webkit-mask: url("assets/patterns/islamic-girih-lattice.svg") top right / 680px auto no-repeat;
  mask: url("assets/patterns/islamic-girih-lattice.svg") top right / 680px auto no-repeat;
  opacity: 0.2;
}

.support-panel__inner > * {
  position: relative;
  z-index: 1;
}

.support-panel h2 {
  margin-bottom: 0;
}

.support-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.support-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Documentary photography
   Real DTI moments sit below the identity heroes in quiet, editorial plates. */
.branch-moment {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 7rem);
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--branch-tint) 88%, white), var(--branch-tint));
  border-block: 1px solid color-mix(in srgb, var(--branch-accent) 16%, transparent);
  isolation: isolate;
}

.branch-moment::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: -8vw;
  width: min(1100px, 86vw);
  height: 100%;
  background: radial-gradient(
    ellipse 88% 110% at 100% 50%,
    color-mix(in srgb, var(--branch-accent) 78%, transparent) 0%,
    color-mix(in srgb, var(--branch-accent) 38%, transparent) 52%,
    transparent 92%
  );
  content: "";
  pointer-events: none;
  -webkit-mask: url("assets/patterns/islamic-girih-lattice.svg") top right / auto 125% no-repeat;
  mask: url("assets/patterns/islamic-girih-lattice.svg") top right / auto 125% no-repeat;
  opacity: 0.1;
}

.branch-moment--umbrella {
  --branch-accent: var(--gold-500);
  --branch-deep: var(--teal-950);
  --branch-tint: #e5f1f0;
}

.branch-moment__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.branch-moment__copy {
  max-width: 35rem;
}

.branch-moment__copy h2 {
  margin-bottom: 1.25rem;
}

.branch-moment__copy p:not(.eyebrow) {
  color: var(--ink-soft);
}

.media-plate {
  --media-position: 50% 50%;
  position: relative;
  overflow: hidden;
  margin: 0;
  color: var(--white);
  background: var(--branch-deep, var(--teal-900));
  border: 1px solid color-mix(in srgb, var(--branch-accent, var(--gold-500)) 38%, transparent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.media-plate::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 5px;
  background: var(--branch-accent, var(--gold-500));
  content: "";
}

.media-plate img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: var(--media-position);
}

.media-plate__visual {
  position: relative;
  overflow: hidden;
}

.media-plate__visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--branch-tint) 54%, transparent) 0%,
      color-mix(in srgb, var(--branch-tint) 18%, transparent) 14%,
      transparent 32%
    ),
    linear-gradient(180deg, transparent 76%, color-mix(in srgb, var(--branch-deep) 12%, transparent));
  content: "";
  pointer-events: none;
}

.media-plate figcaption {
  padding: 0.9rem 1rem 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 720;
  line-height: 1.45;
}

.documentary-gallery {
  --branch-accent: var(--gold-500);
  --branch-deep: var(--teal-950);
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--paper-deep);
}

.documentary-gallery__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 1rem;
  align-items: stretch;
}

.documentary-gallery__lead,
.documentary-gallery__stack {
  min-height: 0;
}

.documentary-gallery__lead {
  display: grid;
  grid-template-rows: 1fr auto;
}

.documentary-gallery__lead img {
  height: 100%;
  min-height: 480px;
  aspect-ratio: auto;
}

.documentary-gallery__stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

.documentary-gallery__stack .media-plate img {
  aspect-ratio: 16 / 7;
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.publication-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--branch-accent) 20%, var(--line));
  border-top: 4px solid var(--branch-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.publication-card__cover {
  display: grid;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  padding: 1rem;
  place-items: center;
  background: color-mix(in srgb, var(--branch-tint) 78%, white);
}

.publication-card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.publication-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.publication-card h3 {
  margin: 1.25rem 1.25rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.publication-card p {
  margin: 0 1.25rem 1.4rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

/* Inner page hero */
.page-hero {
  --pattern-color: var(--gold-300);
  --pattern-opacity: 0.72;
  --pattern-size: min(820px, 70vw) auto;
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 7rem);
  color: var(--white);
  background:
    linear-gradient(180deg, var(--teal-1000) 0, transparent 72px),
    var(--teal-950);
}

.page-hero::after {
  position: absolute;
  top: 0;
  right: -10vw;
  width: 45vw;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 184, 79, 0.12));
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
  content: "";
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

/* Shared Fatwa girih signature
   One lattice unifies DTI; CSS variables recolour it for every branch. */
.site-header,
.hero,
.page-hero,
.story,
.application-steps,
.site-footer {
  isolation: isolate;
}

.story,
.application-steps,
.site-footer {
  position: relative;
  overflow: hidden;
}

.site-header::before,
.hero::after,
.page-hero::before,
.story::before,
.application-steps::before,
.site-footer::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 24%,
    color-mix(in srgb, var(--pattern-color) 46%, transparent) 58%,
    var(--pattern-color) 100%
  );
  content: "";
  pointer-events: none;
  -webkit-mask-image: url("assets/patterns/islamic-girih-lattice.svg");
  mask-image: url("assets/patterns/islamic-girih-lattice.svg");
  -webkit-mask-position: top right;
  mask-position: top right;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: var(--pattern-size);
  mask-size: var(--pattern-size);
  opacity: var(--pattern-opacity);
}

/* The homepage header is a transparent overlay at the top. Its separate
   lattice stays dormant in every state so the hero remains the only field. */
.home-page .site-header::before {
  opacity: 0;
}

/* The centred homepage constellation uses the lattice as a full illuminated field. */
.hero::after {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--pattern-color) 24%, transparent) 0,
    color-mix(in srgb, var(--pattern-color) 52%, transparent) 72px,
    color-mix(in srgb, var(--pattern-color) 88%, transparent) 38%,
    color-mix(in srgb, var(--pattern-color) 62%, transparent) 78%,
    color-mix(in srgb, var(--pattern-color) 42%, transparent) 100%
  );
  -webkit-mask-position: center center;
  mask-position: center center;
  -webkit-mask-size: cover;
  mask-size: cover;
  opacity: var(--pattern-opacity);
}

.story {
  --pattern-color: var(--gold-300);
  --pattern-opacity: 0.56;
  --pattern-size: 760px auto;
}

.application-steps {
  --pattern-color: var(--gold-300);
  --pattern-opacity: 0.62;
  --pattern-size: 620px auto;
}

.site-footer {
  --pattern-color: var(--gold-300);
  --pattern-opacity: 0.58;
  --pattern-size: 680px auto;
}

.story > .shell,
.application-steps__grid,
.site-footer__main,
.site-footer__base {
  position: relative;
  z-index: 1;
}

.site-footer__legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: flex-end;
  padding-block: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 720;
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: var(--white);
}

.page-hero h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 6vw, 6rem);
}

.page-hero .lede {
  color: rgba(255, 255, 255, 0.72);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
  font-weight: 740;
}

.crumbs a {
  color: var(--gold-300);
}

/* Public information pages */
.legal-hero {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.legal-hero h1 {
  max-width: 900px;
}

.legal-section {
  padding-block: clamp(3.5rem, 7vw, 7rem);
  background: var(--paper);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.65fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid color-mix(in srgb, var(--teal-800) 18%, transparent);
  border-top: 4px solid var(--gold-500);
  border-radius: 0 0 24px 24px;
  background: color-mix(in srgb, var(--white) 86%, var(--gold-100));
  box-shadow: 0 18px 50px rgba(3, 56, 67, 0.08);
}

.legal-aside h2 {
  margin: 0.65rem 0 1rem;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.legal-aside > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.legal-facts {
  display: grid;
  gap: 1rem;
  margin: 1.7rem 0 0;
}

.legal-facts div {
  padding-top: 1rem;
  border-top: 1px solid rgba(3, 56, 67, 0.12);
}

.legal-facts dt {
  margin-bottom: 0.3rem;
  color: var(--teal-800);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.legal-facts dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.legal-prose {
  min-width: 0;
}

.legal-prose section {
  padding-block: 0.25rem clamp(2rem, 4vw, 3.25rem);
}

.legal-prose section + section {
  padding-top: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid rgba(3, 56, 67, 0.14);
}

.legal-prose h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
}

.legal-prose p {
  max-width: 76ch;
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: clamp(0.96rem, 1.6vw, 1.05rem);
  line-height: 1.85;
}

.legal-prose a,
.legal-facts a {
  color: var(--teal-700);
  font-weight: 750;
  text-decoration-color: color-mix(in srgb, var(--gold-500) 70%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.legal-prose a:hover,
.legal-facts a:hover {
  color: var(--teal-950);
}

/* Directory */
.directory {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.filter-bar {
  position: sticky;
  z-index: 10;
  top: calc(var(--header-height) + 14px);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.5rem;
  padding: 0.75rem;
  background: rgba(250, 249, 246, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.filter-button {
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 800;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--teal-900);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.institution-card {
  --card-accent: var(--teal-700);
  grid-column: span 4;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.institution-card:nth-child(5n + 1),
.institution-card:nth-child(5n + 2) {
  grid-column: span 6;
}

.institution-card[hidden] {
  display: none;
}

.institution-card__logo {
  display: grid;
  min-height: 180px;
  padding: 1.4rem;
  place-items: center;
  background: var(--logo-surface, var(--teal-900));
  border-bottom: 5px solid var(--card-accent);
  isolation: isolate;
}

.institution-card__logo img {
  width: 100%;
  height: 135px;
  max-width: 100%;
  max-height: 135px;
  object-fit: contain;
  object-position: center;
}

.logo-surface--matte img,
.logo-surface--matte-on-brand img {
  mix-blend-mode: screen;
}

.institution-card__logo:not(.logo-surface--dti):not(.logo-surface--timbuktu):not(.logo-surface--pathways):not(.logo-surface--hanan):not(.logo-surface--mustafa) > img {
  mix-blend-mode: screen;
}

.logo-surface--safa { --logo-surface: #0c6175; }
.logo-surface--anwar { --logo-surface: #6b2837; }
.logo-surface--nur { --logo-surface: #85585c; }
.logo-surface--mustafa { --logo-surface: #f7fbfc; }
.logo-surface--youth { --logo-surface: #0a6f70; }
.logo-surface--pathways { --logo-surface: #fffdf8; }
.logo-surface--hanan { --logo-surface: #fff8f1; }
.logo-surface--dti { --logo-surface: var(--teal-950); }
.logo-surface--timbuktu { --logo-surface: #f6e9e7; }

.logo-surface--dti img {
  mix-blend-mode: normal;
}

.logo-well--hanan img,
.logo-surface--hanan img,
.logo-well--mustafa img,
.logo-surface--mustafa img {
  mix-blend-mode: normal;
}

.timbuktu-lockup {
  display: flex;
  width: min(100%, 430px);
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  color: #312d3c;
}

.timbuktu-lockup__name {
  min-width: 0;
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 0.78;
  letter-spacing: -0.035em;
}

.timbuktu-lockup__name strong {
  display: block;
  font-weight: 600;
}

.timbuktu-lockup__rosette {
  position: relative;
  width: 88px;
  height: 88px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #972c24;
  border-radius: 50%;
  isolation: isolate;
}

.timbuktu-lockup__rosette img {
  position: absolute;
  top: 0;
  right: 0;
  width: 269px;
  height: 88px;
  max-width: none;
  object-fit: contain;
  object-position: right center;
  mix-blend-mode: screen;
}

.recommendation .timbuktu-lockup {
  gap: 0.45rem;
}

.recommendation .timbuktu-lockup__name {
  font-size: 1rem;
}

.recommendation .timbuktu-lockup__rosette {
  width: 46px;
  height: 46px;
}

.recommendation .timbuktu-lockup__rosette img {
  width: 141px;
  height: 46px;
}

.institution-card__logo--text {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  text-align: center;
}

.institution-card__logo--pathways {
  background: #fffdf8;
}

.institution-card__logo--hanan {
  background: #fff8f1;
}

.institution-card__body {
  padding: 1.5rem;
}

.institution-card__type {
  margin-bottom: 0.8rem;
  color: var(--card-accent);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.institution-card__body p {
  min-height: 5.2em;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.institution-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.institution-card__links a:not(.button) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--teal-700);
  font-size: 0.75rem;
  font-weight: 820;
}

/* Dar al-Safa */
.safa-hero {
  --pattern-color: #15738b;
  color: var(--ink);
  background: #e8f4f7;
}

.safa-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 4rem;
  align-items: center;
}

.safa-hero .crumbs {
  color: var(--ink-soft);
}

.safa-hero .crumbs a {
  color: #0c6c83;
}

.safa-hero__logo {
  padding: 1.5rem;
  background: #0c6175;
  border: 1px solid rgba(21, 115, 139, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.safa-hero__logo img {
  width: 100%;
  mix-blend-mode: screen;
}

/* Shared branch mini-sites */
.branch-site {
  --branch-accent: var(--teal-700);
  --branch-deep: var(--teal-900);
  --branch-tint: var(--teal-100);
  --logo-surface: var(--teal-900);
}

.branch-site--safa {
  --branch-accent: #15738b;
  --branch-deep: #0c6175;
  --branch-tint: #e8f4f7;
  --logo-surface: #0c6175;
}

.branch-site--anwar {
  --branch-accent: #6b2837;
  --branch-deep: #57202d;
  --branch-tint: #f4e8eb;
  --logo-surface: #6b2837;
}

.branch-site--nur {
  --branch-accent: #c97272;
  --branch-deep: #85585c;
  --branch-tint: #fbeaea;
  --logo-surface: #85585c;
}

.branch-site--mustafa {
  --branch-accent: #159fd3;
  --branch-deep: #0b6d8d;
  --branch-tint: #e8f5fa;
  --logo-surface: #0b6d8d;
}

.branch-site--youth {
  --branch-accent: #0f8b84;
  --branch-deep: #0a6f70;
  --branch-tint: #e5f4f2;
  --logo-surface: #0a6f70;
}

.branch-site--pathways {
  --branch-accent: #15ad95;
  --branch-deep: #0b625c;
  --branch-tint: #e8f7f4;
  --branch-gold: #a98159;
  --logo-surface: #fffdf8;
}

.branch-site--hanan {
  --branch-accent: #d3486f;
  --branch-deep: #07515d;
  --branch-tint: #fff0f3;
  --branch-gold: #c89b2b;
  --logo-surface: #fff8f1;
}

.branch-site--timbuktu {
  --branch-accent: #972c24;
  --branch-deep: #74251f;
  --branch-tint: #f6e9e7;
  --logo-surface: #f6e9e7;
}

.branch-site .site-header {
  --header-top: color-mix(in srgb, var(--branch-deep) 92%, #03333f);
  --header-edge: color-mix(in srgb, var(--branch-deep) 58%, var(--branch-tint));
  --header-pattern: color-mix(in srgb, var(--branch-accent) 36%, white);
}

.branch-site:not(.branch-site--timbuktu) .site-header {
  --header-pattern: color-mix(in srgb, var(--branch-accent) 48%, white);
  --pattern-opacity: 0.7;
}

.branch-site .header-cluster {
  box-shadow:
    0 8px 22px color-mix(in srgb, var(--branch-deep) 16%, transparent),
    0 2px 6px color-mix(in srgb, var(--branch-deep) 8%, transparent);
}

.branch-site .site-nav a::after {
  background: var(--branch-accent);
}

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

.branch-site .header-cluster .button--light:hover {
  background: var(--branch-deep);
  border-color: var(--branch-deep);
}

.branch-page-hero {
  --pattern-color: var(--branch-accent);
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.7), transparent 34%),
    var(--branch-tint);
}

/* The header and first hero form one patterned canopy. The dark bridge is
   deliberately contained within the hero so it never travels with the sticky
   header or covers the branch sub-navigation. */
.branch-site main > .page-hero:first-child {
  --pattern-color: var(--branch-accent);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--branch-deep) 58%, var(--branch-tint)) 0,
      color-mix(in srgb, var(--branch-deep) 34%, var(--branch-tint)) 32px,
      color-mix(in srgb, var(--branch-deep) 14%, var(--branch-tint)) 74px,
      color-mix(in srgb, var(--branch-deep) 4%, var(--branch-tint)) 132px,
      transparent 200px
    ),
    radial-gradient(ellipse 62% 78% at 88% 16%, rgba(255, 255, 255, 0.72), transparent 72%),
    var(--branch-tint);
}

.branch-site main > .page-hero:first-child::after {
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--branch-accent) 16%, transparent));
}

.branch-page-hero::after {
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--branch-accent) 16%, transparent));
}

.branch-site .page-hero::before {
  background: radial-gradient(
    ellipse 86% 110% at 100% 50%,
    color-mix(in srgb, var(--pattern-color) 72%, transparent) 0%,
    color-mix(in srgb, var(--pattern-color) 36%, transparent) 48%,
    transparent 88%
  );
  -webkit-mask-position: top right;
  mask-position: top right;
  -webkit-mask-size: clamp(920px, 86vw, 1500px) auto;
  mask-size: clamp(920px, 86vw, 1500px) auto;
  opacity: 0.58;
}

.branch-site:not(.branch-site--timbuktu) .page-hero::before {
  opacity: 0.78;
}

/* One continuous light field runs behind each branch story. Individual
   sections stay legible, but their colour no longer lands as stacked slabs. */
.branch-site main {
  background:
    radial-gradient(circle at 92% 34%, color-mix(in srgb, var(--branch-accent) 10%, transparent), transparent 34%),
    linear-gradient(
      180deg,
      var(--branch-tint) 0%,
      color-mix(in srgb, var(--branch-tint) 72%, var(--paper)) 28%,
      color-mix(in srgb, var(--branch-tint) 34%, var(--paper)) 56%,
      color-mix(in srgb, var(--branch-tint) 56%, var(--paper)) 78%,
      var(--paper) 100%
    );
}

.branch-site .programme-intro,
.branch-site .branch-programmes,
.branch-site .curriculum,
.branch-site .daily-life,
.branch-site .faqs,
.branch-site .branch-moment {
  background: transparent;
}

.branch-site .branch-moment {
  border-block: 0;
}

/* Documentary images read as part of the page rather than as a second card. */
.branch-site .branch-moment .media-plate {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.branch-site .branch-moment .media-plate::after {
  display: none;
}

.branch-site .branch-moment .media-plate__visual {
  border-radius: 1rem;
  box-shadow: 0 16px 42px color-mix(in srgb, var(--branch-deep) 14%, transparent);
}

.branch-site .branch-moment .media-plate img {
  aspect-ratio: 16 / 9;
}

.branch-site .branch-moment .media-plate figcaption {
  padding: 0.75rem 0 0;
  color: color-mix(in srgb, var(--branch-deep) 76%, var(--ink-soft));
}

.branch-page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.branch-page-hero .crumbs {
  color: var(--ink-soft);
}

.branch-page-hero .crumbs a,
.branch-page-hero .eyebrow {
  color: var(--branch-deep);
}

.branch-page-hero .lede {
  color: var(--ink-soft);
}

.branch-page-hero__logo {
  display: grid;
  width: min(100%, 470px);
  min-height: 390px;
  justify-self: end;
  overflow: hidden;
  padding: clamp(1.3rem, 3vw, 2.4rem);
  place-items: center;
  background: var(--logo-surface);
  border: 1px solid color-mix(in srgb, var(--branch-accent) 28%, transparent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.branch-page-hero__logo > img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.branch-page-hero__logo.logo-surface--hanan > img,
.branch-page-hero__logo.logo-surface--mustafa > img {
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.branch-page-hero__logo--paper {
  background: var(--branch-tint);
}

.branch-page-hero__logo--paper > img {
  mix-blend-mode: normal;
}

.branch-page-hero__logo--pathways {
  background: #fffdf8;
}

.official-branch-logo--pathways {
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
}

.branch-wordmark {
  display: grid;
  gap: 0.55rem;
  color: var(--white);
  text-align: center;
}

.branch-wordmark strong {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.86;
}

.branch-wordmark span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.branch-site .branch-subnav {
  background: var(--branch-deep);
}

.branch-programmes {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--paper);
}

.programme-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.programme-card {
  position: relative;
  min-height: 280px;
  padding: clamp(1.4rem, 2.8vw, 2rem);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--branch-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.programme-card__label {
  display: inline-flex;
  margin-bottom: 1.3rem;
  color: var(--branch-deep);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.programme-card h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
}

.programme-card p,
.programme-card li {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.programme-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.programme-card .text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.1rem;
  color: var(--branch-deep);
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.programme-card--note {
  background: color-mix(in srgb, var(--branch-tint) 64%, var(--white));
  border-color: color-mix(in srgb, var(--branch-accent) 30%, var(--line));
}

.programme-card__note {
  display: block;
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  color: var(--branch-deep);
  background: color-mix(in srgb, var(--branch-tint) 70%, var(--white));
  border-left: 3px solid var(--branch-accent);
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.55;
}

.programme-card--featured {
  color: var(--white);
  background: var(--branch-deep);
  border-color: var(--branch-deep);
}

.programme-card--featured .programme-card__label,
.programme-card--featured p,
.programme-card--featured li {
  color: rgba(255, 255, 255, 0.75);
}

.branch-site .life-card {
  border-top-color: var(--branch-accent);
}

.branch-site .life-card__icon {
  color: var(--white);
  background: var(--branch-deep);
}

.branch-site .application-steps {
  --pattern-color: var(--branch-tint);
  background: var(--branch-deep);
}

.branch-site .site-footer {
  --pattern-color: var(--branch-tint);
  background: var(--branch-deep);
}

.branch-site .site-footer h3 {
  color: var(--branch-tint);
}

.branch-site .eyebrow:not(.eyebrow--light),
.branch-site .fact-list dt {
  color: var(--branch-deep);
}

.branch-site .quote-block {
  background: var(--branch-deep);
}

.content-status {
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--branch-tint) 74%, var(--white));
  border: 1px solid color-mix(in srgb, var(--branch-accent) 32%, var(--line));
  border-left: 5px solid var(--branch-accent);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.content-status strong {
  color: var(--branch-deep);
}

.branch-page-hero .timbuktu-lockup {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.branch-page-hero .timbuktu-lockup__name {
  font-size: clamp(2.6rem, 4vw, 4rem);
}

.branch-page-hero .timbuktu-lockup__rosette {
  width: 118px;
  height: 118px;
}

.branch-page-hero .timbuktu-lockup__rosette img {
  width: 362px;
  height: 118px;
}

.safa-hero .lede {
  color: var(--ink-soft);
}

.branch-subnav {
  position: sticky;
  z-index: 20;
  top: var(--header-height);
  overflow-x: auto;
  color: var(--white);
  background: #0c6175;
  scrollbar-color: rgba(255, 255, 255, 0.42) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.branch-subnav::-webkit-scrollbar {
  display: block;
  height: 4px;
}

.branch-subnav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.branch-subnav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
}

.branch-subnav__inner {
  display: flex;
  min-width: max-content;
  gap: 1.4rem;
  align-items: center;
  padding-block: 0.85rem;
}

.branch-subnav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.branch-site main section[id] {
  scroll-margin-top: calc(var(--header-height) + 76px);
}

.branch-subnav a:hover {
  color: var(--white);
}

.programme-intro,
.curriculum,
.daily-life,
.faqs {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.programme-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 7vw, 7rem);
}

.fact-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.fact-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  color: var(--teal-700);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 0;
  color: var(--ink-soft);
}

.programme-intro__copy p {
  color: var(--ink-soft);
}

.quote-block {
  margin-top: 2rem;
  padding: 1.6rem;
  color: var(--white);
  background: #0c6175;
  border-radius: var(--radius-md);
}

.quote-block p {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  line-height: 1.2;
}

.curriculum {
  background: var(--paper);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  overflow-x: auto;
  padding: 1rem 0 1.5rem;
  scrollbar-color: var(--teal-700) var(--paper-deep);
}

.timeline__item {
  position: relative;
  min-height: 280px;
  padding: 3rem 1.1rem 1.2rem;
  border-top: 1px solid var(--teal-200);
  border-right: 1px solid var(--line);
}

.timeline__item::before {
  position: absolute;
  top: -7px;
  left: 1.1rem;
  width: 13px;
  height: 13px;
  background: var(--gold-500);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--teal-700);
  content: "";
}

.timeline__item strong {
  display: block;
  margin-bottom: 0.6rem;
  color: #0c6175;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
}

.timeline__item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.track-note {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.life-card {
  padding: 1.6rem;
  background: var(--paper);
  border-top: 4px solid #15738b;
  border-radius: var(--radius-md);
}

.life-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 1.5rem;
  place-items: center;
  color: var(--teal-950);
  background: var(--gold-500);
  border-radius: 50%;
  font-weight: 900;
}

.life-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.life-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.application-steps {
  padding-block: clamp(4rem, 8vw, 7rem);
  color: var(--white);
  background: #0b6074;
}

.application-steps__grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 4rem;
}

.numbered-steps {
  display: grid;
  gap: 1rem;
  counter-reset: steps;
}

.numbered-step {
  position: relative;
  padding: 1.3rem 1.3rem 1.3rem 4.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  counter-increment: steps;
}

.numbered-step::before {
  position: absolute;
  top: 1.3rem;
  left: 1.3rem;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--teal-1000);
  background: var(--gold-500);
  border-radius: 50%;
  content: counter(steps);
  font-size: 0.76rem;
  font-weight: 900;
}

.numbered-step h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.numbered-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

.faqs {
  background: var(--paper-bright);
}

.faq-list {
  max-width: 880px;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.35rem 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.faq-question::after {
  color: var(--teal-700);
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
}

.faq-answer {
  max-width: 720px;
  padding-bottom: 1.4rem;
  color: var(--ink-soft);
}

.faq-answer[hidden] {
  display: none;
}

/* Forms and journeys */
.journey {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.journey-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 4rem;
  align-items: start;
}

.journey-aside {
  position: sticky;
  top: calc(var(--header-height) + 30px);
}

.journey-aside p {
  color: var(--ink-soft);
}

.journey-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.journey-panel h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.field {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}

.field label {
  font-size: 0.75rem;
  font-weight: 850;
}

.field select,
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(24, 52, 58, 0.28);
  border-radius: var(--radius-sm);
}

.field small {
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.field textarea {
  resize: vertical;
}

.field-optional {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 650;
}

.route-result {
  margin-top: 1.5rem;
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
}

.route-result[hidden] {
  display: none;
}

.route-result h3 {
  margin-bottom: 0.55rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.route-result p {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.route-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.payment-readiness {
  margin-bottom: 1.4rem;
  padding: 0.9rem 1rem;
  color: var(--ink-soft);
  background: #fff8e8;
  border: 1px solid #efd9a5;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
}

.payment-readiness[data-tone="ready"] {
  color: #114d3d;
  background: #eef9f4;
  border-color: #b8ddcf;
}

.payment-readiness[data-tone="warning"] {
  color: #75252c;
  background: #fff1f1;
  border-color: #e7bfc2;
}

.payment-readiness p {
  margin: 0;
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.payment-actions .button {
  flex: 1 1 220px;
}

.field--honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.bank-details {
  display: grid;
  grid-template-columns: minmax(105px, 0.55fr) minmax(0, 1fr);
  gap: 0.45rem 1rem;
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.bank-details dt {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.bank-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.contact-section .journey-grid {
  margin-top: 1rem;
}

/* Registration application */
.registration-hero h1 {
  max-width: 850px;
}

.registration-hero .lede {
  max-width: 810px;
}

.registration-journey {
  background:
    radial-gradient(circle at 90% 10%, rgba(245, 184, 79, 0.09), transparent 30%),
    var(--paper-bright);
}

.registration-journey .journey-grid {
  grid-template-columns: minmax(250px, 0.64fr) minmax(0, 1.36fr);
}

.registration-aside h2 {
  font-size: clamp(2.15rem, 4vw, 3.3rem);
}

.admissions-sequence {
  display: grid;
  gap: 0;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  counter-reset: admissions;
}

.admissions-sequence li {
  position: relative;
  display: grid;
  min-height: 84px;
  padding: 0.25rem 0 1.25rem 3.5rem;
  counter-increment: admissions;
}

.admissions-sequence li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: var(--teal-950);
  background: var(--gold-500);
  border-radius: 50%;
  content: counter(admissions);
  font-size: 0.75rem;
  font-weight: 900;
}

.admissions-sequence li:not(:last-child)::after {
  position: absolute;
  top: 2.55rem;
  bottom: 0.2rem;
  left: 1.15rem;
  width: 1px;
  background: linear-gradient(var(--gold-500), rgba(245, 184, 79, 0.1));
  content: "";
}

.admissions-sequence strong {
  font-size: 0.86rem;
}

.admissions-sequence span {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.registration-panel {
  padding: clamp(1.25rem, 3.5vw, 2.8rem);
  background: #f6f4ef;
  border-color: rgba(6, 75, 90, 0.16);
  box-shadow: var(--shadow-lg);
}

.registration-panel [hidden] {
  display: none !important;
}

.registration-panel__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.registration-panel__intro .eyebrow,
.registration-panel__intro h2 {
  margin-bottom: 0;
}

.registration-secure-note {
  max-width: 240px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.45;
  text-align: right;
}

.registration-secure-note span {
  color: var(--gold-600);
  font-size: 1rem;
}

.registration-progress {
  position: relative;
  display: grid;
  margin: 0 0 2.4rem;
  padding: 0;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.registration-progress::before {
  position: absolute;
  z-index: 0;
  top: 1.15rem;
  right: 10%;
  left: 10%;
  height: 1px;
  background: rgba(6, 75, 90, 0.18);
  content: "";
}

.registration-progress li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  color: #6f7f82;
}

.registration-progress span {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  background: #e2e6e4;
  border: 4px solid #f6f4ef;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
}

.registration-progress b {
  font-size: 0.63rem;
}

.registration-progress .is-current,
.registration-progress .is-complete {
  color: var(--teal-950);
}

.registration-progress .is-current span {
  color: var(--teal-950);
  background: var(--gold-500);
}

.registration-progress .is-complete span {
  color: var(--white);
  background: var(--teal-700);
}

.registration-step[hidden] {
  display: none;
}

.registration-step__heading {
  margin-bottom: 1.8rem;
}

.registration-step__heading > span {
  color: var(--teal-700);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.registration-step__heading h3 {
  margin: 0.35rem 0 0.6rem;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
}

.registration-step__heading p {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.registration-choice-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.registration-panel .field label,
.registration-panel .field legend {
  color: var(--teal-950);
  font-size: 0.72rem;
  font-weight: 850;
}

.registration-panel .field select,
.registration-panel .field input,
.registration-panel .field textarea {
  border-color: rgba(6, 75, 90, 0.24);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.registration-panel .field select:disabled,
.registration-panel .field input:disabled {
  color: #7e8b8c;
  background: #eceeeb;
}

.registration-radio-field {
  min-width: 0;
  margin: 0 0 1.4rem;
  padding: 0;
  border: 0;
}

.radio-cards {
  display: grid;
  gap: 0.55rem;
}

.radio-card {
  position: relative;
  display: grid;
  min-height: 52px;
  padding: 0.75rem 0.9rem 0.75rem 2.75rem;
  align-content: center;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(6, 75, 90, 0.24);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.radio-card:has(input:checked) {
  background: #ecf6f5;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 1px var(--teal-700);
}

.radio-card input {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  width: 1rem;
  height: 1rem;
  margin: 0;
  transform: translateY(-50%);
}

.radio-card span {
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.4;
}

.field-help {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.programme-facts {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 1.25rem;
  overflow: hidden;
  background: var(--teal-950);
  border-radius: var(--radius-md);
}

.programme-facts::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  background-image: url("assets/patterns/islamic-girih-lattice.svg");
  background-size: 220px;
  content: "";
  opacity: 0.07;
}

.programme-facts[hidden] {
  display: none;
}

.programme-facts h4 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.8rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.programme-facts dl {
  position: relative;
  z-index: 1;
  display: grid;
  margin: 0;
  gap: 0.7rem;
}

.programme-facts dl > div {
  display: grid;
  gap: 0.15rem;
  grid-template-columns: 90px minmax(0, 1fr);
}

.programme-facts dt {
  color: var(--gold-300);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.programme-facts dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.7rem;
  line-height: 1.5;
}

.programme-facts__status {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0;
  padding-top: 0.8rem;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.68rem;
  font-weight: 750;
}

.programme-facts__status[data-tone="assessment"] {
  color: var(--gold-300);
}

.programme-facts__status[data-tone="enquiry"] {
  color: #d8eceb;
}

.conditional-contact {
  margin: 0 0 1.5rem;
  padding: 1.25rem;
  background: #edf3f1;
  border: 1px solid rgba(6, 75, 90, 0.16);
  border-radius: var(--radius-md);
}

.conditional-contact[hidden] {
  display: none;
}

.conditional-contact legend {
  padding-inline: 0.35rem;
  color: var(--teal-950);
  font-size: 0.78rem;
  font-weight: 900;
}

.conditional-contact > p {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.eligibility-message {
  margin-bottom: 1.4rem;
  padding: 1rem;
  color: #772733;
  background: #fff0f2;
  border: 1px solid #e7b9c1;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.eligibility-message[hidden] {
  display: none;
}

.eligibility-message ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

.registration-step__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.application-review {
  margin-bottom: 1.4rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.application-review dl {
  display: grid;
  margin: 0;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.application-review dl > div {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.application-review dt {
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.application-review dd {
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
  font-size: 0.72rem;
  font-weight: 700;
}

.application-review__note {
  margin: 1rem 0 0;
  color: var(--teal-700);
  font-size: 0.72rem;
  font-weight: 750;
}

.acknowledgement-list {
  display: grid;
  gap: 0.75rem;
}

.check-row {
  display: grid;
  padding: 0.85rem;
  align-items: start;
  gap: 0.7rem;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.check-row:has(input:checked) {
  background: #edf7f5;
  border-color: var(--teal-700);
}

.check-row input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
}

.check-row span {
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.55;
}

.check-row a {
  color: var(--teal-700);
  font-weight: 800;
}

.submission-boundary {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: #fff8e8;
  border: 1px solid #efd9a5;
  border-radius: var(--radius-sm);
}

.submission-boundary strong {
  color: var(--teal-950);
  font-size: 0.72rem;
}

.submission-boundary p {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.registration-result[data-tone="success"] {
  border-left-color: #2d896d;
}

.registration-result[data-tone="warning"] {
  border-left-color: var(--gold-500);
}

.registration-result[data-tone="error"] {
  border-left-color: #a63b49;
}

.registration-terms {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--paper-deep);
}

.registration-terms__grid {
  display: grid;
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
}

.registration-terms h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.registration-terms__grid > div:first-child > p:last-child,
.registration-terms__list p {
  color: var(--ink-soft);
}

.registration-terms__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.registration-terms__list article {
  padding: 1.4rem;
  border-top: 1px solid rgba(6, 75, 90, 0.22);
}

.registration-terms__list h3 {
  margin-bottom: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
}

.registration-terms__list p {
  margin-bottom: 0;
  font-size: 0.72rem;
}

.contact-methods .campaign-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.contact-methods .campaign-card .button {
  width: 100%;
  margin-top: auto;
  padding-inline: 0.75rem;
  overflow-wrap: anywhere;
}

.contact-location {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.contact-location h3 {
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0;
}

.contact-location p,
.contact-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.contact-location a,
.section-18a-link a {
  color: var(--teal-700);
  font-weight: 800;
}

.notice {
  padding: 1rem 1.1rem;
  color: var(--ink-soft);
  background: #fff8e8;
  border: 1px solid #efd9a5;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.campaign-card {
  padding: 1.5rem;
  color: var(--white);
  background: var(--teal-900);
  border-radius: var(--radius-md);
}

.campaign-card:nth-child(2) {
  background: #126675;
}

.campaign-card:nth-child(3) {
  color: var(--teal-1000);
  background: var(--gold-500);
}

.campaign-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.campaign-card p {
  margin: 0;
  color: inherit;
  font-size: 0.82rem;
  opacity: 0.8;
}

/* Footer */
.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--teal-1000);
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(250px, 1.3fr) repeat(3, minmax(130px, 0.6fr));
  gap: 3rem;
  padding-block: 4rem;
}

.site-footer__brand p {
  max-width: 440px;
  margin-top: 1.4rem;
  font-size: 0.86rem;
}

.site-footer .brand__lockup {
  width: min(100%, 260px);
}

.site-footer h3 {
  color: var(--gold-300);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.site-footer__base {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.67rem;
}

.site-footer__base p {
  margin: 0;
}

/* Responsive */
@media (max-width: 1080px) {
  .site-nav,
  .header-actions .button--light {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
  }

  .brand__lockup {
    width: 180px;
  }

  .branch-page-hero .timbuktu-lockup {
    flex-direction: column;
    gap: 0.8rem;
  }

  .branch-page-hero .timbuktu-lockup__name {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    text-align: center;
  }

  .branch-page-hero .timbuktu-lockup__rosette {
    width: 92px;
    height: 92px;
  }

  .branch-page-hero .timbuktu-lockup__rosette img {
    width: 282px;
    height: 92px;
  }

  .header-cluster {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav.is-open {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: calc(100svh - var(--header-height));
    overflow-y: auto;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 2rem max(20px, calc((100vw - var(--content)) / 2));
    background: linear-gradient(160deg, var(--header-top), var(--header-edge));
    z-index: 110;
  }

  .branch-site .site-nav.is-open {
    background: linear-gradient(
      160deg,
      var(--header-top),
      color-mix(in srgb, var(--branch-deep) 82%, var(--branch-accent))
    );
  }

  .site-nav.is-open a {
    min-height: 0;
    padding-block: 1rem;
    padding-inline: 0;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 500;
  }

  .site-nav.is-open a:hover,
  .site-nav.is-open a[aria-current="page"] {
    color: var(--gold-300);
  }

  .branch-site .site-nav.is-open a:hover,
  .branch-site .site-nav.is-open a[aria-current="page"] {
    color: var(--header-pattern);
  }

  .site-nav.is-open a::after {
    display: none;
  }

  .hero__inner {
    min-height: calc(100svh - var(--header-height));
    grid-template-columns: 1fr;
  }

  .hero-orbit {
    --orbit-node-width: 94px;
    --orbit-node-height: 68px;
    --spotlight-entry: 1.14;
    --spotlight-cruise: 1.36;
    --spotlight-peak: 1.48;
    width: min(92vw, calc(100svh - var(--header-height) - 108px), 560px);
  }

  .hero-orbit__core {
    inset: 29%;
    padding: 0.9rem;
  }

  .hero-orbit__dti-lockup {
    width: min(100%, 180px);
  }

  .hero-orbit__rosette {
    width: 50px;
    height: 50px;
  }

  .hero-orbit__rosette img {
    width: 153px;
    height: 50px;
  }

  .hero__scroll {
    display: none;
  }

  .branch-card {
    grid-template-columns: 150px minmax(0, 1fr) auto;
  }

  .branch-card__meta {
    display: none;
  }

  .institution-card,
  .institution-card:nth-child(5n + 1),
  .institution-card:nth-child(5n + 2) {
    grid-column: span 6;
  }

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

  .site-footer__main {
    grid-template-columns: 1.2fr repeat(2, 0.7fr);
  }

  .site-footer__main > :last-child {
    grid-column: 2;
  }
}

@media (max-width: 780px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .legal-aside {
    position: static;
  }

  .site-footer__legal {
    justify-content: flex-start;
  }

  .registration-journey .journey-grid,
  .registration-terms__grid {
    grid-template-columns: 1fr;
  }

  .registration-aside {
    position: static;
  }

  .registration-aside .admissions-sequence,
  .registration-aside .contact-location {
    display: none;
  }

  .registration-aside h2 {
    font-size: 2.3rem;
  }

  .registration-panel__intro {
    align-items: start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .registration-secure-note {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 88px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .brand__mark {
    width: 42px;
    height: 42px;
  }

  .brand__name {
    font-size: 0.98rem;
  }

  .brand__lockup {
    width: 142px;
  }

  .site-header .brand,
  .footer-links a {
    min-height: 44px;
  }

  .site-header::before {
    -webkit-mask-position: right center;
    mask-position: right center;
    -webkit-mask-size: auto 240%;
    mask-size: auto 240%;
    opacity: 0.32;
  }

  .branch-site:not(.branch-site--timbuktu) .site-header::before {
    opacity: 0.54;
  }

  .hero::after,
  .page-hero::before,
  .story::before,
  .application-steps::before,
  .site-footer::before {
    background: radial-gradient(
      ellipse 118% 86% at 100% 48%,
      var(--pattern-color) 0%,
      var(--pattern-color) 40%,
      color-mix(in srgb, var(--pattern-color) 72%, transparent) 60%,
      color-mix(in srgb, var(--pattern-color) 28%, transparent) 78%,
      transparent 100%
    );
    -webkit-mask-position: right center;
    mask-position: right center;
    -webkit-mask-size: auto 112%;
    mask-size: auto 112%;
    opacity: 0.3;
  }

  .hero::after {
    background: radial-gradient(
      ellipse 96% 76% at 50% 46%,
      color-mix(in srgb, var(--pattern-color) 34%, transparent) 0 20%,
      color-mix(in srgb, var(--pattern-color) 78%, transparent) 58%,
      color-mix(in srgb, var(--pattern-color) 44%, transparent) 100%
    );
    -webkit-mask-position: center center;
    mask-position: center center;
    -webkit-mask-size: cover;
    mask-size: cover;
    opacity: 0.5;
  }

  .branch-site .page-hero::before {
    background: radial-gradient(
      ellipse 105% 92% at 100% 34%,
      color-mix(in srgb, var(--pattern-color) 56%, transparent) 0%,
      color-mix(in srgb, var(--pattern-color) 24%, transparent) 54%,
      transparent 92%
    );
    -webkit-mask-position: right top;
    mask-position: right top;
    -webkit-mask-size: auto 138%;
    mask-size: auto 138%;
    opacity: 0.36;
  }

  .branch-site:not(.branch-site--timbuktu) .page-hero::before {
    opacity: 0.54;
  }

  .branch-site .media-plate__visual::after {
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--branch-tint) 34%, transparent) 0%,
      color-mix(in srgb, var(--branch-tint) 10%, transparent) 14%,
      transparent 30%
    );
  }

  .header-actions .button--gold {
    min-height: 44px;
    padding-inline: 0.9rem;
  }

  .filter-bar {
    position: static;
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    padding: 0.45rem;
    background: var(--paper-bright);
    border-radius: var(--radius-md);
    box-shadow: none;
    backdrop-filter: none;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: 0 0 auto;
    padding-inline: 0.85rem;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .section-heading,
  .hero__inner,
  .branch-page-hero__grid,
  .decision-tree__top,
  .decision-tree__body,
  .story__grid,
  .support-panel__inner,
  .safa-hero__grid,
  .programme-intro__grid,
  .branch-moment__grid,
  .documentary-gallery__grid,
  .application-steps__grid,
  .journey-grid {
    grid-template-columns: 1fr;
  }

  .registration-choice-grid,
  .application-review dl,
  .registration-terms__list {
    grid-template-columns: 1fr;
  }

  .registration-panel {
    padding: 1.15rem;
    border-radius: var(--radius-md);
  }

  .registration-progress b {
    font-size: 0.56rem;
  }

  .registration-step__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .registration-step__actions > span:empty {
    display: none;
  }

  .registration-step__actions .button {
    width: 100%;
  }

  .programme-facts dl > div {
    grid-template-columns: 1fr;
  }

  .documentary-gallery__lead img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .documentary-gallery__stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .documentary-gallery__stack .media-plate img {
    aspect-ratio: 4 / 3;
  }

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

  .branch-page-hero__logo {
    width: 100%;
    min-height: 300px;
    justify-self: stretch;
  }

  .branch-page-hero__logo > img {
    max-height: 250px;
  }

  .hero__inner {
    padding-block: 3rem 4.5rem;
  }

  .hero-orbit {
    --orbit-node-width: 82px;
    --orbit-node-height: 60px;
    --spotlight-entry: 1.12;
    --spotlight-cruise: 1.3;
    --spotlight-peak: 1.4;
    width: min(100%, 500px);
    justify-self: center;
  }

  .hero-orbit__core {
    inset: 29%;
  }

  .hero-orbit__dti-lockup {
    width: min(100%, 160px);
  }

  .hero-orbit__rosette {
    width: 44px;
    height: 44px;
  }

  .hero-orbit__rosette img {
    width: 135px;
    height: 44px;
  }

  .decision-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .path-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .recommendation {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .recommendation a {
    grid-column: 2;
  }

  .recommendation img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 62px;
  }

  .recommendation .logo-well {
    height: 68px;
  }

  .recommendation .logo-well img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  .branch-card,
  .branch-card:nth-child(even) {
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 1rem;
    margin-left: 0;
  }

  .branch-card__identity .logo-well {
    padding: 0.45rem;
  }

  .branch-card__identity .branch-logo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  .branch-card__identity span {
    display: block;
    font-size: 0.61rem;
    line-height: 1.35;
  }

  .branch-card__arrow {
    display: none;
  }

  .story__image-wrap {
    margin-right: 12px;
  }

  .impact-strip,
  .campaign-grid {
    grid-template-columns: 1fr;
  }

  .impact-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .support-panel__actions {
    justify-content: flex-start;
  }

  .institution-card,
  .institution-card:nth-child(5n + 1),
  .institution-card:nth-child(5n + 2) {
    grid-column: span 12;
  }

  .life-grid {
    grid-template-columns: 1fr;
  }

  .programme-card-grid {
    grid-template-columns: 1fr;
  }

  .journey-aside {
    position: static;
  }

  .site-footer__main {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__main > :last-child {
    grid-column: auto;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: clamp(2.85rem, 16vw, 4.3rem);
  }

  .brand__name small {
    display: none;
  }

  .site-header__inner {
    gap: 0.6rem;
  }

  .brand__lockup {
    width: 120px;
  }

  .header-actions .button--gold {
    font-size: 0.7rem;
  }

  .hero-orbit {
    --orbit-node-width: 82px;
    --orbit-node-height: 60px;
    width: min(100%, 350px);
    margin-top: 0;
  }

  .hero-orbit__link {
    padding: 0.22rem;
    border-radius: 13px;
    animation: none;
  }

  .hero-orbit__link > img,
  .hero-orbit__rosette {
    animation: dti-mobile-constellation-arrive 580ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--mobile-arrival-delay);
  }

  .hero::after {
    opacity: 0.44;
  }

  .hero-orbit__list,
  .hero-orbit__counter,
  .hero-orbit__core {
    animation: none;
  }

  .hero-orbit__list::before {
    opacity: 0.62;
  }

  .hero-orbit__item::before {
    position: absolute;
    top: 50%;
    right: calc(1.5% + var(--orbit-node-width) - 1px);
    left: 50%;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(247, 216, 153, 0.18) 38%,
      rgba(247, 216, 153, 0.72)
    );
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: scaleX(0.08);
    transform-origin: left center;
    animation: dti-mobile-connection-arrive 580ms ease-out both;
    animation-delay: var(--mobile-arrival-delay);
  }

  .hero-orbit__core {
    inset: 28.5%;
    gap: 0.4rem;
    padding: 0.65rem;
  }

  .hero-orbit__dti-lockup {
    width: min(100%, 116px);
    animation: dti-mobile-core-arrive 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .path-options {
    grid-template-columns: 1fr;
  }

  .decision-tree__body > .decision-results {
    display: none;
  }

  .path-option {
    position: relative;
    padding-right: 3rem;
  }

  .path-option::after {
    position: absolute;
    top: 50%;
    right: 1rem;
    display: grid;
    width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    color: var(--teal-700);
    background: color-mix(in srgb, var(--teal-100) 76%, var(--white));
    border-radius: 50%;
    content: "+";
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1;
    transform: translateY(-50%);
  }

  .path-option:hover,
  .path-option[aria-expanded="true"] {
    transform: none;
  }

  .path-option[aria-expanded="true"] {
    color: var(--white);
    background: var(--teal-700);
    border-color: var(--teal-700);
    border-bottom-color: transparent;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }

  .path-option[aria-expanded="true"]::after {
    color: var(--teal-950);
    background: var(--gold-500);
    content: "−";
  }

  .path-options > .decision-results--inline {
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: -0.65rem;
    padding: 0.7rem;
    background: color-mix(in srgb, var(--paper-bright) 94%, var(--gold-100));
    border: 1px solid var(--teal-700);
    border-top: 0;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 14px 28px rgba(3, 42, 52, 0.1);
  }

  .path-options .recommendations {
    gap: 0.65rem;
  }

  .path-options .recommendation {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.7rem;
    border-left-width: 3px;
  }

  .path-options .recommendation .logo-well {
    height: 58px;
    padding: 0.35rem;
  }

  .path-options .recommendation a {
    grid-column: 2;
  }

  .branch-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .branch-card__identity .branch-logo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  .branch-card__identity .logo-well {
    width: min(100%, 220px);
    height: 128px;
    aspect-ratio: auto;
    justify-self: start;
    padding: 0.45rem;
  }

  .branch-card__arrow {
    display: none;
  }

  .fact-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .branch-moment .media-plate img {
    aspect-ratio: 4 / 3;
  }

  .documentary-gallery__stack,
  .publication-grid {
    grid-template-columns: 1fr;
  }

  .branch-page-hero .timbuktu-lockup {
    flex-direction: column;
    gap: 1rem;
  }

  .branch-page-hero .timbuktu-lockup__name {
    font-size: clamp(2.45rem, 14vw, 3.5rem);
    text-align: center;
  }

  .branch-page-hero .timbuktu-lockup__rosette {
    width: 92px;
    height: 92px;
  }

  .branch-page-hero .timbuktu-lockup__rosette img {
    width: 282px;
    height: 92px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
  }

  .site-footer__main > :last-child {
    grid-column: auto;
  }

  .site-footer__base {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 359px),
  (max-width: 540px) and (max-height: 600px) and (orientation: portrait) {
  .hero-orbit {
    display: grid;
    width: 100%;
    aspect-ratio: auto;
    gap: 0.9rem;
    grid-template-rows: auto auto;
  }

  .hero-orbit__halo {
    display: none;
  }

  .hero-orbit__core {
    position: relative;
    inset: auto;
    width: min(46vw, 142px);
    aspect-ratio: 1;
    justify-self: center;
  }

  .hero-orbit__list {
    position: relative;
    inset: auto;
    display: grid;
    width: 100%;
    gap: 0.55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 0;
  }

  .hero-orbit__list::before,
  .hero-orbit__item::before {
    display: none;
  }

  .hero-orbit__item {
    position: relative;
    inset: auto;
    height: 54px;
    transform: none;
  }

  .hero-orbit__anchor {
    position: static;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .hero-orbit__counter {
    animation: none;
  }
}

@media (max-width: 1080px) and (max-height: 600px) {
  .hero__inner {
    padding-block: 1.5rem 3.5rem;
  }

  .home-page .hero__inner {
    padding-top: calc(var(--header-height) + 1.5rem);
  }

  .hero::after {
    opacity: 0.38;
  }

  .hero-orbit {
    --orbit-node-width: 72px;
    --orbit-node-height: 52px;
    --spotlight-peak: 1;
    width: min(72vw, calc(100svh - var(--header-height) - 40px), 360px);
  }

  .hero-orbit__link {
    padding: 0.18rem;
  }

  .hero-orbit__list,
  .hero-orbit__counter,
  .hero-orbit__link,
  .hero-orbit__core,
  .hero-orbit__dti-lockup,
  .hero-orbit__link > img,
  .hero-orbit__rosette,
  .hero-orbit__item::before {
    animation: none;
  }

  .hero-orbit__item::before {
    opacity: 0;
  }

  .hero__scroll {
    display: none;
  }
}

@media (max-width: 1080px) and (max-height: 600px) and (orientation: landscape) {
  .hero-orbit {
    display: grid;
    width: min(100%, 760px);
    aspect-ratio: auto;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    grid-template-columns: minmax(108px, 140px) minmax(0, 1fr);
  }

  .hero-orbit__halo {
    display: none;
  }

  .hero-orbit__core {
    position: relative;
    inset: auto;
    width: min(100%, 140px);
    aspect-ratio: 1;
    justify-self: center;
  }

  .hero-orbit__dti-lockup {
    width: min(100%, 112px);
    animation: dti-mobile-core-arrive 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .hero-orbit__list {
    position: relative;
    inset: auto;
    display: grid;
    width: 100%;
    gap: 0.45rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 0;
  }

  .hero-orbit__list::before,
  .hero-orbit__item::before {
    display: none;
  }

  .hero-orbit__item {
    position: relative;
    inset: auto;
    height: 52px;
    transform: none;
  }

  .hero-orbit__anchor {
    position: static;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .hero-orbit__counter,
  .hero-orbit__link {
    animation: none;
  }

  .hero-orbit__link > img,
  .hero-orbit__rosette {
    animation: dti-mobile-constellation-arrive 580ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--mobile-arrival-delay);
  }
}

@media (max-width: 540px) and (max-height: 600px) and (orientation: portrait) {
  .hero-orbit {
    width: 100%;
  }

  .hero-orbit__dti-lockup {
    animation: dti-mobile-core-arrive 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .hero-orbit__link > img,
  .hero-orbit__rosette {
    animation: dti-mobile-constellation-arrive 580ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--mobile-arrival-delay);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit__list,
  .hero-orbit__counter,
  .hero-orbit__link,
  .hero-orbit__core,
  .hero-orbit__dti-lockup,
  .hero-orbit__link > img,
  .hero-orbit__rosette,
  .hero-orbit__item::before {
    animation: none !important;
  }

  .hero-orbit__item::before {
    opacity: 0 !important;
  }

  .hero-orbit__core,
  .hero-orbit__link,
  .hero__tagline {
    transition: none !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Timbuktu Books: an illuminated catalogue rather than a generic shop grid. */
.timbuktu-storefront {
  --tb-oxblood: #74251f;
  --tb-seal: #972c24;
  --tb-plum: #312d3c;
  --tb-gold: #c7a15a;
  --tb-gold-pale: #ead8a9;
  --tb-folio: #f7f2e8;
  --tb-folio-bright: #fffdf8;
  --tb-blush: #f6e9e7;
  --tb-teal: #064b5a;
  --tb-line: #d9ccbd;
  --tb-muted: #6e625b;
  --tb-success: #17654e;
  --tb-danger: #8c342e;
  background: var(--tb-folio);
}

.timbuktu-storefront main {
  background:
    linear-gradient(rgba(116, 37, 31, 0.018) 1px, transparent 1px),
    var(--tb-folio);
  background-size: 100% 2rem;
}

.timbuktu-storefront h1,
.timbuktu-storefront h2,
.timbuktu-storefront h3 {
  text-wrap: balance;
}

.timbuktu-storefront button,
.timbuktu-storefront input,
.timbuktu-storefront select {
  border-radius: 0.3rem;
}

.timbuktu-storefront .site-header {
  --header-top: #4f1715;
  --header-edge: #74251f;
  --header-pattern: #c7a15a;
}

.tb-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(680px, 78vh, 860px);
  padding: clamp(4.5rem, 8vw, 8rem) 0 clamp(4rem, 7vw, 7rem);
  color: #fffaf0;
  background:
    radial-gradient(circle at 76% 22%, rgba(234, 216, 169, 0.2), transparent 19rem),
    linear-gradient(115deg, #4a1514 0%, var(--tb-oxblood) 52%, #341923 100%);
}

.tb-hero::before,
.tb-hero__pattern {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.tb-hero::before {
  background-image: url("assets/patterns/islamic-girih-lattice.svg");
  background-size: 780px auto;
  background-position: right -4rem top -5rem;
  opacity: 0.1;
  filter: sepia(1) saturate(0.7);
}

.tb-hero__pattern {
  background:
    linear-gradient(90deg, rgba(49, 45, 60, 0.32), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 14.5%, rgba(199, 161, 90, 0.08) 14.6%, transparent 14.8%);
}

.tb-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.68fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.tb-hero .crumbs {
  margin-bottom: 2rem;
  color: rgba(255, 250, 240, 0.72);
}

.tb-wordmark {
  position: relative;
  display: inline-grid;
  margin-bottom: 1.5rem;
  color: var(--tb-gold-pale);
  font-family: var(--font-display);
  line-height: 0.72;
  letter-spacing: -0.035em;
}

.tb-wordmark span,
.tb-wordmark strong {
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 400;
}

.tb-wordmark strong {
  padding-left: 1.2em;
}

.tb-wordmark i {
  position: absolute;
  right: -2.4rem;
  bottom: 0.45rem;
  width: 1.6rem;
  aspect-ratio: 1;
  border: 1px solid var(--tb-gold);
  transform: rotate(45deg);
}

.tb-hero .eyebrow {
  color: var(--tb-gold-pale);
}

.tb-hero h1 {
  max-width: 13ch;
  margin: 0.5rem 0 1rem;
  color: #fffdf8;
  font-size: clamp(3rem, 6.4vw, 6.4rem);
  line-height: 0.93;
}

.tb-hero .lede {
  max-width: 62ch;
  color: rgba(255, 250, 240, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.tb-hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  max-width: 42rem;
  margin-top: 2rem;
  background: var(--tb-folio-bright);
  box-shadow: 0 18px 38px rgba(25, 8, 10, 0.28);
}

.tb-hero-search input {
  min-width: 0;
  padding: 1rem 1.15rem;
  color: var(--tb-plum);
  background: transparent;
  border: 0;
}

.tb-hero-search button,
.tb-product-card__action,
.tb-cart footer button,
.tb-checkout-actions button,
.tb-product-detail__actions button,
.tb-dti-shelf button {
  padding: 0.9rem 1.1rem;
  color: #fff;
  background: var(--tb-oxblood);
  border: 1px solid var(--tb-oxblood);
  font-weight: 800;
  cursor: pointer;
}

.tb-hero-search button {
  color: var(--tb-plum);
  background: var(--tb-gold-pale);
  border: 0;
}

.tb-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 1.5rem;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tb-hero__facts strong {
  color: var(--tb-gold-pale);
  font-size: 1rem;
}

.tb-featured-folio {
  position: relative;
  width: min(100%, 430px);
  justify-self: end;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--tb-plum);
  background:
    linear-gradient(90deg, rgba(116, 37, 31, 0.055) 1px, transparent 1px),
    var(--tb-folio);
  background-size: 1.15rem 100%;
  border: 1px solid rgba(234, 216, 169, 0.7);
  box-shadow: 0 38px 80px rgba(29, 8, 12, 0.38);
  transform: rotate(1.1deg);
}

.tb-featured-folio::before,
.tb-featured-folio::after {
  content: "";
  position: absolute;
  inset: 0.65rem;
  border: 1px solid rgba(116, 37, 31, 0.25);
  pointer-events: none;
}

.tb-featured-folio::after {
  inset: 1rem;
  border-color: rgba(199, 161, 90, 0.55);
}

.tb-featured-folio > * {
  position: relative;
  z-index: 1;
}

.tb-featured-folio img {
  width: min(78%, 280px);
  height: auto;
  margin: 1.2rem auto 1.5rem;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(49, 45, 60, 0.2));
}

.tb-featured-folio h2 {
  margin: 0.2rem 0 0.5rem;
  color: var(--tb-oxblood);
  font-size: clamp(2rem, 3.3vw, 3rem);
}

.tb-featured-folio p,
.tb-shelf-mark {
  margin: 0;
  color: var(--tb-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tb-featured-folio .text-link {
  min-height: 2.75rem;
  padding: 0.5rem 0;
  color: var(--tb-oxblood);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-weight: 800;
  cursor: pointer;
}

.tb-folio-seal {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3.3rem;
  aspect-ratio: 1;
  background: var(--tb-seal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(151, 44, 36, 0.18);
  animation: tb-seal-breathe 4.8s ease-in-out infinite;
}

.tb-folio-seal::before {
  content: "TB";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--tb-gold-pale);
  font-family: var(--font-display);
}

@keyframes tb-seal-breathe {
  50% { box-shadow: 0 0 0 8px rgba(151, 44, 36, 0.08); }
}

.tb-shopbar {
  position: sticky;
  z-index: 18;
  top: var(--header-height);
  color: var(--tb-folio-bright);
  background: var(--tb-plum);
  border-bottom: 1px solid rgba(199, 161, 90, 0.45);
}

.tb-shopbar .shell {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  min-height: 4.2rem;
}

.tb-shopbar a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
}

.tb-shopbar button {
  margin-left: auto;
  padding: 0.55rem 0.85rem;
  color: var(--tb-plum);
  background: var(--tb-gold-pale);
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.tb-shopbar button span {
  display: inline-grid;
  min-width: 1.65rem;
  min-height: 1.65rem;
  margin-left: 0.45rem;
  place-items: center;
  color: #fff;
  background: var(--tb-oxblood);
  border-radius: 50%;
}

.tb-catalogue {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.tb-catalogue__heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.7fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--tb-line);
}

.tb-catalogue__heading h2 {
  margin: 0.25rem 0 0;
  color: var(--tb-plum);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.tb-catalogue__heading > p {
  margin: 0;
  color: var(--tb-muted);
}

.tb-catalogue__controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 2rem;
}

.tb-search-field,
.tb-sort,
.tb-field-grid label,
.tb-collection-fields label,
.tb-product-detail__actions label {
  display: grid;
  gap: 0.4rem;
  color: var(--tb-plum);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tb-search-field input,
.tb-sort select,
.tb-field-grid input,
.tb-field-grid select,
.tb-collection-fields select,
.tb-product-detail__actions input {
  min-height: 3.25rem;
  padding: 0.7rem 0.85rem;
  color: var(--tb-plum);
  background: var(--tb-folio-bright);
  border: 1px solid var(--tb-line);
}

.tb-filter-toggle {
  display: none;
}

.tb-catalogue__layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.tb-filters {
  align-self: start;
  padding: 1.25rem 0;
  border-block: 1px solid var(--tb-line);
}

.tb-filters__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tb-filters__head h3 {
  margin: 0;
  font-size: 1.65rem;
}

.tb-filters__head button,
.tb-show-results {
  display: none;
}

.tb-filters fieldset {
  display: grid;
  gap: 0.65rem;
  margin: 1.3rem 0;
  padding: 0 0 1.25rem;
  border: 0;
  border-bottom: 1px solid var(--tb-line);
}

.tb-filters legend {
  margin-bottom: 0.75rem;
  color: var(--tb-oxblood);
  font-weight: 800;
}

.tb-filters label {
  display: flex;
  gap: 0.55rem;
  align-items: start;
  color: var(--tb-muted);
  font-size: 0.88rem;
}

.tb-filters input {
  accent-color: var(--tb-oxblood);
}

.tb-clear-filters {
  min-height: 2.75rem;
  padding: 0.45rem 0;
  color: var(--tb-oxblood);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-weight: 800;
  cursor: pointer;
}

.tb-results__summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--tb-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.tb-results__summary p {
  margin: 0;
}

.tb-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tb-active-filters button {
  padding: 0.35rem 0.55rem;
  color: var(--tb-oxblood);
  background: var(--tb-blush);
  border: 1px solid rgba(116, 37, 31, 0.18);
  font-size: 0.72rem;
  cursor: pointer;
}

.timbuktu-storefront .tb-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3vw, 2.8rem) clamp(1.1rem, 2vw, 2rem);
}

.tb-product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-width: 0;
  background: var(--tb-folio-bright);
  border: 1px solid var(--tb-line);
  border-radius: 0.15rem;
  box-shadow: 0 16px 36px rgba(49, 45, 60, 0.1);
}

.tb-product-card::after {
  content: none;
}

.tb-product-card__visual {
  position: relative;
  display: grid;
  min-height: 0;
  aspect-ratio: 4 / 5;
  padding: 0.65rem;
  place-items: center;
  background:
    radial-gradient(circle at 50% 44%, rgba(199, 161, 90, 0.12), transparent 68%),
    var(--tb-blush);
  border: 0;
  border-bottom: 1px solid var(--tb-line);
  cursor: pointer;
}

.tb-product-card__visual img {
  width: auto;
  height: calc(100% - 0.75rem);
  max-width: calc(100% - 0.5rem);
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(49, 45, 60, 0.2));
  transition: transform 220ms ease;
}

.tb-product-card:hover .tb-product-card__visual img,
.tb-product-card:focus-within .tb-product-card__visual img {
  transform: translateY(-4px);
}

.tb-product-card__sale {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.55rem;
  color: #fff;
  background: var(--tb-seal);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tb-product-card__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.15rem 1.25rem;
}

.tb-product-card__publisher {
  margin: 0.7rem 0 0.7rem;
  color: var(--tb-oxblood);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tb-product-card h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 2.2vw, 1.95rem);
  line-height: 1.02;
}

.tb-product-card h3 button {
  min-height: 0;
  padding: 0;
  color: var(--tb-plum);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.tb-product-card__contributors,
.tb-product-detail__contributors {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.22rem 0.55rem;
  margin: 0;
}

.tb-product-card__contributors dt,
.tb-product-detail__contributors dt {
  color: var(--tb-seal);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1.45;
  text-transform: uppercase;
}

.tb-product-card__contributors dd,
.tb-product-detail__contributors dd {
  min-width: 0;
  margin: 0;
  color: var(--tb-plum);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.tb-stock {
  margin: 0 0 0.8rem;
  color: var(--tb-success);
  font-size: 0.75rem;
  font-weight: 800;
}

.tb-stock.is-out {
  color: var(--tb-danger);
}

.tb-price {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  margin: auto 0 1rem;
  color: var(--tb-plum);
}

.tb-price strong {
  font-size: 1.16rem;
}

.tb-price del {
  color: var(--tb-muted);
  font-size: 0.8rem;
}

.tb-product-card__action {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.tb-product-card.is-unavailable .tb-product-card__visual img {
  filter: grayscale(0.35) opacity(0.72);
}

.tb-empty {
  padding: 5rem 1rem;
  color: var(--tb-muted);
  text-align: center;
  border: 1px solid var(--tb-line);
}

.tb-empty h3 {
  color: var(--tb-plum);
  font-size: 2rem;
}

.tb-empty button {
  color: var(--tb-oxblood);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-weight: 800;
}

.timbuktu-storefront .tb-reading-room {
  padding: clamp(4rem, 8vw, 7rem) 0;
  color: var(--tb-folio-bright);
  background:
    linear-gradient(90deg, rgba(49, 45, 60, 0.92), rgba(49, 45, 60, 0.77)),
    var(--tb-plum);
}

.tb-reading-room__inner {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.tb-reading-room h2 {
  margin: 0.35rem 0 1rem;
  color: var(--tb-gold-pale);
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.tb-reading-room p {
  color: rgba(255, 253, 248, 0.78);
}

.timbuktu-storefront .tb-reading-room .media-plate {
  margin: 0;
}

.timbuktu-storefront .tb-reading-room .media-plate img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--tb-gold);
  box-shadow: 1.1rem 1.1rem 0 rgba(199, 161, 90, 0.16);
}

.timbuktu-storefront .tb-reading-room .media-plate figcaption {
  color: rgba(255, 253, 248, 0.72);
}

.tb-dti-shelf {
  padding: clamp(4rem, 7vw, 6rem) 0;
  color: var(--tb-plum);
  background: var(--tb-blush);
  border-bottom: 1px solid var(--tb-line);
}

.tb-dti-shelf__grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.7fr) auto;
  gap: 2rem;
  align-items: center;
}

.tb-dti-shelf h2 {
  margin: 0;
  color: var(--tb-oxblood);
  font-size: clamp(2.6rem, 5vw, 4.7rem);
}

.tb-shop-faqs {
  padding-block: clamp(4rem, 7vw, 7rem);
}

.tb-product-sheet,
.tb-checkout {
  width: min(calc(100% - 2rem), 1040px);
  max-height: min(88vh, 860px);
  padding: 0;
  color: var(--tb-plum);
  background: var(--tb-folio);
  border: 1px solid var(--tb-gold);
  border-radius: 0.2rem;
  box-shadow: 0 35px 110px rgba(20, 8, 10, 0.44);
}

.tb-product-sheet::backdrop,
.tb-checkout::backdrop {
  background: rgba(27, 14, 19, 0.72);
  backdrop-filter: blur(3px);
}

.tb-sheet-close {
  position: sticky;
  z-index: 3;
  top: 0;
  float: right;
  margin: 0.8rem;
  padding: 0.55rem 0.75rem;
  color: var(--tb-folio-bright);
  background: var(--tb-plum);
  border: 0;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.tb-product-detail {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1fr);
  min-height: 650px;
}

.tb-product-detail__visual {
  display: grid;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  place-items: center;
  background: var(--tb-blush);
  border-right: 1px solid var(--tb-line);
}

.tb-product-detail__visual img {
  width: auto;
  height: min(72vh, 660px);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 22px rgba(49, 45, 60, 0.22));
}

.tb-product-detail__copy {
  overflow: auto;
  max-height: 88vh;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
}

.tb-product-detail h2 {
  margin: 0.4rem 0;
  color: var(--tb-oxblood);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.tb-product-detail__contributors {
  max-width: 42rem;
  margin: 1rem 0 1.25rem;
}

.tb-product-detail__contributors dt {
  font-size: 0.68rem;
}

.tb-product-detail__contributors dd {
  font-size: 0.95rem;
}

.tb-product-detail__sku {
  color: var(--tb-muted);
  font-size: 0.72rem;
}

.tb-product-detail__description {
  white-space: pre-line;
}

.tb-product-detail__actions {
  display: flex;
  gap: 0.8rem;
  align-items: end;
  margin-top: 1.5rem;
}

.tb-product-detail__actions input {
  width: 6rem;
}

.tb-overlay-open {
  overflow: hidden;
}

.tb-cart {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  width: min(100%, 470px);
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  color: var(--tb-plum);
  background: var(--tb-folio);
  border: 0;
  border-left: 1px solid var(--tb-gold);
  box-shadow: -30px 0 70px rgba(20, 8, 10, 0.28);
  transform: translateX(105%);
  transition: transform 260ms ease;
}

.tb-cart:not([open]) {
  display: none;
}

.tb-cart::backdrop {
  background: rgba(27, 14, 19, 0.58);
  backdrop-filter: blur(2px);
}

.tb-cart.is-open {
  transform: translateX(0);
}

.tb-order-return {
  position: relative;
  z-index: 30;
  margin-block: 0 1.5rem;
  padding: 0.95rem 1.1rem;
  color: var(--tb-plum);
  background: color-mix(in srgb, var(--tb-gold) 18%, var(--tb-folio-bright));
  border: 1px solid color-mix(in srgb, var(--tb-gold) 62%, transparent);
  border-radius: 0.5rem;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.tb-order-return[data-state="cancel"] {
  background: var(--tb-blush);
  border-color: color-mix(in srgb, var(--tb-oxblood) 38%, transparent);
}

.tb-cart > header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 1.5rem;
  border-bottom: 1px solid var(--tb-line);
}

.tb-cart > header h2 {
  margin: 0;
  color: var(--tb-oxblood);
  font-size: 2.5rem;
}

.tb-cart > header button,
.tb-cart-line__controls button {
  padding: 0;
  color: var(--tb-oxblood);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-weight: 800;
  cursor: pointer;
}

.tb-cart__notice {
  padding: 1rem 1.5rem;
  color: var(--tb-muted);
  background: var(--tb-blush);
  font-size: 0.78rem;
  border-bottom: 1px solid var(--tb-line);
}

.tb-cart__notice p {
  margin: 0.25rem 0 0;
}

.tb-cart__items {
  overflow: auto;
  padding: 0 1.5rem;
}

.tb-cart-line {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--tb-line);
}

.tb-cart-line img {
  width: 82px;
  height: 102px;
  object-fit: contain;
  background: var(--tb-blush);
}

.tb-cart-line h3 {
  margin: 0;
  font-size: 1.35rem;
}

.tb-cart-line p {
  margin: 0.3rem 0;
  font-size: 0.82rem;
}

.tb-cart-line__controls {
  display: flex;
  gap: 1rem;
  align-items: end;
}

.tb-cart-line__controls label {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 800;
}

.tb-cart-line__controls input {
  width: 4rem;
  min-height: 2.3rem;
  padding: 0.3rem;
  background: #fff;
  border: 1px solid var(--tb-line);
}

.tb-cart__empty {
  align-self: center;
  padding: 3rem 2rem;
  color: var(--tb-muted);
  text-align: center;
}

.tb-cart__empty h3 {
  color: var(--tb-plum);
  font-size: 2rem;
}

.tb-cart footer {
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--tb-folio-bright);
  border-top: 1px solid var(--tb-line);
}

.tb-cart footer > div {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
}

.tb-cart footer p {
  color: var(--tb-muted);
  font-size: 0.72rem;
}

.tb-cart footer button {
  width: 100%;
}

.tb-checkout {
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.tb-checkout__heading {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--tb-line);
}

.tb-checkout__heading h2 {
  margin: 0.2rem 0 1rem;
  color: var(--tb-oxblood);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.tb-checkout__heading ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: checkout;
}

.tb-checkout__heading li {
  counter-increment: checkout;
  padding: 0.65rem;
  color: var(--tb-muted);
  border-top: 3px solid var(--tb-line);
  font-size: 0.75rem;
  font-weight: 800;
}

.tb-checkout__heading li::before {
  content: counter(checkout) ". ";
}

.tb-checkout__heading li[aria-current="step"] {
  color: var(--tb-oxblood);
  border-color: var(--tb-gold);
}

.tb-checkout__status,
.tb-quote-status {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  color: var(--tb-muted);
  background: var(--tb-blush);
  border-left: 3px solid var(--tb-gold);
  font-size: 0.82rem;
}

.tb-checkout section h3,
.tb-checkout-fallback h3 {
  margin: 1.5rem 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.tb-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tb-choice-cards,
.tb-payment-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.tb-choice-cards label,
.tb-payment-choice label {
  display: flex;
  gap: 0.7rem;
  padding: 1rem;
  background: var(--tb-folio-bright);
  border: 1px solid var(--tb-line);
}

.tb-choice-cards small {
  display: block;
  color: var(--tb-muted);
}

.tb-choice-cards input:disabled + span {
  opacity: 0.48;
}

.tb-delivery-fields,
.tb-collection-fields {
  margin-top: 1.25rem;
}

.tb-checkout-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.tb-checkout-actions .button--outline {
  color: var(--tb-oxblood);
  background: transparent;
}

.tb-checkout-actions button:disabled,
.tb-product-card__action:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.tb-order-review {
  padding: 1rem 1.2rem;
  background: var(--tb-folio-bright);
  border: 1px solid var(--tb-line);
}

.tb-order-review ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.tb-order-review > div {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-top: 1px solid var(--tb-line);
}

.tb-order-review .is-total {
  color: var(--tb-oxblood);
  font-size: 1.1rem;
}

.tb-payment-choice {
  display: block;
  margin-top: 1.5rem;
}

.tb-payment-choice > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.tb-payment-choice p {
  color: var(--tb-muted);
  font-size: 0.8rem;
}

.tb-checkout .check-row {
  margin-top: 1.25rem;
}

.tb-checkout-fallback {
  margin-top: 1.5rem;
  padding: 1.4rem;
  background: var(--tb-blush);
  border: 1px solid rgba(116, 37, 31, 0.2);
}

.tb-checkout-fallback dl {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) 1fr;
  gap: 0.35rem 1rem;
  padding: 1rem;
  background: var(--tb-folio-bright);
}

.tb-checkout-fallback dt {
  font-weight: 800;
}

.tb-checkout-fallback dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .tb-hero__inner {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
  }

  .tb-hero h1 {
    font-size: clamp(3rem, 7vw, 5.2rem);
  }

  .timbuktu-storefront .tb-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-dti-shelf__grid {
    grid-template-columns: 1fr 0.8fr;
  }

  .tb-dti-shelf__grid button {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .tb-hero {
    min-height: auto;
  }

  .tb-hero__inner,
  .tb-reading-room__inner,
  .tb-product-detail {
    grid-template-columns: 1fr;
  }

  .tb-featured-folio {
    justify-self: start;
  }

  .tb-shopbar {
    top: 88px;
    overflow-x: auto;
  }

  .tb-shopbar .shell {
    width: max-content;
    min-width: 100%;
  }

  .tb-catalogue__layout {
    grid-template-columns: 1fr;
  }

  .tb-filter-toggle {
    display: block;
    min-height: 3.25rem;
    padding: 0.7rem 1rem;
    color: var(--tb-folio-bright);
    background: var(--tb-plum);
    border: 1px solid var(--tb-plum);
    font-weight: 800;
  }

  .tb-filters {
    position: fixed;
    z-index: 95;
    inset: auto 0 0;
    overflow: auto;
    max-height: 82dvh;
    padding: 1.3rem 1.4rem 2rem;
    background: var(--tb-folio);
    border: 1px solid var(--tb-gold);
    box-shadow: 0 -25px 70px rgba(20, 8, 10, 0.28);
    transform: translateY(105%);
    transition: transform 240ms ease;
  }

  .tb-filters[inert] {
    visibility: hidden;
    pointer-events: none;
  }

  body.tb-filters-open::before {
    content: "";
    position: fixed;
    z-index: 94;
    inset: 0;
    background: rgba(27, 14, 19, 0.58);
    backdrop-filter: blur(2px);
  }

  .tb-filters.is-open {
    transform: translateY(0);
  }

  .tb-filters__head button,
  .tb-show-results {
    display: block;
  }

  .tb-filters__head button {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.45rem;
    color: var(--tb-oxblood);
    background: transparent;
    border: 0;
    border-bottom: 1px solid currentColor;
    font-weight: 800;
  }

  .tb-show-results {
    width: 100%;
    margin-top: 1rem;
    padding: 0.85rem;
    color: #fff;
    background: var(--tb-oxblood);
    border: 0;
    font-weight: 800;
  }

  .tb-product-detail__visual {
    min-height: 400px;
    border-right: 0;
    border-bottom: 1px solid var(--tb-line);
  }

  .tb-product-detail__copy {
    overflow: visible;
    max-height: none;
  }
}

@media (max-width: 680px) {
  .tb-hero {
    padding-top: 3rem;
  }

  .tb-hero h1 {
    max-width: none;
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .tb-hero-search {
    grid-template-columns: 1fr;
  }

  .tb-hero-search button {
    min-height: 3.25rem;
  }

  .tb-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }

  .tb-hero__facts span {
    display: grid;
  }

  .tb-featured-folio {
    width: 100%;
  }

  .tb-shopbar a:nth-of-type(3) {
    display: none;
  }

  .tb-catalogue__heading,
  .tb-catalogue__controls,
  .tb-dti-shelf__grid,
  .tb-field-grid,
  .tb-choice-cards,
  .tb-payment-choice > div {
    grid-template-columns: 1fr;
  }

  .tb-catalogue__heading {
    gap: 1rem;
  }

  .tb-sort {
    grid-column: 1 / -1;
  }

  .timbuktu-storefront .tb-product-grid {
    grid-template-columns: 1fr;
  }

  .tb-product-card__visual {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .tb-reading-room__inner {
    gap: 2rem;
  }

  .tb-product-sheet,
  .tb-checkout {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    border: 0;
  }

  .tb-product-sheet {
    overflow: auto;
  }

  .tb-product-detail__visual {
    min-height: 390px;
    padding: 1.25rem;
  }

  .tb-product-detail__visual img {
    width: auto;
    height: 360px;
    max-width: 100%;
  }

  .tb-product-detail__copy {
    padding: 2.25rem 1.25rem 4rem;
  }

  .tb-product-detail__actions,
  .tb-checkout-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tb-product-detail__actions label,
  .tb-product-detail__actions input {
    width: 100%;
  }

  .tb-cart {
    width: 100%;
  }

  .tb-checkout {
    overflow: auto;
    padding: 1.25rem;
  }

  .tb-checkout__heading ol {
    position: sticky;
    z-index: 2;
    top: 0;
    background: var(--tb-folio);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tb-folio-seal,
  .tb-product-card__visual img,
  .tb-cart,
  .tb-filters {
    animation: none !important;
    transition: none !important;
  }
}
