/* Aura Beauty Group — bespoke design system (prestige beauty conglomerate)
   Palette: warm noir ink on ivory, champagne gold accent, soft blush secondary.
   Type: Playfair Display (Didone display) + Inter (UI/body). Self-hosted woff2. */

/* ---- Self-hosted variable fonts ---- */
@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair var";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/playfair.woff2") format("woff2");
}

:root {
  --ink: #12100E;
  --ink-soft: #2A2622;
  --ivory: #F6F1E9;
  --ivory-2: #EFE7DA;
  --paper: #FBF8F2;
  --gold: #C2A15B;
  --gold-deep: #97793B;
  --blush: #D9A7A0;
  --muted: #6B635A;
  --line: rgba(18, 16, 14, 0.13);
  --line-soft: rgba(18, 16, 14, 0.08);
  --shadow: 0 24px 60px -32px rgba(18, 16, 14, 0.45);
  --shadow-sm: 0 12px 30px -20px rgba(18, 16, 14, 0.4);
  --serif: "Playfair var", Georgia, "Times New Roman", serif;
  --sans: "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --marquee-h: 34px;
  --nav-h: 72px;
  --wrap: 1200px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: calc(var(--marquee-h) + var(--nav-h));
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: 0.005em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin: 0 0 1.1rem;
}
.serif-accent { font-style: italic; color: var(--gold-deep); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.95rem 1.6rem; border-radius: var(--radius);
  border: 1px solid var(--ink); cursor: pointer; transition: all 0.2s ease;
  background: var(--ink); color: var(--ivory);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--ivory); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ivory); }

/* ---- Demo marquee ribbon (fixed, integrated, scrolling) ---- */
.marquee {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--marquee-h);
  background: var(--ink); color: var(--ivory);
  display: flex; align-items: center; overflow: hidden;
  border-bottom: 1px solid rgba(194, 161, 91, 0.35);
}
.marquee__track { display: flex; white-space: nowrap; will-change: transform; animation: marquee 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__chunk { display: flex; align-items: center; }
.marquee__chunk span {
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0 1.6rem; color: rgba(246, 241, 233, 0.9);
}
.marquee__chunk span b { color: var(--gold); font-weight: 600; }
.marquee__dot { color: var(--gold); font-size: 0.5rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; transform: none; }
}

/* ---- Navbar ---- */
.nav {
  position: fixed; top: var(--marquee-h); left: 0; right: 0; z-index: 55;
  height: var(--nav-h);
  background: rgba(246, 241, 233, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand__word { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.14em; }
.brand__word small { display: block; font-family: var(--sans); font-size: 0.5rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a { font-size: 0.82rem; letter-spacing: 0.08em; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.nav__links a:hover { color: var(--gold-deep); }
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.login-disabled {
  font-family: var(--sans); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.7rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--muted); background: transparent; cursor: not-allowed; opacity: 0.7;
}
.login-active {
  font-family: var(--sans); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.7rem 1.2rem; border: 1px solid var(--ink); border-radius: var(--radius);
  color: var(--ink); background: transparent; transition: all 0.2s ease;
}
.login-active:hover { background: var(--ink); color: var(--ivory); }
.nav__burger { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ---- Hero ---- */
.hero { position: relative; padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 5vw, 4.5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.7rem); font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.hero__lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 46ch; margin: 1.5rem 0 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 2.4rem; margin-top: 2.8rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.hero__stat .n { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1; }
.hero__stat .l { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: clamp(360px, 46vw, 560px); object-fit: cover; object-position: center; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(194, 161, 91, 0.5); border-radius: var(--radius);
  transform: translate(14px, 14px); z-index: -1;
}
.hero__badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(18, 16, 14, 0.82); color: var(--ivory);
  padding: 0.7rem 1rem; border-radius: var(--radius); backdrop-filter: blur(4px);
  font-size: 0.74rem; letter-spacing: 0.06em;
}
.hero__badge b { color: var(--gold); }

/* subtle dot texture (the one permitted craft carve-out) */
.dot-texture { position: relative; }
.dot-texture::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(18, 16, 14, 0.5) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.05;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

/* ---- Section frame ---- */
section { padding: clamp(3.5rem, 6vw, 6rem) 0; }
.section-head { max-width: 60ch; margin-bottom: 2.8rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-top: 0.9rem; }

/* ---- Aura Studio (signature element) ---- */
.studio { background: var(--ink); color: var(--ivory); }
.studio .eyebrow { color: var(--gold); }
.studio .section-head h2 { color: var(--ivory); }
.studio .section-head p { color: rgba(246, 241, 233, 0.7); }
.studio__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.studio__panel { background: #1B1814; border: 1px solid rgba(194, 161, 91, 0.24); border-radius: 6px; padding: 1.8rem; }
.studio__panel h3 { color: var(--ivory); font-size: 1.35rem; margin-bottom: 0.3rem; }
.studio__panel .hint { color: rgba(246, 241, 233, 0.6); font-size: 0.9rem; margin-bottom: 1.5rem; }
.field { margin-bottom: 1.4rem; }
.field > label { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.7rem; }
.seg { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.seg button {
  flex: 1 1 auto; min-width: 84px; font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
  padding: 0.7rem 0.6rem; border-radius: var(--radius); cursor: pointer;
  background: transparent; color: rgba(246, 241, 233, 0.82);
  border: 1px solid rgba(246, 241, 233, 0.22); transition: all 0.18s;
}
.seg button:hover { border-color: var(--gold); }
.seg button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }
.depth-row { display: flex; align-items: center; gap: 1rem; }
.depth-row input[type="range"] { flex: 1; accent-color: var(--gold); }
.depth-swatch { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(246,241,233,0.35); flex: 0 0 auto; }
.studio__go { width: 100%; margin-top: 0.4rem; }

.studio__results { min-height: 340px; }
.results-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; min-height: 340px; text-align: center; color: rgba(246, 241, 233, 0.5);
  border: 1px dashed rgba(246, 241, 233, 0.2); border-radius: 6px; padding: 2rem;
}
.results-empty .ring { width: 64px; height: 64px; margin-bottom: 1rem; }
.match-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.match-head .found-swatch { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(194,161,91,0.6), 0 0 0 6px rgba(194,161,91,0.15); flex: 0 0 auto; }
.match-head .found-copy strong { display: block; font-family: var(--serif); font-size: 1.25rem; }
.match-head .found-copy span { font-size: 0.86rem; color: rgba(246,241,233,0.65); }
.match-list { display: grid; gap: 0.7rem; }
.match {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  background: #221E19; border: 1px solid rgba(246, 241, 233, 0.1);
  border-radius: 6px; padding: 0.85rem 1rem; animation: rise 0.4s ease both;
}
.match .sw { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
.match .who strong { display: block; font-size: 0.98rem; }
.match .who span { font-size: 0.78rem; color: rgba(246,241,233,0.55); }
.match .meta { text-align: right; font-size: 0.76rem; }
.match .meta .pct { color: var(--gold); font-weight: 600; font-size: 0.95rem; }
.match .meta .stk { color: rgba(246,241,233,0.55); }
.studio__counter { margin-top: 1.2rem; font-size: 0.85rem; color: rgba(246, 241, 233, 0.72); border-top: 1px solid rgba(246,241,233,0.12); padding-top: 1rem; }
.studio__counter b { color: var(--gold); }
.studio__note { margin-top: 1rem; font-size: 0.72rem; color: rgba(246,241,233,0.4); letter-spacing: 0.04em; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Governance trace (demo thesis viz) ---- */
.gov { background: var(--paper); }
.gov__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 3vw, 3.5rem); align-items: center; }
.gov__copy .pill-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.4rem 0; }
.pill { font-size: 0.72rem; letter-spacing: 0.06em; padding: 0.4rem 0.8rem; border-radius: 100px; border: 1px solid var(--line); color: var(--ink-soft); background: var(--ivory); }
.gov__toggle { display: flex; gap: 0.5rem; margin-top: 1rem; }
.gov__toggle button { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; padding: 0.6rem 1rem; border-radius: var(--radius); border: 1px solid var(--ink); background: transparent; cursor: pointer; transition: all 0.18s; }
.gov__toggle button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.trace { background: var(--ink); border-radius: 8px; padding: 1.6rem; box-shadow: var(--shadow); font-family: var(--sans); }
.trace__bar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(246,241,233,0.14); padding-bottom: 0.9rem; margin-bottom: 1.1rem; }
.trace__bar .t { color: var(--ivory); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.trace__bar .g { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.08em; }
.step { display: grid; grid-template-columns: 26px 1fr; gap: 0.9rem; padding: 0.55rem 0; position: relative; }
.step .ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; }
.step .ico.ok { background: rgba(120, 190, 130, 0.18); color: #8FD69B; }
.step .ico.stop { background: rgba(224, 122, 108, 0.18); color: #F0A79B; }
.step .ico.scan { background: rgba(194, 161, 91, 0.2); color: var(--gold); }
.step .sc { color: rgba(246,241,233,0.9); font-size: 0.9rem; }
.step .sc small { display: block; color: rgba(246,241,233,0.5); font-size: 0.78rem; margin-top: 0.15rem; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 32px; bottom: -6px; width: 1px; background: rgba(246,241,233,0.14); }
.verdict { margin-top: 1.1rem; padding: 0.9rem 1rem; border-radius: 6px; font-size: 0.88rem; }
.verdict.allow { background: rgba(120, 190, 130, 0.12); color: #A8E0B2; border: 1px solid rgba(120,190,130,0.3); }
.verdict.block { background: rgba(224, 122, 108, 0.12); color: #F2B3A8; border: 1px solid rgba(224,122,108,0.3); }
.trace__note { margin-top: 0.9rem; font-size: 0.7rem; color: rgba(246,241,233,0.4); }

/* ---- House of brands portfolio ---- */
.cat-tabs { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.cat-tabs button { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.7rem 1.3rem; border-radius: 100px; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: all 0.18s; }
.cat-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.brand-card { border: 1px solid var(--line); border-radius: 6px; padding: 1.6rem 1.4rem; background: var(--paper); transition: transform 0.2s, box-shadow 0.2s; display: none; }
.brand-card.show { display: block; }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.brand-card .bmark { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 0.15rem; }
.brand-card .bcat { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.brand-card .bdesc { font-size: 0.9rem; color: var(--muted); margin: 0.9rem 0 0; }
.brand-card .bmeta { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--line-soft); font-size: 0.76rem; color: var(--muted); display: flex; justify-content: space-between; }

/* ---- Clienteling story band ---- */
.story { position: relative; padding: 0; min-height: clamp(340px, 42vw, 520px); display: grid; }
.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__scrim { position: relative; background: linear-gradient(90deg, rgba(18,16,14,0.82) 0%, rgba(18,16,14,0.5) 45%, rgba(18,16,14,0.05) 100%); display: flex; align-items: center; }
.story__copy { max-width: 40ch; color: var(--ivory); padding: clamp(2rem, 5vw, 4rem) 28px; }
.story__copy .eyebrow { color: var(--gold); }
.story__copy h2 { color: var(--ivory); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.story__copy p { color: rgba(246, 241, 233, 0.85); font-size: 1.02rem; }
@media (max-width: 640px) {
  .story__scrim { background: linear-gradient(180deg, rgba(18,16,14,0.4) 0%, rgba(18,16,14,0.85) 60%); align-items: flex-end; }
}

/* ---- Omnichannel / footprint ---- */
.foot-print { background: var(--ivory-2); }
.channel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 3rem; }
.channel { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem; }
.channel .cico { width: 40px; height: 40px; margin-bottom: 1rem; }
.channel h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.channel p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.region-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.region { background: var(--ink); color: var(--ivory); border-radius: 6px; padding: 1.6rem; }
.region .rn { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); }
.region .rstat { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(246,241,233,0.12); }
.region .rstat:last-child { border-bottom: 0; }
.region .rstat span:last-child { color: rgba(246,241,233,0.7); }

/* ---- Aura Circle loyalty ---- */
.circle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tier { border: 1px solid var(--line); border-radius: 8px; padding: 2rem 1.7rem; background: var(--paper); position: relative; }
.tier.featured { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.tier .tn { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 0.2rem; }
.tier.featured .tn { color: var(--gold); }
.tier .tsub { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.tier.featured .tsub { color: var(--blush); }
.tier ul { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.tier li { font-size: 0.9rem; padding: 0.5rem 0; border-top: 1px solid var(--line-soft); display: flex; gap: 0.6rem; }
.tier.featured li { border-color: rgba(246,241,233,0.14); }
.tier li::before { content: "✦"; color: var(--gold); font-size: 0.8rem; }

/* ---- Footer ---- */
.footer { background: var(--ink); color: rgba(246, 241, 233, 0.75); padding: 4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer h4 { color: var(--ivory); font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem; }
.footer a { display: block; font-size: 0.9rem; padding: 0.28rem 0; color: rgba(246,241,233,0.7); }
.footer a:hover { color: var(--gold); }
.footer__brand .brand__word { color: var(--ivory); }
.footer__brand p { font-size: 0.9rem; max-width: 34ch; margin-top: 1rem; }
.footer__bar { border-top: 1px solid rgba(246,241,233,0.12); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.78rem; color: rgba(246,241,233,0.5); flex-wrap: wrap; gap: 0.6rem; }

/* ---- Chat widget ---- */
#chatLaunch {
  position: fixed; bottom: 24px; right: 24px; z-index: 70;
  background: var(--ink); color: var(--ivory); border: 1px solid var(--gold);
  border-radius: 100px; padding: 0.9rem 1.4rem; font-family: var(--sans);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; cursor: pointer;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 0.5rem;
}
#chatLaunch::before { content: "✦"; color: var(--gold); }
#chatLaunch:hover { background: var(--ink-soft); }
#chatPanel {
  position: fixed; bottom: 24px; right: 24px; z-index: 71;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 48px));
  background: var(--ivory); border-radius: 10px; box-shadow: var(--shadow);
  display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
}
#chatPanel.open { display: flex; }
#chatPanel header { background: var(--ink); color: var(--ivory); padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; }
#chatPanel header span { font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.04em; }
#chatClose { background: none; border: 0; color: var(--ivory); font-size: 1.5rem; cursor: pointer; line-height: 1; }
#chatLog { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: 0.7rem; }
.msg { max-width: 84%; padding: 0.7rem 0.95rem; border-radius: 12px; font-size: 0.9rem; line-height: 1.5; }
.msg.bot { background: var(--ivory-2); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 3px; }
.msg.user { background: var(--ink); color: var(--ivory); align-self: flex-end; border-bottom-right-radius: 3px; }
.msg.system { background: rgba(194,161,91,0.16); color: var(--gold-deep); align-self: center; font-size: 0.82rem; text-align: center; border: 1px solid rgba(194,161,91,0.3); }
.msg.typing { color: var(--muted); font-style: italic; background: transparent; }
#chatForm { display: flex; gap: 0.5rem; padding: 0.9rem; border-top: 1px solid var(--line); background: var(--paper); }
#chatInput { flex: 1; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 100px; font-family: var(--sans); font-size: 0.9rem; background: var(--ivory); }
#chatInput:focus { outline: none; border-color: var(--gold); }
#chatSend { background: var(--gold); color: var(--ink); border: 0; border-radius: 100px; padding: 0 1.2rem; font-family: var(--sans); font-weight: 600; font-size: 0.82rem; cursor: pointer; }
#chatSend:disabled { opacity: 0.5; cursor: default; }

/* ---- Responsive ---- */
@media (max-width: 940px) {
  .hero__grid, .studio__grid, .gov__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .brand-grid, .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .region-row, .circle-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__links.open { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: var(--ivory); padding: 1.2rem 28px; gap: 1rem; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .brand-grid, .channel-grid, .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { flex-wrap: wrap; gap: 1.4rem; }
  .login-disabled { display: none; }
}
