* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: Lora, serif;
  color: #fff;
  background-color: #1E2F4B;
  background-image: radial-gradient(circle at 50% 50%, #52AFE8 0px, #4996CA 174px, #34648C 348px, #264061 556px, #1E2F4B 820px);
  background-attachment: fixed;
}
.page { max-width: 970px; margin: 0 auto; padding: 20px 10px 50px; }
.logo-tag { text-align: center; }
.logo-block {
  display: block; text-align: center; text-decoration: none;
  background: url(../img/viro2syl-logo.webp) center / contain no-repeat;
}
.logo-spacer { display: block; height: 50px; }
.logo-text { display: block; font-family: 'Libre Baskerville', 'Times New Roman', serif; font-weight: 700; font-size: 46px; line-height: 1.25; white-space: nowrap; letter-spacing: 1px; }
.logo-vir, .logo-2syl {
  background-clip: text; -webkit-background-clip: text; color: transparent;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 2px 3px rgba(0, 20, 60, 0.45));
}
.logo-vir { background-image: linear-gradient(180deg, #2a64b8 0%, #0d3f91 55%, #1b56a8 100%); }
.logo-nudge { display: inline-block; width: 1.05em; }
.logo-2syl { background-image: linear-gradient(180deg, #5fd3f7 0%, #1f9ad8 55%, #3cb6ea 100%); }
.logo-tag { display: block; margin-top: 2px; line-height: 1.35; font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 1.2px; color: #fff; text-shadow: 0 1px 2px rgba(0, 20, 60, 0.6); white-space: nowrap; }
@media (max-width: 1039px) { .logo-text { font-size: 34px; } }
@media (max-width: 767px) { .logo-text { font-size: 31px; } .logo-tag { font-size: 9px; letter-spacing: 0.6px; } }

/* Menu bar */
nav.main { margin-top: 20px; display: flex; justify-content: center; position: relative; z-index: 10; }
.menu {
  list-style: none; margin: 0; padding: 8px 8px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px;
  background: linear-gradient(0deg, rgb(35, 54, 79), rgb(93, 132, 162));
  border-radius: 10px;
}
.menu li { position: relative; }
.menu > li > a, .menu > li > button {
  display: block; padding: 3px 0; line-height: 22px; font-size: 14px;
  color: #fff; text-decoration: none; font-family: Lora, serif;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.menu > li > .current { color: rgb(180, 208, 254); }
.menu a:hover, .menu button:hover { color: rgb(180, 208, 254); }
.sub {
  list-style: none; margin: 0; padding: 0;
  position: absolute; left: -20px; top: calc(100% + 15px);
  min-width: 170px; background: rgb(59, 119, 162);
  box-shadow: rgba(136, 136, 136, 0.26) 0 2px 12px 0;
  text-align: left;
  visibility: hidden; opacity: 0;
  transition: opacity 0.15s ease, visibility 0s linear 0.35s;  /* stays open briefly when the mouse slips off */
}
/* invisible bridge over the gap between the menu bar and its dropdown */
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.sub .sub::before { top: 0; left: -10px; width: 10px; height: 100%; right: auto; }
.sub .sub { left: 100%; top: 0; }
.sub li > a, .sub li > button {
  display: block; width: 100%; padding: 10px 14px; line-height: 16px; font-size: 14px;
  color: #fff; text-decoration: none; font-family: Lora, serif; text-align: left;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.sub li > a:hover, .sub li > button:hover { background: rgba(255,255,255,0.12); color: #fff; }
.sub .has-sub > button::after, .sub .has-sub > a::after { content: " \203A"; }
.menu li.open > .sub { visibility: visible; opacity: 1; transition-delay: 0s; }
@media (any-hover: hover) and (min-width: 700px) {
  .menu li:hover > .sub { visibility: visible; opacity: 1; transition-delay: 0s; }
}

/* Home globe */
.globe { display: block; margin: 54px auto 0; width: 552px; max-width: 100%; height: auto; aspect-ratio: 552 / 613; }

/* Content pages */
.stage { margin-top: 20px; background-position: center; background-repeat: no-repeat; background-size: contain; }
.panel {
  background-image: linear-gradient(to top, #1e304d, #326188);
  border-radius: 25px; padding: 10px; margin: 20px 0;
}
.row { display: flex; flex-wrap: wrap; margin: 0; }
.row.sp-bottom { margin-bottom: 15px; }
.row.sp-top { margin-top: 15px; }
.col { padding: 0 15px; min-width: 0; }
.w1{flex:0 0 8.333%}.w2{flex:0 0 16.666%}.w3{flex:0 0 25%}.w4{flex:0 0 33.333%}.w5{flex:0 0 41.666%}.w6{flex:0 0 50%}
.w7{flex:0 0 58.333%}.w8{flex:0 0 66.666%}.w9{flex:0 0 75%}.w10{flex:0 0 83.333%}.w11{flex:0 0 91.666%}.w12{flex:0 0 100%}
.widget + .widget { margin-top: 10px; }
.text p { margin: 0; }
.t-title { font-family: 'Play', sans-serif; color: #e1ebff; font-size: 18px; line-height: 1.5; text-transform: none; }
.t-body { font-family: Lora, serif; color: #fff; font-size: 16px; line-height: 1.4; }
.t-body a, .t-title a { color: #fff; text-decoration: underline; }
.t-body a:hover { color: #25c24f; }
.img { line-height: 0; }
.img.al-center { text-align: center; } .img.al-right { text-align: right; } .img.al-left { text-align: left; }
.img img { max-width: 100%; height: auto; border-radius: 3px; }
.img a { display: inline-block; }
.btn-wrap { text-align: center; margin-top: 15px; }
.btn-wrap.al-left { text-align: left; } .btn-wrap.al-right { text-align: right; }
.btn {
  display: inline-block; min-width: 180px; padding: 12px 15px; border-radius: 15px;
  background: #35668c; color: #fff; font-family: Lora, serif; font-size: 14px; text-decoration: underline;
  border: 1px solid transparent; text-align: center;
}
.btn:hover { background: #305b7d; border-color: #fff; color: #fff; }

/* Photo strip (carousel) */
.carousel { position: relative; padding: 0 34px; margin: 10px 0 20px; }
.carousel .track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .track a { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; line-height: 0; }
.carousel .track img { width: 100%; height: auto; border-radius: 3px; }
.carousel .nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 44px;
  border: 0; border-radius: 6px; background: rgba(255,255,255,0.15); color: #fff; font-size: 22px; cursor: pointer;
}
.carousel .prev { left: 0; } .carousel .next { right: 0; }
.lightbox {
  position: fixed; inset: 0; background: rgba(5, 15, 35, 0.88); display: none;
  align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 4px; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; }

/* Phones */
@media (max-width: 699px) {
  .menu { gap: 2px 16px; padding: 8px 12px; }
  .sub, .sub .sub { position: static; min-width: 0; box-shadow: none; margin: 4px 0 6px; display: none; visibility: visible; opacity: 1; transition: none; }
  .sub::before { display: none; }
  .menu li.open > .sub { display: block; }
  .sub .sub { background: rgb(47, 99, 138); }
  .sub li > a, .sub li > button { white-space: normal; padding: 9px 12px; }
  .menu > li.open { flex-basis: 100%; }
  .globe { margin-top: 30px; }
  .t-body { font-size: 14px; }
  .row.stack > .col { flex: 0 0 100%; }
  .row.stack > .col + .col { margin-top: 12px; }
  .btn { min-width: 0; }
  .carousel .track a { flex-basis: calc((100% - 20px) / 2); }
}

/* Page heading row */
.title-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 8px 6px 14px; }
.page-title {
  margin: 0; text-align: center; font-family: 'Play', sans-serif; font-weight: 700;
  font-size: 30px; line-height: 1.2; letter-spacing: 0.5px; color: #e1ebff;
}
.page-title::after {
  content: ""; display: block; width: 70px; height: 3px; margin: 10px auto 0;
  border-radius: 2px; background: #3ec5eb;
}
.home-btn {
  justify-self: end; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px 7px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(105, 214, 108, 0.75);
  color: #e1ebff; font-family: Lora, serif; font-size: 14px; text-decoration: none;
}
.home-btn svg { color: #6fdc6c; }
.home-btn:hover { background: #3f9a47; border-color: #b8f5b0; color: #fff; }
.home-btn:hover svg { color: #fff; }
@media (max-width: 699px) {
  .page-title { font-size: 22px; }
  .home-btn span { display: none; }
  .home-btn { padding: 8px; }
}

/* Tri-fold brochure */
.tf-wrap { padding: 10px 0 20px; }
.trifold {
  --W: min(840px, 94vw);
  width: var(--W); height: calc(var(--W) * 0.7727); margin: 10px auto 0;
  perspective: 2600px; cursor: pointer; --u: calc(var(--W) / 840);
}
.trifold .sheet { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.45,.05,.25,1); }
.trifold .sheet.flipped { transform: rotateY(180deg); }
.trifold .p { position: absolute; top: 0; width: 33.334%; height: 100%; transform-style: preserve-3d;
  transition: transform 1.7s cubic-bezier(.45,.05,.25,1); }
.trifold .p1 { left: 0; transform-origin: right center; }
.trifold .p2 { left: 33.333%; }
.trifold .p3 { left: 66.666%; transform-origin: left center; }
.trifold.c1 .p1 { transform: rotateY(180deg) translateZ(-2px); }
.trifold.c3 .p3 { transform: rotateY(-180deg) translateZ(-1px); }
.trifold .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background-size: 300% 100%; background-repeat: no-repeat; box-shadow: 0 12px 30px rgba(0, 10, 30, 0.35); }
.trifold .face.in { background-image: url(../img/5260066a012b3.jpg); }
.trifold .face.out { background-image: url(../img/brochure-outside-clean.png); transform: rotateY(180deg); }
.trifold .p1 .in { background-position: 0% 0; }   .trifold .p1 .out { background-position: 100% 0; }
.trifold .p2 .in { background-position: 50% 0; }  .trifold .p2 .out { background-position: 50% 0; }
.trifold .p3 .in { background-position: 100% 0; } .trifold .p3 .out { background-position: 0% 0; }
/* soft shading along the folds */
.trifold .face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.trifold .p1 .in::after  { background: linear-gradient(to left, rgba(0,0,0,0.18), rgba(0,0,0,0) 12%); }
.trifold .p3 .in::after  { background: linear-gradient(to right, rgba(0,0,0,0.18), rgba(0,0,0,0) 12%); }
.trifold .p1 .out::after { background: linear-gradient(to right, rgba(0,0,0,0.15), rgba(0,0,0,0) 10%); }
.trifold .p3 .out::after { background: linear-gradient(to left, rgba(0,0,0,0.15), rgba(0,0,0,0) 10%); }
.tf-hint { text-align: center; color: #b4d0fe; font-size: 14px; margin: 14px 0 0; min-height: 1.4em; }
.tf-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.tf-controls .btn { min-width: 0; text-decoration: none; cursor: pointer; }
/* While the cover swings, the browser mistakenly paints the hinge-side strip of the folded panels on top of it
   (the "Surface Disinfection" text peeking out). --fold follows the cover's swing, and the panels underneath are
   trimmed on the hinge side by exactly the width the cover is still covering. */
@property --fold { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
.trifold { --fold: 180deg; transition: --fold 1.7s cubic-bezier(.45,.05,.25,1); }
.trifold.c1 { --fold: 0deg; }
.trifold .p2 .face.in, .trifold .p3 .face {
  clip-path: inset(-60px -60px -60px calc(max(0, cos(var(--fold))) * 92%));
}
@media (prefers-reduced-motion: reduce) { .trifold .sheet, .trifold .p, .trifold { transition: none; } }

/* Sharp text laid over the brochure artwork */
.trifold .tx { position: absolute; overflow: hidden; font-family: Arial, Helvetica, sans-serif; text-align: left;
  font-size: calc(var(--u) * 11.8); line-height: 1.22; }
.trifold .tx.pad { padding: calc(var(--u) * 6) calc(var(--u) * 9); }
.trifold .tx h3, .trifold .tx h4, .trifold .tx p, .trifold .tx ul { margin: 0; padding: 0; }
.trifold .tx ul { list-style: none; }
.trifold .tx h3.big { font-size: calc(var(--u) * 13.6); white-space: nowrap; font-weight: 700; margin: calc(var(--u) * 6) 0 calc(var(--u) * 5) calc(var(--u) * 6); letter-spacing: 0.2px; }
.trifold .tx h4 { font-size: calc(var(--u) * 13); font-weight: 700; margin: calc(var(--u) * 3) 0 calc(var(--u) * 1); }
.trifold .tx h4.gap { margin-top: calc(var(--u) * 10); }
.trifold .tx.dark { color: #1b4f9c; padding-left: calc(var(--u) * 8); }
.trifold .tx.dark h3, .trifold .tx.dark h4 { color: #0d3f88; }
.trifold .tx.light { color: #fff; padding-left: calc(var(--u) * 8); }
.trifold .tx.navy { color: #26386b; padding: calc(var(--u) * 5) calc(var(--u) * 9); line-height: 1.38; font-size: calc(var(--u) * 11.4); }
.trifold .tx.navy h4 { color: #13285e; font-size: calc(var(--u) * 14); }
.trifold .tx.subline { color: #fff; text-align: center; font-weight: 700; letter-spacing: calc(var(--u) * 0.5); line-height: 1.22; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: visible; text-shadow: 0 1px 2px rgba(10, 30, 90, 0.75), 0 0 6px rgba(10, 30, 90, 0.35); }
.trifold .tx.subline span { display: block; white-space: nowrap; }
.trifold .tx .bullets { padding: calc(var(--u) * 6) calc(var(--u) * 8) 0; font-weight: 700; font-size: calc(var(--u) * 11.4); line-height: 1.26; }
.trifold .tx .bullets li { padding-left: 0.9em; text-indent: -0.9em; }
.trifold .tx .bullets li::before { content: "\2022  "; }

/* Videos */
.video { max-width: 760px; margin: 10px auto 20px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 28px rgba(0, 10, 30, 0.4); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 10, 30, 0.4); line-height: 0; }
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-card .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px;
  border-radius: 14px; background: rgba(53, 102, 140, 0.92); transition: background 0.15s; }
.video-card .play::after { content: ""; position: absolute; left: 31px; top: 15px; border-style: solid;
  border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.video-card:hover .play { background: #3f9a47; }
.video-note { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; line-height: 1.3;
  background: linear-gradient(to top, rgba(10, 25, 50, 0.85), rgba(10, 25, 50, 0)); color: #fff; font-size: 14px; text-align: right; }

/* Self-hosted videos with subtitles */
.video-self { max-width: 760px; margin: 10px auto 20px; }
.video-self .vwrap { position: relative; }
.video-self video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 10, 30, 0.4); }
.video-self video::cue { background: rgba(0, 0, 0, 0.75); color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000, 1px 1px 2px #000; font-family: Arial, Helvetica, sans-serif; font-size: 1.05em; line-height: 1.35; }
.video-sub { margin: 10px 4px 0; font-size: 13px; color: #b4d0fe; text-align: center; }
.video-sub a { color: #fff; margin-left: 6px; }
.video-self .unmute {
  position: absolute; top: 14px; right: 14px; padding: 9px 16px 9px 38px; border: 0; border-radius: 999px;
  background: rgba(63, 154, 71, 0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5L6 9H2v6h4l5 4V5z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7'/%3E%3Cpath d='M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E") 12px center / 18px no-repeat;
  color: #fff; font-family: Lora, serif; font-size: 14px; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.video-self .unmute[hidden] { display: none; }

/* Controls for long videos played in parts */
.video-self.multi video { cursor: pointer; }
.video-self .vwrap:fullscreen { display: flex; flex-direction: column; justify-content: center; background: #000; }
.video-self .vwrap:fullscreen video { border-radius: 0; max-height: calc(100vh - 52px); }
.mctl { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(10, 25, 50, 0.55); color: #e6f0ff; font: 13px Arial, Helvetica, sans-serif; }
.mctl button { flex: none; width: 30px; height: 30px; border: 0; padding: 0; cursor: pointer; background: center / 22px no-repeat; }
.mctl .mc-play { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 4.5v15l13-7.5z'/%3E%3C/svg%3E"); }
.mctl .mc-play.on { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Crect x='6' y='4.5' width='4' height='15' rx='1'/%3E%3Crect x='14' y='4.5' width='4' height='15' rx='1'/%3E%3C/svg%3E"); }
.mctl .mc-mute { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5L6 9H2v6h4l5 4V5z' fill='white'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7'/%3E%3Cpath d='M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E"); }
.mctl .mc-mute.on { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5L6 9H2v6h4l5 4V5z' fill='white'/%3E%3Cpath d='M16 9l6 6M22 9l-6 6'/%3E%3C/svg%3E"); }
.mctl .mc-full { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E"); }
.mc-time { flex: none; min-width: 92px; font-variant-numeric: tabular-nums; }
.mc-seek { flex: 1; min-width: 60px; accent-color: #3ec5eb; cursor: pointer; }
@media (max-width: 520px) { .mctl { gap: 6px; padding: 6px 10px; } .mc-time { min-width: 0; font-size: 12px; } }

/* Picture slideshow */
.widget.slider { max-width: 560px; margin: 10px auto 20px; }
.widget.slider .slides { position: relative; display: grid; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 10px 28px rgba(0, 10, 30, 0.4); }
.widget.slider .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.8s, visibility 0.8s; }
.widget.slider .slide.on { opacity: 1; visibility: visible; }
.widget.slider .slide img { display: block; width: 100%; height: auto; }
.widget.slider .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 54px;
  border: 0; border-radius: 8px; background: rgba(20, 45, 80, 0.55); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.widget.slider .nav-btn:hover { background: rgba(20, 45, 80, 0.8); }
.widget.slider .prev { left: 8px; } .widget.slider .next { right: 8px; }
.widget.slider .dots { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.widget.slider .dot { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; }
.widget.slider .dot.on { background: #3ec5eb; }

/* Full-screen document reader (used in the preview) */
.doc-reader { position: fixed; inset: 0; z-index: 200; display: none; flex-direction: column; background: rgba(15, 28, 48, 0.97); }
.doc-reader.show { display: flex; }
.dr-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px;
  background: #1e304d; color: #fff; font: 16px Arial, Helvetica, sans-serif; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.dr-actions { flex: none; display: flex; gap: 10px; }
.dr-dl { padding: 8px 16px 8px 36px; border-radius: 999px; color: #fff; text-decoration: none; font-size: 15px; border: 1.5px solid #6fdc6c;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fdc6c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") 12px center / 18px no-repeat; }
.dr-dl:hover { background-color: rgba(111, 220, 108, 0.15); }
.dr-close { flex: none; padding: 8px 16px; border: 0; border-radius: 999px; background: #3f9a47; color: #fff; font-size: 15px; cursor: pointer; }
.dr-pages { flex: 1; overflow-y: auto; padding: 18px 12px 40px; }
.dr-pages img { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto 18px; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
@media (max-width: 520px) { .dr-bar { flex-wrap: wrap; font-size: 14px; } .dr-dl, .dr-close { font-size: 14px; } }

/* Document shown in English or Spanish */
.doc-switch { max-width: 620px; margin: 6px auto 20px; }
.ds-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.ds-tabs button { padding: 8px 20px; border: 1.5px solid #3ec5eb; border-radius: 999px; background: transparent; color: #fff;
  font: 15px Lora, serif; cursor: pointer; }
.ds-tabs button.on { background: #3ec5eb; color: #0f2440; }
.ds-doc { display: none; max-height: 820px; overflow-y: auto; padding: 12px; border-radius: 12px; background: rgba(10, 25, 50, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.ds-doc.on { display: block; }
.ds-doc img { display: block; width: 100%; height: auto; margin: 0 0 12px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
@media (max-width: 700px) { .ds-doc { max-height: 70vh; } }
.doc-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 16px; }
.doc-switch .ds-tabs { justify-content: center; }
@media (min-width: 701px) {
  .panel:has(.doc-btns) { position: relative; }
  .doc-btns { position: absolute; top: 74px; right: 14px; z-index: 3; flex-direction: column; align-items: flex-end; gap: 8px; margin: 0; }
  .doc-btns .btn { min-width: 0; width: 122px; padding: 8px 10px; font-size: 13px; border-radius: 12px; }
  .panel:has(.doc-btns) .title-row { margin-bottom: 0; }
  .panel:has(.doc-btns) .doc-switch { margin-top: -4px; }
}

/* Subtitles over long videos */
.vsub { position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); max-width: 88%; padding: 4px 12px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.75); color: #fff; font: 17px/1.35 Arial, Helvetica, sans-serif; text-align: center; white-space: pre-line;
  text-shadow: 0 0 3px #000; pointer-events: none; opacity: 0; transition: opacity .15s; }
.vsub.show { opacity: 1; }
.vwrap:fullscreen .vsub { bottom: 90px; font-size: 26px; }
.mctl .mc-cc { width: auto; padding: 0 8px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 5px; color: rgba(255,255,255,.6);
  font: bold 12px Arial, sans-serif; height: 24px; background: none; }
.mctl .mc-cc.on { color: #0f2440; background: #fff; border-color: #fff; }
@media (max-width: 520px) { .vsub { font-size: 13px; bottom: 54px; } }

/* Our Mission page */
.mission .t-body { margin: 0 0 12px; }
.mission .mission-call { font-weight: 700; color: #9fe3ff; }
.mission-list { margin: 0 0 12px; padding-left: 22px; }
.mission-list li { margin: 0 0 8px; }
.mission-list li::marker { color: #25c24f; }
.mission .mission-close { text-align: center; margin: 22px 0 18px; }
.mission .mission-close span { display: inline-block; margin-top: 4px; font-size: 1.2em; font-weight: 700; }

/* Founders page and document notes */
.founders { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 26px 0 30px; }
.fcard { min-width: 250px; padding: 24px 28px; border-radius: 14px; background: rgba(10, 25, 50, 0.35); border: 1px solid rgba(62, 197, 235, .35); text-align: center; }
.fname { font-family: Play, sans-serif; font-size: 22px; font-weight: 700; color: #fff; }
.frole { margin-top: 6px; font-family: Lora, serif; font-size: 15px; color: #9fe3ff; letter-spacing: .5px; text-transform: uppercase; }
.doc-note { text-align: center; color: #cfe2ff; margin: 0 0 10px; font-size: 14px; }
.doc-note a { color: #9fe3ff; }
@media (min-width: 700px) { .panel:has(.doc-btns) .doc-note { padding: 0 140px; } }

/* Home: videos that take turns in the four quadrants of the globe */
.globe-stage { position: relative; }
.corner-vid { position: absolute; width: 300px; z-index: 20; pointer-events: none;
  opacity: 0; transform: scale(.94); transition: opacity .8s ease, transform .8s ease; }
.corner-vid.on { opacity: 1; transform: scale(1); }
/* soft, blurred edges that fade into the globe instead of a hard frame */
.corner-vid video { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, rgba(0,0,0,.6) 80%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 62%, rgba(0,0,0,.6) 80%, transparent 100%); }
/* faint blue glow behind, matching the globe's blues */
.corner-vid::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(74, 146, 210, .55), rgba(39, 102, 168, .25) 70%, transparent);
  filter: blur(14px); }
/* gentle blue tint at the edges so the colours blend with the globe */
.corner-vid::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, transparent 55%, rgba(39, 102, 168, .35) 85%, transparent 100%); mix-blend-mode: soft-light; }
.c-tl { left: calc(50% - 340px); top: 60px; } .c-tr { right: calc(50% - 340px); top: 60px; }
.c-bl { left: calc(50% - 340px); bottom: 70px; } .c-br { right: calc(50% - 340px); bottom: 70px; }
.globe-stage .globe { position: relative; z-index: 1; }
@media (max-width: 700px) {
  .corner-vid { width: 52%; }
  .c-tl { left: 0; top: 8%; } .c-tr { right: 0; top: 8%; } .c-bl { left: 0; bottom: 8%; } .c-br { right: 0; bottom: 8%; }
}

/* Home: tagline scene (sky, waterfalls) with the three lines appearing one by one */
.tag-scene { position: relative; width: 500px; max-width: 100%; height: 150px; margin: 4px auto -6px; overflow: hidden;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, rgba(0,0,0,.5) 88%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 72%, rgba(0,0,0,.5) 88%, transparent 100%); }
.tag-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 45%; }
/* soft light veil in the middle so the lines stay readable over the waterfall */
.tag-veil { position: absolute; inset: 0; background: radial-gradient(ellipse 46% 62% at 50% 52%, rgba(240,250,255,.82), rgba(225,245,255,.45) 55%, rgba(255,255,255,0) 100%); }
.tag-lines { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.tl { display: block; opacity: 0; transform: translateY(10px); filter: blur(4px); animation: tlIn 1s cubic-bezier(.2,.7,.2,1) forwards; white-space: nowrap; }
.tl1 { animation-delay: .5s; font: 700 25px/1.15 Play, Arial, sans-serif; letter-spacing: 1.5px; text-transform: uppercase;
  background: linear-gradient(90deg, #0b3f8f, #1f86d1 40%, #0b3f8f 80%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: tlIn 1s cubic-bezier(.2,.7,.2,1) .5s forwards, tlShine 4s linear 1.6s infinite; }
.tl2 { animation-delay: 1.7s; font: italic 700 19px/1.25 Lora, Georgia, serif; color: #1f6b2e; text-shadow: 0 1px 6px rgba(255,255,255,.9); }
.tl3 { animation-delay: 2.9s; font: 700 13px/1.4 Play, Arial, sans-serif; letter-spacing: 4px; text-transform: uppercase; color: #0d3166; text-shadow: 0 1px 5px rgba(255,255,255,.95); }
@keyframes tlIn { to { opacity: 1; transform: none; filter: none; } }
@keyframes tlShine { to { background-position: -200% 0; } }
@media (max-width: 767px) { .tag-scene { height: 116px; } .tl1 { font-size: 20px; } .tl2 { font-size: 16px; } .tl3 { font-size: 11px; letter-spacing: 3px; } }
@media (prefers-reduced-motion: reduce) { .tag-scene *, .tl { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; } }
