/* ===========================================================
   Hot Tottie Capital Management — Eventic-style design system
   =========================================================== */

:root {
  --bg: #030303;
  --surface: #0b0b0b;
  --surface-raised: #111111;
  --border: rgba(245, 243, 238, 0.10);
  --border-strong: rgba(245, 243, 238, 0.22);

  --text-primary: #f5f3ee;
  --text-secondary: rgba(245, 243, 238, 0.68);
  --text-muted: rgba(245, 243, 238, 0.45);

  --white-btn-bg: #f5f3ee;
  --white-btn-text: #0a0a0a;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --max-w: 1120px;
}


/* ===========================================================
   Base
   =========================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ===========================================================
   Layout
   =========================================================== */

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}


/* ===========================================================
   Typography
   =========================================================== */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}


/* ===========================================================
   Buttons
   =========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;

  padding: 14px 30px;

  border-radius: 999px;
  border: 1px solid transparent;

  cursor: pointer;
  white-space: nowrap;

  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--white-btn-bg);
  color: var(--white-btn-text);
}

.btn-primary:hover {
  background: #ffffff;
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--text-primary);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}


/* ===========================================================
   Nav
   =========================================================== */

header.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  z-index: 30;

  padding: 22px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
}

.logo {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta .btn {
  padding: 10px 22px;
  font-size: 13px;
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
}


/* ===========================================================
   Full-bleed video sections
   =========================================================== */

.video-section {
  position: relative;
  overflow: hidden;

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

  text-align: center;

  min-height: 100vh;
}

.video-section.short {
  min-height: 70vh;
}

.video-bg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: 0;
}

.video-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(3, 3, 3, 0.75) 0%,
      rgba(3, 3, 3, 0.35) 30%,
      rgba(3, 3, 3, 0.55) 75%,
      rgba(3, 3, 3, 0.85) 100%
    );

  z-index: 1;
}

.video-content {
  position: relative;
  z-index: 2;

  max-width: 760px;
  padding: 0 24px;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 22px;
}

.video-content .eyebrow {
  color: rgba(245, 243, 238, 0.75);
}

.video-content h1,
.video-content h2 {
  max-width: 640px;
}

.video-content .tagline {
  font-family: var(--font-display);
  font-style: italic;

  font-size: clamp(1.05rem, 2vw, 1.3rem);

  color: rgba(245, 243, 238, 0.85);
}

.video-content .lede {
  max-width: 520px;

  font-size: 16px;

  color: rgba(245, 243, 238, 0.72);
}

.video-actions {
  display: flex;
  align-items: center;

  gap: 16px;

  flex-wrap: wrap;
  justify-content: center;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 12px;

  letter-spacing: 0.5px;

  color: rgba(245, 243, 238, 0.55);
}

.scroll-cue {
  position: absolute;

  bottom: 32px;
  left: 50%;

  transform: translateX(-50%);

  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 10px;
}

.scroll-cue span {
  font-family: var(--font-mono);
  font-size: 10px;

  letter-spacing: 2px;

  color: rgba(245, 243, 238, 0.55);
}

.scroll-cue .line {
  width: 1px;
  height: 26px;

  background: rgba(245, 243, 238, 0.4);
}


/* ===========================================================
   Section scaffolding
   =========================================================== */

section.content {
  padding: 96px 0;
}

section.content + section.content {
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 620px;

  margin: 0 auto 52px;

  text-align: center;
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.section-head p {
  margin-top: 14px;
  font-size: 16px;
}

#inside .section-head h2 {
  font-size: clamp(1.3rem, 2.3vw, 1.8rem);

  font-weight: 500;
  line-height: 1.35;
}


/* ===========================================================
   Photo grid
   =========================================================== */

.photo-grid {
  display: grid;

  grid-template-columns: repeat(
    auto-fit,
    minmax(220px, 1fr)
  );

  gap: 20px;
}

.photo-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 760px) {
  .photo-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}


/* ===========================================================
   LARGE IMAGE CAROUSEL
   One image visible at a time
   Swipe + desktop arrows
   =========================================================== */

.carousel-wrap {
  position: relative;

  /*
    Keeps the image large while preventing it
    from becoming excessively wide on very large screens.
  */
  max-width: 1000px;

  margin: 0 auto;

  /*
    Space reserved for the navigation arrows.
  */
  padding: 0 54px;
}

.carousel {
  display: flex;

  gap: 20px;

  overflow-x: auto;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  -webkit-overflow-scrolling: touch;

  padding: 0 0 8px;

  scrollbar-width: none;

  /*
    Prevent accidental vertical scrolling while
    swiping horizontally on touch devices.
  */
  touch-action: pan-x;
}

.carousel::-webkit-scrollbar {
  display: none;
}


/*
  Each carousel card occupies the entire available
  carousel width.

  This is the main change from the previous 84% width,
  which caused the next image to peek into view.
*/

.carousel .photo-card {
  flex: 0 0 100%;
  width: 100%;

  scroll-snap-align: center;
}


/* ===========================================================
   Photo cards
   =========================================================== */

.photo-card {
  position: relative;

  border-radius: 18px;

  overflow: hidden;

  aspect-ratio: 4 / 5;

  background: var(--surface-raised);

  border: 1px solid var(--border);
}


/*
  Screenshots are landscape images, so give them
  a wider aspect ratio.
*/

.photo-card.screen {
  aspect-ratio: 16 / 10;

  background: #050505;
}


/*
  Screenshot images must remain completely visible.
  Do not crop the Discord screenshots.
*/

.photo-card.screen img {
  object-fit: contain;
}


/*
  General image styling.
*/

.photo-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  /*
    Indicates that the image can be opened
    and enlarged.
  */
  cursor: zoom-in;

  /*
    Prevents image dragging from interfering
    with carousel interaction.
  */
  user-select: none;
  -webkit-user-select: none;
}


/* ===========================================================
   Card scrim
   =========================================================== */

.photo-card .scrim {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(3, 3, 3, 0) 50%,
      rgba(3, 3, 3, 0.85) 100%
    );

  pointer-events: none;
}


/* ===========================================================
   Card captions
   =========================================================== */

.photo-card .caption {
  position: absolute;

  left: 18px;
  right: 18px;
  bottom: 16px;

  z-index: 2;

  font-size: 14.5px;
  font-weight: 600;

  color: var(--text-primary);

  min-height: 1.4em;
}


/* ===========================================================
   Carousel arrows
   =========================================================== */

.carousel-arrow {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  z-index: 10;

  width: 44px;
  height: 44px;

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

  border: 1px solid var(--border-strong);

  border-radius: 50%;

  background: rgba(3, 3, 3, 0.78);

  color: var(--text-primary);

  font-family: var(--font-body);

  font-size: 25px;
  line-height: 1;

  cursor: pointer;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(245, 243, 238, 0.12);

  border-color: var(--text-primary);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.carousel-arrow.prev {
  left: 0;
}

.carousel-arrow.next {
  right: 0;
}


/* ===========================================================
   Feature grid
   =========================================================== */

.grid-4 {
  display: grid;

  grid-template-columns: repeat(
    auto-fit,
    minmax(230px, 1fr)
  );

  gap: 20px;
}

.feature {
  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 18px;

  padding: 30px 26px;
}

.feature .mark {
  font-family: var(--font-mono);

  font-size: 12px;

  letter-spacing: 1.5px;

  color: var(--text-muted);

  display: block;

  margin-bottom: 18px;
}

.feature h3 {
  margin-bottom: 10px;
}

.feature p {
  font-size: 14.5px;
}


/* ===========================================================
   Perk section
   =========================================================== */

.perk-copy {
  max-width: 620px;

  margin: 0 auto 48px;

  text-align: center;
}

.perk-copy .eyebrow {
  display: block;

  margin-bottom: 14px;
}

.perk-copy p {
  margin-top: 16px;

  font-size: 16px;
}


/* ===========================================================
   IMAGE LIGHTBOX
   Full-screen image viewer
   =========================================================== */

.image-lightbox {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

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

  padding: 30px;

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

  opacity: 0;

  visibility: hidden;

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


/*
  Activated by JavaScript when an image
  is clicked/tapped.
*/

.image-lightbox.active {
  opacity: 1;

  visibility: visible;
}


/*
  Full-size image inside the lightbox.
*/

.image-lightbox img {
  max-width: 95vw;

  max-height: 92vh;

  width: auto;
  height: auto;

  object-fit: contain;

  cursor: zoom-in;

  user-select: none;
  -webkit-user-select: none;

  transition: transform 0.25s ease;
}


/*
  Zoomed state.

  JavaScript adds/removes the .zoomed class.
*/

.image-lightbox img {
  max-width: 95vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;

  cursor: zoom-in;

  user-select: none;
  -webkit-user-select: none;

  transition: transform 0.2s ease;

  touch-action: none;
  will-change: transform;
}

.image-lightbox.active img {
  cursor: zoom-in;
}


/* ===========================================================
   Lightbox close button
   =========================================================== */

.image-lightbox-close {
  position: absolute;

  top: 22px;
  right: 26px;

  width: 44px;
  height: 44px;

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

  border: 1px solid var(--border-strong);

  border-radius: 50%;

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

  color: var(--text-primary);

  font-size: 26px;

  line-height: 1;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.image-lightbox-close:hover {
  background: rgba(245, 243, 238, 0.12);

  border-color: var(--text-primary);
}


/* ===========================================================
   Footer
   =========================================================== */

footer {
  border-top: 1px solid var(--border);

  padding: 40px 0 52px;

  background: var(--bg);
}

.footer-inner {
  display: flex;

  justify-content: space-between;

  gap: 24px;

  flex-wrap: wrap;

  align-items: flex-start;
}

.footer-inner .logo {
  display: block;

  margin-bottom: 10px;
}

footer .fine-print {
  font-size: 12.5px;

  color: var(--text-muted);

  max-width: 460px;
}

footer nav {
  display: flex;

  gap: 22px;
}

footer nav a {
  font-size: 14px;

  color: var(--text-secondary);
}

footer nav a:hover {
  color: var(--text-primary);
}


/* ===========================================================
   MOBILE CAROUSEL
   =========================================================== */

@media (max-width: 760px) {

  /*
    The carousel uses almost the entire mobile
    screen while leaving room for the arrows.
  */

  .carousel-wrap {
    max-width: none;

    margin: 0;

    padding: 0 42px;
  }

  .carousel {
    gap: 12px;

    padding-bottom: 5px;
  }

  .carousel .photo-card {
    flex-basis: 100%;
  }


  /*
    Slightly tighter radius on small screens.
  */

  .photo-card {
    border-radius: 14px;
  }

  .photo-card.screen {
    aspect-ratio: 16 / 10;

    border-radius: 14px;
  }


  /*
    Mobile carousel arrows.
  */

  .carousel-arrow {
    width: 36px;
    height: 36px;

    font-size: 21px;
  }

  .carousel-arrow.prev {
    left: 2px;
  }

  .carousel-arrow.next {
    right: 2px;
  }


  /*
    Mobile lightbox.
  */

  .image-lightbox {
    padding: 12px;
  }

  .image-lightbox img {
    max-width: 96vw;

    max-height: 88vh;
  }


  /*
    Slightly smaller zoom on mobile so that
    very large screenshots remain usable.
  */

  .image-lightbox.zoomed img {
    transform: scale(1.7);
  }


  /*
    Smaller close button.
  */

  .image-lightbox-close {
    top: 14px;

    right: 14px;

    width: 38px;
    height: 38px;

    font-size: 22px;
  }
}


/* ===========================================================
   VERY SMALL MOBILE SCREENS
   =========================================================== */

@media (max-width: 420px) {

  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .carousel-wrap {
    padding-left: 38px;
    padding-right: 38px;
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;

    font-size: 20px;
  }

  .carousel-arrow.prev {
    left: 1px;
  }

  .carousel-arrow.next {
    right: 1px;
  }

  .photo-card.screen {
    border-radius: 12px;
  }
}
