/* =========================================================
   AILERON TYPOGRAPHY SYSTEM — CLEAN CORE
   ========================================================= */


/* -------------------------
   FONT LOADING
------------------------- */

@font-face {
  font-family: "Aileron";
  src: url("/assets/fonts/Aileron-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aileron";
  src: url("/assets/fonts/Aileron-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aileron";
  src: url("/assets/fonts/Aileron-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Aileron";
  src: url("/assets/fonts/Aileron-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aileron";
  src: url("/assets/fonts/Aileron-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aileron";
  src: url("/assets/fonts/Aileron-Heavy.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


/* -------------------------
   BASE TYPOGRAPHY RESET
------------------------- */

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Aileron", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
}


/* -------------------------
   CORE TYPE SYSTEM
------------------------- */

html,
body,
p,
h1, h2, h3, h4, h5, h6,
li,
blockquote,
a {
  font-family: "Aileron", system-ui, -apple-system, "Segoe UI", sans-serif;
}

main {
  padding: 3rem 2rem;
}


/* -------------------------
   SPACING SCALE
------------------------- */

:root {
  --space-xs: 0.5rem;
  --space-sm: 0.9rem;
  --space-md: 1.1rem;
  --space-lg: 1.8rem;
  --space-xl: 2.6rem;
}


/* =========================================================
   HEADING SYSTEM
   ========================================================= */

h1 {
  font-weight: 900;
  font-size: 2.6rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 2.2rem 0;
}

h2 {
  font-weight: 900;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.18;
  margin: 0 0 1.5rem 0;
}

h3 {
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 1.2;
  margin: 0 0 var(--space-md) 0;
}

h4 {
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin: 0 0 var(--space-sm) 0;
}

h5 {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 0 var(--space-xs) 0;
}

h6 {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin: 0 0 var(--space-xs) 0;
}


/* -------------------------
   BODY TEXT
------------------------- */

p {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 400;
  margin: 0 0 var(--space-md) 0;

  letter-spacing: 0.012em;
  word-spacing: 0.025em;

  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: "liga" 1, "kern" 1;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* -------------------------
   EMPHASIS
------------------------- */

strong { font-weight: 700; }
em { font-style: italic; }

strong em,
em strong {
  font-weight: 700;
  font-style: italic;
}


/* -------------------------
   PARAGRAPH VARIANTS
------------------------- */

.body {
  font-size: 17px;
  line-height: 1.62;
}

.body-small {
  font-size: 15px;
  line-height: 1.5;
}

.body-large {
  font-size: 17.5px;
  line-height: 1.75;
  font-weight: 500;
}


/* -------------------------
   LISTS
------------------------- */

ul, ol {
  margin: 0 0 var(--space-md) 0;
  padding-left: 1.2em;
}

li {
  margin-bottom: 0.35rem;
}


/* -------------------------
   BLOCKQUOTE
------------------------- */

blockquote {
  margin: var(--space-lg) 0;
  padding-left: 1.2rem;
}


/* =========================================================
   LINK SYSTEM (GLOBAL CONTENT LINKS ONLY)
   ========================================================= */

a {
  color: #111;
  text-decoration: none;

  position: relative;
  display: inline;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 100%;
  height: 1px;

  background: currentColor;

  transform: scaleX(1);
  transform-origin: right;

  transition: transform 0.45s cubic-bezier(.19,1,.22,1);
}

a:hover::after,
a:focus::after {
  transform: scaleX(0);
  transform-origin: left;
}


/* -------------------------
   NAVIGATION SYSTEM (ISOLATED)
------------------------- */

.site-nav {
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: baseline;
}

.site-nav a {
  position: relative;
  display: inline-block;

  color: #111;
  font-weight: 600;
  text-decoration: none;

  letter-spacing: 0.01em;

  background: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 1px;

  background: currentColor;

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.35s cubic-bezier(.19,1,.22,1);
}

.site-nav a:hover::after,
.site-nav a:focus::after {
  transform: scaleX(1);
}

.site-nav a.active {
  font-weight: 700;
}
.site-nav__link.is-active {
  font-weight: 900;
}
.site-nav__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-nav__list {
  display: flex;
  justify-content: center; /* THIS is the missing piece */
  gap: 1.5rem;

  margin: 0;
  padding: 0;
  list-style: none;
}

/* -------------------------
   UTILITIES
------------------------- */

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lowercase {
  text-transform: lowercase;
}


/* -------------------------
   SECTIONS
------------------------- */

section {
  margin-bottom: var(--space-xl);
}

.section-compact {
  margin-bottom: 2.5rem;
}

.section-hero {
  margin-bottom: 5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.container--inset {
  max-width: 780px;
}

.container--wide {
  max-width: 1200px;
}

.main--full .container {
  max-width: none;
}

main {
  margin: 0 auto;
}

/* default inset */
main.main--inset {
  max-width: 780px;
  padding: 3rem 2rem;
}

/* full width */
main.main--wide {
  max-width: none;
  width: 100%;
  padding: 0 2rem;
}
/* -------------------------
   READABILITY CONSTRAINT
------------------------- */

p {
  max-width: 66ch;
}

h1, h2, h3, h4, h5, h6 {
  max-width: 24ch;
}
h1 {
  letter-spacing: 0.01em;
}

h2 {
  letter-spacing: 0.025em;
}

h3 {
  letter-spacing: 0.03em;
}

h4 {
  letter-spacing: 0.015em;
}

h5 {
  letter-spacing: 0.06em;
}

h6 {
  letter-spacing: 0.07em;
}
/* override for linked headings */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  display: inline;
  max-width: none;
  white-space: normal;
}

/* =========================================================
   HERO CONTAINER
   ========================================================= */

.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;

--hero-panel-top: clamp(20px, 8vh, 80px);
}



.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
    animation: fadeInLogo 900ms ease-out both;
}

.hero-panel {
  position: absolute;

  left: 50%;
  transform: translateX(-50%);
  top: var(--hero-panel-top);
  width: calc(100vw - 10vw);
  max-width: 500px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 24px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.hero-brand {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: justify;
  animation: heroReveal 900ms ease-out both;
}
.hero-rule {
  width: 100%;
  max-width: 100%;
  height: 2px;
  background: white;
  margin-top: 24px;
  animation: fadeInRule 1100ms ease-out both;
}
.hero-subtitle {
  max-width: 100%;
  overflow: hidden;
  margin-top: 24px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-overflow: clip;
  white-space: nowrap;
  animation: fadeInText 1300ms ease-out both;



  color: rgba(255, 255, 255, 0.9);
}
@media (max-width: 560px) {
  .hero-subtitle {
    font-size: 20px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 450px) {
  .hero-subtitle {
    font-size: 17px;
    letter-spacing: 0.1em;
  }
}
@media (max-width: 360px) {
  .hero-subtitle {
    font-size: 16px;
    letter-spacing: 0.06em;
  }
}
@media (max-width: 340px) {
  .hero-subtitle {
    font-size: 15px;
    letter-spacing: 0.06em;
  }
}
@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}