/* =====================================================
   STERLING BANK — 64th AGM
   Futuristic Design System
   ===================================================== */

:root {
  --red: #DF1032;
  --red-soft: rgba(223, 16, 50, 0.15);
  --red-glow: rgba(223, 16, 50, 0.4);
  --red-border: rgba(223, 16, 50, 0.3);
  --bg: #050508;
  --bg-card: rgba(255, 255, 255, 0.025);
  --border: rgba(255, 255, 255, 0.06);
  --white: #fff;
  --text: rgba(255,255,255,0.82);
  --text-dim: rgba(255,255,255,0.45);
  --font: 'Albert Sans',-apple-system,BlinkMacSystemFont,sans-serif;
  --mono: 'Albert Sans',monospace;
  --ease: cubic-bezier(0.22,1,0.36,1);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{cursor:pointer;border:none;background:none;font-family:inherit;color:inherit}
svg{display:block}

/* ── Scroll Reveal System ── */
.reveal{
  opacity:0;
  transform:translateY(32px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
  will-change:opacity, transform;
}
.reveal.fade-down{transform:translateY(-32px)}
.reveal.fade-scale{transform:scale(.92)}
.reveal.fade-in{transform:none}

.reveal.visible{
  opacity:1;
  transform:none;
}

/* Stagger delays */
.reveal.d1{transition-delay:.1s}
.reveal.d2{transition-delay:.2s}
.reveal.d3{transition-delay:.3s}
.reveal.d4{transition-delay:.4s}
.reveal.d5{transition-delay:.5s}

.section-container{max-width:1200px;margin:0 auto;padding:0 32px;text-align:center}
.section-eyebrow{font-size:11px;font-weight:700;letter-spacing:.25em;text-transform:uppercase;color:var(--red);margin-bottom:12px}
.section-heading{font-size:clamp(28px,5vw,48px);font-weight:800;color:var(--white);letter-spacing:-.03em;line-height:1.1;margin-bottom:56px}

/* =====================================================
   HERO
   ===================================================== */
.hero{
  position:relative;
  width:100%;
  height:85vh;
  min-height:510px;
  background:var(--bg);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
}

#gridCanvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:.2}

/* ── Anthem Toggle (icon + tooltip) ── */
.anthem-toggle{
  position:fixed;
  top:32px;
  left:40px;
  z-index:50;
  outline:none;
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid rgba(255,255,255,.15);
  border-radius:50%;
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  cursor:pointer;
  transition:all .35s var(--ease);
  color:rgba(255,255,255,.8);
}
.anthem-toggle:hover{
  border-color:rgba(255,255,255,.35);
  background:rgba(255,255,255,.12);
  color:#fff;
}

.anthem-icon{
  width:18px;
  height:18px;
  pointer-events:none;
  flex-shrink:0;
}

/* Optical centering — triangle's visual center is right of geometric center */
.anthem-play{
  margin-left:2px;
}

/* Show play, hide pause by default */
.anthem-pause{display:none}
.anthem-toggle.playing .anthem-play{display:none}
.anthem-toggle.playing .anthem-pause{display:block}

/* Tooltip via ::after */
.anthem-toggle::after{
  content:attr(data-tooltip);
  position:absolute;
  left:calc(100% + 10px);
  top:50%;
  transform:translateY(-50%) translateX(-6px);
  padding:6px 12px;
  border-radius:8px;
  background:rgba(0,0,0,.85);
  color:#fff;
  font-size:12px;
  font-weight:600;
  font-family:var(--font);
  white-space:nowrap;
  pointer-events:none;
  opacity:0;
  transition:opacity .25s var(--ease), transform .25s var(--ease);
}
.anthem-toggle:hover::after{
  opacity:1;
  transform:translateY(-50%) translateX(0);
}

/* Playing state */
.anthem-toggle.playing{
  border-color:rgba(223,16,50,.5);
  background:rgba(223,16,50,.15);
  color:#fff;
  animation:anthemPulse 2s ease-in-out infinite;
}

@keyframes anthemPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(223,16,50,0)}
  50%{box-shadow:0 0 0 6px rgba(223,16,50,.25)}
}

/* Logo — top right */
.hero-logo{
  position:absolute;
  top:32px;
  right:40px;
  height:50px;
  z-index:10;
}

/* Center content */
.hero-center{
  position:relative;
  z-index:10;
  text-align:center;
  margin-top:clamp(80px, 14vh, 140px);
}

.hero-headline{
  font-size:clamp(36px, 7vw, 72px);
  font-weight:900;
  color:var(--white);
  line-height:1.05;
  letter-spacing:-.04em;
  margin-bottom:16px;
  text-shadow:0 4px 40px rgba(223,16,50,.15);
}

.hero-date{
  font-size:clamp(13px, 1.6vw, 17px);
  font-weight:400;
  color:var(--text-dim);
  letter-spacing:.06em;
  margin-bottom:28px;
}

.hero-cta,
.notice-cta{
  position:relative;
  overflow:hidden;
  will-change:transform;
}

.hero-cta{
  display:inline-block;
  padding:15px 44px;
  font-size:15px;
  font-weight:600;
  color:var(--white);
  background:var(--red);
  border-radius:100px;
  box-shadow:0 4px 24px rgba(223,16,50,.35);
  transition:all .4s var(--ease);
  letter-spacing:.02em;
}
.hero-cta:hover{
  box-shadow:0 8px 36px rgba(223,16,50,.5);
}

/* ── Shared CTA micro-interactions ── */

/* Shimmer sweep */
.hero-cta::before,
.notice-cta::before{
  content:'';
  position:absolute;
  top:0;left:-100%;width:60%;height:100%;
  background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,.3) 50%,transparent 100%);
  transition:none;
  pointer-events:none;
}
.hero-cta:hover::before,
.notice-cta:hover::before{
  animation:shimmerSweep .7s ease forwards;
}

@keyframes shimmerSweep{
  0%{left:-100%}
  100%{left:120%}
}

/* Click pulse ring */
.hero-cta::after,
.notice-cta::after{
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  opacity:0;
}
.hero-cta.clicked::after,
.notice-cta.clicked::after{
  animation:clickRing 1s ease-out;
}

@keyframes clickRing{
  0%{box-shadow:0 0 0 0 rgba(223,16,50,.5);opacity:1}
  100%{box-shadow:0 0 0 32px rgba(223,16,50,0);opacity:0}
}

/* Bounce down on press */
.hero-cta:active,
.notice-cta:active{
  transform:scale(.95)!important;
  transition:transform .1s ease;
}

/* ── Executive Marquee Track ── */
.execs-track-wrap{
  position:absolute;
  bottom:0;left:0;right:0;
  height:74%;
  overflow:hidden;
  pointer-events:auto;
}

/* Edge fade masks */
.execs-track-wrap::before,
.execs-track-wrap::after{
  content:'';
  position:absolute;
  top:0;bottom:0;
  width:clamp(80px,12vw,200px);
  z-index:2;
  pointer-events:none;
}
.execs-track-wrap::before{
  left:0;
  background:linear-gradient(to right, var(--bg) 0%, transparent 100%);
}
.execs-track-wrap::after{
  right:0;
  background:linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.execs-track{
  display:flex;
  align-items:flex-end;
  height:100%;
  width:max-content;
  will-change:transform;
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
}

.execs-track.dragging{
  cursor:grabbing;
}

.exec-slide{
  flex-shrink:0;
  width:25vw;
  height:clamp(360px, 68vh, 640px);
  padding:0 10px;
  position:relative;
  pointer-events:auto;
}

.exec-slide img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:bottom center;
  display:block;
  filter:saturate(.82) brightness(.92);
  transition:filter .4s var(--ease), transform .4s var(--ease);
  pointer-events:none;
}

.exec-slide.hovered img{
  filter:saturate(1) brightness(1);
  transform:scale(1.03);
}

/* ── Tooltip label with arrow ── */
.exec-slide::before{
  content:attr(data-name) '\A' attr(data-role);
  white-space:pre;
  position:absolute;
  top:28%;
  left:50%;
  transform:translateX(-50%) translateY(-16px);
  padding:10px 18px;
  background:rgba(0,0,0,.85);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:1px solid var(--red-border);
  border-radius:12px;
  font-size:13px;
  font-weight:600;
  color:var(--white);
  text-align:center;
  line-height:1.5;
  pointer-events:none;
  opacity:0;
  transition:opacity .35s var(--ease), transform .35s var(--ease);
  z-index:20;
}

/* Second line (role) styling via first-line */
.exec-slide::before{
  font-weight:400;
}

/* Arrow pointing down */
.exec-slide::after{
  content:'';
  position:absolute;
  top:calc(28% + 52px);
  left:50%;
  transform:translateX(-50%) translateY(0);
  width:0;height:0;
  border-left:8px solid transparent;
  border-right:8px solid transparent;
  border-top:8px solid rgba(0,0,0,.85);
  pointer-events:none;
  opacity:0;
  transition:opacity .35s var(--ease);
  z-index:20;
}

/* Show when JS adds .hovered class */
.exec-slide.hovered::before{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
.exec-slide.hovered::after{
  opacity:1;
  animation:arrowBounce 1s ease-in-out .3s infinite;
}

@keyframes arrowBounce{
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(6px)}
}

/* =====================================================
   DIVIDER
   ===================================================== */
.hero-divider{
  width:100%;
  line-height:0;
  font-size:0;
  overflow:hidden;
  background:var(--bg);
}

.hero-divider img{
  width:50%;
  height:auto;
  display:inline-block;
  vertical-align:top;
}


/* =====================================================
   COUNTDOWN (inline in hero)
   ===================================================== */
.hero-countdown{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  margin-top:28px;
}

.cd-block{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:0 14px;
}

.cd-num{
  font-size:28px;
  font-weight:700;
  color:rgba(255,255,255,0.5);
  line-height:1;
  letter-spacing:-.02em;
}

.cd-label{
  font-size:9px;
  font-weight:500;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.25);
  margin-top:5px;
}

.cd-colon{
  font-size:22px;
  font-weight:300;
  color:rgba(255,255,255,0.2);
  margin-top:-10px;
  line-height:1;
}


/* =====================================================
   PROGRAMME / TIMELINE
   ===================================================== */
.programme{
  padding:120px 0;
  background:var(--bg);
  border-top:1px solid var(--border);
}

.timeline{
  max-width:700px;
  margin:0 auto;
  padding:0 32px;
  position:relative;
}

.timeline::before{
  content:'';
  position:absolute;
  left:110px;
  top:0;bottom:0;
  width:1px;
  background:linear-gradient(to bottom,transparent,var(--border) 10%,var(--border) 90%,transparent);
}

.tl-item{
  display:grid;
  grid-template-columns:80px 28px 1fr;
  gap:0 20px;
  align-items:start;
  padding:16px 0;
}

.tl-time{
  text-align:right;
  font-size:12px;
  font-weight:700;
  color:var(--red);
  letter-spacing:.04em;
  padding-top:2px;
  font-family:var(--mono);
}

.tl-dot{
  width:10px;height:10px;
  border-radius:50%;
  background:var(--red);
  border:2px solid var(--bg);
  box-shadow:0 0 0 3px var(--red-border),0 0 12px var(--red-glow);
  margin-top:5px;
  justify-self:center;
  position:relative;z-index:1;
  transition:box-shadow .3s var(--ease);
}

.tl-item:hover .tl-dot{box-shadow:0 0 0 5px var(--red-border),0 0 20px var(--red-glow)}
.dot-end{background:#333;box-shadow:0 0 0 3px var(--border)}

.tl-content h4{font-size:16px;font-weight:700;color:var(--white);letter-spacing:-.01em;margin-bottom:2px}
.tl-content p{font-size:13px;color:var(--text-dim)}


/* =====================================================
   NOTICE SECTION (light theme)
   ===================================================== */
.notice{
  background:#fff url('../images/building2.svg') no-repeat bottom center;
  background-size:100% auto;
  padding:100px 32px 320px;
}

.notice-container{
  max-width:720px;
  margin:0 auto;
  text-align:center;
}

.notice-heading{
  font-size:33px;
  font-weight:800;
  letter-spacing:-.02em;
  color:#111;
  margin-bottom:32px;
}

.notice-body{
  font-size:17px;
  font-weight:400;
  line-height:1.9;
  color:#1a1a1a;
  letter-spacing:.01em;
}

.notice-body strong{
  font-weight:700;
  color:#000;
}

.notice-link{
  color:var(--red);
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:3px;
  transition:color .3s var(--ease);
}
.notice-link:hover{
  color:#b00d28;
}

.notice-cta{
  display:inline-block;
  margin-top:36px;
  padding:16px 44px;
  font-size:15px;
  font-weight:700;
  color:#fff;
  background:var(--red);
  border-radius:100px;
  text-decoration:none;
  letter-spacing:.02em;
  box-shadow:0 4px 20px rgba(223,16,50,.25);
  transition:all .4s var(--ease);
}
.notice-cta:hover{
  box-shadow:0 8px 36px rgba(223,16,50,.4);
}


/* =====================================================
   FOOTER (light theme)
   ===================================================== */
.site-footer{
  padding:48px 32px;text-align:center;
  border-top:1px solid #e0e0e0;background:#fff;
}
.footer-logo{height:36px;margin:0 auto 24px;opacity:.7}

.footer-partners{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(24px,5vw,56px);
  margin-bottom:28px;
  flex-wrap:wrap;
}
.footer-partners img{
  height:28px;
  max-width:100px;
  object-fit:contain;
}

.site-footer p{font-size:13px;color:#555;line-height:1.6}
.footer-sub{font-size:12px!important;opacity:.6}


/* =====================================================
   RESPONSIVE
   ===================================================== */
@media(max-width:768px){
  .anthem-toggle{top:20px;left:20px}

  .hero{height:680px !important;max-height:700px !important;min-height:0 !important}
  .hero-logo{top:20px;right:20px;height:39px}
  .hero-center{margin-top:clamp(100px,18vh,160px);padding-bottom:100px}
  .hero-date{font-size:12px;margin-bottom:20px}
  .hero-cta{padding:12px 32px;font-size:14px}

  .execs-track-wrap{ height:50%; }
  .exec-slide{ width:36vw; height:clamp(200px, 46vh, 360px); padding:0 6px; }

  .countdown{gap:4px}
  .cd-block{min-width:64px;padding:12px 8px 10px}
  .cd-num{font-size:28px}
  .cd-colon{font-size:22px}

  .notice{padding:64px 20px 200px}
  .notice-body{font-size:15px}

  .hero-divider img:last-child{display:none}
  .hero-divider img{width:100%}
}

@media(max-width:480px){
  .hero-center{margin-top:clamp(90px,16vh,140px)}
  .notice{padding:48px 16px 160px}
  .notice-body{font-size:14px;line-height:1.8}
}
