/* #region Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  overflow: hidden;
  font-family: "Lato", sans-serif;
}

@media (max-width: 768px) {
  body {
    grid-template-rows: 1fr auto;
  }
}
/* #endregion */

/* #region Gradient */
.global-grad {
  z-index: -2;
  position: fixed;
  inset: 0;
  background: linear-gradient(270deg, #0f3a75 0%, #112f66 18%, #132658 35%, #152654 48%, #161f3e 58%, #161f3e 70%, #161f3e 83%, #11162b 92%, #0a0f1b 100%);
  background-size: 250% 100%;
  animation: wave-shift 32s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  will-change: background-position;
}

@keyframes wave-shift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 60% 0%;
  }
  100% {
    background-position: 0% 0%;
  }
}
/* #endregion */

/* #region Nav Row */
.nav-row {
  z-index: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .nav-row {
    grid-row: 2;
  }
}

.nav-responsive {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(0.5rem, 1.5vh, 0.75rem) clamp(1rem, 3vw, 2rem);
}

.nav-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.nav-logo {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.25rem;
}

.nav-logo img {
  width: auto;
  height: clamp(32px, 4vh, 40px);
}

.brand-name {
  color: #0a66c2;
  font-weight: 900;
  font-size: clamp(1rem, 4vw, 1.4rem);
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-flow: column;
  justify-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  list-style: none;
}

.nav-links a {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  padding: clamp(0.25rem, 1vh, 0.5rem) clamp(0.5rem, 1.5vw, 0.75rem);
  gap: clamp(0.25rem, 1vw, 0.5rem);
  border-radius: 2rem;
  color: #4a5b6e;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.nav-links a .material-icons {
  font-size: clamp(1.2rem, 3vw, 1.35rem);
}

.nav-links a:hover {
  background: #eef3fc;
  color: #0a66c2;
}

.nav-links li.active a {
  background: #0a66c2;
  color: white;
}

.nav-right {
  width: 80px;
}

@media (max-width: 768px) {
  .nav-content {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    justify-items: center;
    order: 1;
  }

  .nav-logo {
    grid-template-columns: auto;
    justify-self: end;
    order: 2;
  }

  .brand-name,
  .nav-text {
    display: none;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: 0.75rem;
  }

  .nav-links a .material-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.5rem;
    line-height: 1;
  }

  .nav-right {
    display: none;
  }
}
/* #endregion */

/* #region Body Row & Sections */
.body-row {
  z-index: 0;
  overflow-y: scroll;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

.section {
  contain: layout style paint;
  contain-intrinsic-size: 100vh;
  content-visibility: auto;
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.body-responsive {
  width: 100%;
  max-width: 1400px;
  height: min-height;
  margin: 0 auto;
  padding: clamp(1rem, 3vh, 2rem);
  overflow: hidden;
}

.section-content {
  display: grid;
  z-index: 1;
  position: relative;
  align-content: center;
  align-items: end;
  justify-items: center;
  min-height: 100vh;
  padding: clamp(1rem, 3vh, 2rem);
}

.section-responsive {
  display: grid;
  width: 100%;
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: clamp(1rem, 3vh, 2rem);
}

/* Background Videos */
.bg-video-container {
  z-index: -1;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Smooth snap easing for carousel */
@supports (scroll-snap-stop: always) {
  .body-row {
    scroll-snap-type: y mandatory;
  }
}

/* Smooth scroll for internal scrolling sections */
#chome,
#pusp,
#pspec {
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  .body-row {
    grid-row: 1;
  }
}

/* #endregion */

/* #region Typography */
h1,
h2,
h3 {
  font-variant: small-caps;
}

h1 {
  color: #16acf9;
}

h2 {
  color: #8be1fc;
}

h3 {
  color: #808080;
}

p {
  color: #eff7fa;
}
/* #endregion */

/* #region Section: Home */

.home-txt {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  align-items: start;
  align-self: end;
  justify-items: center;
  width: 100%;
  height: 50%;
  text-align: center;
}

.home-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(3.5rem, 15vw, 8rem);
  line-height: 1.2;
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
  filter: blur(10px);
  opacity: 0;
  will-change: transform, filter, opacity;
}

.section.animate .home-title {
  animation: title-reveal 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 1s;
}

.home-tagline {
  display: grid;
  grid-auto-flow: column;
  margin: 0;
  gap: clamp(0.7em, 2.2vw, 5em);
}

.home-word {
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.7);
  opacity: 0;
  will-change: transform, opacity;
}

.section.animate .home-word {
  animation: word-fade 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.section.animate .home-word:nth-child(1) {
  animation-delay: 3s;
}

.section.animate .home-word:nth-child(2) {
  animation-delay: 3.5s;
}

.section.animate .home-word:nth-child(3) {
  animation-delay: 4s;
}

@keyframes title-reveal {
  0% {
    transform: scale(0.5);
    filter: blur(10px);
    opacity: 0;
  }
  45% {
    transform: scale(1.03);
    filter: blur(0);
    opacity: 0.95;
  }
  70% {
    transform: scale(0.99);
    opacity: 1;
  }
  85% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes word-fade {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  70% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
/* #endregion */

/* #region Section: Chome */
.chome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  gap: 2em;
}

.chome-text {
  display: grid;
  grid-template-rows: repeat(5, auto);
  align-content: center;
  gap: 0.5em;
  text-align: center;
}

/* Chome typography with text shadow and consistent font sizes */
.chome-text h1 {
  margin-bottom: 0.5em;
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.7);
}
.chome-text h2 {
  margin-top: 1em;
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.7);
}
.chome-text h3,
.chome-text p {
  margin-bottom: 0.5em;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
}

/* Font sizes - consistent across Chome, Pusp, Pspec */
.chome-text h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.chome-text h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.chome-text p {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
}

/* Animation base states */
.chome-text h1,
.chome-text h2,
.chome-text p {
  transform: translateX(-30px);
  opacity: 0;
  will-change: transform, opacity;
}

.section.animate .chome-text h1,
.section.animate .chome-text h2,
.section.animate .chome-text p {
  animation: line-fly-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Staggered animation delays */
.section.animate .chome-text h1:nth-of-type(1) {
  animation-delay: 0.5s;
}
.section.animate .chome-text h1:nth-of-type(2) {
  animation-delay: 1.5s;
}
.section.animate .chome-text p:nth-of-type(1) {
  animation-delay: 3s;
}
.section.animate .chome-text p:nth-of-type(2) {
  animation-delay: 3s;
}
.section.animate .chome-text p:nth-of-type(3) {
  animation-delay: 3s;
}
.section.animate .chome-text h2:nth-of-type(1) {
  animation-delay: 4s;
}
.section.animate .chome-text h1:nth-of-type(3) {
  animation-delay: 5s;
}
.section.animate .chome-text h2:nth-of-type(2) {
  animation-delay: 5s;
}

@keyframes line-fly-in {
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }
  60% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.chome-image {
  display: grid;
  align-items: center;
  justify-items: center;
  height: 100%;
}

.chome-image img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

/* Chome responsive: stack on mobile */
@media (max-width: 768px) {
  #chome {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    scroll-snap-stop: always;
  }

  #chome .body-responsive {
    height: auto;
    min-height: 100%;
    padding-bottom: 80px;
    overflow: visible;
  }

  .chome-grid {
    grid-template-rows: auto auto;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100%;
  }

  .chome-image {
    order: -1;
  }

  .chome-image img {
    max-height: 40vh;
  }
}

/* Chome desktop landscape - allow overflow when content exceeds viewport */
@media (min-width: 769px) and (orientation: landscape) {
  #chome {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    scroll-snap-stop: always;
  }

  #chome .body-responsive {
    height: auto;
    min-height: 100%;
    padding-bottom: 80px;
    overflow: visible;
  }

  .chome-grid {
    align-items: center;
    height: auto;
    min-height: 100%;
  }

  .chome-text,
  .chome-image {
    height: 100%;
  }
}

/* Chome mobile landscape */
@media (max-height: 500px) and (orientation: landscape) {
  #chome {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    scroll-snap-stop: always;
  }

  #chome .body-responsive {
    height: auto;
    min-height: 100%;
    padding-bottom: 80px;
    overflow: visible;
  }

  .chome-grid {
    height: auto;
    min-height: 100%;
  }
}
/* #endregion */

/* #region Section: Phome */
.phome-img {
  z-index: 0;
  position: absolute;
  bottom: 20%;
  left: 50%;
  width: auto;
  max-width: 100vw;
  transform: translateX(-50%);
}

.phome-img img {
  width: auto;
  max-width: 70vw;
  max-height: 70vh;
  object-fit: contain;
  transform: scale(0.8);
  opacity: 0;
  will-change: transform, opacity;
}

.section.animate .phome-img img {
  animation: phome-img-fade 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 4s;
}

@keyframes phome-img-fade {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.phome-txt {
  display: grid;
  z-index: 1;
  grid-template-rows: auto auto;
  align-content: start;
  align-items: start;
  align-self: end;
  justify-items: center;
  width: 90%;
  height: 40%;
  text-align: center;
}

.phome-txtbox {
  padding: clamp(1rem, 3vw, 2rem) clamp(1.5rem, 5vw, 3rem);
  transform: scale(0.8);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  will-change: transform, opacity;
}

.section.animate .phome-txtbox {
  animation: phome-txtbox-fade 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 5s;
}

@keyframes phome-txtbox-fade {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.phome-title {
  transform: scale(0.8);
  font-weight: 900;
  font-size: clamp(1.4rem, 12vw, 3rem);
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}

.section.animate .phome-title {
  animation: phome-title-fade 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 5s;
}

@keyframes phome-title-fade {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.phome-tagline {
  display: grid;
  grid-auto-flow: column;
  margin: 0;
  gap: 1.5em;
}

.phome-word {
  color: #eff7fa;
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 3rem);
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.7);
  filter: blur(10px);
  opacity: 0;
  will-change: transform, filter, opacity;
}

.section.animate .phome-word {
  animation: phome-word-blur 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 6s;
}

@keyframes phome-word-blur {
  0% {
    filter: blur(10px);
    opacity: 0;
  }
  100% {
    filter: blur(0);
    opacity: 1;
  }
}
/* #endregion */

/* #region Section: Pusp */
.pusp-grid {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "a b"
    "c d"
    "e f";
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 2em;
}

.pusp-img {
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 100%;
}

.pusp-img img {
  width: 100%;
  height: 40vh;
  object-fit: cover;
  border-radius: clamp(0.5rem, 2vw, 1rem);
  will-change: transform, opacity;
}

.section.animate .pusp-img img {
  animation: pusp-img-reveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.section.animate .pusp-img:nth-of-type(1) img {
  animation-delay: 0.3s;
}

.section.animate .pusp-img:nth-of-type(2) img {
  animation-delay: 0.6s;
}

.section.animate .pusp-img:nth-of-type(3) img {
  animation-delay: 0.9s;
}

@keyframes pusp-img-reveal {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.pusp-txt {
  display: grid;
  align-content: center;
  width: 100%;
  gap: 0.75em;
  text-align: left;
}

/* Text justification towards images */
.pusp-txt[style*="b"],
.pusp-txt[style*="f"] {
  padding-left: 1em;
}

.pusp-txt[style*="c"] {
  padding-right: 1em;
  text-align: right;
}

.pusp-img[style*="a"],
.pusp-img[style*="e"] {
  justify-items: end;
}

.pusp-img[style*="d"] {
  justify-items: start;
}

/* Pusp typography with text shadow and consistent font sizes */
.pusp-txt h1,
.pusp-txt h2,
.pusp-txt h3,
.pusp-txt p {
  will-change: transform, opacity;
}

.pusp-txt h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.7);
  opacity: 1;
}

.pusp-txt h2 {
  font-variant: small-caps;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.7);
  opacity: 1;
}

.pusp-txt h3 {
  font-size: clamp(1rem, 2vw, 1.3rem);
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
  opacity: 1;
}

.pusp-txt p {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
  opacity: 1;
}

/* Animation for all text elements */
.section.animate .pusp-txt h1,
.section.animate .pusp-txt h2,
.section.animate .pusp-txt h3,
.section.animate .pusp-txt p {
  animation: pusp-line-rise 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Staggered delays for text blocks - Block b (area b) */
.section.animate .pusp-txt[style*="b"] h1:nth-of-type(1) {
  animation-delay: 0.5s;
}
.section.animate .pusp-txt[style*="b"] p:nth-of-type(1) {
  animation-delay: 0.6s;
}
.section.animate .pusp-txt[style*="b"] p:nth-of-type(2) {
  animation-delay: 0.7s;
}
.section.animate .pusp-txt[style*="b"] p:nth-of-type(3) {
  animation-delay: 0.8s;
}
.section.animate .pusp-txt[style*="b"] p:nth-of-type(4) {
  animation-delay: 0.9s;
}
.section.animate .pusp-txt[style*="b"] p:nth-of-type(5) {
  animation-delay: 1s;
}
.section.animate .pusp-txt[style*="b"] p:nth-of-type(6) {
  animation-delay: 1.1s;
}
.section.animate .pusp-txt[style*="b"] p:nth-of-type(7) {
  animation-delay: 1.2s;
}

/* Block c (area c) - middle row */
.section.animate .pusp-txt[style*="c"] h1:nth-of-type(1) {
  animation-delay: 0.8s;
}
.section.animate .pusp-txt[style*="c"] p:nth-of-type(1) {
  animation-delay: 0.9s;
}
.section.animate .pusp-txt[style*="c"] p:nth-of-type(2) {
  animation-delay: 1s;
}
.section.animate .pusp-txt[style*="c"] h2:nth-of-type(1) {
  animation-delay: 1.1s;
}

/* Block f (area f) - last row */
.section.animate .pusp-txt[style*="f"] h1:nth-of-type(1) {
  animation-delay: 1.1s;
}
.section.animate .pusp-txt[style*="f"] p:nth-of-type(1) {
  animation-delay: 1.2s;
}
.section.animate .pusp-txt[style*="f"] p:nth-of-type(2) {
  animation-delay: 1.3s;
}
.section.animate .pusp-txt[style*="f"] p:nth-of-type(3) {
  animation-delay: 1.4s;
}
.section.animate .pusp-txt[style*="f"] p:nth-of-type(4) {
  animation-delay: 1.5s;
}

@keyframes pusp-line-rise {
  0% {
    transform: translateY(15px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Increased spacing between row pairs (ab, cd, ef) - landscape */
.pusp-img[style*="a"],
.pusp-txt[style*="b"] {
  margin-bottom: 1em;
}

.pusp-txt[style*="c"],
.pusp-img[style*="d"] {
  margin-top: 1em;
  margin-bottom: 1em;
}

.pusp-img[style*="e"],
.pusp-txt[style*="f"] {
  margin-top: 1em;
}

/* Pusp responsive on mobile portrait */
@media (max-width: 768px) and (orientation: portrait) {
  #pusp {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    scroll-snap-stop: always;
  }

  #pusp .body-responsive {
    height: auto;
    min-height: 100%;
    padding-bottom: 80px;
    overflow: visible;
  }

  .pusp-grid {
    grid-template-rows: repeat(6, auto);
    grid-template-columns: 1fr;
    grid-template-areas:
      "a"
      "b"
      "d"
      "c"
      "e"
      "f";
    height: auto;
    min-height: 100%;
    gap: 1.5em;
  }

  .pusp-img img {
    width: 100%;
    height: auto;
    max-height: 40vh;
    object-fit: cover;
    border-radius: clamp(0.5rem, 2vw, 1rem);
  }

  .pusp-txt {
    text-align: center;
  }

  .pusp-txt[style*="b"],
  .pusp-txt[style*="f"] {
    padding-left: 0;
  }

  .pusp-txt[style*="c"] {
    padding-right: 0;
    text-align: center;
  }

  /* Increased spacing between row pairs in portrait (a/b, d/c, e/f) */
  .pusp-img[style*="a"],
  .pusp-txt[style*="b"],
  .pusp-img[style*="d"],
  .pusp-txt[style*="c"],
  .pusp-img[style*="e"] {
    margin-bottom: 1.5em;
  }
}

/* Pusp desktop landscape - allow overflow when content exceeds viewport */
@media (min-width: 769px) and (orientation: landscape) {
  #pusp {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    scroll-snap-stop: always;
  }

  #pusp .body-responsive {
    height: auto;
    min-height: 100%;
    padding-bottom: 80px;
    overflow: visible;
  }

  .pusp-grid {
    height: auto;
    min-height: 100%;
  }
}

/* Pusp mobile landscape */
@media (max-height: 500px) and (orientation: landscape) {
  #pusp {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    scroll-snap-stop: always;
  }

  #pusp .body-responsive {
    height: auto;
    min-height: 100%;
    padding-bottom: 80px;
    overflow: visible;
  }

  .pusp-grid {
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "a b"
      "c d"
      "e f";
    height: auto;
    min-height: 100%;
  }

  .pusp-img img {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    object-fit: cover;
    border-radius: clamp(0.5rem, 2vw, 1rem);
  }
}
/* #endregion */

/* #region Section: Pspec */
.pspec-grid {
  display: grid;
  grid-template-columns: 50vw 1fr;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 2em;
}

.pspec-img {
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 100%;
}

.pspec-img img {
  width: 50vw;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: clamp(0.5rem, 2vw, 1rem);
}

.pspec-txt {
  display: grid;
  align-content: center;
  gap: 1em;
}

/* Pspec title box with white background - same style as phome-txtbox */
.pspec-titlebox {
  display: grid;
  justify-content: center;
  justify-items: center;
  width: 100%;
  padding: clamp(0.75rem, 2vw, 1.5rem) clamp(1rem, 1vw, 2rem);
  border-radius: clamp(0.5rem, 2vw, 1rem);
  background: rgba(0, 0, 0, 0.8);
}

/* Pspec typography with text shadow and consistent font sizes */
.pspec-txt h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
}

.pspec-word {
  text-align: center;
}

.pspec-txt h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.7);
}

.pspec-txt h3 {
  font-size: clamp(1rem, 2vw, 1.3rem);
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
}

.pspec-txt p,
.pspec-table li {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
}

.pspec-table {
  display: grid;
  padding: 0;
  gap: 0.75em;
  list-style: none;
}

.pspec-table li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1em;
  color: #b6c4ce;
  line-height: 1.5;
}

.pspec-table strong {
  min-width: 120px;
  color: #16acf9;
  font-weight: 700;
}

/* Pspec responsive on mobile portrait */
@media (max-width: 768px) and (orientation: portrait) {
  #pspec {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    scroll-snap-stop: always;
  }

  #pspec .body-responsive {
    height: auto;
    min-height: 100%;
    padding-bottom: 80px;
    overflow: visible;
  }

  .pspec-grid {
    grid-template-rows: auto auto;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100%;
  }

  .pspec-img img {
    width: 100%;
    height: auto;
    max-height: 40vh;
    object-fit: contain;
    border-radius: clamp(0.5rem, 2vw, 1rem);
  }
}

/* Pspec desktop landscape - allow overflow when content exceeds viewport */
@media (min-width: 769px) and (orientation: landscape) {
  #pspec {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    scroll-snap-stop: always;
  }

  #pspec .body-responsive {
    height: auto;
    min-height: 100%;
    padding-bottom: 80px;
    overflow: visible;
  }

  .pspec-grid {
    height: auto;
    min-height: 100%;
  }
}

/* Pspec mobile landscape */
@media (max-height: 500px) and (orientation: landscape) {
  #pspec {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    scroll-snap-stop: always;
  }

  #pspec .body-responsive {
    height: auto;
    min-height: 100%;
    padding-bottom: 80px;
    overflow: visible;
  }

  .pspec-grid {
    grid-template-columns: 50vw 1fr;
    height: auto;
    min-height: 100%;
  }

  .pspec-img img {
    width: 50vw;
    height: auto;
    max-height: 100vh;
    object-fit: contain;
    border-radius: clamp(0.5rem, 2vw, 1rem);
  }
}
/* #endregion */
