// tamara-hero.jsx — Tamara Lifestyle hero.
//
// Visual register: formal-fashion editorial. The hero is composed
// as a magazine spread: a full-bleed portrait at the top with
// quiet editorial flags overlaid (issue tag, photo credit), then
// the voice line set BELOW the photograph in display italic — the
// way a Vogue/Numéro cover lets the photograph carry the room and
// the type pick it up underneath.
//
// Why type lives below, not on, the photograph: Tamara's portrait
// is dense — figure on the right, Atlanta skyline + glass desk on
// the left. Overlaying the voice line on top of that composition
// would compete with the photograph and force a heavy scrim. The
// editorial move is to let the photograph breathe and let the
// type echo it underneath, with only the small editorial flags
// (date, credit) on the image itself.
//
// Voice-line treatment (decided): "You're not starting over." is
// set in display italic, in the editorial accent color — the
// chamber tone (oxblood / teal / bronze) does the work of voice
// without needing a colored block. The follow-line is set in
// regular weight, ink color — the assertion that follows the
// negation lands on the page as the assertion does in the voice.
//
// CTA pattern (decided — best take): "From woman in motion" as
// small-caps aqua eyebrow, "To one of The Founding 21" as the
// underlined editorial headline with arrow. Same skeleton as
// Brenda's hero CTA — keeps the system reading as one.

// ─────────────────────────────────────────────────────────────
// Editorial flag — the small-caps detail that lives on a real
// magazine cover. Used in the hero overlay (image-mounted flags)
// and in the body sections (label rail). Inherits palette tokens.
// ─────────────────────────────────────────────────────────────
const TFlag = ({ children, color, style }) => (
  <span style={{
    fontFamily: 'var(--font-body)', fontWeight: 600,
    fontSize: 10, letterSpacing: '0.28em', textTransform: 'uppercase',
    color: color || 'var(--t-text-2)',
    lineHeight: 1.2,
    ...(style || {}),
  }}>{children}</span>
);

// ─────────────────────────────────────────────────────────────
// TamaraHero — full-bleed portrait + cover-line type below.
// ─────────────────────────────────────────────────────────────
const TamaraHero = () => (
  <section
    data-screen-label="Tamara · 01 Hero · Voice line"
    style={{
      background: 'var(--t-ground)',
      position: 'relative',
    }}>

    {/* The magazine cover band (issue tag, sparkle, lifestyle stamp)
        and the on-portrait "Tamara · 41 · Atlanta" overlay were
        removed per direction — the photograph now opens the page
        without editorial flags on top. */}

    {/* ─── The portrait — full-bleed, unframed. The new billboard
        photograph carries its own context (the wordmark and the
        lifestyle promise are already in the image), so we let it
        breathe instead of stacking small-caps flags on top. */}
    <div style={{ position: 'relative' }}>
      <img
        src="assets/persona-tamara-billboard-v2.png"
        alt="Tamara on a rain-slick city street at dusk, walking past a Living Digitally™ billboard that carries her own portrait. Sand-tan trench coat over a black mock-neck and black leather trousers; gold chain, gold hoops; natural curls. Wet pavement reflects the city; a green double-decker bus and a green sidewalk standee with the wordmark anchor the frame."
        style={{
          display: 'block', width: '100%', height: 'auto',
          aspectRatio: '2 / 3', objectFit: 'cover',
        }} />

      {/* ─── Name plate overlay — "Tamara." in pearl serif italic,
          set bottom-left over the photograph, mirroring the
          Brenda lifestyle treatment so the five-lifestyle set
          reads as a series. Drop-shadow keeps it legible on the
          variable pavement / signage behind her. The trailing
          period is part of the editorial signature. */}
      <div
        aria-hidden="true"
        style={{
          position: 'absolute',
          left: 22, bottom: 22,
          fontFamily: 'var(--font-display)',
          fontStyle: 'italic',
          fontWeight: 400,
          fontSize: 'clamp(56px, 14vw, 84px)',
          lineHeight: 0.95,
          color: 'var(--t-ground)',
          letterSpacing: '-0.01em',
          textShadow:
            '0 2px 18px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.45)',
          pointerEvents: 'none',
          userSelect: 'none',
        }}>
        Tamara<span style={{ color: 'var(--t-accent)' }}>.</span>
      </div>
    </div>

    {/* ─── 3. The voice-line block. Lives on the ivory ground
        directly beneath the photograph, with the editorial
        small-caps masthead at the top and the negation/assertion
        pair as the main display. */}
    <div style={{ padding: '40px 22px 32px' }}>

      {/* Masthead rule — was a three-part split (aqua tick · "The
          Tech Lifestyle · Vol. I" label · line) but the label was
          removed per direction. What remains is a single solid
          hairline running the full width above the voice line,
          using the same line color the broken half used so the
          page rhythm is preserved. */}
      <div style={{
        display: 'block',
        height: 1,
        width: '100%',
        background: 'var(--t-line)',
        marginBottom: 26,
      }} />

      {/* The voice line — pull-apart typesetting. */}
      <h1 style={{
        fontFamily: 'var(--font-display)',
        margin: 0,
        color: 'var(--t-text)',
        lineHeight: 0.98,
        letterSpacing: '-0.018em',
      }}>
        <span style={{
          display: 'block',
          fontStyle: 'italic',
          fontWeight: 400,
          fontSize: 48,
          color: 'var(--t-accent)',
        }}>
          You're not starting over.
        </span>
        <span style={{
          display: 'block',
          fontStyle: 'normal',
          fontWeight: 300,
          fontSize: 30,
          lineHeight: 1.12,
          marginTop: 14,
          color: 'var(--t-text)',
        }}>
          You're aligning what you've already built with who you are becoming.
        </span>
      </h1>

      {/* Editorial subtitle — single sentence, sets up the
          conversion mechanism without explaining it. Set in
          Garamond italic so it visually echoes the headline
          rather than reading as marketing body. */}
      <p style={{
        fontFamily: 'var(--font-display)',
        fontStyle: 'italic',
        fontSize: 17,
        lineHeight: 1.45,
        color: 'var(--t-text-2)',
        margin: '28px 0 0',
        maxWidth: 380,
      }}>
        Living Digitally™ is the platform where the pivot is recognized
        as reconnection. Renewed purpose gets infused into the
        transferable skills already in your hands, and the way you
        live begins to match the woman writing the next chapter.
      </p>

      {/* CTA block — "From woman in motion" eyebrow → "To one of
          The Founding 21" underlined headline + arrow. Same skeleton
          as Brenda's hero CTA so the system reads as one across
          all five Lifestyles. */}
      <a href="/signature-program" style={{
        display: 'inline-block', marginTop: 36,
        textDecoration: 'none', borderBottom: 'none',
        color: 'inherit',
        maxWidth: 420,
      }}>
        <div style={{
          fontFamily: 'var(--font-body)', fontWeight: 700,
          fontSize: 11, letterSpacing: '0.24em', textTransform: 'uppercase',
          color: 'var(--t-accent)',
          marginBottom: 12,
        }}>
          From Woman Reinventing to....
        </div>
        <div style={{
          display: 'inline-flex', alignItems: 'center', gap: 14,
          fontFamily: 'var(--font-body)', fontWeight: 700,
          fontSize: 14, letterSpacing: '0.18em', textTransform: 'uppercase',
          background: 'var(--t-accent)', color: 'var(--t-ground)',
          padding: '17px 28px', borderRadius: 2,
          boxShadow: '0 0 28px rgba(130,72,7,0.22)',
        }}>
          <span>1 of the Founding 21</span>
          <span style={{ color: 'var(--t-ground)', fontWeight: 600 }}>→</span>
        </div>
      </a>

      {/* Tertiary — italic underline link, with a matching plain-text
          line stacked beneath it. The second line is styled identically
          to the first (same font, italic, size, color) but is NOT
          underlined and NOT hyperlinked — it reads as a quiet subtitle
          clarifying what the platform is. */}
      <div style={{ marginTop: 22 }}>
        <a href="https://livingdigitally.co/platform" style={{
          display: 'inline-block',
          fontFamily: 'var(--font-display)', fontStyle: 'italic',
          fontSize: 14.5, color: 'var(--t-text-2)',
          borderBottom: '1px solid var(--t-line-strong)', paddingBottom: 2,
          textDecoration: 'none',
        }}>
          Explore The Founder's Loft
        </a>
        <div style={{
          marginTop: 6,
          fontFamily: 'var(--font-display)', fontStyle: 'italic',
          fontSize: 14.5, lineHeight: 1.2,
          color: 'var(--t-text-2)',
        }}>
          Private Learning<br />Community
        </div>
      </div>
    </div>
  </section>
);

Object.assign(window, { TamaraHero, TFlag });
