/* Version 2. Fonts are self-hosted (Google Fonts files, SIL Open Font License). */
@font-face {
  font-family: "Bellefair";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bellefair-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Bellefair";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bellefair-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bellefair";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bellefair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/assistant-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/assistant-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/assistant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Logo letters "TRS" only: Cinzel 600, subset to T, R, S (SIL Open Font License) */
@font-face {
  font-family: "TRS Logo";
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url("../fonts/cinzel-600-trs.woff2") format("woff2");
  unicode-range: U+52-54;
}

/* TRS | Insurance & Finance — the private client book.
   Navy book cloth, white bond pages, gold only as foil. */

:root {
  --cloth-deep: #0a1830;
  --cloth: #0d1f3c;
  --ink: #13294b;
  --ink-2: #46566f;
  --paper: #ffffff;
  --paper-2: #f3f5f8;
  --rule: rgba(19, 41, 75, 0.14);
  --rule-strong: rgba(19, 41, 75, 0.28);
  --gold: #c7a062;
  --gold-hi: #d9b77d;
  --gold-deep: #9a7639;
  --on-cloth: #f1f3f7;
  --on-cloth-2: #b9c3d4;
  --rule-cloth: rgba(241, 243, 247, 0.16);

  --display: "Bellefair", "Times New Roman", serif;
  --text: "Assistant", "Segoe UI", Arial, sans-serif;

  --gut: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --bar-h: 76px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  color-scheme: light;
}

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

html {
  scroll-behavior: auto; /* in-page scrolling is animated by site.js */
  scroll-padding-top: var(--bar-h);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink) var(--paper-2);
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--gold-deep);
  font-variant-numeric: lining-nums tabular-nums;
}

::selection { background: var(--gold-hi); color: var(--cloth-deep); }

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { -webkit-tap-highlight-color: transparent; }
.cover :focus-visible,
.page--navy :focus-visible,
.foot :focus-visible,
.menu :focus-visible,
.bar:not(.is-solid) :focus-visible { outline-color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* Skip link */
.skip {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--cloth-deep);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip:focus-visible { transform: none; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 1.0625rem/1 var(--text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn--gold { background: var(--gold); color: var(--cloth-deep); }
.btn--ghost { border-color: rgba(241, 243, 247, 0.4); color: var(--on-cloth); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 1rem; background: var(--gold); color: var(--cloth-deep); }

@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover,
  .btn--small:hover { background: var(--gold-hi); }
  .btn--ghost:hover { border-color: var(--gold); background: rgba(241, 243, 247, 0.06); }
}

.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 200ms ease, color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: var(--gold); }
}
.link--light { color: var(--on-cloth); }

/* ---------- Header ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--bar-h);
  color: var(--on-cloth);
  transition: background-color 260ms ease, box-shadow 260ms ease, color 260ms ease;
}
.bar__in {
  height: 100%;
  max-width: calc(var(--max) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  gap: 24px;
}
.bar__logo {
  position: relative;
  display: block;
  width: 136px;
  aspect-ratio: 800 / 262;
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 0s 260ms;
}
.bar__logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 260ms ease; }
.bar__logo-dark { opacity: 0; }

.bar__nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
}
.bar__nav .link { text-decoration-color: transparent; padding-block: 12px; }

.bar.is-solid {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--rule);
}
.bar.is-solid .bar__logo { opacity: 1; visibility: visible; transition: opacity 260ms ease; }
.bar.is-solid .bar__logo-dark { opacity: 1; }
.bar.is-solid .bar__logo-light { opacity: 0; }
.bar.is-solid .btn--small { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .bar.is-solid .btn--small:hover { background: var(--cloth-deep); }
}

.bar__menu {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: inherit;
  font: 600 1rem var(--text);
  cursor: pointer;
}
.bar__menu-lines {
  position: relative;
  width: 22px;
  height: 10px;
  border-block: 1.5px solid currentColor;
}

/* ---------- Menu (contents page) ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  background-color: var(--cloth-deep);
  background-image: var(--linen);
  color: var(--on-cloth);
}
.menu[hidden] { display: none; }
.menu.is-open .menu__in { animation: menu-in 280ms var(--ease-out) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(10px); } }
.menu__in {
  min-height: 100%;
  padding: 24px var(--gut) 40px;
  display: flex;
  flex-direction: column;
}
.menu__close {
  align-self: flex-end;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--on-cloth);
  font: 600 1rem var(--text);
  cursor: pointer;
}
.menu__title {
  margin-top: 28px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.375rem;
}
.menu__list { list-style: none; margin: 18px 0 0; padding: 0; }
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-cloth);
  font-family: var(--display);
  font-size: clamp(1.75rem, 6vw, 2.4rem);
  text-decoration: none;
}
.menu__list i { flex: 1; border-bottom: 1px dotted rgba(199, 160, 98, 0.6); }
.menu__foot { margin-top: auto; padding-top: 40px; display: grid; gap: 18px; justify-items: start; }

/* ---------- Cloth (cover, back cover, footer) ---------- */

:root {
  --linen: none;
}

.cover {
  position: relative;
  background-color: var(--cloth);
  background-image: var(--linen);
  color: var(--on-cloth);
  overflow: hidden;
}
.cover__spine {
  position: absolute;
  top: 0;
  bottom: 0;
  right: clamp(8px, 1.6vw, 26px);
  width: 7px;
  border-inline: 1px solid rgba(199, 160, 98, 0.55);
  pointer-events: none;
}

.cover__grid {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  padding-block: calc(var(--bar-h) + 24px) 56px;
}
.cover__text { max-width: 640px; }
.br-wide { display: none; }
@media (min-width: 901px) { .br-wide { display: inline; } }
.cover__stamp { width: clamp(200px, 22vw, 300px); margin-bottom: clamp(32px, 6vh, 56px); }
.cover__title {
  font-size: clamp(2.6rem, 5.2vw, 4.9rem);
  line-height: 1.08;
  color: var(--paper);
}
.cover__lead {
  margin-top: 26px;
  max-width: 34em;
  color: var(--on-cloth-2);
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
}
.cover__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.cover__plate { align-self: stretch; max-height: calc(100svh - var(--bar-h) - 80px); }

/* ---------- Plates: photographs tipped into the book ---------- */

.plate {
  margin: 0;
  padding: 10px;
  background: var(--paper);
  box-shadow:
    0 1px 2px rgba(10, 24, 48, 0.08),
    0 24px 48px -28px rgba(10, 24, 48, 0.45);
}
.plate img { width: 100%; height: 100%; object-fit: cover; background: var(--paper-2); }
.plate--dark { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 28px 60px -30px rgba(0, 0, 0, 0.8); }

/* ---------- Pages ---------- */

.page {
  position: relative;
  padding-block: clamp(96px, 12vh, 150px);
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.page > .wrap { flex: 1; }
.page--navy {
  background-color: var(--cloth);
  background-image: var(--linen);
  color: var(--on-cloth);
}

.head { max-width: 720px; margin-bottom: clamp(44px, 7vh, 72px); }
.head h2 { font-size: clamp(2.3rem, 4vw, 3.6rem); }
.head__lead { margin-top: 18px; color: var(--ink-2); font-size: 1.1875rem; max-width: 36em; }
.head--light h2 { color: var(--paper); }
.head--light .head__lead { color: var(--on-cloth-2); }
.head--tight { margin-bottom: clamp(32px, 5vh, 52px); }

/* Envelope: contents page */
.envelope {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: stretch;
}
.contents { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.contents__row {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) minmax(0, 46%);
  align-items: baseline;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid var(--rule);
}
.contents__row h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); }
.contents__leader { align-self: end; margin-bottom: 0.55em; border-bottom: 1.5px dotted var(--gold-deep); opacity: 0.55; }
.contents__row p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; }
.envelope__plate { min-height: 520px; }

/* Statement moment */
.statement { position: relative; height: 230vh; background: var(--paper-2); }
.statement__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
}
.statement__text {
  max-width: 23ch;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.8vw, 4.8rem);
  line-height: 1.3;
  color: var(--ink);
}
.js .statement__text .w { color: rgba(19, 41, 75, 0.24); transition: color 220ms ease; }
.js .statement__text .w.is-on { color: var(--ink); }
.statement__rule { display: block; width: 72px; margin-top: 44px; border-top: 1px solid var(--gold-deep); }

/* Clients: ledger */
.clients {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: stretch;
}
.clients__plate { min-height: 540px; }
.clients__body { align-self: center; }
.ledger { margin: 0; border-bottom: 1px solid var(--rule); }
.ledger__row {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding-block: 20px;
  border-top: 1px solid var(--rule);
}
.ledger dt { font-family: var(--display); font-size: 1.6rem; line-height: 1.2; }
.ledger dd { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }

/* Process */
.process__top { display: block; }
.process__top .head { margin-bottom: 0; }
.steps {
  list-style: none;
  margin: clamp(56px, 9vh, 88px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 6px;
  right: 0;
  left: 0;
  border-top: 1px solid rgba(199, 160, 98, 0.45);
}
.step { position: relative; }
.step__mark {
  display: block;
  width: 13px;
  height: 13px;
  margin-bottom: 26px;
  background: var(--cloth);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.step:last-child .step__mark { background: var(--gold); }
.step h3 { font-size: 1.6rem; color: var(--paper); }
.step p { margin-top: 10px; color: var(--on-cloth-2); font-size: 1.0625rem; }

/* Terms */
.terms {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: stretch;
}
.terms__body { align-self: center; }
.terms__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 56px);
}
.term { padding-block: 26px 30px; border-top: 1px solid var(--rule); }
.term h3 { font-size: clamp(1.5rem, 2vw, 1.75rem); }
.term p { margin-top: 10px; color: var(--ink-2); font-size: 1.0625rem; }
.terms__plate { min-height: 560px; }

/* Back cover */
.back {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(96px, 12vh, 150px);
}
.back__title { font-size: clamp(2.5rem, 4.6vw, 4.4rem); color: var(--paper); }
.back__details { margin-top: 0; justify-self: stretch; max-width: none; }
.back__details dd { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-family: var(--display); }
.back__details div { padding-block: 22px; grid-template-columns: 110px 1fr; }
.card-details { margin: 40px 0 0; border-bottom: 1px solid var(--rule-cloth); max-width: 520px; }
.card-details div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-block: 14px;
  border-top: 1px solid var(--rule-cloth);
}
.card-details dt { color: var(--on-cloth-2); font-size: 0.9375rem; }
.card-details dd { margin: 0; font-size: 1.1875rem; }
.card-details a { display: inline-block; padding-block: 8px; }

/* Footer */
.foot {
  background: var(--cloth-deep);
  color: var(--on-cloth-2);
  padding-block: 64px 36px;
  font-size: 0.9375rem;
}
.foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule-cloth);
}
.foot__logo { width: 170px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot__nav a { display: inline-block; padding-block: 10px; }
.foot__legal { margin-top: 28px; max-width: 70ch; line-height: 1.7; }
.foot__base {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  align-items: baseline;
}
.credits summary {
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(185, 195, 212, 0.4);
}
.credits p { max-width: 70ch; margin-top: 6px; }

/* ---------- Entrance (once, on load; CSS only, content is visible without it) ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes plate-in { from { clip-path: inset(100% 0 0 0); } }

[data-enter] .cover__text > * { animation: rise 900ms var(--ease-out) both; }
[data-enter] .cover__text > :nth-child(1) { animation-delay: 60ms; }
[data-enter] .cover__text > :nth-child(2) { animation-delay: 150ms; }
[data-enter] .cover__text > :nth-child(3) { animation-delay: 230ms; }
[data-enter] .cover__text > :nth-child(4) { animation-delay: 340ms; }
[data-enter] .cover__text > :nth-child(5) { animation-delay: 400ms; }
[data-enter] .cover__plate { animation: plate-in 1300ms var(--ease-in-out) 120ms both; }

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

@media (max-width: 1099px) {
  .bar__menu { display: inline-flex; }
  .bar__nav { gap: 18px; }
}

@media (max-width: 900px) {
  :root { --bar-h: 64px; }
  body { font-size: 1.0625rem; }
  .bar { background: var(--cloth); }
  .bar__logo { width: 112px; }
  .bar__nav .btn--small { display: none; }

  .cover__grid,
  .envelope,
  .clients,
  .process__top,
  .terms,
  .back { grid-template-columns: minmax(0, 1fr); }

  .cover__grid { min-height: auto; padding-block: calc(var(--bar-h) + 40px) 48px; }
  .cover__plate { max-height: none; aspect-ratio: 4 / 3; }
  .cover__plate img { object-position: 50% 30%; }

  .page { min-height: auto; display: block; padding-block: 84px; }
  .envelope__plate,
  .clients__plate,
  .terms__plate { min-height: 0; aspect-ratio: 4 / 3; }
  .clients__plate { order: 2; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-right: 34px; }
  .steps::before { top: 0; bottom: 0; right: 6px; left: auto; border-top: 0; border-right: 1px solid rgba(199, 160, 98, 0.45); }
  .step__mark { position: absolute; right: -34px; top: 8px; margin: 0; }

  .terms__list { grid-template-columns: minmax(0, 1fr); }
  .back { min-height: auto; padding-block: 84px; }
  .statement { height: 200vh; }
}

@media (max-width: 640px) {
  .bar__nav { display: none; }
  .bar__menu { margin-inline-start: auto; }
  .contents__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .contents__leader { display: none; }
  .ledger__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cover__actions .btn { width: 100%; }
  .back .btn { width: 100%; }
  .card-details div { grid-template-columns: 70px 1fr; }
  .foot__top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-enter] .cover__text > *,
  [data-enter] .cover__plate { animation: none; }
  .js .statement__text .w { color: var(--ink); }
  .statement { height: auto; }
  .statement__sticky { position: static; height: auto; padding-block: 120px; }
  .menu.is-open .menu__in { animation: none; }
}


/* =================================================================
   Version 2 upgrades: same world, higher finish.
   ================================================================= */

/* Blind-embossed monogram on the book cloth */
.cover > .wrap { position: relative; z-index: 1; }
.emboss {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -9%;
  width: min(58vw, 780px);
  height: auto;
  opacity: 0.07;
  transform: translateY(-46%);
  pointer-events: none;
  user-select: none;
}
.emboss--back { right: auto; left: -6%; width: min(52vw, 680px); }

/* The cover plate gets a foil frame, offset towards the fore-edge */
.cover__media { position: relative; align-self: stretch; display: flex; max-height: calc(100svh - var(--bar-h) - 80px); }
.cover__media::before {
  content: "";
  position: absolute;
  inset: 22px 22px -22px -22px;
  border: 1px solid rgba(199, 160, 98, 0.55);
  pointer-events: none;
}
.cover__media .cover__plate { position: relative; flex: 1; }

/* Contents and ledger rows answer the pointer */
.contents__row h3,
.ledger dt { transition: color 200ms ease, transform 220ms var(--ease-out); }
.contents__leader { transition: opacity 200ms ease, border-color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .contents__row:hover h3 { transform: translateX(-4px); }
  .contents__row:hover .contents__leader { opacity: 1; }
  .ledger__row:hover dt { color: var(--gold-deep); transform: translateX(-4px); }
}

/* Step letters */
.step__no {
  display: inline-block;
  margin-left: 0.2em;
  color: var(--gold);
  font-size: 0.82em;
}

/* Buttons: a touch more presence */
.btn--gold { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 24px -14px rgba(0, 0, 0, 0.6); }

/* Phone action bar */
.dock { display: none; }
@media (max-width: 640px) {
  .dock {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--cloth-deep);
    box-shadow: 0 -1px 0 var(--rule-cloth);
    transform: translateY(110%);
    transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
  }
  .dock.is-on { transform: none; }
  .dock .btn { min-height: 48px; padding: 0 12px; }
  .foot { padding-bottom: calc(36px + 76px); }
  .emboss { width: 120vw; right: -30%; top: 30%; opacity: 0.06; }
  .emboss--back { left: -40%; right: auto; }
  .cover__media::before { inset: 14px 14px -14px -14px; }
}

@media (max-width: 900px) {
  .cover__media { aspect-ratio: 4 / 3; max-height: none; }
  .cover__media .cover__plate { aspect-ratio: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .dock { transition: none; }
  .contents__row h3, .ledger dt { transition: color 200ms ease; }
  .contents__row:hover h3, .ledger__row:hover dt { transform: none; }
}

/* Technical fixes (QA pass) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 640px) {
  .dock { visibility: hidden; transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 280ms; }
  .dock.is-on { visibility: visible; transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s; }
}

/* Calendly pop-up: keep it above the site's own bars */
.calendly-overlay { z-index: 100 !important; }
.is-booking .dock { transform: translateY(110%); visibility: hidden; }

/* =================================================================
   Hero slideshow (full-screen rotating photos under a navy shade)
   ================================================================= */
.cover--slides { --slide-ms: 7000ms; }
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--cloth); }
.hero-slide { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 1800ms cubic-bezier(0.45, 0, 0.55, 1); }
/* the incoming photo fades in on top; the outgoing one stays fully visible underneath (no dip to navy) */
.hero-slide.is-active { z-index: 2; opacity: 1; }
.hero-slide.was-active { z-index: 1; opacity: 1; transition: none; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); }
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-slide.is-active img { animation: hero-drift calc(var(--slide-ms) + 1800ms) linear both; }
.is-paused .hero-slide.is-active img { animation-play-state: paused; }

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to left, rgba(10, 24, 48, 0.92) 0%, rgba(10, 24, 48, 0.78) 36%, rgba(10, 24, 48, 0.38) 72%, rgba(10, 24, 48, 0.22) 100%),
    linear-gradient(to top, rgba(10, 24, 48, 0.7) 0%, rgba(10, 24, 48, 0) 32%);
}
.cover--slides .cover__spine { z-index: 1; }
.cover--slides .cover__grid { grid-template-columns: minmax(0, 1fr); }
.cover--slides .cover__text { max-width: 660px; }
.cover--slides .cover__title { text-shadow: 0 2px 30px rgba(5, 12, 26, 0.35); }
.cover--slides .cover__lead { color: #d3dbe7; }

.hero-controls {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(24px, 4vh, 40px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-pause {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid rgba(241, 243, 247, 0.4);
  border-radius: 50%;
  background: rgba(10, 24, 48, 0.25);
  color: var(--on-cloth);
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
}
.hero-pause:active { transform: scale(0.95); }
.hero-pause::before,
.hero-pause::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 3px;
  height: 12px;
  background: currentColor;
  transform: translateY(-50%);
}
.hero-pause::before { left: 17px; }
.hero-pause::after { left: 24px; }
.is-paused .hero-pause::before {
  left: 17px;
  width: 0;
  height: 0;
  background: none;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent currentColor;
}
.is-paused .hero-pause::after { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hero-pause:hover { border-color: var(--gold); background: rgba(10, 24, 48, 0.45); }
}
.hero-dots { display: flex; gap: 10px; }
.hero-dot { position: relative; width: 48px; height: 2px; overflow: hidden; background: rgba(241, 243, 247, 0.3); }
.hero-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
}
@keyframes hero-progress { to { transform: scaleX(1); } }
.hero-dot.is-active::after { animation: hero-progress var(--slide-ms) linear forwards; }
.is-paused .hero-dot.is-active::after { animation-play-state: paused; }

@media (max-width: 900px) {
  .cover--slides .cover__grid { min-height: 100svh; padding-bottom: 120px; align-content: center; }
  .hero-shade {
    background:
      linear-gradient(to bottom, rgba(10, 24, 48, 0.62) 0%, rgba(10, 24, 48, 0.78) 55%, rgba(10, 24, 48, 0.92) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.is-active img,
  .hero-slide.was-active img { animation: none; transform: none; }
  .hero-controls { display: none; }
}

/* =================================================================
   Logo lockup: clean emblem + live type (replaces the noisy raster lockup)
   ================================================================= */
.lockup {
  --lk: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  direction: ltr;
  font-size: var(--lk);
  line-height: 1;
  color: var(--on-cloth);
}
.lockup__mark { width: auto; height: 3.6em; flex: none; }
.lockup__words { display: inline-flex; flex-direction: column; align-items: stretch; }
.lockup__name {
  font-family: "TRS Logo", var(--display);
  font-weight: 600;
  font-size: 2.6em;
  letter-spacing: 0.04em;
  line-height: 0.82;
  padding-bottom: 0.12em;
  text-align: center;
  margin-right: -0.04em; /* trailing letter-spacing: keep the glyphs optically centred */
}
.lockup__tag {
  margin-top: 0.15em;
  padding-top: 0.55em;
  border-top: 1px solid var(--gold);
  font-family: var(--text);
  font-weight: 600;
  font-size: 0.5em;
  letter-spacing: 0.34em;
  white-space: nowrap;
  opacity: 0.92;
  text-align: center;
  padding-left: 0.34em; /* balances the trailing letter-spacing */
}

/* cover */
.cover__stamp.lockup { width: auto; --lk: clamp(17px, 1.75vw, 24px); margin-bottom: clamp(28px, 5vh, 48px); }
/* footer */
.foot__logo.lockup { width: auto; --lk: 13px; }
/* header: light on the cover, navy on the white head band */
.bar__logo { width: auto; aspect-ratio: auto; }
.bar__logo .lockup { --lk: 11px; position: static; }
.bar__logo .lockup img { position: static; width: auto; height: 3.6em; }
.bar__logo .lockup__mark--dark { display: none; }
.bar.is-solid .bar__logo .lockup { color: var(--ink); }
.bar.is-solid .bar__logo .lockup__mark--light { display: none; }
.bar.is-solid .bar__logo .lockup__mark--dark { display: block; }
@media (max-width: 900px) { .bar__logo .lockup { --lk: 9.5px; } }

/* =================================================================
   Top menu (replaces the side tabs), like a family-office header
   ================================================================= */
.bar__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 36px);
  margin-inline: auto;
  font-size: 1rem;
  font-weight: 600;
}
.bar__links a {
  position: relative;
  padding-block: 12px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 200ms ease;
}
.bar__links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease-out);
}
.bar__links a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .bar__links a:hover::after { transform: scaleX(1); }
}
.bar__nav { margin-inline-start: 0; }
@media (max-width: 1099px) {
  .bar__links { display: none; }
  .bar__nav { margin-inline-start: auto; }
}
/* keep the menu readable over the bright part of the hero photos */
.cover--slides .hero-shade {
  background:
    linear-gradient(to bottom, rgba(10, 24, 48, 0.55) 0%, rgba(10, 24, 48, 0) 20%),
    linear-gradient(to left, rgba(10, 24, 48, 0.62) 0%, rgba(10, 24, 48, 0.7) 22%, rgba(10, 24, 48, 0.62) 48%, rgba(10, 24, 48, 0.3) 74%, rgba(10, 24, 48, 0.18) 100%),
    linear-gradient(to top, rgba(10, 24, 48, 0.65) 0%, rgba(10, 24, 48, 0) 32%);
}
@media (max-width: 900px) {
  .cover--slides .hero-shade {
    background: linear-gradient(to bottom, rgba(10, 24, 48, 0.62) 0%, rgba(10, 24, 48, 0.78) 55%, rgba(10, 24, 48, 0.92) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bar__links a::after { transition: none; }
}

/* Lighter work while the page is being scrolled programmatically, and off screen */
.is-scrolling .hero-slide.is-active img,
.hero-offscreen .hero-slide.is-active img,
.hero-offscreen .hero-dot.is-active::after { animation-play-state: paused; }
.is-scrolling .statement__text .w { transition: none; }
.hero-slide.is-active img, .hero-slide.was-active img { will-change: transform; }

/* Hero photo shown whole (no crop, no zoom): the twilight skyline.
   The photo keeps its own proportions; any spare room is filled by a soft, blurred
   extension of the same photo, and the photo's own edge fades into it (no seam, no flat band). */
.hero-slide--whole { overflow: hidden; background: var(--cloth); }
.hero-slide--whole::before {
  content: "";
  position: absolute;
  inset: -60px;
  background: url("../img/hero-city-twilight.jpg") center / cover no-repeat;
  filter: blur(40px) saturate(1.05);
}
.hero-slide--whole img {
  position: absolute;
  object-fit: fill;
}
/* wider than 3:2 (most laptops and monitors): full height, fade at the photo's right edge */
@media (min-aspect-ratio: 3/2) {
  .hero-slide--whole img {
    top: 0; left: 0; height: 100%; width: auto; max-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 80%, transparent 100%);
    mask-image: linear-gradient(to right, #000 80%, transparent 100%);
  }
}
/* narrower than 3:2 (tablets, square-ish windows): full width, fade at top and bottom */
@media (max-aspect-ratio: 3/2) and (min-aspect-ratio: 1/1) {
  .hero-slide--whole img {
    left: 0; top: 50%; width: 100%; height: auto; transform: translateY(-50%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  }
}
.hero-slide--whole.is-active img,
.hero-slide--whole.was-active img { animation: none; }
/* portrait phones: a whole 3:2 photo would be a thin strip, so it fills the screen
   and keeps the Empire State Building in view */
@media (max-aspect-ratio: 1/1) {
  .hero-slide--whole::before { display: none; }
  .hero-slide--whole img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 3% center; }
}
