:root {
  color-scheme: dark;
  --bg: #08110f;
  --bg-2: #101614;
  --ink: #f6f1e8;
  --muted: #a7b4ad;
  --line: rgba(246, 241, 232, 0.14);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --cyan: #36e0c2;
  --amber: #f5b84b;
  --coral: #ff6f61;
  --moss: #74a66a;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(54, 224, 194, 0.18), transparent 32rem),
    radial-gradient(circle at 88% 22%, rgba(255, 111, 97, 0.14), transparent 28rem),
    linear-gradient(135deg, #070d0c 0%, #121817 48%, #0b1210 100%);
  color: var(--ink);
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::selection {
  background: rgba(54, 224, 194, 0.34);
}

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

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

.fx-canvas,
.grid-layer {
  inset: 0;
  pointer-events: none;
  position: fixed;
}

.fx-canvas {
  opacity: 0.82;
  z-index: 0;
}

.grid-layer {
  background-image:
    linear-gradient(rgba(246, 241, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 232, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 72%);
  opacity: 0.4;
  z-index: 1;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(22px);
  background: rgba(8, 17, 15, 0.72);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 70px;
  padding: 12px clamp(18px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(54, 224, 194, 0.92), rgba(245, 184, 75, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 14px;
  box-shadow: 0 0 28px rgba(54, 224, 194, 0.34);
  color: #08110f;
  display: inline-flex;
  font-size: 0.76rem;
  height: 38px;
  justify-content: center;
  letter-spacing: 0;
  transform: rotate(-6deg);
  width: 38px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  justify-content: center;
  margin-left: auto;
}

.nav-links a {
  color: rgba(246, 241, 232, 0.72);
  font-size: 0.95rem;
  font-weight: 800;
  position: relative;
}

.nav-links a::after {
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  bottom: -8px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.icon-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  min-width: 52px;
  padding: 0 12px;
}

.icon-button:hover {
  border-color: rgba(54, 224, 194, 0.58);
  box-shadow: 0 0 22px rgba(54, 224, 194, 0.2);
}

.hero {
  align-items: center;
  display: grid;
  min-height: min(900px, 100vh);
  overflow: hidden;
  padding: 112px clamp(18px, 6vw, 92px) 72px;
  position: relative;
}

.hero::before {
  border: 1px solid rgba(54, 224, 194, 0.18);
  border-radius: 50%;
  content: "";
  height: min(58vw, 720px);
  pointer-events: none;
  position: absolute;
  right: -10vw;
  top: 12vh;
  width: min(58vw, 720px);
}

.hero::after {
  background:
    linear-gradient(90deg, transparent, rgba(54, 224, 194, 0.4), transparent),
    linear-gradient(0deg, transparent, rgba(245, 184, 75, 0.22), transparent);
  content: "";
  filter: blur(1px);
  height: 360px;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
  right: 8vw;
  top: 24vh;
  transform: rotate(-18deg);
  width: 360px;
}

.hero-bg,
.hero-overlay {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-bg {
  filter: saturate(1.2) contrast(1.1);
  opacity: 0.28;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 17, 15, 0.95) 0%, rgba(8, 17, 15, 0.76) 42%, rgba(8, 17, 15, 0.44) 100%),
    linear-gradient(0deg, rgba(8, 17, 15, 0.94), rgba(8, 17, 15, 0.18) 54%);
}

.hero-stage {
  align-items: center;
  display: grid;
  gap: clamp(34px, 6vw, 90px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  margin: 0 auto;
  max-width: 1240px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.hero-content {
  color: #fff;
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero h1 {
  background:
    linear-gradient(92deg, #fff 0%, #d8fff7 36%, #f5b84b 68%, #ffb2aa 100%);
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(54, 224, 194, 0.18));
  font-size: clamp(4.2rem, 11vw, 9.6rem);
  line-height: 0.9;
  margin: 0;
}

.hero-title {
  color: rgba(246, 241, 232, 0.94);
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.24;
  margin: 24px 0 0;
  max-width: 760px;
}

.hero-copy {
  color: rgba(246, 241, 232, 0.74);
  font-size: 1.06rem;
  margin: 18px 0 0;
  max-width: 640px;
}

.hero-actions,
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  align-items: center;
  border-radius: 16px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 50px;
  overflow: hidden;
  padding: 0 22px;
  position: relative;
}

.primary-action {
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  box-shadow: 0 18px 42px rgba(54, 224, 194, 0.22);
  color: #08110f;
}

.primary-action::after {
  background: rgba(255, 255, 255, 0.5);
  content: "";
  height: 120%;
  left: -40%;
  position: absolute;
  top: -10%;
  transform: rotate(24deg);
  transition: left 260ms ease;
  width: 30%;
}

.primary-action:hover::after {
  left: 115%;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(246, 241, 232, 0.8);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 12px;
}

.command-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  padding: 24px;
  position: relative;
  transform-style: preserve-3d;
}

.command-panel::before {
  background: linear-gradient(135deg, rgba(54, 224, 194, 0.45), transparent 46%, rgba(245, 184, 75, 0.28));
  border-radius: inherit;
  content: "";
  inset: -1px;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
  position: absolute;
}

.panel-topline,
.panel-meter,
.panel-code {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.panel-topline {
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(246, 241, 232, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  padding-bottom: 16px;
}

.live-dot {
  color: var(--cyan);
  padding-left: 18px;
  position: relative;
}

.live-dot::before {
  animation: pulse 1.5s ease-in-out infinite;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--cyan);
  content: "";
  height: 8px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
}

.panel-meter {
  color: rgba(246, 241, 232, 0.84);
  font-weight: 800;
  margin-top: 18px;
}

.panel-meter strong {
  color: #fff;
}

.meter-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  height: 9px;
  margin-top: 8px;
  overflow: hidden;
}

.meter-track span {
  background: linear-gradient(90deg, var(--cyan), var(--amber), var(--coral));
  border-radius: inherit;
  box-shadow: 0 0 22px rgba(54, 224, 194, 0.34);
  display: block;
  height: 100%;
}

.panel-code {
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: rgba(246, 241, 232, 0.66);
  display: grid;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem;
  gap: 8px;
  margin-top: 22px;
  padding: 16px;
}

.panel-code strong {
  color: var(--cyan);
  overflow-wrap: anywhere;
}

.scroll-cue {
  align-items: center;
  bottom: 26px;
  color: rgba(246, 241, 232, 0.52);
  display: flex;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 10px;
  left: clamp(18px, 6vw, 92px);
  position: absolute;
  z-index: 2;
}

.scroll-cue span {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  height: 36px;
  overflow: hidden;
  position: relative;
  width: 2px;
}

.scroll-cue span::after {
  animation: scrollCue 1.7s ease-in-out infinite;
  background: var(--cyan);
  content: "";
  height: 12px;
  left: 0;
  position: absolute;
  top: -12px;
  width: 100%;
}

.summary-band {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 24px clamp(18px, 6vw, 92px);
}

.summary-grid {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  overflow: hidden;
}

.summary-grid article {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  min-height: 104px;
  padding: 22px;
}

.summary-grid strong {
  color: #fff;
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.2;
}

.summary-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.95rem;
  margin-top: 7px;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(70px, 10vw, 126px) clamp(18px, 5vw, 48px);
}

.section-heading {
  max-width: 380px;
}

.section-heading h2,
.contact-band h2 {
  color: #fff;
  font-size: clamp(2.15rem, 4.4vw, 4rem);
  line-height: 1;
  margin: 0;
}

.intro-layout {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: 330px 1fr;
  margin-top: 40px;
}

.profile-panel,
.timeline-body,
.project-card,
.skills-list article,
.contact-band {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.profile-panel {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

.profile-panel::after {
  background: linear-gradient(90deg, transparent, rgba(54, 224, 194, 0.34), transparent);
  content: "";
  height: 1px;
  left: 10%;
  position: absolute;
  right: 10%;
  top: 0;
}

.profile-panel img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.profile-panel div {
  padding: 22px;
}

.profile-panel h3 {
  color: #fff;
  font-size: 1.45rem;
  margin: 0;
}

.profile-panel p,
.intro-copy p {
  color: var(--muted);
}

.profile-panel p {
  margin: 4px 0 0;
}

.intro-copy {
  border-left: 4px solid var(--cyan);
  font-size: clamp(1.04rem, 1.8vw, 1.24rem);
  padding-left: clamp(22px, 4vw, 42px);
  position: relative;
}

.intro-copy::before {
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 24px var(--cyan);
  content: "";
  height: 12px;
  left: -8px;
  position: absolute;
  top: 4px;
  width: 12px;
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 18px;
}

.two-column {
  display: grid;
  gap: clamp(34px, 6vw, 84px);
  grid-template-columns: minmax(210px, 0.34fr) 1fr;
}

.sticky-heading {
  align-self: start;
  position: sticky;
  top: 108px;
}

.timeline {
  display: grid;
  gap: 22px;
  position: relative;
}

.timeline::before {
  background: linear-gradient(var(--cyan), var(--amber), var(--coral));
  border-radius: 999px;
  content: "";
  height: 100%;
  left: 154px;
  opacity: 0.55;
  position: absolute;
  top: 0;
  width: 2px;
}

.timeline-item {
  display: grid;
  gap: 28px;
  grid-template-columns: 150px 1fr;
  position: relative;
}

.timeline-date {
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 900;
  padding-top: 10px;
}

.timeline-body {
  border-radius: 22px;
  padding: clamp(22px, 4vw, 34px);
  position: relative;
}

.timeline-body::before {
  background: var(--cyan);
  border: 4px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(54, 224, 194, 0.58);
  content: "";
  height: 14px;
  left: -37px;
  position: absolute;
  top: 28px;
  width: 14px;
}

.timeline-body h3,
.project-card h3,
.skills-list h3 {
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0;
}

.timeline-body p,
.project-card p,
.skills-list p,
.contact-band p {
  color: var(--muted);
  margin: 12px 0 0;
}

.timeline-body ul {
  color: rgba(246, 241, 232, 0.86);
  margin: 18px 0 0;
  padding-left: 1.1rem;
}

.timeline-body li::marker {
  color: var(--cyan);
}

.timeline-body li + li {
  margin-top: 8px;
}

.project-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  perspective: 1100px;
}

.project-card {
  border-radius: 22px;
  min-height: 330px;
  overflow: hidden;
  padding: 28px;
  position: relative;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(0);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.project-card::before {
  background:
    radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 30%), rgba(54, 224, 194, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease;
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card:hover {
  border-color: rgba(54, 224, 194, 0.42);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.42),
    0 0 38px rgba(54, 224, 194, 0.14);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-6px);
}

.project-card:hover::before {
  opacity: 1;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.project-meta span {
  background: rgba(54, 224, 194, 0.11);
  border: 1px solid rgba(54, 224, 194, 0.22);
  border-radius: 999px;
  color: #b7fff2;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 10px;
}

.project-card strong {
  color: #fff;
  display: block;
  margin-top: 24px;
}

.portfolio-grid {
  display: grid;
  gap: 18px;
  margin-top: 40px;
  perspective: 1100px;
}

.portfolio-card {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  grid-template-columns: 70px 1fr auto;
  min-height: 158px;
  overflow: hidden;
  padding: 26px 28px;
  position: relative;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(0);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.portfolio-card::before {
  background:
    radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 30%), rgba(245, 184, 75, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(54, 224, 194, 0.14), transparent 52%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease;
}

.portfolio-card > * {
  position: relative;
  z-index: 1;
}

.portfolio-card:hover {
  border-color: rgba(245, 184, 75, 0.42);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.42),
    0 0 38px rgba(245, 184, 75, 0.13);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-5px);
}

.portfolio-card:hover::before {
  opacity: 1;
}

.portfolio-index {
  color: rgba(54, 224, 194, 0.9);
  font-size: 2.35rem;
  font-weight: 950;
  line-height: 1;
}

.portfolio-type {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 900;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.portfolio-card h3 {
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0;
}

.portfolio-card p:not(.portfolio-type) {
  color: var(--muted);
  margin: 10px 0 0;
}

.portfolio-card strong {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 900;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  white-space: nowrap;
}

.portfolio-card:hover strong {
  background: rgba(245, 184, 75, 0.14);
  border-color: rgba(245, 184, 75, 0.34);
  color: #ffe5ad;
}

.showcase-shell {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: var(--shadow);
  margin-top: 40px;
  overflow: hidden;
  padding: clamp(16px, 3vw, 28px);
}

.showcase-viewport {
  border-radius: 20px;
  overflow: hidden;
}

.showcase-track {
  display: flex;
  transform: translateX(calc(var(--slide-index, 0) * -100%));
  transition: transform 360ms ease;
}

.showcase-slide {
  background: rgba(0, 0, 0, 0.18);
  flex: 0 0 100%;
  margin: 0;
  min-width: 0;
  position: relative;
}

.showcase-slide img {
  aspect-ratio: 16 / 10;
  background: #101614;
  object-fit: contain;
  width: 100%;
}

.showcase-slide figcaption {
  align-items: center;
  background: linear-gradient(0deg, rgba(8, 17, 15, 0.92), rgba(8, 17, 15, 0.16));
  bottom: 0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  left: 0;
  padding: clamp(16px, 3vw, 28px);
  position: absolute;
  right: 0;
}

.showcase-slide figcaption strong {
  color: #fff;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.showcase-slide figcaption span {
  color: rgba(246, 241, 232, 0.72);
  text-align: right;
}

.showcase-controls {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 18px;
}

.showcase-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 1.8rem;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  line-height: 1;
  width: 44px;
}

.showcase-button:hover {
  background: rgba(54, 224, 194, 0.14);
  border-color: rgba(54, 224, 194, 0.34);
  color: #b7fff2;
}

.showcase-dots {
  display: flex;
  gap: 8px;
}

.showcase-dot {
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 9px;
  padding: 0;
  width: 26px;
}

.showcase-dot.is-active {
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

.skills-list {
  display: grid;
  gap: 16px;
}

.skills-list article {
  border-radius: 20px;
  padding: 24px 28px;
  position: relative;
}

.skills-list article::after {
  background: linear-gradient(180deg, var(--cyan), transparent);
  border-radius: 999px;
  content: "";
  height: 42px;
  left: 0;
  position: absolute;
  top: 24px;
  width: 3px;
}

.contact-band {
  border-radius: 28px;
  color: #fff;
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr minmax(280px, 420px);
  margin: 0 auto clamp(44px, 8vw, 84px);
  max-width: 1180px;
  overflow: hidden;
  padding: clamp(44px, 7vw, 72px) clamp(24px, 6vw, 64px);
  position: relative;
}

.contact-band::before {
  background:
    linear-gradient(90deg, rgba(54, 224, 194, 0.24), transparent),
    radial-gradient(circle at 82% 20%, rgba(245, 184, 75, 0.22), transparent 18rem);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.contact-band > * {
  position: relative;
  z-index: 1;
}

.contact-band p {
  color: rgba(246, 241, 232, 0.72);
  max-width: 660px;
}

.contact-list {
  display: grid;
  font-style: normal;
  gap: 12px;
}

.contact-list a {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  overflow-wrap: anywhere;
  padding: 14px 16px;
}

.contact-list a:hover {
  background: rgba(54, 224, 194, 0.1);
  border-color: rgba(54, 224, 194, 0.34);
  color: #b7fff2;
}

.site-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(18px, 6vw, 92px) 34px;
}

.site-footer a {
  color: var(--cyan);
  font-weight: 900;
}

.editor-toolbar {
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(8, 17, 15, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(760px, calc(100vw - 28px));
  overflow-x: auto;
  padding: 10px;
  position: fixed;
  right: clamp(14px, 4vw, 42px);
  top: 84px;
  z-index: 22;
}

.editor-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 34px;
  padding: 0 11px;
}

.editor-button:hover:not(:disabled),
.editor-button.is-active {
  background: rgba(54, 224, 194, 0.16);
  border-color: rgba(54, 224, 194, 0.45);
  color: #b7fff2;
}

.editor-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.editor-status {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 4px;
}

body.is-editing [data-editable] {
  outline: 1px dashed rgba(54, 224, 194, 0.48);
  outline-offset: 4px;
}

body.is-editing [data-editable]:focus {
  background: rgba(54, 224, 194, 0.08);
  outline: 2px solid rgba(245, 184, 75, 0.78);
}

body.is-editing .project-card,
body.is-editing .portfolio-card,
body.is-editing .timeline-item,
body.is-editing .skills-list article {
  cursor: pointer;
}

.project-card.is-selected,
.portfolio-card.is-selected,
.timeline-item.is-selected,
.skills-list article.is-selected {
  outline: 2px solid var(--amber);
  outline-offset: 6px;
}

.project-card.is-selected::before,
.portfolio-card.is-selected::before {
  opacity: 1;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 640ms ease,
    transform 640ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translateY(-50%) scale(0.8);
  }

  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.22);
  }
}

@keyframes scrollCue {
  0% {
    top: -12px;
  }

  65%,
  100% {
    top: 38px;
  }
}

@media (max-width: 940px) {
  .hero-stage,
  .intro-layout,
  .two-column,
  .timeline-item,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .command-panel {
    max-width: 520px;
  }

  .timeline::before,
  .timeline-body::before {
    display: none;
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-header {
    gap: 12px;
  }

  .nav-links {
    background: rgba(8, 17, 15, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    bottom: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
    left: 50%;
    padding: 9px 16px;
    position: fixed;
    transform: translateX(-50%);
    z-index: 30;
  }

  .nav-links a {
    font-size: 0.86rem;
  }

  .print-button {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding-bottom: 92px;
  }

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

  .portfolio-card {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .showcase-slide figcaption {
    align-items: flex-start;
    display: grid;
  }

  .showcase-slide figcaption span {
    text-align: left;
  }

  .editor-toolbar {
    bottom: 78px;
    left: 50%;
    max-width: calc(100vw - 28px);
    right: auto;
    top: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 64px;
    padding-inline: 14px;
  }

  .brand-mark {
    height: 34px;
    width: 34px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding-inline: 18px;
  }

  .hero-stage {
    gap: 30px;
  }

  .hero-actions a {
    width: 100%;
  }

  .command-panel {
    padding: 18px;
  }

  .summary-grid,
  .project-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-inline: 18px;
  }

  .intro-copy {
    border-left-width: 3px;
  }

  .project-card {
    min-height: auto;
  }

  .site-footer {
    display: grid;
    gap: 12px;
    padding-bottom: 132px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .fx-canvas {
    display: none;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .fx-canvas,
  .grid-layer,
  .site-header,
  .editor-toolbar,
  .hero-actions,
  .hero-tags,
  .command-panel,
  .scroll-cue,
  .site-footer {
    display: none;
  }

  .hero {
    color: #111;
    min-height: auto;
    padding: 22px 0;
  }

  .hero-bg,
  .hero-overlay {
    display: none;
  }

  .hero-stage,
  .summary-grid,
  .project-grid,
  .two-column,
  .intro-layout,
  .contact-band {
    display: block;
  }

  .hero-content {
    color: #111;
    max-width: none;
  }

  .hero h1 {
    color: #111;
    filter: none;
    font-size: 44px;
  }

  .hero-title,
  .hero-copy,
  .timeline-body p,
  .project-card p,
  .skills-list p,
  .contact-band p,
  .intro-copy p {
    color: #333;
  }

  .summary-band,
  .section,
  .contact-band {
    border: 0;
    margin: 0;
    max-width: none;
    padding: 16px 0;
  }

  .project-card,
  .timeline-body,
  .skills-list article,
  .profile-panel {
    border: 1px solid #ddd;
    box-shadow: none;
    break-inside: avoid;
    margin-top: 10px;
  }

  .profile-panel img {
    display: none;
  }

  .contact-band {
    background: #fff;
    color: #111;
  }

  .contact-list a {
    color: #111;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
