/* ============================================================
   TOKENS
   ============================================================ */
:root{
  --bg: #030102;
  --line: rgba(255, 60, 90, .22);

  --ink: #F5E9EA;
  --muted: #C9A2A8;

  --neon-red: #FF1E43;
  --neon-cyan: #22E6FF;
  --neon-yellow: #FFD400;
  --neon-pink: #FF2FD0;
  --neon-green: #39FF88;

  --font-display: "Monoton", "Segoe UI", sans-serif;
  --font-body: "Rubik", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
  --ticker-h: 46px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; font-size: 18px; scroll-padding-top: calc(var(--nav-h) + var(--ticker-h)); }

body{
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background lives on its own fixed, viewport-sized layer instead of
   `background-attachment: fixed` on body — that property is unreliable
   on mobile browsers (iOS Safari / many Android WebViews can fail to
   paint it), and toggling to `scroll` on mobile instead makes
   `background-size: cover` scale against the full page height rather
   than the viewport, badly distorting the texture on a long page. A
   position:fixed layer sized with inset:0 is always viewport-sized and
   paints identically on every device. */
body::before{
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* `inset: 0` stretches to the *current* viewport, which mobile browsers
     keep resizing as the address bar collapses/expands on scroll — that
     made this whole layer (and its background-size: cover) rescale a
     little on every scroll, seen as a "zoom in and out" jitter. Sizing
     to the small-viewport height instead keeps it constant regardless of
     the address bar's state. Plain vh is a fallback for older browsers,
     which will keep the old (minor) resize behavior. */
  height: 100vh;
  height: 100svh;
  z-index: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(3,1,2,.35) 0%, rgba(3,1,2,.75) 45%, #030102 100%),
    url("bg-texture.png?v=2");
  background-size: cover;
  background-position: center;
}

a{ color: inherit; text-decoration: none; }
a, button{ -webkit-tap-highlight-color: transparent; }
ul{ list-style: none; margin: 0; padding: 0; }
h1, h2, h3{ margin: 0; }
p{ margin: 0; }

::selection{ background: var(--neon-red); color: #10030a; }

/* ============================================================
   ORNATE PAGE FRAME
   ============================================================ */
.page-frame{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* same fixed-to-the-address-bar issue as body::before above — pin this
     to the small-viewport height so the ornate border doesn't rescale
     every time the mobile toolbar shows/hides during scroll. */
  height: 100vh;
  height: 100svh;
  z-index: 300;
  pointer-events: none;
  border-style: solid;
  border-width: clamp(22px, 5vw, 34px);
  border-color: transparent;
  border-image: url("border-frame.png?v=2") 22% round;
  mix-blend-mode: screen;
  opacity: .95;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: linear-gradient(to bottom, rgba(3,1,2,.9), transparent);
}
.nav-logo{
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--neon-red);
  text-shadow: 0 0 6px var(--neon-red), 0 0 16px rgba(255,30,67,.6);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .latin{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  color: var(--muted);
  text-shadow: none;
  letter-spacing: .08em;
}

/* small vertical-cycling kanji strip, sitting just to the right of the
   logo mark — a tiny animated "terminal" accent */
.corner-glyph{
  display: inline-block;
  width: 20px;
  height: 20px;
  overflow: hidden;
  vertical-align: middle;
  margin-left: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255,30,67,.06);
}
.corner-glyph-track{
  display: block;
  animation: glyph-cycle 9s steps(1) infinite;
}
.corner-glyph-track b{
  display: block;
  height: 20px;
  line-height: 20px;
  width: 20px;
  text-align: center;
  font-style: normal;
  font-weight: 400;
  font-size: .78rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 5px var(--neon-cyan), 0 0 10px rgba(34,230,255,.6);
}
@keyframes glyph-cycle{
  0%   { transform: translateY(0); }
  16%  { transform: translateY(-20px); }
  33%  { transform: translateY(-40px); }
  50%  { transform: translateY(-60px); }
  66%  { transform: translateY(-80px); }
  83%  { transform: translateY(-100px); }
  100% { transform: translateY(0); }
}

.nav-links{ display: flex; gap: 26px; }
.nav-links a{
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .04em;
  transition: color .25s, text-shadow .25s;
}
.nav-links a:hover{
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(34,230,255,.8);
}

/* hamburger toggle — hidden on desktop, shown below 768px */
.nav-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  z-index: 210;
}
.nav-toggle:focus{ outline: none; }
.nav-toggle-icon{
  width: 24px;
  height: 24px;
  overflow: visible;
}
.nav-toggle-line{
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 4px rgba(34,230,255,.7));
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.open .line-1{ transform: translateY(6px) rotate(45deg); }
.nav-toggle.open .line-2{ opacity: 0; }
.nav-toggle.open .line-3{ transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 768px){
  :root{ --nav-h: 60px; }

  .navbar{ padding: 0 20px; }
  .nav-logo{ font-size: .92rem; gap: 6px; }
  .nav-logo .latin{ font-size: .72rem; }

  .nav-toggle{ display: flex; }

  .nav-links{
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(3,1,2,.97);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .4s var(--ease), opacity .3s var(--ease), transform .3s var(--ease);
    pointer-events: none;
  }
  .nav-links.open{
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a{
    width: 100%;
    padding: 14px 32px;
    text-align: center;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child{ border-bottom: none; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
main{ position: relative; z-index: 2; }
section{
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 32px;
}
.tag{
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 36px;
}
.tag-cyan{ color: var(--neon-cyan); }
.tag-yellow{ color: var(--neon-yellow); }
.tag-pink{ color: var(--neon-pink); }

/* ============================================================
   NEON SIGN TEXT
   ============================================================ */
.sign{
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .04em;
  display: block;
  line-height: 1.25;
}
.sign-red{ color: #fff; text-shadow: 0 0 4px #fff, 0 0 12px #fff, 0 0 22px var(--neon-red), 0 0 46px var(--neon-red), 0 0 90px rgba(255,30,67,.6); }
.sign-cyan{ color: #fff; text-shadow: 0 0 4px #fff, 0 0 10px #fff, 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan), 0 0 80px rgba(34,230,255,.55); }
.sign-pink{ color: #fff; text-shadow: 0 0 4px #fff, 0 0 12px #fff, 0 0 22px var(--neon-pink), 0 0 46px var(--neon-pink), 0 0 90px rgba(255,47,208,.6); }
.sign.small{ font-size: .4em; margin-top: 6px; letter-spacing: .12em; }

.sign[data-flicker]{ animation: neon-flicker 6.5s linear infinite; }

@keyframes neon-flicker{
  0%   { opacity: 1; }
  1%   { opacity: .3; }
  2%   { opacity: 1; }
  3%   { opacity: .15; }
  4%   { opacity: .85; }
  5%   { opacity: 1; }
  6%   { opacity: .4; }
  7%   { opacity: 1; }
  55%  { opacity: 1; }
  56%  { opacity: .2; }
  57%  { opacity: 1; }
  58%  { opacity: .6; }
  59%  { opacity: 1; }
  100% { opacity: 1; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  min-height: 86vh;
  display: flex;
  perspective: 1200px;
  flex-direction: column;
  justify-content: center;
  padding-top: 48px;
}
.hero-dragon{
  position: absolute;
  z-index: -1;
  top: 14%;
  right: -4%;
  width: 380px;
  max-width: 60vw;
  opacity: .24;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 26px rgba(255,30,67,.55));
  transform-origin: center center;
  transform-style: preserve-3d;
  animation: dragon-spin 10s linear infinite;
  pointer-events: none;
}
@keyframes dragon-spin{
  from{ transform: rotateY(0deg) rotateX(12deg); }
  to{ transform: rotateY(-360deg) rotateX(12deg); }
}
@media (max-width: 760px){
  .hero-dragon{ width: 240px; opacity: .16; }
}
.eyebrow{
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .08em;
  color: var(--neon-yellow);
  text-shadow: 0 0 8px rgba(255,212,0,.5);
  margin-bottom: 22px;
}
.neon-title{ font-size: clamp(2.6rem, 9vw, 6rem); }

.hero-sub{
  margin-top: 34px;
  max-width: 54ch;
  font-size: 1.05rem;
  color: var(--muted);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.about-grid p{ color: var(--muted); font-size: 1.02rem; }
@media (max-width: 700px){
  .about-grid{ grid-template-columns: 1fr; }
}

/* ============================================================
   SKILLS — neon pill chips
   ============================================================ */
.skill-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.skill-grid li{
  padding: 11px 20px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  background: rgba(245,233,234,.04);
  border: 1px solid;
  transition: transform .3s var(--ease), background .25s;
}
.skill-grid li:hover{ transform: translateY(-3px); }
.glow-red{ color: var(--neon-red); border-color: rgba(255,30,67,.4); }
.glow-red:hover{ background: rgba(255,30,67,.12); box-shadow: 0 0 16px rgba(255,30,67,.4); }
.glow-cyan{ color: var(--neon-cyan); border-color: rgba(34,230,255,.4); }
.glow-cyan:hover{ background: rgba(34,230,255,.12); box-shadow: 0 0 16px rgba(34,230,255,.4); }
.glow-yellow{ color: var(--neon-yellow); border-color: rgba(255,212,0,.4); }
.glow-yellow:hover{ background: rgba(255,212,0,.12); box-shadow: 0 0 16px rgba(255,212,0,.4); }
.glow-pink{ color: var(--neon-pink); border-color: rgba(255,47,208,.4); }
.glow-pink:hover{ background: rgba(255,47,208,.12); box-shadow: 0 0 16px rgba(255,47,208,.4); }

/* ============================================================
   CERTIFICATIONS — credential cards, grouped by category
   ============================================================ */
.cert-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.cert-card{
  position: relative;
  padding: 24px 24px;
  border-radius: 14px;
  background: rgba(245,233,234,.03);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s, background .3s;
}
.cert-card:hover{
  transform: translateY(-6px);
  background: rgba(245,233,234,.06);
}
.cert-card[data-glow="cyan"]:hover{ border-color: var(--neon-cyan); box-shadow: 0 0 26px rgba(34,230,255,.35); }
.cert-card[data-glow="yellow"]:hover{ border-color: var(--neon-yellow); box-shadow: 0 0 26px rgba(255,212,0,.35); }

.cert-card h3{
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--ink);
}
.cert-issuer{
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .03em;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   TERMINAL — interactive signature element
   ============================================================ */
.terminal-window{
  background: rgba(6, 2, 3, .82);
  border: 1px solid rgba(57, 255, 136, .3);
  border-radius: 12px;
  box-shadow: 0 0 26px rgba(57, 255, 136, .12), inset 0 0 40px rgba(0,0,0,.4);
  overflow: hidden;
  font-family: var(--font-mono);
}
.terminal-bar{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(57,255,136,.2);
}
.term-dot{ width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-red{ background: var(--neon-red); box-shadow: 0 0 6px var(--neon-red); }
.dot-yellow{ background: var(--neon-yellow); box-shadow: 0 0 6px var(--neon-yellow); }
.dot-green{ background: var(--neon-green); box-shadow: 0 0 6px var(--neon-green); }
.term-title{
  margin-left: 10px;
  font-size: .78rem;
  color: var(--muted);
}
.terminal-body{
  padding: 20px 20px 6px;
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;
  font-size: .88rem;
  color: var(--neon-green);
}
.terminal-body p{
  margin-bottom: 10px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.term-cmd{ color: var(--neon-cyan); }
.term-error{ color: var(--neon-red); }
.term-muted{ color: var(--muted); }
.terminal-input-row{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(57,255,136,.15);
}
.prompt{ color: var(--neon-pink); font-weight: 500; }
.terminal-input{
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .9rem;
  caret-color: var(--neon-green);
}
.terminal-input::placeholder{ color: rgba(201,162,168,.5); }

/* scrollbar for the terminal, webkit + firefox */
.terminal-body::-webkit-scrollbar{ width: 8px; }
.terminal-body::-webkit-scrollbar-thumb{ background: rgba(57,255,136,.3); border-radius: 8px; }
.terminal-body{ scrollbar-width: thin; scrollbar-color: rgba(57,255,136,.3) transparent; }

/* ============================================================
   PROJECTS — modular categories of interactive grid cards
   ============================================================ */
.category-block{ margin-bottom: 60px; }
.category-block:last-child{ margin-bottom: 0; }

.category-heading{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.category-heading::before{
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}
.category-heading-red{ color: var(--neon-red); }
.category-heading-cyan{ color: var(--neon-cyan); }
.category-heading-yellow{ color: var(--neon-yellow); }
.category-heading-pink{ color: var(--neon-pink); }

.project-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.project-card{
  position: relative;
  padding: 30px 26px;
  border-radius: 14px;
  background: rgba(245,233,234,.03);
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s, background .35s;
  will-change: transform;
}
.project-card:hover{
  transform: translateY(-10px) scale(1.035);
  background: rgba(245,233,234,.06);
  z-index: 5;
}
/* multicolor glowing ring behind each card, revealed on hover */
.project-card::before{
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  padding: 2px;
  background: conic-gradient(from 0deg,
    var(--neon-red), var(--neon-yellow), var(--neon-green),
    var(--neon-cyan), var(--neon-pink), var(--neon-red));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  filter: blur(2px);
  transition: opacity .4s;
  animation: card-spin 4s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
}
.project-card:hover::before{ opacity: .85; animation-play-state: running; }

@keyframes card-spin{
  to{ filter: blur(2px) hue-rotate(360deg); }
}

.project-card[data-glow="red"]:hover{ border-color: var(--neon-red); box-shadow: 0 0 34px rgba(255,30,67,.4), 0 14px 30px rgba(0,0,0,.45); }
.project-card[data-glow="cyan"]:hover{ border-color: var(--neon-cyan); box-shadow: 0 0 34px rgba(34,230,255,.4), 0 14px 30px rgba(0,0,0,.45); }
.project-card[data-glow="yellow"]:hover{ border-color: var(--neon-yellow); box-shadow: 0 0 34px rgba(255,212,0,.4), 0 14px 30px rgba(0,0,0,.45); }
.project-card[data-glow="pink"]:hover{ border-color: var(--neon-pink); box-shadow: 0 0 34px rgba(255,47,208,.4), 0 14px 30px rgba(0,0,0,.45); }

.project-card:hover .project-index{
  transform: scale(1.15);
  transition: transform .35s var(--ease);
}
.project-card:hover h3{
  text-shadow: 0 0 10px rgba(245,233,234,.35);
}

@media (prefers-reduced-motion: reduce){
  .project-card::before{ animation: none; }
}

.project-index{
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(245,233,234,.35);
  margin-bottom: 18px;
}
.project-card[data-glow="red"] .project-index{ color: var(--neon-red); }
.project-card[data-glow="cyan"] .project-index{ color: var(--neon-cyan); }
.project-card[data-glow="yellow"] .project-index{ color: var(--neon-yellow); }
.project-card[data-glow="pink"] .project-index{ color: var(--neon-pink); }

.project-card h3{
  font-weight: 700;
  font-size: 1.18rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.project-card p{
  color: var(--muted);
  font-size: .94rem;
  margin-bottom: 20px;
}

/* small mono chips showing the stack used per project */
.project-tech{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.project-tech span{
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .02em;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(245,233,234,.05);
  border: 1px solid var(--line);
}

/* status pill — floated top-right so title text wraps around it
   instead of leaving dead padding on every line */
.project-status{
  float: right;
  margin: 2px 0 10px 12px;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.status-live{ color: var(--neon-green); border-color: rgba(57,255,136,.4); background: rgba(57,255,136,.08); }
.status-progress{ color: var(--neon-yellow); border-color: rgba(255,212,0,.4); background: rgba(255,212,0,.08); }
.status-planned{ color: var(--muted); border-color: var(--line); background: rgba(245,233,234,.04); }
.status-distinction{ color: var(--neon-pink); border-color: rgba(255,47,208,.45); background: rgba(255,47,208,.1); }

/* "coming soon" style card for categories still being built out */
.project-card-placeholder{ border-style: dashed; }
.project-card-placeholder:hover{ transform: translateY(-6px); }

/* ============================================================
   TICKER — now a full-bleed divider between content and contact
   ============================================================ */
.ticker{
  width: 100%;
  overflow: hidden;
  background: rgba(5, 1, 2, .92);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.ticker-top{
  position: relative;
  margin-top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 150;
}
.ticker-track{
  display: flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
  width: max-content;
  animation: ticker-scroll 26s linear infinite;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .1em;
}
.ticker-track span{ padding-right: 56px; }
.ticker-track .t-red{ color: var(--neon-red); text-shadow: 0 0 6px var(--neon-red), 0 0 14px rgba(255,30,67,.6); }
.ticker-track .t-cyan{ color: var(--neon-cyan); text-shadow: 0 0 6px var(--neon-cyan), 0 0 14px rgba(34,230,255,.6); }
.ticker-track .t-yellow{ color: var(--neon-yellow); text-shadow: 0 0 6px var(--neon-yellow), 0 0 14px rgba(255,212,0,.6); }
.ticker-track .t-pink{ color: var(--neon-pink); text-shadow: 0 0 6px var(--neon-pink), 0 0 14px rgba(255,47,208,.6); }

@keyframes ticker-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ============================================================
   CONTACT — boxed, on-theme card so nothing floats loose
   ============================================================ */
.contact{ padding-top: 96px; padding-bottom: 130px; }
.contact > .tag{ text-align: center; margin-bottom: 22px; }

.contact-card{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  border-radius: 18px;
  background: rgba(245,233,234,.03);
  border: 1px solid rgba(255,47,208,.28);
  box-shadow: 0 0 36px rgba(255,47,208,.1);
  overflow: hidden;
}

.contact-main{
  padding: 56px 48px;
  border-right: 1px solid var(--line);
}
.contact-main .sign{ font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 18px; }
.contact-lead{
  color: var(--muted);
  font-size: 1rem;
  max-width: 40ch;
  margin: 0 0 32px;
}

.mega-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  color: var(--neon-cyan);
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(34,230,255,.4);
  transition: color .3s, text-shadow .3s, border-color .3s;
  word-break: break-word;
}
.mega-link-icon{ width: 1.1em; height: 1.1em; flex-shrink: 0; }
.mega-link:hover{
  color: #fff;
  text-shadow: 0 0 10px var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.contact-links{
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,.25);
}
.contact-row{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  transition: color .25s, background .25s, padding-left .25s;
}
.contact-row:last-child{ border-bottom: none; }
.contact-row svg{ width: 18px; height: 18px; flex-shrink: 0; }
.contact-row-label{ flex: 1; }
.contact-row-arrow{
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s, transform .25s;
}
.contact-row:hover{
  background: rgba(245,233,234,.04);
  padding-left: 38px;
}
.contact-row:hover .contact-row-arrow{ opacity: 1; transform: translateX(0); }
.contact-row[data-social="github"]:hover{ color: var(--ink); }
.contact-row[data-social="linkedin"]:hover{ color: var(--neon-cyan); }
.contact-row[data-social="twitter"]:hover{ color: var(--neon-yellow); }
.contact-row[data-social="resume"]:hover{ color: var(--neon-pink); }

@media (max-width: 720px){
  .contact-card{ grid-template-columns: 1fr; }
  .contact-main{ border-right: none; border-bottom: 1px solid var(--line); padding: 40px 28px; }
  .contact-row{ padding: 18px 28px; }
  .contact-row:hover{ padding-left: 32px; }
}

/* ============================================================
   DIVIDER CROSS — coin-spin ornament between contact & footer
   ============================================================ */
.divider-cross{
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 5vw, 48px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 32px 56px;
  perspective: 1200px;
}
.spinning-cross{
  width: 110px;
  max-width: 22vw;
  height: auto;
  flex-shrink: 0;
  display: block;
  transform-style: preserve-3d;
  transform-origin: center center;
  filter: drop-shadow(0 0 14px rgba(255,255,255,.35)) drop-shadow(0 0 32px rgba(255,47,208,.35));
  animation: cross-spin 4s linear infinite;
}
@keyframes cross-spin{
  from{ transform: rotateY(0deg); }
  to{ transform: rotateY(360deg); }
}

.divider-quote{
  flex: 1;
  max-width: 260px;
  margin: 0;
  font-style: italic;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--muted);
}
.divider-quote p{ margin: 0 0 10px; }
.divider-quote-left{ text-align: right; }
.divider-quote-right{ text-align: left; }
.divider-quote cite{
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--neon-pink);
  opacity: .85;
}

@media (max-width: 700px){
  .divider-cross{ flex-direction: column; gap: 22px; padding: 20px 28px 48px; }
  .divider-quote{ max-width: 42ch; text-align: center !important; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 36px 20px 60px;
  font-size: .8rem;
  color: var(--muted);
}
.footer-year{ margin-top: 6px; opacity: .6; }

/* ============================================================
   FADE-UP SCROLL REVEAL (restrained)
   ============================================================ */
.fade-up{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.fade-up.visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker-track{ animation: none; }
  .sign[data-flicker]{ opacity: 1; }
  .corner-glyph-track{ animation: none; }
  .hero-dragon{ animation: none; }
  .spinning-cross{ animation: none; }
}