/* ==========================================================================
   INND.com - design system + component styles
   ========================================================================== */

:root {
  --color-bg: #0B1220;
  --color-bg-alt: #FFFFFF;
  --color-bg-soft: #F8F4ED;       /* cream - alternating section bg */
  --color-text: #0E1726;
  --color-text-inverse: #F8FAFC;
  --color-muted: #5B6675;
  --color-accent: #8B2635;        /* oxblood - primary accent */
  --color-accent-2: #0FB5A8;
  --color-danger: #E63946;
  --color-border: #E5E9F0;

  --font-sans: "Inter", "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(14, 23, 38, 0.06), 0 1px 1px rgba(14, 23, 38, 0.04);
  --shadow-md: 0 6px 18px rgba(14, 23, 38, 0.08), 0 2px 4px rgba(14, 23, 38, 0.04);
  --shadow-lg: 0 18px 40px rgba(14, 23, 38, 0.12);

  --max-content: 1180px;
  --pad-x: 24px;
  --pad-x-lg: 48px;
  --section-y: clamp(64px, 9vw, 128px);
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg-alt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";  /* Inter: refined alternates */
}

/* Display typography - Fraunces on headings and editorial moments */
h1, h2, h3,
.brand-mark,
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-feature-settings: "ss01";
}
h1 { font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-weight: 600; line-height: 1.2; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
}

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

a { color: var(--color-accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: -9999px;
  background: var(--color-accent); color: #fff; padding: 12px 16px;
  font-weight: 600; z-index: 1000;
}
.skip-link:focus {
  left: 16px; top: 16px;
}

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
@media (min-width: 900px) { .container { padding: 0 var(--pad-x-lg); } }

/* ---------- Typography ---------- */

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 0.5em;
}
.section-dark .eyebrow { color: var(--color-accent-2); }
.lede { font-size: 1.1em; color: var(--color-text); }
.muted { color: var(--color-muted); }
.micro-note { font-size: 0.85em; color: var(--color-muted); }

/* tabular numerals on financial blocks */
.metric-value, .ticker-price, .quote-price, .timeline-year {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- Sections ---------- */

.section {
  padding: var(--section-y) 0;
}
.section-light { background: var(--color-bg-alt); }
.section-soft  { background: var(--color-bg-soft); }
.section-dark  { background: var(--color-bg); color: var(--color-text-inverse); }
.section-dark h2, .section-dark h3, .section-dark dt { color: var(--color-text-inverse); }
.section-dark p, .section-dark li, .section-dark dd { color: rgba(248, 250, 252, 0.86); }
.section-dark a { color: #79bcff; }

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(32px, 4vw, 56px);
  text-align: center;
}
.section-head .eyebrow { margin-inline: auto; }

.fls-callout {
  font-size: 0.85em;
  color: var(--color-muted);
  background: rgba(31, 143, 255, 0.06);
  border-left: 3px solid var(--color-accent);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-align: left;
  margin-top: 16px;
}
.section-dark .fls-callout {
  background: rgba(15, 181, 168, 0.08);
  border-left-color: var(--color-accent-2);
  color: rgba(248, 250, 252, 0.78);
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-weight: 700; color: var(--color-text); text-decoration: none;
}
.brand-mark {
  font-weight: 800; font-size: 0.95rem; letter-spacing: 0.04em;
  background: var(--color-bg); color: var(--color-text-inverse);
  padding: 4px 8px; border-radius: var(--radius-sm);
}
.brand-word { font-size: 1rem; }
.nav-links { display: none; gap: 24px; }
.nav-links a { color: var(--color-text); font-weight: 500; font-size: 0.95rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }

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

/* Hero - 1989 family clinic photo with Ken Burns motion + gradient */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--color-text-inverse);
  padding: clamp(72px, 9vw, 128px) 0 clamp(64px, 8vw, 112px);
  overflow: hidden;
  background-color: #0B1220;  /* fallback color until background-image loads */
}
.hero::before {
  /* Photo layer with slow Ken Burns zoom */
  content: "";
  position: absolute;
  inset: -4%;
  background-image: url("/assets/photos/02-moore-family-clinic-1989.jpg");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  z-index: -2;
  animation: kenBurnsHero 32s ease-in-out infinite alternate;
  will-change: transform;
}
.hero::after {
  /* Dark gradient + subtle SVG noise for film-grain texture */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0.62) 0%, rgba(11, 18, 32, 0.88) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/></svg>");
  background-size: cover, 180px 180px;
  pointer-events: none;
}

@keyframes kenBurnsHero {
  0%   { transform: scale(1.00) translate(0%, 0%); }
  100% { transform: scale(1.08) translate(-1.2%, -1.0%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
.hero-grid {
  display: grid; gap: clamp(32px, 5vw, 56px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
.hero h1 { color: var(--color-text-inverse); }
.hero .eyebrow { color: var(--color-accent-2); }
.hero .subhead { color: rgba(248, 250, 252, 0.92); font-size: 1.1em; max-width: 56ch; }

.badges {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.badges li {
  font-size: 0.8rem; padding: 6px 10px; border-radius: 999px;
  background: rgba(248, 250, 252, 0.08);
  border: 1px solid rgba(248, 250, 252, 0.14);
  color: rgba(248, 250, 252, 0.86);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary {
  background: var(--color-accent); color: #fff;
}
.btn-primary:hover { background: #71212C; text-decoration: none; }  /* darker oxblood */
.btn-secondary {
  background: transparent; color: var(--color-text-inverse);
  border-color: rgba(248, 250, 252, 0.34);
}
.btn-secondary:hover { background: rgba(248, 250, 252, 0.08); text-decoration: none; }

.hero-ticker {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(248, 250, 252, 0.12);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.tv-widget-mount { width: 100%; min-height: 220px; }
.tv-widget-mount.tv-chart {
  min-height: 480px;
  height: 480px;  /* TradingView autosize requires explicit pixel height on parent */
}
/* Make sure TradingView's intermediate divs fill the chart-mount fully so the
   iframe doesn't collapse to its default ~120px height. */
.tv-widget-mount.tv-chart .tradingview-widget-container,
.tv-widget-mount.tv-chart .tradingview-widget-container__widget,
.tv-widget-mount.tv-chart iframe {
  height: 100% !important;
  width: 100%;
}
.quote-disclosure {
  font-size: 0.78rem; color: rgba(248, 250, 252, 0.6); margin: 10px 4px 0;
}
.section-light .quote-disclosure,
.section-soft  .quote-disclosure { color: var(--color-muted); }

/* ---------- Legacy ---------- */

.legacy-grid {
  display: grid; gap: clamp(24px, 4vw, 48px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .legacy-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
}
.legacy-photo {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.legacy-photo img { width: 100%; height: auto; }
.legacy-photo figcaption {
  padding: 12px 14px;
  font-size: 0.85em; color: var(--color-muted);
  background: var(--color-bg-alt);
}
.legacy-photo-body { margin-top: 28px; max-width: 520px; }
.legacy-prose .lede { font-size: 1.15em; }

/* ---------- Timeline ---------- */

.timeline {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(4, 1fr); }
}
.timeline li {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.timeline-year {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--color-accent); text-transform: uppercase;
}
.timeline-title { font-weight: 700; margin: 6px 0 8px; line-height: 1.25; }
.timeline-summary { font-size: 0.92em; color: var(--color-muted); margin: 0; }

/* ---------- Current chapter ---------- */

.current-prose {
  max-width: 760px; margin: 0 auto;
}
.current-prose p { font-size: 1.08em; }
.current-links {
  list-style: none; padding: 0; margin: 32px auto 0;
  max-width: 760px; display: flex; gap: 12px; flex-wrap: wrap;
}
.current-links a {
  display: inline-block; padding: 10px 14px; border-radius: var(--radius-md);
  background: rgba(31, 143, 255, 0.08); font-weight: 600;
}
.current-links a:hover { background: rgba(31, 143, 255, 0.14); text-decoration: none; }

/* ---------- Brands ---------- */

.brand-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}
.brand-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
}
.brand-card .tagline { font-weight: 600; color: var(--color-text); }
.brand-card .channels { font-size: 0.85em; color: var(--color-muted); }
.brand-card .channels strong { color: var(--color-text); font-weight: 600; }

/* ---------- Market ---------- */

.market-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .market-grid { grid-template-columns: repeat(3, 1fr); }
}
.market-grid > div {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 24px;
}

/* ---------- Leadership ---------- */

.leadership-hero {
  margin: 0 0 clamp(32px, 4vw, 56px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.leadership-hero img { width: 100%; height: auto; display: block; }
.leadership-hero figcaption {
  padding: 12px 16px;
  font-size: 0.85em; color: var(--color-muted);
  background: var(--color-bg-alt);
}
.leader-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
  max-width: 820px; margin: 0 auto;
}
.leader-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.leader-card .leader-name { font-weight: 700; font-size: 1.15rem; }
.leader-card .leader-title { color: var(--color-accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.leader-note {
  text-align: center; max-width: 600px; margin: 28px auto 0;
  font-size: 0.9em; color: var(--color-muted); font-style: italic;
}

/* ---------- IR ---------- */

#ir > .container > * + * { margin-top: clamp(40px, 5vw, 64px); }
.ir-chart {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 16px;
  color: var(--color-text);
}
.ir-glance {
  background: rgba(248, 250, 252, 0.04);
  border: 1px solid rgba(248, 250, 252, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.kv {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  margin: 16px 0 24px;
}
@media (min-width: 700px) { .kv { grid-template-columns: repeat(3, 1fr); } }
.kv > div { display: flex; flex-direction: column; gap: 4px; }
.kv dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(248, 250, 252, 0.6); }
.kv dd { margin: 0; font-weight: 600; font-size: 1.05rem; }

.external-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.external-links a { font-weight: 500; }

.ir-financials .metric-grid {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 16px;
}
@media (min-width: 700px) { .ir-financials .metric-grid { grid-template-columns: repeat(3, 1fr); } }
.metric-card {
  background: rgba(248, 250, 252, 0.04);
  border: 1px solid rgba(248, 250, 252, 0.12);
  border-radius: var(--radius-md);
  padding: 24px;
}
.metric-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(248, 250, 252, 0.6); margin-bottom: 8px; }
.metric-value { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.1; color: var(--color-text-inverse); }
.metric-context { font-size: 0.95em; margin: 12px 0 0; color: rgba(248, 250, 252, 0.8); }
.metric-footnote { font-size: 0.78rem; color: rgba(248, 250, 252, 0.55); margin-top: 12px; }

.press-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.press-list li {
  background: rgba(248, 250, 252, 0.04);
  border: 1px solid rgba(248, 250, 252, 0.12);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.press-date {
  font-size: 0.78rem; font-variant-numeric: tabular-nums;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(248, 250, 252, 0.6);
}
.press-title { font-weight: 600; margin: 4px 0 6px; line-height: 1.3; }
.press-title a { color: var(--color-text-inverse); }
.press-title a:hover { color: #79bcff; }
.press-summary { font-size: 0.92em; margin: 0; color: rgba(248, 250, 252, 0.8); }
.press-tag {
  display: inline-block; margin-top: 10px;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(15, 181, 168, 0.16); color: var(--color-accent-2);
}

.ir-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.ir-photo img { width: 100%; height: auto; }
.ir-photo figcaption {
  padding: 12px 16px; font-size: 0.85em;
  color: rgba(248, 250, 252, 0.7);
  background: rgba(248, 250, 252, 0.04);
}

.contact-email { font-weight: 600; word-break: break-all; }

/* ---------- Forms ---------- */

.contact-form {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
  display: grid; gap: 16px;
}
.section-light .contact-form { border: 1px solid var(--color-border); }
.contact-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.9rem; font-weight: 600; color: var(--color-text);
}
.contact-form input,
.contact-form textarea {
  font: inherit; padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff; color: var(--color-text);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form .grid-2 {
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
@media (min-width: 700px) { .contact-form .grid-2 { grid-template-columns: 1fr 1fr; } }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .btn { justify-self: start; }

/* ---------- Contact section grid ---------- */

.contact-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 32px;
}
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-grid > div {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 24px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-bg);
  color: var(--color-text-inverse);
  padding: clamp(56px, 7vw, 88px) 0 clamp(32px, 4vw, 48px);
  font-size: 0.92rem;
}
.site-footer p { color: rgba(248, 250, 252, 0.78); }
.site-footer .brand-word { font-weight: 700; color: var(--color-text-inverse); font-size: 1.05rem; margin: 0; }
.site-footer .muted { color: rgba(248, 250, 252, 0.55); }

.footer-top {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(248, 250, 252, 0.12);
  margin-bottom: 32px;
}
@media (min-width: 800px) {
  .footer-top { grid-template-columns: 1fr auto; align-items: end; }
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: rgba(248, 250, 252, 0.78); }
.footer-links a:hover { color: var(--color-text-inverse); }

.fls {
  background: rgba(248, 250, 252, 0.04);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.fls h2 {
  font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-text-inverse); margin-bottom: 16px;
}
.fls p { font-size: 0.85em; line-height: 1.65; color: rgba(248, 250, 252, 0.78); margin-bottom: 12px; }


/* ---------- Photo treatments (Issue #2) ---------- */

/* Marvin Posey 1950s - period-correct B&W with subtle film grain */
.legacy-photo-hero { position: relative; }
.legacy-photo-hero img {
  filter: grayscale(0.88) contrast(1.06);
  transition: filter 0.5s ease;
}
.legacy-photo-hero:hover img { filter: grayscale(0.55) contrast(1.04); }
.legacy-photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='ng'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.75 0'/></filter><rect width='100%25' height='100%25' filter='url(%23ng)' opacity='0.06'/></svg>");
  background-size: 200px 200px;
  pointer-events: none;
  mix-blend-mode: multiply;
  border-radius: inherit;
}

/* 1989 family clinic - warm sepia, era-appropriate */
.legacy-photo-body img {
  filter: sepia(0.22) saturate(1.08) brightness(1.02);
  transition: filter 0.5s ease;
}
.legacy-photo-body:hover img { filter: sepia(0.1) saturate(1.04) brightness(1.0); }

/* 2016 family listing - subtle dark-edge vignette for editorial weight */
.leadership-hero { position: relative; isolation: isolate; }
.leadership-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}
.leadership-hero figcaption { position: relative; z-index: 2; }

/* Matthew at Nasdaq 2021 - bottom-up gradient overlay so caption sits on dark band */
.ir-photo { position: relative; isolation: isolate; }
.ir-photo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 18, 32, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.ir-photo figcaption { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .legacy-photo-hero img,
  .legacy-photo-body img { transition: none; }
}


/* ---------- Microinteractions (Issue #3) ---------- */

/* Card hover lifts: subtle translate + shadow upgrade */
.brand-card,
.metric-card,
.leader-card,
.timeline li,
.press-list li,
.market-grid > div {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.brand-card:hover,
.leader-card:hover,
.timeline li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.metric-card:hover,
.press-list li:hover {
  background: rgba(248, 250, 252, 0.07);
  border-color: rgba(248, 250, 252, 0.18);
  transform: translateY(-2px);
}
.market-grid > div:hover {
  background: rgba(139, 38, 53, 0.04);
}

/* Buttons: spring-easing transition on hover/focus */
.btn {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

/* External link underline animation */
.external-links a {
  position: relative;
  transition: color 0.2s ease;
}
.external-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s ease;
}
.external-links a:hover {
  text-decoration: none;
}
.external-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Form input focus: refined accent border + soft outer glow */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.12);
}

/* Nav link hover: subtle accent underline */
.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--color-accent); text-decoration: none; }

/* Honor reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .brand-card,
  .metric-card,
  .leader-card,
  .timeline li,
  .press-list li,
  .market-grid > div,
  .btn,
  .external-links a,
  .external-links a::after,
  .nav-links a { transition: none; }
  .brand-card:hover,
  .leader-card:hover,
  .timeline li:hover,
  .metric-card:hover,
  .press-list li:hover { transform: none; }
}

/* ---------- Skeleton loaders (Issue #3) ---------- */

/* Show a subtle shimmer while TradingView mount is empty (loading or failed-quiet) */
.tv-widget-mount:empty {
  position: relative;
  min-height: 220px;
  background:
    linear-gradient(90deg,
      rgba(248, 250, 252, 0.04) 0%,
      rgba(248, 250, 252, 0.10) 50%,
      rgba(248, 250, 252, 0.04) 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 2.4s ease-in-out infinite;
  border-radius: var(--radius-md);
}
.tv-widget-mount.tv-chart:empty { min-height: 480px; }
.tv-widget-mount:empty::before {
  content: "Loading market data…";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.55);
  letter-spacing: 0.04em;
  font-feature-settings: "tnum";
}

@keyframes skeletonShimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tv-widget-mount:empty { animation: none; }
}


/* ---------- Tier 3 quote card (Issue #4) ---------- */

.quote-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 4px 4px;
}
.quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.quote-symbol {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: rgba(248, 250, 252, 0.92);
}
.quote-price {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-size: clamp(2rem, 4.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  color: var(--color-text-inverse);
  letter-spacing: -0.01em;
}
.quote-change {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}
.quote-meta {
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.6);
  margin: 4px 0 0;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* Status pill: LIVE (pulse green) / MOCK (amber) / OFFLINE (gray) */
.quote-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(248, 250, 252, 0.06);
  border: 1px solid rgba(248, 250, 252, 0.14);
  color: rgba(248, 250, 252, 0.6);
}
.quote-status.is-live {
  background: rgba(15, 181, 168, 0.10);
  border-color: rgba(15, 181, 168, 0.32);
  color: var(--color-accent-2);
}
.quote-status.is-mock {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.32);
  color: #F59E0B;
}
.quote-status.is-error {
  background: rgba(230, 57, 70, 0.10);
  border-color: rgba(230, 57, 70, 0.32);
  color: var(--color-danger);
}

.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 7px;
}
.quote-status.is-live .live-dot {
  animation: livePulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(15, 181, 168, 0.5);
}
.quote-status.is-mock .live-dot,
.quote-status.is-error .live-dot {
  animation: none;
}

@keyframes livePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(15, 181, 168, 0.55);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(15, 181, 168, 0);
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-status.is-live .live-dot { animation: none; }
}


/* ---------- Tier 3 quote card: extended stats + change directionality ---------- */

.quote-change.is-up   { color: var(--color-accent-2); }
.quote-change.is-down { color: var(--color-danger); }
.quote-change.is-flat { color: rgba(248, 250, 252, 0.7); }

.quote-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 14px 0 12px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(248, 250, 252, 0.10);
}
.quote-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quote-stats dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.55);
  margin: 0;
}
.quote-stats dd {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.92);
  margin: 0;
}

.quote-link {
  margin: 8px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.quote-link a {
  color: var(--color-accent-2);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.quote-link a:hover {
  opacity: 0.85;
  border-bottom-style: solid;
}

/* ---------- Reveal animation (single subtle one) ---------- */

[data-reveal] {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ===== About Us prose + Track Record list (added 2026-05-21) ===== */
.about-prose { max-width: 820px; }

.track-record-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px 36px;
  max-width: 960px;
}
@media (min-width: 760px) {
  .track-record-list { grid-template-columns: 1fr 1fr; }
}
.track-record-list li {
  position: relative;
  padding-left: 30px;
  font-size: 1.02em;
  line-height: 1.5;
  color: var(--color-text);
}
.track-record-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--color-accent);
  border-bottom: 2.5px solid var(--color-accent);
  transform: rotate(-45deg);
}

/* ===== Business highlights grid (added 2026-05-21) ===== */
.highlight-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .highlight-grid { grid-template-columns: 1fr 1fr; }
}
.highlight-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  overflow: hidden;
}
.highlight-card .highlight-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: block;
}
.highlight-card h3 { margin: 0 0 8px; }
.highlight-card p { margin: 0; color: var(--color-text); }

/* ===== Top utility bar: phone numbers (added 2026-05-21) ===== */
.topbar {
  background: var(--color-accent);
  color: #fff;
  font-size: 0.9rem;
}
.topbar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 28px;
  padding: 8px 0;
}
.topbar-phone {
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.topbar-phone:hover { text-decoration: underline; }
.topbar-label { opacity: 0.88; font-weight: 500; }
.topbar-num { font-weight: 700; letter-spacing: 0.2px; }
@media (max-width: 640px) {
  .topbar-row { justify-content: center; gap: 4px 16px; font-size: 0.8rem; }
}
.contact-phone { font-weight: 600; }
