/* =====================================================================
   The Realtor's AIME — Community OS
   Brand: Classic GOLD on BLACK (sub-brand, NOT parent rose gold)
   Fonts: Playfair Display (serif headers) + Montserrat (sans body)
   ===================================================================== */

:root {
  /* Palette MATCHED to her live page (live.realtoraime.com): gold + champagne
     accent on neutral black, Instrument Serif headlines + Figtree body. */
  --black:        #000000;   /* Pure Black — base background */
  --gold:         #DAA643;   /* AIME primary gold */
  --champagne:    #F1E5AC;   /* Champagne accent (serif emphasis) — live-page signature */
  --glow:         #F1E5AC;
  --deep:         #CA9438;   /* Deep Gold */

  /* Supporting tones — neutral near-blacks (#0A0A0A / #161616, like the live page) */
  --near-black:   #0A0A0A;
  --panel:        #0F0F0F;
  --panel-2:      #161616;
  --hairline:     rgba(212, 175, 55, 0.22);
  --hairline-2:   rgba(212, 175, 55, 0.42);
  --text:         #FAFAFA;   /* near-white (live page) */
  --text-muted:   #A1A1A1;   /* muted gray (live page) */
  --text-dim:     #7A7A7A;

  /* Signature metallic gold gradient (champagne -> gold -> champagne) */
  --gold-grad:    linear-gradient(135deg, #F1E5AC 0%, #DAA643 50%, #F1E5AC 100%);
  --gold-grad-soft: linear-gradient(135deg, rgba(218,166,67,0.10), rgba(218,166,67,0.02));
  --glow-shadow:  0 0 40px rgba(218, 166, 67, 0.16);
  --card-shadow:  0 22px 60px rgba(0, 0, 0, 0.66);

  --serif: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  --sans:  'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius:   18px;
  --radius-sm: 12px;
  --maxw:     1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient glow — PURE gold only, low alpha, over pure black (no champagne/amber
   midtones that muddied to brown). Subtle gold light, not a tan wash. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 400px at 85% -10%, rgba(218,166,67,0.06), transparent 62%),
    radial-gradient(720px 520px at 50% 120%, rgba(218,166,67,0.04), transparent 64%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography helpers ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 5, 5, 0.72);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand-lockup { display: flex; align-items: center; gap: 14px; }

.emblem {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #181818, #000000 75%);
  border: 1.5px solid var(--gold);
  box-shadow: var(--glow-shadow);
  flex-shrink: 0;
}
.emblem span {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--gold);
  line-height: 1;
}
.brand-names { display: flex; flex-direction: column; line-height: 1.1; }
.brand-names .b1 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.brand-names .b2 {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.header-nav { display: flex; align-items: center; gap: 30px; }
.header-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--gold); }
.header-cta {
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  font-weight: 600;
}
.header-cta:hover { background: var(--gold-grad); color: var(--black) !important; }

/* =====================================================================
   HERO (home hub)
   ===================================================================== */
.hero {
  position: relative;
  padding: 96px 0 60px;
  text-align: center;
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.7rem);
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.hero h1 .line2 { display: block; }
.hero p.lede {
  max-width: 640px;
  margin: 0 auto 14px;
  color: var(--text-muted);
  font-size: 1.08rem;
}
.hero .sub {
  color: var(--text-dim);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.hairline-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-2), transparent);
  margin: 44px 0;
}

/* =====================================================================
   CHANNEL TILES (the core "each channel = its own page" concept)
   ===================================================================== */
.section-head { text-align: center; margin-bottom: 46px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 14px;
}
.section-head p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-bottom: 30px;
}

.channel-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 232px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(.2,.7,.3,1), border-color 0.3s, box-shadow 0.32s;
}
.channel-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-grad-soft);
  opacity: 0;
  transition: opacity 0.32s;
  pointer-events: none;
}
.channel-tile:hover {
  transform: translateY(-7px);
  border-color: var(--hairline-2);
  box-shadow: var(--card-shadow), var(--glow-shadow);
}
.channel-tile:hover::after { opacity: 1; }

.channel-tile.is-live { border-color: var(--hairline-2); }
.channel-tile.is-live::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-grad);
}

.tile-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--gold-grad-soft);
  border: 1px solid var(--hairline-2);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.tile-icon svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.7; }

.tile-body { position: relative; z-index: 1; }
.channel-tile h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text);
}
.channel-tile p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tile-foot {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tile-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tile-link .arrow { transition: transform 0.25s; }
.channel-tile:hover .tile-link .arrow { transform: translateX(4px); }

.tile-badge {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}
.tile-badge.live   { background: var(--gold-grad); color: var(--black); }
.tile-badge.soon   { background: rgba(168,159,140,0.12); color: var(--text-dim); border: 1px solid var(--hairline); }

/* =====================================================================
   STRIP / value row
   ===================================================================== */
.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 30px 0 80px;
}
.value-cell {
  background: var(--near-black);
  padding: 30px 26px;
  text-align: center;
}
.value-cell .num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.value-cell .lbl {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hairline);
  padding: 50px 0 60px;
  margin-top: 30px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-tag { color: var(--text-muted); font-size: 0.86rem; }
.footer-tag strong { color: var(--gold); font-weight: 600; }
.footer-meta { color: var(--text-dim); font-size: 0.78rem; letter-spacing: 0.04em; }
.footer-meta a { color: var(--gold); }

/* =====================================================================
   AI EMPLOYEES — gallery page
   ===================================================================== */
.page-hero {
  padding: 70px 0 36px;
  text-align: center;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 16px; }
.page-hero p { color: var(--text-muted); max-width: 580px; margin: 0 auto; }

.employee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 26px 0 90px;
}

.emp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--hairline);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), border-color 0.3s, box-shadow 0.3s;
}
.emp-card::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold-grad-soft);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.emp-card:hover {
  transform: translateY(-6px);
  border-color: var(--hairline-2);
  box-shadow: var(--card-shadow), var(--glow-shadow);
}
.emp-card:hover::after { opacity: 1; }

.emp-avatar {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #1a1a1a, #0a0a0a);
  border: 1px solid var(--hairline-2);
  margin-bottom: 18px;
  position: relative; z-index: 1;
  box-shadow: inset 0 0 22px rgba(218,166,67,0.10);
}
.emp-avatar svg { width: 32px; height: 32px; stroke: var(--gold); fill: none; stroke-width: 1.6; }

.emp-card .emp-role {
  position: relative; z-index: 1;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne);
  font-weight: 600;
  margin-bottom: 7px;
}
.emp-card h3 {
  position: relative; z-index: 1;
  font-size: 1.42rem;
  margin-bottom: 9px;
}
.emp-card .emp-does {
  position: relative; z-index: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}
.emp-meet {
  position: relative; z-index: 1;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.emp-meet .btn-ghost {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.emp-meet .arrow { transition: transform 0.25s; }
.emp-card:hover .emp-meet .arrow { transform: translateX(4px); }

/* =====================================================================
   EMPLOYEE DETAIL VIEW (hash-routed, swaps in over gallery)
   ===================================================================== */
.detail-view { display: none; padding: 60px 0 90px; }
.detail-view.active { display: block; animation: fadeUp 0.4s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 34px;
  transition: color 0.2s, gap 0.2s;
}
.back-link:hover { color: var(--gold); gap: 13px; }

.detail-head {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}
.detail-avatar {
  width: 92px; height: 92px;
  border-radius: 22px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #1c1c1c, #0a0a0a);
  border: 1.5px solid var(--gold);
  box-shadow: var(--glow-shadow);
  flex-shrink: 0;
}
.detail-avatar svg { width: 46px; height: 46px; stroke: var(--gold); fill: none; stroke-width: 1.5; }

.detail-titles { flex: 1; min-width: 260px; }
.detail-titles .emp-role {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne);
  font-weight: 600;
  margin-bottom: 8px;
}
.detail-titles h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 12px; }
.detail-titles .tagline { color: var(--text-muted); font-size: 1.04rem; max-width: 620px; }

.detail-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 30px;
  align-items: start;
}

.detail-panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 30px 32px;
}
.detail-panel h4 {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.detail-panel h4::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--gold-grad);
  display: inline-block;
}

.detail-panel ul { list-style: none; }
.detail-panel li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 13px;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}
.detail-panel li::before {
  content: '';
  position: absolute;
  left: 4px; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-grad);
}

/* Prompt box — matches OG: black bg, gold border, floating label, copy button */
.prompt-box {
  position: relative;
  background: var(--black);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-sm);
  padding: 30px 24px 24px;
  margin-top: 6px;
}
.prompt-label {
  position: absolute;
  top: -11px; left: 20px;
  background: var(--gold-grad);
  color: var(--black);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 100px;
}
.copy-button {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  border: 1px solid var(--hairline-2);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-button:hover { background: var(--gold-grad); color: var(--black); border-color: transparent; }
.copy-button.copied { background: var(--gold-grad); color: var(--black); border-color: transparent; }

.prompt-text {
  font-family: 'SFMono-Regular', ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-top: 12px;
}

.detail-side .detail-panel + .detail-panel { margin-top: 22px; }

.fid-note {
  margin-top: 22px;
  background: var(--gold-grad-soft);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.fid-note .t {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.fid-note p { font-size: 0.86rem; color: var(--text-muted); }

.tag-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-size: 0.72rem;
  color: var(--champagne);
  border: 1px solid var(--hairline);
  background: rgba(218,166,67,0.05);
  padding: 6px 13px;
  border-radius: 100px;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 940px) {
  .channel-grid, .employee-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .value-strip { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .header-nav { gap: 16px; }
  .header-nav a:not(.header-cta) { display: none; }
  .channel-grid, .employee-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 40px; }
  .detail-head { gap: 18px; }
  .detail-avatar { width: 72px; height: 72px; }
  .hero-wordmark { width: 200px; }
}

/* =====================================================================
   ADDED: hero wordmark image + PWA install button
   ===================================================================== */
.hero-wordmark {
  width: 300px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 26px;
  filter: drop-shadow(0 8px 40px rgba(218, 166, 67, 0.22));
  animation: floatIn 0.9s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.install-btn {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--black);
  background: var(--gold-grad);
  border: none;
  padding: 9px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.install-btn:hover { transform: translateY(-1px); box-shadow: 0 0 26px rgba(218,166,67,0.40); }

/* =====================================================================
   FLAIR — premium real-website polish (gold on black, clean, no brown)
   ===================================================================== */

/* Metallic shimmer sweep across accent text + wordmark */
.gold-text {
  background-size: 220% auto;
  animation: shimmerText 7s linear infinite;
}
@keyframes shimmerText { to { background-position: 220% center; } }

.hero-wordmark {
  position: relative;
}
.hero-wordmark::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,217,99,0.55) 48%, transparent 66%);
  mix-blend-mode: screen;
  transform: translateX(-120%);
  animation: sheen 6.5s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%, 18% { transform: translateX(-120%); }
  34%, 100% { transform: translateX(120%); }
}

/* Richer hero: layered glow + faint brand grid texture behind the headline */
.hero { isolation: isolate; }
.hero::before {
  content: '';
  position: absolute; left: 0; right: 0; top: -8%;
  height: 600px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 320px at 50% 20%, rgba(218,166,67,0.18), transparent 70%),
    radial-gradient(960px 440px at 50% 2%, rgba(255,217,99,0.07), transparent 72%);
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
  background-image:
    linear-gradient(rgba(218,166,67,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(218,166,67,0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 50% 28%, #000 0%, transparent 60%);
          mask-image: radial-gradient(circle at 50% 28%, #000 0%, transparent 60%);
}

/* More dramatic hero type */
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); letter-spacing: -0.02em; }
.page-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); letter-spacing: -0.02em; }

/* Tiles & cards: gradient top accent on hover + deeper brand glow */
.channel-tile, .emp-card { transition: transform 0.34s cubic-bezier(.2,.7,.3,1), border-color 0.3s, box-shadow 0.34s; }
.channel-tile:hover, .emp-card:hover {
  box-shadow: var(--card-shadow), 0 0 36px rgba(218,166,67,0.20);
}
.channel-tile:not(.is-live)::after,
.emp-card::after { z-index: 0; }
.channel-tile:not(.is-live) { position: relative; }
.channel-tile:not(.is-live)::before,
.emp-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold-grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
  z-index: 2;
}
.channel-tile:not(.is-live):hover::before,
.emp-card:hover::before { transform: scaleX(1); }

/* Glowing brand buttons */
.header-cta { transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.2s; }
.header-cta:hover { box-shadow: 0 0 28px rgba(218,166,67,0.40); transform: translateY(-1px); }
.copy-button:hover { box-shadow: 0 0 22px rgba(218,166,67,0.40); }

/* Divider with a soft brand glow + center node */
.hairline-divider { position: relative; box-shadow: 0 0 16px rgba(218,166,67,0.22); }
.hairline-divider::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--gold-grad); box-shadow: 0 0 14px rgba(218,166,67,0.6);
}

/* Refined sticky-nav glass */
.site-header { box-shadow: 0 1px 0 rgba(218,166,67,0.05), 0 10px 30px -18px rgba(0,0,0,0.9); }

/* Scroll-reveal entrance (added by flair.js; gracefully off without JS) */
.flair-on .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.flair-on .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .gold-text, .hero-wordmark::after { animation: none; }
  .hero-wordmark::after { display: none; }
  .flair-on .reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   IMAGE-DRIVEN — real brand photography (replaces all icons/emoji)
   ===================================================================== */

/* Header brand mark = real gold-on-black AIME wordmark (blends on black) */
.brand-logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

/* Hero: real AIME logo + cinematic brand showcase image */
.hero { padding: 60px 0 54px; }
.hero-logo {
  width: 240px; max-width: 66%;
  height: auto; margin: 0 auto 20px;
  filter: drop-shadow(0 6px 30px rgba(218,166,67,0.22));
  animation: floatIn 0.9s cubic-bezier(.2,.7,.3,1) both;
}
.hero-showcase {
  position: relative;
  max-width: 940px;
  margin: 34px auto 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline-2);
  box-shadow: var(--card-shadow), var(--glow-shadow);
  animation: floatIn 1s cubic-bezier(.2,.7,.3,1) both;
}
.hero-showcase img { width: 100%; display: block; }
.hero-showcase::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.35);
  border-radius: var(--radius);
}
.hero .sub { font-size: 1rem; color: var(--text-muted); }
.hero .sub strong { color: var(--gold); font-weight: 700; letter-spacing: 0.02em; }

/* Image-driven channel tiles: real photo on top, text below */
.channel-tile { padding: 0; overflow: hidden; }
.tile-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0a0a;
}
.tile-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(.2,.7,.3,1);
}
.channel-tile:hover .tile-media img { transform: scale(1.06); }
.tile-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
}
.tile-text {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; flex: 1;
  padding: 20px 24px 24px;
}
.tile-text h3 { font-family: var(--serif); font-weight: 700; font-size: 1.46rem; margin-bottom: 8px; color: var(--text); }
.tile-text p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.tile-text .tile-foot { margin-top: 18px; }

/* AI Employees gallery: real team banner */
.team-banner {
  max-width: 920px;
  margin: 8px auto 6px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline-2);
  box-shadow: var(--card-shadow), var(--glow-shadow);
}
.team-banner img { width: 100%; display: block; }

/* Branded gold monogram (replaces the generic SVG avatars) */
.emp-mono, .detail-mono {
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 800;
  color: #1a1407;
  background: var(--gold-grad);
  box-shadow: 0 6px 22px rgba(218,166,67,0.30), inset 0 1px 0 rgba(255,255,255,0.4);
}
.emp-mono {
  width: 60px; height: 60px; border-radius: 16px;
  font-size: 1.7rem; margin-bottom: 18px;
  position: relative; z-index: 1;
}
.detail-mono {
  width: 92px; height: 92px; border-radius: 22px;
  font-size: 2.6rem; flex-shrink: 0;
  box-shadow: var(--glow-shadow), inset 0 1px 0 rgba(255,255,255,0.45);
}

@media (max-width: 620px) {
  .hero-logo { width: 230px; }
  .tile-media { aspect-ratio: 16 / 9; }
}

/* =====================================================================
   LIVE-PAGE MATCH — premium sales-page aesthetic (live.realtoraime.com):
   full-bleed dark photographic hero, Instrument Serif + champagne accent,
   gold pill label, gold pill button. Gold #DAA643 family on neutral black.
   ===================================================================== */

/* Instrument Serif is single-weight; let serif headings sit at 400 */
h1, h2, h3 { font-weight: 400; letter-spacing: 0; }

/* Full-bleed photographic hero */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 132px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 560px at 50% 36%, rgba(218,166,67,0.10), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,0.74) 0%, rgba(0,0,0,0.50) 44%, rgba(0,0,0,0.92) 100%);
}
.hero::before, .hero::after { display: none; }   /* drop the old grid/glow over the photo */

.hero-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans);
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600;
  color: var(--champagne);
  border: 1px solid var(--hairline-2);
  background: rgba(0,0,0,0.34);
  padding: 8px 18px; border-radius: 100px;
  margin-bottom: 26px;
  backdrop-filter: blur(5px);
}
.hero-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 0 10px rgba(241,229,172,0.8); }

.hero-logo {
  width: 320px; max-width: 82%; margin: 0 auto 18px;
  border-radius: 20px;
  box-shadow:
    0 22px 64px rgba(0,0,0,0.62),
    0 0 0 1px rgba(218,166,67,0.40),
    0 0 56px rgba(218,166,67,0.22);
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 8.2vw, 6.2rem);
  line-height: 1.02; color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
  margin-bottom: 22px;
}
.hero h1 em, .serif-accent { font-style: italic; color: var(--champagne); }
.hero .lede {
  font-family: var(--sans);
  max-width: 600px; margin: 0 auto 34px;
  color: #E9E9E9; font-size: 1.1rem; line-height: 1.6;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
.hero .sub { margin-top: 30px; color: var(--text-muted); font-size: 0.92rem; }
.hero .sub strong { color: var(--champagne); font-weight: 700; }
.hero-showcase { display: none; }   /* hero is now the full-bleed photo itself */

/* Gold pill button (matches the live "Get Instant Access" button) */
.btn-gold {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 700;
  font-size: 0.94rem; letter-spacing: 0.01em;
  color: #1b1408;
  background: var(--gold-grad);
  padding: 15px 32px; border-radius: 10px;
  box-shadow: 0 12px 34px rgba(218,166,67,0.30), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform 0.22s, box-shadow 0.22s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(218,166,67,0.46), inset 0 1px 0 rgba(255,255,255,0.6); }
.btn-gold .arrow { transition: transform 0.22s; }
.btn-gold:hover .arrow { transform: translateX(4px); }

/* Section headings in the live-page voice */
.section-head h2 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.section-head .eyebrow { color: var(--champagne); margin-bottom: 14px; }

/* Refined cards (gold hairline, serif champagne titles) */
.channel-tile { border-radius: 14px; background: var(--panel); border: 1px solid var(--hairline); }
.channel-tile:hover { border-color: var(--hairline-2); }
.tile-text h3 { color: #fff; font-size: 1.7rem; }
.tile-link { color: var(--champagne); }
.tile-badge.live { background: var(--gold-grad); color: #1b1408; }

/* Header: refined, on neutral black */
.brand-names .b1 { font-family: var(--serif); font-size: 1.16rem; }
.brand-names .b2 { color: var(--champagne); }
.header-cta { color: var(--champagne) !important; border-color: var(--hairline-2); }
.header-cta:hover { color: #1b1408 !important; }

@media (max-width: 620px) {
  .hero { min-height: 78vh; padding: 104px 0 72px; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
}

/* =====================================================================
   FLIP CARDS — front = image + title, back = description + CTA.
   3D flip on hover (desktop) and tap (touch, via .flipped class in JS).
   ===================================================================== */
#channels { padding-top: 18px; }

.flip-card {
  perspective: 1500px;
  height: 340px;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}
.flip-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 16px; }

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.flip-card:hover .flip-inner,
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--panel);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  box-shadow: var(--card-shadow);
}
.flip-card:hover .flip-front,
.flip-card:hover .flip-back,
.flip-card.flipped .flip-front,
.flip-card.flipped .flip-back {
  border-color: var(--hairline-2);
  box-shadow: var(--card-shadow), 0 0 36px rgba(218,166,67,0.22);
}

/* FRONT — full-bleed image with title overlaid at the bottom */
.flip-front .tile-media { position: absolute; inset: 0; aspect-ratio: auto; }
.flip-front .tile-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.6s cubic-bezier(.2,.7,.3,1); }
.flip-card:hover .flip-front .tile-media img { transform: scale(1.05); }
.flip-front .tile-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,0.85) 100%);
}
.flip-front-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 20px 22px;
}
.flip-front-label h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: #fff; margin: 0; }
.flip-card.is-live .flip-front::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold-grad); z-index: 2;
}

/* BACK — gold-tinted panel with the description + CTA */
.flip-back {
  transform: rotateY(180deg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 30px 28px;
  background:
    linear-gradient(160deg, rgba(218,166,67,0.10), rgba(218,166,67,0.02)),
    var(--panel);
}
.flip-back::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold-grad);
}
.flip-back h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: #fff; margin-bottom: 12px; }
.flip-back p { font-size: 0.96rem; color: var(--text-muted); line-height: 1.55; }
.flip-cta {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.86rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--champagne);
}
.flip-cta .arrow { transition: transform 0.25s; }
.flip-card:hover .flip-cta .arrow { transform: translateX(4px); }
.flip-cta.muted { color: var(--text-dim); font-weight: 600; }

@media (max-width: 620px) {
  .flip-card { height: 300px; }
  .flip-front-label h3 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
}
