@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=M+PLUS+Rounded+1c&family=Major+Mono+Display&display=swap');

/* RF Dewi (regular width) */
@font-face { font-family: 'RFDewi'; font-weight: 300; font-style: normal; src: url('fonts/regular/RFDewi-Light.woff2') format('woff2'), url('fonts/regular/RFDewi-Light.woff') format('woff'); }
@font-face { font-family: 'RFDewi'; font-weight: 300; font-style: italic; src: url('fonts/regular/RFDewi-LightItalic.woff2') format('woff2'), url('fonts/regular/RFDewi-LightItalic.woff') format('woff'); }
@font-face { font-family: 'RFDewi'; font-weight: 400; font-style: normal; src: url('fonts/regular/RFDewi-Regular.woff2') format('woff2'), url('fonts/regular/RFDewi-Regular.woff') format('woff'); }
@font-face { font-family: 'RFDewi'; font-weight: 400; font-style: italic; src: url('fonts/regular/RFDewi-Italic.woff2') format('woff2'), url('fonts/regular/RFDewi-Italic.woff') format('woff'); }

/* RF Dewi Condensed */
@font-face { font-family: 'RFDewiCondensed'; font-weight: 100; font-style: normal; src: url('fonts/RFDewiCondensed-Thin.woff2') format('woff2'), url('fonts/RFDewiCondensed-Thin.woff') format('woff'); }
@font-face { font-family: 'RFDewiCondensed'; font-weight: 100; font-style: italic; src: url('fonts/RFDewiCondensed-ThinItalic.woff2') format('woff2'), url('fonts/RFDewiCondensed-ThinItalic.woff') format('woff'); }
@font-face { font-family: 'RFDewiCondensed'; font-weight: 200; font-style: normal; src: url('fonts/RFDewiCondensed-Ultralight.woff2') format('woff2'), url('fonts/RFDewiCondensed-Ultralight.woff') format('woff'); }
@font-face { font-family: 'RFDewiCondensed'; font-weight: 200; font-style: italic; src: url('fonts/RFDewiCondensed-UltralightItalic.woff2') format('woff2'), url('fonts/RFDewiCondensed-UltralightItalic.woff') format('woff'); }
@font-face { font-family: 'RFDewiCondensed'; font-weight: 300; font-style: normal; src: url('fonts/RFDewiCondensed-Light.woff2') format('woff2'), url('fonts/RFDewiCondensed-Light.woff') format('woff'); }
@font-face { font-family: 'RFDewiCondensed'; font-weight: 300; font-style: italic; src: url('fonts/RFDewiCondensed-LightItalic.woff2') format('woff2'), url('fonts/RFDewiCondensed-LightItalic.woff') format('woff'); }
@font-face { font-family: 'RFDewiCondensed'; font-weight: 400; font-style: normal; src: url('fonts/RFDewiCondensed-Regular.woff2') format('woff2'), url('fonts/RFDewiCondensed-Regular.woff') format('woff'); }
@font-face { font-family: 'RFDewiCondensed'; font-weight: 400; font-style: italic; src: url('fonts/RFDewiCondensed-Italic.woff2') format('woff2'), url('fonts/RFDewiCondensed-Italic.woff') format('woff'); }
@font-face { font-family: 'RFDewiCondensed'; font-weight: 600; font-style: normal; src: url('fonts/RFDewiCondensed-Semibold.woff2') format('woff2'), url('fonts/RFDewiCondensed-Semibold.woff') format('woff'); }
@font-face { font-family: 'RFDewiCondensed'; font-weight: 600; font-style: italic; src: url('fonts/RFDewiCondensed-SemiboldItalic.woff2') format('woff2'), url('fonts/RFDewiCondensed-SemiboldItalic.woff') format('woff'); }
@font-face { font-family: 'RFDewiCondensed'; font-weight: 700; font-style: normal; src: url('fonts/RFDewiCondensed-Bold.woff2') format('woff2'), url('fonts/RFDewiCondensed-Bold.woff') format('woff'); }
@font-face { font-family: 'RFDewiCondensed'; font-weight: 700; font-style: italic; src: url('fonts/RFDewiCondensed-BoldItalic.woff2') format('woff2'), url('fonts/RFDewiCondensed-BoldItalic.woff') format('woff'); }
@font-face { font-family: 'RFDewiCondensed'; font-weight: 800; font-style: normal; src: url('fonts/RFDewiCondensed-Ultrabold.woff2') format('woff2'), url('fonts/RFDewiCondensed-Ultrabold.woff') format('woff'); }
@font-face { font-family: 'RFDewiCondensed'; font-weight: 800; font-style: italic; src: url('fonts/RFDewiCondensed-UltraboldItalic.woff2') format('woff2'), url('fonts/RFDewiCondensed-UltraboldItalic.woff') format('woff'); }
@font-face { font-family: 'RFDewiCondensed'; font-weight: 900; font-style: normal; src: url('fonts/RFDewiCondensed-Black.woff2') format('woff2'), url('fonts/RFDewiCondensed-Black.woff') format('woff'); }
@font-face { font-family: 'RFDewiCondensed'; font-weight: 900; font-style: italic; src: url('fonts/RFDewiCondensed-BlackItalic.woff2') format('woff2'), url('fonts/RFDewiCondensed-BlackItalic.woff') format('woff'); }


@keyframes letterFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes borderShrink {
  from { border-left-width: 30px; }
  to   { border-left-width: 4px; }
}

@keyframes overlayBlink {
  0%   { opacity: 1; }
  5%  { opacity: 0; }
  8%  { opacity: 1; }
  10%  { opacity: 0; }
  80%  { opacity: 1; }
  100% { opacity: 1; }
}

/* ============================================
   MENU TYPOGRAPHY
   Edit here to change all menu card fonts,
   sizes and colours in one place.
   ============================================ */
:root {
  --menu-font:        'Major Mono Display', monospace;
  --menu-color:       white;
  --menu-size:        2rem;                       /* collapsed cards — desktop */
  --menu-size-active: clamp(1.8rem, 6vw, 4.5rem); /* expanded active card */
}
@media (max-width: 1024px) {
  :root { --menu-size: 1.6rem; }                  /* collapsed cards — tablet */
}
@media (max-width: 768px) {
  :root { --menu-size: 1.4rem; }                  /* collapsed cards — mobile */
}
/* ============================================ */

.letter {
  opacity: 0;
  animation: letterFadeIn 0.4s ease forwards;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: Helvetica, sans-serif;
}

li {
  font-size: 1em;
}

html {
  background-color: #000000;
}

.rail {
  scrollbar-width: none;
  -ms-overflow-style: none;  
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;

  overflow-x: auto;
  padding: 0rem;
  margin: 0;
  min-height: 600px; /* Add this - makes it taller */
}


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

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.3) 0%,      /* Dark at top */
    rgba(0, 0, 0, 0.4) 100%     /* Darker at bottom */
  );
  pointer-events: none;
  z-index: 0; /* Make sure it's on top of image but below text */
}

.card {
  font-family: var(--menu-font);
  font-size: var(--menu-size);
  color: var(--menu-color);
  position: relative;
  height: 600px;
  padding: 1rem;
  background-color: white;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transition: background-position 1.5s ease, transform 0.3s ease;
  margin: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  z-index: 0;
  display: flex;
  align-items: flex-end;
}

/* Hide the ::before overlay when card is active */
.card.active::before {
  display: none; /* This removes the dark overlay */
}


.card.active {
  background-size: cover;
  background-position: center 35%;
  font-size: var(--menu-size-active);
  font-weight: bold;
  line-height: 0.8;
  border: none;
  border-left: 30px solid #ffffff;
  animation: borderShrink 0.5s ease 1.2s forwards;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 25px;
  position: relative; /* Make sure this is here */
  z-index: 1; /* Add this - brings text above */
}



.card.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 88, 38, 0.5) 100%
  );
  pointer-events: none;
  z-index: 0;
  animation: overlayBlink 1.2s ease forwards;
}

.card-text-wrapper {
  position: relative;
  z-index: 1;
}


/* page content section */

.page-content {
  position: relative;
  width: 100%;
  min-height: 100svh;
  background-color: rgb(236, 236, 236);
  padding: 30px 30px;
  border-top: 4px solid white;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: rgb(255, 253, 255);
}

.page-content.visible {
  display: flex;
}

#home, #about {
  background-attachment: fixed;
}

.page-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 88, 38, 1) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Sticky scroll — all screen sizes (pages with .page-content-wrapper) */
.page-content-wrapper .page-content {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: unset;
  overflow: hidden;
  z-index: 10;
}

.page-content-wrapper .page-content::before {
  z-index: 1;
}

.page-content-wrapper .page-bg {
  display: none;
}

.page-content-wrapper .page-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 80px 110px 60px 110px;
  will-change: transform;
  backface-visibility: hidden;
}

/* two-column row layout */
.content-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 560px;
  gap: 60px;
  margin-bottom: 60px;
}

.page-title-vertical {
  position: absolute;
  left: 5px;
  top: 5px;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  font-family: 'Major Mono Display', monospace;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: bold;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.8);
  z-index: 1;
}

.content-left {
  text-align: left;
  background-color: white;
  color: black;
  padding: 20px;
}

.content-right {
  text-align: left;
  background-color: white;
  color: black;
  padding: 20px;
}

.page-content h1 {
  font-family: 'Major Mono Display', monospace;
  font-size: 2em;
  margin-bottom: 0;
  text-align: left;
}

.page-content h2 {
  font-family: 'RFDewiCondensed', sans-serif;
  font-weight: 700;
  font-size: 2.6em;
  margin-top: 32px;
  margin-bottom: 12px;
  text-align: left;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-family: 'RFDewi', sans-serif;
  font-weight: 600;
  font-size: 1.7em;
  margin-bottom: 8px;
  text-align: left;
}

.page-content p {
  font-family: 'RFDewi', sans-serif;
  font-weight: 400;
  font-size: 1.4em;
  line-height: 1.4;
  margin-bottom: 24px;
  text-align: left;
}

.page-content ul {
  margin: 8px 0 12px 20px;
}

.page-content li {
  font-family: 'RFDewi', sans-serif;
  font-weight: 300;
  font-size: 1.4em;
  line-height: 1.4;
  margin-bottom: 6px;
}

.content-right ol {
  padding-left: 2em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}




/* About page two-column layout */
.about-page {
  padding-left: 120px;
  padding-right: 120px;
  color: rgb(255, 255, 255);
}

.about-page .page-title-vertical {
  color: rgba(255, 255, 255, 0.8);
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Index page two-column layout */
.index-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  width: 80%;
  position: relative;
  z-index: 1;
}

@media (orientation: landscape) and (min-width: 769px) {
  .about-columns,
  .index-columns {
    grid-template-columns: 1fr 2fr;
  }
}

/* Whitepaper noise texture */
#whitepaper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* Whitepaper single-page layout */
.wp-intro {
  max-width: 700px;
  margin: 60px auto 60px;
  padding: 0 40px;
  text-align: center;
  color: black;
  position: relative;
  z-index: 1;
}

.wp-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.wp-card {
  background: rgba(255, 255, 255, 0.50);
  border-radius: 50px 0 0 0;
  color: black;
  padding: 30px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.wp-card h3 {
  font-family: 'RFDewi', sans-serif;
  font-weight: 400;
  font-size: 1.5em;
  margin: 0 0 12px;
  color: black;
}


.title-inline {
  font-family: 'RFDewiCondensed', sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
}

.wp-card p {
  font-family: 'RFDewi', sans-serif;
  font-weight: 300;
  font-size: 1.1em;
  color: #444;
  margin: 0;
  line-height: 1.5;
}

.proto-section {
  display: none;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.proto-section.open {
  display: block;
}

.proto-card {
  cursor: pointer;
  user-select: none;
}

.proto-card.active-proto {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.proto-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.proto-try-link {
  display: inline-block;
  width: 300px;
  margin-top: 40px;
}

.page-content a:not(.wp-card):not(.proto-try-link) {
  color: #FF5826;
  text-decoration: none;
}

.page-content a:not(.wp-card):not(.proto-try-link):hover {
  text-decoration: underline;
}

.page-content em {
  font-family: 'RFDewi', sans-serif;
  font-weight: 300;
  font-style: italic;
}

.finding-label {
  font-family: 'RFDewi', sans-serif;
  font-weight: 300;
  font-style: italic;
  display: block;
  margin-bottom: 4px;
}

.wp-section code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background: rgba(0,0,0,0.07);
  padding: 1px 5px;
  border-radius: 3px;
}

.proto-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .proto-cards {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
}

.wp-section {
  max-width: 700px;
  margin: 0 auto 70px;
  padding: 0 40px;
  scroll-margin-top: 40px;
  color: black;
  position: relative;
  z-index: 1;
}

.wp-download {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 80px;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.wp-download .wp-card {
  display: inline-block;
  width: 300px;
}

.wp-section h2 {
  border-bottom: 2px solid #FF5826;
  padding-bottom: 10px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .wp-cards {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .wp-intro, .wp-section {
    padding: 0 20px;
  }
}

/* Roadmap timeline */
.roadmap-timeline {
  max-width: 700px;
  width: 100%;
  margin: 60px auto 80px;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: calc(40px + 7px);
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #FF5826;
  opacity: 0.3;
}

.roadmap-phase {
  display: flex;
  gap: 28px;
  margin-bottom: 52px;
  position: relative;
}

.roadmap-marker {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid #FF5826;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.roadmap-phase.current .roadmap-marker {
  background: #FF5826;
  box-shadow: 0 0 0 4px rgba(255, 88, 38, 0.2);
}

.roadmap-phase.current .roadmap-content {
  background: rgba(255, 88, 38, 0.12);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-left: -4px;
}

.roadmap-phase.current .roadmap-content h2,
.roadmap-phase.current .roadmap-content li {
  color: #FF5826;
  margin-top: 0;
}

.roadmap-content {
  flex: 1;
}

.roadmap-content h2 {
  margin-top: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid #FF5826;
  padding-bottom: 10px;
}

.roadmap-content ul {
  margin: 0;
  padding-left: 20px;
}

.roadmap-content li {
  font-family: 'RFDewi', sans-serif;
  font-weight: 400;
  font-size: 1.4em;
  line-height: 1.4;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .roadmap-timeline {
    padding: 0 20px;
    margin-top: 40px;
  }
  .roadmap-timeline::before {
    left: calc(20px + 7px);
  }
}

/* Footer section here */
.footer {
  position: relative;
  background-color: #FF5826;
  padding: 40px 20px;
  padding-top: 60px; /* Extra space for the line */
  color: white;
  margin: 0; /* Remove all margins */
  border-right: 4px solid white;
}

/* Blurred line at top of footer */
.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: #FF5826;
  box-shadow: 0 0 20px 10px rgba(255, 88, 38, 1);
  filter: blur(1px);
}


.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 equal columns */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column:first-child h3 {
  font-family: 'Major Mono Display', monospace;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.footer-column:not(:first-child) h3 {
  font-family: 'RFDewiCondensed', sans-serif;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.footer-column p {
  font-family: 'RFDewi', sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

.footer a {
  color: white;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}



/* Mobile responsive - stack columns */
@media (max-width: 768px) {
  .footer {
    padding: 24px 16px;
    padding-top: 36px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-column p {
    margin: 0;
    padding: 10px 0;
    line-height: 1;
  }
  .footer-column a {
    display: block;
  }
  .footer-column h3 {
    margin-bottom: 8px;
  }

  .content-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 60px;
  }

  /* Accordion — whitepaper mobile */
  .content-row.accordion {
    display: block;
    width: calc(100vw - 80px);
    box-sizing: border-box;
  }

  .content-row.accordion .content-left {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    width: 100%;
    box-sizing: border-box;
  }

  .content-row.accordion .content-left::after {
    content: '+';
    font-family: 'Major Mono Display', monospace;
    font-size: 1.4em;
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.3s ease;
  }

  .content-row.accordion.open .content-left::after {
    content: '−';
  }

  .content-row.accordion .content-right {
    display: none;
  }

  .content-row.accordion.open .content-right {
    display: block;
    background-color: white;
    padding: 20px;
  }
}

/* Whitepaper desktop read-more */
@media (min-width: 769px) {
  .content-row.accordion .content-right > div {
    display: none;
  }

  .content-row.accordion.open .content-right > div {
    display: block;
  }

  .content-row.accordion.open .read-more-preview {
    display: none;
  }

  .read-more-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Major Mono Display', monospace;
    font-size: 0.8em;
    color: inherit;
    text-decoration: underline;
    padding: 0;
    margin-left: 10px;
    opacity: 0.7;
  }

  .read-more-btn:hover {
    opacity: 1;
  }
}

/* Rail container + nav arrows */
.rail-container {
  position: relative;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background: rgba(255, 255, 255, 0.35);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
  font-size: 2em;
  width: 44px;
  height: 44px;
  cursor: pointer;
  line-height: 1;
}

.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.nav-left {
  left: 10px;
}

.nav-right {
  right: 10px;
}

.nav-arrow.hidden {
  display: none;
}

/* scroll down button */
.scroll-down-btn {
  position: absolute;
  bottom: 20px;
  right: 20px; /* Bottom right corner */
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  color: white;
  transition: all 0.3s ease;
  z-index: 1000;
  display: none; /* Hidden by default */
}

.card.active .scroll-down-btn {
  display: flex; /* Show only on active card */
  align-items: center;
  justify-content: center;
}

.scroll-down-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}





/* Tablet (iPad) */
@media (max-width: 1024px) {
  .about-page {
    padding-left: 60px;
    padding-right: 40px;
  }
  .footer {
    padding: 30px 20px;
    padding-top: 44px;
  }
  .footer-column p {
    margin: 0;
    padding: 8px 0;
    line-height: 1;
  }
  .footer-column a {
    display: block;
  }
  .rail {
    grid-auto-columns: 100px;
    min-height: 500px;
  }
  .card {
    height: 500px;
  }
}


/* Mobile (Phone) */
.home-bg,
.about-bg {
  display: none;
}

@media (hover: none) {
  #home {
    background-image: none !important;
    background-color: transparent;
  }
  .home-bg {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100lvh;
    background-image: url('images/jpg/background2.jpg');
    background-size: cover;
    background-position: bottom center;
    z-index: -1;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  #about {
    background-image: none !important;
    background-color: transparent;
  }
  .about-bg {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100lvh;
    background-image: url('images/jpg/background_pink.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  #about {
    background-attachment: scroll;
  }
  .page-content {
    padding: 40px 5px 50px 30px;
  }
  .page-content.about-page {
    padding: 40px 25px 50px 50px;
  }
  .index-columns {
    gap: 0;
  }
  .index-col-left {
    display: none;
  }
  .rail {
    grid-auto-columns: 80px;
    min-height: 400px;
  }
  .card {
    height: 400px;
    padding: 0.5rem;
  }
  .card.active {
    font-size: 2.6rem;
    line-height: 1.1;
    padding: 25px;
  }
}

/* All touch devices (portrait + landscape) — single column, no left spacer */
@media (hover: none) {
  .index-columns,
  .about-columns {
    grid-template-columns: 1fr;
  }
  .index-col-left {
    display: none;
  }
}

/* Mobile landscape — touch devices rotated sideways */
@media (hover: none) and (orientation: landscape) {
  .page-content {
    padding: 30px 20px 30px 60px;
  }
}

/* Ensure all images inside .card fill the full div, even when not selected */
.card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Card 1 portrait text variant */
.card-text-portrait { display: none; }

@media (max-width: 768px) and (orientation: portrait) {
  .card.active .card-text-default  { display: none; }
  .card.active .card-text-portrait { display: inline; }
}

/* Full viewport height */
.rail, .card {
  height: 100svh;
  min-height: unset;
}

