/* GENTRUST website — General Trust Company Limited */
:root {
  --red: #8f1d1d;
  --red-deep: #5e1010;
  --red-soft: #b23a2e;
  --red-wash: #f8ecea;
  --gold: #f2b705;
  --gold-soft: #fff4cf;
  --grey: #8a8f98;
  --ink: #1d1f24;
  --ink-2: #33363d;
  --muted: #5b616b;
  --line: #e9e4dd;
  --paper: #fbf9f6;
  --tint: #f4efe8;
  --white: #fff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 10, 10, .05);
  --shadow: 0 1px 2px rgba(20, 10, 10, .04), 0 14px 36px -14px rgba(60, 20, 20, .20);
  --shadow-lg: 0 2px 4px rgba(20, 10, 10, .04), 0 30px 60px -20px rgba(60, 20, 20, .28);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper);
  line-height: 1.65; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
address { font-style: normal; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--ink); }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: #fff; color: var(--red); padding: .7rem 1rem; border-radius: 10px; z-index: 100; font-weight: 600; box-shadow: var(--shadow); }
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  padding: .78rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .97rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(143, 29, 29, .55); }
.btn--primary:hover { background: var(--red-deep); color: #fff; }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(242, 183, 5, .7); }
.btn--gold:hover { background: #ffc61a; color: var(--ink); }
.btn--light { background: #fff; color: var(--red-deep); }
.btn--light:hover { color: var(--red); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--red); color: var(--red); }
.btn--lg { padding: 1rem 1.6rem; font-size: 1.02rem; }
.btn--sm { padding: .5rem .95rem; font-size: .88rem; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 246, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(60, 20, 20, .35); }
.topstrip { background: var(--red-deep); color: rgba(255, 255, 255, .85); font-size: .82rem; }
.topstrip .container { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.topstrip a { color: #fff; text-decoration: none; }
.topstrip a:hover { text-decoration: underline; color: #fff; }
.topstrip__links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.menu { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu a.menu__link, .menu button.menu__link {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; background: none; border: 0;
  font-family: inherit; cursor: pointer;
}
.menu a.menu__link:hover, .menu button.menu__link:hover { background: var(--tint); color: var(--red); }
.menu a.menu__link[aria-current="page"], .menu .is-active > .menu__link { color: var(--red); }
.menu a.menu__link[aria-current="page"]::after { content: ""; display: block; }
.menu .chev { width: 14px; height: 14px; transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: .5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown--right { left: auto; right: 0; }
.has-dropdown.is-open > .dropdown, .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1081px) { .has-dropdown:hover > .dropdown { opacity: 1; visibility: visible; transform: none; } .has-dropdown:hover .chev { transform: rotate(180deg); } }
.dropdown a { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 10px; text-decoration: none; color: var(--ink); }
.dropdown a:hover { background: var(--tint); color: var(--ink); }
.dropdown a strong { display: block; font-size: .94rem; font-weight: 600; }
.dropdown a span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.dropdown .ico { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--red-wash); color: var(--red); }
.dropdown .ico svg { width: 18px; height: 18px; }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: .35rem .4rem; }
.nav__actions { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .menu-wrap { position: fixed; inset: calc(var(--header-h) + 34px) 0 0 0; background: var(--paper); padding: 1rem 1.25rem 2rem; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility .28s; border-top: 1px solid var(--line); }
  .nav-open .menu-wrap { transform: none; visibility: visible; }
  .menu { flex-direction: column; align-items: stretch; gap: .2rem; }
  .menu a.menu__link, .menu button.menu__link { width: 100%; justify-content: space-between; padding: .9rem .8rem; font-size: 1.05rem; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 .5rem .5rem; background: transparent; }
  .has-dropdown.is-open > .dropdown { display: block; }
  .has-dropdown.is-open .chev { transform: rotate(180deg); }
  .nav__actions .btn--login-desktop { display: none; }
  body.nav-open { overflow: hidden; }
  .topstrip__hide-sm { display: none; }
}
@media (min-width: 1081px) { .menu-mobile-only { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(242, 183, 5, .22), transparent 60%),
              radial-gradient(900px 600px at -10% 120%, rgba(178, 58, 46, .55), transparent 60%),
              linear-gradient(135deg, #6d1414 0%, var(--red) 45%, #a3271f 100%);
}
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem); }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 600; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .88); max-width: 40rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.hero .eyebrow { color: var(--gold); }
.hero__badges { display: flex; flex-wrap: wrap; gap: 1.5rem 2.2rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.hero__badges div { font-size: .88rem; color: rgba(255, 255, 255, .75); }
.hero__badges strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: #fff; font-weight: 600; }

.cubes { position: relative; aspect-ratio: 1; width: min(420px, 100%); margin-inline: auto; }
.cube { position: absolute; border-radius: 22%; box-shadow: inset 0 -12px 24px rgba(0, 0, 0, .18), inset 0 10px 20px rgba(255, 255, 255, .18), 0 30px 60px -20px rgba(0, 0, 0, .5); }
.cube--grey { width: 42%; height: 42%; left: 4%; top: 26%; background: linear-gradient(145deg, #a7acb4, #6f747c); }
.cube--red { width: 56%; height: 56%; left: 30%; top: 4%; background: linear-gradient(145deg, #c23a2f, #6d1414); }
.cube--gold { width: 42%; height: 42%; left: 22%; top: 54%; background: linear-gradient(145deg, #ffd34d, #d99a00); }
@media (prefers-reduced-motion: no-preference) {
  .cube { animation: float 9s ease-in-out infinite; }
  .cube--red { animation-delay: -3s; } .cube--gold { animation-delay: -6s; }
  @keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(2deg); } }
}

.page-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #6d1414 0%, var(--red) 60%, #a3271f 100%); }
.page-hero::before { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 28%; background: linear-gradient(145deg, rgba(242,183,5,.35), rgba(242,183,5,0)); transform: rotate(18deg); }
.page-hero::after { content: ""; position: absolute; right: 140px; bottom: -90px; width: 200px; height: 200px; border-radius: 28%; background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,0)); transform: rotate(-12deg); }
.page-hero .container { position: relative; z-index: 1; padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); max-width: 22ch; }
.page-hero p { color: rgba(255, 255, 255, .86); max-width: 46rem; font-size: 1.12rem; margin: 0; }
.page-hero .eyebrow { color: var(--gold); }
.crumbs { display: flex; gap: .5rem; font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: 1.2rem; list-style: none; padding: 0; }
.crumbs a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--tint); }
.section--white { background: #fff; }
.section--dark { background: linear-gradient(160deg, #2a0b0b, var(--red-deep)); color: rgba(255, 255, 255, .86); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.section__head { max-width: 46rem; margin-bottom: 2.6rem; }
.section__head--center { text-align: center; margin-inline: auto; }
.section__head--center .eyebrow { justify-content: center; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.section--dark .section__head p { color: rgba(255, 255, 255, .75); }

.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } .hero__inner { grid-template-columns: 1fr; } .hero__art { display: none; } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split--wide-left { grid-template-columns: 1.3fr .7fr; }
@media (max-width: 900px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e0d6cb; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--red-wash); color: var(--red); margin-bottom: 1.1rem; }
.card__icon svg { width: 24px; height: 24px; }
.card__icon--gold { background: var(--gold-soft); color: #a77800; }
.card__icon--grey { background: #eef0f2; color: #555b64; }
.card__link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; margin-top: .6rem; }
.card__link:hover { gap: .55rem; }
.card__link::after { content: "→"; transition: transform .2s; }

.login-cards { position: relative; z-index: 2; margin-top: -3.2rem; }
.login-card { display: flex; gap: 1.1rem; align-items: center; text-decoration: none; color: var(--ink); background: #fff; border-radius: var(--radius); padding: 1.4rem 1.5rem; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.login-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.login-card .card__icon { margin: 0; flex-shrink: 0; }
.login-card strong { display: block; font-size: 1.05rem; }
.login-card span { color: var(--muted); font-size: .9rem; }
.login-card .arrow { margin-left: auto; color: var(--red); font-size: 1.3rem; transition: transform .2s; }
.login-card:hover .arrow { transform: translateX(4px); }

.prose { color: var(--ink-2); }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-left: 1.8rem; margin-bottom: .7rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--red); transform: rotate(45deg); }
.prose ul.ticks li::before { content: "✓"; background: none; color: var(--red); font-weight: 700; transform: none; top: 0; width: auto; height: auto; }
.prose h3 { margin-top: 1.6rem; }
.lead-text { font-size: 1.18rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.note { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--gold); padding: .6rem 1rem; background: var(--gold-soft); border-radius: 0 10px 10px 0; }

.quote { position: relative; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.4; color: var(--ink); padding-left: 1.6rem; border-left: 4px solid var(--gold); margin: 0; }
.quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .9rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
.tier { position: relative; border-radius: var(--radius); padding: 1.8rem; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.tier__num { font-family: var(--serif); font-size: 3.6rem; line-height: 1; font-weight: 600; color: var(--line); position: absolute; right: 1.2rem; top: .8rem; }
.tier__tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; margin-bottom: 1rem; }
.tier--1 .tier__tag { background: #eef0f2; color: #4b5059; }
.tier--2 { border-color: rgba(143, 29, 29, .3); box-shadow: 0 20px 40px -24px rgba(143,29,29,.45); }
.tier--2 .tier__tag { background: var(--red-wash); color: var(--red); }
.tier--3 .tier__tag { background: var(--gold-soft); color: #8a6300; }
.tier p { color: var(--muted); margin: 0; }
.tier .tier__by { margin-top: 1rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); }

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: .8rem; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.acc[open] { box-shadow: var(--shadow); border-color: #e2d8cc; }
.acc summary { list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; font-weight: 620; font-size: 1.05rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f1d1d' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .25s; }
.acc[open] summary::after { transform: rotate(45deg); background-color: var(--red-wash); }
.acc summary:hover { color: var(--red); }
.acc__body { padding: 0 1.4rem 1.4rem; color: var(--ink-2); }
.acc__body > :last-child { margin-bottom: 0; }

/* ---------- People ---------- */
.person { display: flex; flex-direction: column; }
.avatar { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: #fff; background: linear-gradient(145deg, #b23a2e, var(--red-deep)); margin-bottom: 1.1rem; box-shadow: 0 10px 24px -12px rgba(143, 29, 29, .7); }
.avatar--gold { background: linear-gradient(145deg, #ffd34d, #c98d00); color: var(--ink); }
.avatar--grey { background: linear-gradient(145deg, #a7acb4, #5f646c); }
.person__role { font-size: .85rem; font-weight: 650; color: var(--red); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.person details { margin-top: auto; }
.person details summary { cursor: pointer; font-weight: 600; color: var(--red); list-style: none; display: inline-flex; gap: .4rem; align-items: center; padding-top: .6rem; }
.person details summary::-webkit-details-marker { display: none; }
.person details summary::after { content: "↓"; transition: transform .2s; }
.person details[open] summary::after { transform: rotate(180deg); }
.person details[open] summary .more { display: none; }
.person details:not([open]) summary .less { display: none; }
.person details .bio { padding-top: 1rem; color: var(--ink-2); font-size: .97rem; }

.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0; }
.staff li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; display: flex; gap: .85rem; align-items: center; }
.staff .ini { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--red-wash); color: var(--red); font-weight: 700; font-size: .85rem; }
.staff strong { display: block; font-size: .96rem; line-height: 1.3; }
.staff span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.staff-group { margin-bottom: 2.2rem; }
.staff-group h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1rem; }

/* ---------- Org chart ---------- */
.org { --c: var(--red); display: flex; flex-direction: column; align-items: center; gap: 0; overflow-x: auto; padding: 1rem 0 .5rem; }
.org ul { list-style: none; margin: 0; padding: 0; }
.org-wrap .node { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .65rem 1rem; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm); text-align: center; min-width: 150px; }
.org-wrap .node--top { background: var(--red); color: #fff; border-color: var(--red); }
.org-wrap .node--l2 { border-color: rgba(143, 29, 29, .35); color: var(--red-deep); }
.org-tree, .org-tree ul { display: flex; justify-content: center; position: relative; }
.org-tree li { position: relative; padding: 22px .5rem 0; display: flex; flex-direction: column; align-items: center; }
.org-tree li::before, .org-tree li::after { content: ""; position: absolute; top: 0; height: 22px; border-top: 2px solid #d9cfc4; width: 50%; }
.org-tree li::before { right: 50%; } .org-tree li::after { left: 50%; border-left: 2px solid #d9cfc4; }
.org-tree li:first-child::before, .org-tree li:last-child::after { border-top: 0; }
.org-tree li:only-child::before { display: none; }
.org-tree li:only-child::after { border-top: 0; }
.org-tree li:last-child::before { border-right: 2px solid #d9cfc4; border-radius: 0 8px 0 0; }
.org-tree li:first-child::after { border-radius: 8px 0 0 0; }
.org-tree ul { padding-top: 22px; }
.org-tree ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 22px; border-left: 2px solid #d9cfc4; }
.org-tree > li { padding-top: 0; } .org-tree > li::before, .org-tree > li::after { display: none; }
.org-tree ul.vertical { flex-direction: column; align-items: center; }
.org-tree ul.vertical li { padding: 14px 0 0; }
.org-tree ul.vertical li::before { display: none; }
.org-tree ul.vertical li::after { left: 50%; width: 0; height: 14px; border-top: 0; border-left: 2px solid #d9cfc4; border-radius: 0; }
.org-wrap { overflow-x: auto; padding-bottom: 1rem; }
.org-wrap .org-tree { min-width: 880px; }
@media (max-width: 760px) {
  .org-wrap .org-tree { min-width: 0; }
  .org-tree, .org-tree ul { flex-direction: column; align-items: stretch; }
  .org-tree li { padding: 10px 0 0 1.2rem; align-items: flex-start; }
  .org-tree li::before { display: none; }
  .org-tree li::after { left: .4rem; top: 0; width: .8rem; height: 30px; border-top: 0; border-left: 2px solid #d9cfc4; border-bottom: 2px solid #d9cfc4; border-radius: 0 0 0 8px; }
  .org-tree ul { padding-top: 0; } .org-tree ul::before { display: none; }
  .org-tree > li { padding-left: 0; }
  .org-tree ul.vertical li { padding: 10px 0 0 1.2rem; }
  .org-tree ul.vertical li::after { left: .4rem; width: .8rem; height: 30px; border-bottom: 2px solid #d9cfc4; border-radius: 0 0 0 8px; }
}

/* ---------- Stats / fees ---------- */
.fees { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.fees li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.fees strong { font-family: var(--serif); font-size: 1.5rem; color: var(--red); }
.bar { height: 6px; border-radius: 6px; background: var(--tint); margin-top: .5rem; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red-soft)); border-radius: 6px; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding: 1.3rem 1.4rem 1.3rem 4.4rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.steps li::before { content: counter(step); position: absolute; left: 1.2rem; top: 1.2rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.steps li strong { display: block; margin-bottom: .2rem; }
.steps li p { margin: 0; color: var(--muted); }

/* ---------- Schemes ---------- */
.scheme { display: flex; gap: 1rem; align-items: flex-start; }
.scheme__code { flex-shrink: 0; font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: .35rem .6rem; border-radius: 8px; background: var(--tint); color: var(--ink-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.umbrella { position: relative; overflow: hidden; }
.umbrella .tier__tag { margin-bottom: .8rem; }
.umbrella h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }

/* ---------- Downloads ---------- */
.dl-list { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.dl { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.dl:hover { border-color: rgba(143, 29, 29, .35); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.dl__type { flex-shrink: 0; width: 46px; height: 54px; border-radius: 8px 14px 8px 8px; background: var(--red-wash); color: var(--red); display: grid; place-items: end center; padding-bottom: .5rem; font-size: .68rem; font-weight: 800; letter-spacing: .05em; position: relative; }
.dl__type::before { content: ""; position: absolute; top: 0; right: 0; width: 14px; height: 14px; background: linear-gradient(225deg, var(--paper) 50%, #e8c9c5 50%); border-radius: 0 14px 0 4px; }
.dl__body { flex: 1; min-width: 0; }
.dl__body strong { display: block; font-weight: 620; }
.dl__body span { font-size: .85rem; color: var(--muted); }
.dl__go { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--red); transition: background .2s, color .2s; }
.dl:hover .dl__go { background: var(--red); color: #fff; }
.dl__go svg { width: 18px; height: 18px; }
.filter { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter input { flex: 1; min-width: 220px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="number"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(143, 29, 29, .12); }
textarea { min-height: 140px; resize: vertical; }
.input-affix { position: relative; }
.input-affix > span { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; font-size: .95rem; pointer-events: none; }
.input-affix input { padding-left: 3.1rem; }
.input-affix--right > span { left: auto; right: 1rem; }
.input-affix--right input { padding-left: 1rem; padding-right: 3.6rem; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.calc__form { padding: clamp(1.5rem, 4vw, 2.6rem); }
.calc__result { padding: clamp(1.5rem, 4vw, 2.6rem); background: linear-gradient(160deg, #6d1414, var(--red) 70%); color: #fff; display: flex; flex-direction: column; gap: 1.2rem; }
.calc__result h3 { color: rgba(255, 255, 255, .8); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin: 0; }
.calc__big { font-family: var(--serif); font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 600; line-height: 1.05; color: #fff; }
.calc__row { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .97rem; }
.calc__row strong { color: var(--gold); font-weight: 700; }
.calc__chart { margin-top: auto; display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.calc__chart i { flex: 1; background: rgba(255, 255, 255, .22); border-radius: 4px 4px 0 0; position: relative; min-height: 2px; transition: height .4s ease; }
.calc__chart i b { position: absolute; left: 0; right: 0; bottom: 0; background: var(--gold); border-radius: 0 0 0 0; }
.calc__legend { display: flex; gap: 1.2rem; font-size: .8rem; color: rgba(255,255,255,.75); }
.calc__legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; background: var(--gold); }
.calc__legend span + span::before { background: rgba(255,255,255,.35); }
.calc-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--tint); margin-bottom: 1.6rem; }
.calc-tabs button { border: 0; background: none; font: inherit; font-weight: 600; font-size: .9rem; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; color: var(--muted); }
.calc-tabs button[aria-selected="true"] { background: #fff; color: var(--red); box-shadow: var(--shadow-sm); }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }

/* ---------- Offices ---------- */
.offices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 1000px) { .offices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .offices { grid-template-columns: 1fr; } }
.office { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: .7rem; }
.office--hq { background: linear-gradient(160deg, #fff, var(--red-wash)); border-color: rgba(143, 29, 29, .25); }
.office h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0; }
.office address, .office .tel { color: var(--ink-2); font-size: .95rem; }
.office .tel a { color: var(--ink-2); text-decoration: none; display: block; }
.office .tel a:hover { color: var(--red); }
.office__link { margin-top: auto; font-weight: 600; text-decoration: none; font-size: .92rem; }
.badge { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--red); color: #fff; padding: .28rem .6rem; border-radius: 999px; }
.badge--soft { background: var(--tint); color: var(--ink-2); }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .card__icon { margin: 0; flex-shrink: 0; width: 44px; height: 44px; }
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; margin-bottom: .15rem; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--red); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); background: linear-gradient(135deg, #6d1414, var(--red) 55%, #b23a2e); color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; }
.cta-band::after { content: ""; position: absolute; right: -40px; bottom: -70px; width: 240px; height: 240px; border-radius: 28%; background: linear-gradient(145deg, rgba(242,183,5,.4), rgba(242,183,5,0)); transform: rotate(20deg); }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; }
.cta-band .actions { position: relative; z-index: 1; display: flex; gap: .7rem; flex-wrap: wrap; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Side nav ---------- */
.sidenav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: .2rem; align-self: start; align-content: start; }
.sidenav a { padding: .55rem .9rem; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 550; font-size: .95rem; border-left: 2px solid transparent; }
.sidenav a:hover, .sidenav a.is-active { color: var(--red); background: #fff; }
.sidenav strong { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--grey); padding: 0 .9rem .5rem; }
.with-side { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 900px) { .with-side { grid-template-columns: 1fr; } .sidenav { display: none; } }
.block { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #1b0a0a; color: rgba(255, 255, 255, .72); padding: 4rem 0 0; font-size: .95rem; margin-top: 0; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .logo-chip { display: inline-block; background: #fff; border-radius: 14px; padding: .6rem .9rem; margin-bottom: 1.2rem; }
.footer__brand .logo-chip img { height: 42px; width: auto; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer__offices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2rem 0; border-top: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 900px) { .footer__offices { grid-template-columns: 1fr 1fr; } }
.footer__offices strong { color: #fff; display: block; margin-bottom: .3rem; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.footer__offices address, .footer__offices p { font-size: .87rem; margin: 0; line-height: 1.55; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.4rem 0; display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; font-size: .85rem; color: rgba(255, 255, 255, .55); }
.npra { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: .6rem .9rem; margin-top: 1rem; font-size: .85rem; }
.npra svg { width: 20px; height: 20px; color: var(--gold); }

/* ---------- Toast / reveal ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%); background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 12px; box-shadow: var(--shadow-lg); transition: transform .3s; z-index: 80; font-size: .92rem; }
.toast.is-visible { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 5rem 0; }
.notfound .big { font-family: var(--serif); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--red); font-weight: 600; }

@media print {
  .site-header, .site-footer, .topstrip, .cta-band, .nav-toggle { display: none !important; }
  .page-hero { background: none; color: #000; } .page-hero h1, .page-hero p { color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* compact scheme rows */
.card.scheme { padding: .95rem 1.1rem; align-items: center; }
.card.scheme strong { font-weight: 600; font-size: .96rem; line-height: 1.35; }
.grid > *, .split > *, .hero__inner > *, .with-side > * { min-width: 0; }
@media (max-width: 480px) { h1 { font-size: 2.1rem; } .hero h1 { font-size: 2.25rem; } .btn--lg { padding: .9rem 1.3rem; } }
/* org chart refinements */
.org-wrap .node { min-width: 0; max-width: 170px; padding: .55rem .8rem; font-size: .84rem; line-height: 1.3; }
.org-wrap .org-tree { min-width: 820px; }
.org-tree li { padding-left: .3rem; padding-right: .3rem; }
.org-tree ul.vertical { padding-top: 0; }
.org-tree ul.vertical::before { display: none; }
.org-tree ul.vertical li { padding-top: 14px; }
.org-tree ul.vertical li:first-child { padding-top: 22px; }
.org-tree ul.vertical li::after { height: 100%; max-height: 22px; }
.org-tree ul.vertical li:not(:first-child)::after { max-height: 14px; }
@media (max-width: 760px) { .org-wrap .org-tree { min-width: 0; } .org-wrap .node { max-width: none; } }
.org-tree li:last-child:not(:only-child)::after { border-left: 0; }
.toast { visibility: hidden; transform: translate(-50%, 220%); transition: transform .3s, visibility .3s; }
.toast.is-visible { visibility: visible; }

/* Portal upgrade notice (see PORTAL_UPGRADING in site.js) */
body.modal-open { overflow: hidden; }
.upgrade-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.25rem; }
.upgrade-modal[hidden] { display: none; }
.upgrade-modal__backdrop { position: absolute; inset: 0; background: rgba(29, 31, 36, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s ease; }
.upgrade-modal__dialog { position: relative; width: 100%; max-width: 460px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 2.5rem 2rem 2rem; text-align: center; border-top: 4px solid var(--gold); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .2s ease, transform .2s ease; outline: none; }
.upgrade-modal.is-open .upgrade-modal__backdrop { opacity: 1; }
.upgrade-modal.is-open .upgrade-modal__dialog { opacity: 1; transform: none; }
.upgrade-modal__icon { width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--red-wash); color: var(--red); }
.upgrade-modal__icon svg { width: 32px; height: 32px; }
.upgrade-modal__dialog h2 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; color: var(--ink); margin: 0 0 .75rem; }
.upgrade-modal__dialog p { color: var(--muted); line-height: 1.6; margin: 0 0 1rem; }
.upgrade-modal__help { font-size: .925rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; }
.upgrade-modal__help a { color: var(--red); font-weight: 600; word-break: break-word; }
.upgrade-modal__ok { margin-top: .5rem; min-width: 140px; }
.upgrade-modal__close { position: absolute; top: .75rem; right: .75rem; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.upgrade-modal__close:hover { background: var(--tint); color: var(--ink); }
.upgrade-modal__close svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .upgrade-modal__backdrop, .upgrade-modal__dialog { transition: none; } }
