/* ==========================================================================
   AMAN — Espresso & Sienna (v5)
   Warm darkness, flat and typographic: deep espresso ground, cream text,
   one burnt-sienna accent, warm hairlines. No pattern, no glow, no gradient
   tricks. Marcellus carries the human promise, mono the machine output,
   system sans the interface. Motion: one orchestrated grammar —
   transform/opacity only, settles and stops.
   ========================================================================== */

:root {
  --espresso-950: #14100D;
  --espresso-900: #191411;
  --espresso-800: #221B15;
  --espresso-700: #2B221A;
  --espresso-600: #362B21;
  --line: #3A2F26;
  --line-strong: #4A3C30;
  --cream: #F3EDE2;
  --cream-soft: rgba(243, 237, 226, 0.75);
  --cream-faint: rgba(243, 237, 226, 0.58);
  --sienna-600: #A8552E;
  --sienna-500: #C96A3B;
  --sienna-300: #E39A6B;
  --ag-haseb: #C96A3B;
  --ag-haseb-l: #E39A6B;
  --ag-dalil: #7E93B0;
  --ag-dalil-l: #A9BACC;
  --ag-katib: #D8B98E;
  --ag-katib-l: #E4CBA5;
  --ag-rasid: #8C7A6B;
  --ag-rasid-l: #B7A694;
  --ok: #9AA383;
  --ok-l: #B5BCA0;
  --warn: #D8B98E;
  --danger: #D98170;
  --danger-l: #E39B8D;
  --radius: 14px;
  --radius-arch: 999px 999px var(--radius) var(--radius);
  --shadow-lift: 0 14px 40px -18px rgba(0, 0, 0, 0.55);
  --gutter: 24px;
  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Marcellus", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--cream);
  background: var(--espresso-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); letter-spacing: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); text-wrap: balance; margin-bottom: 0.6em; }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--sienna-300); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--sienna-500);
  color: var(--espresso-950);
  font-family: var(--sans);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--sienna-500); outline-offset: 3px; border-radius: 4px; }

::selection { background: rgba(201, 106, 59, 0.4); }
input, textarea { caret-color: var(--sienna-300); }

* {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

/* ---------- Buttons — shaded sienna, like fired clay ---------- */
.btn {
  display: inline-block;
  position: relative;
  background: linear-gradient(180deg, #9C4A26 0%, #8F4426 52%, #7C3C1E 100%);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  padding: 15px 30px;
  min-height: 50px;
  cursor: pointer;
  transition: transform 180ms var(--ease-settle), box-shadow 180ms ease;
  box-shadow:
    inset 0 1px 0 rgba(243, 237, 226, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 10px 24px -14px rgba(0, 0, 0, 0.6);
}
.btn:hover {
  background: linear-gradient(180deg, #A8522B 0%, #9C4A26 52%, #87401F 100%);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(243, 237, 226, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 16px 30px -16px rgba(0, 0, 0, 0.65);
}
.btn:active {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(243, 237, 226, 0.25),
    inset 0 2px 4px rgba(0, 0, 0, 0.25),
    0 4px 10px -8px rgba(0, 0, 0, 0.5);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn-ghost:hover { background: var(--espresso-800); box-shadow: inset 0 0 0 1.5px var(--cream-faint); }
.btn-small { padding: 9px 18px; min-height: 40px; font-size: 0.9rem; border-radius: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 16, 13, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--serif); font-size: 1.45rem; font-weight: 400;
  color: var(--cream); text-decoration: none; letter-spacing: 0.02em;
  white-space: nowrap;
}
.wordmark-dot { display: inline-flex; }
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a {
  color: var(--cream-soft); text-decoration: none; font-size: 0.95rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.site-nav a:hover { color: var(--cream); border-bottom-color: var(--sienna-500); }

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  position: relative;
  width: 42px; height: 40px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--cream);
  transition: transform 240ms var(--ease-settle), top 240ms var(--ease-settle);
  top: 15px;
}
.nav-toggle span + span { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span + span { top: 19px; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 6px 24px 18px;
  border-top: 1px solid var(--line);
  background: rgba(20, 16, 13, 0.97);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  color: var(--cream-soft);
  text-decoration: none;
  font-size: 1.02rem;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--sienna-300); }

@media (max-width: 960px) {
  .site-nav { display: none; }
  .header-inner .btn-small { margin-left: auto; white-space: nowrap; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; }
  .mobile-nav:not([hidden]) { display: flex; }
}
@media (max-width: 480px) {
  .header-inner { gap: 14px; min-height: 56px; }
  .wordmark { font-size: 1.24rem; gap: 7px; }
  .header-inner .btn-small { padding: 8px 13px; font-size: 0.84rem; }
}

/* ---------- Sections ---------- */
.section { padding: 136px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-sub { color: var(--cream-soft); max-width: 60ch; margin-bottom: 64px; font-size: 1.1rem; }
.section-sub-strong {
  font-size: 1.16rem;
  color: var(--cream);
  max-width: 52ch;
  margin: -10px 0 48px;
}
.mid-cta { text-align: center; margin-top: 72px; }

/* ---------- Hero — warm dark, flat, typographic ---------- */
.hero {
  position: relative;
  color: var(--cream);
  padding: 128px 0 104px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--espresso-950) 0%, var(--espresso-900) 70%, var(--espresso-900) 100%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5.2fr) minmax(0, 4.4fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: center;
}
.hero h1 { max-width: 14ch; margin-bottom: 0.45em; }
.hero .line { display: block; overflow: hidden; padding-block: 0.06em; margin-block: -0.06em; }
.hero .line-inner { display: inline-block; will-change: transform; }
.gold-line { color: var(--sienna-300); }
.hero-sub {
  font-size: 1.2rem; color: var(--cream-soft);
  max-width: 50ch; margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .microtrust {
  font-size: 0.875rem; color: var(--cream-faint); margin-top: 16px;
  font-family: var(--mono); letter-spacing: 0.01em;
}

/* ---------- Hero task console ---------- */
.hero-console {
  position: relative;
  background: var(--espresso-800);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transform: rotate(0.8deg);
}
.console-head {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.console-head .lamp { width: 11px; height: 11px; border-radius: 50%; background: var(--espresso-600); }
.console-head .lamp:first-child { background: var(--sienna-500); }
.console-title {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em;
  color: var(--cream-faint); margin-left: 6px;
}
.console-live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em;
  color: var(--sienna-300); text-transform: uppercase;
}
.console-live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sienna-500);
  animation: live-pulse 2.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 106, 59, 0.45); }
  60% { box-shadow: 0 0 0 6px rgba(201, 106, 59, 0); }
}
.console-body { padding: 12px 20px 6px; height: 252px; overflow: hidden; }
.console-row {
  position: relative;
  display: grid;
  grid-template-columns: 9px auto 1fr auto;
  align-items: start;
  column-gap: 11px;
  padding: 11px 0 13px;
  border-bottom: 1px solid var(--line);
}
.console-row .cdot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--espresso-600);
  margin-top: 6px;
  transition: background 240ms ease, box-shadow 240ms ease;
}
.console-row .cdot.done {
  background: var(--sienna-500);
  box-shadow: 0 0 0 4px rgba(201, 106, 59, 0.18);
}
.console-row .tagent {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 999px;
  margin-top: 3px;
  border: 1px solid;
}
.tagent--haseb { color: var(--ag-haseb-l); border-color: rgba(201, 106, 59, 0.55); background: rgba(201, 106, 59, 0.12); }
.tagent--dalil { color: var(--ag-dalil-l); border-color: rgba(126, 147, 176, 0.55); background: rgba(126, 147, 176, 0.12); }
.tagent--katib { color: var(--ag-katib-l); border-color: rgba(216, 185, 142, 0.5); background: rgba(216, 185, 142, 0.1); }
.tagent--rasid { color: var(--ag-rasid-l); border-color: rgba(140, 122, 107, 0.6); background: rgba(140, 122, 107, 0.14); }
.console-row .ctext {
  font-family: var(--mono); font-size: 0.84rem; line-height: 1.5;
  color: var(--cream); min-width: 0;
  overflow-wrap: anywhere;
}
.ctext .ccursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--sienna-300); margin-left: 3px; vertical-align: -2px;
  animation: cblink 0.9s step-end infinite;
}
@keyframes cblink { 50% { opacity: 0; } }
.console-row .cline {
  position: absolute;
  left: 20px; right: 20px; bottom: -1px;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(201, 106, 59, 0.75), rgba(227, 154, 107, 0.9));
  transform: scaleX(0);
  transform-origin: left;
}
.console-row .cpill {
  font-family: var(--mono); font-size: 0.68rem;
  border-radius: 999px; padding: 3px 8px;
  margin-top: 3px;
  max-width: 178px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border: 1px solid var(--line-strong);
  color: var(--cream-faint);
  transition: opacity 220ms ease, transform 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
}
.console-row .cpill.done {
  background: rgba(201, 106, 59, 0.16);
  color: var(--sienna-300);
  border-color: rgba(201, 106, 59, 0.6);
}
.console-row .cpill.hidden { opacity: 0; transform: scale(0.7); }
.console-foot {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--cream-faint);
  padding: 14px 20px 16px; text-align: right;
  border-top: 1px solid var(--line);
}
.console-foot b { color: var(--sienna-300); font-weight: 600; }

/* ---------- Expandable cards ---------- */
.point-section { background: var(--espresso-900); }
.xcards {
  display: flex; gap: 18px;
  align-items: stretch;
  min-height: 320px;
}
.xcard {
  flex: 1;
  background: var(--espresso-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  cursor: pointer;
  overflow: hidden;
  transition: flex 520ms var(--ease-settle), background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.xcard .point-num { margin-bottom: 16px; transition: background 300ms ease, color 300ms ease, border-color 300ms ease; }
.xcard h3 { white-space: nowrap; transition: opacity 300ms ease, color 300ms ease; }
.xbody { opacity: 0; transition: opacity 380ms ease 140ms; }
.xbody p { font-size: 1rem; color: var(--cream-soft); margin: 0; }
.xbody em {
  color: var(--cream); font-style: normal; font-family: var(--mono);
  font-size: 0.88em; background: var(--espresso-700);
  padding: 1px 6px; border-radius: 4px; white-space: normal;
}
.xcard.is-open {
  flex: 2.4;
  background: var(--espresso-800);
  border-color: var(--sienna-500);
  box-shadow: var(--shadow-lift);
  cursor: default;
}
.xcard.is-open .point-num { background: var(--sienna-500); border-color: var(--sienna-500); color: var(--espresso-950); }
.xcard.is-open .xbody { opacity: 1; }
.xcard:not(.is-open) { cursor: pointer; }
@media (max-width: 760px) {
  .xcards { flex-direction: column; min-height: 0; }
  .xcard { flex: none !important; }
  .xcard h3 { white-space: normal; }
  .xbody, .xcard.is-open .xbody, .xcard:not(.is-open):hover .xbody { opacity: 1; }
}


/* ==========================================================================
   Light rooms — the white balance against all the espresso.
   Explicit colors only (never token remaps): dark product screens keep
   their own dark surfaces while the room around them turns to paper.
   ========================================================================== */
.section.room-light { background: #FBFAF7; color: #262220; border-top-color: #E7DFD0; }
.section.room-light h2, .section.room-light h3 { color: #262220; }
.section.room-light .section-sub { color: #4A4238; }
.room-light .section-sub-strong { color: #262220; }
.section.room-light a:not(.btn):not(.icp-card) { color: #A8552E; }

/* --- handover: something to read vs something to ship --- */
.handover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1.08fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 72px;
}
.hv-panel { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.hv-label {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #6E655C;
  margin-bottom: 14px;
}
.hv-dot { width: 8px; height: 8px; border-radius: 50%; background: #C9BCA5; }
.hv-dot--brand { background: var(--sienna-500); }
.hv-chat {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #E7DFD0;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 18px 40px -30px rgba(20, 16, 13, 0.4);
  display: flex; flex-direction: column;
}
.hv-q {
  align-self: flex-end;
  margin: 0 0 16px;
  max-width: 88%;
  background: #F1ECE1;
  border-radius: 12px 12px 4px 12px;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: #262220;
}
.hv-a { font-size: 0.92rem; line-height: 1.6; color: #4A4238; }
.hv-a p { margin: 0 0 0.75em; }
.hv-a p:last-child { margin: 0; color: #7A7062; font-style: italic; }
.hv-verdict {
  font-family: var(--serif);
  font-size: 1.32rem;
  margin: 16px 0 0;
  color: #262220;
}
.hv-read .hv-verdict { color: #7A7062; }
.hv-arrow { display: grid; place-items: center; color: #B5A793; }
.hv-packet {
  flex: 1;
  background: var(--espresso-800);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 18px 20px 16px;
  box-shadow: var(--shadow-lift);
  display: flex; flex-direction: column; gap: 8px;
}
.pk-head {
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cream-faint);
  padding-bottom: 11px; border-bottom: 1px solid var(--line);
}
.pk-head em { font-style: normal; color: var(--sienna-300); }
.pk-task {
  margin: 0;
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--cream-soft);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.pk-task::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sienna-500);
  margin-right: 9px;
  vertical-align: 1px;
}
.pk-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.8rem; color: var(--cream);
  border-bottom: 1px dashed var(--line);
  padding: 10px 0;
}
.pk-row:last-of-type { border-bottom: none; }
.pk-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pk-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding-top: 12px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.75rem; color: var(--cream-faint);
}
.pk-approve { font-style: normal; color: var(--sienna-300); }

/* --- the three steps, compact --- */
.steps {
  list-style: none; margin: 0 0 8px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.step { border-top: 1px solid #E7DFD0; padding-top: 20px; }
.step-n {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em;
  color: #A8552E;
}
.step h3 { margin: 10px 0 8px; font-size: 1.24rem; }
.step p { color: #4A4238; font-size: 0.95rem; margin: 0; }
.step em {
  font-style: normal; font-family: var(--mono); font-size: 0.86em;
  background: #F1ECE1; color: #262220;
  padding: 1px 6px; border-radius: 4px;
}

/* --- light variants of shared components --- */
.room-light .logo-card {
  background: #FFFFFF;
  border-color: #E7DFD0;
  box-shadow: 0 14px 30px -26px rgba(20, 16, 13, 0.45);
}
.room-light .logo-card:hover { border-color: var(--sienna-500); background: #FFFFFF; }
.room-light .logo-card b { color: #4A4238; }
.room-light .logo-section .section-sub { color: #4A4238; }

.room-light .sstep::before { border-color: #C9BCA5; }
.room-light .sstep h3 { color: #4A4238; }
.room-light .sstep p { color: #6E655C; }
.room-light .sstep:hover h3 { color: #262220; }
.room-light .sstep.is-active {
  background: var(--espresso-800);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.room-light .sstep.is-active h3 { color: var(--cream); }
.room-light .sstep.is-active p { color: rgba(243, 237, 226, 0.82); }
.room-light .sstep.is-active::before { background: var(--sienna-500); border-color: var(--sienna-500); }

.room-light .icp-card {
  background: #FFFFFF;
  border-color: #E7DFD0;
  color: #262220;
  box-shadow: 0 16px 36px -28px rgba(20, 16, 13, 0.4);
}
.room-light .icp-card:hover { border-color: var(--sienna-500); }
.room-light .icp-card li { color: #4A4238; }
.room-light .icp-card li::before { border-color: #A8552E; }
.room-light .icp-more { color: #A8552E; }

.room-light .faq-list details { border-color: #E7DFD0; }
.room-light .faq-list summary { color: #262220; }
.room-light .faq-list summary:hover { color: #A8552E; }
.room-light .faq-list summary::after { border-color: #A8552E; }
.room-light .faq-list details p { color: #4A4238; }

/* --- the "after you hand it over" strip on each scene --- */
.shot-after {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 18px;
  border-top: 1px solid var(--line-strong);
  background: rgba(201, 106, 59, 0.14);
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--sienna-300);
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  background: linear-gradient(180deg, #D0763F, #C96A3B);
  overflow: hidden;
  padding: 17px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex; gap: 52px; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--mono);
  font-size: 1rem; font-weight: 650;
  color: var(--espresso-950);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Integrations ---------- */
.logo-section { background: var(--espresso-900); padding-bottom: 88px; }
.logo-section .section-sub { color: var(--cream-soft); }
.logo-band {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex; gap: 14px; width: max-content;
  animation: logoflow 46s linear infinite;
}
.logo-band:hover .logo-track { animation-play-state: paused; }
.logo-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  min-width: 132px; padding: 22px 20px;
  background: var(--espresso-800);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 200ms ease, transform 200ms var(--ease-settle), background 200ms ease;
}
.logo-card:hover {
  border-color: var(--sienna-500);
  transform: translateY(-3px);
  background: var(--espresso-700);
}
.logo-card img { width: 22px; height: 22px; opacity: 0.9; }
.logo-card b {
  color: var(--cream-soft);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
}
@keyframes logoflow { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Showcase ---------- */
.showcase-section { background: var(--espresso-950); }
.showcase {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px; align-items: center;
}
.showcase-media {
  position: relative; aspect-ratio: 16 / 11;
  border-radius: 18px;
  background: var(--espresso-800);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.shot { position: absolute; inset: 0; opacity: 0; display: flex; flex-direction: column; overflow: hidden; }
.shot.is-active { opacity: 1; transition: opacity 420ms ease; }
.shot-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--espresso-700);
}
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--espresso-600); }
.shot-bar i:first-child { background: var(--sienna-500); }
.shot-bar span {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--cream-faint); margin-left: 8px;
  min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot-time {
  margin-left: auto;
  flex: none;
  font-family: var(--mono); font-size: 0.75rem; font-style: normal;
  color: var(--sienna-300);
  border: 1px solid rgba(201, 106, 59, 0.45);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.shot-scene {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 20px 24px;
  display: flex; flex-direction: column;
}
.shot.is-active .shot-scene { animation: scene-settle 6.5s var(--ease-settle) forwards; }
@keyframes scene-settle {
  from { transform: scale(1); }
  to { transform: scale(1.028); }
}

.chip {
  font-family: var(--mono); font-size: 0.75rem; font-style: normal;
  letter-spacing: 0.04em;
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
  border: 1px solid;
}
.chip-ok { color: var(--ok-l); border-color: rgba(154, 163, 131, 0.6); background: rgba(154, 163, 131, 0.12); }
.chip-gold { color: var(--warn); border-color: rgba(216, 185, 142, 0.5); background: rgba(216, 185, 142, 0.1); }
.chip-clay { color: var(--danger-l); border-color: rgba(217, 129, 112, 0.6); background: rgba(217, 129, 112, 0.12); }

.sheet { display: flex; flex-direction: column; gap: 0; }
.sheet-head, .sheet-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr auto;
  gap: 12px; align-items: center;
  font-family: var(--mono);
}
.sheet-head {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream-faint);
  padding-bottom: 9px; border-bottom: 1px solid var(--line-strong);
}
.sheet-row {
  font-size: 0.8rem; color: var(--cream-soft);
  padding: 10.5px 0;
  border-bottom: 1px solid var(--line);
}
.sheet-row:nth-child(odd) { background: rgba(243, 237, 226, 0.025); }
.sheet-row .s-sup { color: var(--cream); }
.sheet-row .s-cert { color: var(--cream-faint); font-size: 0.76rem; }

.inbox { display: flex; flex-direction: column; gap: 9px; }
.mail {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--espresso-700);
  border: 1px solid var(--line);
}
.mail.is-unread { background: var(--espresso-600); border-color: var(--line-strong); }
.m-ava {
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.05em;
  color: var(--espresso-950);
  background: var(--ag-katib);
}
.mail:nth-child(2n) .m-ava { background: var(--ag-dalil); }
.mail:nth-child(3n) .m-ava { background: var(--ag-rasid-l); }
.m-who {
  display: flex; flex-direction: column; gap: 1px;
  font-family: var(--sans); font-size: 0.82rem; color: var(--cream);
  min-width: 0; flex: 1;
}
.mail.is-unread .m-who { font-weight: 600; }
.m-sub {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 400;
  color: var(--cream-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mail .chip { flex: none; }

.cert { display: grid; place-items: center; }
.cert-paper {
  position: relative;
  width: min(78%, 340px);
  background: var(--cream);
  color: #262220;
  border-radius: 130px 130px 10px 10px;
  padding: 44px 30px 26px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.cert-paper::before {
  content: "";
  position: absolute; inset: 9px;
  border: 1px solid rgba(168, 85, 46, 0.45);
  border-radius: 122px 122px 6px 6px;
  pointer-events: none;
}
.cert-issuer {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em;
  color: #6E655C; margin-bottom: 10px;
}
.cert-title { font-family: var(--serif); font-size: 1.12rem; line-height: 1.3; margin: 0 0 12px; }
.cert-line { font-family: var(--sans); font-size: 0.78rem; color: #6E655C; margin: 0 0 4px; }
.cert-exp { font-family: var(--sans); font-size: 0.8rem; color: #3A332C; margin: 0; }
.cert-stamp {
  position: absolute;
  right: -14px; top: 54%;
  transform: rotate(-11deg);
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  color: #A8422E;
  border: 2.5px solid rgba(168, 66, 46, 0.85);
  border-radius: 6px;
  padding: 6px 12px;
  background: rgba(243, 237, 226, 0.92);
}

.ad-scene { flex: 1; display: flex; gap: 18px; align-items: stretch; }
.ad-copy { flex: 1.2; display: flex; flex-direction: column; gap: 9px; padding-top: 2px; justify-content: center; }
.ad-visual {
  flex: 1.05;
  border-radius: 12px;
  position: relative;
  background:
    radial-gradient(140px 90px at 68% 30%, rgba(243, 237, 226, 0.12), transparent 60%),
    var(--espresso-700);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ad-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ad-headline {
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  color: var(--cream); margin: 0;
}
.ad-claim {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 0.84rem; margin: 0;
  color: var(--cream-soft);
}
.ad-claim s { color: var(--danger-l); text-decoration-thickness: 1.5px; }
.ad-meta {
  margin-top: auto;
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--cream-faint);
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.dash3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; align-content: start; }
.dash-panel {
  background: var(--espresso-700);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 12px;
  min-height: 148px;
  display: flex; flex-direction: column;
}
.dp-label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cream-faint);
  margin-bottom: 12px;
}
.dp-bars { display: flex; align-items: flex-end; gap: 6px; flex: 1; }
.dp-bars i {
  flex: 1;
  height: var(--h, 40%);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--sienna-300), rgba(201, 106, 59, 0.4));
  min-height: 8px;
}
.dp-bars i:nth-child(2n) { background: linear-gradient(180deg, rgba(243,237,226,0.5), rgba(243,237,226,0.12)); }
.dp-line { flex: 1; width: 100%; }
.dp-line polyline { fill: none; stroke: var(--sienna-300); stroke-width: 2; }
.dp-line .dp-grid { stroke: var(--line); stroke-width: 1; }
.dp-num {
  font-family: var(--mono); font-size: 1.35rem; font-weight: 600;
  color: var(--cream);
}
.dp-sub { font-family: var(--mono); font-size: 0.75rem; color: var(--danger-l); margin-top: 6px; }

.stamp {
  position: absolute; right: 20px; bottom: 18px;
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--sienna-300);
  background: var(--espresso-950);
  border: 1px solid rgba(201, 106, 59, 0.5);
  border-radius: 999px; padding: 6px 14px;
  z-index: 2;
}

.showcase-steps { display: flex; flex-direction: column; gap: 8px; }
.sstep {
  position: relative;
  text-align: left;
  background: transparent;
  border: none;
  padding: 13px 18px 13px 36px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 300ms ease, box-shadow 300ms ease;
}
.sstep::before {
  content: "";
  position: absolute;
  left: 9px; top: 21px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: transparent;
  transition: background 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}
.sstep h3 { font-size: 1.16rem; margin-bottom: 4px; color: var(--cream-soft); transition: color 250ms ease; }
.sstep p { font-size: 0.92rem; color: var(--cream-faint); margin: 0; }
.sstep:hover h3 { color: var(--cream); }
.sstep.is-active { background: var(--espresso-800); box-shadow: var(--shadow-lift); }
.sstep.is-active::before {
  background: var(--sienna-500);
  border-color: var(--sienna-500);
  box-shadow: 0 0 0 4px rgba(201, 106, 59, 0.18);
}
.sstep.is-active h3 { color: var(--cream); }
.sstep.is-active p { color: var(--cream-soft); }

@media (max-width: 900px) {
  .handover { grid-template-columns: 1fr; gap: 14px; margin-bottom: 56px; }
  .hv-arrow { transform: rotate(90deg); padding: 2px 0; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase-media { order: 2; }
  .showcase-steps { order: 1; }
}
@media (max-width: 600px) {
  .dash3 { grid-template-columns: 1fr 1fr; }
  .dash-panel:nth-child(3) { grid-column: 1 / -1; min-height: 0; }
}

/* ---------- Film — an in-page motion sequence, espresso-native ---------- */
.film-section { background: var(--espresso-950); }
.film-section h2 { text-align: center; }
.film-frame {
  max-width: 1020px; margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  position: relative;
}
.film-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(720px 340px at 50% 118%, rgba(201, 106, 59, 0.14), transparent 62%),
    var(--espresso-800);
  overflow: hidden;
}
.fscene {
  position: absolute; inset: 0;
  padding: clamp(28px, 6vw, 64px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  opacity: 0;
  visibility: hidden;
}
.fscene.is-live { opacity: 1; visibility: visible; }
/* no-JS / reduced-motion fallback: the title card simply holds */
.film-stage:not(.film-live) .f0 { opacity: 1; visibility: visible; }

.f0 { align-items: center; text-align: center; gap: clamp(18px, 3vw, 34px); }
.f-mark {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--cream); letter-spacing: 0.02em;
}
.f-line {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.2; margin: 0; text-align: center;
}

.f1, .f2, .f3 { gap: clamp(14px, 2.4vw, 24px); }
.f-head {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%; max-width: 560px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 12px;
}
.f-task {
  font-family: var(--mono); font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  color: var(--cream); line-height: 1.5; min-height: 1.6em;
}
.f-cursor {
  width: 2px; align-self: stretch; min-height: 1.4em;
  background: var(--sienna-300);
  animation: cblink 0.9s step-end infinite;
}
.f-rows, .f-claims { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 560px; }
.f-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: clamp(0.78rem, 1.4vw, 0.92rem);
  color: var(--cream-soft);
  background: var(--espresso-700);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
}
.f-claim {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--sans); font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--cream);
  background: var(--espresso-700);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 16px;
}
.f-claim s { color: var(--danger-l); text-decoration-thickness: 1.5px; }
.f-pro {
  font-family: var(--sans);
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--sienna-300);
  background: rgba(201, 106, 59, 0.18);
  border: 1px solid rgba(201, 106, 59, 0.55);
  border-radius: 12px;
  padding: 11px 16px;
  margin: 6px 0 0;
}
.f-pro b { color: var(--cream); font-weight: 700; }
.film-controls {
  position: absolute;
  right: 16px; bottom: 16px;
  z-index: 3;
  display: flex; gap: 8px;
}
.film-controls .film-toggle { position: static; }
.fpill {
  font-family: var(--mono); font-size: clamp(0.72rem, 1.3vw, 0.85rem);
  color: var(--sienna-300);
  background: rgba(201, 106, 59, 0.16);
  border: 1px solid rgba(201, 106, 59, 0.6);
  border-radius: 999px;
  padding: 6px 16px;
}
.f-count { display: flex; flex-direction: column; gap: 6px; }
.f-num {
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--cream); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.f-sub { font-family: var(--mono); font-size: clamp(0.8rem, 1.4vw, 0.95rem); color: var(--cream-faint); }
.f-report {
  font-family: var(--sans); font-size: clamp(1rem, 1.9vw, 1.25rem);
  color: var(--cream-soft); max-width: 44ch; margin: 0;
}
.f-report b { color: var(--cream); }
.f-tagline {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  margin: clamp(10px, 2vw, 22px) 0 0;
}
.f-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--espresso-700);
}
.f-progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, rgba(201, 106, 59, 0.7), var(--sienna-300));
  transform: scaleX(0);
  transform-origin: left;
}
.film-toggle {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em;
  color: var(--cream-soft);
  background: rgba(20, 16, 13, 0.8);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}
.film-toggle:hover { color: var(--cream); border-color: var(--sienna-500); }
.film-toggle[aria-pressed="true"] { color: var(--sienna-300); border-color: rgba(201, 106, 59, 0.6); }
.film-caption {
  text-align: center;
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--cream-faint);
  margin: 20px 0 0;
}

/* ---------- ICP doors ---------- */
.icp-section { background: var(--espresso-900); }
.icp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.icp-card {
  display: flex;
  flex-direction: column;
  background: var(--espresso-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  text-decoration: none;
  color: var(--cream);
  transition: transform 200ms var(--ease-settle), box-shadow 200ms ease, border-color 200ms ease;
}
.icp-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: var(--sienna-500);
}
.icp-card h3 { margin-bottom: 12px; }
.icp-card ul { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; }
.icp-card li {
  font-size: 0.93rem; color: var(--cream-soft); padding: 4px 0 4px 24px;
  position: relative;
}
.icp-card li::before {
  content: "";
  position: absolute; left: 2px; top: 11px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--sienna-500);
  border-bottom: 2px solid var(--sienna-500);
  transform: rotate(-45deg);
}
.icp-more {
  margin-top: auto;
  font-size: 0.88rem; font-weight: 600; color: var(--sienna-300);
  transition: transform 200ms var(--ease-settle);
}
.icp-card:hover .icp-more { transform: translateX(4px); }

/* ---------- Agents ---------- */
.agents-section { background: var(--espresso-900); }
.agent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.agent-card {
  background: var(--espresso-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
}
.agent-portrait {
  width: 104px; height: 104px;
  border-radius: var(--radius-arch);
  background: var(--espresso-700);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 300ms ease, border-color 300ms ease;
}
.agent-card:hover .agent-portrait { box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.agent-portrait svg { width: 82px; height: 82px; }
.agent-card h3 { margin-bottom: 2px; }
.agent-role {
  font-family: var(--mono);
  font-size: 0.75rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--sienna-300); margin-bottom: 14px;
}
.agent-card > p:not(.agent-role) { font-size: 0.95rem; color: var(--cream-soft); }
.example {
  margin-top: auto;
  padding-top: 16px;
}
.example::before {
  content: "";
  display: block;
  width: 26px; height: 2px;
  background: var(--sienna-500);
  margin-bottom: 10px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease-settle) 250ms;
}
.agent-card.is-lit .example::before { transform: scaleX(1); }
.example strong { color: var(--cream); }
.example .count { font-variant-numeric: tabular-nums; }
.example p {
  font-size: 0.9rem;
  color: var(--cream-faint);
  margin: 0;
}

/* ---------- Halal advantage — stacked bento deck ----------
   Each card pins while the next slides up over it; the covered card
   recedes (scale + dim, ScrollTrigger-driven; static stack without JS). */
.halal-section { background: var(--espresso-950); }
.halal-section .section-sub { margin-bottom: 24px; }
.bento-deck { margin-top: 8px; }
.bento-card {
  position: sticky;
  top: clamp(92px, 14vh, 140px);
  min-height: 56vh;
  background: var(--espresso-800);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: clamp(36px, 6vw, 84px);
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
  justify-content: center;
  will-change: transform;
}
.bento-card + .bento-card { margin-top: clamp(88px, 14vh, 150px); }
.bento-1 { background: linear-gradient(165deg, #2E241B 0%, #221B15 62%); }
.bento-2 { background: linear-gradient(165deg, #241D17 0%, #1B1510 62%); border-color: rgba(201, 106, 59, 0.28); }
.bento-3 { background: linear-gradient(165deg, #2B221A 0%, #201913 62%); }
.bento-4 { background: linear-gradient(165deg, #33241A 0%, #241B15 62%); border-color: rgba(201, 106, 59, 0.45); }
.bento-kicker {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sienna-300);
  margin-bottom: 18px;
}
.bento-kicker::before {
  content: "";
  display: inline-block;
  width: 26px; height: 2px;
  background: var(--sienna-500);
  margin-right: 14px;
  vertical-align: middle;
}
.bento-card h3 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.4em; }
.bento-card p {
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  color: var(--cream-soft);
  max-width: 52ch;
  margin: 0;
}
@media (max-width: 600px) {
  .bento-card { min-height: 62vh; top: 76px; }
  .bento-card + .bento-card { margin-top: 72px; }
}

/* ---------- Halal advantage (ICP subpages keep the 2-col grid) ---------- */
.halal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.halal-item {
  background: var(--espresso-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px 26px;
}
.halal-item h3 { font-size: 1.18rem; margin-bottom: 8px; }
.halal-item h3::before {
  content: "";
  display: block;
  width: 26px; height: 2px;
  background: var(--sienna-500);
  margin-bottom: 12px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease-settle) 200ms;
}
.halal-item.is-lit h3::before { transform: scaleX(1); }
.halal-item p { font-size: 0.96rem; color: var(--cream-soft); margin: 0; }

/* ---------- Boundaries ---------- */
.boundaries {
  background: var(--espresso-950);
  color: var(--cream);
}
.boundary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.boundary { border-top: 2px solid var(--sienna-500); padding-top: 22px; }
.boundary h3 { font-size: 1.14rem; color: var(--sienna-300); margin-bottom: 10px; }
.boundary p { font-size: 0.95rem; color: var(--cream-soft); margin: 0; }

/* ---------- Testimonials ---------- */
.tsec { background: var(--cream); color: #262220; }
.tsec h2 { color: #262220; }
.tcarousel { max-width: 760px; margin: 0 auto; }
.tviewport { position: relative; min-height: 300px; }
.tcard {
  position: absolute; inset: 0;
  background: #FCFAF3;
  border: 1px solid #E0D7C2;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px rgba(20, 16, 13, 0.45);
  padding: 36px 42px;
  opacity: 0;
  transform: translateX(26px);
  pointer-events: none;
  transition: opacity 480ms ease, transform 480ms var(--ease-settle);
}
.tcard.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.tcard.is-leaving { transform: translateX(-26px); }
.tavatar {
  width: 58px; height: 64px;
  border-radius: 999px 999px 8px 8px;
  background: var(--parchment-warm, #F0E9D8);
  border: 1px solid #E0D7C2;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.tavatar svg { width: 44px; height: 44px; }
.tcard blockquote {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 1.26rem;
  line-height: 1.5;
  color: #262220;
}
.tcard blockquote::before {
  content: "";
  display: block;
  width: 26px; height: 2px;
  background: var(--sienna-500);
  margin-bottom: 16px;
}
.tname { font-size: 0.88rem; color: #6E655C; margin: 0; font-weight: 600; }
.tnav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.tprev, .tnext {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid #D8CDB4;
  background: #FCFAF3;
  color: var(--sienna-600);
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms var(--ease-settle);
}
.tprev:hover, .tnext:hover {
  border-color: var(--sienna-500);
  background: #F4EDDC;
  color: #94482A;
  transform: translateY(-1px);
}
.tdots { display: flex; gap: 8px; }
.tdots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: #D8CDB4;
  cursor: pointer;
  padding: 0;
  transition: background 200ms ease, transform 200ms ease;
}
.tdots button.is-active { background: var(--sienna-500); transform: scale(1.3); }

/* ---------- Privacy ---------- */
.privacy-section { background: var(--espresso-950); color: var(--cream); }
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.priv-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  background: var(--espresso-800);
}
.priv-card h3 { font-size: 1.16rem; color: var(--sienna-300); margin-bottom: 10px; }
.priv-card h3::before {
  content: "";
  display: block;
  width: 26px; height: 2px;
  background: var(--sienna-500);
  margin-bottom: 12px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease-settle) 200ms;
}
.priv-card.is-lit h3::before { transform: scaleX(1); }
.priv-card p { font-size: 0.96rem; color: var(--cream-soft); margin: 0; }
.privacy-note {
  margin: 44px auto 0;
  max-width: 70ch;
  text-align: center;
  font-size: 0.9rem;
  color: var(--cream-faint);
}
@media (max-width: 760px) {
  .privacy-grid { grid-template-columns: 1fr; }
}

/* ---------- Chat ---------- */
.ask-section { background: var(--espresso-900); }
.chat {
  background: var(--espresso-800);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.chat-thread {
  padding: 26px; max-height: 440px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.msg-agent-intro { display: flex; gap: 13px; align-items: flex-start; }
.msg-agent-intro p { margin: 0; color: var(--cream-soft); font-size: 0.97rem; }
.msg-agent-intro svg { flex: none; margin-top: 2px; }
.msg-user, .msg-aman {
  border-radius: 12px; padding: 12px 16px; font-size: 0.95rem; max-width: 85%;
}
.msg-user {
  align-self: flex-end;
  background: var(--sienna-600); color: var(--espresso-950);
  border-bottom-right-radius: 4px;
}
.msg-user p, .msg-aman p { margin: 0; }
.msg-aman {
  align-self: flex-start;
  background: var(--espresso-700);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.msg-aman p:last-child { margin-bottom: 0; }
.msg-aman code { font-size: 0.85em; background: var(--espresso-600); border-radius: 4px; padding: 1px 5px; }
.msg-error { align-self: flex-start; color: var(--danger-l); font-size: 0.9rem; }
.caret::after {
  content: "▍";
  animation: blink-caret 900ms step-end infinite;
  color: var(--sienna-300);
}
@keyframes blink-caret { 50% { opacity: 0; } }
.chat-wait { display: flex; align-items: center; gap: 10px; color: var(--cream-faint); font-size: 0.9rem; }
.chat-wait .orb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--sienna-500);
  animation: breathe 1.6s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.72); opacity: 0.6; } }
.chat-form {
  display: flex; gap: 10px; align-items: flex-end;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: var(--espresso-800);
}
.chat-form textarea {
  flex: 1; resize: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px; padding: 11px 14px;
  font-family: var(--sans); font-size: 1rem;
  background: var(--espresso-900); color: var(--cream);
  max-height: 160px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.chat-form textarea::placeholder { color: var(--cream-faint); }
.chat-form textarea:focus {
  outline: none; border-color: var(--sienna-500);
  box-shadow: 0 0 0 3px rgba(201, 106, 59, 0.18);
}
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; background: var(--espresso-800); }
.chat-chips button {
  font-family: var(--sans); font-size: 0.85rem;
  color: var(--sienna-300); background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px; padding: 7px 14px; cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms var(--ease-settle);
}
.chat-chips button:hover {
  border-color: var(--sienna-500);
  background: var(--espresso-700);
  transform: translateY(-1px);
}

/* ---------- FAQ ---------- */
.faq-section { background: var(--espresso-900); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-list summary {
  cursor: pointer;
  font-family: var(--serif); font-size: 1.18rem; font-weight: 400;
  padding: 16px 0; list-style: none;
  position: relative; padding-right: 36px;
  transition: color 180ms ease;
}
.faq-list summary:hover { color: var(--sienna-300); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--sienna-300);
  border-bottom: 2px solid var(--sienna-300);
  transform: rotate(45deg);
  transition: transform 260ms var(--ease-settle), border-color 180ms ease;
}
.faq-list details[open] summary::after {
  transform: rotate(225deg);
  margin-top: -3px;
}
.faq-list details p {
  color: var(--cream-soft); font-size: 0.98rem; padding-bottom: 16px; margin: 0;
  max-width: 66ch;
  overflow: hidden;
}

/* ---------- Waitlist ---------- */
.waitlist-section { background: var(--espresso-900); padding-bottom: 120px; }
.waitlist-card {
  position: relative;
  background: var(--espresso-800);
  border: 1px solid var(--sienna-600);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  padding: 56px 48px;
  text-align: center;
}
.waitlist-card::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(201, 106, 59, 0.35);
  border-radius: 12px;
  pointer-events: none;
}
.waitlist-card > * { position: relative; }
.waitlist-card > p { color: var(--cream-soft); }
.waitlist-form { max-width: 460px; margin: 0 auto; text-align: left; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--cream-faint); }
.field input, .field select {
  width: 100%;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px; padding: 12px 14px;
  font-family: var(--sans); font-size: 1rem;
  background: var(--espresso-900); color: var(--cream);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input::placeholder { color: var(--cream-faint); }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--sienna-500);
  box-shadow: 0 0 0 3px rgba(201, 106, 59, 0.18);
}
.waitlist-form .btn { width: 100%; }
.hp-field { position: absolute !important; left: -9999px; height: 1px; width: 1px; opacity: 0; }
.form-status { margin: 14px 0 0; font-size: 0.95rem; }
.form-status.ok { color: var(--ok-l); font-weight: 600; }
.form-status.err { color: var(--danger-l); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--espresso-950);
  color: var(--cream-soft);
  padding: 64px 0 44px;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex; gap: 48px; flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand { max-width: 420px; }
.wordmark-footer {
  color: var(--cream); font-size: 1.35rem; margin-bottom: 6px;
  display: flex; align-items: baseline; gap: 10px;
}
.footer-line { font-family: var(--serif); color: var(--sienna-300); margin-bottom: 14px; }
.footer-small { font-size: 0.8rem; color: var(--cream-faint); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; margin-left: auto; }
.footer-nav a { color: var(--cream-soft); text-decoration: none; transition: color 150ms ease; }
.footer-nav a:hover { color: var(--sienna-300); }
.footer-copy {
  width: 100%; margin: 36px 0 0; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--cream-faint);
}

/* ---------- ICP sub-pages ---------- */
.section-tinted { background: var(--espresso-950); }
.hero-subpage { padding: 100px 0 88px; }
.hero-subpage .hero-sub { max-width: 56ch; }
.waitlist-section.compact { padding-bottom: 88px; }
.related.adjacent { padding-top: 48px; margin-top: -48px; background: var(--espresso-950); }
.crumbs {
  font-size: 0.85rem; color: var(--cream-faint); margin-bottom: 26px;
  font-family: var(--mono); letter-spacing: 0.01em;
}
.crumbs a { color: var(--cream-faint); text-decoration: none; }
.crumbs a:hover { color: var(--sienna-300); }
.pains { background: var(--espresso-900); }
.pain-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}
.pain-list li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
  color: var(--cream-soft);
}
.pain-list li:first-child { border-top: 1px solid var(--line); }
.pain-list li::before {
  content: "";
  position: absolute;
  left: 6px; top: 24px;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--sienna-500);
}
.pull {
  font-family: var(--serif);
  font-size: 1.34rem;
  line-height: 1.4;
  color: var(--sienna-300);
  margin: 34px 0 0;
  text-wrap: balance;
}
.task-rows {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--espresso-800);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.task-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease;
}
.task-row:last-child { border-bottom: none; }
.task-row:hover { background: var(--espresso-700); }
.task-row .tk { font-family: var(--mono); font-size: 0.92rem; color: var(--cream); min-width: 0; }
.task-row .tv {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--ok-l);
  background: rgba(154, 163, 131, 0.1);
  border: 1px solid rgba(154, 163, 131, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  justify-self: end;
  text-align: right;
}
.tagent-l {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.tagent-l--haseb { color: var(--ag-haseb-l); border-color: rgba(201, 106, 59, 0.55); background: rgba(201, 106, 59, 0.12); }
.tagent-l--dalil { color: var(--ag-dalil-l); border-color: rgba(126, 147, 176, 0.55); background: rgba(126, 147, 176, 0.12); }
.tagent-l--katib { color: var(--ag-katib-l); border-color: rgba(216, 185, 142, 0.5); background: rgba(216, 185, 142, 0.1); }
.tagent-l--rasid { color: var(--ag-rasid-l); border-color: rgba(140, 122, 107, 0.6); background: rgba(140, 122, 107, 0.14); }
@media (max-width: 700px) {
  .task-row { grid-template-columns: 1fr; gap: 8px; align-items: start; padding: 14px 18px; }
  .task-row .tv { justify-self: start; text-align: left; margin-left: 2px; }
}
.for-cta-band {
  background: var(--espresso-950);
  color: var(--cream);
  text-align: center;
}
.for-cta-band p { color: var(--cream-soft); max-width: 56ch; margin: 0 auto 30px; }
.related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.related h3 {
  font-family: var(--sans);
  font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cream-faint); margin-bottom: 16px;
}
.related-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.related-links a { font-size: 0.95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .icp-grid { grid-template-columns: repeat(2, 1fr); }
  .halal-grid { grid-template-columns: 1fr; }
  .boundary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .section { padding: 88px 0; }
  .hero { padding: 68px 0 56px; }
  .hero-subpage { padding: 64px 0 56px; }
  .tcard { padding: 28px 24px; }
  .tcard blockquote { font-size: 1.06rem; }
  .logo-card { min-width: 108px; padding: 16px 14px; }
  .agent-grid, .icp-grid, .boundary-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .hero-console { transform: none; margin-top: 10px; }
  .console-body { height: 330px; }
  .console-row {
    grid-template-columns: 9px auto 1fr;
    grid-template-areas:
      "dot who pill"
      "text text text";
    row-gap: 4px;
    column-gap: 9px;
  }
  .console-row .cdot { grid-area: dot; margin-top: 5px; }
  .console-row .tagent { grid-area: who; justify-self: start; margin-top: 0; }
  .console-row .ctext { grid-area: text; }
  .console-row .cpill { grid-area: pill; justify-self: end; margin-top: 0; }
  .waitlist-card { padding: 42px 24px; }
  .waitlist-card::before { inset: 7px; }
  .film-frame { border-radius: 14px; }
  .stamp { right: 14px; bottom: 12px; font-size: 0.7rem; }
  .sheet-head, .sheet-row { grid-template-columns: 1fr auto; }
  .sheet-row .s-cert, .sheet-head span:nth-child(2) { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; }
  .ctext .ccursor { animation: none; }
  .console-live i { animation: none; }
  .shot.is-active .shot-scene { animation: none; }
  .priv-card h3::before, .example::before { transform: scaleX(1); transition: none; }
  .bento-card { position: relative; top: 0; min-height: 0; margin-top: 24px !important; }
  .film-stage .fscene { display: none; }
  .film-stage .f0 { display: flex; opacity: 1; visibility: visible; }
  * { transition: none !important; }
}

/* ==========================================================================
   Guides — paper reading rooms (Read mode: comprehension first)
   ========================================================================== */
.guide-hero { padding: 104px 0 30px; }
.guide-hero .crumbs { color: #6E655C; margin-bottom: 26px; }
.guide-hero .crumbs a { color: #6E655C; }
.guide-hero .crumbs a:hover { color: #A8552E; }
.guide-kicker {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #A8552E; margin: 0 0 18px;
}
.guide-hero h1 { max-width: 22ch; font-size: clamp(2.2rem, 4.4vw, 3.35rem); margin-bottom: 0.4em; }
.guide-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-family: var(--mono); font-size: 0.78rem; color: #6E655C;
  margin: 0 0 8px;
}
.guide-meta span { display: inline-flex; align-items: center; gap: 8px; }
.guide-meta .dotsep { width: 4px; height: 4px; border-radius: 50%; background: #C9BCA5; }

.guide-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 56px;
  padding: 28px 0 104px;
  align-items: start;
}
.guide-toc { position: sticky; top: 92px; padding-left: 16px; border-left: 1px solid #E7DFD0; }
.guide-toc p {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #6E655C; margin: 0 0 12px;
}
.guide-toc a {
  display: block; padding: 6px 0; font-size: 0.89rem; line-height: 1.4;
  color: #6E655C; text-decoration: none;
  transition: color 150ms ease;
}
.guide-toc a:hover { color: #A8552E; }

.guide-prose { max-width: 720px; }
.guide-prose > p { font-size: 1.07rem; line-height: 1.78; color: #3A332C; margin: 0 0 1.15em; }
.guide-prose > p:first-of-type { font-size: 1.16rem; color: #2E2620; }
.guide-prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  margin: 2.3em 0 0.55em;
  scroll-margin-top: 96px;
}
.guide-prose h2:first-of-type { margin-top: 1.2em; }
.guide-prose ul, .guide-prose ol { margin: 0 0 1.35em; padding-left: 1.3em; }
.guide-prose li { font-size: 1.04rem; line-height: 1.72; color: #3A332C; margin-bottom: 0.55em; }
.guide-prose strong { color: #221D18; font-weight: 650; }
.guide-prose em { font-style: italic; }

.summary-box {
  background: #FFFFFF;
  border: 1px solid #E7DFD0;
  border-radius: 16px;
  padding: 26px 28px;
  margin: 34px 0 8px;
  box-shadow: 0 18px 40px -34px rgba(20, 16, 13, 0.4);
}
.summary-box h2 {
  margin: 0 0 14px;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: #A8552E;
}
.summary-box ul { margin: 0; padding-left: 1.15em; }
.summary-box li { font-size: 1rem; color: #3A332C; margin-bottom: 0.4em; }

.checklist-box {
  margin: 30px 0 8px;
  padding: 26px 28px;
  background: #FFFFFF;
  border: 1px solid #E7DFD0;
  border-radius: 16px;
}
.checklist-box h2 {
  margin: 0 0 16px;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: #A8552E;
}
.checklist-box ul { list-style: none; margin: 0; padding: 0; }
.checklist-box li {
  position: relative;
  padding-left: 30px;
  font-size: 1rem;
  line-height: 1.6;
  color: #3A332C;
  margin-bottom: 0.6em;
}
.checklist-box li:last-child { margin-bottom: 0; }
.checklist-box li::before {
  content: "";
  position: absolute; left: 3px; top: 0.5em;
  width: 12px; height: 7px;
  border-left: 2px solid #A8552E;
  border-bottom: 2px solid #A8552E;
  transform: rotate(-45deg);
}

.aman-fit {
  margin: 48px 0 8px;
  padding: 30px 32px;
  background: var(--espresso-800);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
}
.aman-fit h2 { color: var(--cream); margin: 0 0 10px; font-size: 1.42rem; }
.aman-fit p { color: rgba(243, 237, 226, 0.85); margin: 0; font-size: 1rem; line-height: 1.7; }
.aman-fit a { color: var(--sienna-300); }

.guide-faq { margin-top: 8px; }
.guide-faq h2 { margin-bottom: 0.2em; }
.guide-faq details { border-bottom: 1px solid #E7DFD0; }
.guide-faq summary {
  position: relative;
  padding: 16px 32px 16px 0;
  font-family: var(--serif); font-size: 1.14rem; color: #262220;
  cursor: pointer; list-style: none;
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid #A8552E;
  border-bottom: 2px solid #A8552E;
  transform: rotate(45deg);
  transition: transform 240ms var(--ease-settle);
}
.guide-faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.guide-faq details p {
  margin: 0; padding: 0 0 18px;
  max-width: 64ch;
  font-size: 1rem; line-height: 1.7; color: #4A4238;
}

.related-guides {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 44px;
}
.guide-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 22px 20px;
  background: #FFFFFF;
  border: 1px solid #E7DFD0;
  border-radius: 14px;
  text-decoration: none;
  color: #262220;
  transition: border-color 180ms ease, transform 180ms var(--ease-settle), box-shadow 180ms ease;
}
.guide-card:hover {
  border-color: var(--sienna-500);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -26px rgba(20, 16, 13, 0.4);
}
.guide-card span {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #A8552E;
}
.guide-card h3 { font-size: 1.12rem; margin: 0; line-height: 1.35; }
.guide-card p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: #4A4238; }

/* hub */
.guide-groups { display: flex; flex-direction: column; gap: 54px; margin-top: 8px; }
.guide-group h2 { font-size: 1.55rem; margin-bottom: 4px; }
.guide-group > p { color: #4A4238; margin: 0 0 20px; font-size: 1rem; }
.guide-group .guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-group .guide-card { height: 100%; }

@media (max-width: 980px) {
  .guide-layout { grid-template-columns: 1fr; gap: 28px; padding-bottom: 72px; }
  .guide-toc { position: static; border-left: 0; padding-left: 0; border-top: 1px solid #E7DFD0; padding-top: 18px; }
  .guide-toc a { display: inline-block; margin-right: 16px; }
  .related-guides { grid-template-columns: 1fr; }
  .guide-group .guide-grid { grid-template-columns: 1fr; }
}

/* guide body room — the paper the prose actually sits on */
.guide-main { background: #FBFAF7; color: #262220; }
.guide-main .wrap { max-width: 1140px; }

/* the guide pages are paper from header to footer; any seam reads paper */
.guide-page main { background: #FBFAF7; }
.guide-page > .section + .section { border-top-color: #E7DFD0; }
