/* ==========================================================
   Global site styles: shared by every page.
   Change values here once and every page updates.
   ========================================================== */

/* ==========================================================
   Fonts: Tiempos Headline (licensed from Klim Type Foundry).
   Web files live in fonts/. Georgia is the fallback.
   ========================================================== */
@font-face {
  font-family: "Tiempos Headline";
  src: url("../fonts/tiempos-headline-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tiempos Headline";
  src: url("../fonts/tiempos-headline-regular-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Tiempos Headline";
  src: url("../fonts/tiempos-headline-light-italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Post Grotesk (licensed from Colophon), used for buttons.
   Drop the web font file into fonts/ as post-grotesk-regular.woff2.
   Until then it uses Post Grotesk if installed on this computer, else the system sans-serif. */
@font-face {
  font-family: "Post Grotesk";
  src: local("Post Grotesk"), local("PostGrotesk-Regular"),
       url("../fonts/post-grotesk-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --content-width: 1200px;   /* main content area width */
  --wide-width: 1500px;      /* wider area used by the navigation */
  --gutter: 20px;            /* side padding on small screens */
  --color-text: #1E242E; /* Jerry: used in place of black */
  --color-bg: #fff;
  --color-accent: #025B4C;
  --color-accent-dark: #01433A; /* hover shade of the accent */
  --color-muted: #f2f2f2;
  --edge-line-color: var(--color-accent); /* color of the line on the left edge */
  --edge-line-width: 10px;
  --font-headline: "Tiempos Headline", Georgia, "Times New Roman", serif;
  --font-serif: "Tiempos Headline", Georgia, "Times New Roman", serif;
  --font-button: "Post Grotesk", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); }

/* The 1200px content wrapper used by the nav, page body and footer */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Wider wrapper used by the navigation so it extends past the content */
.container-wide {
  width: 100%;
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main { flex: 1; }
.page-content { padding-top: 40px; padding-bottom: 40px; }

/* ---------- Left edge line (fixed to the window, full height) ---------- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: var(--edge-line-width);
  height: 100vh;
  background: var(--edge-line-color);
  z-index: 1000;
  pointer-events: none;
}

/* ---------- Navigation (white) ---------- */
.site-header { width: 100%; background: #fff; color: var(--color-text); }

/* Upper bar: small links aligned right */
.top-bar { background: #fff; border-bottom: 1px solid #e5e5e5; font-size: 0.85rem; }
.top-bar .container-wide { display: flex; justify-content: flex-end; min-height: 36px; align-items: center; }
.top-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.top-nav a { color: #555; text-decoration: none; }
.top-nav a { display: inline-flex; align-items: center; gap: 3px; }
.top-nav .icon { width: 0.9em; height: 0.9em; color: var(--color-accent); }
.top-nav-welcome { color: var(--color-text); font-weight: 600; }
.top-nav a:hover { color: var(--color-accent); text-decoration: underline; }

/* Main bar: logo left, links right */
.main-bar { background: #fff; border-bottom: 1px solid #e5e5e5; }
.main-bar .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}
.site-logo { text-decoration: none; display: block; padding: 10px 0; flex-shrink: 0; margin-right: 24px; }
.site-logo .logo-img { display: block; height: 60px; width: auto; }
.logo-placeholder {
  display: inline-block;
  width: 180px;
  height: 50px;
  line-height: 46px;
  border: 2px dashed #bbb;
  color: #777;
  text-align: center;
  font-weight: 700;
  letter-spacing: 2px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.site-nav a { color: var(--color-text); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--color-accent); }
.nav-toggle, .site-nav .site-nav-extra { display: none; }

/* Phones, foldables and small tablets: menu button + drop-down panel; the top bar moves into the panel */
@media (max-width: 760px) {
  .top-bar { display: none; }
  .site-header { position: relative; z-index: 900; }
  .main-bar .container-wide { min-height: 64px; }
  .site-logo { padding: 8px 0; }
  .site-logo .logo-img { height: 48px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: var(--color-text);
  }
  .nav-toggle-bars { position: relative; width: 24px; height: 16px; }
  .nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease; }
  .nav-toggle-bars span:nth-child(1) { top: 0; }
  .nav-toggle-bars span:nth-child(2) { top: 7px; }
  .nav-toggle-bars span:nth-child(3) { top: 14px; }
  .menu-open .nav-toggle-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .menu-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - 64px); overflow-y: auto;
    background: #fff; border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
    padding: 8px var(--gutter) 20px;
  }
  .menu-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li { border-bottom: 1px solid #eee; }
  .site-nav ul a { display: flex; align-items: center; min-height: 52px; font-size: 1.05rem; }
  .site-nav .site-nav-extra { display: flex; margin-top: 12px; }
  .site-nav-extra li { border-bottom: 0 !important; }
  .site-nav-extra a, .site-nav-extra .top-nav-welcome { display: flex; align-items: center; min-height: 44px; font-size: 0.95rem; font-weight: 400; color: #555; }
  .site-nav-extra .top-nav-welcome { font-weight: 600; color: var(--color-text); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .nav-toggle-bars span { transition: none; } }

/* ---------- Hero ---------- */
/* Hero photo: images/hero.avif (smaller, modern browsers) with images/hero.jpg as fallback.
   To change the photo, replace both files (keep the same names). */
.hero {
  position: relative;
  padding: 120px 0;
  color: #fff;
  background-color: var(--color-text);
  background-image: url("../images/hero.jpg");
  background-image: image-set(url("../images/hero.avif") type("image/avif"), url("../images/hero.jpg") type("image/jpeg"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* Dark overlay: raise or lower the 0.6 to change how dark it is */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 810px; } /* H1 and paragraph share this width */
.hero h1 {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 2.5rem;
  letter-spacing: 0.02em; /* space between letters */
  line-height: 1.15;
  margin: 0 0 24px;
  color: #fff;
}
.hero p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.2rem;
  letter-spacing: 0.05em; /* space between letters */
  line-height: 1.6;
  margin: 0 0 36px;
  color: #fff;
}

/* Photo caption at the bottom of the hero image */
.hero .hero-caption {
  position: absolute;
  right: var(--gutter);
  bottom: 14px;
  z-index: 1;
  margin: 0;
  max-width: none;
  font-family: var(--font-button);
  font-style: normal;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Content sections ---------- */
.section { padding: 100px 0; }
.section-heading {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--color-text);
  max-width: 810px;
  margin: 0;
}

/* ---------- Strategy accordion (content width, vertical blades) ----------
   Timing: change --sa-duration (time each blade stays open) and
   --sa-ease / --sa-speed (open and close motion). Script: js/accordion.js */
.strategy-accordion {
  --sa-duration: 7s;
  --sa-speed: 1s;
  --sa-ease: cubic-bezier(0.77, 0, 0.18, 1);
  --sa-collapsed: 88px;
  display: flex;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--content-width) - 2 * var(--gutter)); /* matches the content area */
  margin: 0 auto;
  height: 620px;
  overflow: hidden;
  background: var(--color-text);
}
.sa-blade {
  position: relative;
  flex: 0.0001 1 var(--sa-collapsed);
  min-width: var(--sa-collapsed);
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  transition: flex-grow var(--sa-speed) var(--sa-ease);
  will-change: flex-grow;
}
.sa-blade:last-child { border-right: 0; }
.sa-blade.is-active { flex-grow: 1; }

/* Full-size image layer, fixed width so it never stretches while the blade animates */
.sa-panel { position: absolute; inset: 0; }
.sa-image {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: var(--content-width);
  background-color: var(--color-text);
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform calc(var(--sa-speed) * 1.6) var(--sa-ease);
}
.sa-blade.is-active .sa-image { transform: scale(1); }
/* Blade photos: images/strategies/NAME.avif with a .jpg fallback. Swap both files to change one. */
.sa-image-1 { background-image: url("../images/strategies/link-logistics.jpg"); background-image: image-set(url("../images/strategies/link-logistics.avif") type("image/avif"), url("../images/strategies/link-logistics.jpg") type("image/jpeg")); }
.sa-image-2 { background-image: url("../images/strategies/boardwalk-irvine.jpg"); background-image: image-set(url("../images/strategies/boardwalk-irvine.avif") type("image/avif"), url("../images/strategies/boardwalk-irvine.jpg") type("image/jpeg")); }
.sa-image-3 { background-image: url("../images/strategies/oil-field.jpg"); background-image: image-set(url("../images/strategies/oil-field.avif") type("image/avif"), url("../images/strategies/oil-field.jpg") type("image/jpeg")); }
.sa-image-4 { background-image: url("../images/strategies/oliv-tucson.jpg"); background-image: image-set(url("../images/strategies/oliv-tucson.avif") type("image/avif"), url("../images/strategies/oliv-tucson.jpg") type("image/jpeg")); }
.sa-image-5 { background-image: url("../images/strategies/shoppes-at-crystals.jpg"); background-image: image-set(url("../images/strategies/shoppes-at-crystals.avif") type("image/avif"), url("../images/strategies/shoppes-at-crystals.jpg") type("image/jpeg")); }
/* Photo caption, bottom-right of the open blade (matches the hero caption) */
.sa-caption {
  position: absolute; right: 24px; bottom: 16px; z-index: 3;
  margin: 0;
  max-width: calc(100% - 48px);
  font-family: var(--font-button);
  font-size: 0.75rem; letter-spacing: 0.04em; line-height: 1.4;
  text-align: right;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.sa-blade.is-active .sa-caption { opacity: 1; transition: opacity 0.6s ease calc(var(--sa-speed) * 0.7); }

/* Darkening layer: heavier on closed blades */
.sa-blade::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  transition: background var(--sa-speed) var(--sa-ease);
  pointer-events: none;
  z-index: 1;
}
.sa-blade.is-active::after { background: rgba(0, 0, 0, 0.12); }
.sa-blade:not(.is-active):hover::after { background: rgba(0, 0, 0, 0.36); }

/* Closed blade: whole strip is the button, label reads bottom to top */
.sa-tab {
  position: absolute; inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 36px 0;
  margin: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  font: inherit;
}
.sa-tab:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.sa-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-family: var(--font-headline);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  transition: opacity 0.45s ease 0.35s;
}
.sa-blade.is-active .sa-tab { pointer-events: none; }
.sa-blade.is-active .sa-label { opacity: 0; transition: opacity 0.25s ease; }

/* Content card: fades and rises in after the blade has mostly opened, leaves quickly on close */
.sa-card {
  position: absolute;
  left: 56px; bottom: 64px;
  z-index: 4;
  width: 440px;
  max-width: calc(100vw - 112px);
  padding: 34px 38px 30px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--color-text);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.25s ease, transform 0.35s ease;
  pointer-events: none;
}
.sa-blade.is-active .sa-card {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.6s ease calc(var(--sa-speed) * 0.55),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--sa-speed) * 0.55);
}
.sa-title {
  margin: 0 0 12px;
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.sa-text { margin: 0 0 22px; font-size: 0.98rem; line-height: 1.6; color: #444; }
.sa-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-button);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  text-decoration: none;
}
.sa-link .icon { transition: transform 0.25s ease; }
.sa-link:hover .icon { transform: translateX(4px); }

/* Timer bar along the bottom of the open blade */
.sa-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.sa-progress span {
  display: block; height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}
.sa-blade.is-active .sa-progress { opacity: 1; }
.sa-blade.is-active .sa-progress span { animation: sa-progress var(--sa-duration) linear forwards; }
.strategy-accordion.is-paused .sa-progress span { animation-play-state: paused; }
.strategy-accordion.no-autoplay .sa-progress { display: none; }
@keyframes sa-progress { to { transform: scaleX(1); } }

/* Phones and small tablets: blades stack, open one grows downward */
@media (max-width: 900px) {
  .strategy-accordion { flex-direction: column; height: 760px; --sa-collapsed: 64px; }
  .sa-blade {
    min-width: 0; min-height: var(--sa-collapsed);
    border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .sa-image { width: 100%; height: 760px; bottom: auto; }
  .sa-tab { align-items: center; justify-content: flex-start; padding: 0 24px; }
  .sa-label { writing-mode: horizontal-tb; transform: none; white-space: normal; text-align: left; font-size: 1rem; }
  .sa-card { left: 20px; right: 20px; bottom: 28px; width: auto; max-width: none; padding: 24px; }
  .sa-title { font-size: 1.3rem; }
  .sa-caption { top: 16px; bottom: auto; right: 20px; max-width: calc(100% - 40px); white-space: normal; }
}

/* Respect reduced-motion settings: instant changes, no auto-advance */
@media (prefers-reduced-motion: reduce) {
  .sa-blade, .sa-image, .sa-card, .sa-label, .sa-blade::after { transition: none !important; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header { padding: 90px 0 50px; }
.page-title {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 2.5rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 810px;
}
.page-intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin: 0;
  max-width: 810px;
}

/* Header with a full-width photo, dark overlay and white text */
.page-header-photo {
  position: relative;
  padding: 120px 0 110px;
  color: #fff;
  background-color: var(--color-text);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.page-header-photo::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.page-header-photo .container { position: relative; z-index: 1; }
.page-header-photo .page-title { color: #fff; }
.page-header-photo .page-intro {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}
.page-header-listings {
  background-image: url("../images/strategies/7-wtc.jpg");
  background-image: image-set(url("../images/strategies/7-wtc.avif") type("image/avif"), url("../images/strategies/7-wtc.jpg") type("image/jpeg"));
}
.page-header-caption {
  position: absolute; right: var(--gutter); bottom: 14px; z-index: 1;
  left: calc(var(--gutter) + var(--edge-line-width));
  text-align: right;
  margin: 0;
  font-family: var(--font-button);
  font-size: 0.75rem; letter-spacing: 0.04em; line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Listings (filters + property cards). Script: js/listings.js ---------- */
.listings { padding-bottom: 100px; }
/* Full-width band behind the filters, directly under the header photo */
.listing-filters-band { background: var(--color-muted); }
.listing-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: end; /* inputs line up even when a label wraps */
  padding: 28px 0;
}
.lf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lf-field .dd-label, .listing-toolbar label {
  font-family: var(--font-button);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
}
/* Filter dropdowns (custom, so single and multi select look the same).
   The sort menu is a native select styled to match. */
.dd { position: relative; }
.dd-toggle, .listing-toolbar select {
  width: 100%;
  height: 46px;
  padding: 0 36px 0 12px;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  color: var(--color-text);
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23025B4C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dd-value { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dd.has-value .dd-toggle { border-color: var(--color-accent); }
.dd-toggle:hover, .listing-toolbar select:hover { border-color: #9a9a9a; }
.dd-toggle:focus-visible, .dd.is-open .dd-toggle, .listing-toolbar select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 100%;
  width: max-content;
  max-width: 300px;
  background: #fff;
  border: 1px solid #d6d6d6;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.dd.is-open .dd-panel { opacity: 1; transform: none; }
.lf-field:last-child .dd-panel { left: auto; right: 0; }
.dd-options { max-height: 340px; overflow-y: auto; padding: 6px 0; }
.dd-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}
.dd-option:hover { background: var(--color-muted); }
.dd-option input {
  width: 16px; height: 16px; margin: 0; flex-shrink: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.dd-option input:checked + span { color: var(--color-accent); }
.dd-foot {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid #e6e6e6;
}
.dd-foot button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-button); font-size: 0.8rem; letter-spacing: 0.04em;
  color: var(--color-accent);
}
.dd-foot .dd-clear { color: #666; text-decoration: underline; text-underline-offset: 3px; }
.dd-foot button:hover { color: var(--color-accent-dark); }

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 24px;
}
.lt-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lt-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  font-family: var(--font-button); font-size: 0.8rem; letter-spacing: 0.04em;
  color: var(--color-accent); background: #e7f0ee;
  border: 1px solid var(--color-accent); border-radius: 0; cursor: pointer;
}
.lt-chip:hover { background: #d6e6e2; }
.lt-chip[hidden] { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
table.visually-hidden { display: block; } /* tables ignore width: 1px otherwise and widen the page on phones */
.lt-count { margin: 0; font-family: var(--font-button); font-size: 0.95rem; letter-spacing: 0.02em; }
.lt-count span { font-weight: 700; }
.lt-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lt-right select { min-width: 0; max-width: 100%; }
.lt-right label { white-space: nowrap; }
.listing-toolbar select { width: auto; min-width: 250px; }
.lt-reset {
  background: none; border: 0; padding: 0; margin-right: 12px; cursor: pointer;
  font-family: var(--font-button); font-size: 0.85rem; letter-spacing: 0.04em;
  color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px;
}
.lt-reset:hover { color: var(--color-accent-dark); }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.listing-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3e3e3;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.listing-card[hidden] { display: none; }
.listing-card:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10); transform: translateY(-3px); }
.listing-card.is-entering { animation: lc-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes lc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.lc-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-text);
}
/* Placeholder images: swap the gradient for background-image: url("../images/...") */
.lc-media::before {
  content: ""; position: absolute; inset: 0;
  background: inherit; background-size: cover; background-position: center;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.listing-card:hover .lc-media::before { transform: scale(1.05); }
.lc-media-1 { background-image: linear-gradient(135deg, #2c4a43, #0f1f1b); }
.lc-media-2 { background-image: linear-gradient(135deg, #3a4b5c, #151d26); }
.lc-media-3 { background-image: linear-gradient(135deg, #5a4a35, #1e1912); }
.lc-media-4 { background-image: linear-gradient(135deg, #3f5236, #141c11); }
.lc-media-5 { background-image: linear-gradient(135deg, #4a3f55, #18141c); }
.lc-media-note {
  position: absolute; right: 14px; bottom: 12px;
  font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
}
.lc-status {
  position: absolute; left: 14px; top: 14px; z-index: 1;
  padding: 6px 10px;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em;
  background: #fff; color: var(--color-accent);
}
.lc-status-closing-soon { background: #f4e7c8; color: #6b4e0f; }
.lc-status-fully-subscribed { background: #e5e5e5; color: #555; }

.lc-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
/* Titles: paragraph font, always two lines tall; longer titles end in "…" (full title on hover) */
.lc-title {
  margin: 0 0 14px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.4; letter-spacing: 0;
  min-height: calc(1.4em * 2);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden;
}
.lc-title a { color: var(--color-text); text-decoration: none; }
.lc-title a:hover, .listing-card:hover .lc-title a { color: var(--color-accent); }
/* Stats stacked: label left, value right */
.lc-stats { margin: 6px 0 0; padding: 0; border-top: 1px solid #e3e3e3; }
.lc-stats div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #e3e3e3;
}
.lc-stats dt { font-size: 0.8rem; color: #666; line-height: 1.3; }
.lc-stats dd { margin: 0; font-size: 0.85rem; font-weight: 500; line-height: 1.3; text-align: right; white-space: nowrap; }

/* Whole card is clickable through the title link */
.listing-card { position: relative; }
.lc-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.lc-title a:focus-visible { outline: none; }
.listing-card:focus-within { outline: 2px solid var(--color-accent); outline-offset: 2px; }


.listing-empty { padding: 60px 0; text-align: center; }
.listing-empty p { font-family: var(--font-headline); font-size: 1.35rem; margin: 0 0 20px; }
.btn { border: 0; cursor: pointer; }
.listing-disclosure { margin: 48px 0 0; font-size: 0.8rem; line-height: 1.6; color: #777; max-width: 900px; }

@media (max-width: 1100px) {
  .listing-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lf-field:nth-child(3n) .dd-panel { left: auto; right: 0; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .page-header { padding: 56px 0 32px; }
  .page-title { font-size: 2rem; }
  .listing-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px 0; }
  .lf-field .dd-panel { left: 0; right: auto; }
  .lf-field:nth-child(even) .dd-panel { left: auto; right: 0; }
  .page-header-photo { padding: 64px 0 72px; }
  .listing-toolbar { flex-direction: column; align-items: flex-start; }
  .lt-right { flex-wrap: wrap; width: 100%; }
  .listing-toolbar select { min-width: 0; flex: 1 1 160px; }
  .listing-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .listing-card, .lc-media::before { transition: none; }
  .listing-card:hover { transform: none; }
}

/* ---------- Investment detail page (investment.html). Script: js/investment.js ---------- */
.investment { padding: 48px 0 100px; }
.inv-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 28px;
  font-size: 0.85rem;
  color: var(--color-accent); text-decoration: none;
}
.inv-back:hover { color: var(--color-accent-dark); }
.inv-back .icon { transition: transform 0.25s ease; }
.inv-back:hover .icon { transform: translateX(-3px); }
.inv-title {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 2.5rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid #d6d6d6; /* the line under the H1 */
}
.inv-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); /* image about 2/3, facts about 1/3 */
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}
.inv-media {
  position: relative;
  aspect-ratio: 3 / 2; /* standard photo shape */
  background-color: var(--color-text);
  background-size: cover;
  background-position: center;
}
.inv-media .lc-media-note { top: 18px; bottom: auto; }
.inv-summary {
  position: relative; z-index: 2;
  margin: -90px 32px 0; /* pulls the box up over the bottom of the photo */
  padding: 28px 32px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}
.inv-summary p { margin: 0; font-size: 1rem; line-height: 1.7; color: #444; }
.inv-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid #d6d6d6; }
.inv-fact {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #d6d6d6; /* divider between rows */
}
.inv-fact-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px;
  background: #e7f0ee;
  color: var(--color-accent);
}
.inv-fact-icon .icon { width: 20px; height: 20px; }
.inv-fact-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inv-fact-label { font-size: 0.8rem; color: #666; line-height: 1.3; }
.inv-fact-value { font-size: 1rem; font-weight: 500; line-height: 1.4; }
/* Capital structure section (light gray box under the two columns) */
.inv-capital {
  margin-top: 80px;
  padding: 56px 56px 60px;
  background: #f5f5f3;
}
.inv-capital-title {
  margin: 0 0 28px;
  font-family: var(--font-headline); font-weight: 400; font-size: 2rem; line-height: 1.25; letter-spacing: 0.01em;
}
/* Bracket line above the bar, labeled with the total */
.cap-total { margin: 8px 0 10px; text-align: center; }
.cap-total-label { display: inline-block; margin-bottom: 8px; font-size: 0.85rem; color: #555; }
.cap-total-label strong { margin-left: 6px; font-size: 1.05rem; font-weight: 600; color: var(--color-text); }
.cap-bracket {
  display: block;
  height: 10px;
  border: 1.5px solid #9a9a9a;
  border-bottom: 0;
}
/* The bar: each segment carries its own label, amount and percent */
.cap-bar {
  display: flex;
  height: 44px;
  background: #e4e4e0;
  overflow: hidden;
}
.cap-seg {
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px;
  width: 0;
  overflow: hidden;
  font-size: 0.85rem; white-space: nowrap;
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cap-bar.is-in .cap-seg { width: var(--w); }
.cap-seg[hidden] { display: none; }
.cap-seg-equity { background: var(--color-accent); color: #fff; }
.cap-seg-debt { background: #b9c4c1; color: var(--color-text); transition-delay: 0.15s; }
.cap-seg > span { opacity: 0; transition: opacity 0.4s ease 0.8s; }
.cap-bar.is-in .cap-seg > span { opacity: 1; }
.cap-name { opacity: 0.85; }
.cap-amt { font-weight: 600; }
.cap-pct { margin-left: auto; opacity: 0.85; }
@media (max-width: 900px) {
  .inv-capital { margin-top: 56px; padding: 32px 20px 36px; }
  .inv-capital-title { font-size: 1.6rem; }
  .cap-bar { height: 72px; }
  .cap-seg { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 0 10px; font-size: 0.75rem; }
  .cap-pct { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cap-seg, .cap-seg > span { transition: none; }
}
/* Investment Overview (left) + Highlights (right) */
.inv-details {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  margin-top: 80px;
}
.inv-section-title {
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d6d6d6;
  font-family: var(--font-headline); font-weight: 400; font-size: 1.75rem; line-height: 1.25; letter-spacing: 0.01em;
}
.inv-bullets { list-style: none; margin: 0; padding: 0; }
.inv-bullets li {
  position: relative;
  padding: 0 0 18px 34px;
  line-height: 1.6;
}
/* Square bullet with a small white arrow inside */
.inv-bullets li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px;
  background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.inv-overview p { margin: 0 0 18px; line-height: 1.7; color: #333; }
.inv-overview p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .inv-details { grid-template-columns: 1fr; gap: 48px; margin-top: 56px; }
  .inv-section-title { font-size: 1.5rem; }
}
/* Assumable Financing Overview: stat grid under the yield chart */
.inv-financing { margin-top: 80px; }
.fin-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px; margin: 0;
}
.fin-stat { padding: 16px 0; border-bottom: 1px solid #d6d6d6; }
.fin-stat dt { font-size: 0.8rem; color: #666; line-height: 1.3; margin-bottom: 4px; }
.fin-stat dd { margin: 0; font-size: 1.05rem; font-weight: 500; line-height: 1.4; }
.fin-none { display: flex; align-items: center; gap: 16px; margin: 0; padding: 20px 24px; background: #f5f5f3; }
.fin-none[hidden], .fin-grid[hidden] { display: none; }
.inv-financing .inv-yield-disclaimer { margin-top: 16px; }
@media (max-width: 900px) {
  .inv-financing { margin-top: 56px; }
  .fin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
}
/* Sponsor Profile: header (logo + name + site), overview | facts, track record tiles */
.inv-sponsor { margin-top: 80px; }
.sp-logo {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 88px; height: 88px;
  background: var(--color-accent); color: #fff;
  font-family: var(--font-headline); font-size: 1.9rem; letter-spacing: 0.04em;
}
.sp-side .sp-logo { margin-bottom: 20px; }
.sp-logo.has-img { background: #fff; border: 1px solid #d6d6d6; padding: 10px; }
.sp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sp-name { margin: 0 0 16px; font-family: var(--font-headline); font-weight: 400; font-size: 1.5rem; line-height: 1.25; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.sp-facts .inv-fact[hidden] { display: none; }
.sp-facts a { color: var(--color-accent); text-decoration: none; }
.sp-facts a:hover { text-decoration: underline; }
.sp-perf { margin-top: 40px; padding: 32px 36px 36px; background: #f5f5f3; }
.sp-perf-title { margin: 0 0 20px; font-size: 1rem; font-weight: 600; }
.sp-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; }
.sp-metrics[hidden], .sp-metric[hidden], .sp-perf-none[hidden] { display: none; }
.sp-metric { padding-left: 16px; border-left: 3px solid var(--color-accent); }
.sp-metric dt { font-size: 0.8rem; color: #666; line-height: 1.3; margin-bottom: 6px; }
.sp-metric dd { margin: 0; font-family: var(--font-headline); font-size: 2rem; line-height: 1.1; }
.sp-perf-none { margin: 0; color: #555; }
@media (max-width: 900px) {
  .inv-sponsor { margin-top: 56px; }
  .sp-grid { grid-template-columns: 1fr; gap: 32px; }
  .sp-logo { width: 64px; height: 64px; font-size: 1.4rem; }
  .sp-perf { padding: 24px 20px; }
  .sp-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-metric dd { font-size: 1.6rem; }
}
/* FAQs (left) + Investment Contact (right). Accordion script: js/faq.js */
.inv-faq-contact {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px; margin-top: 80px; align-items: start;
  --faq-duration: 7s; /* time each answer stays open before the next one opens */
}
.faq .inv-section-title { margin-bottom: 0; } /* its underline doubles as the top rule of the list */
.faq-item { position: relative; border-bottom: 1px solid #d6d6d6; }
.faq-q { margin: 0; font: inherit; }
.faq-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 20px 0;
  font: inherit; font-size: 1.05rem; font-weight: 500; text-align: left; color: var(--color-text);
  background: none; border: 0; cursor: pointer;
}
.faq-btn:hover { color: var(--color-accent); }
.faq-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.faq-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; background: #e7f0ee; color: var(--color-accent);
  transition: background 0.35s ease, color 0.35s ease;
}
.faq-icon .icon { width: 18px; height: 18px; transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-item.is-open .faq-icon { background: var(--color-accent); color: #fff; }
.faq-item.is-open .faq-icon .icon { transform: rotate(180deg); }
/* Smooth open/close: animate the row height from 0fr to 1fr */
.faq-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner { overflow: hidden; }
.faq-panel-inner p {
  margin: 0; padding: 0 52px 22px 0; line-height: 1.7; color: #444;
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.45s ease;
}
.faq-item.is-open .faq-panel-inner p { opacity: 1; transform: none; transition-delay: 0.12s; }
/* Timer line along the bottom of the open item */
.faq-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--color-accent);
}
.faq.is-running .faq-item.is-open .faq-progress { animation: faq-progress var(--faq-duration) linear forwards; }
.faq.is-paused .faq-item.is-open .faq-progress { animation-play-state: paused; }
@keyframes faq-progress { from { width: 0; } to { width: 100%; } }
/* Contact card */
.ct-card { padding: 32px; background: #f5f5f3; }
.ct-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.ct-head > div { min-width: 0; }
.ct-photo {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 112px; height: 140px; /* 4:5 portrait */
  background: #dcdcd7; color: #8a8a85;
}
.ct-photo .icon { width: 48px; height: 48px; }
.ct-photo img { width: 100%; height: 100%; object-fit: cover; }
.ct-name { margin: 0; font-family: var(--font-headline); font-weight: 400; font-size: 1.5rem; line-height: 1.25; }
.ct-title { margin: 4px 0 0; font-size: 0.9rem; color: #666; }
.ct-lines { list-style: none; margin: 12px 0 0; padding: 0; font-size: 0.9rem; }
.ct-lines li { display: flex; align-items: center; gap: 8px; padding: 3px 0; min-width: 0; }
.ct-lines a { overflow-wrap: anywhere; }
.ct-lines .icon { width: 16px; height: 16px; color: var(--color-accent); flex-shrink: 0; }
.ct-lines a { color: var(--color-text); text-decoration: none; }
.ct-lines a:hover { color: var(--color-accent); text-decoration: underline; }
.ct-bio { margin: 0 0 22px; line-height: 1.7; color: #444; font-size: 0.95rem; }
.ct-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ct-link {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  font-size: 0.9rem; color: var(--color-text); text-decoration: none;
  background: #fff; border: 1px solid #d6d6d6;
  transition: border-color 0.2s, color 0.2s;
}
.ct-link:hover { border-color: var(--color-accent); color: var(--color-accent); }
.ct-link .icon { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; }
@media (max-width: 900px) {
  .inv-faq-contact { grid-template-columns: 1fr; gap: 48px; margin-top: 56px; }
  .ct-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-panel, .faq-panel-inner p, .faq-icon .icon { transition: none; }
}
/* No-income / zero-coupon deals: a note replaces the yield chart */
.yc-none { display: flex; align-items: flex-start; gap: 16px; margin-top: 8px; padding: 24px 28px; background: #f5f5f3; }
.yc-none[hidden] { display: none; }
.yc-none p { margin: 0; line-height: 1.7; color: #333; max-width: 760px; }
.inv-yield.is-no-income .yc-legend, .inv-yield.is-no-income .yc-wrap { display: none; }
/* "View all deal data" link + popup table */
.data-link-wrap { margin: 28px 0 0; }
.data-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; font: inherit; font-size: 0.85rem; color: var(--color-accent);
  background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.data-link .icon { width: 15px; height: 15px; }
.data-link:hover { color: var(--color-accent-dark); }
.data-dialog {
  width: min(1100px, calc(100vw - 40px)); max-height: calc(100vh - 60px);
  padding: 0; border: 0; color: var(--color-text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.data-dialog::backdrop { background: rgba(30, 36, 46, 0.55); }
.data-dialog[open] { display: flex; flex-direction: column; animation: data-in 0.25s ease; }
@keyframes data-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.data-dialog-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 28px; border-bottom: 1px solid #d6d6d6;
}
.data-dialog-head h2 { margin: 0; font-family: var(--font-headline); font-weight: 400; font-size: 1.5rem; }
.data-dialog-close {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0;
  background: #f5f5f3; border: 0; cursor: pointer; color: var(--color-text);
}
.data-dialog-close:hover { background: #e7f0ee; color: var(--color-accent); }
.data-dialog-close .icon { width: 18px; height: 18px; }
.data-dialog-body { overflow: auto; padding: 0 28px 24px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; line-height: 1.5; }
.data-table thead th {
  position: sticky; top: 0; z-index: 1;
  padding: 14px 12px 10px; text-align: left; font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: #666;
  background: #fff; border-bottom: 2px solid var(--color-text);
}
.data-table tbody th, .data-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e4e4e0; }
.data-table tbody th { font-weight: 600; width: 22%; }
.data-table td:nth-child(2) { color: #555; width: 42%; }
.data-table td:nth-child(3) { font-weight: 500; width: 20%; }
.data-table td:nth-child(4) { color: #666; width: 16%; }
.data-table td.is-empty { color: #aaa; font-weight: 400; }
.data-table tbody tr:nth-child(even) { background: #fafaf8; }
@media (max-width: 700px) {
  .data-dialog-head, .data-dialog-body { padding-left: 16px; padding-right: 16px; }
  .data-table td:nth-child(2) { display: none; } /* definitions hidden on small screens */
  .data-table thead th:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .data-dialog[open] { animation: none; } }
/* Projected investor yield: vertical bars (annual, left axis), average line,
   and cumulative line (right axis). Script: js/investment.js */
.inv-yield { margin-top: 80px; --yc-cum: #FF7602; --yc-cum-text: #666; --yc-avg: #39A700; --yc-be: #5AB0E8; --yc-be-text: #1F7BB8; } /* cumulative = orange (right-axis text medium grey), average = lime */
.inv-yield-note { margin: -8px 0 20px; color: #555; }
.yc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 24px; font-size: 0.8rem; color: #555; }
.yc-legend-item, .yc-toggle { display: inline-flex; align-items: center; gap: 8px; }
.yc-legend-item { margin-right: 6px; }
/* Line toggles: on/off switches */
.yc-toggle {
  padding: 6px 14px 6px 8px;
  font: inherit; color: #333;
  background: #fff; border: 1px solid #d0d0d0; border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}
.yc-toggle:hover { border-color: #999; }
.yc-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.yc-switch {
  position: relative; flex-shrink: 0;
  width: 30px; height: 18px; border-radius: 999px;
  background: #c9c9c9; transition: background 0.25s;
}
.yc-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  transition: transform 0.25s;
}
.yc-toggle[aria-checked="true"] .yc-switch { background: var(--color-accent); }
.yc-toggle[aria-checked="true"] .yc-switch::after { transform: translateX(12px); }
.yc-toggle[aria-checked="false"] { color: #777; }
.yc-toggle[aria-checked="false"] .yc-key { opacity: 0.35; }
.yc-toggle:disabled { cursor: default; opacity: 0.6; }
.yc.off-cum .yc-tip-cum { display: none; }
.yc-key { display: inline-block; flex-shrink: 0; }
.yc-key-bar { width: 12px; height: 12px; background: var(--color-accent); border-radius: 2px; }
.yc-key-avg { width: 22px; border-top: 2.5px dashed var(--yc-avg); }
.yc-key-be { width: 0; height: 14px; border-left: 2.5px solid var(--yc-be); }
.yc-key-cum { position: relative; width: 22px; height: 2px; background: var(--yc-cum); }
.yc-key-cum::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--yc-cum); box-shadow: 0 0 0 2px #fff; }

.yc-wrap { position: relative; padding: 0 64px 0 64px; }
.yc-axis-title {
  position: absolute; top: calc(50% - 26px);
  font-size: 0.75rem; color: #666; white-space: nowrap;
  transform-origin: center;
}
.yc-axis-title-left { left: 0; transform: translate(-50%, -50%) rotate(-90deg) translateY(10px); left: 10px; }
.yc-axis-title-right { color: var(--yc-cum-text); right: 10px; transform: translate(50%, -50%) rotate(90deg) translateY(10px); }

.yc { position: relative; height: 340px; }
.yc-grid { position: absolute; inset: 0 0 52px 0; border-left: 1px solid #bdbdbd; border-right: 1px solid #ffc89a; }
.yc-gridline { position: absolute; left: 0; right: 0; border-top: 1px solid #ececec; }
.yc-gridline:first-child { border-top-color: #bdbdbd; } /* baseline */
.yc-gridline span { position: absolute; top: -0.6em; font-size: 0.75rem; white-space: nowrap; }
.yc-tick-left { right: calc(100% + 10px); color: #777; }
.yc-tick-right { left: calc(100% + 10px); color: var(--yc-cum-text); }

.yc-bars { position: absolute; inset: 0; display: flex; gap: 2px; }
.yc-col { flex: 1; min-width: 0; display: flex; flex-direction: column; outline: none; cursor: default; }
.yc-plot { position: relative; flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.yc-bar {
  position: relative;
  width: 58%; max-width: 56px;
  height: 0;
  background: var(--color-accent);
  border-radius: 4px 4px 0 0;
  transition: height 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i) * 60ms), opacity 0.2s;
}
.yc.is-in .yc-bar { height: var(--h); }
.yc.is-hovering .yc-col:not(.is-active) .yc-bar { opacity: 0.45; }
.yc-col:focus-visible .yc-bar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-accent); }
.yc-year { height: 52px; padding-top: 8px; text-align: center; font-size: 0.75rem; color: #777; line-height: 1.35; }
.yc-year b { display: block; font-size: 0.85rem; font-weight: 600; color: var(--color-text); }
.yc-col.is-sold .yc-year b { color: #999; font-weight: 500; }
/* Sold years: no bar, a quiet "Sold" marker on a hatched column */
.yc-col.is-sold .yc-plot {
  background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0, 0, 0, 0.045) 6px 7px);
}
.yc-sold {
  margin-bottom: 8px;
  padding: 3px 8px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: #777; background: #fff; border: 1px solid #d0d0d0;
}

.yc-overlay { position: absolute; inset: 0 0 52px 0; pointer-events: none; }
.yc-avg {
  position: absolute; left: 0; right: 0; height: 0;
  border-top: 2.5px dashed var(--yc-avg);
  opacity: 0; transform: scaleX(0); transform-origin: left center;
  transition: opacity 0.4s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.yc.is-in .yc-avg { opacity: 1; transform: none; }
.yc:not(.intro-done) .yc-avg { transition-delay: 1.2s; }
.yc.off-avg .yc-avg { opacity: 0; transform: scaleX(0); }
.yc-cum { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.yc-cum polyline {
  fill: none; stroke: var(--yc-cum); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 2000; stroke-dashoffset: 2000;
  transition: stroke-dashoffset 1.4s ease 0.9s;
}
.yc.is-in .yc-cum polyline { stroke-dashoffset: 0; }
.yc.intro-done .yc-cum polyline { transition-delay: 0s; transition-duration: 0.9s; }
.yc.off-cum .yc-cum polyline { stroke-dashoffset: 2000; }
.yc.intro-done .yc-dot { transition-delay: 0s; }
.yc.off-cum .yc-dot { opacity: 0; transform: scale(0); }
.yc-tick-right, .yc-axis-title-right { transition: opacity 0.4s ease; }
.yc.off-cum .yc-tick-right { opacity: 0.15; }
.yc-wrap:has(.yc.off-cum) .yc-axis-title-right { opacity: 0.15; }
.yc-dot {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: var(--yc-cum); box-shadow: 0 0 0 2px #fff;
  opacity: 0; transition: opacity 0.3s ease calc(1s + var(--i) * 120ms), transform 0.2s;
}
.yc.is-in .yc-dot { opacity: 1; }
.yc-dot.is-active { transform: scale(1.5); }

.yc-be {
  position: absolute; top: -6px; bottom: 0; width: 0;
  border-left: 2.5px solid var(--yc-be);
  transform: scaleY(0); transform-origin: bottom; opacity: 0;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}
.yc.is-in .yc-be { transform: none; opacity: 1; }
.yc:not(.intro-done) .yc-be { transition-delay: 1.6s; }
.yc.off-be .yc-be { transform: scaleY(0); opacity: 0; }
.yc-be span {
  position: absolute; top: 0; left: 6px;
  padding: 2px 7px;
  font-size: 0.72rem; font-weight: 600; white-space: nowrap;
  color: var(--yc-be-text); background: #eaf5fc;
}
.yc-tip {
  position: absolute; top: 0; z-index: 3;
  transform: translate(-50%, -100%);
  padding: 8px 12px;
  background: var(--color-text); color: #fff;
  font-size: 0.8rem; line-height: 1.5; white-space: nowrap;
  pointer-events: none;
}
.yc-tip strong { display: block; font-weight: 600; margin-bottom: 2px; }
.yc-yoy { padding-left: 20px; font-size: 0.75rem; color: #c9d3d0; }
.yc-yoy .icon { width: 13px; height: 13px; margin-left: -20px; }
.yc-yoy.is-up .icon { color: #7ee07a; }
.yc-yoy.is-down .icon { color: #ff9a8a; }
.yc-tip-row { display: flex; align-items: center; gap: 8px; }
.yc-tip .yc-key-cum::after { box-shadow: 0 0 0 2px var(--color-text); }
.inv-yield-disclaimer { margin: 18px 0 0; font-size: 0.8rem; color: #888; }
@media (max-width: 700px) {
  .yc-wrap { padding: 0 44px; }
  .yc-axis-title { display: none; }
  .yc { height: 280px; }
  .yc-gridline span { font-size: 0.65rem; }
  .yc-tick-left { right: calc(100% + 6px); }
  .yc-tick-right { left: calc(100% + 6px); }
  .yc-year b { font-size: 0.55rem; }
}
@media (max-width: 560px) {
  .yc-year b { display: none; } /* values collide on phones; tapping a bar shows them in the tooltip */
  .yc-wrap { padding: 0 36px; }
  .yc-sold { font-size: 0.5rem; padding: 2px 3px; letter-spacing: 0; }
  .yc-bar { width: 70%; }
  .yc-year { font-size: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .yc-bar, .yc-avg, .yc-cum polyline, .yc-dot, .yc-be { transition: none; }
}
@media (max-width: 800px) {
  .investment { padding-top: 32px; }
  .inv-title { font-size: 2rem; padding-bottom: 20px; }
  .inv-layout { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .inv-summary { margin: -48px 14px 0; padding: 20px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 30px; /* top/bottom, left/right */
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-button);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  -webkit-text-stroke: 0.3px currentColor; /* slightly heavier look (only the Book weight is available) */
  text-decoration: none;
  border-radius: 0;
  transition: background 0.2s;
}
.btn:hover { background: var(--color-accent-dark); }

/* ---------- Icons (Rune Icons, Apache 2.0) ----------
   Use any icon from icons/icon-list.txt like this:
   <svg class="icon" aria-hidden="true"><use href="icons/rune-icons.svg#ICON-ID"></use></svg>
   Icons take the text color; size them with width/height. */
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: middle; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-text); /* Jerry (Dec 5): footer uses the text color, with the reversed logo */
  color: #fff;
  padding: 56px 0 0;
  font-size: 0.9rem;
}
.site-footer a { color: inherit; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.footer-logo { display: inline-block; margin-bottom: 16px; }
.footer-logo .logo-img { display: block; height: 96px; width: auto; }
.footer-name { margin: 0 0 8px; font-family: var(--font-headline); font-size: 1.5rem; letter-spacing: 0.01em; }
.footer-contact { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-offices { display: flex; gap: 28px 64px; flex-wrap: wrap; }
.footer-office { font-style: normal; line-height: 1.7; color: #d4d8de; }
.footer-office-name { display: block; margin-bottom: 6px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.footer-office a { display: inline-block; margin-top: 4px; color: #fff; text-decoration: none; }
.footer-office a:hover { text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.footer-legal a { font-weight: 600; text-decoration: none; font-size: 0.88rem; }
.footer-legal a:hover { text-decoration: underline; }
.footer-disclosure { padding-top: 24px; font-size: 0.78rem; line-height: 1.65; color: #b9bfc8; }
.footer-disclosure p { margin: 0 0 12px; }
.footer-copy { margin: 20px 0 0; font-size: 0.78rem; color: #b9bfc8; }
.site-footer > .container { position: relative; z-index: 1; } /* keeps the text above the skyline that tucks under it */
/* SF skyline along the bottom; the gradient fades the footer color into the image's sky */
.footer-skyline {
  /* Pulled up under the copyright line so the empty sky above the towers is 75% shorter (Jerry).
     % margins follow the width, like the image: the tallest tower starts 15.55% of the width down. */
  margin-top: calc(2px - 11.66%);
  pointer-events: none;
  aspect-ratio: 1376 / 768; /* the whole image, full width (Jerry) */
  background-image: linear-gradient(to bottom, var(--color-text) 0%, rgba(30, 36, 46, 0.55) 12%, rgba(30, 36, 46, 0) 30%), url("../images/brand/sf-skyline-night.jpg");
  background-image: linear-gradient(to bottom, var(--color-text) 0%, rgba(30, 36, 46, 0.55) 12%, rgba(30, 36, 46, 0) 30%), image-set(url("../images/brand/sf-skyline-night.avif") type("image/avif"), url("../images/brand/sf-skyline-night.jpg") type("image/jpeg"));
  background-size: 100% 100%;
}

/* ---------- Legal & policy pages (privacy, security, terms, disclosures, business-continuity, accessibility). Script: js/legal.js ---------- */
.legal-header { padding: 80px 0 44px; background: #f5f5f3; border-bottom: 1px solid #e3e3e3; }
.legal-eyebrow { margin: 0 0 14px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); }
.legal-intro { margin: 0 0 18px; max-width: 810px; font-size: 1.1rem; line-height: 1.6; color: #444; }
.legal-updated { margin: 0; font-size: 0.85rem; color: #666; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 64px; padding: 56px 0 90px; align-items: start; }
.legal-side { position: sticky; top: 24px; display: grid; gap: 36px; }
.legal-toc { position: static; }
.legal-pages { list-style: none; margin: 0; padding: 0; }
.legal-pages a { display: block; padding: 7px 0; font-size: 0.9rem; color: #444; text-decoration: none; }
.legal-pages a:hover { color: var(--color-accent); }
.legal-pages a[aria-current="page"] { color: var(--color-accent); font-weight: 600; }
.legal-body > h2:first-child { margin-top: 0; }
.legal-body h2 { font-size: 1.5rem; scroll-margin-top: 24px; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-side { position: static; }
  .legal-toc { display: none; }
}

/* ---------- Placeholder helper (remove when real content is in) ---------- */
.placeholder {
  border: 2px dashed #bbb;
  padding: 20px;
  text-align: center;
  color: #777;
}

/* ---------- Learn directory (learn.html). Script: js/learn.js ---------- */
.page-header-learn {
  background-image: url("../images/strategies/st-regis-miami.jpg");
  background-image: image-set(url("../images/strategies/st-regis-miami.avif") type("image/avif"), url("../images/strategies/st-regis-miami.jpg") type("image/jpeg"));
}
.learn { padding: 40px 0 100px; }
.learn-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.learn-chip {
  padding: 10px 16px;
  font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.01em;
  color: var(--color-text); background: #fff;
  border: 1px solid #d6d6d6; border-radius: 999px; cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.learn-chip:hover { border-color: var(--color-accent); color: var(--color-accent); }
.learn-chip.is-active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.learn-chip:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.learn-count { margin: 22px 0 22px; font-size: 0.85rem; color: #666; }
.learn-empty { color: #666; }
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.learn-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e3e3e3;
  color: var(--color-text); text-decoration: none;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.learn-card[hidden] { display: none; }
.learn-card:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10); transform: translateY(-3px); }
.learn-card.is-entering { animation: lc-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.lrn-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.lrn-cat, .art-cat {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent);
}
.lrn-title { font-family: var(--font-headline); font-size: 1.3rem; line-height: 1.3; }
.lrn-excerpt { font-size: 0.9rem; line-height: 1.6; color: #555; }
.lrn-meta { margin-top: auto; padding-top: 6px; font-size: 0.78rem; color: #777; }

/* ---------- Article template (article.html). Script: js/article.js ---------- */
.article { padding: 48px 0 60px; }
.art-head { max-width: 810px; }
.art-cat { text-decoration: none; }
.art-cat:hover { color: var(--color-accent-dark); }
.art-title {
  font-family: var(--font-headline); font-weight: 400;
  font-size: 2.5rem; letter-spacing: 0.02em; line-height: 1.15;
  margin: 14px 0 18px;
}
.art-dek { margin: 0 0 24px; font-size: 1.15rem; line-height: 1.6; color: #444; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 0; font-size: 0.85rem; color: #666; }
.art-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.art-meta .icon { width: 16px; height: 16px; }
.art-author { color: var(--color-text); font-weight: 500; }
.art-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-accent); color: #fff; font-size: 0.72rem; letter-spacing: 0.04em;
}
.art-layout {
  display: grid; grid-template-columns: 220px minmax(0, 720px);
  gap: 64px; margin-top: 40px; padding-top: 40px; border-top: 1px solid #d6d6d6; align-items: start;
}
.art-toc { position: sticky; top: 24px; }
.art-toc-title { margin: 0 0 12px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #666; }
.art-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid #d6d6d6; }
.art-toc a {
  display: block; margin-left: -1px; padding: 7px 0 7px 14px;
  border-left: 2px solid transparent;
  font-size: 0.85rem; line-height: 1.4; color: #555; text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.art-toc a:hover { color: var(--color-accent); }
.art-toc a.is-current { color: var(--color-accent); border-left-color: var(--color-accent); }
.art-body { font-size: 1.05rem; line-height: 1.75; }
.art-body > p, .art-body > ul, .art-body > ol { margin: 0 0 22px; }
.art-body li { margin-bottom: 8px; }
.art-body h2 {
  scroll-margin-top: 24px;
  margin: 48px 0 16px;
  font-family: var(--font-headline); font-weight: 400; font-size: 1.75rem; line-height: 1.25; letter-spacing: 0.01em;
}
.art-body h3 { margin: 32px 0 12px; font-size: 1.15rem; font-weight: 600; }
.art-body a { color: var(--color-accent); }
.art-takeaways { margin: 0 0 32px; padding: 24px 28px; background: #f5f5f3; border-left: 4px solid var(--color-accent); }
.art-takeaways-title { margin: 0 0 10px; font-weight: 600; }
.art-takeaways ul { margin: 0; padding-left: 20px; }
.art-takeaways li:last-child { margin-bottom: 0; }
.art-quote {
  margin: 32px 0; padding: 4px 0 4px 28px;
  border-left: 2px solid var(--color-accent);
}
.art-quote p { margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 1.45rem; line-height: 1.45; }
.art-table-wrap { overflow-x: auto; margin: 0 0 28px; }
.art-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.art-table caption { caption-side: bottom; padding-top: 10px; text-align: left; font-size: 0.8rem; color: #777; }
.art-table th, .art-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #e3e3e3; }
.art-table thead th { background: #f5f5f3; font-weight: 600; }
.art-note { margin: 0 0 28px; padding: 16px 20px; font-size: 0.95rem; background: #eaf2f0; border: 1px solid #cfe0dc; }
.art-disclaimer { margin-top: 40px !important; font-size: 0.8rem; line-height: 1.6; color: #777; }
.art-author-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 40px; padding: 28px 0; border-top: 1px solid #d6d6d6; border-bottom: 1px solid #d6d6d6; }
.art-author-photo {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 72px; height: 90px; background: #f5f5f3; color: #aaa;
}
.art-author-photo .icon { width: 32px; height: 32px; }
.art-author-label { margin: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #666; }
.art-author-name { margin: 4px 0 6px; font-family: var(--font-headline); font-size: 1.25rem; }
.art-author-bio { margin: 0; font-size: 0.92rem; line-height: 1.6; color: #555; }
.art-related { padding: 20px 0 100px; }

@media (max-width: 1000px) {
  .learn-grid { grid-template-columns: repeat(2, 1fr); }
  .art-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .art-toc { position: static; }
}
@media (max-width: 700px) {
  .learn-grid { grid-template-columns: 1fr; }
  .art-title { font-size: 2rem; }
  }
@media (prefers-reduced-motion: reduce) {
  .learn-card { transition: none; }
  .learn-card:hover { transform: none; }
  .learn-card.is-entering { animation: none; }
}

/* ---------- Performance page (performance.html). Script: js/performance.js ---------- */
.page-header-performance {
  background-image: url("../images/strategies/prologis-huzhou.jpg");
  background-image: image-set(url("../images/strategies/prologis-huzhou.avif") type("image/avif"), url("../images/strategies/prologis-huzhou.jpg") type("image/jpeg"));
}
.perf { padding: 56px 0 100px; }
.perf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-bottom: 64px; background: #fff; }
.perf-stat { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px; background: #f5f5f3; }
.perf-stat-value { font-family: var(--font-headline); font-size: 2.25rem; line-height: 1.1; color: var(--color-accent); }
.perf-stat-label { font-size: 0.85rem; color: #555; }
.perf-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px; margin-bottom: 20px; }
.perf-dd { width: 240px; }
.perf-toolbar .perf-dd:nth-child(2) .dd-panel { left: 0; right: auto; }
.perf-count { margin: 0 0 12px auto; font-size: 0.85rem; color: #666; }
.perf-table-wrap { overflow-x: auto; }
.perf-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.perf-table thead th {
  padding: 0; text-align: left; vertical-align: bottom;
  font-size: 0.78rem; font-weight: 600; color: #555;
  border-bottom: 2px solid var(--color-text);
}
.perf-table thead th button {
  display: inline-flex; align-items: center; gap: 6px; width: 100%;
  padding: 12px 14px; background: none; border: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: inherit;
}
.perf-table th.num, .perf-table td.num { text-align: right; }
.perf-table th.num button { justify-content: flex-end; }
.perf-table thead th button:hover { color: var(--color-accent); }
.perf-table thead th button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.perf-table thead .icon { width: 12px; height: 12px; opacity: 0; transition: transform 0.25s ease, opacity 0.2s ease; }
.perf-table thead th button:hover .icon { opacity: 0.4; }
.perf-table th[aria-sort="ascending"] .icon, .perf-table th[aria-sort="descending"] .icon { opacity: 1; color: var(--color-accent); }
.perf-table th[aria-sort="ascending"] .icon { transform: rotate(180deg); }
.perf-table th[aria-sort="ascending"], .perf-table th[aria-sort="descending"] { color: var(--color-text); }
.perf-table tbody th, .perf-table td { padding: 14px; border-bottom: 1px solid #e4e4e0; white-space: nowrap; }
.perf-table tbody th { text-align: left; font-weight: 500; }
.perf-table td { color: #444; font-variant-numeric: tabular-nums; }
.perf-table tbody tr:hover { background: #fafaf8; }
.perf-table tr[hidden] { display: none; }
.perf-table td.is-neg { color: #b3261e; }
.perf-table td.is-empty { color: #aaa; }
.perf-empty { margin: 20px 0 0; color: #666; }
.perf-deals-title, .perf-group-title { margin-top: 72px; }
.perf-name-link {
  padding: 0; font: inherit; font-weight: 500; color: var(--color-text); text-align: left;
  background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: #c9c9c9; text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.perf-name-link:hover { color: var(--color-accent); text-decoration-color: currentColor; }
.perf-name-link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.perf-data-table tbody th, .perf-data-table td { width: auto !important; white-space: nowrap; }
.perf-data-table td { color: #444 !important; font-weight: 400 !important; }
.perf-data-table .num { text-align: right; }
.perf-data-table td:last-child { color: #666 !important; }
.perf-disclosure { margin-top: 48px; padding-top: 24px; border-top: 1px solid #d6d6d6; font-size: 0.8rem; line-height: 1.65; color: #666; }
.perf-disclosure p { margin: 0 0 10px; max-width: 900px; }
/* Real track record (Dec 5): 1,000+ deals with long names. Headings stay on one line; long names and
   property types wrap inside a capped column so the tables fit the page instead of stretching it. */
.perf-table thead th.num button { min-width: 118px; } /* numeric headings wrap to two even lines, never one word per line */
.perf-table thead th:first-child { min-width: 200px; }
.perf-table tbody th { white-space: normal; min-width: 200px; max-width: 360px; line-height: 1.35; }
.perf-table[data-perf-table] td:nth-child(2), .perf-table[data-perf-table] td:nth-child(3) { white-space: normal; min-width: 130px; max-width: 220px; line-height: 1.35; }
.perf-table td.num { white-space: nowrap; }
.perf-table tr.is-paged-out { display: none; }
.perf-subtype { display: block; margin-top: 2px; font-size: 0.78rem; color: #888; }
.perf-more { display: block; margin: 28px auto 0; }
@media (max-width: 760px) {
  .perf-table tbody th { min-width: 150px; max-width: 170px; }
  /* Name column stays put while the figures scroll sideways */
  .perf-table thead th:first-child, .perf-table tbody th { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 #e4e4e0; }
  .perf-table thead th button, .perf-table tbody th, .perf-table td { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 900px) {
  .perf-stat { padding: 22px 16px; }
  .perf-stat-value { font-size: 1.7rem; }
  .perf-count { margin-left: 0; }
}
@media (max-width: 600px) {
  .perf-dd { width: 100%; }
  .perf-stats { grid-template-columns: 1fr; margin-bottom: 48px; }
  .perf-stat { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 20px; }
}

/* ---------- Contact page header photo (Jerry, Dec 5) ---------- */
.page-header-contact {
  background-image: url("../images/strategies/salesforce-tower-sf.jpg");
  background-image: image-set(url("../images/strategies/salesforce-tower-sf.avif") type("image/avif"), url("../images/strategies/salesforce-tower-sf.jpg") type("image/jpeg"));
}

/* ---------- About page (about.html) ---------- */
.page-header-about {
  background-image: url("../images/strategies/qts-calatorao.jpg");
  background-image: image-set(url("../images/strategies/qts-calatorao.avif") type("image/avif"), url("../images/strategies/qts-calatorao.jpg") type("image/jpeg"));
}
/* Jump links under the header (sticks to the top while scrolling) */
.about-jump { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid #e3e3e3; }
.about-jump .container { display: flex; gap: 4px 28px; overflow-x: auto; scrollbar-width: none; }
.about-jump .container::-webkit-scrollbar { display: none; }
.about-jump a {
  flex: none; padding: 16px 0 14px; border-bottom: 2px solid transparent;
  font-size: 0.85rem; color: #555; text-decoration: none; white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.about-jump a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.about-section { padding: 80px 0; scroll-margin-top: 52px; }
.about-section + .about-section:not(.about-band) { padding-top: 0; }
.about-band { background: #f5f5f3; }
.about-band + .about-section { padding-top: 80px !important; }
.about-text p { margin: 0 0 18px; font-size: 1.02rem; line-height: 1.75; }
.about-text a, .about-footnote a, .about-creds a { color: var(--color-accent); }
.about-lead { font-family: var(--font-headline); font-size: 1.35rem !important; line-height: 1.5 !important; }
.about-intro { margin: -4px 0 32px; max-width: 810px; font-size: 1.02rem; line-height: 1.7; color: #444; }
.about-eyebrow { margin: 0 0 12px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #666; }
.about-firm-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.about-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.about-facts { padding: 28px 28px 12px; background: #f5f5f3; border-top: 3px solid var(--color-accent); }
.about-facts dl { margin: 0; }
.about-facts dl > div { padding: 14px 0; border-top: 1px solid #e0e0dc; }
.about-facts dt { font-size: 0.8rem; color: #666; margin-bottom: 4px; }
.about-facts dd { margin: 0; font-weight: 500; line-height: 1.45; }
.about-review { padding-bottom: 24px; }
.about-review ol { list-style: none; counter-reset: rv; margin: 0; padding: 0; }
.about-review li { counter-increment: rv; display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #e0e0dc; font-weight: 500; }
.about-review li::before {
  content: counter(rv); flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: var(--color-accent); color: #fff; font-size: 0.8rem; font-weight: 600;
}
/* By the numbers: green band */
.about-numbers { padding: 64px 0; background: var(--color-accent); color: #fff; }
.about-numbers-title { margin: 0 0 32px; font-family: var(--font-headline); font-weight: 400; font-size: 1.75rem; }
.about-numbers-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.about-number { display: flex; flex-direction: column; gap: 10px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.35); }
.about-number-value { font-family: var(--font-headline); font-size: 2.1rem; line-height: 1.1; }
.about-number-label a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.about-number-label { font-size: 0.85rem; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
/* Jerry Baker */
.about-person-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 64px; align-items: start; }
.about-person-side { position: sticky; top: 76px; }
.about-portrait { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: #e9e9e5; color: #b5b5ae; }
.about-portrait .icon { width: 72px; height: 72px; }
picture.about-portrait { display: block; background: none; }
picture.about-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-contact { margin: 24px 0 20px; }
.about-links { grid-template-columns: 1fr; }
.about-person-name { margin: 0 !important; font-family: var(--font-headline); font-size: 2rem !important; line-height: 1.2 !important; }
.about-person-title { margin: 4px 0 24px !important; color: #666; font-size: 0.95rem !important; }
.about-subblock { margin-top: 32px; padding-top: 28px; border-top: 1px solid #d6d6d6; }
.about-list { margin: 0; padding-left: 18px; line-height: 1.7; }
.about-list li { margin-bottom: 8px; }
.about-creds { margin: 0; }
.about-creds > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid #eee; }
.about-creds > div:first-child { border-top: 0; padding-top: 0; }
.about-creds dt { font-weight: 600; }
.about-creds dd { margin: 0; line-height: 1.65; }
/* Cards (commitments, principles, situations) */
.about-cards { display: grid; gap: 24px; }
.about-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.about-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.about-card { padding: 26px 24px; background: #fff; border-top: 3px solid var(--color-accent); }
.about-cards-plain .about-card { border: 1px solid #e3e3e3; border-top: 3px solid var(--color-accent); }
.about-card h3 { margin: 0 0 10px; font-family: var(--font-headline); font-weight: 400; font-size: 1.2rem; line-height: 1.3; }
.about-card p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: #555; }
.about-card sup a { color: var(--color-accent); text-decoration: none; }
.about-footnote { margin: 24px 0 0; font-size: 0.8rem; line-height: 1.6; color: #666; max-width: 900px; }
/* Process steps */
.about-steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; }
.about-steps li { counter-increment: st; position: relative; padding-top: 56px; }
.about-steps li::before {
  content: counter(st); position: absolute; top: 0; left: 0;
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  background: var(--color-accent); color: #fff; font-family: var(--font-headline); font-size: 1.1rem;
}
.about-steps li::after { content: ""; position: absolute; top: 20px; left: 52px; right: -12px; height: 1px; background: #c9d6d3; }
.about-steps li:last-child::after { display: none; }
.about-steps h3 { margin: 0 0 8px; font-family: var(--font-headline); font-weight: 400; font-size: 1.2rem; }
.about-steps p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: #555; }
/* Strategies table */
.about-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.55; }
.about-table caption { caption-side: top; padding-bottom: 14px; text-align: left; color: #666; font-size: 0.9rem; }
.about-table th, .about-table td { padding: 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #e4e4e0; }
.about-table thead th { font-size: 0.78rem; font-weight: 600; color: #555; border-bottom: 2px solid var(--color-text); white-space: nowrap; }
.about-table tbody th { font-weight: 600; width: 18%; }
.about-table td { color: #444; }
/* Phones: each strategy becomes a stacked card (labels from data-label) */
@media (max-width: 640px) {
  .about-table, .about-table tbody, .about-table tr, .about-table th, .about-table td { display: block; width: auto; }
  .about-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .about-table tr { padding: 16px 0; border-bottom: 1px solid #e4e4e0; }
  .about-table tbody th { width: auto; padding: 0 0 8px; border: 0; font-size: 1rem; }
  .about-table td { padding: 4px 0; border: 0; }
  .about-table td::before { content: attr(data-label); display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #777; margin-top: 6px; }
}
.about-note { margin: 16px 0 0; font-size: 0.85rem; color: #666; }
/* Notice, offices, links */
.about-notice { padding: 22px 24px; background: #f5f5f3; border-left: 3px solid #b9c4c1; }
.about-notice p { font-size: 0.92rem !important; line-height: 1.65 !important; }
.about-notice p:last-child { margin-bottom: 0 !important; }
.about-notice-title { font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.8rem !important; }
.about-arrow-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; }
.about-arrow-link .icon { width: 16px; height: 16px; transition: transform 0.25s ease; }
.about-arrow-link:hover .icon { transform: translateX(3px); }
.about-offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.about-office { padding: 24px; background: #fff; font-style: normal; border-top: 3px solid var(--color-accent); }
.about-office p { margin: 0 0 10px; line-height: 1.6; }
.about-office p:last-child { margin: 0; }
.about-office a { color: var(--color-accent); text-decoration: none; }
.about-office-city { font-family: var(--font-headline); font-size: 1.3rem; }
/* FAQ */
.about-faq-wrap { max-width: 900px; margin-left: auto; margin-right: auto; }
.about-faq details { border-bottom: 1px solid #d6d6d6; }
.about-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 0; cursor: pointer; list-style: none; font-size: 1.02rem; font-weight: 500;
}
.about-faq summary::-webkit-details-marker { display: none; }
.about-faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.25s ease;
}
.about-faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.about-faq summary:hover { color: var(--color-accent); }
.about-faq details p { margin: 0 0 20px; line-height: 1.7; color: #444; }
.about-disclosure { margin: 48px 0 0; padding-top: 20px; border-top: 1px solid #d6d6d6; font-size: 0.8rem; color: #777; }
@media (max-width: 1100px) {
  .about-numbers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .about-steps li::after { display: none; }
}
@media (max-width: 900px) {
  .about-firm-grid, .about-two-col, .about-person-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about-person-side { position: static; max-width: 320px; }
  .about-cards-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .about-section { padding: 56px 0; }
  .about-numbers-grid, .about-cards-4, .about-steps, .about-offices { grid-template-columns: minmax(0, 1fr); }
  .about-creds > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ---------- Learn articles from Jerry's export (learn-*.html, built by tools/build-learn.py) ---------- */
.learn-search { position: relative; max-width: 420px; margin: 0 0 18px; }
.learn-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #777; }
.learn-search input {
  width: 100%; padding: 12px 14px 12px 40px; font: inherit; font-size: 0.95rem;
  border: 1px solid #cfcfcf; border-radius: 0; background: #fff; color: inherit;
}
.learn-search input:focus { outline: 2px solid var(--color-accent); outline-offset: 0; border-color: var(--color-accent); }
.art-meta a { color: inherit; }

.art-body .learn-summary { margin: 0 0 32px; padding: 26px 28px; background: #eaf2f0; border-left: 4px solid var(--color-accent); }
.art-body .learn-summary h2 { margin: 0 0 10px; font-size: 1.25rem; }
.art-body .learn-summary p:last-child { margin-bottom: 0; }
.art-body .learn-takeaways { margin: 0 0 36px; padding: 24px 28px; background: #f5f5f3; }
.art-body .learn-takeaways h2 { margin: 0 0 12px; font-size: 1.25rem; }
.art-body .learn-takeaways ul { margin: 0; padding-left: 20px; }
.art-body .learn-takeaways li:last-child { margin-bottom: 0; }
.art-body .learn-intro { font-size: 1.15rem; color: #444; }
.art-body .table-wrap { overflow-x: auto; margin: 0 0 28px; }
.art-body table { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.5; }
.art-body th, .art-body td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #e3e3e3; }
.art-body thead th { background: #f5f5f3; font-weight: 600; }
.art-body .article-note { margin: 0 0 28px; padding: 16px 20px; font-size: 0.85rem; line-height: 1.65; color: #555; background: #f5f5f3; }
.art-body .article-note p { margin: 0 0 10px; }
.art-body .article-note p:last-child { margin-bottom: 0; }
.art-body .data-disclosure { margin: 0 0 28px; padding: 14px 18px; font-size: 0.8rem; line-height: 1.6; color: #666; border: 1px solid #e3e3e3; }
.art-body .data-disclosure p { margin: 0; }
.art-body .learn-sources { padding-left: 20px; font-size: 0.88rem; }
.art-body .learn-sources li { margin-bottom: 6px; }
.art-body .article-about { margin: 40px 0 0; padding: 28px 0 4px; border-top: 1px solid #d6d6d6; font-size: 0.95rem; }
.art-body .article-about + .article-about { margin-top: 0; }
.art-body .article-about-title { margin: 0 0 10px; font-size: 1.3rem; }
.art-body .article-about-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; font-size: 0.9rem; }
.art-body .faq-group { margin-bottom: 16px; }
.art-body .faq-group h3 { margin-top: 26px; }

/* Glossary: letter bar sticks to the top while scrolling */
.art-body .glossary-jump { position: sticky; top: 0; z-index: 2; margin: 0 0 24px; padding: 10px 0; background: #fff; border-bottom: 1px solid #e3e3e3; }
.art-body .glossary-jump ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.art-body .glossary-jump li { margin: 0; }
.art-body .glossary-jump a { display: inline-block; min-width: 30px; padding: 4px 6px; text-align: center; font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.art-body .glossary-jump a:hover { background: var(--color-accent); color: #fff; }
.art-body h2.glossary-letter { scroll-margin-top: 70px; margin-top: 40px; padding-bottom: 8px; border-bottom: 2px solid var(--color-accent); }
.art-body h2.glossary-letter ~ h3 { scroll-margin-top: 70px; }

/* Calculators (js/calculators.js) */
.art-body .calc { margin: 8px 0 40px; border: 1px solid #d6d6d6; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); }
.art-body .calc-title { margin: 0; padding: 18px 24px; font-size: 1.35rem; color: #fff; background: var(--color-accent); }
.calc-body { display: grid; grid-template-columns: 1fr 1fr; }
.calc-form { padding: 22px 24px; border-right: 1px solid #e3e3e3; }
.calc-form fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.calc-form fieldset:last-child { margin-bottom: 0; }
.calc-form legend { margin-bottom: 10px; padding: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #666; }
.calc-field { display: block; margin-bottom: 14px; }
.calc-label { display: block; margin-bottom: 5px; font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.calc-input { position: relative; display: block; }
.calc-input input, .calc-input select {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 0.95rem; line-height: 1.3;
  border: 1px solid #cfcfcf; border-radius: 0; background: #fff; color: inherit;
}
.calc-input input:focus, .calc-input select:focus { outline: 2px solid var(--color-accent); outline-offset: 0; border-color: var(--color-accent); }
.calc-money input { padding-left: 26px; }
.calc-money::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #777; font-size: 0.95rem; }
.calc-pct input { padding-right: 30px; }
.calc-pct::after { content: "%"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #777; font-size: 0.95rem; }
.calc-hint { display: block; margin-top: 5px; font-size: 0.78rem; line-height: 1.4; color: #777; }
.calc-check { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 0.88rem; }
.calc-check input { width: 16px; height: 16px; accent-color: var(--color-accent); }
.calc-results { padding: 22px 24px; background: #f5f5f3; }
.art-body .calc-results-title { margin: 0 0 12px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #666; font-family: inherit; }
.calc-results dl { margin: 0; }
.calc-results dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #e0e0dc; font-size: 0.9rem; line-height: 1.4; }
.calc-results dt { color: #444; }
.calc-results dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.calc-results .calc-total { border-bottom: 0; padding-top: 14px; }
.calc-results .calc-total dt { font-weight: 600; color: inherit; }
.calc-results .calc-total dd { font-size: 1.15rem; color: var(--color-accent); }
.calc-sub { display: block; font-size: 0.78rem; font-weight: 400; color: #666; }
.calc-flag { display: inline-block; margin-top: 3px; padding: 1px 6px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: #b3261e; }
.calc-flag[hidden], .calc-sub[hidden] { display: none; }
.art-body .calc-note { margin: 12px 0 0; font-size: 0.82rem; line-height: 1.55; color: #555; }
.art-body .calc-note:empty { display: none; }
.calc-disclaimer { padding: 16px 24px; font-size: 0.75rem; line-height: 1.6; color: #666; border-top: 1px solid #e3e3e3; }
.art-body .calc-disclaimer p { margin: 0 0 8px; }
.art-body .calc-disclaimer p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .calc-body { grid-template-columns: 1fr; }
  .calc-form { border-right: 0; border-bottom: 1px solid #e3e3e3; }
}

/* ---------- Contact page (contact.html): photo + phone, emails and offices only (Jerry removed the form, Dec 5) ---------- */
.contact-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 72px; padding: 56px 0 80px; align-items: start; }
.contact-layout-single { grid-template-columns: minmax(0, 760px); }
.contact-offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 600px) { .contact-offices { grid-template-columns: 1fr; gap: 0; } }
.contact-person { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.contact-photo { flex: none; display: flex; align-items: center; justify-content: center; width: 72px; height: 90px; background: #f5f5f3; color: #aaa; }
.contact-photo .icon { width: 32px; height: 32px; }
picture.contact-photo { display: block; width: 100%; height: auto; max-width: 340px; background: none; }
picture.contact-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.contact-name { margin: 0; font-family: var(--font-headline); font-size: 1.5rem; }
.contact-role { margin: 4px 0 0; font-size: 0.9rem; color: #555; }
.contact-lines { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid #e3e3e3; }
.contact-lines li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #e3e3e3; }
.contact-lines .icon { flex: none; width: 38px; height: 38px; padding: 9px; background: #eaf2f0; color: var(--color-accent); }
.contact-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #666; }
.contact-lines a { color: inherit; text-decoration: none; font-size: 1.05rem; }
.contact-lines a:hover { color: var(--color-accent); }
.contact-subhead { margin: 0 0 14px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #666; }
.contact-office { margin: 0 0 20px; font-style: normal; line-height: 1.6; }
.contact-office p { margin: 0; }
.contact-office a { color: inherit; }
.contact-links { display: flex; gap: 20px; margin: 8px 0 0; font-weight: 600; font-size: 0.9rem; }
.contact-links a { color: var(--color-accent); }
.contact-form-wrap .inv-section-title { margin-top: 0; }
.contact-form-intro { margin: 0 0 24px; color: #444; }
.contact-form { padding: 28px; background: #f5f5f3; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.contact-form textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: 0.95rem; border: 1px solid #cfcfcf; border-radius: 0; background: #fff; color: inherit; resize: vertical; }
.contact-form textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 0; border-color: var(--color-accent); }
.contact-form .is-invalid { border-color: #b3261e; }
.contact-fine { margin: 4px 0 20px; font-size: 0.78rem; line-height: 1.6; color: #666; }
.contact-fine a { color: inherit; }
.contact-form .btn { border: 0; cursor: pointer; }
.contact-notice { margin: 18px 0 0; padding: 14px 16px; font-size: 0.9rem; line-height: 1.55; background: #eaf2f0; border-left: 4px solid var(--color-accent); }
.contact-notice.is-error { background: #fbeceb; border-left-color: #b3261e; }
.contact-notice a { color: var(--color-accent); }
.contact-next { padding: 64px 0 90px; background: #f5f5f3; border-top: 1px solid #e3e3e3; }
.contact-next .inv-section-title { margin-top: 0; }
.contact-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 28px 0 0; padding: 0; }
.contact-step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-accent); color: #fff; font-weight: 600; }
.contact-step-title { margin: 14px 0 6px; font-weight: 600; }
.contact-steps p:last-child { margin: 0; color: #444; line-height: 1.6; }
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid, .contact-steps { grid-template-columns: 1fr; }
}

/* ---------- Register page (register.html). Script: js/register.js (Step 1 only; nothing is sent yet) ---------- */
.reg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding: 56px 0 90px; align-items: start; }
.reg-card { border: 1px solid #d6d6d6; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); }
.reg-steps { list-style: none; display: flex; margin: 0; padding: 0; border-bottom: 1px solid #e3e3e3; background: #f5f5f3; }
.reg-steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 16px 24px; font-size: 0.85rem; color: #777; }
.reg-steps li + li { border-left: 1px solid #e3e3e3; }
.reg-steps li.is-current { color: var(--color-text); font-weight: 600; background: #fff; box-shadow: inset 0 -3px 0 var(--color-accent); }
.reg-step-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor; font-size: 0.8rem; }
.reg-steps li.is-current .reg-step-num { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.reg-form { padding: 28px 32px 32px; }
.reg-form .inv-section-title { margin-top: 0; font-size: 1.5rem; }
.reg-form .is-invalid { border-color: #b3261e; }
.reg-msg { margin: 6px 0 0; font-size: 0.8rem; line-height: 1.45; color: #555; }
.reg-msg.is-error { color: #b3261e; }
.reg-msg.is-warn { padding: 8px 10px; color: #6b4a00; background: #fff6df; border-left: 3px solid #d79b00; }
.reg-msg.is-suggest { color: #444; }
.reg-fix { margin-left: 4px; padding: 2px 8px; font: inherit; font-size: 0.78rem; font-weight: 600; color: var(--color-accent); background: #eaf2f0; border: 1px solid #cfe0dc; cursor: pointer; }
.reg-fix:hover { background: var(--color-accent); color: #fff; }
.reg-consent { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 24px; padding: 16px 18px; font-size: 0.8rem; line-height: 1.6; color: #444; background: #f5f5f3; cursor: pointer; }
.reg-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-accent); }
.reg-consent a { color: var(--color-accent); }
.reg-actions .btn { border: 0; cursor: pointer; }
.reg-why { margin: 0 0 24px; padding-left: 18px; line-height: 1.6; color: #444; }
.reg-why li { margin-bottom: 10px; }
.reg-side-note { font-size: 0.9rem; color: #444; }
.reg-side-note a { color: var(--color-accent); }
@media (max-width: 900px) {
  .reg-layout { grid-template-columns: 1fr; gap: 32px; }
  .reg-form { padding: 22px 20px 24px; }
  .reg-steps li { padding: 12px 14px; }
}
.reg-steps li.is-done { color: var(--color-accent); }
.reg-steps li.is-done .reg-step-num { border-color: var(--color-accent); }
.reg-step h2:focus { outline: none; }
.reg-choice { margin: 0 0 24px; padding: 0; border: 0; }
.reg-choice legend { margin-bottom: 10px; padding: 0; font-size: 0.95rem; }
.reg-option { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; padding: 13px 16px; font-size: 0.95rem; border: 1px solid #d6d6d6; background: #fff; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.reg-option:hover { border-color: var(--color-accent); }
.reg-option.is-checked { border-color: var(--color-accent); background: #eaf2f0; }
.reg-option input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--color-accent); }
.reg-yesno { display: flex; gap: 10px; }
.reg-yesno .reg-option { flex: 0 0 140px; }
.reg-other { margin: 0 0 8px 46px; }
.reg-other .is-invalid { border-color: #b3261e; }
.reg-actions { display: flex; gap: 14px; align-items: center; }
.reg-back { display: inline-flex; gap: 8px; align-items: center; padding: 16px 22px; font: inherit; font-size: 0.9rem; color: var(--color-text); background: #fff; border: 1px solid #cfcfcf; cursor: pointer; }
.reg-back:hover { border-color: var(--color-accent); color: var(--color-accent); }
.reg-back[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* TEMPORARY preview bar (register.html?preview=1). Remove before launch. */
.reg-form [hidden], .reg-steps li[hidden] { display: none !important; }
.reg-stage-detail { margin-top: 4px; }
.reg-deadlines { margin: 4px 0 24px; padding: 18px 20px; background: #f5f5f3; border-left: 3px solid var(--color-accent); }
.reg-deadlines-title { margin: 0 0 10px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #666; }
.reg-deadlines dl { margin: 0; }
.reg-deadlines dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid #e3e3e3; font-size: 0.9rem; }
.reg-deadlines dt { color: #444; }
.reg-deadlines dd { margin: 0; font-weight: 600; text-align: right; }
.reg-dl-left { display: block; font-size: 0.78rem; font-weight: 400; color: var(--color-accent); }
.reg-dl-left.is-passed { color: #b3261e; }
.reg-deadlines-note { margin: 10px 0 0; font-size: 0.78rem; line-height: 1.5; color: #777; }
.reg-deadlines .reg-msg.is-warn { margin-top: 12px; }
.reg-loan { max-width: calc(50% - 10px); }
@media (max-width: 760px) { .reg-loan { max-width: none; } .reg-deadlines dl div { flex-direction: column; gap: 2px; } .reg-deadlines dd { text-align: left; } }
.reg-define { margin: 0 0 14px; padding: 16px 18px; font-size: 0.85rem; line-height: 1.6; color: #444; background: #f5f5f3; }
.reg-define p { margin: 0 0 8px; }
.reg-define p:last-child { margin: 8px 0 0; color: #666; }
.reg-define ul { margin: 0; padding-left: 18px; }
.reg-define li { margin-bottom: 4px; }
.reg-confirm .reg-consent { margin-bottom: 0; font-size: 0.9rem; }
.reg-confirm { margin-bottom: 24px; }
.reg-dst { margin-bottom: 14px; }
.reg-define-title { margin: 0 0 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #666; }
.reg-define.reg-dst p:last-child { margin: 0; color: #444; }
.reg-dd-field { margin-bottom: 22px; }
.reg-dd-hint { margin: -2px 0 8px; }
.reg-dd .dd-panel { width: 100%; max-width: none; }
.reg-dd .dd-option { white-space: normal; align-items: flex-start; line-height: 1.4; }
.reg-dd .dd-option input { margin-top: 2px; }
.reg-picked { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.reg-picked li { padding: 4px 10px; font-size: 0.8rem; color: var(--color-accent); background: #eaf2f0; border: 1px solid #cfe0dc; }
.reg-optional { font-weight: 400; color: #777; }
.reg-form textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: 0.95rem; border: 1px solid #cfcfcf; border-radius: 0; background: #fff; color: inherit; resize: vertical; }
.reg-form textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 0; border-color: var(--color-accent); }
.reg-preview { position: fixed; left: 50%; bottom: 20px; z-index: 50; transform: translateX(-50%); display: flex; gap: 14px; align-items: center; padding: 10px 14px; font-size: 0.85rem; color: #fff; background: #1E242E; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.reg-preview[hidden] { display: none; }
.reg-preview-label { padding: 3px 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: #d79b00; color: #1E242E; }
.reg-preview button { padding: 6px 12px; font: inherit; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); cursor: pointer; }
.reg-preview button:hover { background: rgba(255, 255, 255, 0.12); }
body.has-reg-preview .footer-skyline { margin-bottom: 90px; }
@media (max-width: 600px) { .reg-preview { left: 10px; right: 10px; transform: none; gap: 8px; padding: 8px; font-size: 0.78rem; flex-wrap: wrap; justify-content: center; } .reg-preview-label { flex-basis: 100%; text-align: center; } }
@media (max-width: 760px) { .reg-steps li { flex: 0 0 auto; padding: 12px 10px; } .reg-steps li.is-current { flex: 1 1 auto; } .reg-steps li:not(.is-current) .reg-step-label { display: none; } }

/* Register: form card overlaps the header band on the right (Jerry, Dec 5) */
.register { overflow-x: clip; }
.reg-layout { grid-template-columns: minmax(0, 1fr) 480px; grid-template-rows: auto 1fr; column-gap: 64px; row-gap: 0; padding: 0 0 90px; }
.reg-head { grid-column: 1; grid-row: 1; padding: 80px 0 44px; background: #f5f5f3; box-shadow: 0 0 0 100vmax #f5f5f3; clip-path: inset(0 -100vmax); }
.reg-head .legal-intro { margin-bottom: 0; }
.reg-card { grid-column: 2; grid-row: 1 / span 2; position: relative; z-index: 2; margin-top: 48px; align-self: start; }
.reg-side { grid-column: 1; grid-row: 2; padding-top: 44px; max-width: 520px; }
.reg-card .contact-grid { grid-template-columns: 1fr; }
.reg-card .reg-loan { max-width: none; }
.reg-form { padding: 24px 26px 28px; }
.reg-steps li { flex: 0 0 auto; padding: 14px 12px; }
.reg-steps li.is-current { flex: 1 1 auto; }
.reg-steps li:not(.is-current) .reg-step-label { display: none; }
.reg-yesno .reg-option { flex: 1 1 0; }
@media (max-width: 960px) {
  .reg-layout { grid-template-columns: 1fr; grid-template-rows: auto; }
  .reg-head, .reg-card, .reg-side { grid-column: 1; grid-row: auto; }
  .reg-head { padding: 48px 0 32px; }
  .reg-card { margin-top: 0; }
}
@media (max-width: 760px) { .reg-form { padding: 22px 18px 24px; } }
.reg-card .reg-deadlines dl div { flex-direction: column; gap: 2px; }
.reg-card .reg-deadlines dd { text-align: left; }
.reg-card .reg-dl-left { display: inline; margin-left: 6px; }

/* Register header photo: The Strategy, Singapore (Brookfield). Full-bleed band behind row 1 of .reg-layout */
.reg-head-bg {
  grid-column: 1 / -1; grid-row: 1; align-self: stretch; margin: 0 calc(50% - 50vw);
  position: relative; background-color: var(--color-text);
  background-image: url("../images/strategies/the-strategy-singapore.jpg");
  background-image: image-set(url("../images/strategies/the-strategy-singapore.avif") type("image/avif"), url("../images/strategies/the-strategy-singapore.jpg") type("image/jpeg"));
  background-size: cover; background-position: center 40%;
}
.reg-head-bg::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.reg-head { position: relative; z-index: 1; padding: 110px 0 36px; background: none; box-shadow: none; clip-path: none; color: #fff; }
.reg-head .page-title { color: #fff; }
.reg-head .legal-intro { color: rgba(255, 255, 255, 0.92); }
.reg-head-caption { margin: 56px 0 0; font-family: var(--font-button); font-size: 0.75rem; letter-spacing: 0.04em; line-height: 1.4; color: rgba(255, 255, 255, 0.75); }
@media (max-width: 960px) {
  .reg-head-bg, .reg-head { grid-row: 1; }
  .reg-head { padding: 56px 0 20px; }
  .reg-head-caption { margin-top: 32px; }
  .reg-card { grid-row: 2; margin-top: 24px; }
  .reg-side { grid-row: 3; }
}

/* Click-to-reveal explanation (Step 6 "What is a DST investment?") */
.reg-reveal { margin: -14px 0 24px; }
.reg-reveal summary { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 0.85rem; font-weight: 600; color: var(--color-accent); cursor: pointer; list-style: none; }
.reg-reveal summary::-webkit-details-marker { display: none; }
.reg-reveal summary::after { content: "+"; font-size: 1rem; font-weight: 400; line-height: 1; }
.reg-reveal[open] summary::after { content: "\2212"; }
.reg-reveal summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.reg-reveal-body { margin-top: 8px; padding: 16px 18px; font-size: 0.85rem; line-height: 1.6; color: #444; background: #f5f5f3; }
.reg-reveal-body p { margin: 0 0 8px; }
.reg-reveal-body p:last-child { margin: 0; }
.reg-side-text { margin: 0 0 20px; line-height: 1.65; color: #444; }

/* Step 6 "What is a DST investment?" popup */
.reg-info-link { display: inline-flex; align-items: center; gap: 6px; margin: -14px 0 24px; padding: 4px 0; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--color-accent); background: none; border: 0; cursor: pointer; }
.reg-info-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.reg-info-link .icon { width: 14px; height: 14px; }
.reg-dialog { width: min(560px, calc(100% - 32px)); padding: 0; border: 0; color: var(--color-text); background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); }
.reg-dialog::backdrop { background: rgba(30, 36, 46, 0.55); }
.reg-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px 14px; border-bottom: 1px solid #e3e3e3; }
.reg-dialog-head h3 { margin: 0; font-family: var(--font-headline); font-size: 1.3rem; font-weight: 400; }
.reg-dialog-close { width: 36px; height: 36px; font-size: 1.6rem; line-height: 1; color: #555; background: none; border: 1px solid transparent; cursor: pointer; }
.reg-dialog-close:hover { color: var(--color-accent); border-color: #d6d6d6; }
.reg-dialog-body { padding: 18px 24px 24px; font-size: 0.95rem; line-height: 1.65; color: #444; }
.reg-dialog-body p { margin: 0 0 12px; }
.reg-dialog-body p:last-child { margin: 0; }

/* Register: Path B message after the last step (Path A goes to schedule.html) */
.reg-done { padding: 28px 26px 30px; }
.reg-done[hidden] { display: none; }
.reg-done h2:focus { outline: none; }
.reg-done .inv-section-title { margin-top: 0; font-size: 1.5rem; }
.reg-done-intro { margin: 0 0 14px; line-height: 1.6; color: #444; }
.reg-done-intro a { color: var(--color-accent); }
.reg-done-note { margin: 18px 0 0; font-size: 0.78rem; color: #888; }
/* Schedule page (SavvyCal inline embed) */
.schedule-embed { min-height: 640px; margin: 40px 0 0; }
.schedule-alt { margin: 24px 0 80px; font-size: 0.95rem; color: #444; }
.schedule-alt a { color: var(--color-accent); }

/* Spinner (register redirect + schedule page loading) */
.spinner { display: inline-block; width: 36px; height: 36px; border: 3px solid #d9e6e3; border-top-color: var(--color-accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.reg-redirect { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 360px; padding: 40px 26px; text-align: center; color: #444; }
.reg-redirect[hidden] { display: none; }
.reg-redirect .spinner { margin-bottom: 18px; }
.reg-redirect p { margin: 0; }
.reg-redirect-title { font-family: var(--font-headline); font-size: 1.5rem; color: var(--color-text); }
.schedule-wrap { position: relative; margin-top: 40px; min-height: 640px; }
.schedule-wrap .schedule-embed { margin: 0; opacity: 0; transition: opacity 0.3s ease; }
.schedule-wrap .schedule-embed.is-ready { opacity: 1; }
.schedule-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 60px; gap: 16px; color: #555; }
.schedule-loading[hidden] { display: none; }
.schedule-loading p { margin: 0; }
.reg-dd .dd-option-none { border-top: 1px solid #e6e6e6; margin-top: 4px; padding-top: 11px; }
/* Path A scheduling view on register.html: rendered off-screen while the calendar preloads */
.reg-schedule { position: absolute; top: 0; left: -10000px; width: 1200px; visibility: hidden; pointer-events: none; }
.reg-schedule.is-shown { position: static; width: auto; visibility: visible; pointer-events: auto; }
[data-reg-main][hidden] { display: none; }
.page-header-schedule {
  background-image: url("../images/strategies/8111-douglas-dallas.jpg");
  background-image: image-set(url("../images/strategies/8111-douglas-dallas.avif") type("image/avif"), url("../images/strategies/8111-douglas-dallas.jpg") type("image/jpeg"));
}

/* ---------- Homepage "About Our Firm" (index.html): photo left to page edge, text + stats right ---------- */
.home-about { display: grid; grid-template-columns: 38% 62%; margin-top: 100px; background: #f5f6f6; }
.home-about-photo {
  position: relative; min-height: 460px;
  background: #2b3330 center / cover no-repeat;
  background-image: url("../images/strategies/champs-elysees-paris.jpg");
  background-image: image-set(url("../images/strategies/champs-elysees-paris.avif") type("image/avif"), url("../images/strategies/champs-elysees-paris.jpg") type("image/jpeg"));
}
.home-about-caption {
  position: absolute; left: 16px; right: 16px; bottom: 12px; margin: 0; text-align: right;
  font-size: 0.75rem; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
}
.home-about-body {
  /* right edge lines up with the 1200px content column */
  max-width: calc(12vw + var(--content-width) / 2);
  box-sizing: border-box; padding: 64px 24px 64px 64px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.home-about-title { margin: 0 0 20px; font-family: var(--font-headline); font-weight: 400; font-size: 2rem; line-height: 1.2; }
.home-about-body > p { margin: 0 0 36px; line-height: 1.7; }
.home-about-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin-bottom: 20px; width: 100%; }
.home-about-stat { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; border-left: 2px solid var(--color-accent); }
.home-about-value { font-family: var(--font-headline); font-size: 1.9rem; line-height: 1.1; color: var(--color-accent); }
.home-about-label { font-size: 0.85rem; line-height: 1.5; color: #5a6270; }
@media (max-width: 960px) {
  .home-about { grid-template-columns: minmax(0, 1fr); margin-top: 64px; }
  .home-about-photo { min-height: 320px; }
  .home-about-body { max-width: none; padding: 48px 24px 56px; }
}
@media (max-width: 520px) {
  .home-about-stats { grid-template-columns: minmax(0, 1fr); }
}

/* Dotted-underline text link (homepage intro heading "Six decades" -> about.html) */
.dotted-link {
  color: inherit; text-decoration: underline dotted;
  text-decoration-thickness: 2px; text-underline-offset: 0.18em;
  text-decoration-color: var(--color-accent);
  transition: color 0.2s ease;
}
.dotted-link:hover, .dotted-link:focus-visible { color: var(--color-accent); }
.home-about-sup { font-size: 0.7em; line-height: 0; margin-left: 2px; }
.home-about-sup a { color: var(--color-accent); text-decoration: none; }
.home-about-body > p.home-about-note { margin: 0 0 32px; font-size: 0.75rem; line-height: 1.5; color: #6b7280; }
.home-about-note sup { font-size: 0.7em; }

/* ---------- Homepage founder quote (index.html, below About Our Firm): photo left, quote right, author right-aligned ---------- */
.home-quote { padding: 110px 0; }
.home-quote-figure { margin: 0 auto; max-width: 1100px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: center; }
.home-quote-photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; background: #e9e9e5; color: #b5b5ae; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--color-accent); }
.home-quote-photo .icon { width: 96px; height: 96px; }
.home-quote-pic { display: block; flex-shrink: 0; }
img.home-quote-photo { display: block; }
.home-quote-mark { width: 40px; height: 30px; color: var(--color-accent); margin-bottom: 20px; }
.home-quote blockquote { margin: 0; }
.home-quote blockquote p {
  margin: 0; font-family: var(--font-headline); font-style: italic; font-weight: 300;
  font-size: 1.6rem; line-height: 1.5; color: var(--color-text);
}
.home-quote figcaption { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.home-quote figcaption::before { content: ""; width: 48px; height: 2px; background: var(--color-accent); margin-bottom: 14px; }
.home-quote-name { font-weight: 600; font-size: 1rem; }
.home-quote-title { font-size: 0.85rem; color: #5a6270; }
@media (max-width: 960px) {
  .home-quote { padding: 72px 0; }
  .home-quote-figure { grid-template-columns: minmax(0, 1fr); gap: 32px; justify-items: center; }
  .home-quote-photo { width: 150px; height: 150px; }
  .home-quote blockquote p { font-size: 1.3rem; }
}

/* ---------- Homepage "Our Process" (index.html): mirror of .home-about, photo on the right ---------- */
.home-about-reverse { grid-template-columns: 62% 38%; margin-top: 0; }
.home-about-reverse .home-about-body { justify-self: end; padding: 48px 64px 48px 24px; }
.home-process-photo {
  background-image: url("../images/strategies/urban-logistics-sao-paulo.jpg");
  background-image: image-set(url("../images/strategies/urban-logistics-sao-paulo.avif") type("image/avif"), url("../images/strategies/urban-logistics-sao-paulo.jpg") type("image/jpeg"));
}
.home-process-steps { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; }
.home-process-step { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-top: 1px solid #dfe3e2; }
.home-process-step:last-child { border-bottom: 1px solid #dfe3e2; }
.home-process-num { font-family: var(--font-headline); font-size: 1.2rem; line-height: 1.3; color: var(--color-accent); font-variant-numeric: lining-nums tabular-nums; }
.home-process-step h3 { margin: 0 0 2px; font-family: var(--font-headline); font-weight: 400; font-size: 1.2rem; line-height: 1.3; }
.home-process-step p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: #4a5260; }
/* Both photo/text sections share one height on desktop so the mirrored photos match (Jerry) */
@media (min-width: 961px) { .home-about { min-height: 720px; } }
@media (max-width: 960px) {
  .home-about-reverse { grid-template-columns: minmax(0, 1fr); }
  .home-about-reverse .home-process-photo { order: -1; }
  .home-about-reverse .home-about-body { justify-self: stretch; padding: 48px 24px 56px; }
}

/* ---------- Homepage realized investments carousel (index.html) ---------- */
.home-realized { padding: 100px 0 90px; }
.home-realized-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.home-realized-head .home-about-title { margin: 0; }
.home-realized-arrows { display: flex; gap: 10px; }
.carousel-arrow {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #cfd4d3; background: #fff; color: var(--color-text); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.carousel-arrow .icon { width: 20px; height: 20px; }
.carousel-arrow:hover:not(:disabled) { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.carousel-arrow:disabled { opacity: 0.35; cursor: default; }
.realized-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 64px) / 3); gap: 32px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 4px 24px; margin: -4px -4px 0; scroll-padding-inline: 4px; scrollbar-width: none;
}
.realized-track::-webkit-scrollbar { display: none; }
.realized-track .listing-card { scroll-snap-align: start; }
.realized-track .listing-card:hover { transform: none; }
.lc-status-realized { background: var(--color-accent); color: #fff; }
.realized-disclosure { margin: 8px 0 0; font-size: 0.8rem; line-height: 1.6; color: #777; }
.realized-disclosure a { color: var(--color-accent); }
@media (max-width: 960px) {
  .home-realized { padding: 64px 0; }
  .realized-track { grid-auto-columns: calc((100% - 32px) / 2); }
}
@media (max-width: 600px) {
  .realized-track { grid-auto-columns: 85%; gap: 16px; }
}

/* ---------- Investment page: Investment Documents (investment.html; list built by js/investment.js renderDocs) ---------- */
.inv-docs { margin-top: 80px; }
.inv-docs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.inv-doc {
  display: flex; align-items: center; gap: 14px; height: 100%; box-sizing: border-box;
  padding: 16px 18px; border: 1px solid #e3e3e3; background: #fff;
  color: var(--color-text); text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.inv-doc:hover, .inv-doc:focus-visible { border-color: var(--color-accent); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06); }
.inv-doc-icon { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #e6efed; color: var(--color-accent); }
.inv-doc-icon .icon { width: 22px; height: 22px; }
.inv-doc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inv-doc-name { font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.inv-doc-type { font-size: 0.78rem; color: #6b7280; letter-spacing: 0.03em; }
.inv-doc-go { flex: none; color: #9aa1a0; transition: color 0.2s ease; }
.inv-doc-go .icon { width: 20px; height: 20px; }
.inv-doc:hover .inv-doc-go { color: var(--color-accent); }
.inv-docs .inv-yield-disclaimer { margin-top: 16px; }
@media (max-width: 960px) {
  .inv-docs { margin-top: 56px; }
  .inv-docs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .inv-docs-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Investor Log In (login.html): no nav/footer, full-page photo, centered box ---------- */
.login-page { min-height: 100vh; }
.login-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px var(--gutter) 96px;
  background-color: #2b2f33;
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url("../images/strategies/ave-paradise-valley.jpg");
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), image-set(url("../images/strategies/ave-paradise-valley.avif") type("image/avif"), url("../images/strategies/ave-paradise-valley.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  padding: 40px 40px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.login-logo { display: inline-block; margin-bottom: 28px; text-decoration: none; color: inherit; }
.login-logo .logo-img { display: block; height: 96px; width: auto; }
.login-title { margin: 0 0 8px; font-family: var(--font-headline); font-weight: 400; font-size: 1.9rem; line-height: 1.2; }
.login-intro { margin: 0 0 24px; line-height: 1.55; color: #555; overflow-wrap: anywhere; }
.login-intro strong { color: var(--color-text); }
.login-form .calc-field { margin-bottom: 18px; }
.login-msg { margin: 6px 0 0; font-size: 0.85rem; color: #B70121; }
.login-submit { width: 100%; justify-content: center; }
.login-submit[disabled] { opacity: 0.7; cursor: wait; }
.login-actions { display: grid; gap: 10px; }
.btn.btn-outline { background: #fff; color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.btn.btn-outline:hover { background: #f2f6f5; }
.login-alt { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #e5e5e5; font-size: 0.9rem; color: #555; text-align: center; }
.login-alt a { color: var(--color-accent); font-weight: 600; }
.login-caption { position: absolute; right: 24px; bottom: 52px; margin: 0; font-size: 0.75rem; color: rgba(255, 255, 255, 0.8); }
/* Securities bar fixed to the bottom of the login window (Jerry, Dec 6) */
.login-securities {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  margin: 0; padding: 8px var(--gutter);
  background: rgba(30, 36, 46, 0.92); color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem; line-height: 1.4; text-align: center;
}
.login-securities a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 520px) {
  .login-card { padding: 32px 24px 24px; }
  .login-caption { left: 24px; bottom: 64px; text-align: right; }
}

/* ---------- Live data from Supabase (js/site-data.js) ---------- */
/* Offering statuses from the admin portal */
.lc-status-available { background: #fff; color: var(--color-accent); }
.lc-status-limited-availability { background: #f4e7c8; color: #6b4e0f; }
.lc-status-under-review { background: #e3ecf6; color: #23466b; }
.lc-status-closed { background: #e5e5e5; color: #555; }
/* Real offering photos are set inline as background-image on .lc-media / .inv-media */
.lc-media.has-photo, .inv-media.has-photo { background-size: cover; background-position: center; }
/* Hide the sample cards while live offerings load */
.listing-grid.is-loading .listing-card { visibility: hidden; }
[data-perf].is-loading .perf-table tbody, [data-perf].is-loading .perf-stats { visibility: hidden; }

/* Soft lock by access level (js/gate.js). Content stays in the markup; .gate-overlay sits on top. */
.is-gated { position: relative; }
.is-gated > :not(.gate-overlay) { filter: blur(10px); pointer-events: none; user-select: none; }
.listing-card.is-gated { overflow: hidden; }
/* Clip the blur so it does not bleed past the locked area (clip, not hidden, keeps the sticky panel working) */
.gate-area { overflow: hidden; overflow: clip; }
.listing-card.is-gated:hover { transform: none; box-shadow: none; }
.listing-card.is-gated:focus-within { outline: none; }
.gate-overlay { position: absolute; inset: 0; z-index: 3; display: flex; justify-content: center; background: rgba(255, 255, 255, 0.82); }
.gate-card .gate-overlay { align-items: center; padding: 20px; }
.gate-area .gate-overlay { align-items: flex-start; padding: 60px 20px; }
.gate-area .gate-panel { position: sticky; top: 30vh; max-width: 420px; padding: 32px 28px; background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12); }
.gate-panel { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.gate-lock { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--color-accent); color: #fff; }
.gate-text { margin: 0; max-width: 300px; font-size: 0.95rem; font-weight: 600; line-height: 1.45; color: var(--color-text); }
.gate-card .gate-text { max-width: 230px; font-size: 0.9rem; }
.gate-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.gate-email { flex-basis: 100%; font-size: 0.85rem; color: var(--color-accent); }
.btn.btn-sm { padding: 10px 18px; font-size: 0.8rem; }


/* ---------- Responsive pass (Jerry, Dec 5): phones, foldables, tablets ---------- */
/* Wide tables that scroll sideways get edge shadows so people can tell there's more */
.perf-table-wrap, .art-table-wrap, .art-body .table-wrap {
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center / 40px 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.14), transparent) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.14), transparent) right center / 14px 100% no-repeat scroll;
}
/* "On this page" folds behind a button on phones and tablets (js/toc.js) */
.art-toc-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 48px; padding: 0 14px; margin: 0;
  font: inherit; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text); background: #f5f5f3; border: 1px solid #e3e3e3; cursor: pointer;
}
.art-toc-toggle .icon { width: 18px; height: 18px; transition: transform 0.2s ease; }
.art-toc-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.art-toc.is-collapsed ol { display: none; }
.art-toc-title:has(.art-toc-toggle) { margin-bottom: 8px; }
@media (max-width: 760px) {
  /* 16px form text stops iPhones from zooming in when a field is tapped */
  input, select, textarea { font-size: max(16px, 1em) !important; }
}
/* Tap targets: small text links get more room on touch screens */
@media (pointer: coarse) {
  .footer-legal a, .footer-contact a, .footer-office a { display: inline-flex; align-items: center; min-height: 40px; }
  .footer-legal { gap: 0 24px; }
  .inv-back, .art-back { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Phones get 1000px-wide copies of the big background photos (about a third of the bytes) */
@media (max-width: 760px) {
  .hero { background-image: image-set(url("../images/hero-m.avif") type("image/avif"), url("../images/hero-m.jpg") type("image/jpeg")); }
  .sa-image-1 { background-image: image-set(url("../images/strategies/link-logistics-m.avif") type("image/avif"), url("../images/strategies/link-logistics-m.jpg") type("image/jpeg")); }
  .sa-image-2 { background-image: image-set(url("../images/strategies/boardwalk-irvine-m.avif") type("image/avif"), url("../images/strategies/boardwalk-irvine-m.jpg") type("image/jpeg")); }
  .sa-image-3 { background-image: image-set(url("../images/strategies/oil-field-m.avif") type("image/avif"), url("../images/strategies/oil-field-m.jpg") type("image/jpeg")); }
  .sa-image-4 { background-image: image-set(url("../images/strategies/oliv-tucson-m.avif") type("image/avif"), url("../images/strategies/oliv-tucson-m.jpg") type("image/jpeg")); }
  .sa-image-5 { background-image: image-set(url("../images/strategies/shoppes-at-crystals-m.avif") type("image/avif"), url("../images/strategies/shoppes-at-crystals-m.jpg") type("image/jpeg")); }
  .page-header-listings { background-image: image-set(url("../images/strategies/7-wtc-m.avif") type("image/avif"), url("../images/strategies/7-wtc-m.jpg") type("image/jpeg")); }
  .footer-skyline { background-image: linear-gradient(to bottom, var(--color-text) 0%, rgba(30, 36, 46, 0.55) 12%, rgba(30, 36, 46, 0) 30%), image-set(url("../images/brand/sf-skyline-night-m.avif") type("image/avif"), url("../images/brand/sf-skyline-night-m.jpg") type("image/jpeg")); }
  .page-header-learn { background-image: image-set(url("../images/strategies/st-regis-miami-m.avif") type("image/avif"), url("../images/strategies/st-regis-miami-m.jpg") type("image/jpeg")); }
  .page-header-performance { background-image: image-set(url("../images/strategies/prologis-huzhou-m.avif") type("image/avif"), url("../images/strategies/prologis-huzhou-m.jpg") type("image/jpeg")); }
  .page-header-contact { background-image: image-set(url("../images/strategies/salesforce-tower-sf-m.avif") type("image/avif"), url("../images/strategies/salesforce-tower-sf-m.jpg") type("image/jpeg")); }
  .page-header-about { background-image: image-set(url("../images/strategies/qts-calatorao-m.avif") type("image/avif"), url("../images/strategies/qts-calatorao-m.jpg") type("image/jpeg")); }
  .reg-head-bg { background-image: image-set(url("../images/strategies/the-strategy-singapore-m.avif") type("image/avif"), url("../images/strategies/the-strategy-singapore-m.jpg") type("image/jpeg")); }
  .page-header-schedule { background-image: image-set(url("../images/strategies/8111-douglas-dallas-m.avif") type("image/avif"), url("../images/strategies/8111-douglas-dallas-m.jpg") type("image/jpeg")); }
  .home-about-photo { background-image: image-set(url("../images/strategies/champs-elysees-paris-m.avif") type("image/avif"), url("../images/strategies/champs-elysees-paris-m.jpg") type("image/jpeg")); }
  .home-process-photo { background-image: image-set(url("../images/strategies/urban-logistics-sao-paulo-m.avif") type("image/avif"), url("../images/strategies/urban-logistics-sao-paulo-m.jpg") type("image/jpeg")); }
  .login-shell { background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), image-set(url("../images/strategies/ave-paradise-valley-m.avif") type("image/avif"), url("../images/strategies/ave-paradise-valley-m.jpg") type("image/jpeg")); }
}
/* Very narrow screens (folded phones, about 280px): let long emails wrap instead of widening the page */
.contact-lines a, .footer-contact a, .ct-contact a { overflow-wrap: anywhere; }

/* Homepage full-cycle cards: real photos (img fills the media box; zooms on hover like the placeholders) */
.lc-media .lc-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.listing-card:hover .lc-media .lc-photo { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .lc-media .lc-photo { transition: none; } }

/* Investment page when the offering can't be found or loaded (no sample offering ships in the HTML) */
.inv-unavailable { max-width: 640px; margin: 8px 0 80px; font-size: 1.05rem; line-height: 1.6; }
.inv-unavailable a { color: var(--color-accent); }

/* Investment page: empty boxes stay hidden until the offering data fills them (Jerry: no placeholder text) */
.inv-summary:empty, .inv-bullets li:empty { display: none; }

/* Performance: net IRR measure note and the dagger on returns reported another way (Jerry, Dec 6) */
.perf-measure-note { max-width: 860px; margin: 0 0 18px; font-size: 0.9rem; line-height: 1.6; color: #555; }
.perf-other-mark { margin-left: 2px; color: #8a6d00; font-weight: 600; }
.perf-land { margin-top: 56px; }
.perf-more-wrap { margin: 16px 0 0; text-align: center; }
