/* ==========================================================================
   HOLY MEDIA — faithful rebuild of the original WordPress/Elementor theme
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/jakarta.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/jakarta-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --gold: #e8a824;
  --holy: #f7b623; /* logo halo yellow */
  --navy: #1a5276;
  --ink: #262626;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: 50px;
}
@media (max-width: 767px) { :root { --pad: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, iframe { display: block; max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.hdr {
  position: absolute; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 38px var(--pad) 0;
  color: #fff;
}
.hdr__logo img { height: 27px; width: auto; }
.hdr__nav a { position: relative; text-transform: uppercase; white-space: nowrap; }
.hdr--dark { color: #000; }

/* Desktop menu: solid black pill; a yellow terminal cursor blinks after the hovered link
   (or the current page when nothing is hovered). Its space is always reserved, so links never shift. */
@media (min-width: 1025px) {
  .hdr__nav {
    position: absolute; left: 50%; top: 30px; transform: translateX(-50%);
    display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px;
    background: #000; color: #fff; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 10px 30px rgba(0,0,0,.35);
  }
  .hdr__nav a { padding: 9px 20px; border-radius: 999px; font-size: 15px; line-height: 1.5; }
  .hdr__nav a::after {
    content: ""; display: inline-block; width: .14em; height: 1.05em; margin-left: 4px; vertical-align: -.18em; background: transparent;
  }
  .hdr__nav a:hover::after, .hdr__nav:not(:hover) a[aria-current="page"]::after { background: var(--holy); animation: blink .5s steps(1) infinite; }
  .hdr__nav a:focus-visible { outline-offset: -2px; }
}

/* Hamburger: icon only (no label); a larger tap area than the drawing */
.hdr__burger { display: none; place-items: center; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
.hdr__burger i, .hdr__burger i::before, .hdr__burger i::after { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform .45s var(--ease), background .2s; }
.hdr__burger i::before, .hdr__burger i::after { content: ""; position: absolute; left: 0; }
.hdr__burger i::before { top: -7px; } .hdr__burger i::after { top: 7px; }
.menu-open .hdr__burger i { background: transparent; }
.menu-open .hdr__burger i::before { transform: translateY(7px) rotate(45deg); }
.menu-open .hdr__burger i::after { transform: translateY(-7px) rotate(-45deg); }
.hdr__burger:focus-visible { outline: 2px solid var(--holy); outline-offset: 2px; border-radius: 8px; }
.hdr__nav-foot { display: none; }

/* Phones / tablets: full-screen menu */
@media (max-width: 1024px) {
  .hdr { padding-top: 24px; }
  .hdr__logo, .hdr__burger { position: relative; z-index: 2; }
  .hdr__burger { display: grid; }
  .hdr__nav {
    position: fixed; inset: 0; z-index: 1; transform: none;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: 110px var(--pad) 40px; background: #000; color: #fff;
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .hdr__nav a {
    display: flex; align-items: baseline;
    font-family: "Inter", sans-serif; font-weight: 900; font-size: clamp(44px, 13vw, 96px); line-height: 1.08; text-transform: uppercase;
    opacity: 0; transform: translateY(28px); transition: opacity .5s, transform .7s var(--ease), color .25s;
  }
  .hdr__nav a[aria-current="page"]::after { content: ""; display: inline-block; width: .12em; height: .8em; margin-left: .14em; align-self: center; background: var(--holy); }
  .hdr__nav a:active { color: var(--holy); }
  .menu-open .hdr__nav { opacity: 1; visibility: visible; }
  .menu-open .hdr__nav a { opacity: 1; transform: none; }
  .menu-open .hdr__nav a:nth-of-type(1) { transition-delay: .06s; }
  .menu-open .hdr__nav a:nth-of-type(2) { transition-delay: .12s; }
  .menu-open .hdr__nav a:nth-of-type(3) { transition-delay: .18s; }
  .hdr__nav-foot {
    display: grid; gap: 4px; position: absolute; left: var(--pad); right: var(--pad); bottom: 40px;
    padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: rgba(255,255,255,.55);
  }
  .hdr__nav-foot a { all: unset; cursor: pointer; color: #fff; font-weight: 600; }
  .hdr__nav-foot a::before, .hdr__nav-foot a::after { content: none !important; }
  .menu-open .hdr { color: #fff; }
  .menu-open .hdr--dark .hdr__logo img { filter: invert(1); }
  html.menu-open, html.menu-open body { overflow: hidden; }
}

/* ---------- Fixed footer (same on every page): one line over a fade to black ---------- */
.foot {
  position: fixed; left: 0; bottom: 0; width: 100%; z-index: 40;
  padding: 46px 20px 14px; color: #fff; text-align: center;
  font-size: 12px; line-height: 1.6; letter-spacing: .03em; text-shadow: 0 1px 8px rgba(0,0,0,.6);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 35%, rgba(0,0,0,.88) 70%, #000 100%);
  pointer-events: none;
}
.foot p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.foot span { margin: 0 10px; color: var(--holy); }
@media (max-width: 900px) {
  .foot { padding: 40px 14px 10px; font-size: 11px; }
  .foot p { white-space: normal; }
  .foot span { margin: 0 6px; }
}

/* ---------- Home: full-screen vertical video slider ---------- */
.home { overflow: hidden; background: #000; height: 100%; }
.ms { position: fixed; inset: 0; overflow: hidden; background: #000; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.ms.is-dragging { cursor: grabbing; }
.ms__slide { position: absolute; inset: 0; overflow: hidden; background: #000; }
.ms__inner { position: absolute; inset: 0; will-change: transform; }
.ms__video { position: absolute; inset: 0; overflow: hidden; background: #000; pointer-events: none; }
.ms__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ms__cont { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 var(--pad); color: #fff; will-change: transform; pointer-events: none; }
.ms__st { font-size: 25px; line-height: 30px; font-weight: 800; text-transform: uppercase; }
.ms__t { font-family: "Inter", sans-serif; font-weight: 900; text-transform: uppercase; font-size: clamp(64px, 8vw, 205px); line-height: 1.1; margin-left: -0.04em; }
.ms__desc { font-size: 20px; line-height: 32px; }
@media (max-width: 767px) {
  .ms__st { font-size: 18px; line-height: 24px; }
  .ms__t { font-size: clamp(54px, 17vw, 96px); }
  .ms__desc { font-size: 16px; line-height: 26px; }
  .ms__desc br { display: none; }
}

/* ---------- Inner pages ---------- */
.page { padding-bottom: 120px; color: var(--ink); }
.wrap { width: min(100% - 2 * var(--pad), 1290px); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--pad), 690px); margin-inline: auto; }

/* ---------- Sobre nós (dark): full-screen CRT video hero, numbers, vertical section names ---------- */
.about { color: #cfcfcf; background: #0b0b0b; padding-bottom: 180px; }   /* room above the fixed footer */
html:has(.about), html:has(.about) body { background: #050505; }

.vband { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #111; }
.vband__video { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.vband__video video { width: 100%; height: 100%; object-fit: cover; }
.ab-hero { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad); color: #fff; }
.ab-hero__k { font-size: 25px; line-height: 30px; font-weight: 800; text-transform: uppercase; }
.ab-hero__t { font-family: "Inter", sans-serif; font-weight: 900; font-size: clamp(64px, 8vw, 205px); line-height: 1.1; margin-left: -.04em; min-height: 1.1em; }
.ab-cur { display: inline-block; width: .125em; height: .96em; margin-left: .08em; vertical-align: -.1em; background: var(--holy); animation: blink .5s steps(1) infinite; transition: opacity .4s; }
.ab-cur.is-done { opacity: 0; animation: none; }
.ab-hero__d { font-size: 20px; line-height: 32px; max-width: 30ch; }
.ab-hero__ms { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; opacity: .8; }
.ab-hero__mouse { position: relative; width: 22px; height: 34px; border: 2px solid #fff; border-radius: 12px; }
.ab-hero__mouse i { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--holy); animation: wheel 1.6s var(--ease) infinite; }
@media (max-width: 767px) {
  .ab-hero__k { font-size: 18px; line-height: 24px; }
  .ab-hero__t { font-size: clamp(48px, 15vw, 96px); }
  .ab-hero__d { font-size: 16px; line-height: 26px; }
  .ab-hero__ms { bottom: 96px; }
}

.sheet { position: relative; background: #0b0b0b; padding-top: 70px; }

/* Editorial text: big opening line, grey body with white highlights */
.intro { font-size: clamp(22px, 2vw, 28px); line-height: 1.5; color: #fff; font-weight: 500; max-width: 38ch; }
.intro strong { color: var(--holy); font-weight: 700; }
.sec strong { color: #fff; font-weight: 600; }
.h-story { margin: 56px 0 40px; font-family: "Inter", sans-serif; font-weight: 900; text-transform: uppercase; font-size: 40px; color: #fff; }

/* Nossa História: giant outlined year on the left, text on the right */
.about .wrap { width: min(100% - 2 * var(--pad), 1100px); }
.hist { width: min(100% - 2 * var(--pad), 1100px); margin: 0 auto 30px; color: #cfcfcf; }
.hist__item { display: grid; grid-template-columns: auto 1fr; column-gap: 60px; align-items: start; padding: 50px 0; border-top: 1px solid rgba(255,255,255,.1); }
.hist__item:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.hist__head { display: grid; gap: 14px; justify-items: start; }
.hist__year {
  font-family: "Inter", sans-serif; font-weight: 900; line-height: .85; font-size: clamp(110px, 13vw, 200px);
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.6);
}
.hist__item:first-child .hist__year { -webkit-text-stroke-color: var(--holy); }
.hist__tag { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; }
.hist__head img { height: 30px; width: auto; }
.hist__head img.ddmp { height: 56px; }
.hist__body { padding-top: 10px; font-size: 17px; line-height: 1.75; color: #a8a8a8; }
.hist strong { color: #fff; font-weight: 600; }
/* Links: white, thin underline, yellow "external link" icon */
.hist a, .sec a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); transition: color .25s, border-color .25s; }
.hist a:hover, .sec a:hover { color: var(--holy); border-color: var(--holy); }
.hist a::after, .sec a::after {
  content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .3em; vertical-align: -.05em; background: var(--holy);
  -webkit-mask: var(--ext) center / contain no-repeat; mask: var(--ext) center / contain no-repeat;
}
.about { --ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-9 9'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E"); }
@media (max-width: 860px) {
  .hist__item { grid-template-columns: 1fr; row-gap: 22px; padding: 36px 0; }
  .hist__year { font-size: clamp(80px, 24vw, 130px); }
}

/* Sections: heading on top with a short yellow bar; Missão / Visão / Valores (.sec--v) instead stand
   their name vertically (no bar) on the left (like the slider's side label), fixed while the text scrolls. */
.about .narrow { width: min(100% - 2 * var(--pad), 1100px); }
.sec { padding-top: 70px; font-size: 17px; line-height: 1.75; color: #a8a8a8; }
.sec h2 {
  margin-bottom: 26px; color: #fff;
  font-family: "Inter", sans-serif; font-weight: 900; text-transform: uppercase; font-size: 34px; line-height: 1.05; letter-spacing: -.01em;
}
.sec p + p { margin-top: 14px; }
.sec:not(.sec--v) h2::before { content: ""; display: inline-block; width: .14em; height: .8em; margin-right: 12px; vertical-align: -.04em; background: var(--holy); }

.sec--v { display: grid; grid-template-columns: 90px 1fr; column-gap: 70px; }
.sec--v > * { grid-column: 2; }
.sec--v h2 {
  grid-column: 1; grid-row: 1 / span 30; position: sticky; top: 120px; align-self: start; justify-self: start; margin-bottom: 0;
  writing-mode: vertical-rl; transform: rotate(180deg); font-size: 44px;
  border-right: 4px solid var(--holy); padding-right: 14px; /* rotated 180°: this bar ends up on the left of the word */
}
.sec--v > p:first-of-type { margin-top: 0; }
.sec--v > p:only-of-type { font-size: 22px; line-height: 1.5; color: #e6e6e6; }   /* Missão / Visão */
.sec .val { display: grid; grid-template-columns: 240px 1fr; column-gap: 30px; margin: 0; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.08); }
.sec .val:first-of-type { border-top: 0; padding-top: 0; }
@media (max-width: 760px) { .sec .val { grid-template-columns: 1fr; row-gap: 4px; } }
.divider { width: 100%; height: 1px; margin: 60px 0 0; background: rgba(255,255,255,.12); }
@media (max-width: 900px) {
  .sec--v { display: block; }
  .sec--v h2 { position: static; writing-mode: horizontal-tb; transform: none; font-size: 30px; margin-bottom: 20px; border-right: 0; padding-right: 0; }
  .sec h2 { font-size: 28px; }
}

.diffs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.diffs > div { border-left: 3px solid var(--holy); padding: 16px 18px 16px 20px; background: rgba(255,255,255,.03); border-radius: 0 10px 10px 0; }
.diffs strong { display: block; margin-bottom: 8px; font-size: 15px; }
@media (max-width: 600px) { .diffs { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tags span { color: var(--holy); border: 1px solid rgba(247,182,35,.6); font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 999px; }

/* Reveal on scroll (enabled by JS; content stays visible without it) */
.js-reveal .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-reveal .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .rv { opacity: 1; transform: none; } }

/* ---------- Contato (dark): text on the left, dark map on the right with a Holy address card ---------- */
html:has(.contact-page), html:has(.contact-page) body { background: #0b0b0b; }
.contact-page { padding-bottom: 0; color: #a8a8a8; font-size: 17px; line-height: 1.75; }
.type-cur { display: inline-block; width: .125em; height: .96em; margin-left: .08em; vertical-align: -.1em; background: var(--holy); animation: blink .5s steps(1) infinite; transition: opacity .4s; }
.type-cur.is-done { opacity: 0; animation: none; }

.cx-split { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.cx-split__l { padding: 150px var(--pad) 110px; display: flex; flex-direction: column; justify-content: center; }
.cx-k { font-size: 25px; line-height: 1.2; font-weight: 800; text-transform: uppercase; color: #fff; }
.cx-t { font-family: "Inter", sans-serif; font-weight: 900; color: #fff; font-size: clamp(44px, 4.4vw, 110px); line-height: 1.05; margin-left: -.04em; white-space: nowrap; }
.cx-lead { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.55; color: #e6e6e6; max-width: 44ch; margin-top: 18px; }

/* Info rows, formatted like the "Valores" list */
.cx-info { margin-top: 40px; }
.cx-i { display: grid; grid-template-columns: 150px 1fr; column-gap: 30px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); }
.cx-i:first-child { border-top: 0; }
.cx-i h2 { font-size: 15px; font-weight: 600; color: #fff; padding-top: 2px; }
.cx-v p { color: #c9c9c9; }
.cx-v small { color: #8a8a8a; font-size: 14px; }
.cx-mail { color: #fff; font-weight: 700; font-size: 19px; transition: color .25s; }
.cx-copy { all: unset; cursor: pointer; display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--holy); border-bottom: 1px solid rgba(247,182,35,.5); }
.cx-copy:hover { border-color: var(--holy); }
.cx-copy:focus-visible { outline: 2px solid var(--holy); outline-offset: 3px; }
.cx-ext { display: inline-block; margin-top: 8px; color: #fff; font-weight: 600; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.3); transition: color .25s, border-color .25s; }
.cx-mail:hover, .cx-ext:hover { color: var(--holy); border-color: var(--holy); }
.contact-page { --ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-9 9'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E"); }
.cx-ext::after, .cx-pin a::after { content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .3em; vertical-align: -.05em; background: var(--holy); -webkit-mask: var(--ext) center / contain no-repeat; mask: var(--ext) center / contain no-repeat; }

/* Dark map. The iframe is taller than its box (shifted up and down equally) so Google's
   corner info box falls outside the visible area while the address stays centred. */
.cx-split__r { position: relative; overflow: hidden; background: #151515; }
.cx-map { position: absolute; inset: 0; overflow: hidden; }
.cx-map iframe { position: absolute; left: 0; top: -170px; width: 100%; height: calc(100% + 340px); filter: grayscale(1) invert(.92) contrast(.88) brightness(.95); }

/* Holy address card pinned above the map marker */
.cx-pin { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, calc(-100% - 30px));
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 20px; white-space: nowrap;
  border-radius: 16px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.cx-pin::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #000; }
.cx-pin img { height: 20px; width: auto; margin-bottom: 8px; }
.cx-pin small { font-size: 12px; color: #8a8a8a; }
.cx-pin span { font-size: 14px; color: #ddd; }
.cx-pin a { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--holy); }

/* Desktop: everything fits one screen, no scroll; sizes follow the window height */
@media (min-width: 901px) {
  html:has(.contact-page), html:has(.contact-page) body { overflow: hidden; height: 100%; }
  .cx-split { height: 100vh; height: 100dvh; min-height: 0; }
  .cx-split__l { padding: clamp(96px, 13vh, 150px) var(--pad) clamp(70px, 9vh, 110px); overflow: hidden; }
  .cx-t { font-size: min(4.4vw, 8.5vh); }
  .cx-k { font-size: min(25px, 2.6vh); }
  .cx-lead { font-size: min(23px, 2.3vh); margin-top: 1.6vh; }
  .cx-info { margin-top: 3.2vh; }
  .cx-i { padding: 1.8vh 0; }
}
@media (max-width: 900px) {
  .cx-split { grid-template-columns: 1fr; }
  .cx-split__l { padding: 120px var(--pad) 50px; }
  .cx-t { white-space: normal; font-size: clamp(40px, 11vw, 64px); }
  .cx-i { grid-template-columns: 1fr; row-gap: 4px; }
  .cx-split__r { height: 420px; margin-bottom: 60px; }
}

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; background: #000; color: #fff; padding: 120px 20px; }
.nf h1 { font-family: "Inter", sans-serif; font-weight: 900; font-size: clamp(100px, 22vw, 260px); line-height: 1; }
.nf p { font-size: 20px; margin: 10px 0 30px; }
.nf a { display: inline-block; border: 1px solid #fff; padding: 12px 28px; text-transform: uppercase; font-size: 15px; transition: background .3s, color .3s; }
.nf a:hover { background: #fff; color: #000; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- CRT TV overlay on background videos ---------- */
.fx {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.38) 0 1px, transparent 1px 3px);
  animation: crt-flicker .12s steps(2) infinite;
}
.fx::before { /* RGB subpixels */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,0,0,.07) 0 1px, rgba(0,255,0,.05) 1px 2px, rgba(0,80,255,.07) 2px 3px);
  mix-blend-mode: screen;
}
.ms__video video, .vband__video video { filter: contrast(1.12) saturate(1.15) brightness(.95); }
@keyframes crt-flicker { 0% { opacity: .96; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fx { animation: none; } }

/* ---------- Home text layer + terminal typing ---------- */
.ms__hud { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.ms__hud .ms__cont { position: absolute; inset: 0; }
.ms__hud .ms__cont > * { width: 100%; min-width: 0; }   /* fixed text box: a wide scrambled glyph in the title must not widen it and re-wrap the paragraph */
.ms__hud .ms__desc { max-width: 34em; font-kerning: none; font-variant-ligatures: none; }   /* same width whether or not the cursor splits a word */
.ln { display: block; overflow: hidden; }
.ln__i { display: block; }
.ms__t .ln { padding-bottom: .04em; margin-bottom: -.04em; }
.ms__hud i { /* scrambled glyphs just ahead of the cursor */
  font-style: normal; color: var(--holy); text-shadow: -2px 0 rgba(255,0,90,.75), 2px 0 rgba(0,210,255,.75);
}
.ms__hud .ghost { visibility: hidden; }   /* untyped text keeps its place so lines never reflow */
.ms__hud .cur { /* logo-bar yellow, full font height; zero-size box so it never moves text or changes line height */
  display: inline-block; position: relative; width: 0; height: 0; vertical-align: baseline;
  animation: blink .5s steps(1) infinite;
}
.ms__hud .cur::before { /* fits inside the line box (lines clip overflow), so nothing gets cut */
  content: ""; position: absolute; left: .08em; width: .125em; bottom: -.17em; height: .96em;
  background: var(--holy); border-radius: .02em;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Slide indicator: scrollbar with vertical name + mouse ---------- */
.pg { position: absolute; inset: 0; z-index: 6; pointer-events: none; color: #fff; --n: 3; }
.pg__sb { position: absolute; right: 16px; top: 110px; bottom: 120px; width: 24px; display: flex; justify-content: center; }
.pg__track { position: relative; display: block; width: 3px; height: 100%; border-radius: 3px; background: rgba(255,255,255,.18); }
.pg__thumb { position: absolute; left: 0; right: 0; top: 0; height: calc(100% / var(--n)); border-radius: 3px; background: var(--holy); transform: translateY(calc(var(--pos) * 100%)); }
.pg__tag { position: absolute; right: 12px; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; white-space: nowrap; font-style: normal; }
.pg__name { color: var(--holy); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; }

.pg__ms { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; }
.pg__mouse { position: relative; width: 22px; height: 34px; border: 2px solid #fff; border-radius: 12px; margin-right: 6px; overflow: hidden; }
.pg__mouse i { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--holy); animation: wheel 1.6s var(--ease) infinite; }
.pg__hint { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .7; font-weight: 600; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

@media (max-width: 767px) {
  .pg__ms { bottom: 96px; }
  .pg__hint { display: none; }
  .pg__tag { display: none; }
  .pg__sb { right: 8px; top: 96px; bottom: 100px; }
}
