/* t226 public site — navy/gold, simple and readable */
:root {
  --navy: #0a192f;
  --navy-2: #0d2137;
  --navy-3: #132c4a;
  --ink: #e8eef6;
  --muted: #b7c3d4;
  --gold: #fbbf24;
  --gold-2: #e8c766;
  --gold-deep: #c9a227;
  --obsidian: #07111e;
  --line: rgba(251, 191, 36, 0.28);
  --card: #10233c;
  --font: "Inter", system-ui, sans-serif;
  --display: "Cinzel", "Palatino Linotype", serif;
  --max: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); }
a:hover { color: var(--gold); }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--obsidian); padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(100% - 3rem, var(--max)); } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--navy) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; min-height: 4.25rem;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: inherit; min-height: 44px;
  flex-shrink: 0;
}
.brand img, .brand svg { width: 2.2rem; height: 1.85rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--display); font-weight: 700;
  letter-spacing: 0.16em; font-size: 0.86rem;
}
.brand-text span {
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.header-tools { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.nav-desktop { display: none; align-items: center; gap: 0.15rem; }
@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none !important; }
}
@media (max-width: 959px) {
  .header-tools > .btn-quiet { display: none; } /* See All Portals is in the drawer */
}
.nav-desktop a, .nav-desktop button.nav-link {
  color: var(--ink); text-decoration: none; background: none; border: 0;
  font: inherit; font-weight: 500; font-size: 0.9rem;
  padding: 0.55rem 0.7rem; min-height: 44px;
  display: inline-flex; align-items: center; cursor: pointer;
  border-radius: 0.5rem;
}
.nav-desktop a:hover, .nav-desktop button.nav-link:hover { color: var(--gold); }
.div-menu { position: relative; }
.div-menu-panel {
  display: none; position: absolute; top: calc(100% + 0.35rem); left: 0;
  min-width: 28.5rem; width: max-content; max-width: min(34rem, calc(100vw - 2rem));
  padding: 0.5rem;
  background: var(--navy-2); border: 1px solid var(--line);
  border-radius: 0.85rem; box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  z-index: 50;
}
/* t234: invisible hover bridge covers the gap between the trigger and the panel */
.div-menu-panel::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  height: 0.6rem;
}
/* Open state is JS-driven (.is-open) so Escape, click-toggle and the close
   delay are not overridden by leftover :hover / :focus-within. The hover
   bridge (::before) still keeps the pointer on the panel/root so mouseleave
   does not fire while crossing the gap. */
.div-menu.is-open .div-menu-panel { display: block; }
.div-menu-panel a {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.1rem; width: 100%; padding: 0.65rem 0.75rem;
  min-height: 44px; border-radius: 0.55rem; text-decoration: none; color: var(--ink);
  font-size: 0.9rem;
}
.div-menu-panel a:hover { background: rgba(251,191,36,0.1); color: var(--gold); }
.div-menu-panel .div-nav-name { min-width: 0; }
.div-menu-panel .phase, .drawer .sub a .phase {
  color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em;
  text-transform: none; white-space: nowrap; flex-shrink: 0;
  font-weight: 600;
}
/* t235: "Open Now" — glowing green, readable on navy, no motion if reduced-motion */
.div-menu-panel .phase-open, .drawer .sub a .phase-open {
  color: #4ade80;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(74, 222, 128, 0.9), 0 0 14px rgba(34, 197, 94, 0.55), 0 0 24px rgba(34, 197, 94, 0.3);
}
@media (prefers-reduced-motion: no-preference) {
  .div-menu-panel .phase-open, .drawer .sub a .phase-open {
    animation: phase-open-glow 2.8s ease-in-out infinite;
  }
}
@keyframes phase-open-glow {
  0%, 100% { text-shadow: 0 0 6px rgba(74, 222, 128, 0.8), 0 0 14px rgba(34, 197, 94, 0.45); }
  50% { text-shadow: 0 0 10px rgba(74, 222, 128, 1), 0 0 22px rgba(34, 197, 94, 0.7), 0 0 32px rgba(74, 222, 128, 0.35); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; min-height: 44px; padding: 0.55rem 1rem;
  border-radius: 0.7rem; font-weight: 700; font-size: 0.86rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; line-height: 1.2;
}
.btn-gold { background: linear-gradient(180deg, #fbbf24, #d97706); color: var(--obsidian) !important; }
.btn-gold:hover { filter: brightness(1.07); color: var(--obsidian) !important; }
.btn-outline {
  background: transparent; color: var(--gold-2) !important;
  border-color: rgba(251,191,36,0.45);
}
.btn-outline:hover { background: rgba(251,191,36,0.1); }
.btn-quiet { background: transparent; color: var(--ink) !important; border-color: rgba(255,255,255,0.16); font-weight: 600; }
.btn-quiet:hover { border-color: var(--gold); color: var(--gold) !important; }

.menu-toggle {
  width: 44px; height: 44px; border-radius: 0.6rem;
  background: var(--navy-3); border: 1px solid rgba(255,255,255,0.12);
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* Mobile drawer */
.drawer-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(4,10,20,0.62); z-index: 45;
}
.drawer-backdrop.is-open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(22rem, 92vw);
  background: var(--navy-2); z-index: 50; transform: translateX(100%);
  transition: transform 0.25s ease; display: flex; flex-direction: column;
  border-left: 1px solid var(--line); padding: 1rem 1.1rem 2rem;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.drawer nav a, .drawer nav button {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.6rem; width: 100%; min-height: 44px;
  padding: 0.65rem 0.4rem; color: var(--ink); text-decoration: none;
  background: none; border: 0; font: inherit; font-size: 1rem; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06); cursor: pointer;
}
.drawer nav a:hover, .drawer nav .sub a:hover { color: var(--gold); }
.drawer .sub { padding-left: 0.6rem; }
.drawer .sub a { font-size: 0.95rem; color: var(--muted); border-bottom-color: transparent; }
.drawer .sub a {
  flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 0.15rem;
}
.drawer .sub a .phase {
  color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em;
  text-transform: none; white-space: nowrap; opacity: 0.95;
}
.div-menu-panel .phase.phase-open, .drawer .sub a .phase.phase-open {
  color: #4ade80;
  font-weight: 700;
  opacity: 1;
  text-shadow: 0 0 6px rgba(74, 222, 128, 0.9), 0 0 14px rgba(34, 197, 94, 0.55), 0 0 24px rgba(34, 197, 94, 0.3);
}
.drawer-actions { display: grid; gap: 0.5rem; margin-top: 1.1rem; }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: min(78vh, 38rem);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { min-height: min(82vh, 42rem); } }
.hero-media, .hero picture {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero picture { display: block; }
.hero-media {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 38% 42%;
}
@media (min-width: 701px) {
  .hero-media { object-position: 46% 40%; }
}
@media (min-width: 1100px) {
  .hero-media { object-position: 50% 42%; }
}
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,25,47,0.58) 0%, rgba(10,25,47,0.40) 26%, rgba(10,25,47,0.72) 58%, rgba(10,25,47,0.96) 100%),
    linear-gradient(90deg, rgba(10,25,47,0.72) 0%, rgba(10,25,47,0.42) 38%, rgba(10,25,47,0.12) 100%);
}
.hero-body { position: relative; z-index: 1; padding: 5.5rem 0 2.4rem; }
.eyebrow {
  color: var(--gold); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 600; margin: 0 0 0.7rem;
}
.hero-heading { min-width: 0; max-width: 46rem; margin: 0 0 1.15rem; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.42rem, 5vw, 3.05rem);
  line-height: 1.16; letter-spacing: 0.04em;
  margin: 0 0 0.55rem; max-width: none; color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
  overflow-wrap: break-word;
}
.hero-sub {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(0.7rem, 2.35vw, 0.98rem);
  letter-spacing: clamp(0.08em, 2.4vw, 0.22em);
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
  overflow-wrap: break-word;
}
.hero-kicker {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(0.66rem, 1.85vw, 0.9rem);
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0;
  overflow-wrap: break-word;
}
.hero .lead { font-size: clamp(1rem, 2vw, 1.2rem); color: #dbe4f0; max-width: 38rem; margin: 0 0 1.4rem; }
.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.status-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.1rem; }
.pill {
  display: inline-flex; align-items: center; padding: 0.28rem 0.65rem;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(10,25,47,0.55); color: var(--gold-2);
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
}
.concept-badge {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  padding: 0.2rem 0.5rem; border-radius: 999px;
  background: rgba(0,0,0,0.7); color: #f1f5f9;
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em; pointer-events: none;
}

/* Sections */
.section { padding: 3.2rem 0; }
.section + .section { border-top: 1px solid rgba(255,255,255,0.06); }
.section h2 {
  font-family: var(--display); font-size: clamp(1.45rem, 3vw, 2.05rem);
  margin: 0 0 0.5rem; letter-spacing: 0.02em;
}
.section .deck { color: var(--muted); max-width: 40rem; margin: 0 0 1.6rem; }

.paths { display: grid; gap: 1rem; }
@media (min-width: 768px) { .paths { grid-template-columns: 1fr 1fr 1fr; } }
.path-card, .note, .price-card, .about-block {
  background: var(--card); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem; padding: 1.15rem 1.2rem;
}
.path-card h3, .price-card h3 { margin: 0 0 0.35rem; font-size: 1.02rem; }
.path-card p, .note p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Division cards */
.div-grid { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .div-grid { grid-template-columns: 1fr 1fr; } }
.div-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--card); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.15rem; overflow: hidden; color: inherit; text-decoration: none;
}
.div-card.is-featured { box-shadow: 0 10px 36px rgba(0,0,0,0.28); border-color: var(--line); }
@media (min-width: 900px) {
  .div-grid { grid-template-columns: 1fr 1fr; }
  .div-card.is-featured { grid-column: span 1; }
  .div-grid.is-lead { grid-template-columns: 1fr 1fr; }
}
.div-card-media { position: relative; aspect-ratio: 16/10; background: #08111c; overflow: hidden; }
.div-card-media img { width: 100%; height: 100%; object-fit: cover; }
.div-card-body { padding: 1.05rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.div-card h3 {
  font-family: var(--display); font-size: 1.25rem; margin: 0; color: #fff;
}
.div-card .one-liner { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
.div-card-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.4rem; }
.div-card-actions .btn { flex: 1 1 10rem; }

.roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.roadmap li {
  display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.8rem; align-items: start;
}
.roadmap .n {
  width: 2.2rem; height: 2.2rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(251,191,36,0.12); color: var(--gold); font-weight: 700; font-size: 0.85rem;
}
.roadmap p { margin: 0.15rem 0 0; color: var(--muted); }

.support {
  background: linear-gradient(180deg, #10233c, #0c1c31);
  border: 1px solid var(--line); border-radius: 1.15rem; padding: 1.4rem 1.35rem;
}
.support p { margin: 0 0 1rem; }

/* Division page */
.page-hero { position: relative; isolation: isolate; min-height: min(62vh, 28rem); display: flex; align-items: flex-end; overflow: hidden; }
.page-hero .hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sticky-cta {
  position: sticky; top: 4.25rem; z-index: 30;
  background: color-mix(in srgb, var(--navy) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.55rem 0;
}
.gallery { display: grid; gap: 0.8rem; }
@media (min-width: 700px) { .gallery { grid-template-columns: 1fr 1fr 1fr; } }
.gallery figure { margin: 0; position: relative; border-radius: 0.9rem; overflow: hidden; aspect-ratio: 4/3; background: #08111c; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.price-grid { display: grid; gap: 0.8rem; }
@media (min-width: 700px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-card .amt { color: var(--gold); font-weight: 700; margin: 0.15rem 0; }
.price-card .note { padding: 0; border: 0; background: none; color: var(--muted); font-size: 0.88rem; }

/* Forms */
.form label { display: block; font-size: 0.85rem; font-weight: 600; margin: 0 0 0.35rem; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 44px; padding: 0.65rem 0.8rem;
  border-radius: 0.7rem; border: 1px solid rgba(255,255,255,0.16);
  background: var(--obsidian); color: var(--ink); font: inherit;
}
.form textarea { min-height: 7rem; resize: vertical; }
.form .row { display: grid; gap: 0.8rem; }
@media (min-width: 640px) { .form .row-2 { grid-template-columns: 1fr 1fr; } }
.form .check { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; margin-top: 0.45rem; }
.form .check input { width: auto; min-height: 0; }
.form-status { margin-top: 0.9rem; padding: 0.8rem 1rem; border-radius: 0.8rem; display: none; }
.form-status.is-on { display: block; }
.form-status.is-ok { background: #0f2e22; border: 1px solid #34d399; color: #bbf7d0; }
.form-status.is-err { background: #3a1212; border: 1px solid #f87171; color: #fecaca; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2.4rem 0 1.6rem; color: var(--muted); font-size: 0.88rem;
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.3rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.7rem 1.1rem; }
.footer-links a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--gold); }
.legal { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: space-between; }

.not-found { padding: 5rem 0 4rem; text-align: left; }
.not-found h1 { font-family: var(--display); font-size: 2rem; }

[hidden], .is-hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* t236: public Trust Directory — private trust-company feel (navy / ivory / gold) */
:root {
  --trust-ivory: #f4efe4;
  --trust-ivory-dim: #e7dfce;
  --trust-serif: "Cormorant Garamond", "Palatino Linotype", "Times New Roman", serif;
}
.trust-hero h1,
.trust-dir-head h2,
.trust-card-name,
.trust-intro h2,
#how-to-enter h2 {
  font-family: var(--trust-serif), var(--display);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.trust-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1.12;
  color: var(--trust-ivory);
}
.trust-division-open {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.08);
}
.trust-intro { max-width: 48rem; }
.trust-notice {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--gold-deep);
  background: color-mix(in srgb, var(--navy-3) 80%, #1a1408);
  color: var(--trust-ivory-dim);
  font-size: 0.92rem;
}
.trust-notice p { margin: 0; }
.trust-dir-head { margin-bottom: 1.4rem; }
.trust-dir-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin: 0.15rem 0 0.4rem;
  color: var(--trust-ivory);
}
.trust-dir-head-sub { margin-top: 2.6rem; }
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 800px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
.trust-card {
  scroll-margin-top: 7.5rem;
  background: linear-gradient(180deg, #12243c 0%, #0e1d32 100%);
  border: 1px solid rgba(232, 199, 102, 0.22);
  border-radius: 4px;
  padding: 1.15rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: inset 0 1px 0 rgba(244, 239, 228, 0.04);
  min-width: 0;
}
.trust-card:target {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}
.trust-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem 0.8rem;
}
.trust-card-name {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--trust-ivory);
  flex: 1 1 12rem;
}
.trust-status {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  padding: 0.22rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 2px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  max-width: 100%;
}
.trust-status-dev {
  color: #f0d48a;
  border-color: rgba(240, 212, 138, 0.4);
}
.trust-status-planned {
  color: var(--trust-ivory-dim);
  border-color: rgba(244, 239, 228, 0.22);
}
.trust-status-reit {
  color: #e8c766;
  border-color: rgba(232, 199, 102, 0.45);
  background: rgba(201, 162, 39, 0.08);
}
.trust-purpose { margin: 0; color: #d5deea; font-size: 0.95rem; }
.trust-serves { margin: 0; color: var(--muted); font-size: 0.9rem; }
.trust-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 0.15rem;
}
.trust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
}
.trust-actions .btn { min-height: 44px; }
@media (max-width: 389px) {
  .trust-card { padding: 1rem; }
  .trust-card-name { font-size: 1.2rem; }
}

.trust-learn { display: inline-block; }
.trust-learn > summary { list-style: none; cursor: pointer; }
.trust-learn > summary::-webkit-details-marker { display: none; }
.trust-learn-body {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  color: var(--trust-ivory-dim);
  max-width: 36rem;
}
