/* style.css — HSE Design Tokens + Global Components */

/* ─── FONTS ─────────────────────────────────────────────── */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=switzer@300,400,500,600&display=swap');

/* ─── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;

  /* HSE Custom Palette — Dark cinematic with gold/champagne accent */
  --color-bg:              #0A0B0F;
  --color-surface:         #0F1117;
  --color-surface-2:       #141620;
  --color-surface-offset:  #1A1D28;
  --color-border:          rgba(255,255,255,0.08);
  --color-divider:         rgba(255,255,255,0.05);

  --color-text:            #E8E6E0;
  --color-text-muted:      #8A8880;
  --color-text-faint:      #4A4844;
  --color-text-inverse:    #0A0B0F;

  /* Gold accent — funding authority + prestige */
  --color-gold:            #C9A84C;
  --color-gold-light:      #E4C97A;
  --color-gold-dim:        #8A6E2A;
  --color-gold-subtle:     rgba(201, 168, 76, 0.12);

  /* Electric blue accent — tech/entertainment energy */
  --color-blue:            #2B7FFF;
  --color-blue-light:      #5BA3FF;
  --color-blue-dim:        #1A4FA8;
  --color-blue-subtle:     rgba(43, 127, 255, 0.1);

  /* Status */
  --color-success:         #4CAF7D;
  --color-error:           #E05A6B;

  /* Fonts */
  --font-display: 'Clash Display', 'Helvetica Neue', sans-serif;
  --font-body:    'Switzer', 'Inter', 'Helvetica Neue', sans-serif;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 40px rgba(201,168,76,0.15);

  /* Layout */
  --content-narrow:  640px;
  --content-default: 1000px;
  --content-wide:    1280px;

  /* Easing */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in:      cubic-bezier(0.4, 0, 1, 1);
}

/* ─── GLOBAL LAYOUT ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}
.container--narrow { max-width: var(--content-default); }

/* ─── NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: var(--space-5);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.nav.scrolled {
  background: rgba(10, 11, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--color-border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-icon { width: 36px; height: 36px; }
.nav__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.1;
}
.nav__logo-text span { display: block; font-size: 0.7em; font-weight: 400; letter-spacing: 0.18em; color: var(--color-gold); }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}
.nav__links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
}
.nav__links a:hover { color: var(--color-text); }
.nav__cta {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-inverse);
  background: var(--color-gold);
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
}
.nav__cta:hover { background: var(--color-gold-light); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}
.nav__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 11, 15, 0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
}
.nav__mobile a:hover { color: var(--color-gold); }
.nav__mobile .nav__cta { font-size: var(--text-base); }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition:
    background 180ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--color-gold);
  color: var(--color-text-inverse);
}
.btn--gold:hover { background: var(--color-gold-light); box-shadow: 0 4px 20px rgba(201,168,76,0.3); }

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn--outline:hover { border-color: var(--color-gold); color: var(--color-gold); }

.btn--ghost {
  background: transparent;
  color: var(--color-gold);
  padding-inline: 0;
  letter-spacing: 0.1em;
}
.btn--ghost:hover { color: var(--color-gold-light); }
.btn--ghost .arrow { transition: transform 180ms var(--ease-out); }
.btn--ghost:hover .arrow { transform: translateX(4px); }

/* ─── SECTION LABELS ─────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--color-gold);
}

/* ─── DIVIDERS ───────────────────────────────────────────── */
.divider {
  border: none;
  height: 1px;
  background: var(--color-border);
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal { opacity: 1; }

@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  .reveal-delay-1 { animation-delay: 60ms; }
  .reveal-delay-2 { animation-delay: 120ms; }
  .reveal-delay-3 { animation-delay: 180ms; }
}

@keyframes reveal-fade { to { opacity: 1; } }

/* ─── PAGE TRANSITIONS ───────────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade-out-page 0.2s var(--ease-in); }
::view-transition-new(root) { animation: fade-in-page 0.35s var(--ease-out); }
@keyframes fade-out-page { to { opacity: 0; } }
@keyframes fade-in-page { from { opacity: 0; } }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-16) var(--space-10);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  margin-bottom: var(--space-5);
}
.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 280px;
}
.footer__col-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer__links a:hover { color: var(--color-text); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer__legal {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}
.footer__legal a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer__legal a:hover { color: var(--color-text-muted); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
