/* ============================================================
   home.css — Homepage-specific components for russ-shilling.com
   Loads AFTER style.css. Scoped with .home- prefix and a
   body.home-page guard so nothing here can collide with the
   shared site chrome defined in style.css.
   ============================================================ */

/* --- Homepage background enhancement (scoped) --------------- */
body.home-page {
  background:
    radial-gradient(circle at 12% 5%, rgba(211,131,54,.16), transparent 22rem),
    radial-gradient(circle at 86% 10%, rgba(87,137,176,.16), transparent 28rem),
    linear-gradient(180deg, #05080d 0%, #060a11 45%, #09121d 100%);
}
body.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.85), transparent 78%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,.85), transparent 78%);
}

/* --- Shared tokens for home components ---------------------- */
.home-page {
  --home-ink: #f9f4e8;
  --home-muted: #aab6c4;
  --home-line: rgba(190,213,235,.16);
  --home-card: rgba(12,19,29,.78);
  --home-card-strong: rgba(17,29,43,.88);
  --home-accent: #d38336;
  --home-accent-2: #6fa3cc;
  --home-radius: 28px;
  --home-shadow: 0 28px 80px rgba(0,0,0,.42);
  --home-serif: "Crimson Pro", Georgia, serif;
}

/* --- Buttons ------------------------------------------------ */
.home-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; min-width: 44px; padding: .85rem 1.25rem;
  border-radius: 999px; font-weight: 850; text-decoration: none;
  text-align: center; border: 1px solid var(--home-line);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.home-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,0,0,.24); text-decoration: none; }
.home-btn-primary { background: linear-gradient(135deg, #f7f4ea, #d8e3eb); color: #08111c; }
.home-btn-primary:hover { color: #08111c; }
.home-btn-secondary { background: rgba(255,255,255,.08); color: #fff; }
.home-btn-secondary:hover { color: #fff; }

/* --- Hero --------------------------------------------------- */
.home-hero {
  display: grid; align-items: center; position: relative; overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
}
.home-hero::after {
  content: ""; position: absolute; inset: 10% -12% auto auto;
  width: 44vw; height: 44vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(111,163,204,.20), transparent 65%);
  pointer-events: none; filter: blur(2px);
}
.home-hero-grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  gap: clamp(2rem, 6vw, 5rem);
}
.home-eyebrow {
  display: inline-flex; gap: .6rem; align-items: center;
  font-size: .78rem; font-weight: 900; letter-spacing: .18em;
  text-transform: uppercase; color: var(--home-accent-2);
}
.home-eyebrow::before { content: ""; width: 2.75rem; height: 1px; background: var(--home-accent); }
.home-title {
  font-family: var(--home-serif); font-weight: 700;
  font-size: clamp(3rem, 7vw, 6.4rem); line-height: .9;
  letter-spacing: -.06em; margin: 1.1rem 0 1.35rem;
  color: var(--home-ink); text-wrap: balance;
}
.home-title .thin { font-weight: 380; font-style: italic; color: var(--home-accent-2); }
.home-kicker { font-size: clamp(1.12rem, 2vw, 1.45rem); line-height: 1.45; color: #d7e2ec; max-width: 760px; }
.home-lead { font-size: 1.02rem; line-height: 1.76; color: var(--home-muted); max-width: 720px; margin-top: 1.4rem; }
.home-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.1rem; }

/* --- Hero credential / photo stack -------------------------- */
.home-credential-card {
  border: 1px solid var(--home-line); border-radius: var(--home-radius);
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  box-shadow: var(--home-shadow); padding: 1.25rem;
  transform: rotate(.6deg); backdrop-filter: blur(18px);
}
.home-photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.home-photo-stack figure { margin: 0; position: relative; overflow: hidden; border-radius: 22px; min-height: 170px; background: #0d1722; }
.home-photo-stack img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.96) contrast(1.05); }
.home-photo-stack figcaption {
  position: absolute; left: .75rem; right: .75rem; bottom: .75rem;
  padding: .5rem .65rem; border-radius: 999px; background: rgba(5,8,13,.72);
  color: #fff; font-size: .74rem; font-weight: 900; backdrop-filter: blur(12px);
}

/* --- Proof bar ---------------------------------------------- */
.home-proofbar {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  border-radius: 24px; overflow: hidden; border: 1px solid var(--home-line);
  background: var(--home-line); box-shadow: 0 22px 64px rgba(0,0,0,.32);
  margin-top: -2rem; position: relative; z-index: 2;
}
.home-proof { background: rgba(12,19,29,.86); padding: 1.25rem 1rem; min-height: 126px; }
.home-proof strong {
  display: block; font-family: var(--home-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: .9;
  color: var(--home-accent-2); letter-spacing: -.04em;
}
.home-proof span { display: block; margin-top: .55rem; color: var(--home-muted); font-size: .86rem; line-height: 1.35; font-weight: 750; }

/* --- Generic home section ----------------------------------- */
.home-section { padding: clamp(3.5rem, 7vw, 7rem) 0; }
.home-section-head { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.home-section-title { font-family: var(--home-serif); font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .95; letter-spacing: -.05em; margin: 0; color: var(--home-ink); text-wrap: balance; }
.home-section-copy { color: var(--home-muted); font-size: 1.05rem; line-height: 1.75; margin: 0; }

/* --- Panel grid --------------------------------------------- */
.home-panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.home-panel { background: var(--home-card); border: 1px solid var(--home-line); border-radius: 24px; padding: 1.5rem; box-shadow: 0 18px 54px rgba(0,0,0,.25); backdrop-filter: blur(14px); }
.home-panel h3 { margin: .2rem 0 .6rem; font-size: 1.18rem; color: #fff; }
.home-panel p { color: var(--home-muted); line-height: 1.65; font-size: .98rem; }
.home-panel a { color: var(--home-accent-2); }
.home-panel a:hover { color: var(--home-accent); }

/* --- Pull quote --------------------------------------------- */
.home-pullquote { margin: clamp(3.5rem, 7vw, 6rem) auto; width: min(980px, calc(100% - 40px)); text-align: center; }
.home-pullquote p { font-family: var(--home-serif); font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: .96; letter-spacing: -.055em; margin: 0; color: var(--home-ink); text-wrap: balance; }
.home-pullquote span { display: block; margin-top: 1rem; color: var(--home-accent-2); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }

/* --- Feature (image + card) --------------------------------- */
.home-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-top: 2rem; }
.home-feature img { width: 100%; border-radius: 28px; box-shadow: var(--home-shadow); aspect-ratio: 4/3; object-fit: cover; }
.home-feature-card { background: var(--home-card-strong); border: 1px solid var(--home-line); border-radius: 28px; padding: clamp(1.5rem, 3vw, 2.5rem); backdrop-filter: blur(16px); }
.home-feature-card h3 { font-family: var(--home-serif); font-size: clamp(1.9rem, 3.5vw, 3.1rem); line-height: 1.02; letter-spacing: -.04em; margin: 0 0 1rem; color: var(--home-ink); }
.home-feature-card p { color: var(--home-muted); line-height: 1.75; }
.home-feature-card .home-actions { margin-top: 1.6rem; }

/* --- Media row (captioned visual proof) --------------------- */
.home-media-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.home-media-row figure { margin: 0; border-radius: 22px; overflow: hidden; position: relative; aspect-ratio: 1.12/1; background: #0d1722; }
.home-media-row img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-media-row figcaption { position: absolute; left: .7rem; bottom: .7rem; right: .7rem; background: rgba(5,8,13,.72); color: #fff; border-radius: 999px; padding: .5rem .7rem; font-weight: 900; font-size: .78rem; }

/* --- Final CTA ---------------------------------------------- */
.home-final-cta {
  margin: clamp(3rem, 6vw, 6rem) 0; border-radius: 32px;
  padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(135deg, rgba(28,48,68,.96), rgba(9,18,29,.96));
  color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 2rem;
  align-items: center; overflow: hidden; position: relative;
  border: 1px solid var(--home-line); box-shadow: var(--home-shadow);
}
.home-final-cta h2 { font-family: var(--home-serif); font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: .95; margin: 0 0 .85rem; letter-spacing: -.05em; color: var(--home-ink); }
.home-final-cta p { color: rgba(247,244,234,.78); max-width: 660px; line-height: 1.7; margin: 0; }
.home-final-cta .home-btn { background: #f7f4ea; color: #08111c; }

/* --- Hover motion ------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .home-panel, .home-feature-card, .home-proof { transition: transform .25s ease, box-shadow .25s ease; }
  .home-panel:hover { transform: translateY(-4px); box-shadow: var(--home-shadow); }
}

/* --- Responsive --------------------------------------------- */
@media (max-width: 1100px) {
  .home-hero-grid { gap: 2.5rem; }
}
@media (max-width: 900px) {
  .home-hero-grid, .home-section-head, .home-feature, .home-final-cta { grid-template-columns: 1fr; }
  .home-proofbar { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .home-panel-grid, .home-media-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body.home-page::before { opacity: .6; }
  .home-hero { min-height: auto; padding: 2.5rem 0 2rem; }
  .home-hero::after { display: none; }
  .home-title { font-size: clamp(3rem, 15vw, 4.8rem); line-height: .9; letter-spacing: -.055em; }
  .home-kicker { font-size: 1.06rem; line-height: 1.48; }
  .home-lead, .home-section-copy, .home-panel p, .home-feature-card p { font-size: .98rem; line-height: 1.68; }
  .home-actions { display: grid; grid-template-columns: 1fr; gap: .7rem; width: 100%; }
  .home-btn { width: 100%; padding: .92rem 1rem; }
  .home-credential-card { transform: none; padding: .85rem; border-radius: 22px; }
  .home-photo-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .home-photo-stack figure { min-height: 118px; border-radius: 16px; }
  .home-photo-stack figcaption, .home-media-row figcaption { font-size: .68rem; left: .45rem; right: .45rem; bottom: .45rem; padding: .42rem .5rem; }
  .home-proofbar { grid-template-columns: 1fr; border-radius: 20px; }
  .home-proof { min-height: auto; padding: 1rem; }
  .home-proof strong { font-size: 2.55rem; }
  .home-section { padding: 3.4rem 0; }
  .home-section-title { font-size: clamp(2.35rem, 11vw, 3.8rem); }
  .home-panel, .home-feature-card { border-radius: 20px; padding: 1.15rem; }
  .home-pullquote { margin: 3.4rem auto; width: min(100% - 28px, 980px); }
  .home-pullquote p { font-size: clamp(2.1rem, 11vw, 3.8rem); }
  .home-feature img { border-radius: 20px; aspect-ratio: 16/11; }
  .home-final-cta { padding: 1.4rem; border-radius: 24px; text-align: left; }
  .home-final-cta h2 { font-size: clamp(2.2rem, 11vw, 3.8rem); }
  .home-media-row figure { aspect-ratio: 16/10; }
}
@media (max-width: 420px) {
  .home-title { font-size: clamp(2.65rem, 14.5vw, 3.5rem); }
  .home-photo-stack { grid-template-columns: 1fr; }
  .home-photo-stack figure { min-height: 178px; }
  .home-proof strong { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.home-page::before { display: none; }
}
