:root {
  --navy: #12213b;
  --deep: #0c1730;
  --green: #2bd9a0;
  --mist: #cfd8e6;
  --bg: #f6f7f9;
  --card: #fff;
  --ink: #14213a;
  --muted: #566176;
  --line: #dfe3ea;
  --link: #0a7d5c;
  --chip: #e7f7f1;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:
    "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a30;
    --card: #16233f;
    --ink: #eaf0fa;
    --muted: #a6b2c8;
    --line: #26365a;
    --link: #4fe3b4;
    --chip: #12372f;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
}
a {
  color: var(--link);
}
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
svg {
  display: block;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--deep);
  border-bottom: 1px solid #1d2b4a;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
}
.brand img {
  height: 38px;
  width: auto;
}
.brand b {
  display: block;
  font: 600 23px/1 var(--serif);
}
.brand small {
  display: block;
  font-size: 12px;
  color: var(--mist);
  margin-top: 3px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: var(--mist);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  padding: 8px 0;
}
header nav a:hover {
  color: #fff;
}
header nav a:not(.camtype-btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
header nav a:not(.camtype-btn):hover::after,
header nav a[aria-current="page"]:not(.camtype-btn)::after {
  transform: scaleX(1);
}
header nav a[aria-current="page"]:not(.camtype-btn) {
  color: #fff;
}
header nav a.camtype-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--green);
  color: var(--deep);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.15s ease, transform 0.15s ease;
}
header nav a.camtype-btn::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--deep);
  animation: camtype-pulse 2s infinite;
}
header nav a.camtype-btn:hover {
  background: #5ae8bb;
  color: var(--deep);
  transform: translateY(-1px);
}
@keyframes camtype-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}
.lang-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(43, 217, 160, 0.5);
  color: var(--mist);
  font: 600 16px/1 var(--sans);
  padding: 8px 6px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lang-trigger:hover,
.lang-menu.open .lang-trigger {
  color: #fff;
  border-bottom-color: var(--green);
}
.lang-caret {
  transition: transform 0.2s ease;
}
.lang-menu.open .lang-caret {
  transform: rotate(180deg);
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--deep);
  border: 1px solid #2b3e66;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  z-index: 30;
}
.lang-menu.open .lang-dropdown {
  display: block;
}
.lang-dropdown li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  font: 600 15px/1.2 var(--sans);
  color: var(--mist);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.lang-dropdown li:hover {
  background: #1d63dc;
  color: #fff;
}
.lang-dropdown li[aria-selected="true"] {
  color: var(--green);
}
.lang-dropdown li[aria-selected="true"]:hover {
  color: #fff;
}
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.burger {
  display: none;
  cursor: pointer;
  color: #fff;
  border: 1px solid #5a6e98;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 15px;
  font-weight: 500;
}
.nav-toggle:focus-visible + .burger {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.hero {
  background: linear-gradient(180deg, #0f1c36 0%, #1a2f52 62%, #3a4a63 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 88px;
  padding-bottom: 120px;
}
.hero h1 {
  margin: 0;
  font: 600 clamp(60px, 12vw, 120px)/0.95 var(--serif);
  letter-spacing: -0.02em;
}
.hero .sub {
  margin: 10px 0 0;
  font: 500 clamp(22px, 3.4vw, 32px)/1.2 var(--serif);
}
.hero p {
  max-width: 34ch;
  margin: 22px 0 0;
  font-size: 19px;
  color: var(--mist);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.btn.primary {
  background: var(--green);
  color: var(--deep);
}
.btn.primary:hover {
  background: #5ae8bb;
}
.btn.ghost {
  border: 1px solid #5a6e98;
  color: #fff;
}
.btn.ghost:hover {
  border-color: #fff;
}
.mtn {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(78%, 860px);
  height: auto;
}
.hero .photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 68%;
  height: 100%;
  object-fit: cover;
  object-position: 10% 50%;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    rgba(0, 0, 0, 0.45) 20%,
    #000 48%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    rgba(0, 0, 0, 0.45) 20%,
    #000 48%
  );
}
.hero:has(.photo) .mtn {
  display: none;
}
.hero .credit {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 3;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  background: rgba(12, 23, 48, 0.6);
  padding: 6px 11px;
  border-radius: 999px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
}
.hero:hover .credit {
  animation: credit 11s ease 5s forwards;
}
@keyframes credit {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  5% {
    opacity: 0.92;
    visibility: visible;
  }
  86% {
    opacity: 0.92;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
@media (hover: none) {
  .hero .credit {
    visibility: visible;
    opacity: 0.7;
    animation: none;
  }
}
@media (max-width: 760px) {
  .hero .photo {
    width: 100%;
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0.5;
  }
}

section {
  padding: 72px 0;
}
section.tight {
  padding-top: 0;
}
h2 {
  margin: 0 0 8px;
  font: 600 clamp(28px, 4vw, 38px)/1.15 var(--serif);
}
h1.pagetitle {
  margin: 0 0 8px;
  font: 600 clamp(36px, 5.5vw, 52px)/1.1 var(--serif);
}
.lead {
  margin: 0 0 32px;
  color: var(--muted);
  max-width: 60ch;
}
.prose p {
  max-width: 62ch;
  margin: 0 0 16px;
}
.prose h2 {
  margin-top: 36px;
  font-size: 26px;
}
.prose p.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
}
.card.live {
  border-top: 4px solid var(--green);
}
.card h3 {
  margin: 0 0 8px;
  font: 600 22px/1.2 var(--serif);
}
.card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}
.card .foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 15px;
  font-weight: 600;
}
.card .foot a {
  text-decoration: none;
}
.card .foot a:hover {
  text-decoration: underline;
}
a.card {
  color: inherit;
  text-decoration: none;
}
.card .more {
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--link);
}
.card .more::after {
  content: " \2192";
}
.status {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 3px 11px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  background: var(--chip);
  color: var(--link);
}
.status.wip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.stats b {
  display: block;
  font: 600 40px/1 var(--serif);
}
.stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.news .card time {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}
.news .card h3 {
  font-size: 19px;
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 22px;
  transition: border-color 0.2s ease;
}
.faq details[open] {
  border-color: var(--green);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font: 600 19px/1.3 var(--serif);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font: 500 24px/1 var(--sans);
  color: var(--link);
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
  max-width: 64ch;
}
.card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 12px 28px rgba(12, 23, 48, 0.16);
}
.paper h3 {
  font-size: 25px;
}
.paper .by {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.btn.line {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.line:hover {
  border-color: var(--link);
  color: var(--link);
}
.btn.soon {
  opacity: 0.7;
  pointer-events: none;
}
.author {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.avatar {
  flex: none;
  position: relative;
  width: 400px;
  aspect-ratio: 817/621;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy);
}
.avatar::before {
  content: "TP";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--green);
  font: 600 72px/1 var(--serif);
}
.avatar img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--navy);
}
.author .bio {
  flex: 0 1 600px;
}
.links {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  justify-items: start;
  font-weight: 600;
  font-size: 16px;
}
.links a {
  text-decoration: none;
}
.links a:hover {
  text-decoration: underline;
}
.links a::after {
  content: " \2197";
  font-weight: 400;
}
.author h3 {
  margin: 0;
  font: 600 22px/1.2 var(--serif);
}
.author .role {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 15px;
}
.author p {
  margin: 0 0 10px;
}
.social {
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .author {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .avatar {
    width: min(100%, 320px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
  .card:hover,
  .card:focus-within {
    transform: none;
  }
}

footer {
  background: var(--deep);
  color: var(--mist);
  padding: 52px 0 30px;
}
.cols {
  display: grid;
  grid-template-columns: minmax(330px, 1.5fr) 1fr auto auto;
  gap: 36px;
  align-items: stretch;
}
.cols > :first-child {
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: 100%;
}
footer .name span {
  flex: 1;
  min-width: 0;
}
footer .name small {
  display: block;
  margin-top: 5px;
  text-align: justify;
  text-align-last: justify;
}
.tagwrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.tag {
  margin: 14px 0 0;
  text-align: justify;
  text-align-last: justify;
}
.mail {
  margin: 14px 0 0;
  padding-top: 0;
  font-size: 15px;
  text-align: center;
}
.cols .social {
  flex-wrap: nowrap;
  margin-left: -80px;
}
@media (max-width: 1020px) {
  .mail {
    margin-bottom: 0;
  }
  .cols .social {
    margin-left: 0;
  }
}
footer .name {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
footer .name img {
  height: 40px;
}
footer .name b {
  display: block;
  font: 600 22px/1 var(--serif);
}
footer .name small {
  font-size: 12px;
  color: var(--mist);
}
footer h4 {
  margin: 0 0 12px;
  color: #fff;
  font: 600 15px/1 var(--sans);
}
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
}
footer a {
  color: var(--mist);
  text-decoration: none;
}
footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.social {
  display: flex;
  gap: 10px;
}
.social a {
  width: 40px;
  height: 40px;
  border: 1px solid #2c3d63;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}
.social a:hover {
  border-color: var(--green);
  color: var(--green);
  text-decoration: none;
}
.social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.cm {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 15px;
}
.flag {
  display: flex;
  width: 30px;
  height: 20px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.flag i {
  flex: 1;
}
.flag i:nth-child(1) {
  background: #007a5e;
}
.flag i:nth-child(2) {
  background: #ce1126;
}
.flag i:nth-child(3) {
  background: #fcd116;
}
.flag svg {
  position: absolute;
  left: 11px;
  top: 5px;
  width: 8px;
  height: 8px;
  fill: #fcd116;
}
.cm b {
  color: #fff;
  font-weight: 600;
}
.cm-sub {
  margin: 6px 0 0;
  font-size: 14px;
}
.base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #1d2b4a;
  font-size: 14px;
  color: #8d9bb5;
}
.base nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.base a {
  color: #8d9bb5;
  font-size: 14px;
  text-decoration: none;
  padding: 0;
}
.base a::after {
  display: none;
}
.base a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 1020px) {
  .cols {
    grid-template-columns: 1fr 1fr;
  }
  .cols > :first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 520px) {
  .cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .burger {
    display: block;
  }
  header nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    border-bottom: 1px solid #1d2b4a;
  }
  .nav-toggle:checked ~ nav {
    display: flex;
  }
  header nav a:not(.camtype-btn) {
    padding: 12px 0;
    font-size: 17px;
  }
  header nav a:not(.camtype-btn)::after {
    display: none;
  }
  header nav a[aria-current="page"]:not(.camtype-btn) {
    color: var(--green);
  }
  header nav a.camtype-btn {
    justify-content: center;
    margin-top: 10px;
    padding: 12px 16px;
    font-size: 16px;
  }
  header nav .lang-menu {
    align-self: flex-start;
    margin-top: 14px;
  }
}
@media (max-width: 640px) {
  .hero .wrap {
    padding-top: 60px;
    padding-bottom: 110px;
  }
  .mtn {
    width: 130%;
  }
  section {
    padding: 52px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
