/* ------------------------------
   SECTION DIVIDER
--------------------------------*/

/* ------------------------------
   COLOR SCHEME VARIABLES
--------------------------------*/
:root {
  --cs-page-bg: #ffffff;
  --cs-primary-text: #111;
  --cs-secondary-text: #555;
  --cs-border: #ddd;
  --cs-divider-bg: rgba(147, 147, 147, 0.18);
  --cs-divider-line: #111;
  --cs-overlay: rgba(0, 0, 0, 0.55);
  --cs-overlay-hover: rgba(0, 0, 0, 0.65);
  --cs-primary-btn: #5f9ea0;
  --cs-primary-btn-border: #008080;
  --cs-primary-btn-hover: #008080;
  --cs-primary-btn-active: #3b6e6e;
  --cs-secondary-btn: #91a3b0;
  --cs-secondary-btn-border: #536878;
  --cs-secondary-btn-hover: #536878;
  --cs-secondary-btn-active: #2c3e50;
  --cs-nav-bg: #ffffff;
  --cs-nav-overlay-bg: rgba(96, 114, 123, 0.97);
  --cs-nav-overlay-text: #f2f5f2;
  --cs-nav-overlay-hover-bg: #f7dd1b;
  --cs-nav-overlay-hover-text: #1a1b1a;
  --cs-progress-bar: rgba(85, 85, 85, 0.15);
  --cs-error-text: #b00;
  --cs-error-bg: #fff3f3;
  --cs-contact-btn-bg: #111;
  --cs-contact-btn-text: #fff;
  --cs-submenu-btn: #3a6f6f;
  --cs-submenu-btn-border: #5a8f8f;
  --cs-submenu-btn-hover: #4f9f9f;
  --cs-submenu-btn-hover-border: #7fcfcf;
  --cs-submenu-explanation-bg: #e6e6e6;
  --cs-return-btn: #e0e0e0;
  --cs-return-btn-border: #b0b0b0;
  --cs-return-btn-text: #333;
  --cs-return-btn-hover: #b0b0b0;
  --cs-placeholder-bg: #ddd;
  --cs-placeholder-border: #aaa;
  --cs-section-border: #eee;
  --cs-headline-text: #111;    /* section header + top banner section title color */
}

/* ------------------------------
   COLOR SCHEME DROPDOWN
--------------------------------*/
.color-scheme-dropdown {
  position: relative;
  margin-right: 20px;
}

.color-scheme-toggle {
  font-family: "Orbitron", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  padding: 6px 14px;
  background: var(--cs-page-bg);
  color: var(--cs-primary-text);
  border: 1px solid var(--cs-border);
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.color-scheme-toggle:hover {
  background: var(--cs-section-border);
}

.color-scheme-options {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--cs-nav-bg);
  border: 1px solid var(--cs-border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  min-width: 140px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 3000;
}

.color-scheme-options.open {
  opacity: 1;
  pointer-events: auto;
}

.color-scheme-options button {
  font-family: "Orbitron", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--cs-primary-text);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.color-scheme-options button:hover {
  background: var(--cs-divider-bg);
}

.color-scheme-options button.active {
  font-weight: 700;
}

/* ------------------------------
   SECTION DIVIDERS
--------------------------------*/
.section-divider {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.section-divider-line {
  width: 100%;
  height: var(--divider-line-width, 4px);
  background: var(--divider-line-color, var(--cs-divider-line));
  border: none;
  margin: 0;
}
.section-divider-headline {
  font-family: "Orbitron", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 2.0rem;
  color: var(--divider-headline-color, var(--cs-primary-text));
  margin: 0;
  letter-spacing: 2px;
  text-align: center;
  background: var(--divider-bg, var(--cs-divider-bg));
  padding: 2px 0;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0;
}
/* GAME_MODE_SELECT horizontal button row */
.game-mode-btn-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 8px;
  margin-bottom: 24px;
}
.step .content {
  opacity: 0.2;
  position: sticky;
  top: 15px;
  z-index: 2;
  transition: opacity 0.4s ease, box-shadow 0.3s, background 0.3s;
}

.step.active .content {
  opacity: 1;
}
/* ------------------------------
   STACKED STICKY STEPS
--------------------------------*/
.step {
  height: 120vh;
  position: relative;
  padding-top: 15px;
}
/* ------------------------------
   GLOBAL RESET + BASE
--------------------------------*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: auto; /* Restore global scrolling */
}

/* ------------------------------
   FONTS
--------------------------------*/

/* Headings */
h1, h2, h3, .ui-heading {
  font-family: "Orbitron", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.5px;
}

/* Body text */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

/* ------------------------------
   TOP NAV
--------------------------------*/
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--cs-nav-bg);
  border-bottom: 1px solid var(--cs-border);
  display: flex;
  align-items: center;
  padding: 0 16px 0 40px;
  gap: 18px;
  z-index: 1000;
  text-transform: uppercase;
}

.top-nav .logo {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 36px;
  font-weight: 400;
  font-size: 1.2rem;
}

.top-nav .logo img {
  display: block;
  max-height: 42px;
  width: auto;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#section-title {
  font-family: "Orbitron", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 2.0rem;
  color: var(--cs-headline-text);
  opacity: 0.5;
  transition: opacity 0.3s;
  white-space: nowrap;
  /* Center horizontally in the nav bar */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Keep the existing visible state class for compatibility */
.top-nav .logo.visible img {
  opacity: 1;
}

.spacer {
  flex: 1; /* push nothing — logo stays left */
}

/* Hamburger icon */
.hamburger {
  width: 40px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 4px;          /* thickness */
  width: 100%;
  background: var(--cs-secondary-text);     /* line color */
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ------------------------------
   MAIN SCROLL CONTAINER
--------------------------------*/
main {
  margin-top: 60px;
  height: calc(100vh - 60px);
  overflow-y: scroll;

  scroll-behavior: smooth;
  overscroll-behavior-y: contain;

  scrollbar-width: none;
}

main::-webkit-scrollbar {
  display: none;
}

/* ------------------------------
   SECTIONS
--------------------------------*/
section {
  min-height: calc(100vh - 1px);

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 0 16px 80px 16px;
  border-bottom: 1px solid var(--cs-section-border);
  margin: 0;
}

/* Color-coded wireframe backgrounds */
#hero { background: var(--cs-page-bg); }
#tldr { background: var(--cs-page-bg); }
#project { background: var(--cs-page-bg); }
#interactive-flow { background: var(--cs-page-bg); min-height: auto; }
#philosophy { background: var(--cs-page-bg); }
#team { background: var(--cs-page-bg); min-height: auto; }
#looking-for { background: var(--cs-page-bg); }
#contact {
  background: var(--cs-page-bg);
  padding-bottom: 75vh;
}

/* Typography */
h1, h2 {
  margin-bottom: 16px;
  color: var(--cs-headline-text);
  text-transform: uppercase;
}

p {
  max-width: 700px;
  line-height: 1.5;
}

/* Hero layout */
#hero {
  min-height: 100vh;        /*screen height 100 = full, 200 = double */
  display: flex;            /* enable centering */
  flex-direction: column;   /* stack content top-to-bottom */
  justify-content: flex-start; /* VERTICAL position (in column layout) — flex-start=top, center=middle, flex-end=bottom */
  align-items: center;      /* HORIZONTAL position (in column layout) — center=centered, flex-start=left, flex-end=right */
  /* VERTICAL OFFSET: This is the ONLY control for vertical position.
     0 = flush to top. 5vh = small gap. 12vh = top quarter center. 25vh = bottom of top quarter. */
  padding-top: 5vh;
  padding-left: 0;          /* override generic section side padding for symmetric centering */
  padding-right: 0;
  margin-top: 0;            /* override generic section margin: 40px 0 */
  /*background: #000;         /* optional background color */
}

/* Responsive hero logo */
#hero h1 {
  width: 100%;
  max-width: 600px;
  /* HORIZONTAL: auto = centered */
  margin: 0 auto;
}

#hero h1 img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero text box — centered, width in vw for easy tuning */
.hero-text-box {
  width: 85vw;                 /* adjust vw to control total width */
  margin: 40px auto 0 auto;   /* top gap, then auto left+right = horizontally centered */
  background: transparent;
  text-align: center;
  color: var(--cs-primary-text);
}
/* Simple AT A GLANCE text block (centered, like hero text) */
.tldr-text-box {
  /* Match the hero text box exactly */
  width: 85vw;
  margin: 40px auto 0 auto; /* same top gap as hero */
  background: transparent;
  text-align: center;
  color: var(--cs-primary-text);
  padding-bottom: 32px; /* add space below the block (approx. two lines) */
}

.tldr-text-box p {
  max-width: none; /* allow paragraphs to fill the text box like the hero */
  margin-left: auto;
  margin-right: auto;
}
/* Big Gun image under hero text — keep it no wider than the hero logo above */
.hero-biggun {
  max-width: 600px; /* match #hero h1 max-width */
  width: 100%;
  height: auto;
  display: block;
  margin: 24px auto 0 auto; /* gap from text */
  padding-top: 12px;
}
/* Override the global p { max-width: 700px } so paragraphs fill the text box */
.hero-text-box p {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/*sticky text blocks when parallaxing*/
[style*="position: sticky"] {
  top: 15px !important;
}
section,
.step {
  padding-top: 15px;
}

/* ------------------------------
   MEDIA + PLACEHOLDERS
--------------------------------*/
.section-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.placeholder {
  background: var(--cs-placeholder-bg);
  border: 2px dashed var(--cs-placeholder-border);
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-secondary-text);
  font-size: 0.9rem;
}

.placeholder.square { aspect-ratio: 1 / 1; }
.placeholder.wide { aspect-ratio: 16 / 9; }
.placeholder.tall { aspect-ratio: 9 / 16; }

/* AT A GLANCE images */
.tldr-image {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 140px); /* keep it within viewport with header/padding */
  object-fit: contain;
  border-radius: 0;
  display: block;
}

/* Parallax text overlay (used in AT A GLANCE and THE VISION) */
#tldr .section-text{
  position: sticky;            /* stays visible while scrolling within its parent */
  top: 16px;                  /* distance from top of viewport when stuck */
  z-index: 5;                  /* sits above images but below nav */
  color: #fff;                 /* white text */
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.65); /* soft drop shadow for readability */
  padding: 16px;                /* inner spacing — all sides equal */
  margin-left: -16px;            /* inset from left edge of content area */
  /* No negative margins — box sits inside #tldr's 40px section padding */
  background: var(--cs-overlay); /* semi-transparent dark backdrop */
  border-radius: 10px;        /* rounded corners */
  max-width: 600px;            /* box won't grow wider than this */
}

#project .section-text{
  position: sticky;            /* stays visible while scrolling within its parent */
  top: 16px;                  /* distance from top of viewport when stuck */
  z-index: 5;                  /* sits above images but below nav */
  color: #fff;                 /* white text */
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.65); /* soft drop shadow for readability */
  padding: 16px;                /* inner spacing — all sides equal */
  margin-left: 0;            /* inset from left edge of content area */
  /* No negative margins — box sits inside #tldr's 40px section padding */
  background: var(--cs-overlay); /* semi-transparent dark backdrop */
  border-radius: 10px;        /* rounded corners */
  max-width: 600px;            /* box won't grow wider than this */
}

/* Full-bleed hero image (T⁠L;D⁠R) */
.tldr-image.full-bleed {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 40px;
}

@media (max-width: 800px) {
  .tldr-image.full-bleed {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* ------------------------------
  STAGGERED MEDIA (AT A GLANCE)
--------------------------------*/
.staggered-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  margin-left: -40px;
  margin-right: -40px;
}

/* Make the AT A GLANCE hero image larger and responsive */
.staggered-media .placeholder.wide,
.staggered-media img.placeholder.wide {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
}

.media-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-block.has-overlay {
  position: relative;
}

.media-block.has-overlay .media-overlay {
  position: absolute;
  bottom: 24px;
  right: 24px;
  /* Match the original AT A GLANCE text width while remaining responsive */
  width: min(600px, 60%);
  max-width: 600px;
  /* Allow the box to grow vertically for longer paragraphs */
  aspect-ratio: auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  background: var(--cs-overlay);
  z-index: 2;

  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-decoration: none;
  color: #fff;
  padding: 16px;
  line-height: 1.45;
  font-size: 0.98rem;
}

.media-block.has-overlay .media-overlay.bottom-left {
  right: auto;
  left: 24px;
}

.media-block.has-overlay .mini-overlay {
  position: absolute;
  top: 22px;
  right: 22px;
  width: calc(45% / 1.5);
  max-width: 268px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  z-index: 4;
}

.media-block.has-overlay .media-overlay:hover {
  background: var(--cs-overlay-hover);
}

.media-block.has-overlay .media-overlay .play-icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.6));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.media-block.left .placeholder { width: 90%; }
.media-block.right .placeholder { width: 75%; margin-left: auto; }

.media-caption {
  font-size: 0.85rem;
  color: var(--cs-secondary-text);
  max-width: 90%;
}

@media (max-width: 800px) {
  .staggered-media {
    grid-template-columns: 1fr;
  }

  .media-block.left .placeholder,
  .media-block.right .placeholder {
    width: 100%;
    margin-left: 0;
  }
}

#tldr {
  position: relative;
  padding: 0 40px 80px 40px;
  min-height: 120vh;
}


/* ------------------------------
   FAQ SECTION
--------------------------------*/
#faq {
  background: var(--cs-page-bg);
}

.faq-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.faq-container h2 {
  margin-bottom: 24px;
}

.faq-section-label {
  font-family: "Orbitron", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cs-secondary-text);
  padding: 60px 0 10px;
  border-top: 1px solid var(--cs-border);
  margin-top: 8px;
}

.faq-section-label:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 24px;
}

.faq-section-label {
  font-family: "Orbitron", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cs-secondary-text);
  padding: 60px 0 10px;
  border-top: 1px solid var(--cs-border);
  margin-top: 8px;
}

.faq-section-label:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 24px;
}

.faq-item {
  border-bottom: 1px solid var(--cs-border);
}

.faq-item summary {
  font-family: "Orbitron", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;           /* hide default triangle */
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--cs-primary-text);
  transition: color 0.2s;
}

/* Custom expand/collapse indicator */
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

/* Remove default marker in Safari/Chrome */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--cs-primary-btn);
}

.faq-item p {
  padding: 0 0 20px 0;
  max-width: none;            /* override global p { max-width: 700px } */
  color: var(--cs-secondary-text);
  line-height: 1.6;
}

@media (max-width: 800px) {
  .faq-container {
    padding: 0 8px;
  }

  .faq-item summary {
    font-size: 0.95rem;
  }
}

/* ------------------------------
   TEAM SECTION
--------------------------------*/
.team-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.team-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.team-text-card {
  max-width: 520px;
}

.team-text-card h2 {
  margin-bottom: 14px;
}

.team-text-card p {
  max-width: none;
}

.team-member.member-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

/* Portraits */
.portrait {
  background: var(--cs-placeholder-bg);
  border: 2px dashed var(--cs-placeholder-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-secondary-text);
  font-size: 0.9rem;
}

.team-member .portrait-rect { aspect-ratio: 4 / 5; width: 40%; }
.team-member img.portrait-rect { aspect-ratio: unset; width: 40%; height: auto; object-fit: contain; border-radius: 8px; border: 2px solid var(--cs-border); box-shadow: 0 2px 16px rgba(0,0,0,0.18); }
.portrait-square { aspect-ratio: 1 / 1; width: 70%; }
.portrait-tall { aspect-ratio: 3 / 4; width: 60%; }

.team-li-icon {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 8px;
}

.bio {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--cs-primary-text);
}

@media (max-width: 800px) {
  .team-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-text-card {
    max-width: 100%;
    text-align: center;
  }

  .team-member .portrait-rect {
    width: 50%;
    max-width: 180px;
  }
}

/* ------------------------------
  THE EXPERIENCE / INTERACTIVE FLOW
--------------------------------*/
/* Legacy experience-grid rules removed — interactive-flow uses flow-page system */

/* ------------------------------
   OVERLAY MENU
--------------------------------*/
.overlay-menu {
      --overlay-menu-hover-bg: var(--cs-nav-overlay-hover-bg);
      background: var(--overlay-menu-hover-bg);
    font-family: "Orbitron", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--cs-nav-overlay-text);
  position: absolute;
  top: 70px; /* below nav bar plus 10px */
  left: 16px;
  right: auto;
  background: var(--cs-nav-overlay-bg);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  padding: 20px 0 20px 0;
  min-width: 220px;
  max-width: 340px;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, box-shadow 0.25s;
  z-index: 2000;
}

.overlay-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.overlay-menu a {
  color: inherit; /* use overlay-menu color */
  text-decoration: none;
  font-size: 1.5rem;
  padding: 6px 16px;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.18s;
}

.overlay-menu a:hover {
  background: var(--overlay-menu-hover-bg, var(--cs-nav-overlay-hover-bg));
  color: var(--cs-nav-overlay-hover-text);
  cursor: pointer;
}

/* ------------------------------
   PROGRESS BAR
--------------------------------*/
#progress-bar {
  position: fixed;
  top: 60px;
  left: 0;
  height: 4px;              /* PROGRESS BAR THICKNESS */
  width: 100%;
  background: var(--cs-progress-bar);
  z-index: 9999;
  transform-origin: 0 0;
  transform: scaleX(0);
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ------------------------------
   WHAT WE'RE LOOKING FOR
--------------------------------*/

/* WHAT WE'RE LOOKING FOR — FIXED LAYOUT */
.looking-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.looking-layout .section-text {
  max-width: 720px;
  width: 100%;
  text-align: left;
}

.looking-layout .section-text h2 {
  text-align: center;
}

/* Staggered vertical layout instead of a strict grid */
.looking-media {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Mobile */
@media (max-width: 800px) {
  .looking-layout {
    grid-template-columns: 1fr;
  }

  .looking-media {
    gap: 24px;
  }
}

/* ------------------------------
  WHAT'S THE VISION
--------------------------------*/

.project-layout {
  display: grid;
  /* single column so the text sits above the media on all screen sizes */
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  justify-items: center; /* center children horizontally */
}

.project-layout > .section-text {
  margin-left: 0;
}

/* Vertical staggered layout */
.project-media {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Optional small frame */
.media-block.optional .placeholder {
  width: 50%;
  margin-left: auto;
}

/* Mobile */
@media (max-width: 800px) {
  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-media {
    gap: 24px;
  }
}

/* ------------------------------
   CONTACT SECTION
--------------------------------*/

.contact-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Right column content */
.contact-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 760px;
}

/* Form styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid var(--cs-border);
  font-size: 1rem;
  border-radius: 4px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  padding: 12px;
  background: var(--cs-contact-btn-bg);
  color: var(--cs-contact-btn-text);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
}

/* Social icons */
.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.social-icons .icon {
  width: 40px;
  height: 40px;
  font-size: 0.8rem;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

/* Mobile */
@media (max-width: 800px) {
  .contact-layout {
    display: flex;
    justify-content: center;
  }

  .social-icons {
    gap: 16px;
  }
}

/* Interactive Flow System Styles */
/* -------------------------------------------------- */
/* Anchor containers for each page */
.flow-page-anchor {
  min-height: 100vh;
  scroll-margin-top: 80px;
}

/* Main flow page container */
.flow-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 32px 0;
  margin-bottom: 12px;
}

/* Page title */
.flow-page h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  margin-bottom: 16px;
}

/* Narrative text — extra space before buttons */
.flow-page > p {
  margin-bottom: 48px;
}

/* Menu Buttons */
.flow-btn-menu {
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(95,158,160,0.25);
  background: var(--cs-primary-btn);
  border: 2px solid var(--cs-primary-btn-border);
  color: #fff;
  font-size: 1.1rem;
  padding: 16px 32px;
  margin: 5px 0;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  min-width: 180px;
  max-width: 320px;
}
.flow-btn-menu:hover {
  background: var(--cs-primary-btn-hover);
  box-shadow: 0 6px 32px rgba(95,158,160,0.35);
}
.flow-btn-menu:active {
  background: var(--cs-primary-btn-active);
}

/* Non-Menu Buttons */
.flow-btn-nonmenu {
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(145,163,176,0.15);
  background: var(--cs-secondary-btn);
  border: 2px solid var(--cs-secondary-btn-border);
  color: #fff;
  font-size: 1.1rem;
  padding: 16px 32px;
  margin: 8px 0;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  min-width: 180px;
  max-width: 320px;
}
.flow-btn-nonmenu:hover {
  background: var(--cs-secondary-btn-hover);
  box-shadow: 0 4px 16px rgba(145,163,176,0.25);
}
.flow-btn-nonmenu:active {
  background: var(--cs-secondary-btn-active);
}

/* Return Buttons */
.flow-btn-return {
  border-radius: 8px;
  background: var(--cs-return-btn);
  border: 1px solid var(--cs-return-btn-border);
  color: var(--cs-return-btn-text);
  font-size: 1rem;
  padding: 12px 24px;
  margin: 8px 0;
  cursor: pointer;
  transition: background 0.2s;
}
.flow-btn-return:hover {
  background: var(--cs-return-btn-hover);
}

/* Disabled EXIT_GAME button */
button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* -------------------------------------------------- */
/* End Interactive Flow System Styles */
/* -------------------------------------------------- */

/* visible placeholder and error styling for flow system */
.flow-error {
  color: var(--cs-error-text);
  background: var(--cs-error-bg);
  border: 1px solid var(--cs-error-text);
  padding: 16px;
  margin: 24px auto;
  text-align: center;
  font-size: 1.2em;
  border-radius: 8px;
}

/* -------------------------------------------------- */
/*  Buttons Styles */
/* -------------------------------------------------- */

/* -------------------------------------------------- */
/*  Lightbox */
/* -------------------------------------------------- */
img[data-lightbox] {
  cursor: zoom-in;
}

#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

#lightbox-overlay.open {
  display: flex;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

#lightbox-close {
  position: fixed;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  opacity: 0.75;
  transition: opacity 0.15s;
}

#lightbox-close:hover {
  opacity: 1;
}

#main-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.submenu-btn {
  background: var(--cs-submenu-btn);
  border: 2px solid var(--cs-submenu-btn-border);
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  width: 180px;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}

.submenu-btn.hover,
.submenu-btn:hover {
  background: var(--cs-submenu-btn-hover);
  border-color: var(--cs-submenu-btn-hover-border);
}

.submenu-explanation-box {
  background: var(--cs-submenu-explanation-bg);
  color: var(--cs-primary-text);
  padding: 12px 16px;
  border-radius: 6px;
  max-width: 520px;
  line-height: 1.4;
}
#submenu-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#main-menu-container {
  position: relative;
}
.flow-btn-menu {
  width: 250px; /* fits ~15 characters comfortably */
  text-align: left; /* optional: keeps text clean */
}
.submenu-btn {
  width: 180px;
}

/* Center THE VISION media and override inline right/left alignment within THE VISION section */
#project .project-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
}

/* Force inline-flex rows in project media to stack and center their children */
#project .project-media > div[style] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Side-by-side layout: overrides the column override above */
#project .project-media > div.side-by-side {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 40px !important;
}

#project .project-media > div.side-by-side > div {
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
}

/* Text column: left half */
#project .project-media > div.side-by-side > div:first-child {
  flex: 1 1 0 !important;
  justify-content: flex-start !important;
}

/* Image column: right half */
#project .project-media > div.side-by-side > div:last-child {
  flex: 1 1 0 !important;
}

#project .project-media > div.side-by-side > div:first-child .media-caption {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

/* Ensure images inside project are centered */
#project img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* But don't force auto-margin on images inside side-by-side (let flexbox handle it) */
#project .project-media > div.side-by-side img {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Center media-caption blocks (not inside side-by-side — those are overridden below) */
#project .media-caption {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* New THE VISION row/column helpers */
#project .project-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  margin: 24px 0 0 0;
}

#project .project-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 50%;
  max-width: 50%;
}

@media (max-width: 800px) {
  #project .project-row {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  #project .project-col {
    max-width: 100%;
    width: 100%;
  }
}

/* ------------------------------
   VISUAL VIBE / MOODBOARDS
--------------------------------*/
.visual-vibe-layout {
  padding: 0 0 60px 0;
}

.moodboard-subsection {
  margin-bottom: 56px;
}

.moodboard-subsection-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 24px 14px;
}

.moodboard-subsection-header::before,
.moodboard-subsection-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cs-border);
}

.moodboard-subsection-title {
  font-family: "Orbitron", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: var(--cs-secondary-text);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Masonry-style collage via CSS columns */
.moodboard-collage {
  columns: 5;
  column-gap: 3px;
  padding: 0;
  line-height: 0; /* eliminates inline-block gaps */
}

.moodboard-collage img {
  width: 100%;
  display: block;
  margin-bottom: 3px;
  break-inside: avoid;
  line-height: normal;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.moodboard-collage img:hover {
  opacity: 0.82;
  transform: scale(1.015);
  position: relative;
  z-index: 1;
}

@media (max-width: 1200px) {
  .moodboard-collage { columns: 4; }
}

@media (max-width: 900px) {
  .moodboard-collage { columns: 3; }
}

@media (max-width: 600px) {
  .moodboard-collage { columns: 2; }
}