/* Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header – hidden on About page only */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1.5rem 2rem;
  background: #000;
  border-bottom: 1px solid #333;
}

.header-title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header-subtitle {
  margin: 0.75rem 0 0;
  font-size: clamp(0.875rem, 2vw, 1.25rem);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.nav-bar {
  text-align: center;
  margin: 30px 0 0;
  border-top: 1px solid #555;
  padding-top: 20px;
}

.nav-link {
  margin: 0 25px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease-in-out;
}

.nav-link:hover {
  color: #fffacd;
  text-decoration: underline;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  transform: translateY(-2px);
}

.home-link {
  display: none;
}

.about-section {
  padding: 120px 15% 0;
  overflow-y: auto;
}

.about-v2-section {
  padding: 220px 15% 2rem;
  overflow-y: auto;
}

.about-v2-inner {
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 60px;
  color: #ffffff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.about-v2-left {
  flex: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
}

.about-v2-title {
  margin: 0 0 1.5rem;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 5rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.about-v2-body {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.7;
}

.about-v2-link {
  color: #5B9BD5;
  text-decoration: underline;
}

.about-v2-link:hover {
  color: #7eb8e8;
}

.about-v2-quote {
  margin: 1.75rem 0 1.75rem;
  padding: 0.75rem 0 0.75rem 0.5rem;
  border-left: 3px solid #ffffff;
  font-size: 1.5rem;
  font-style: italic;
}

.about-v2-bottom {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #555555;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.about-v2-column {
  min-width: 180px;
  flex: 1 1 0;
}

.about-v2-column-title {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-v2-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.6;
}

.about-v2-right {
  flex: 2;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
}

/* Image column matches text column height; minimalist frame with subtle separation */
.about-v2-image-placeholder {
  width: 100%;
  max-width: 420px;
  min-height: 280px;
  align-self: stretch;
  background-color: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.about-v2-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About v2 entrance animations */
.about-v2-title {
  opacity: 0;
  transform: translateX(-40px);
  transition: transform 1400ms ease, opacity 1400ms ease;
}

.about-v2-image-placeholder {
  opacity: 0;
  transition: opacity 1400ms ease 200ms;
}

body.about-v2-animate .about-v2-title {
  opacity: 1;
  transform: translateX(0);
}

body.about-v2-animate .about-v2-image-placeholder {
  opacity: 1;
}

@media (max-width: 900px) {
  .about-v2-inner {
    flex-direction: column;
    gap: 2.5rem;
  }

  .about-v2-right {
    justify-content: flex-start;
  }
}

/* Main and carousel container */
.main {
  padding: 2rem 1rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-section,
.landing-v2-section,
.about-section,
.about-v2-section,
.learning-prototype-section,
.ai-workflow-section,
.impact-section {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  background: #000;
  padding: 120px 15% 0;
  box-sizing: border-box;
}

.landing-section {
  padding: 120px 15% 2rem;
  background-image: url("assets/images/my_landing_page.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Home V2: tile grid layout */
.landing-v2-section {
  padding: 200px 5% 3rem;
  overflow-y: auto;
  background: #0d0d0d;
}

.landing-v2-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.landing-v2-title {
  margin: 0 0 2.5rem;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #fff;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1200ms ease, transform 1200ms ease;
}

body.landing-v2-animate .landing-v2-title {
  opacity: 1;
  transform: translateX(0);
}

.landing-v2-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.landing-v2-tile {
  aspect-ratio: 16 / 9;
  max-width: 400px;
  perspective: 800px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 300ms ease, transform 300ms ease;
}

body.landing-v2-animate .landing-v2-tile {
  opacity: 1;
  transform: translateY(0);
}

/* Each tile starts when the previous one’s 600ms animation ends (left-to-right, row by row) */
.landing-v2-tile:nth-child(1) { transition-delay: 0ms; }
.landing-v2-tile:nth-child(2) { transition-delay: 300ms; }
.landing-v2-tile:nth-child(3) { transition-delay: 600ms; }
.landing-v2-tile:nth-child(4) { transition-delay: 900ms; }
.landing-v2-tile:nth-child(5) { transition-delay: 1200ms; }
.landing-v2-tile:nth-child(6) { transition-delay: 1500ms; }
.landing-v2-tile:nth-child(7) { transition-delay: 1800ms; }
.landing-v2-tile:nth-child(8) { transition-delay: 2100ms; }
.landing-v2-tile:nth-child(9) { transition-delay: 2400ms; }
.landing-v2-tile:nth-child(10) { transition-delay: 2700ms; }
.landing-v2-tile:nth-child(11) { transition-delay: 3000ms; }
.landing-v2-tile:nth-child(12) { transition-delay: 3300ms; }

.landing-v2-tile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.landing-v2-tile:hover .landing-v2-tile-inner {
  transform: rotateY(180deg);
}

.landing-v2-tile-front,
.landing-v2-tile-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
}

.landing-v2-tile-front img,
.landing-v2-tile-front video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-v2-tile-front img.landing-v2-img-reveal-top {
  object-position: 50% 15%;
}

.landing-v2-tile-front img.landing-v2-img-position-55 {
  object-position: 50% 55%;
}

.landing-v2-tile-front img.landing-v2-img-position-20 {
  object-position: 50% 20%;
}

.landing-v2-tile-front video.landing-v2-video-position-15 {
  object-position: 50% 15%;
}

.landing-v2-tile-front video.landing-v2-video-position-50 {
  object-position: 50% 50%;
}

.landing-v2-tile-front video.landing-v2-video-position-40 {
  object-position: 50% 40%;
}

.landing-v2-tile-front.landing-v2-tile-placeholder {
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-v2-placeholder-text {
  color: #555;
  font-size: 0.9rem;
}

.landing-v2-tile-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: hidden;
  overflow-y: auto;
}

.landing-v2-tile-label {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
}

.landing-v2-tile-value {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #e9e0db;
}

.landing-v2-tile-value:last-child {
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  .landing-v2-tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .landing-v2-tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .landing-v2-section {
    padding-top: 220px;
  }
  .landing-v2-tile-grid {
    grid-template-columns: 1fr;
  }
  .landing-v2-tile {
    max-width: none;
  }
}

.about-v2-section {
  padding-top: 220px;
  padding-bottom: 2rem;
}

@media (max-width: 768px) {
  .about-v2-section {
    padding-top: 240px;
  }
}

/* Impact section content */
.impact-section {
  padding: 120px 8% 60px;
  overflow-y: auto;
  color: #e9e0db;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.impact-section .impact-header {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.impact-section .impact-line {
  width: 60px;
  height: 1px;
  background-color: #333;
  margin: 15px 0 50px 0;
}

.impact-section .impact-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.impact-section .pdf-wrapper {
  flex: 1 1 500px;
  max-width: 600px;
}

.impact-section .pdf-wrapper iframe {
  width: 100%;
  height: 750px;
  border: none;
  background-color: #111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.impact-section .download-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1px;
  color: #000;
  background-color: #e9e0db;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.impact-section .download-btn:hover {
  background-color: #fff;
  color: #000;
}

.impact-section .impact-text {
  flex: 1 1 350px;
  max-width: 480px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: #e9e0db;
}

@media (max-width: 900px) {
  .impact-section .impact-container {
    flex-direction: column;
  }

  .impact-section .pdf-wrapper iframe {
    height: 600px;
  }

  .impact-section .download-btn {
    margin-top: 15px;
  }
}

.about-section-title,
.learning-prototype-section-title,
.ai-workflow-section-title {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
}

.learning-prototype-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 1rem;
  box-sizing: border-box;
}

.learning-prototype-carousel .slide video {
  max-width: 85%;
  max-height: 65vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

body.view-landing #images,
body.view-landing .main,
body.view-landing-v2 #images,
body.view-landing-v2 .main,
body.view-about #images,
body.view-about .main,
body.view-about-v2 #images,
body.view-about-v2 .main,
body.view-learning-prototype #images,
body.view-learning-prototype .main,
body.view-learning-workflow #images,
body.view-learning-workflow .main,
body.view-impact #images,
body.view-impact .main,
body.view-videos #images,
body.view-videos .main {
  display: none;
}

body.view-landing .landing-section,
body.view-landing-v2 .landing-v2-section,
body.view-about .about-section,
body.view-about-v2 .about-v2-section,
body.view-learning-prototype .learning-prototype-section,
body.view-learning-workflow .ai-workflow-section,
body.view-impact .impact-section {
  display: block;
}

.videos-section {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  background: #000;
  padding: 120px 15% 2rem;
  box-sizing: border-box;
  overflow-y: auto;
}

.videos-section-title {
  margin: 0 0 1.5rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
}

.videos-section-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.videos-section .slide video {
  max-height: 70vh;
}

body.view-videos .videos-section {
  display: block;
}

.carousel {
  position: relative;
  width: 100%;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 4px;
  background: #0a0a0a;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-out;
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.slide img,
.slide video {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.slide--small-video video {
  max-width: 55%;
  max-height: 45vh;
}

.slide video {
  background: #111;
}

/* Carousel buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #555;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: #888;
  color: #fff;
}

.carousel-btn:focus {
  outline: none;
}

.carousel-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.carousel-btn-prev {
  left: 0.5rem;
}

.carousel-btn-next {
  right: 0.5rem;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #555;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-dots button:hover {
  background: #444;
  border-color: #777;
}

.carousel-dots button[aria-selected="true"] {
  background: #fff;
  border-color: #fff;
}

.carousel-dots button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
