/* ========================================
RESET
======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #ffffff;
}

/* ========================================
OPENING ANIMATION
======================================== */

.intro {
  position: fixed;

  inset: 0;

  width: 100%;
  height: 100svh;

  z-index: 9998;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background: #000;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 1.4s ease,
    visibility 1.4s ease;
}

/* ========================================
INTRO BACKGROUND
======================================== */

.intro-background {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  z-index: 0;
}

.intro-background img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

/* ========================================
INTRO DARK OVERLAY
======================================== */

.intro-overlay {
  position: absolute;

  inset: 0;

  z-index: 1;

  background: rgba(0, 0, 0, 0.55);
}

/* ========================================
INTRO CONTENT
======================================== */

.intro-content {
  position: relative;

  z-index: 2;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  width: 100%;

  padding: 30px;
}

/* ========================================
INTRO PRESENTER
======================================== */

.intro-presenter {
  margin: 0 0 35px;

  color: #f9cc7b;

  font-family: "Brush Script MT", "Segoe Script", cursive;

  font-size: clamp(1.1rem, 2.2vw, 1.7rem);

  font-weight: 400;

  letter-spacing: 0.02em;

  opacity: 0;

  transform: translateX(-100px);

  animation:
    introPresenterIn 1.4s cubic-bezier(.22, 1, .36, 1)
    0.25s forwards;
}

/* ========================================
LOGO-FILLED LETTERS
======================================== */

.logo-letter {
  display: inline-block;

  color: transparent;

  background-image: url("../logo-and-background/logo.png");

  background-repeat: no-repeat;

  background-size: cover;

  background-position: center;

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;

  -webkit-text-stroke: 2px #ffffff;

  text-shadow:
    0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
INTRO TITLE
======================================== */

.intro-title {
  margin: 0;

  font-family: Arial, Helvetica, sans-serif;

  font-size: clamp(5rem, 14vw, 11rem);

  font-weight: 800;

  line-height: 0.85;

  letter-spacing: 0.08em;

  opacity: 0;

  transform: translateY(15px) scale(0.96);

  animation:
    introTitleIn 1.2s cubic-bezier(.22, 1, .36, 1)
    1.35s forwards;
}

/* ========================================
INTRO PERIODS
======================================== */

.intro-dot {
  color: #203931;

  -webkit-text-stroke: 1px #ffffff;

  text-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
INTRO ANIMATIONS
======================================== */

@keyframes introPresenterIn {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }

  70% {
    opacity: 1;
    transform: translateX(8px);
  }

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

@keyframes introTitleIn {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.96);
  }

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

/* ========================================
INTRO HIDDEN STATE
======================================== */

.intro.is-hidden {
  opacity: 0;

  visibility: hidden;

  pointer-events: none;
}

/* ========================================
MOBILE INTRO
======================================== */

@media (max-width: 767px) {

  .intro-overlay {
    background: rgba(0, 0, 0, 0.56);
  }

  .intro-content {
    padding: 25px;
  }

  .intro-presenter {
    margin-bottom: 30px;

    font-size: 1.15rem;
  }

  .intro-title {
    font-size: clamp(4.5rem, 25vw, 7rem);

    letter-spacing: 0.06em;
  }

  .logo-letter {
    -webkit-text-stroke: 2px #ffffff;
  }
}

/* ========================================
VERY SMALL PHONES — INTRO
======================================== */

@media (max-width: 380px) {

  .intro-presenter {
    font-size: 1.00rem;

    margin-bottom: 25px;
  }

  .intro-title {
    font-size: clamp(3.8rem, 22vw, 4.3rem);

    letter-spacing: 0.04em;
  }
}

/* ========================================
REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {

  .intro-presenter,
  .intro-title {
    animation: none;

    opacity: 1;

    transform: none;
  }

  .intro {
    transition: opacity 0.3s ease;
  }
}

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

.hero {
  position: relative;

  min-height: 100vh;
  min-height: 100svh;

  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

/* ========================================
HERO BACKGROUND
======================================== */

.hero-background {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  z-index: 0;
}

.hero-background img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

/* ========================================
HERO CONTENT / TEXT OVERLAY
======================================== */

.hero-content {
  position: relative;

  z-index: 2;

  width: fit-content;

  max-width: 94%;

  margin: 0 auto;

  /*
    Horizontal padding is intentionally
    generous on larger screens so the
    wider title has room.
  */
  padding: 40px 70px;

  text-align: center;

  background: rgba(0, 0, 0, 0.80);

  border-radius: 4px;
}

/* ========================================
HERO MAIN TITLE
======================================== */

.hero-title {
  color: #203931;

  /*
    Fluid sizing.

    The middle value uses viewport width,
    allowing the title to continuously
    shrink as the screen becomes smaller.
  */
  font-size: clamp(1.5rem, 5.2vw, 5rem);

  font-weight: 500;

  line-height: 1.1;

  /*
    Slight positive spacing keeps the
    complete title visually wider.
  */
  letter-spacing: 0.015em;

  /*
    Keeps:
    Brother's Keeper Initiative

    on one line.
  */
  white-space: nowrap;

  margin-bottom: 25px;

  -webkit-text-stroke: 1px #ffffff;

  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.16);
}

/* ========================================
HERO B / K / I
======================================== */

.hero-title .logo-letter {
  /*
    B, K and I remain larger than the
    surrounding letters.
  */
  font-size: 1.35em;

  font-weight: 800;

  letter-spacing: 0.01em;

  /*
    Makes the logo artwork inside the
    letters more visible horizontally.
  */
  transform: scaleX(1.08);

  transform-origin: center;

  margin-right: 0.015em;

  vertical-align: baseline;
}

/* ========================================
HERO SUBTITLE
======================================== */

.hero-subtitle {
  color: #ffffff;

  font-size: clamp(1.25rem, 2.5vw, 2rem);

  font-weight: 500;

  line-height: 1.3;

  margin-bottom: 18px;

  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.45);
}

/* ========================================
HERO DESCRIPTION
======================================== */

.hero-text {
  max-width: 650px;

  margin: 0 auto;

  color: #ffffff;

  font-size: clamp(1rem, 1.6vw, 1.25rem);

  font-weight: 400;

  line-height: 1.7;

  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.55);
}

/* ========================================
HERO NAVIGATION BUTTONS
======================================== */

.hero-buttons {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 25px;

  width: 100%;

  margin-top: 35px;
}

/* ========================================
INDIVIDUAL HERO BUTTON
======================================== */

.hero-button {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 180px;
  height: 150px;

  flex-shrink: 0;

  overflow: hidden;

  text-decoration: none;

  cursor: pointer;

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

/* ========================================
BUTTON IMAGE
======================================== */

.hero-button picture {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  z-index: 0;
}

.hero-button img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

/* ========================================
BUTTON TEXT
======================================== */

.hero-button span {
  position: relative;

  z-index: 1;

  display: block;

  padding: 8px 14px;

  color: #ffffff;

  font-size: clamp(1rem, 1.5vw, 1.2rem);

  font-weight: 700;

  line-height: 1.2;

  text-align: center;

  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.65);
}

/* ========================================
BUTTON HOVER
======================================== */

.hero-button:hover {
  transform: translateY(-7px) scale(1.04);

  filter: brightness(1.08);
}

/* ========================================
BUTTON FOCUS
======================================== */

.hero-button:focus-visible {
  outline: 3px solid #ffffff;

  outline-offset: 5px;
}

/* ========================================
TABLET — HERO BUTTONS
======================================== */

@media (max-width: 900px) {

  .hero-buttons {
    gap: 18px;

    margin-top: 30px;
  }

  .hero-button {
    width: 150px;
    height: 125px;
  }

  .hero-button span {
    font-size: 1rem;
  }
}

/* ========================================
TABLET
======================================== */

@media (max-width: 900px) {

  .hero-content {
    max-width: 94%;

    padding: 35px 45px;
  }

  .hero-title {
    /*
      Still fluid on tablets.
      No fixed tablet size.
    */
    font-size: clamp(2rem, 5.8vw, 4.5rem);

    letter-spacing: 0.01em;
  }

  .hero-title .logo-letter {
    font-size: 1.32em;

    transform: scaleX(1.06);
  }
}

/* ========================================
MOBILE — 767px AND BELOW
======================================== */

@media (max-width: 767px) {

  .hero {
    min-height: 100svh;
  }

  .hero-background img {
    object-position: center center;
  }

  /* ====================================
     MOBILE HERO CONTENT
  ==================================== */

  .hero-content {
    width: calc(100% - 24px);

    max-width: 94%;

    /*
      Force the overlay itself to sit
      exactly in the horizontal center
      of the hero.
    */
    margin-left: auto;
    margin-right: auto;

    padding: 28px 14px;

    background: rgba(0, 0, 0, 0.8);

    /*
      Make every child use the same
      centered horizontal alignment.
    */
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
  }

  /* ====================================
     MOBILE HERO TITLE
  ==================================== */

  .hero-title {
    width: 100%;

    /*
      Center the actual title box.
    */
    margin-left: auto;
    margin-right: auto;

    font-size: clamp(1.45rem, 7.2vw, 3.5rem);

    line-height: 1.15;

    letter-spacing: 0.005em;

    white-space: nowrap;

    text-align: center;

    margin-bottom: 20px;
  }

  .hero-title .logo-letter {
    font-size: 1.28em;

    font-weight: 800;

    /*
      Reduced from 1.05 so the B/K/I
      don't visually extend too far
      outside their normal text box.
    */
    transform: scaleX(1.02);

    transform-origin: center;

    margin-right: 0.005em;
  }

  /* ====================================
     MOBILE SUBTITLE
  ==================================== */

  .hero-subtitle {
    width: 100%;

    text-align: center;

    font-size: clamp(1.05rem, 5vw, 1.25rem);

    margin-bottom: 15px;
  }

  /* ====================================
     MOBILE DESCRIPTION
  ==================================== */

  .hero-text {
    width: 100%;

    margin-left: auto;
    margin-right: auto;

    text-align: center;

    font-size: clamp(0.9rem, 4vw, 1rem);

    line-height: 1.6;
  }

    /* ====================================
     MOBILE HERO BUTTONS
  ==================================== */

  .hero-buttons {
    width: 100%;

    display: flex;

    flex-direction: row;

    justify-content: center;
    align-items: center;

    gap: 8px;

    margin-top: 28px;
  }

  .hero-button {
    width: calc((100% - 16px) / 3);

    height: 95px;

    max-width: 125px;
  }

  .hero-button span {
    padding: 5px;

    font-size: clamp(0.7rem, 3vw, 0.9rem);

    line-height: 1.15;
  }

  .hero-button:hover {
    transform: translateY(-4px) scale(1.02);
  }
}

/* ========================================
VERY SMALL PHONES — 380px AND BELOW
======================================== */

@media (max-width: 380px) {

  .hero-content {
    /*
      Give the title almost the entire
      screen width.
    */
    width: calc(100% - 16px);

    max-width: 96%;

    padding: 22px 8px;
  }

  .hero-title {
    /*
      Continue scaling instead of using
      a fixed 1.9rem value.

      This is the important fix for
      320px / 360px phones.
    */
    font-size: clamp(1.3rem, 7vw, 2.1rem);

    letter-spacing: 0;

    margin-bottom: 18px;
  }

  .hero-title .logo-letter {
    font-size: 1.25em;

    transform: scaleX(1.04);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4.8vw, 1.1rem);
  }

  .hero-text {
    font-size: clamp(0.85rem, 3.8vw, 0.95rem);
  }

    .hero-buttons {
    gap: 5px;

    margin-top: 24px;
  }

  .hero-button {
    width: calc((100% - 10px) / 3);

    height: 82px;
  }

  .hero-button span {
    font-size: clamp(0.62rem, 2.8vw, 0.8rem);

    padding: 3px;
  }
}

/* ========================================
EXTRA SMALL SCREENS — BELOW 300px
======================================== */

@media (max-width: 300px) {

  .hero-content {
    /*
      Give the text as much horizontal
      space as possible on extremely
      narrow screens.
    */
    width: calc(100% - 8px);

    max-width: 98%;

    padding: 18px 5px;
  }

  /* ====================================
     HERO TITLE
  ==================================== */

  .hero-title {
    /*
      Smaller minimum size allows the
      title to continue shrinking below
      300px instead of getting stuck.
    */
    font-size: clamp(1rem, 6.5vw, 1.8rem);

    line-height: 1.15;

    letter-spacing: -0.01em;

    white-space: nowrap;

    margin-bottom: 15px;
  }

  /* ====================================
     B / K / I
  ==================================== */

  .hero-title .logo-letter {
    /*
      Keep B/K/I prominent, but reduce
      their enlargement slightly so
      they don't force the title outside
      the screen.
    */
    font-size: 1.2em;

    transform: scaleX(1.02);

    margin-right: 0;
  }

  /* ====================================
     SUBTITLE
  ==================================== */

  .hero-subtitle {
    font-size: clamp(0.85rem, 4.2vw, 1rem);

    line-height: 1.25;

    margin-bottom: 12px;
  }

  /* ====================================
     DESCRIPTION
  ==================================== */

  .hero-text {
    font-size: clamp(0.75rem, 3.5vw, 0.9rem);

    line-height: 1.5;
  }

    .hero-buttons {
    gap: 3px;

    margin-top: 20px;
  }

  .hero-button {
    width: calc((100% - 6px) / 3);

    height: 70px;
  }

  .hero-button span {
    font-size: clamp(0.55rem, 2.7vw, 0.7rem);

    padding: 2px;
  }
}



/* Outline thickness variables */
:root {
  --outline: 15px;
}

@media (max-width: 600px) {
  :root { --outline: 10px; }
}

@media (max-width: 320px) {
  :root { --outline: 8px; }
}

/* -----------------------------------------
   OUTLINE
------------------------------------------*/
#viewport-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  border: var(--outline) solid #ff7e00;
  z-index: 9999;
}