/*
 * Hinansho webinar site: motion, graphics and new sections.
 * Loaded after css/styles.css, so it only adds to (and never replaces) the existing look.
 * Everything here respects "reduce motion" in the visitor's device settings.
 */
/* Anything marked hidden stays hidden, even if a class gives it a display value */
[hidden] { display: none !important; }

:root {
  --hx-ink: #0E2832;
  --hx-ink-2: #133845;
  --hx-gold: #E5B547;
  --hx-gold-soft: #F3D68A;
  --hx-cream: #FBF6EA;
  --hx-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Hero background ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; }
.hero__canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__glow {
  position: absolute; z-index: 1; pointer-events: none;
  width: 520px; height: 520px; border-radius: 50%;
  filter: blur(90px); opacity: .35;
}
.hero__glow--a { background: radial-gradient(circle, rgba(229,181,71,.55), transparent 65%); top: -160px; right: -120px; animation: hx-drift 16s ease-in-out infinite alternate; }
.hero__glow--b { background: radial-gradient(circle, rgba(64,160,170,.5), transparent 65%); bottom: -220px; left: -160px; animation: hx-drift 20s ease-in-out infinite alternate-reverse; }
@keyframes hx-drift { to { transform: translate(60px, 40px) scale(1.12); } }

/* ---------- Topbar website button ---------- */
.topbar { flex-wrap: wrap; }
.btn-site {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: .4em;
  padding: .55em 1.1em; border-radius: 999px;
  border: 1px solid rgba(229,181,71,.6);
  color: var(--hx-gold-soft); font-weight: 600; font-size: .9rem; text-decoration: none;
  transition: background .25s, color .25s, transform .25s var(--hx-ease);
}
.btn-site:hover, .btn-site:focus-visible { background: var(--hx-gold); color: var(--hx-ink); transform: translateY(-2px); }

/* ---------- Live pill with equaliser bars ---------- */
.pill--live { display: inline-flex; align-items: center; gap: .5em; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; height: 100%; background: currentColor; border-radius: 2px; transform-origin: bottom; animation: hx-eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
.eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes hx-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* ---------- Headline entrance and shimmer ---------- */
.hero__title .reveal-line { display: block; overflow: hidden; }
.js .hero__title .reveal-line { animation: hx-rise .9s var(--hx-ease) both; }
.js .hero__title .reveal-line:nth-child(2) { animation-delay: .15s; }
@keyframes hx-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.shimmer {
  background: linear-gradient(100deg, var(--hx-gold) 20%, #FFF1C2 40%, var(--hx-gold) 60%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--hx-gold);
  animation: hx-shimmer 5s linear infinite;
}
@keyframes hx-shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* ---------- Theme lockup: title + pillars as one unit ---------- */
.lockup { margin-bottom: 1.1rem; }
.lockup .reveal-line { line-height: 1.02; }
.lockup__pillars {
  display: flex !important; align-items: center; flex-wrap: wrap; gap: .45em;
  margin-top: .5em;
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
  font-size: .3em; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--hx-gold-soft);
}
.lockup__rule { display: inline-block; width: 2.4em; height: 2px; background: var(--hx-gold); border-radius: 2px; transform-origin: left; }
.lockup__dot { display: inline-block; width: .38em; height: .38em; border-radius: 50%; background: var(--hx-gold); }
.lockup .word { display: inline-block; }
.js .lockup__pillars { animation-delay: .3s; }
.js .lockup__rule { animation: hx-grow .8s var(--hx-ease) .45s both; }
@keyframes hx-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.js .hero__body, .js .hero__actions, .js .countdown { animation: hx-rise .8s var(--hx-ease) .75s both; }

/* ---------- Countdown ---------- */
.countdown { margin: 1.4rem 0 1.6rem; }
.countdown__label { margin: 0 0 .55rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hx-gold-soft); font-weight: 600; }
.countdown__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.countdown__cell {
  min-width: 68px; padding: .6rem .5rem .5rem; text-align: center;
  border-radius: 14px; border: 1px solid rgba(229,181,71,.28);
  background: rgba(255,255,255,.05); backdrop-filter: blur(6px);
}
.countdown__num { display: block; font-family: 'Orbitron', system-ui, sans-serif; font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.countdown__num.tick { animation: hx-tick .45s var(--hx-ease); }
.countdown__unit { display: block; margin-top: .2rem; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); }
@keyframes hx-tick { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.countdown--live .countdown__label {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .95rem; color: #fff; padding: .5em 1em; border-radius: 999px; background: #C8372D;
}
.countdown--live .countdown__label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: hx-pulse 1.2s infinite; }
@keyframes hx-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 100% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }

/* ---------- Buttons ---------- */
.btn--shine { position: relative; overflow: hidden; }
.btn--shine::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); animation: hx-shine 3.6s ease-in-out infinite;
}
@keyframes hx-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn { transition: transform .25s var(--hx-ease), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn--gold:hover { box-shadow: 0 10px 28px -10px rgba(229,181,71,.8); }
.btn--lg { padding: 1em 1.6em; font-size: 1.02rem; display: inline-flex; align-items: center; gap: .5em; text-decoration: none; }

/* ---------- Follow on X button + reminder card ---------- */
.btn-follow {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.15em; border-radius: 12px; font-weight: 700; text-decoration: none;
  color: #fff; background: #000; border: 1px solid rgba(255,255,255,.28);
  transition: transform .25s var(--hx-ease), background .25s, border-color .25s;
}
.btn-follow:hover { transform: translateY(-2px); border-color: var(--hx-gold); }
.btn-follow .xlogo { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.btn-follow--block { display: flex; width: 100%; box-sizing: border-box; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.hero__actions .hero__note { flex-basis: 100%; }

.follow-card {
  margin: 1rem 0 1.1rem; padding: 1rem; border-radius: 14px;
  background: #F7F1E3; border: 1px solid rgba(229,181,71,.5);
}
.follow-card__title { margin: 0 0 .25rem; font-weight: 800; color: var(--hx-ink); }
.follow-card__text { margin: 0 0 .8rem; font-size: .92rem; line-height: 1.5; color: #33474F; }
.follow-card__text strong { color: var(--hx-ink); }

/* Small text link under the Google Calendar button */
.cal-alt {
  display: block; width: 100%; margin: .45rem 0 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .8rem; color: #5B6E75; text-decoration: underline; text-underline-offset: 3px;
}
.cal-alt:hover { color: var(--hx-ink); }
#cal-btn { text-align: center; text-decoration: none; }

/* "Register another person" button on the thank-you screen */
.another-btn {
  display: block; width: 100%; margin: 1rem 0 0; padding: .75em 1em; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--hx-ink);
  background: transparent; border: 1.5px dashed rgba(14,40,50,.35);
  transition: border-color .25s, background .25s;
}
.another-btn:hover { border-color: var(--hx-gold); background: rgba(229,181,71,.1); }

/* ---------- Floating RSVP card ---------- */
.js .card--float { animation: hx-rise 1s var(--hx-ease) .3s both; }
.card--float { position: relative; }
.card--float::before {
  content: ''; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: conic-gradient(from var(--hx-angle, 0deg), rgba(229,181,71,.0), rgba(229,181,71,.65), rgba(64,160,170,.4), rgba(229,181,71,.0) 60%);
  animation: hx-spin 8s linear infinite;
}
@property --hx-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes hx-spin { to { --hx-angle: 360deg; } }

/* ---------- Details strip: date, time, venue ---------- */
.details { position: relative; z-index: 2; margin-top: 2.2rem; color: #fff; }
.details__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.detail {
  backdrop-filter: blur(6px);
  display: flex; align-items: center; gap: .9rem;
  padding: 1.1rem 1.2rem; border-radius: 16px;
  background: rgba(19,56,69,.72); border: 1px solid rgba(229,181,71,.22);
  transition: border-color .3s, transform .3s var(--hx-ease);
}
.detail:hover { border-color: rgba(229,181,71,.55); transform: translateY(-3px); }
.detail__icon {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(229,181,71,.12); color: var(--hx-gold);
}
.detail__icon svg, .tile__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.clock-hand { transform-origin: 12px 12px; animation: hx-clock 6s linear infinite; }
@keyframes hx-clock { to { transform: rotate(360deg); } }
.detail__icon--wave { position: relative; }
.detail__icon--wave::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid rgba(229,181,71,.5); animation: hx-ring 2.2s ease-out infinite;
}
@keyframes hx-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.detail__label { margin: 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hx-gold-soft); font-weight: 600; }
.detail__value { margin: .15rem 0 0; font-weight: 600; font-size: 1rem; }

/* ---------- Tiles and speakers ---------- */
.tile, .speaker { position: relative; overflow: hidden; transition: transform .35s var(--hx-ease), box-shadow .35s; }
.tile::before, .speaker::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(229,181,71,.18), transparent 70%);
}
.tile:hover, .speaker:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -22px rgba(14,40,50,.55); }
.tile:hover::before, .speaker:hover::before { opacity: 1; }
.tile__icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: .6rem;
  border-radius: 12px; background: rgba(229,181,71,.14); color: #B8862A;
  transition: transform .4s var(--hx-ease);
}
.tile:hover .tile__icon { transform: rotate(-8deg) scale(1.08); }
.speaker__badge { transition: transform .4s var(--hx-ease); }
.speaker:hover .speaker__badge { transform: scale(1.12) rotate(6deg); }

/* ---------- Mystery speaker portraits ---------- */
.speaker__portrait {
  position: relative; margin: 0 0 1.1rem; aspect-ratio: 1 / 1.05; overflow: hidden;
  border-radius: 14px; background: #071419;
  box-shadow: inset 0 0 0 1px rgba(229,181,71,.18);
}
.speaker__portrait svg { display: block; width: 100%; height: 100%; }
.speaker__portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.speaker__portrait .speaker__badge {
  position: absolute; top: 10px; left: 10px; z-index: 3; margin: 0;
  width: 40px !important; height: 40px !important; font-size: 1rem !important;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.6);
}
.speaker__tag {
  display: inline-block; margin: 0 0 .7rem; padding: .4em .9em; border-radius: 999px;
  font: 700 .62rem/1 'Orbitron', 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase;
  color: var(--hx-ink); background: var(--hx-gold);
}

/* Silhouette panel: black figure on a warm light background, like a "guess who" card */
.speaker__portrait--sil {
  background:
    radial-gradient(120% 90% at 50% 30%, #FFF9EC 0%, #F6ECD6 55%, #E9D4A8 100%);
  box-shadow: inset 0 0 0 1px rgba(229,181,71,.45);
}
.speaker__portrait--sil svg { position: relative; z-index: 1; height: 100%; }
.sil__fig { transform-origin: 100px 220px; transition: transform .5s var(--hx-ease); }
.speaker:hover .sil__fig { transform: scale(1.04); }
.sil__sheen {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  background-size: 250% 100%; background-position: 150% 0;
  animation: hx-sheen 6s ease-in-out infinite;
}
.speaker:nth-child(2) .sil__sheen { animation-delay: -1.2s; }
.speaker:nth-child(3) .sil__sheen { animation-delay: -2.4s; }
.speaker:nth-child(4) .sil__sheen { animation-delay: -3.6s; }
.speaker:nth-child(5) .sil__sheen { animation-delay: -4.8s; }
@keyframes hx-sheen { 0%, 55% { background-position: 150% 0; } 100% { background-position: -60% 0; } }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--hx-ease), transform .8s var(--hx-ease); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.steps__num { transition: transform .4s var(--hx-ease), box-shadow .4s; }
.steps li.is-in .steps__num { animation: hx-pop .6s var(--hx-ease) calc(var(--reveal-delay, 0ms) + .2s) both; }
@keyframes hx-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ---------- Footer: slim strip. Pixel sizes + !important so the main stylesheet can't enlarge it ---------- */
.sitefoot { background: #0B1626 !important; padding: 18px 0 14px !important; margin: 0 !important; }
.sitefoot * { font-size: 13px !important; line-height: 1.4 !important; }
.sitefoot__inner { display: flex; flex-direction: column; gap: 10px; }
.sitefoot__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sitefoot__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: rgba(255,255,255,.75); }
.sitefoot__brand img { width: 32px !important; height: auto !important; margin: 0 !important; }
.sitefoot__right { display: flex; align-items: center; gap: 6px; }
.sitefoot__site {
  margin-right: 6px; padding: 5px 12px; border-radius: 999px; text-decoration: none; font-weight: 600;
  background: var(--hx-gold); color: var(--hx-ink); transition: background .25s;
}
.sitefoot__site:hover { background: #F0C463; }
.sitefoot__soc {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.07); color: #F0A92A; transition: background .25s, transform .3s var(--hx-ease);
}
.sitefoot__soc:hover { background: rgba(240,169,42,.22); transform: translateY(-2px); }
.sitefoot svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sitefoot__contact { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: 6px 22px; }
.sitefoot__contact li { display: inline-flex; align-items: center; gap: 6px; color: #F0A92A; }
.sitefoot__contact a { color: rgba(255,255,255,.7); text-decoration: none; }
.sitefoot__contact a:hover { color: #F3D68A; }
.sitefoot__copy { margin: 0 !important; color: rgba(255,255,255,.4); }
.sitefoot__copy, .sitefoot__copy * { font-size: 12px !important; }

/* ---------- RSVP success confetti ---------- */
.success { position: relative; }
.success__burst { position: absolute; top: 2rem; left: 50%; width: 0; height: 0; pointer-events: none; }
.success__burst i {
  position: absolute; width: 8px; height: 12px; border-radius: 2px; background: var(--hx-gold);
  animation: hx-burst 1.2s var(--hx-ease) forwards;
}
.success__burst i:nth-child(3n) { background: #3FA0AA; }
.success__burst i:nth-child(4n) { background: var(--hx-gold-soft); }
@keyframes hx-burst {
  from { transform: translate(0, 0) rotate(0); opacity: 1; }
  to { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); opacity: 0; }
}

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .details__grid { grid-template-columns: 1fr; }
  .details { margin-top: 1.6rem; }
  .btn-site { margin-left: 0; }
  .countdown__cell { min-width: 60px; }
  .countdown__num { font-size: 1.35rem; }
}

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__glow { animation: none; }
}