:root {
  --bg: #05070b;
  --bg-2: #0a111d;
  --bg-3: #101a2a;
  --panel: rgba(16, 26, 42, 0.82);
  --panel-2: rgba(9, 17, 30, 0.78);
  --line: rgba(130, 174, 210, 0.18);
  --line-strong: rgba(90, 168, 255, 0.4);
  --text: #edf5ff;
  --muted: #8a99a9;
  --blue: #2498ff;
  --blue-2: #5fb8ff;
  --gray: #1d2633;
  --online: #67f2a0;
  --idle: #ffc85f;
  --dnd: #ff667e;
  --font-ui: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --font-display: "Montserrat", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  isolation: isolate;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(36, 152, 255, 0.18), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(95, 184, 255, 0.08), transparent 24%),
    radial-gradient(circle at 48% 94%, rgba(65, 87, 112, 0.18), transparent 30%),
    linear-gradient(145deg, #030407 0%, var(--bg) 42%, #08121f 100%);
  background-size: 140% 140%, 120% 120%, 150% 150%, 100% 100%;
  font-family: var(--font-ui);
  animation: pageWake 900ms cubic-bezier(0.16, 1, 0.3, 1) both, backgroundFlow 26s ease-in-out infinite alternate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 30%, rgba(95, 184, 255, 0.09), transparent 26%),
    radial-gradient(circle at 78% 70%, rgba(130, 174, 210, 0.07), transparent 28%);
  opacity: 0.9;
  animation: ambientBreath 9s ease-in-out infinite alternate;
  pointer-events: none;
}

body::after {
  content: none;
}

html.lightbox-open,
body.lightbox-open {
  overflow: hidden;
}

.motion-specks {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.motion-specks span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(95, 184, 255, 0.72);
  box-shadow: 0 0 18px rgba(95, 184, 255, 0.66);
  opacity: 0;
  animation: speckFlight var(--duration, 12s) ease-in-out infinite;
  animation-delay: var(--delay);
}

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

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

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #030407;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #030407;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f3846, var(--blue));
}

.site-nav,
.page-shell,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-nav {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 28px));
  margin: 16px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 14, 24, 0.78);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  overflow: hidden;
  animation: navDrop 520ms ease both;
}

.site-nav::after {
  content: none;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
}

.nav-logo::before {
  content: "";
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  border: 2px solid rgba(95, 184, 255, 0.65);
  border-radius: 50%;
  background: url("PERFIL-DERIVAO.png") center / cover no-repeat;
  box-shadow: 0 0 0 0 rgba(95, 184, 255, 0.45);
  animation: logoPulse 4.8s ease-in-out infinite;
}

.nav-logo span {
  color: var(--blue-2);
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  overflow: hidden;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue-2);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 260ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(36, 152, 255, 0.12);
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.page-shell {
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
  padding: 86px 0 50px;
}

.home-shell {
  padding-top: 76px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(34px, 8vw, 94px);
  align-items: center;
  min-height: calc(100vh - 188px);
}

.home-copy {
  display: grid;
  gap: 22px;
}

.eyebrow {
  color: var(--blue-2);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero-title,
.page-title {
  max-width: 880px;
  color: transparent;
  background: linear-gradient(95deg, #36A5FF 35%, #9ed4ff 52%, #36A5FF 74%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 900;
  line-height: 0.9;
  text-wrap: balance;
  animation: titleFlow 9s ease-in-out infinite;
}

.hero-title {
  color: transparent;
}

.hero-desc,
.page-subtitle {
  max-width: 690px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 900;
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background 240ms ease;
}

.btn::after {
  content: none;
}

.btn.primary {
  color: #06101d;
  background: var(--blue-2);
  box-shadow: 0 16px 40px rgba(36, 152, 255, 0.22);
  animation: buttonGlow 5.2s ease-in-out infinite;
}

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
}

.btn:hover::after {
  transform: none;
}

.discord-avatar-link {
  position: relative;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(340px, 78vw);
  color: var(--text);
  text-align: center;
}

.discord-avatar-link img {
  width: min(290px, 72vw);
  height: min(290px, 72vw);
  object-fit: cover;
  border: 4px solid rgba(95, 184, 255, 0.72);
  border-radius: 50%;
  background: var(--gray);
  box-shadow: 0 22px 90px rgba(36, 152, 255, 0.18);
  transition: transform 180ms ease, border-color 180ms ease;
  animation: avatarFloat 6.8s ease-in-out infinite, avatarGlow 5.8s ease-in-out infinite;
}

.discord-avatar-link:hover img {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--text);
}

.status-dot {
  position: absolute;
  right: 38px;
  bottom: 72px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border: 5px solid var(--bg);
  border-radius: 50%;
  background: #657080;
}

.status-dot.online {
  background: var(--online);
}

.status-dot.idle {
  background: var(--idle);
}

.status-dot.dnd {
  background: var(--dnd);
}

.avatar-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
}

.discord-status-panel {
  display: grid;
  gap: 5px;
  width: min(330px, 100%);
  padding: 14px 16px;
  border: 1px solid rgba(95, 184, 255, 0.22);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(9, 17, 30, 0.82), rgba(16, 26, 42, 0.58));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  transition: border-color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.discord-avatar-link:hover .discord-status-panel {
  transform: translateY(-2px);
  border-color: rgba(95, 184, 255, 0.5);
  box-shadow: 0 22px 64px rgba(36, 152, 255, 0.13);
}

.discord-status-panel[data-status="online"] {
  border-color: rgba(103, 242, 160, 0.42);
}

.discord-status-panel[data-status="idle"] {
  border-color: rgba(255, 200, 95, 0.42);
}

.discord-status-panel[data-status="dnd"] {
  border-color: rgba(255, 102, 126, 0.42);
}

.discord-status-kicker {
  color: var(--blue-2);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.discord-avatar-link small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.discord-activity-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 6px;
  text-align: left;
}

.discord-activity-row.is-hidden {
  display: none;
}

.discord-activity-image {
  width: 56px !important;
  height: 56px !important;
  border: 1px solid rgba(95, 184, 255, 0.25) !important;
  border-radius: 12px !important;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none !important;
  animation: none !important;
}

.discord-activity-image.is-hidden {
  display: none;
}

.discord-activity-image.is-hidden + .discord-activity-copy {
  grid-column: 1 / -1;
  text-align: center;
}

.discord-activity-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.discord-activity-title {
  color: rgba(237, 245, 255, 0.94);
  font-size: 0.86rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-activity-subtext {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-activity-text,
.discord-activity-subtext {
  max-width: 310px;
  color: rgba(237, 245, 255, 0.84) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  overflow-wrap: anywhere;
}

.quick-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.mini-panel,
.service-tile,
.contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.mini-panel::before,
.service-tile::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, transparent 18%, rgba(95, 184, 255, 0.13) 50%, transparent 78%);
  opacity: 0;
  transform: translateX(-70%);
  transition: opacity 260ms ease, transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.mini-panel:hover,
.service-tile:hover,
.contact-card:hover {
  border-color: rgba(95, 184, 255, 0.5);
  box-shadow: 0 20px 60px rgba(36, 152, 255, 0.13);
}

.mini-panel:hover::before,
.service-tile:hover::before,
.contact-card:hover::before {
  opacity: 1;
  transform: translateX(70%);
}

.mini-panel {
  min-height: 150px;
  padding: 22px;
  border-radius: 20px;
}

.mini-panel span,
.tile-code,
.contact-card span {
  color: var(--blue-2);
  font-weight: 900;
}

.mini-panel strong {
  display: block;
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.mini-panel p,
.service-tile p {
  color: var(--muted);
  line-height: 1.6;
}

.page-heading {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin-bottom: 40px;
}

.work-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-tile {
  min-height: 236px;
  padding: 24px;
  border-radius: 20px;
}

.category-tile {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 16px;
  min-height: 310px;
  isolation: isolate;
  text-align: center;
}

.category-media {
  display: grid;
  place-items: center;
  width: 152px;
  height: 152px;
  margin: 0 auto 4px;
  border: 1px solid rgba(95, 184, 255, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 20%, rgba(95, 184, 255, 0.14), transparent 45%),
    rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.category-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.36));
  transition: transform 260ms ease, filter 260ms ease;
}

.category-tile:hover .category-logo {
  transform: translateY(-6px) scale(1.06);
  filter: drop-shadow(0 22px 34px rgba(95, 184, 255, 0.24));
}

.service-tile:hover {
  transform: translateY(-8px) scale(1.015);
}

.tile-code {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(36, 152, 255, 0.08);
  font-size: 0.78rem;
}

.service-tile h2 {
  margin: 48px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 0.96;
}

.category-tile h2 {
  margin: 4px 0 0;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.category-page-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(22px, 5vw, 54px);
  align-items: center;
  margin-bottom: 34px;
}

.category-page-logo {
  width: min(180px, 44vw);
  height: min(180px, 44vw);
  border: 2px solid rgba(95, 184, 255, 0.28);
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.42));
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.empty-work {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 24px;
  border: 1px dashed rgba(95, 184, 255, 0.28);
  border-radius: 20px;
  background: rgba(9, 17, 30, 0.46);
}

.empty-work span {
  color: var(--blue-2);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.empty-work strong {
  align-self: end;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.gallery-grid-single {
  grid-template-columns: minmax(260px, 560px);
}

.work-shot {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 238px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 25% 15%, rgba(95, 184, 255, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(16, 26, 42, 0.84), rgba(9, 17, 30, 0.74));
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.22);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.work-shot:hover {
  border-color: rgba(95, 184, 255, 0.52);
  box-shadow: 0 24px 70px rgba(36, 152, 255, 0.13);
  transform: translateY(-7px);
}

.work-shot-link,
.work-shot img,
.image-pair {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(95, 184, 255, 0.14);
  border-radius: 16px;
  background: rgba(3, 7, 12, 0.56);
}

.work-shot-link {
  display: block;
  cursor: zoom-in;
}

.work-shot-link > img {
  height: 210px;
  object-fit: contain;
  padding: 8px;
  transition: transform 260ms ease, filter 260ms ease;
}

.work-shot-link:hover > img {
  filter: brightness(1.08);
  transform: scale(1.025);
}

.image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
}

.image-pair img {
  height: 210px;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.work-shot-wide {
  grid-column: span 2;
}

.hire-strip {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.hire-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  max-width: 100%;
  padding: 0 24px;
  border: 1px solid rgba(95, 184, 255, 0.42);
  border-radius: 18px;
  color: #06101d;
  background: linear-gradient(135deg, #8fd0ff, var(--blue-2));
  box-shadow: 0 18px 52px rgba(36, 152, 255, 0.24);
  font-weight: 900;
  text-align: center;
  transition: transform 240ms ease, box-shadow 240ms ease, filter 240ms ease;
}

.hire-button:hover {
  filter: brightness(1.08);
  box-shadow: 0 24px 70px rgba(95, 184, 255, 0.34);
  transform: translateY(-4px) scale(1.015);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  background: rgba(3, 7, 12, 0.88);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(16px);
  transition: opacity 220ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: min(calc(100vw - 56px), 1280px);
  max-width: min(calc(100dvw - 56px), 1280px);
  max-height: calc(100vh - 104px);
  max-height: calc(100dvh - 104px);
  border: 1px solid rgba(95, 184, 255, 0.34);
  border-radius: 18px;
  object-fit: contain;
  background: rgba(9, 17, 30, 0.88);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.62);
  transform: translate(-50%, -50%) scale(0.96);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox.is-open img {
  transform: translate(-50%, -50%) scale(1);
}

.image-lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(95, 184, 255, 0.42);
  border-radius: 12px;
  color: var(--text);
  background: rgba(16, 26, 42, 0.86);
  font-family: var(--font-ui);
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.image-lightbox-close:hover {
  border-color: var(--blue-2);
  background: rgba(36, 152, 255, 0.18);
  transform: translateY(-2px);
}

.journey-scene {
  --timeline-progress: 0%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  align-items: center;
  min-height: 380px;
  margin-top: 34px;
  overflow: visible;
  padding: 34px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
}

.journey-scene::before {
  content: none;
}

.journey-scene.in-view {
  opacity: 1;
}

.journey-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(130, 174, 210, 0.24);
  transform: translateY(-50%);
}

.journey-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--timeline-progress);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 18px rgba(95, 184, 255, 0.95), 0 0 34px rgba(36, 152, 255, 0.44);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.45);
  transition: opacity 220ms ease;
}

.journey-scene.in-view .journey-line::after {
  opacity: 1;
  animation: progressHead 1s ease-in-out infinite;
}

.journey-line span {
  display: block;
  width: var(--timeline-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2498ff, #5fb8ff, #2498ff);
  background-size: 220% 100%;
  box-shadow: 0 0 18px rgba(95, 184, 255, 0.78);
  animation: lineEnergy 1.4s linear infinite;
}

.journey-point {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 310px;
}

.journey-content {
  position: absolute;
  left: 50%;
  display: grid;
  justify-items: center;
  width: min(180px, 100%);
  text-align: center;
  opacity: 0;
  filter: blur(8px);
  transform: translateX(-50%) translateY(28px) scale(0.86);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 900ms ease;
}

.journey-point.is-top .journey-content {
  bottom: calc(50% + 30px);
}

.journey-point.is-bottom .journey-content {
  top: calc(50% + 30px);
}

.journey-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.36));
  transition: transform 180ms ease, filter 180ms ease;
}

.journey-content h2 {
  max-width: 180px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.journey-content span {
  display: block;
  margin-top: 5px;
  color: var(--blue-2);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.journey-content p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.journey-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 14px;
  height: 14px;
  border: 3px solid rgba(7, 13, 22, 0.96);
  border-radius: 50%;
  background: #6f7d8d;
  box-shadow: 0 0 0 0 rgba(95, 184, 255, 0), 0 0 14px rgba(255, 255, 255, 0.14);
  opacity: 0.72;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 280ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1), background 280ms ease, box-shadow 280ms ease;
}

.journey-dot::before {
  content: "";
  position: absolute;
  inset: -13px;
  border: 1px solid rgba(95, 184, 255, 0.3);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.45);
}

.journey-point.active .journey-content {
  z-index: 4;
  opacity: 1 !important;
  filter: none !important;
  transform: translateX(-50%) translateY(0) scale(1) !important;
  transition: none;
}

.journey-point.active .journey-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.35);
  background: var(--blue-2);
  box-shadow: 0 0 0 9px rgba(95, 184, 255, 0.16), 0 0 24px rgba(95, 184, 255, 0.82);
  animation: dotPulse 1.8s ease-in-out infinite;
}

.journey-point.active .journey-dot::before {
  opacity: 1;
  animation: dotRing 1.8s ease-out infinite;
}

.journey-point.active .journey-logo {
  animation: logoFloat 2.6s ease-in-out infinite;
}

.journey-point:hover .journey-logo {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 18px 28px rgba(36, 152, 255, 0.25));
}

.contact-shell {
  min-height: calc(100vh - 150px);
  display: grid;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.6fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.contact-wide {
  grid-template-columns: 1fr;
}

.contact-stack {
  display: grid;
  gap: 16px;
}

.contact-wide .contact-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card {
  display: grid;
  place-items: center;
  gap: 16px;
  min-height: 190px;
  padding: 24px;
  border-radius: 20px;
  text-align: center;
  transition: border-color 160ms ease, transform 160ms ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.contact-icon {
  width: 34px;
  height: 34px;
  color: var(--blue-2);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-icon path:not([fill="none"]) {
  fill: currentColor;
  stroke: none;
}

.minecraft-photo-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(95, 184, 255, 0.34);
  border-radius: 12px;
  background: rgba(95, 184, 255, 0.12);
  box-shadow: 0 0 24px rgba(95, 184, 255, 0.14);
}

.minecraft-photo-icon img {
  width: 42px;
  height: 42px;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: hue-rotate(74deg) saturate(1.9) brightness(1.08) contrast(1.08);
  transform: scale(3.05);
}

.contact-card span {
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.contact-card strong {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px 42px;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer span:first-child {
  color: var(--blue-2);
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(8px);
  transition: opacity 640ms ease, transform 640ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 640ms ease;
}

.reveal.visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  filter: none !important;
  transition: none;
}

.home-copy .reveal:nth-child(1) { transition-delay: 80ms; }
.home-copy .reveal:nth-child(2) { transition-delay: 170ms; }
.home-copy .reveal:nth-child(3) { transition-delay: 260ms; }
.home-copy .reveal:nth-child(4) { transition-delay: 350ms; }
.discord-avatar-link.reveal { transition-delay: 220ms; }
.quick-panels .reveal:nth-child(1),
.work-board .reveal:nth-child(1),
.contact-stack .reveal:nth-child(1) { transition-delay: 80ms; }
.quick-panels .reveal:nth-child(2),
.work-board .reveal:nth-child(2),
.contact-stack .reveal:nth-child(2) { transition-delay: 160ms; }
.quick-panels .reveal:nth-child(3),
.work-board .reveal:nth-child(3),
.contact-stack .reveal:nth-child(3) { transition-delay: 240ms; }
.work-board .reveal:nth-child(4) { transition-delay: 320ms; }
.work-board .reveal:nth-child(5) { transition-delay: 400ms; }
.work-board .reveal:nth-child(6) { transition-delay: 480ms; }
.work-board .reveal:nth-child(7) { transition-delay: 560ms; }

@keyframes dotPulse {
  0%, 100% {
    box-shadow: 0 0 0 9px rgba(95, 184, 255, 0.16), 0 0 24px rgba(95, 184, 255, 0.82);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(95, 184, 255, 0.06), 0 0 36px rgba(95, 184, 255, 0.92);
  }
}

@keyframes dotRing {
  0% {
    opacity: 0.75;
    transform: scale(0.35);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes particleDrift {
  from {
    transform: translate3d(-10px, -4px, 0);
  }
  to {
    transform: translate3d(12px, 8px, 0);
  }
}

@keyframes pageWake {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes backgroundFlow {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0% 0%;
  }
  100% {
    background-position: 18% 12%, 82% 18%, 38% 82%, 0% 0%;
  }
}

@keyframes ambientBreath {
  from {
    opacity: 0.45;
    transform: scale(1);
  }
  to {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

@keyframes softSweep {
  0%, 42% {
    transform: translateX(-120%);
  }
  72%, 100% {
    transform: translateX(120%);
  }
}

@keyframes speckFlight {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.6);
  }
  18%, 72% {
    opacity: 0.76;
  }
  100% {
    opacity: 0;
    transform: translate3d(42px, -70px, 0) scale(1.08);
  }
}

@keyframes navShine {
  0%, 35% {
    transform: translateX(-130%);
  }
  62%, 100% {
    transform: translateX(130%);
  }
}

@keyframes logoPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(95, 184, 255, 0.36);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(95, 184, 255, 0);
    transform: scale(1.04);
  }
}

@keyframes buttonGlow {
  0%, 100% {
    box-shadow: 0 16px 40px rgba(36, 152, 255, 0.22);
  }
  50% {
    box-shadow: 0 18px 54px rgba(95, 184, 255, 0.42);
  }
}

@keyframes avatarGlow {
  0%, 100% {
    box-shadow: 0 22px 90px rgba(36, 152, 255, 0.18), 0 0 0 0 rgba(95, 184, 255, 0.24);
  }
  50% {
    box-shadow: 0 26px 110px rgba(36, 152, 255, 0.34), 0 0 0 14px rgba(95, 184, 255, 0);
  }
}

@keyframes revealPop {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.94);
    filter: blur(8px);
  }
  65% {
    opacity: 1;
    transform: translateY(-4px) scale(1.012);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes journeyPop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(34px) scale(0.72);
    filter: blur(10px);
  }
  62% {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px) scale(1.07);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes progressHead {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.42);
    opacity: 0.55;
  }
  50% {
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 1;
  }
}

@keyframes lineEnergy {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: 220% 0;
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-7px) scale(1.04);
  }
}

@keyframes titleFlow {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 0 rgba(95, 184, 255, 0));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 24px rgba(95, 184, 255, 0.18));
  }
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes avatarFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 980px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .home-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-wide .contact-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .discord-avatar-link {
    order: -1;
  }

  .quick-panels,
  .work-board,
  .project-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-board {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav {
    top: 10px;
    width: min(100% - 20px, 1160px);
    margin-top: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .nav-logo {
    font-size: 0.96rem;
  }

  .nav-link {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .page-shell {
    width: min(100% - 22px, 1160px);
    padding-top: 54px;
  }

  .home-shell {
    padding-top: 42px;
  }

  .home-grid {
    min-height: auto;
  }

  .hero-title,
  .page-title {
    font-size: clamp(2.35rem, 14vw, 4rem);
    line-height: 0.94;
  }

  .eyebrow {
    letter-spacing: 3px;
  }

  .discord-avatar-link img {
    width: min(230px, 70vw);
    height: min(230px, 70vw);
  }

  .status-dot {
    right: calc(50% - 102px);
    bottom: 62px;
  }

  .quick-panels,
  .work-board,
  .project-grid,
  .gallery-grid,
  .contact-wide .contact-stack {
    grid-template-columns: 1fr;
  }

  .work-shot-wide {
    grid-column: span 1;
  }

  .work-shot-link > img,
  .image-pair img {
    height: 190px;
  }

  .category-board {
    grid-template-columns: 1fr;
  }

  .service-tile {
    min-height: 210px;
  }

  .category-tile {
    min-height: 270px;
  }

  .category-media {
    width: 138px;
    height: 138px;
  }

  .category-page-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .category-page-logo {
    width: 136px;
    height: 136px;
  }

  .journey-scene {
    grid-template-columns: repeat(5, minmax(156px, 1fr));
    gap: 0;
    overflow-x: auto;
    padding: 36px 22px;
    scroll-snap-type: x proximity;
  }

  .journey-line {
    left: 44px;
    right: auto;
    width: calc((156px * 5) - 88px);
  }

  .journey-point {
    min-width: 156px;
    scroll-snap-align: center;
  }

  .journey-content {
    width: 148px;
  }

  .journey-logo {
    width: 58px;
    height: 58px;
  }

  .contact-card {
    min-height: 100px;
  }
}
