/* ==========================================================================
   AIIE 2026 — America Innovation Invention Exhibition
   Hand-written stylesheet. Brand tokens carried over from the previous
   theme (assets/scss/_var.scss) so the visual identity is unchanged.
   ========================================================================== */

:root {
   /* brand */
   --brand:        #6600CC;
   --brand-blue:   #7579FF;
   --brand-pink:   #B224EF;
   --grad:         linear-gradient(97.14deg, #7579FF 7.11%, #B224EF 97.04%);
   --grad-hover:   linear-gradient(97.14deg, #652DA0 97.11%, #B224EF 7.04%);
   --grad-soft:    linear-gradient(135deg, #F3F0FF 0%, #FBF2FF 50%, #F0F4FF 100%);

   /* ink */
   --ink:          #212121;
   --muted:        #797979;
   --line:         #ECE7F5;

   /* surfaces */
   --bg:           #FFFFFF;
   --bg-soft:      #FAF8FF;

   /* geometry */
   --radius:       22px;
   --radius-sm:    14px;
   --radius-pill:  999px;
   --maxw:         1180px;
   --gutter:       clamp(20px, 5vw, 40px);

   /* depth */
   --shadow-sm:    0 2px 10px rgba(33, 33, 33, .05);
   --shadow:       0 12px 34px rgba(102, 0, 204, .09);
   --shadow-lg:    0 28px 70px rgba(102, 0, 204, .16);

   --ease:         cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------- reset / base */

*, *::before, *::after { box-sizing: border-box; }

html {
   scroll-behavior: smooth;
   -webkit-text-size-adjust: 100%;
   /* `clip` rather than `hidden`: it contains the off-axis reveal transforms
      without turning <html> into a scroll container (which would break
      scroll-behaviour and scroll anchoring). */
   overflow-x: clip;
}

body {
   margin: 0;
   font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
   font-size: 17px;
   line-height: 1.7;
   color: var(--ink);
   background: var(--bg);
   -webkit-font-smoothing: antialiased;
   overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }

h1, h2, h3, h4 {
   margin: 0;
   line-height: 1.15;
   letter-spacing: -.02em;
   font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1.1em; }

:focus-visible {
   outline: 3px solid var(--brand-blue);
   outline-offset: 3px;
   border-radius: 6px;
}

/* skip link — keyboard users land here first */
.skip-link {
   position: absolute; left: -9999px; top: 0; z-index: 999;
   background: var(--ink); color: #fff;
   padding: 12px 20px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- utilities */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(64px, 9vw, 116px); }
.section--soft { background: var(--bg-soft); }

.eyebrow {
   display: inline-block;
   font-size: .82rem; font-weight: 600;
   letter-spacing: .12em; text-transform: uppercase;
   color: var(--brand);
   background: #F1EAFE;
   padding: 7px 16px;
   border-radius: var(--radius-pill);
   margin-bottom: 18px;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; margin-top: 18px; }

.lead { font-size: 1.13rem; color: var(--muted); }

.gradient-text {
   background: var(--grad);
   -webkit-background-clip: text; background-clip: text;
   -webkit-text-fill-color: transparent; color: transparent;
}

/* --------------------------------------------------------------- buttons */

.btn {
   display: inline-flex; align-items: center; justify-content: center; gap: 10px;
   padding: 15px 30px;
   font: inherit; font-weight: 600; font-size: 1rem;
   border: none; border-radius: var(--radius-pill);
   cursor: pointer;
   text-align: center;
   transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
   background: var(--grad); color: #fff;
   box-shadow: 0 10px 26px rgba(139, 60, 226, .32);
}
.btn--primary:hover { background: var(--grad-hover); box-shadow: 0 16px 34px rgba(139, 60, 226, .42); }

.btn--ghost {
   background: #fff; color: var(--ink);
   border: 1.5px solid var(--line);
   box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--brand-blue); color: var(--brand); }

.btn--sm { padding: 11px 24px; font-size: .95rem; }

/* ---------------------------------------------------------------- header */

.site-header {
   position: fixed; inset: 0 0 auto 0; z-index: 100;
   transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header.is-stuck {
   background: rgba(255, 255, 255, .82);
   backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
   box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(33, 33, 33, .05);
}

.nav { display: flex; align-items: center; gap: 24px; height: 84px; }
.nav__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav__brand img { width: 56px; height: 56px; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav__brand-text strong { font-size: 1.02rem; letter-spacing: -.02em; }
.nav__brand-text span { font-size: .76rem; color: var(--muted); }

.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__menu a {
   display: block; padding: 10px 15px;
   color: var(--ink); font-weight: 500; font-size: .98rem;
   white-space: nowrap;
   border-radius: var(--radius-pill);
   transition: background .25s var(--ease), color .25s var(--ease);
}
.nav__menu a:hover { background: #F1EAFE; color: var(--brand); }

.nav__toggle {
   display: none;
   width: 46px; height: 46px;
   background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
   cursor: pointer;
   padding: 0;
   align-items: center; justify-content: center;
}
.nav__toggle span {
   display: block; position: relative;
   width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
   transition: background .2s var(--ease);
}
.nav__toggle span::before, .nav__toggle span::after {
   content: ""; position: absolute; left: 0;
   width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
   transition: transform .3s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */

.hero {
   position: relative;
   padding-top: clamp(130px, 17vw, 180px);
   padding-bottom: clamp(70px, 9vw, 110px);
   background: var(--grad-soft);
   overflow: hidden;
}
.hero::before,
.hero::after {
   content: ""; position: absolute; border-radius: 50%;
   filter: blur(90px); opacity: .5; pointer-events: none;
}
.hero::before { width: 480px; height: 480px; background: #C9B6FF; top: -140px; right: -100px; }
.hero::after  { width: 420px; height: 420px; background: #FFC7F1; bottom: -180px; left: -120px; }

.hero__grid {
   position: relative; z-index: 1;
   display: grid; grid-template-columns: 1.05fr .95fr;
   gap: clamp(36px, 5vw, 64px); align-items: center;
}

.hero__badge {
   display: inline-flex; align-items: center; gap: 10px;
   background: rgba(255, 255, 255, .8);
   border: 1px solid rgba(102, 0, 204, .14);
   padding: 8px 18px 8px 10px;
   border-radius: var(--radius-pill);
   font-size: .9rem; font-weight: 500;
   margin-bottom: 24px;
   box-shadow: var(--shadow-sm);
}
.hero__badge b {
   background: var(--grad); color: #fff;
   padding: 3px 12px; border-radius: var(--radius-pill);
   font-size: .78rem; font-weight: 600; letter-spacing: .04em;
}

.hero h1 { margin-bottom: 22px; }
.hero__sub { font-size: 1.15rem; color: #4A4A55; max-width: 54ch; margin-bottom: 30px; }

.hero__meta {
   display: flex; flex-wrap: wrap; gap: 12px 26px;
   margin-bottom: 34px; padding: 0; list-style: none;
}
.hero__meta li { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 1rem; }
.hero__meta svg { flex: none; color: var(--brand); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* photo collage */
.hero__media { position: relative; min-height: 380px; }
.hero__media figure { margin: 0; position: absolute; border-radius: var(--radius); overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
/* The idle float is started by the intro animation in the MOTION section,
   so the two never fight over `transform`. Without JS these sit still. */
.hero__media .shot-a {
   width: 68%; top: 0; left: 0; aspect-ratio: 4 / 3;
   box-shadow: var(--shadow-lg);
}
.hero__media .shot-b {
   width: 62%; bottom: 0; right: 0; aspect-ratio: 4 / 3;
   border: 6px solid #fff;
   box-shadow: var(--shadow-lg);
}
@keyframes float {
   0%, 100% { transform: translateY(0); }
   50%      { transform: translateY(-14px); }
}

/* ------------------------------------------------------------- countdown */

.countdown-band { margin-top: -1px; background: var(--bg); }
.countdown {
   position: relative; z-index: 2;
   margin-top: clamp(-70px, -6vw, -50px);
   background: #fff;
   border: 1px solid var(--line);
   border-radius: var(--radius);
   box-shadow: var(--shadow);
   padding: clamp(26px, 4vw, 40px);
   display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center;
}
.countdown__label { max-width: 210px; }
.countdown__label .eyebrow { margin-bottom: 10px; }
.countdown__label p { margin: 0; color: var(--muted); font-size: .96rem; }

.countdown__clock {
   display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
   margin: 0; padding: 0; list-style: none;
}
.countdown__clock li {
   text-align: center;
   background: var(--bg-soft);
   border-radius: var(--radius-sm);
   padding: 18px 8px;
}
.countdown__clock b {
   display: block;
   font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
   letter-spacing: -.04em; line-height: 1;
   font-variant-numeric: tabular-nums;
   background: var(--grad);
   -webkit-background-clip: text; background-clip: text;
   -webkit-text-fill-color: transparent; color: transparent;
}
.countdown__clock span {
   display: block; margin-top: 6px;
   font-size: .78rem; font-weight: 500; letter-spacing: .1em;
   text-transform: uppercase; color: var(--muted);
}
.countdown__clock li.is-over b { font-size: 1.3rem; }

/* ----------------------------------------------------------------- stats */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
   background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
   padding: 30px 26px; box-shadow: var(--shadow-sm);
   transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.stat:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stat b {
   display: block; font-size: 2.3rem; font-weight: 800;
   letter-spacing: -.04em; line-height: 1; margin-bottom: 8px;
}
.stat span { color: var(--muted); font-size: .98rem; }

/* ----------------------------------------------------------------- prose */

.prose { max-width: 68ch; }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: center; }

.media-frame {
   position: relative; border-radius: var(--radius); overflow: hidden;
   box-shadow: var(--shadow-lg);
}
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 42%; }

/* ----------------------------------------------------------------- cards */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }

.card {
   position: relative;
   background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
   padding: 32px 28px;
   box-shadow: var(--shadow-sm);
   transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__num {
   display: inline-flex; align-items: center; justify-content: center;
   width: 46px; height: 46px; margin-bottom: 20px;
   border-radius: 14px;
   background: var(--grad); color: #fff;
   font-weight: 700; font-size: 1.05rem;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .99rem; margin-bottom: 0; }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.checklist svg { flex: none; margin-top: 4px; color: var(--brand); }
.checklist b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- gallery */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery a {
   position: relative; display: block; overflow: hidden;
   border-radius: var(--radius); box-shadow: var(--shadow-sm);
   aspect-ratio: 3 / 2;
}
.gallery img {
   width: 100%; height: 100%; object-fit: cover;
   transition: transform .6s var(--ease);
}
.gallery a::after {
   content: ""; position: absolute; inset: 0;
   background: linear-gradient(to top, rgba(45, 0, 90, .45), transparent 55%);
   opacity: 0; transition: opacity .4s var(--ease);
}
.gallery a:hover img { transform: scale(1.06); }
.gallery a:hover::after { opacity: 1; }

/* lightbox */
.lightbox {
   position: fixed; inset: 0; z-index: 200;
   display: grid; place-items: center;
   background: rgba(20, 6, 38, .9);
   backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
   padding: 24px;
   /* open/close transition lives in the MOTION section */
}
.lightbox img { max-width: min(1100px, 94vw); max-height: 86vh; border-radius: var(--radius-sm); }
.lightbox__close {
   position: absolute; top: 22px; right: 22px;
   width: 46px; height: 46px;
   border: none; border-radius: 50%;
   background: rgba(255, 255, 255, .16); color: #fff;
   font-size: 1.5rem; line-height: 1; cursor: pointer;
   transition: background .25s var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, .3); }

.lightbox__nav {
   position: absolute; top: 50%; transform: translateY(-50%);
   display: grid; place-items: center;
   width: 52px; height: 52px;
   border: none; border-radius: 50%;
   background: rgba(255, 255, 255, .16); color: #fff;
   cursor: pointer;
}
.lightbox__nav--prev { left: max(18px, 3vw); }
.lightbox__nav--next { right: max(18px, 3vw); }
.lightbox__nav:hover { background: rgba(255, 255, 255, .32); }

.lightbox__count {
   position: absolute; left: 0; right: 0; bottom: 22px;
   margin: 0; text-align: center;
   color: rgba(255, 255, 255, .72);
   font-size: .9rem; font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- partners */

.partners-frame {
   background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
   padding: clamp(24px, 4vw, 46px); box-shadow: var(--shadow-sm);
}

/* ----------------------------------------------------------------- CTA */

.cta {
   position: relative; overflow: hidden;
   border-radius: clamp(24px, 4vw, 34px);
   background: var(--grad);
   color: #fff;
   padding: clamp(46px, 7vw, 78px) clamp(28px, 5vw, 64px);
   text-align: center;
}
.cta::before, .cta::after {
   content: ""; position: absolute; border-radius: 50%;
   background: rgba(255, 255, 255, .12); pointer-events: none;
}
.cta::before { width: 320px; height: 320px; top: -140px; left: -80px; }
.cta::after  { width: 260px; height: 260px; bottom: -130px; right: -60px; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 18px; }
.cta p { max-width: 62ch; margin-inline: auto; opacity: .92; font-size: 1.08rem; }
.cta .btn--ghost { background: #fff; color: var(--brand); border-color: transparent; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.cta__actions .btn--outline {
   background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55);
}
.cta__actions .btn--outline:hover { background: rgba(255, 255, 255, .14); }

/* --------------------------------------------------------------- contact */

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 48px); align-items: start; }

.contact-card {
   background: var(--ink); color: #fff;
   border-radius: var(--radius);
   padding: clamp(30px, 4vw, 44px);
   position: relative; overflow: hidden;
}
.contact-card::after {
   content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
   background: var(--grad); opacity: .35; filter: blur(60px);
   bottom: -110px; right: -80px;
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card h3 { margin-bottom: 12px; }
.contact-card > p { color: rgba(255, 255, 255, .68); }

.contact-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { flex: none; margin-top: 3px; color: #C9A6FF; }
.contact-list span { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.contact-list a, .contact-list strong { color: #fff; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .92rem; font-weight: 500; }
.field input, .field textarea {
   font: inherit; font-size: 1rem;
   padding: 14px 16px;
   border: 1.5px solid var(--line); border-radius: var(--radius-sm);
   background: #fff; color: var(--ink);
   transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
   width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
   outline: none; border-color: var(--brand-blue);
   box-shadow: 0 0 0 4px rgba(117, 121, 255, .14);
}
.form__note { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- footer */

.site-footer {
   position: relative;
   background: #17111F;
   color: rgba(255, 255, 255, .72);
   padding-top: clamp(60px, 8vw, 92px);
   overflow: hidden;
}
.site-footer::before {
   content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad);
}
.site-footer::after {
   content: ""; position: absolute;
   width: 520px; height: 520px; border-radius: 50%;
   background: var(--grad); opacity: .16; filter: blur(120px);
   top: -220px; left: 50%; transform: translateX(-50%);
   pointer-events: none;
}
.site-footer > * { position: relative; z-index: 1; }

.footer__grid {
   display: grid;
   grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
   gap: clamp(30px, 4vw, 56px);
   padding-bottom: clamp(40px, 5vw, 60px);
}

.footer__brand { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.footer__brand img { width: 60px; height: 60px; }
.footer__brand strong { display: block; color: #fff; font-size: 1.06rem; letter-spacing: -.02em; }
.footer__brand span { font-size: .8rem; color: rgba(255, 255, 255, .55); }
.footer__about { font-size: .97rem; max-width: 42ch; margin-bottom: 24px; }

.footer h4 {
   color: #fff; font-size: .84rem; font-weight: 600;
   letter-spacing: .13em; text-transform: uppercase;
   margin-bottom: 20px;
}
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer__links a {
   color: rgba(255, 255, 255, .72); font-size: .98rem;
   transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.footer__links a:hover { color: #fff; padding-left: 5px; }

.footer__detail { display: grid; gap: 16px; margin-bottom: 26px; }
.footer__detail li { display: flex; gap: 12px; align-items: flex-start; }
.footer__detail svg { flex: none; margin-top: 3px; color: #C9A6FF; }
.footer__detail span { display: block; font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.footer__detail a, .footer__detail strong { color: #fff; font-weight: 500; font-size: .99rem; }
.footer__detail a:hover { text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; }

.footer__bar {
   border-top: 1px solid rgba(255, 255, 255, .1);
   padding-block: 26px;
   display: flex; flex-wrap: wrap; gap: 14px 26px;
   align-items: center; justify-content: space-between;
   font-size: .92rem;
}
.footer__bar p { margin: 0; }
.footer__bar-left { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.footer__credit {
   display: inline-flex; align-items: center; gap: 7px;
   font-size: .87rem; color: rgba(255, 255, 255, .5);
}
.footer__credit::before {
   content: ""; width: 5px; height: 5px; border-radius: 50%;
   background: var(--grad); flex: none;
}
.footer__credit a {
   color: rgba(255, 255, 255, .88); font-weight: 600;
   letter-spacing: .06em;
   background-image: var(--grad);
   background-repeat: no-repeat;
   background-position: 0 100%;
   background-size: 0% 1.5px;
   transition: background-size .35s var(--ease), color .35s var(--ease);
}
.footer__credit a:hover { color: #fff; background-size: 100% 1.5px; }
.footer__bar nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__bar a { color: rgba(255, 255, 255, .72); }
.footer__bar a:hover { color: #fff; }

.to-top {
   display: inline-flex; align-items: center; gap: 8px;
   color: rgba(255, 255, 255, .72); font-weight: 500;
}
.to-top:hover { color: #fff; }

/* ==========================================================================
   MOTION
   Every hidden-by-default rule is scoped to .js, so a script failure leaves
   the page fully readable instead of blank. All of it collapses under
   prefers-reduced-motion at the end of this file.
   ========================================================================== */

/* ------------------------------------------------------------- preloader */

.preloader {
   position: fixed; inset: 0; z-index: 300;
   display: grid; place-content: center; justify-items: center; gap: 22px;
   background: var(--grad-soft);
   transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader__mark {
   width: 84px; height: 84px;
   animation: preloader-pulse 1.5s ease-in-out infinite;
}
.preloader__bar {
   width: 180px; height: 4px; border-radius: var(--radius-pill);
   background: rgba(102, 0, 204, .14);
   overflow: hidden;
}
.preloader__bar span {
   display: block; width: 40%; height: 100%; border-radius: inherit;
   background: var(--grad);
   animation: preloader-slide 1.1s var(--ease) infinite;
}
.preloader__text {
   font-size: .78rem; font-weight: 600; letter-spacing: .18em;
   text-transform: uppercase; color: var(--brand);
}
.preloader.is-done { opacity: 0; visibility: hidden; }

@keyframes preloader-pulse {
   0%, 100% { transform: scale(1);    opacity: 1; }
   50%      { transform: scale(.92);  opacity: .75; }
}
@keyframes preloader-slide {
   0%   { transform: translateX(-100%); }
   100% { transform: translateX(350%); }
}

/* no preloader without JS — it would never be dismissed */
html:not(.js) .preloader { display: none; }

/* ------------------------------------------------------- hero intro */

.js .hero__badge,
.js .hero h1,
.js .hero__sub,
.js .hero__meta,
.js .hero__actions,
.js .hero__media figure {
   opacity: 0;
   transform: translateY(24px);
}
.js .is-ready .hero__badge,
.js .is-ready .hero h1,
.js .is-ready .hero__sub,
.js .is-ready .hero__meta,
.js .is-ready .hero__actions,
.js .is-ready .hero__media figure {
   animation: intro-up .9s var(--ease) forwards;
}
.js .is-ready .hero__badge      { animation-delay: .05s; }
.js .is-ready .hero h1          { animation-delay: .15s; }
.js .is-ready .hero__sub        { animation-delay: .27s; }
.js .is-ready .hero__meta       { animation-delay: .37s; }
.js .is-ready .hero__actions    { animation-delay: .47s; }
/* pop in, then hand off to the idle float once the intro has landed */
.js .is-ready .hero__media .shot-a {
   animation: intro-scale .95s var(--ease) .3s forwards,
              float 7s ease-in-out 1.35s infinite;
}
.js .is-ready .hero__media .shot-b {
   animation: intro-scale .95s var(--ease) .45s forwards,
              float 7s ease-in-out 3.1s infinite;
}

@keyframes intro-up {
   from { opacity: 0; transform: translateY(24px); }
   to   { opacity: 1; transform: none; }
}
@keyframes intro-scale {
   from { opacity: 0; transform: translateY(28px) scale(.94); }
   to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- scroll reveal */

.js .reveal {
   opacity: 0;
   transform: translateY(30px);
   transition:
      opacity   .8s var(--ease),
      transform .8s var(--ease),
      filter    .8s var(--ease);
   filter: blur(3px);
   will-change: opacity, transform;
}
.js .reveal--left  { transform: translateX(-38px); }
.js .reveal--right { transform: translateX(38px); }
.js .reveal--scale { transform: scale(.94) translateY(20px); }

/* On narrow screens these sit edge-to-edge, so a sideways entrance would
   both overflow and read as a glitch. Fall back to the vertical rise. */
@media (max-width: 780px) {
   .js .reveal--left,
   .js .reveal--right { transform: translateY(30px); }
}

.js .reveal.is-visible {
   opacity: 1;
   transform: none;
   filter: none;
   will-change: auto;
}

/* children of a group cascade in one after another */
.js .reveal-group > * {
   opacity: 0; transform: translateY(26px);
   transition: opacity .7s var(--ease), transform .7s var(--ease);
   transition-delay: calc(var(--i, 0) * 100ms);
}
.js .reveal-group.is-visible > * { opacity: 1; transform: none; }

/* ------------------------------------------------------ micro-interactions */

/* animated pill behind nav links */
.nav__menu > li > a:not(.btn) { position: relative; }
.nav__menu > li > a:not(.btn)::before {
   content: ""; position: absolute; inset: 0;
   border-radius: var(--radius-pill);
   background: #F1EAFE;
   transform: scale(.7); opacity: 0;
   transition: transform .32s var(--ease), opacity .32s var(--ease);
   z-index: -1;
}
.nav__menu > li > a:not(.btn):hover::before { transform: scale(1); opacity: 1; }

/* sweeping shine across primary buttons */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
   content: ""; position: absolute; top: 0; bottom: 0; left: -140%;
   width: 60%;
   background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent);
   transform: skewX(-18deg);
   transition: left .7s var(--ease);
}
.btn--primary:hover::after { left: 150%; }
.btn:active { transform: translateY(0) scale(.985); }

/* cards pick up a gradient edge on hover */
.card::before {
   content: ""; position: absolute; inset: 0;
   border-radius: inherit; padding: 1.5px;
   background: var(--grad);
   -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
   -webkit-mask-composite: xor; mask-composite: exclude;
   opacity: 0; transition: opacity .35s var(--ease);
   pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card__num { transition: transform .4s var(--ease); }
.card:hover .card__num { transform: rotate(-6deg) scale(1.06); }

/* countdown digits tick over */
.countdown__clock b { transition: transform .32s var(--ease); }
.countdown__clock b.is-ticking { transform: translateY(-4px) scale(1.05); }

/* gallery caption-less zoom already handled; add a lift */
.gallery a { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.gallery a:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

/* stat counters */
.stat b { transition: transform .4s var(--ease); }
.stat:hover b { transform: scale(1.06); }

/* ------------------------------------------------------ component opening */

/* mobile menu slides down, links cascade */
@media (max-width: 1040px) {
   .nav__menu {
      transform: translateY(-14px);
      opacity: 0;
      transition: transform .38s var(--ease), opacity .38s var(--ease);
   }
   .nav__menu.is-open { transform: none; opacity: 1; }
   .nav__menu.is-open > li {
      animation: intro-up .5s var(--ease) forwards;
      opacity: 0;
   }
   .nav__menu.is-open > li:nth-child(1) { animation-delay: .06s; }
   .nav__menu.is-open > li:nth-child(2) { animation-delay: .11s; }
   .nav__menu.is-open > li:nth-child(3) { animation-delay: .16s; }
   .nav__menu.is-open > li:nth-child(4) { animation-delay: .21s; }
   .nav__menu.is-open > li:nth-child(5) { animation-delay: .26s; }
   .nav__menu.is-open > li:nth-child(6) { animation-delay: .31s; }
}

/* Lightbox fades the backdrop and pops the image.
   `visibility` is stepped, not interpolated — it flips to visible instantly on
   open and waits out the fade on close, so the element is never focusable
   while transparent. */
.lightbox {
   opacity: 0; visibility: hidden; pointer-events: none;
   transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.lightbox.is-open {
   opacity: 1; visibility: visible; pointer-events: auto;
   transition: opacity .35s var(--ease), visibility 0s linear 0s;
}
.lightbox img {
   transform: scale(.9); opacity: 0;
   transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.lightbox.is-open img { transform: none; opacity: 1; }
.lightbox__close { transition: background .25s var(--ease), transform .3s var(--ease); }
.lightbox__nav { transition: background .25s var(--ease); }
.lightbox__close:hover { transform: rotate(90deg); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
   .hero__grid { grid-template-columns: 1fr; }
   .hero__media { min-height: 340px; max-width: 520px; }
   .countdown { grid-template-columns: 1fr; gap: 22px; }
   .countdown__label { max-width: none; }
   .stats { grid-template-columns: repeat(2, 1fr); }
   .split { grid-template-columns: 1fr; }
   .contact-grid { grid-template-columns: 1fr; }
   .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Six links plus the brand lockup need ~1040px before they start wrapping,
   so the hamburger has to take over well above the usual tablet breakpoint. */
@media (max-width: 1040px) {
   .nav { height: 74px; }
   .nav__brand-text span { display: none; }
   .nav__toggle { display: inline-flex; }
   .nav__menu {
      position: absolute; inset: 100% 0 auto 0;
      flex-direction: column; align-items: stretch; gap: 2px;
      background: #fff;
      border-top: 1px solid var(--line);
      box-shadow: 0 20px 40px rgba(33, 33, 33, .1);
      padding: 14px var(--gutter) 22px;
      display: none;
   }
   .nav__menu.is-open { display: flex; }
   .nav__menu a { padding: 14px 12px; font-size: 1.05rem; }
   .nav__menu .btn { margin-top: 10px; }
   .site-header:not(.is-stuck):has(.nav__menu.is-open) { background: #fff; }
}

@media (max-width: 700px) {
   body { font-size: 16px; }
   .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
   /* the side controls would sit on top of the photo on a narrow screen */
   .lightbox__nav { width: 44px; height: 44px; top: auto; bottom: 16px; transform: none; }
   .lightbox__nav--prev { left: 22%; }
   .lightbox__nav--next { right: 22%; }
   .lightbox__count { bottom: 72px; }
   .countdown__clock { grid-template-columns: repeat(2, 1fr); }
   .form__row { grid-template-columns: 1fr; }
   .footer__grid { grid-template-columns: 1fr; }
   .footer__bar { flex-direction: column; align-items: flex-start; }
   .hero__media { min-height: 300px; }
}

@media (max-width: 420px) {
   .gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
   html { scroll-behavior: auto; }
   *, *::before, *::after {
      animation-duration: .001ms !important;
      animation-delay: 0ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .001ms !important;
      transition-delay: 0ms !important;
   }
   /* everything that motion hides by default must come back visible */
   .js .reveal,
   .js .reveal-group > *,
   .js .hero__badge,
   .js .hero h1,
   .js .hero__sub,
   .js .hero__meta,
   .js .hero__actions,
   .js .hero__media figure,
   .js .nav__menu.is-open > li {
      opacity: 1 !important;
      transform: none !important;
      filter: none !important;
   }
   .hero__media .shot-a, .hero__media .shot-b { animation: none !important; }
}

@media print {
   .site-header, .lightbox, .cta, .hero::before, .hero::after { display: none !important; }
   body { font-size: 12pt; }
}
