:root {
  --bg: #0b0a08;
  --bg-2: #110f0c;
  --bg-3: #16130e;
  --ink: #efe8da;
  --ink-2: #cdc4b3;
  --muted: #8a8274;
  --gold: #c9a96e;
  --gold-soft: #e6d3a8;
  --gold-deep: #9c7c45;
  --hair: rgba(201, 169, 110, 0.3);
  --line: rgba(239, 232, 218, 0.09);
  --pad: 5.5vw;
  --serif-ar: "Amiri", "Noto Naskh Arabic", serif;
  --sans-ar: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --serif-en: "Cormorant Garamond", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans-ar);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection { background: rgba(201, 169, 110, 0.35); color: #fff; }

a { color: inherit; }

.en {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

/* ---------- Top bar ---------- */

.top {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.5rem var(--pad);
  transition: background 0.5s ease, padding 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}

.top.is-scrolled {
  padding-block: 0.95rem;
  background: rgba(11, 10, 8, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  justify-self: start;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--hair);
  border-radius: 50%;
  font-family: var(--serif-ar);
  font-size: 1.35rem;
  color: var(--gold);
  line-height: 1;
  padding-top: 0.2rem;
}

.brand-name {
  font-family: var(--serif-ar);
  font-size: 1.15rem;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 2.4rem;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.25rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.45s var(--ease);
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.top-tag {
  justify-self: end;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-decoration: none;
}

.menu { display: none; justify-self: end; position: relative; }

.menu > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink);
  border: 1px solid var(--hair);
  padding: 0.35rem 1rem;
}

.menu > summary::-webkit-details-marker { display: none; }

.menu nav {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.8rem);
  width: 15rem;
  display: flex;
  flex-direction: column;
  padding: 0.8rem 1.2rem;
  background: var(--bg-3);
  border: 1px solid var(--hair);
}

.menu nav a {
  padding: 0.6rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.menu nav a:last-child { border-bottom: 0; color: var(--gold); }

/* ---------- Reveal ---------- */

.js .rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .rv.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */

.hero {
  --mx: 72%;
  --my: 32%;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
  align-items: center;
  gap: 5vw;
  padding: 9rem var(--pad) 8rem;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px circle at var(--mx) var(--my), rgba(201, 169, 110, 0.1), transparent 62%),
    radial-gradient(900px 520px at 12% 20%, rgba(201, 169, 110, 0.05), transparent 70%);
  transition: background 0.2s linear;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 400;
}

.eyebrow::before {
  content: "";
  width: 3rem;
  height: 1px;
  background: var(--gold);
}

h1 {
  margin: 0;
  font-family: var(--serif-ar);
  font-weight: 700;
  line-height: 1;
}

.h1-pre {
  display: block;
  margin-bottom: 1.1rem;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 400;
  color: var(--gold-soft);
}

.h1-name {
  display: block;
  font-size: clamp(4.2rem, 10.5vw, 9.6rem);
  line-height: 1.05;
  padding-bottom: 0.1em;
  background: linear-gradient(175deg, #f7f1e5 0%, #efe4cd 45%, #c9a96e 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h1-alias {
  display: block;
  margin-top: 1rem;
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: right;
}

.h1-alias b {
  font-weight: 500;
  color: var(--gold-soft);
}

.roles {
  position: relative;
  height: 2.4rem;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 400;
}

.roles li {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.roles li::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.roles li.is-on { opacity: 1; transform: none; }

.no-js .roles { height: auto; }
.no-js .roles li { position: static; opacity: 1; transform: none; }

.lede {
  max-width: 35rem;
  margin: 1.8rem 0 0;
  color: var(--ink-2);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.8rem;
}

.btn-gold,
.btn-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 2.1rem;
  font-family: var(--sans-ar);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease);
}

.btn-gold {
  color: #16120a;
  background: linear-gradient(135deg, #eddcb4 0%, #c9a96e 48%, #9c7c45 100%);
}

.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(120%);
  transition: transform 1s var(--ease);
}

.btn-gold:hover::after { transform: translateX(-120%); }
.btn-gold:hover { transform: translateY(-2px); }

.btn-line {
  color: var(--ink);
  border: 1px solid var(--hair);
}

.btn-line:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  transform: translateY(-2px);
}

.arrow {
  display: inline-block;
  width: 1.4rem;
  height: 1px;
  background: currentColor;
  position: relative;
}

.arrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

/* Seal */

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.6rem;
}

.seal {
  position: relative;
  width: min(23rem, 30vw);
  margin: 0;
}

.seal::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.14), transparent 70%);
  filter: blur(20px);
}

.seal svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  direction: ltr;
}

.s-out { fill: none; stroke: var(--hair); stroke-width: 0.3; }
.s-ticks { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 0.25 4.567; opacity: 0.6; }
.s-in { fill: none; stroke: url(#sealGold); stroke-width: 0.35; }
.s-core { fill: rgba(201, 169, 110, 0.04); stroke: var(--line); stroke-width: 0.25; }
.s-text { font-family: var(--serif-en); font-size: 4.3px; font-weight: 500; letter-spacing: 0.5px; fill: var(--gold-soft); }
.s-rot { transform-box: view-box; transform-origin: 50% 50%; animation: spin 90s linear infinite; }
.s-mono { font-family: var(--serif-ar); font-size: 30px; font-weight: 700; fill: url(#sealGold); }
.s-est { font-family: var(--serif-en); font-size: 3.3px; letter-spacing: 1.3px; fill: var(--muted); }

@keyframes spin { to { transform: rotate(360deg); } }

.ledger {
  width: min(23rem, 100%);
  margin: 0;
}

.ledger div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.ledger div:first-child { border-top: 1px solid var(--line); }

.ledger dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.ledger dd {
  margin: 0;
  font-family: var(--serif-ar);
  font-size: 1.12rem;
}

.coords {
  position: absolute;
  inset-inline: var(--pad);
  bottom: 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.scroll-cue i {
  position: relative;
  width: 3rem;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ---------- Chapters ---------- */

.rule {
  position: relative;
  height: 1px;
  margin: 0 var(--pad);
  background: linear-gradient(90deg, transparent, var(--hair), transparent);
}

.rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  background: var(--bg);
  transform: translate(-50%, -50%) rotate(45deg);
}

.chapter {
  position: relative;
  padding: 8.5rem var(--pad);
}

.chapter-head {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

.chapter-no {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.9rem;
}

.chapter-no b {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--gold);
}

.chapter-no span {
  color: var(--muted);
  font-size: 0.85rem;
}

h2 {
  margin: 0;
  max-width: 20ch;
  font-family: var(--serif-ar);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.25;
}

h2 em {
  font-style: normal;
  color: var(--gold-soft);
}

.body-col { margin-inline-start: calc(13rem + 3rem); }

/* Architect */

.letter {
  max-width: 50rem;
  margin: 0;
  font-family: var(--serif-ar);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 2.05;
  color: var(--ink);
}

.signature {
  display: flex;
  align-items: flex-end;
  gap: 1.6rem;
  margin-top: 3rem;
}

.signature strong {
  font-family: "Aref Ruqaa", var(--serif-ar);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--gold);
}

.signature span {
  padding-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-inline-start: 1px solid var(--hair);
  padding-inline-start: 1.6rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 5rem 0 0;
  border-top: 1px solid var(--line);
}

.facts div {
  padding: 1.7rem 1.6rem 0 0;
}

.facts div + div {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 1.6rem;
}

.facts div:first-child { padding-inline-start: 0; }

.facts dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.facts dd {
  margin: 0.4rem 0 0;
  font-family: var(--serif-ar);
  font-size: 1.3rem;
  line-height: 1.5;
}

.facts dd small {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-soft);
}

/* Giturn */

.chapter.house {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%);
}

.house-intro {
  max-width: 46rem;
  margin: 0;
  color: var(--ink-2);
  font-size: 1.15rem;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 4.5rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(270deg, var(--gold), var(--hair) 70%, transparent);
}

.timeline li {
  position: relative;
  padding-top: 2.2rem;
  padding-inline-end: 1.2rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--gold);
}

.timeline li:last-child::before {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(201, 169, 110, 0.14);
}

.timeline b {
  display: block;
  font-family: var(--serif-en);
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--gold-soft);
}

.timeline strong {
  display: block;
  margin-top: 0.8rem;
  font-weight: 500;
  font-size: 1rem;
}

.timeline span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 5rem 0 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.figures div {
  padding: 2.3rem 0 2.1rem;
  text-align: center;
}

.figures div + div { border-inline-start: 1px solid var(--line); }

.figures strong {
  display: block;
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  line-height: 1;
  color: var(--ink);
  text-align: center;
}

.figures span {
  display: block;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.offices {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
}

.offices li {
  padding: 1.6rem 1.4rem;
  transition: background 0.5s ease;
}

.offices li + li { border-inline-start: 1px solid var(--line); }
.offices li:hover { background: rgba(201, 169, 110, 0.05); }

.offices .country {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.offices .city {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--serif-ar);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
}

.offices .since {
  display: block;
  font-family: var(--serif-en);
  font-style: italic;
  color: var(--gold-soft);
}

.offices .detail {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.6rem;
  margin-top: 2.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-line a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.contact-line a:hover { color: var(--gold-soft); border-color: var(--gold); }

/* Arsenal */

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

.plaque {
  --c: var(--gold);
  position: relative;
  padding: 3rem 2.8rem 2.4rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--c), var(--c)) top left / 20px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 20px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 20px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px 20px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 20px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 20px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 20px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 20px no-repeat,
    linear-gradient(160deg, rgba(201, 169, 110, 0.05), transparent 55%);
}

.plaque-code {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.plaque h3 {
  margin: 0.8rem 0 1.8rem;
  font-family: var(--serif-ar);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.35;
}

.skills {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills li {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.skills li::after {
  content: "";
  position: absolute;
  bottom: -1px;
  inset-inline-start: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.7s var(--ease);
}

.skills li:hover::after { transform: scaleX(1); }

.skills .i {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold);
}

.skills .n {
  display: block;
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--ink);
  text-align: right;
}

.skills small {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Sectors */

.sectors { border-bottom: 1px solid var(--line); }

.sector {
  position: relative;
  display: grid;
  grid-template-columns: 6rem minmax(13rem, 0.8fr) minmax(0, 1.2fr);
  gap: 2.8rem;
  padding: 3.2rem 1.8rem;
  border-top: 1px solid var(--line);
  transition: background 0.7s ease;
}

.sector::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.9s var(--ease);
}

.sector:hover { background: linear-gradient(270deg, rgba(201, 169, 110, 0.06), transparent 75%); }
.sector:hover::before { transform: scaleX(1); }

.sector .rn {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.7s var(--ease);
}

.sector:hover .rn { transform: translateX(-6px); }

.sector h3 {
  margin: 0;
  font-family: var(--serif-ar);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
}

.sector .tag {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.sector p {
  margin: 0;
  color: var(--ink-2);
}

.works {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.works li {
  padding: 0.2rem 0.9rem;
  border: 1px solid var(--hair);
  color: var(--gold-soft);
  font-size: 0.84rem;
  font-weight: 400;
}

/* Finale */

.finale {
  position: relative;
  padding: 10rem var(--pad) 9rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.finale::before {
  content: "Giturn";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  transform: translate(-50%, -50%);
  font-family: var(--serif-en);
  font-style: italic;
  font-size: clamp(9rem, 26vw, 22rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 169, 110, 0.1);
  white-space: nowrap;
  pointer-events: none;
}

.finale-mark {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.finale p {
  max-width: 44rem;
  margin: 2.4rem auto 0;
  font-family: var(--serif-ar);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.7;
}

.finale .btn-gold { margin-top: 3.2rem; }

/* Footer */

.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem var(--pad) 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.foot .brand { justify-self: start; }

.foot-links {
  display: flex;
  gap: 2rem;
}

.foot-links a {
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.3s ease;
}

.foot-links a:hover { color: var(--gold-soft); }

.foot-copy {
  justify-self: end;
  margin: 0;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 1rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 3rem; }
  .offices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offices li:nth-child(4) { border-inline-start: 0; }
  .offices li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .sector { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .sector > div:last-child { grid-column: 2; }
}

@media (max-width: 900px) {
  :root { --pad: 6vw; }
  .nav, .top-tag { display: none; }
  .menu { display: block; }
  .top { grid-template-columns: 1fr auto; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 8rem;
    padding-bottom: 9rem;
    gap: 4rem;
  }
  .seal { width: min(17rem, 70vw); }
  .chapter { padding-block: 6rem; }
  .chapter-head { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.6rem; }
  .chapter-no { flex-direction: row; align-items: baseline; gap: 0.9rem; padding-top: 0; }
  .body-col { margin-inline-start: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .facts div { padding-bottom: 1.4rem; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures div:nth-child(3) { border-inline-start: 0; }
  .figures div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .plaques { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; justify-items: start; }
  .foot-copy { justify-self: start; }
}

@media (max-width: 640px) {
  .roles { height: 2.1rem; }
  .roles li { white-space: normal; }
  .coords span:first-child { display: none; }
  .coords { justify-content: flex-end; }
  .timeline { grid-template-columns: 1fr; row-gap: 0; }
  .timeline::before {
    top: 0;
    bottom: 0;
    inset-inline-start: 4px;
    inset-inline-end: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--hair), var(--gold));
  }
  .timeline li {
    padding: 0 2.2rem 2.2rem 0;
  }
  .timeline li::before { top: 0.6rem; }
  .timeline b { font-size: 1.8rem; }
  .offices { grid-template-columns: 1fr; }
  .offices li + li { border-inline-start: 0; border-top: 1px solid var(--line); }
  .plaque { padding: 2.4rem 1.6rem 1.8rem; }
  .sector { grid-template-columns: 1fr; gap: 1rem; padding-inline: 0; }
  .sector > div:last-child { grid-column: auto; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); }
  .signature { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .signature span { border: 0; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .s-rot, .scroll-cue i::after { animation: none; }
  .roles li { transition: none; }
}
