/* ================================================================
   JULIEN.CSS  — Julien AI Tutor page styles
   Relies on fa.css custom properties being loaded first.
   ================================================================ */

/* ===== HERO ===== */
.jul-hero {
  position: relative;
  min-height: 86vh;
  padding: 7rem 0 4rem;
  /* On-brand navy gradient — Julien appears to step out of THIS */
  background:
    radial-gradient(60% 70% at 78% 55%, rgba(200,169,107,.16) 0%, rgba(0,0,31,0) 65%),
    linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.jul-hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

/* Soft radial gold glow behind the cutout for depth */
.jul-hero-glow {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  height: 92%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 52% 60% at 55% 45%,
    rgba(200,169,107,.22) 0%,
    rgba(200,169,107,.08) 38%,
    rgba(0,0,31,0) 72%);
  filter: blur(4px);
}

/* Dark navy gradient on left fading right so the cutout reads cleanly */
.jul-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(0,0,31,.96) 0%,
    rgba(0,0,31,.85) 40%,
    rgba(0,0,31,.40) 60%,
    rgba(0,0,31,0) 88%
  );
  z-index: 2;
  pointer-events: none;
}

.jul-hero-content {
  position: relative;
  z-index: 3;
  padding: 0;
  max-width: 100%;
}

/* ===== TRANSPARENT CHARACTER CUTOUT — hero ===== */
/* No frame, no box, no white bg — he emerges directly from the section. */
.jul-char-card {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  max-width: 480px;
  margin-left: auto;
}

.jul-hero-cutout {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 72vh !important;
  object-fit: contain;
  display: block;
  /* soft contact shadow at the base + subtle ambient drop for "stepping out" */
  filter:
    drop-shadow(0 28px 36px rgba(0,0,16,.55))
    drop-shadow(0 4px 10px rgba(0,0,16,.4));
  animation: jul-float 7s ease-in-out infinite;
}

@keyframes jul-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .jul-hero-cutout { animation: none; }
}

/* ===== HERO TEXT ===== */
.jul-hero-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.7vw, 1.4rem);
  color: var(--gold-soft);
  margin-bottom: 1rem;
}

.jul-hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  line-height: 1.08;
  color: var(--on-dark);
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}

.jul-hero-sub {
  font-size: clamp(.95rem, 1.35vw, 1.15rem);
  color: var(--on-dark-soft);
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: 2.4rem;
  font-weight: 300;
}

.jul-live-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(200,165,96,.1);
  border: 1px solid var(--gold-line);
  padding: .55rem 1.2rem;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border-radius: 2px;
}
.jul-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-soft);
  animation: pulse-gold 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-gold {
  0%   { box-shadow: 0 0 0 0   rgba(200,165,96,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(200,165,96,0); }
  100% { box-shadow: 0 0 0 0   rgba(200,165,96,0); }
}

/* ================================================================
   TRANSPARENT CUTOUT — reusable (intro / feature / homepage)
   No frame, no card, no white bg. He emerges from the section.
   ================================================================ */
.jul-cutout-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
}

/* Soft radial gold glow behind him for depth */
.jul-cutout-wrap::before {
  content: '';
  position: absolute;
  inset: -6% -4% 4% -4%;
  z-index: -1;
  background: radial-gradient(ellipse 56% 64% at 50% 42%,
    rgba(200,169,107,.20) 0%,
    rgba(200,169,107,.07) 40%,
    transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}

/* Soft contact shadow ellipse at his base — "stepping out" effect */
.jul-cutout-wrap::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  width: 62%;
  height: 5%;
  z-index: -1;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    rgba(0,0,16,.55) 0%, rgba(0,0,16,0) 70%);
  filter: blur(3px);
  pointer-events: none;
}

.jul-cutout {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 22px 30px rgba(0,0,16,.5))
    drop-shadow(0 3px 8px rgba(0,0,16,.35));
}

.jul-cutout-wrap--intro .jul-cutout { max-width: 480px; }
.jul-cutout-wrap--feature .jul-cutout { max-width: 380px; }

/* On light sections (e.g. pink/ivory) glow is pink + shadow softer */
.jul-cutout-wrap--light::before {
  background: radial-gradient(ellipse 58% 66% at 50% 44%,
    rgba(228,152,166,.28) 0%,
    rgba(243,211,217,.18) 42%,
    transparent 74%);
}
.jul-cutout-wrap--light::after {
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    rgba(75,52,40,.28) 0%, rgba(75,52,40,0) 70%);
}
.jul-cutout-wrap--light .jul-cutout {
  filter:
    drop-shadow(0 20px 28px rgba(80,40,55,.28))
    drop-shadow(0 3px 8px rgba(80,40,55,.2));
}

/* Floating badge tag */
.jul-cutout-badge {
  position: absolute;
  top: 6%;
  left: 4%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(0,0,31,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--gold-line);
  padding: .5rem 1rem;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border-radius: 999px;
}
.jul-cutout-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-soft);
  animation: pulse-gold 2s infinite;
}

/* ===== FEATURE SECTION with video left ===== */
.jul-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.jul-feature.reverse {
  direction: rtl;
}
.jul-feature.reverse > * {
  direction: ltr;
}

.jul-feature-text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.jul-feature-text h2 {
  margin: 0;
}
.jul-feature-text p {
  color: var(--on-dark-soft);
  line-height: 1.75;
  font-size: 1rem;
}

/* ===== FEATURE GRID (4-up) ===== */
.jul-feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem;
}

.jul-feat-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem 1.6rem;
  align-items: start;
}
.jul-feat-item .jul-vid-card-sm {
  width: 140px;
  aspect-ratio: 2/3;
}
.jul-feat-body h3 {
  font-size: 1.15rem;
  margin: 0 0 .6rem;
  color: var(--on-dark);
}
.jul-feat-body p {
  font-size: .9rem;
  color: var(--on-dark-soft);
  line-height: 1.7;
  margin: 0;
}

/* ===== PORTRAIT STRIP → now video strip ===== */
.jul-vid-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.jul-vid-strip-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--gold-line);
  aspect-ratio: 3/4;
  background: var(--navy);
}
.jul-vid-strip-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.jul-vid-strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,31,.85));
  display: flex;
  align-items: flex-end;
  padding: 1.4rem;
}
.jul-vid-strip-label {
  font-family: var(--serif);
  font-size: .95rem;
  font-style: italic;
  color: var(--gold-soft);
}

/* ===== CAPABILITY GRID ===== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.cap-card {
  background: var(--white);
  border: 1px solid var(--gold-line-soft);
  padding: 2.4rem 2rem;
  position: relative;
  overflow: hidden;
}
.cap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--gold-deep);
}
.cap-card .cc-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold-line);
  line-height: 1;
  margin-bottom: .8rem;
}
.cap-card h3 { font-size: 1.2rem; margin: .2rem 0 .8rem; }
.cap-card p  { font-size: .93rem; color: var(--on-light-soft); line-height: 1.7; }

/* ===== CONVERSATION DEMO ===== */
.convo-demo {
  background: var(--navy);
  border: 1px solid var(--gold-line-soft);
  border-radius: 4px;
  padding: 2.4rem;
  max-width: 52ch;
}
.msg { margin-bottom: 1.4rem; display: flex; flex-direction: column; gap: .3rem; }
.msg.user { align-items: flex-end; }
.msg-label { font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-faint); }
.msg-bubble {
  padding: .9rem 1.2rem;
  border-radius: 3px;
  font-size: .95rem;
  line-height: 1.6;
  max-width: 92%;
}
.msg.user    .msg-bubble { background: rgba(200,165,96,.12); border: 1px solid var(--gold-line-soft); color: var(--on-dark); }
.msg.juliane .msg-bubble { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: var(--on-dark-soft); }
.msg.juliane .msg-label  { color: var(--gold-soft); }

/* ===== MOSAIC (intro section) ===== */
.portrait-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.2rem;
}
.pm-main {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: radial-gradient(ellipse 100% 100% at 50% 40%,
    rgba(255,255,255,.1) 0%,
    var(--navy-deep) 70%
  );
  box-shadow: 0 0 0 1px rgba(200,169,107,.2), 0 20px 50px rgba(0,0,20,.5);
}
.pm-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.pm-sm {
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--gold-line);
  background: var(--navy);
}
.pm-sm video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ================================================================
   HOMEPAGE JULIEN FOLD (index.html)
   ================================================================ */
.jul-home {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(110% 90% at 22% 55%, rgba(28,34,56,.7) 0%, rgba(0,0,31,0) 60%),
    linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-soft) 100%);
}
.jul-home-glow {
  position: absolute;
  left: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: 56%;
  height: 110%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 52% 56% at 50% 48%,
    rgba(200,169,107,.18) 0%,
    rgba(200,169,107,.06) 40%,
    transparent 72%);
  filter: blur(6px);
}
.jul-home-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.jul-home-split .jul-cutout-wrap { align-self: stretch; }
.jul-home-split .jul-cutout { max-width: 420px; }

.jul-home-points {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.jul-home-points li {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--on-dark-soft);
  font-size: 1rem;
  line-height: 1.5;
}
.jul-home-points li svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold-soft);
}

/* ================================================================
   AT-A-GLANCE BAND (juliane.html, light bg) — no video
   ================================================================ */
.jul-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.jul-glance-item {
  background: var(--white, #fff);
  border: 1px solid var(--gold-line-soft);
  border-top: 3px solid var(--gold);
  padding: 2.2rem 1.8rem;
}
.jul-glance-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-deep);
  display: block;
  margin-bottom: .6rem;
}
.jul-glance-item h3 {
  font-size: 1.15rem;
  margin: 0 0 .6rem;
  color: var(--navy);
}
.jul-glance-item p {
  font-size: .93rem;
  color: var(--on-light-soft);
  line-height: 1.7;
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .jul-home-split { grid-template-columns: 1fr; gap: 2.4rem; }
  .jul-home-split .jul-cutout { max-width: 360px; margin: 0 auto; }
  .jul-glance { grid-template-columns: 1fr; }
  .jul-char-card { max-width: 380px; margin: 0 auto; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .jul-feature { grid-template-columns: 1fr; gap: 2.8rem; }
  .jul-feature.reverse { direction: ltr; }
  .jul-feat-grid { grid-template-columns: 1fr; }
  .portrait-mosaic { grid-template-columns: 1fr 1fr; }
  .pm-main { grid-column: 1 / 2; grid-row: auto; }
  .jul-vid-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  /* Hero stacks: text on top, full visible transparent cutout below */
  .jul-hero { min-height: auto; display: block; }
  .jul-hero-content { padding: 8rem 0 1rem; max-width: 100%; }
  .jul-char-card {
    position: relative;
    width: 100%;
    height: auto;
    opacity: 1;
    padding: 0 0 2.5rem;
  }
  .jul-hero-cutout {
    height: auto;
    width: auto;
    max-width: 78%;
    max-height: 62vh;
    margin: 0 auto;
  }
  .jul-hero-glow { width: 90%; right: 5%; }
  .jul-hero-veil  { display: none; }
  .jul-hero h1    { font-size: 3.2rem; }
  .cap-grid       { grid-template-columns: 1fr; }
  .jul-feat-grid  { grid-template-columns: 1fr; }
  .jul-feat-item  { grid-template-columns: 1fr; }
  .jul-cutout-wrap--intro .jul-cutout,
  .jul-cutout-wrap--feature .jul-cutout { max-width: 300px; }
}

@media (max-width: 480px) {
  .portrait-mosaic { grid-template-columns: 1fr; }
  .pm-main { grid-column: auto; grid-row: auto; }
  .jul-vid-strip { grid-template-columns: 1fr; }
}

/* Julien is a TRANSPARENT PNG cutout — no box, no background, no border-radius.
   He emerges directly from the section (see .jul-char-card / .jul-cutout above). */
