/* ==========================================================================
   JOÃO VITOR VENTURA — PORTFOLIO
   Visual language: NERV/MAGI terminal aesthetic (Neon Genesis Evangelion)
   ========================================================================== */

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

:root {
  --bg: #000000;
  --fg: #ffffff;
  --fg-dim: rgba(255, 255, 255, 0.62);
  --fg-faint: rgba(255, 255, 255, 0.32);
  --orange: #ff6a13;
  --purple: #8b5cf6;
  --green: #2ee66b;
  --red: #ff2e2e;
  --line: rgba(255, 255, 255, 0.18);

  --font-title: "Times New Roman", Times, serif;
  --font-label: "Helvetica", "Arial", sans-serif;
  --font-mono: "Courier New", Courier, monospace;

  --container: 1180px;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

/* lets accent-color changes (manual or auto-cycle) fade instead of snap;
   gradients (hazard stripes, logo mark) still cut instantly, which reads fine */
*, *::before, *::after {
  transition: color 0.6s ease, border-color 0.6s ease, background-color 0.6s ease;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-label);
  font-size: 1.6rem;
  line-height: 1.6;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 3rem;
}

/* ---- shared type treatments (from original WIP page) ---- */

.evangelion-title {
  font-family: var(--font-title);
  font-weight: bold;
  font-stretch: condensed;
  transform: scaleX(0.79);
  display: inline-block;
  transform-origin: left;
}

.episode-title {
  font-family: var(--font-label);
  font-weight: bold;
  font-stretch: condensed;
  transform: scaleX(0.79);
  transform-origin: left;
  text-transform: uppercase;
  display: inline-block;
}

.terminal-text {
  font-family: var(--font-mono);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1.2rem;
}

/* ---- scanline atmosphere overlay ---- */

.scanline-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.6;
  mix-blend-mode: overlay;
}

/* ---- hazard stripe divider ---- */

.hazard-divider {
  height: 0.9rem;
  width: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--orange) 0,
    var(--orange) 14px,
    #000 14px,
    #000 28px
  );
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 3rem;
  height: 6.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-mark {
  width: 3.2rem;
  height: 3.2rem;
  flex: none;
  background: repeating-linear-gradient(
    45deg,
    var(--orange) 0,
    var(--orange) 5px,
    #000 5px,
    #000 10px
  );
  border: 1px solid var(--orange);
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--fg);
}

.main-nav ul {
  display: flex;
  gap: 2.6rem;
}

.main-nav a {
  font-family: var(--font-label);
  font-weight: bold;
  font-stretch: condensed;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a:hover {
  color: var(--orange);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--line);
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  padding: 0.6rem 1rem;
  color: var(--fg-dim);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: var(--orange);
  color: #000;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  width: 3rem;
  height: 3rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--fg);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: #000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
}

.mobile-nav-overlay.open {
  display: flex;
}

.mobile-nav-overlay a {
  font-family: var(--font-title);
  font-weight: bold;
  font-stretch: condensed;
  transform: scaleX(0.79);
  font-size: 4rem;
  text-transform: uppercase;
  color: var(--fg);
}

.mobile-nav-overlay a:hover {
  color: var(--orange);
}

.mobile-close {
  position: absolute;
  top: 2.4rem;
  right: 3rem;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--orange);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 14rem 0 6rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-eyebrow {
  margin-bottom: 1.6rem;
}

.hero-name {
  font-size: 6.4rem;
  line-height: 0.98;
  display: block;
}

.hero-name span {
  display: block;
}

.hero-subtitle {
  margin-top: 2rem;
  font-size: 2rem;
  color: var(--orange);
}

.hero-tagline {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--fg-dim);
}

.hero-actions {
  margin-top: 3.2rem;
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  font-family: var(--font-label);
  font-weight: bold;
  font-stretch: condensed;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.3rem;
  border: 1px solid var(--fg);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--fg);
  color: #000;
}

.btn-primary {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange);
  color: #000;
}

.scroll-cue {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 3rem;
  background: var(--fg-faint);
  animation: scrollpulse 1.8s ease-in-out infinite;
}

@keyframes scrollpulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* ==========================================================================
   IMAGE PLACEHOLDER (HUD viewfinder frame)
   ========================================================================== */

.img-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #0a0a0a;
  border: 1px dashed var(--fg-faint);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* clips the photo (and its load-in zoom) without ever clipping the corner
   brackets, which deliberately sit 1px outside this box to land on the border */
.img-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}


.img-placeholder.wide {
  aspect-ratio: 16 / 10;
}

.img-placeholder.square {
  aspect-ratio: 1 / 1;
}

.img-placeholder .corner {
  position: absolute;
  width: 1.8rem;
  height: 1.8rem;
  border: 2px solid var(--orange);
  z-index: 2;
}

.img-placeholder .corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.img-placeholder .corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.img-placeholder .corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.img-placeholder .corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.img-placeholder .ph-label {
  font-family: var(--font-mono);
  color: var(--fg-faint);
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  padding: 1rem;
}

.img-placeholder .ph-label strong {
  display: block;
  color: var(--fg-dim);
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.04);
  filter: brightness(1.8);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

.img-frame img.loaded {
  opacity: 1;
  transform: scale(1);
  filter: brightness(1);
}

/* ==========================================================================
   SECTION SHELL
   ========================================================================== */

.section {
  padding: 9rem 0;
}

.section-heading {
  margin-bottom: 5rem;
}

.section-eyebrow {
  display: block;
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: 4.4rem;
  line-height: 1;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
}

.id-card {
  border: 1px solid var(--line);
  padding: 2rem;
}

.id-fields {
  margin-top: 2rem;
  display: grid;
  gap: 1.4rem;
}

.id-field dt {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.id-field dd {
  font-size: 1.4rem;
}

.about-text p {
  font-size: 1.7rem;
  color: var(--fg-dim);
  max-width: 62ch;
}

.highlight-log {
  margin-top: 3rem;
  display: grid;
  gap: 1.4rem;
}

.highlight-log li {
  padding-left: 2.4rem;
  position: relative;
  font-size: 1.5rem;
  color: var(--fg-dim);
}

.highlight-log li::before {
  content: "//";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-family: var(--font-mono);
}

/* ==========================================================================
   SKILLS (MAGI)
   ========================================================================== */

.magi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

.magi-unit {
  border-top: 3px solid var(--purple);
  padding-top: 2rem;
}

.magi-unit:nth-child(2) { border-top-color: #ff6a13; }
.magi-unit:nth-child(3) { border-top-color: var(--green); }

.magi-name {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  margin-bottom: 1.6rem;
  display: block;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.chip {
  border: 1px solid var(--line);
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--fg-dim);
}

.training-strip {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px dashed var(--line);
}

.training-strip .chip {
  border-style: dashed;
  color: var(--fg-faint);
}

/* ==========================================================================
   EXPERIENCE (operation log)
   ========================================================================== */

.log-list {
  display: grid;
  gap: 4.5rem;
}

.log-entry {
  position: relative;
  padding-left: 3rem;
  border-left: 2px solid var(--line);
}

.log-entry::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  background: var(--orange);
}

.log-code {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--orange);
  letter-spacing: 0.1em;
}

.log-role {
  font-size: 2.4rem;
  margin-top: 0.6rem;
}

.log-meta {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--fg-faint);
  margin-top: 0.4rem;
}

.log-body {
  margin-top: 1.2rem;
  color: var(--fg-dim);
  font-size: 1.5rem;
  max-width: 68ch;
}

/* ==========================================================================
   PROJECTS (file archive)
   ========================================================================== */

.featured-file {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  border: 1px solid var(--line);
  padding: 3rem;
  margin-bottom: 4rem;
}

.file-tag-lead {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--orange);
  letter-spacing: 0.1em;
}

.file-title {
  font-size: 3.2rem;
  margin-top: 0.8rem;
}

.file-desc {
  margin-top: 1.4rem;
  color: var(--fg-dim);
  font-size: 1.5rem;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

.file-card {
  border: 1px solid var(--line);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.file-card:hover {
  border-color: var(--orange);
}

.file-card .img-placeholder {
  aspect-ratio: 16 / 10;
  margin-bottom: 1.6rem;
}

.file-card h3 {
  font-size: 2rem;
}

.file-card .file-meta {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--fg-faint);
  margin-top: 0.4rem;
}

.file-card p {
  margin-top: 1.2rem;
  font-size: 1.4rem;
  color: var(--fg-dim);
  flex: 1;
}

.file-card .file-link {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--orange);
  letter-spacing: 0.08em;
  align-self: start;
  border-bottom: 1px solid var(--orange);
}

.offduty-strip {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.offduty-label {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--fg-faint);
  letter-spacing: 0.1em;
}

.offduty-items {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-size: 1.3rem;
  color: var(--fg-dim);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact {
  text-align: center;
}

.contact .section-heading {
  margin-bottom: 2rem;
}

.contact-intro {
  color: var(--fg-dim);
  font-size: 1.7rem;
  max-width: 56ch;
  margin: 0 auto 4rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-card {
  border: 1px solid var(--line);
  padding: 2.4rem 3rem;
  min-width: 22rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.contact-card .platform {
  font-size: 2.2rem;
}

.contact-card .platform-sub {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--fg-faint);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--fg-faint);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SCROLL REVEAL
   these run on first load AND on scroll-into-view (same IntersectionObserver
   mechanism) — deliberately kept separate from the accent-color auto-cycle
   flicker: none of this touches the elements/keyframes that flicker colors,
   and it respects prefers-reduced-motion (that flicker is the one exception).
   ========================================================================== */

/* plain calm fade — body text, bullet lists, anything meant to stay easy to read */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 0.08s);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* boot-glitch-in: headings power on with a couple of stutters + a slight
   skew, like a CRT warming up. Two variants so the permanent scaleX(0.79)
   condensing on evangelion-title/episode-title survives the animation
   instead of getting reset by it. */
@keyframes boot-glitch-in {
  0% { opacity: 0; transform: translateY(18px) skewX(-6deg); filter: blur(2px); }
  15% { opacity: 0.85; transform: translateY(2px) skewX(4deg); filter: blur(0); }
  25% { opacity: 0.15; transform: translateY(2px) skewX(-3deg); }
  38% { opacity: 1; transform: translateY(0) skewX(2deg); }
  48% { opacity: 0.25; }
  62% { opacity: 1; transform: translateY(0) skewX(0deg); }
  100% { opacity: 1; transform: translateY(0) skewX(0deg); filter: blur(0); }
}

@keyframes boot-glitch-in-condensed {
  0% { opacity: 0; transform: scaleX(0.79) translateY(18px) skewX(-6deg); filter: blur(2px); }
  15% { opacity: 0.85; transform: scaleX(0.79) translateY(2px) skewX(4deg); filter: blur(0); }
  25% { opacity: 0.15; transform: scaleX(0.79) translateY(2px) skewX(-3deg); }
  38% { opacity: 1; transform: scaleX(0.79) translateY(0) skewX(2deg); }
  48% { opacity: 0.25; }
  62% { opacity: 1; transform: scaleX(0.79) translateY(0) skewX(0deg); }
  100% { opacity: 1; transform: scaleX(0.79) translateY(0) skewX(0deg); filter: blur(0); }
}

.reveal-glitch,
.reveal-glitch-condensed {
  opacity: 0;
}

.reveal-glitch.in-view {
  animation-name: boot-glitch-in;
  animation-duration: 0.65s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

.reveal-glitch-condensed.in-view {
  animation-name: boot-glitch-in-condensed;
  animation-duration: 0.65s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

/* power-on: cards/panels/chips fade up with a quick brightness surge,
   like a screen or system module switching on */
@keyframes power-on {
  0% { opacity: 0; transform: translateY(20px); filter: brightness(0.4); }
  40% { opacity: 1; transform: translateY(2px); filter: brightness(1.6); }
  60% { filter: brightness(0.7); }
  100% { opacity: 1; transform: translateY(0); filter: brightness(1); }
}

.reveal-power {
  opacity: 0;
}

.reveal-power.in-view {
  animation-name: power-on;
  animation-duration: 0.8s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

/* reveal-type: text is blanked by JS and typed back in character by
   character, terminal-style, with a blinking block cursor while typing */
.type-cursor::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: currentColor;
  margin-left: 0.15em;
  vertical-align: -0.15em;
  animation: cursor-blink 0.8s steps(1) infinite;
}

@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* same reasoning as above: the boot-in/typewriter/power-on entrance effects
   are the site's visual identity (first-load + scroll-in), not ambient
   motion, so they get the same reduced-motion exemption as the flicker */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition-duration: 0.6s !important;
  }
  .reveal-glitch.in-view,
  .reveal-glitch-condensed.in-view {
    animation-duration: 0.65s !important;
  }
  .reveal-power.in-view {
    animation-duration: 0.8s !important;
  }
}

/* ==========================================================================
   ACCENT COLOR CYCLE
   The accent color auto-cycles between the three Eva unit colors, site-wide,
   with an old-neon-sign flicker transition. No user-facing control anymore —
   just runs. See the JS for the interval/timing.
   ========================================================================== */

/* dims out in irregular stutters, sits dark for a beat (JS swaps --orange
   during that trough), then stutters back on lit */
@keyframes neon-flicker {
  0%, 100% { opacity: 1; }
  4% { opacity: 0.35; }
  8% { opacity: 1; }
  13% { opacity: 0.15; }
  18% { opacity: 0.85; }
  24% { opacity: 0.3; }
  30% { opacity: 1; }
  36% { opacity: 0.1; }
  42% { opacity: 0.5; }
  46% { opacity: 0.04; }
  52% { opacity: 0.04; }
  58% { opacity: 0.45; }
  63% { opacity: 0.08; }
  69% { opacity: 0.8; }
  75% { opacity: 0.2; }
  82% { opacity: 1; }
  87% { opacity: 0.4; }
  92% { opacity: 1; }
}

html.flickering .hazard-divider,
html.flickering .logo-mark,
html.flickering .lang-btn.active,
html.flickering .mobile-close,
html.flickering .hero-subtitle,
html.flickering .btn-primary,
html.flickering .img-placeholder .corner,
html.flickering .id-field dt,
html.flickering .highlight-log li::before,
html.flickering .log-entry::before,
html.flickering .log-code,
html.flickering .file-tag-lead,
html.flickering .file-link {
  animation: neon-flicker 1.2s ease-in-out 1;
}

/* like the reveal system, this is signature visual identity rather than
   ambient motion, so it keeps running (just at the reduced duration) under
   prefers-reduced-motion instead of collapsing to an instant color swap */
@media (prefers-reduced-motion: reduce) {
  html.flickering .hazard-divider,
  html.flickering .logo-mark,
  html.flickering .lang-btn.active,
  html.flickering .mobile-close,
  html.flickering .hero-subtitle,
  html.flickering .btn-primary,
  html.flickering .img-placeholder .corner,
  html.flickering .id-field dt,
  html.flickering .highlight-log li::before,
  html.flickering .log-entry::before,
  html.flickering .log-code,
  html.flickering .file-tag-lead,
  html.flickering .file-link {
    animation-duration: 1.2s !important;
  }
}

/* ==========================================================================
   COPY / DRAG PROTECTION
   Applied to decorative "flavor" text (NERV/MAGI labels, terminal readouts),
   generic graphic chrome (corners, scanline, hazard dividers, logo mark) and
   every photo. Real content — bio copy, job history, skill names, contact
   info — is deliberately left out so it stays selectable/copyable.
   ========================================================================== */

.no-copy,
.img-frame img,
.logo-text,
.logo-mark,
.scanline-overlay,
.corner,
.hazard-divider,
.terminal-text,
.scroll-cue,
.magi-name,
.log-code,
.file-tag-lead,
.offduty-label,
.ph-label {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.img-frame img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */

.back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 900;
  width: 3.6rem;
  height: 3.6rem;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.6rem);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease,
    color 0.2s ease, background 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--orange);
  color: #000;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media screen and (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-name {
    font-size: 4.6rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .id-card {
    max-width: 32rem;
  }

  .magi-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .featured-file {
    grid-template-columns: 1fr;
  }

  .file-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media screen and (max-width: 600px) {
  .container {
    padding: 0 2rem;
  }

  .header-inner {
    padding: 0 2rem;
  }

  .hero {
    padding-top: 12rem;
  }

  .hero-name {
    font-size: 3.4rem;
  }

  .section-title {
    font-size: 3.2rem;
  }

  .file-grid {
    grid-template-columns: 1fr;
  }

  .featured-file {
    padding: 2rem;
  }

  .contact-card {
    width: 100%;
  }
}

@media screen and (max-width: 525px) {
  .hero-name {
    font-size: 2.8rem;
    line-height: 1.05;
  }

  .hero-subtitle {
    font-size: 1.6rem;
  }
}
