/* ============================================================
   My Reverso Story — the home page, in the Fagliano palette
   (approved by the owner, 14 November 2026)

   Loaded only by src/pages/index.astro, after reverso-styles.css.
   Every rule is scoped to body.pg-home, so no other page changes.

   The two themes are the two faces of the Reverso Tribute Duoface
   Fagliano (Ref. Q398256J):
     dark  = the dial side: burgundy-red lacquer, brushed like a
             sunray, with silvered markings;
     light = the reverse: silvered grey Clous de Paris around an
             opaline centre, with burgundy.
   Dark keeps gold for the lines, frames and logo, with silver words.
   Light: no cream, no brown.

   Signature line: the gadroons, the three ribs at the top and
   bottom of every Reverso case (pure CSS lines, nothing drawn).

     1. Tokens (dark, then light)
     2. Gadroons, labels, buttons
     3. Menu bar, turning-case switch, menu icon
     4. Opening (hero)
     5. History: numerals and chapter cases I–V
     6. Story cards
     7. The form
     8. Footer
     9. Small screens, reduced motion
   ============================================================ */

/* Tokens and the shared parts (labels, buttons, menu bar, form, footer)
   now live in reverso-styles.css, section "Fagliano design". */


/* ---------- 4. Opening ---------- */
/* Dark: the lacquer glows behind the watch and is brushed like a sunray
   dial. Light: an opaline centre ringed by Clous de Paris. */
.pg-home .hero{ --sx:73%; --sy:52%; --glow:640px; background:var(--void); }
.pg-home .hero::before{
  content:''; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(circle var(--glow) at var(--sx) var(--sy), var(--lac) 0, color-mix(in srgb, var(--lac) 80%, transparent) 20%, color-mix(in srgb, var(--lac-lo) 62%, transparent) 46%, transparent 72%);
}
.pg-home .hero::after{
  background-image:repeating-conic-gradient(from 0deg at var(--sx) var(--sy), var(--ray) 0 .55deg, transparent .55deg 2.6deg);
  background-size:auto; opacity:1;
  -webkit-mask-image:radial-gradient(circle var(--glow) at var(--sx) var(--sy), #000 0, #000 30%, transparent 78%);
  mask-image:radial-gradient(circle var(--glow) at var(--sx) var(--sy), #000 0, #000 30%, transparent 78%);
}
:root[data-theme="light"] .pg-home .hero{
  background:radial-gradient(circle var(--glow) at var(--sx) var(--sy), #f7f7f8 0, #edeef0 40%, var(--void) 100%);
}
:root[data-theme="light"] .pg-home .hero::before{
  /* hobnail pyramids: each 12px tile lit on four facets */
  background:conic-gradient(from -45deg, rgba(255,255,255,.55) 0 25%, rgba(255,255,255,.2) 0 50%, rgba(40,44,52,.05) 0 75%, rgba(40,44,52,.02) 0) 0 0 / 12px 12px;
  -webkit-mask-image:radial-gradient(circle var(--glow) at var(--sx) var(--sy), transparent 0, transparent 40%, rgba(0,0,0,.8) 70%);
  mask-image:radial-gradient(circle var(--glow) at var(--sx) var(--sy), transparent 0, transparent 40%, rgba(0,0,0,.8) 70%);
}
:root[data-theme="light"] .pg-home .hero::after{ display:none; }

.pg-home .hero-copy .eyebrow{ margin-bottom:24px; }
.pg-home .cradle-ghost svg{ color:var(--watch); }
/* the back of the hero watch is the real Fagliano reverse in both themes:
   white Clous de Paris all over, with an opaline centre (index.astro) */
.pg-home .case-window{ filter:drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
:root[data-theme="light"] .pg-home .case-window{ filter:drop-shadow(0 16px 26px rgba(42,18,23,.22)); }
.pg-home .flip-hint{
  text-align:center;
  font-family:'Cormorant Garamond', serif; font-style:italic; font-size:17.5px;
  letter-spacing:0; text-transform:none; color:var(--ink-dim);
}
.pg-home .flip-hint b{ font-family:'Cinzel', serif; font-style:normal; font-weight:500; font-size:14.5px; letter-spacing:.03em; color:var(--brass-bright); }

/* ---------- 5. History ---------- */
.pg-home .genesis, .pg-home .submit{ border-top:0; border-bottom:0; }
.pg-home .genesis::before, .pg-home .genesis::after, .pg-home .submit::before{
  content:''; position:absolute; left:0; right:0; height:9px; pointer-events:none;
  background:var(--gad); opacity:.55;
  -webkit-mask:linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask:linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.pg-home .genesis::before, .pg-home .submit::before{ top:0; }
.pg-home .genesis::after{ bottom:0; }

/* the figures become Deco numerals, drawn in outline */
.pg-home .stat-grid{ background:none; border:0; gap:22px 24px; }
.pg-home .stat, .pg-home .stat:hover{ background:none; padding:0; }
.pg-home .stat b{
  font-family:'Poiret One', cursive; font-weight:400; font-size:clamp(50px, 5.2vw, 68px); line-height:.95;
  color:transparent; -webkit-text-stroke:1.1px var(--brass-bright);
}
@supports not (-webkit-text-stroke:1px black){ .pg-home .stat b{ color:var(--brass-bright); } }
.pg-home .stat span{
  display:block; margin-top:6px; font-family:'Cormorant Garamond', serif; font-style:italic;
  font-size:17px; line-height:1.3; letter-spacing:0; text-transform:none; color:var(--ink-dim);
}

/* the timeline runs on a line of gadroons; each chapter is a small
   Reverso case with its numeral, and today's is lacquered */
.pg-home .timeline{ padding-left:74px; }
.pg-home .timeline::before{
  left:22px; width:9px; top:40px; bottom:40px; opacity:.5;
  background:repeating-linear-gradient(to right, var(--brass) 0 1px, transparent 1px 4px);
}
.pg-home .tl-marker{
  left:-68px; top:24px; width:40px; height:56px; border-radius:0;
  border:1px solid var(--brass); background:var(--panel);
  font-family:'Cinzel', serif; font-size:16px; line-height:1; color:var(--brass-bright);
}
.pg-home .tl-marker::before, .pg-home .tl-marker::after{
  content:''; position:absolute; left:6px; right:6px; height:7px;
  background:repeating-linear-gradient(to bottom, var(--brass) 0 1px, transparent 1px 3px);
}
.pg-home .tl-marker::before{ top:4px; }
.pg-home .tl-marker::after{ bottom:4px; }
.pg-home .tl-item.visible .tl-marker{ box-shadow:0 0 0 5px color-mix(in srgb, var(--brass) 10%, transparent); }
.pg-home .tl-marker.is-now{ color:var(--on-lac); border-color:var(--brass-bright); background:var(--lacquer); }
.pg-home .tl-marker.is-now::before, .pg-home .tl-marker.is-now::after{
  background:repeating-linear-gradient(to bottom, rgba(246,238,236,.7) 0 1px, transparent 1px 3px);
}
.pg-home .tl-year{ letter-spacing:.05em; text-transform:none; font-size:16px; }
.pg-home .tl-more{
  border-top:0;
  background:
    linear-gradient(90deg, var(--panel), transparent 14%, transparent 86%, var(--panel)) top / 100% 9px no-repeat,
    var(--gad) top / 100% 9px no-repeat;
}
.pg-home .tl-more .deco-divider{ display:none; }

/* ---------- 6. Story cards ----------
   Each card shows the owner's front photo and turns over to the back photo:
   on hover with a mouse, on a tap or with Enter / Space on the photo. */
.pg-home .gallery-grid{ align-items:stretch; }
/* the card itself (hc-) now lives in reverso-styles.css: the Stories page uses it too */
.pg-home .gallery-foot{
  font-family:'Cormorant Garamond', serif; font-style:italic; font-size:18px; letter-spacing:0; text-transform:none;
}
.pg-home .gallery-empty{ font-family:'Cormorant Garamond', serif; letter-spacing:0; font-size:18px; }


/* ---------- 8b. Dark only: gold lines and logo, silver text ----------
   (owner's choice, 14 November 2026: the groove lines, frames and logo in
   gold, the words inside them in silver; the headline's highlight in gold) */
:root:not([data-theme="light"]) .pg-home .hero-copy h1 em{ background-image:linear-gradient(90deg, #e9d2a6, #c9a96e, #e9d2a6); }
:root:not([data-theme="light"]) .pg-home .tl-year{ color:#c3c8cf; }
:root:not([data-theme="light"]) .pg-home .tl-marker.is-now{ border-color:var(--gold-hi); }
:root:not([data-theme="light"]) .pg-home .tl-marker.is-now::before, :root:not([data-theme="light"]) .pg-home .tl-marker.is-now::after{ background:repeating-linear-gradient(to bottom, var(--gold-hi) 0 1px, transparent 1px 3px); }

/* ---------- 9. Small screens, reduced motion ---------- */
@media (max-width:920px){
  .pg-home .hero{ --sx:50%; --sy:28%; --glow:430px; }
  .pg-home .hero-copy .eyebrow{ justify-content:center; }
  .pg-home .hero-copy .eyebrow::after{ content:''; display:inline-block; flex:none; width:40px; height:9px; background:var(--gad); }
}
@media (max-width:600px){
  .pg-home .timeline{ padding-left:60px; }
  .pg-home .timeline::before{ left:16px; }
  .pg-home .tl-marker{ left:-57px; width:34px; height:48px; font-size:14px; }
  .pg-home .tl-marker::before, .pg-home .tl-marker::after{ left:5px; right:5px; height:6px; }
  .pg-home .stat-grid{ gap:20px 16px; }
  .pg-home .hero-copy .eyebrow{ font-size:17.5px; gap:8px; }
  .pg-home .hero-copy .eyebrow::before, .pg-home .hero-copy .eyebrow::after{ width:18px !important; }
}
@media (prefers-reduced-motion: reduce){
  .pg-home .tt-in{ transition:none; }
}
