/* ═══════════════════════════════════════════════════════════
   PAWAN POKHAREL — PERSONAL PORTFOLIO
   Design tokens, base styles, components, responsive breakpoints
   ═══════════════════════════════════════════════════════════ */

/* ── Design tokens ── */
:root {
  --bg: #080c12;
  --panel: #0e151e;
  --panel2: #111b26;
  --line: #202c38;
  --text: #edf5f7;
  --muted: #94a4b0;
  --cyan: #69e2df;
  --teal: #31bdb9;
  --mono: 'DM Mono', monospace;
  --sans: 'Manrope', sans-serif;
}

/* ── Reset & base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}

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

button,
input,
textarea {
  font: inherit;
}

/* ── Layout helpers ── */
.page-width {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

/* ══════════════════════════════════
   NAVIGATION
══════════════════════════════════ */
.site-header {
  height: 78px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #080c12ed;
  border-bottom: 1px solid #ffffff0d;
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1320px, calc(100% - 64px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.brand-mark {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 36px;
  color: #aebcc5;
  font-size: 12px;
}

.nav-links a,
.site-footer nav a {
  transition: color .2s;
}

.nav-links a:hover,
.nav-links .active,
.site-footer nav a:hover {
  color: var(--cyan);
}

.nav-contact {
  font: 11px var(--mono);
  letter-spacing: .08em;
  border: 1px solid #3f656b;
  padding: 11px 17px;
  color: var(--cyan);
  transition: background .2s, border-color .2s;
}

.nav-contact:hover {
  background: #69e2df18;
}

.nav-contact span {
  margin-left: 12px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ══════════════════════════════════
   HERO SECTION
══════════════════════════════════ */
.hero {
  min-height: 650px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 43%, #124c5740 0, transparent 36%),
    linear-gradient(115deg, #080c12 47%, #0a131b);
}

.hero-inner {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  align-items: center;
  gap: 30px;
}

.hero-copy {
  padding: 68px 0 75px;
}

/* Eyebrow / section kicker labels */
.eyebrow,
.section-kicker {
  font: 10px var(--mono);
  letter-spacing: .14em;
  color: var(--cyan);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
}

/* Glowing dot */
.eyebrow i,
.dashboard-live i,
.portrait-caption i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 13px #69e2df80;
}

/* Hero heading */
.hero h1 {
  font-size: clamp(48px, 6vw, 76px);
  letter-spacing: -.065em;
  line-height: 1.1;
  margin: 28px 0 20px;
  font-weight: 600;
}

.hero h1 span {
  color: var(--cyan);
}

.hero-lede {
  max-width: 540px;
  color: #a6b5be;
  font-size: 16px;
  line-height: 1.85;
}

/* CTA buttons */
.hero-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font: 10px var(--mono);
  letter-spacing: .06em;
  transition: transform .2s, background .2s, border .2s;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--cyan);
  color: #061113;
  border: 1px solid var(--cyan);
}

.button-primary:hover {
  background: #8bf1e9;
}

.button-secondary {
  color: #e4eff2;
  border: 1px solid #3a4b55;
  background: #101820;
}

.button-secondary:hover {
  border-color: var(--cyan);
}

/* Social links row */
.hero-social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
}

.hero-social>span {
  font: 9px var(--mono);
  letter-spacing: .12em;
  color: #82929c;
  margin-right: 4px;
}

.hero-social a {
  width: 35px;
  height: 35px;
  border: 1px solid #293641;
  display: grid;
  place-items: center;
  color: #b6c4ca;
  transition: color .2s, border-color .2s;
}

.hero-social a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.hero-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ── Hero portrait art column ── */
.hero-art {
  height: 580px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pulsing radial glow behind the circle */
.portrait-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, #69e2df28 0%, #0f3d4a22 50%, transparent 70%);
  animation: glow-pulse 4s ease-in-out infinite;
  z-index: 0;
}

/* ── CIRCLE portrait frame ── */
.portrait-frame {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 3px solid #69e2df60;
  background: linear-gradient(145deg, #102a33, #0d1722 62%, #15242b);
  box-shadow:
    0 0 0 6px #69e2df12,
    0 0 0 12px #69e2df08,
    0 20px 80px #36cac330,
    0 0 120px #69e2df18;
  animation: float 8s ease-in-out infinite;
}

/* Actual portrait photo */
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  z-index: 2;
  border-radius: 50%;
}

/* Placeholder shown when no photo is loaded */
.portrait-placeholder {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% 36%, #1a4952 0, #10232c 44%, #0c141d 78%);
  text-align: center;
}

.portrait-placeholder>span {
  width: 120px;
  height: 120px;
  border: 1px solid #73e5db70;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 44px;
  letter-spacing: -.1em;
  color: #85e8df;
  background: linear-gradient(145deg, #2b767341, #0d1924);
  box-shadow: 0 0 70px #42cdc526;
}

.portrait-placeholder b {
  margin-top: 18px;
  font: 9px var(--mono);
  letter-spacing: .22em;
  color: #cde8e6;
}

.portrait-placeholder small {
  font-size: 9px;
  line-height: 1.6;
  color: #8197a1;
  margin-top: 6px;
}

/* Photo preview button */
.photo-preview-button {
  position: absolute;
  z-index: 4;
  bottom: 14px;
  right: 4px;
  background: #071016df;
  border: 1px solid #427076;
  color: #a4e9e3;
  padding: 6px 9px;
  font: 8px var(--mono);
  letter-spacing: .07em;
  cursor: pointer;
  transition: background .2s;
  border-radius: 4px;
}

.photo-preview-button:hover {
  background: #0e2030df;
}

.photo-preview-button span {
  padding-left: 6px;
}

/* ── Orbital rings ── */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid #65e7df20;
  z-index: 1;
  pointer-events: none;
}

.orbit-ring-1 {
  width: 420px;
  height: 420px;
  border-color: #69e2df28;
  transform: rotateX(70deg) rotate(0deg);
  animation: orbit-spin-1 14s linear infinite;
}

.orbit-ring-2 {
  width: 500px;
  height: 500px;
  border-color: #31bdb920;
  transform: rotateX(65deg) rotate(45deg);
  animation: orbit-spin-2 22s linear infinite;
}

.orbit-ring-3 {
  width: 590px;
  height: 590px;
  border-color: #69e2df14;
  transform: rotateX(60deg) rotate(-30deg);
  animation: orbit-spin-3 34s linear infinite;
}

/* Glowing dot riding each ring */
.orbit-dot {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px #69e2dfcc, 0 0 24px #69e2df66;
}

.orbit-ring-2 .orbit-dot {
  background: #80f0f0;
  box-shadow: 0 0 10px #80f0f0cc, 0 0 20px #80f0f060;
}

.orbit-ring-3 .orbit-dot {
  width: 7px;
  height: 7px;
  background: #31bdb9;
  box-shadow: 0 0 10px #31bdb9cc;
}

/* ── Floating skill badges ── */
.float-badge {
  position: absolute;
  z-index: 4;
  background: #0e1c28ee;
  border: 1px solid #69e2df40;
  color: #7ee8e5;
  font: 10px var(--mono);
  letter-spacing: .08em;
  padding: 7px 13px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px #00000040, 0 0 12px #69e2df18;
  white-space: nowrap;
}

.badge-1 {
  top: 14%;
  left: -2%;
  animation: badge-float 5s ease-in-out infinite;
}

.badge-2 {
  top: 14%;
  right: -2%;
  animation: badge-float 6s ease-in-out infinite 1s;
}

.badge-3 {
  bottom: 18%;
  left: 0%;
  animation: badge-float 7s ease-in-out infinite 0.5s;
}

/* Caption and scroll hint */
.portrait-caption,
.hero-scroll {
  position: absolute;
  z-index: 3;
  font: 9px var(--mono);
  letter-spacing: .1em;
  color: #adc2c7;
}

.portrait-caption {
  bottom: 34px;
  left: 4%;
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-scroll {
  bottom: 28px;
  right: 0;
  display: flex;
  gap: 22px;
  color: #70838e;
}

.hero-scroll a {
  color: #c1d2d7;
  transition: color .2s;
}

.hero-scroll a:hover {
  color: var(--cyan);
}

.hero-scroll b {
  color: var(--cyan);
  margin-left: 6px;
}

/* ══════════════════════════════════
   QUICK OVERVIEW STRIP
══════════════════════════════════ */
.intro-strip {
  border-block: 1px solid #ffffff0e;
  background: #0c1219;
  padding: 27px 0 33px;
}

.dashboard-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-live {
  font: 9px var(--mono);
  letter-spacing: .12em;
  color: #94a8ae;
  display: flex;
  align-items: center;
  gap: 8px;
}

.intro-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
}

.intro-items article {
  min-height: 74px;
  padding: 8px 20px 8px 0;
  display: flex;
  align-items: center;
  gap: 15px;
  border-right: 1px solid #ffffff12;
  transition: background .2s;
}

.intro-items article:not(:first-child) {
  padding-left: 23px;
}

.intro-items article:last-child {
  border: 0;
}

.intro-items article:hover {
  background: #0e1720;
}

.strip-icon {
  color: var(--cyan);
  font-size: 20px;
}

.intro-items p {
  display: flex;
  flex-direction: column;
  margin: 0;
  line-height: 1.55;
  flex: 1;
}

.intro-items small,
.about-facts small,
.contact-direct small {
  font: 9px var(--mono);
  color: #82939d;
  letter-spacing: .07em;
}

.intro-items b {
  font-size: 12px;
  font-weight: 600;
}

.dashboard-arrow {
  color: #577078;
}

/* ══════════════════════════════════
   SHARED SECTION STYLES
══════════════════════════════════ */
.section {
  padding-top: 112px;
  padding-bottom: 112px;
}

.section-alt {
  background: #0c1219;
  padding-inline: max(calc((100% - 1180px) / 2), 32px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -.045em;
  line-height: 1.2;
  margin: 12px 0 0;
}

.section-summary {
  max-width: 365px;
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* ══════════════════════════════════
   ABOUT SECTION
══════════════════════════════════ */
.about-layout {
  display: grid;
  grid-template-columns: .95fr 1fr;
  gap: 92px;
  align-items: center;
}

/* Abstract visual art box */
.about-visual {
  height: 410px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #123c42, #11212b 70%);
  border: 1px solid #ffffff12;
}

.visual-sun {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  right: 7%;
  top: 8%;
  background: radial-gradient(circle at 35% 35%, #70e7dc, #2eb3ad 37%, #16525b 70%, transparent 71%);
  opacity: .72;
  filter: blur(.2px);
}

.visual-circuit {
  position: absolute;
  inset: 0;
  opacity: .45;
}

.visual-circuit span {
  position: absolute;
  border: 1px solid #6ce6d641;
  width: 80%;
  height: 52%;
  left: 10%;
  top: 22%;
  transform: skewY(-25deg);
  border-radius: 50%;
}

.visual-circuit span:nth-child(2) {
  transform: skewY(20deg);
  width: 65%;
  left: 17%;
}

.visual-circuit span:nth-child(3) {
  transform: rotate(55deg);
  width: 40%;
  left: 30%;
}

.visual-circuit span:nth-child(4) {
  transform: rotate(-55deg);
  width: 40%;
  left: 30%;
}

.visual-code {
  position: absolute;
  top: 36%;
  left: 12%;
  font: 14px var(--mono);
  color: #91f3e6;
  line-height: 2;
}

.visual-code b {
  font-size: 10px;
  color: #b5cece;
}

.visual-label {
  position: absolute;
  bottom: 27px;
  left: 30px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .06em;
}

.visual-label i {
  font-style: normal;
  color: var(--cyan);
  margin-left: 11px;
}

/* About text col */
.about-copy h3,
.skills-intro h3 {
  font-size: 30px;
  letter-spacing: -.04em;
  line-height: 1.3;
  margin: 19px 0;
}

.about-copy>p,
.skills-intro>p {
  font-size: 13px;
  color: #9eafb7;
  line-height: 1.9;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.about-facts div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-facts b {
  font-size: 11px;
  font-weight: 600;
}

.text-link {
  font: 9px var(--mono);
  letter-spacing: .08em;
  color: var(--cyan);
  transition: opacity .2s;
}

.text-link:hover {
  opacity: .75;
}

.text-link span {
  margin-left: 10px;
}

/* ══════════════════════════════════
   SKILLS SECTION
══════════════════════════════════ */
.skills-layout {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 100px;
}

.skills-intro h3 {
  margin-top: 0;
}

/* Callout highlight box */
.skill-callout {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-top: 35px;
  padding: 16px 18px;
  background: #112028;
  border-left: 2px solid var(--teal);
}

.skill-callout>span {
  font-size: 19px;
  color: var(--cyan);
}

.skill-callout p {
  font-size: 11px;
  color: #a9bbc0;
  margin: 0;
  line-height: 1.7;
}

.skill-callout b {
  color: #e0f2f0;
  font-size: 12px;
  display: block;
  margin-bottom: 2px;
}

/* Skill group cards */
.skill-groups {
  display: grid;
  gap: 10px;
}

.skill-group {
  border: 1px solid #25323b;
  background: #101821;
  padding: 18px 20px;
  transition: border-color .25s;
}

.skill-group:hover {
  border-color: #3a6068;
}

.group-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.group-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid #31535a;
  font: 12px var(--mono);
  flex-shrink: 0;
}

.group-heading h3 {
  font-size: 13px;
  margin: 0;
}

.group-heading small {
  font-size: 10px;
  color: #84949e;
}

.skill-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 14px 0 0 50px;
}

.skill-chips span {
  padding: 5px 10px;
  border: 1px solid #2a3942;
  background: #131f28;
  color: #c0cdd0;
  font-size: 10px;
  transition: border-color .2s, color .2s;
}

.skill-chips span:hover {
  border-color: var(--teal);
  color: var(--cyan);
}

/* ══════════════════════════════════
   PROJECTS SECTION
══════════════════════════════════ */
.project-feature {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  background: #0e161e;
  border: 1px solid #202d37;
}

/* Project screenshot panel */
.project-visual {
  min-height: 390px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 52% 48%, #155260 0, #102d37 48%, #101820 78%);
}

/* Real screenshot — covers the full panel */
.project-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  display: block;
  transition: transform .5s ease;
  z-index: 1;
}

.project-feature:hover .project-screenshot {
  transform: scale(1.04);
}

/* Placeholder shown when screenshot is missing or broken */
.project-screenshot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  z-index: 0;
}

.project-screenshot-placeholder span {
  font-size: 40px;
  color: var(--teal);
  opacity: .55;
}

.project-screenshot-placeholder b {
  font: 9px var(--mono);
  letter-spacing: .2em;
  color: #7baeb5;
}

.project-screenshot-placeholder small {
  font-size: 10px;
  color: #5a7e86;
  line-height: 1.7;
}

.project-screenshot-placeholder code {
  font-family: var(--mono);
  color: var(--cyan);
  opacity: .8;
}

.project-visual-index {
  position: absolute;
  bottom: 22px;
  left: 24px;
  font: 9px var(--mono);
  letter-spacing: .1em;
  color: #9cb6b9;
}

.project-visual-index span {
  color: var(--cyan);
  margin-left: 12px;
}

/* Project copy column */
.project-content {
  padding: 45px 40px;
  align-self: center;
}

.project-content h3 {
  font-size: 30px;
  letter-spacing: -.04em;
  margin: 12px 0;
}

.project-content>p {
  color: #9eafb7;
  font-size: 12px;
  line-height: 1.8;
}

.project-tech {
  margin-top: 24px;
  padding: 12px 0;
  border-block: 1px solid #26343d;
  font: 9px var(--mono);
  letter-spacing: .1em;
  color: #80939b;
}

.project-actions .button {
  min-height: 42px;
  padding-inline: 12px;
  gap: 9px;
  font-size: 9px;
}

.run-note {
  margin-top: 24px !important;
  font-size: 10px !important;
}

.run-note b {
  color: #d6e5e7;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 21px;
  color: #71838b;
  font: 8px var(--mono);
  letter-spacing: .07em;
}

.project-footer a {
  color: var(--cyan);
}

/* ══════════════════════════════════
   LEARNING JOURNEY
══════════════════════════════════ */
.journey-layout {
  max-width: 850px;
  margin: auto;
}

.journey-step {
  display: grid;
  grid-template-columns: 70px 1fr 44px;
  align-items: center;
  gap: 20px;
  padding: 22px 25px;
  border: 1px solid #25323b;
  background: #101821;
}

.step-no {
  font: 19px var(--mono);
  color: #60737c;
}

.step-state {
  font: 9px var(--mono);
  letter-spacing: .13em;
  color: #7b9299;
}

.journey-step h3 {
  font-size: 17px;
  margin: 5px 0;
}

.journey-step p {
  font-size: 11px;
  color: #96a8b0;
  margin: 0;
}

.step-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #385056;
  display: grid;
  place-items: center;
  color: var(--cyan);
}

/* Currently active step */
.journey-step.current {
  border-color: #34716e;
  background: linear-gradient(90deg, #102328, #101821);
}

.journey-step.current .step-state,
.journey-step.current .step-no {
  color: var(--cyan);
}

.journey-step.next {
  opacity: .75;
}

.journey-connector {
  height: 24px;
  width: 1px;
  background: #38545a;
  margin-left: 59px;
}

/* ══════════════════════════════════
   CONTACT SECTION
══════════════════════════════════ */
.contact-section {
  padding-top: 112px;
  padding-bottom: 115px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 105px;
}

.contact-intro h2 {
  font-size: clamp(34px, 4.2vw, 48px);
  letter-spacing: -.05em;
  line-height: 1.2;
  margin: 15px 0;
}

.contact-intro>p {
  color: #9eafb7;
  font-size: 13px;
  max-width: 420px;
}

.contact-direct {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.direct-icon {
  width: 40px;
  height: 40px;
  border: 1px solid #2e464e;
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 18px;
}

.contact-direct div {
  display: flex;
  flex-direction: column;
}

.contact-direct a,
.contact-direct b {
  font-size: 12px;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  color: #c4d0d4;
  font-size: 11px;
}

.contact-form label>span {
  color: #71838b;
}

.contact-form input:not([type=hidden]),
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: #0e151d;
  border: 1px solid #293741;
  padding: 12px 13px;
  color: var(--text);
  outline: none;
  font-size: 12px;
  resize: vertical;
  transition: border-color .25s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4fbdb9;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form .button {
  align-self: flex-start;
}

.form-note {
  font-size: 10px;
  color: #8799a1;
  margin: 0;
}

.form-note.success {
  color: var(--teal);
}

.form-note.error {
  color: #e07272;
}

/* Honeypot: visually hidden from real users */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.site-footer {
  border-top: 1px solid #ffffff10;
  background: #0a1016;
}

.footer-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner>p {
  color: #82939b;
  font-size: 10px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  font-size: 10px;
  color: #a1b0b6;
}

.copyright {
  font: 9px var(--mono);
  color: #71818a;
}

/* ══════════════════════════════════
   REVEAL ANIMATIONS (scroll-driven)
══════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}

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

/* ══════════════════════════════════
   KEYFRAMES
══════════════════════════════════ */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

@keyframes spin-slow {
  from {
    transform: rotateX(69deg) rotate(-24deg);
  }

  to {
    transform: rotateX(69deg) rotate(336deg);
  }
}

/* ══════════════════════════════════
   RESPONSIVE — 900px
══════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links {
    gap: 20px;
  }

  .hero-inner {
    grid-template-columns: 1fr .8fr;
  }

  .hero-art {
    height: 475px;
  }

  .portrait-frame {
    height: 370px;
  }

  .about-layout {
    gap: 48px;
  }

  .skills-layout {
    gap: 45px;
  }

  .contact-section {
    gap: 50px;
  }

  .project-content {
    padding: 30px 25px;
  }
}

/* ══════════════════════════════════
   RESPONSIVE — 700px (mobile)
══════════════════════════════════ */
@media (max-width: 700px) {
  .page-width {
    width: calc(100% - 40px);
  }

  .nav-wrap {
    width: calc(100% - 40px);
  }

  .site-header {
    height: 66px;
  }

  /* Hamburger toggle */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    order: 3;
    padding: 8px;
  }

  .menu-toggle i {
    width: 20px;
    height: 1px;
    background: var(--cyan);
    display: block;
    transition: transform .2s, opacity .2s;
  }

  .menu-toggle[aria-expanded="true"] i:first-child {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle[aria-expanded="true"] i:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-contact {
    margin-left: auto;
    margin-right: 14px;
    padding: 8px 10px;
  }

  /* Mobile nav drawer */
  .nav-links {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    padding: 15px 22px 22px;
    background: #0a1016;
    border-bottom: 1px solid #ffffff15;
    flex-direction: column;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 11px 0;
    border-bottom: 1px solid #ffffff0b;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 8px;
  }

  .hero-copy {
    padding: 52px 0 5px;
  }

  .hero h1 {
    font-size: clamp(45px, 12vw, 66px);
    margin: 22px 0 14px;
  }

  .hero-lede {
    font-size: 14px;
  }

  .hero-social {
    margin-top: 28px;
  }

  .hero-art {
    height: 460px;
    margin: 8px 0 20px;
  }

  .portrait-frame {
    width: 260px;
    height: 260px;
  }

  .orbit-ring-1 {
    width: 330px;
    height: 330px;
  }

  .orbit-ring-2 {
    width: 400px;
    height: 400px;
  }

  .orbit-ring-3 {
    width: 460px;
    height: 460px;
  }

  .float-badge {
    font-size: 9px;
    padding: 5px 10px;
  }

  .hero-scroll {
    bottom: 8px;
  }

  .portrait-caption {
    bottom: 14px;
  }

  /* Overview strip */
  .intro-items {
    grid-template-columns: 1fr 1fr;
  }

  .intro-items article {
    border-right: 1px solid #ffffff12;
    border-bottom: 1px solid #ffffff12;
    padding: 10px !important;
  }

  .intro-items article:nth-child(2) {
    border-right: 0;
  }

  .intro-items article:nth-child(n+3) {
    border-bottom: 0;
  }

  .dashboard-title {
    margin-bottom: 5px;
  }

  /* Sections */
  .section {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .section-alt {
    padding-inline: 20px;
  }

  .section-head {
    display: block;
    margin-bottom: 32px;
  }

  .section-summary {
    margin-top: 15px;
  }

  /* Grid collapses */
  .about-layout,
  .skills-layout,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-visual {
    height: 300px;
  }

  .about-copy h3,
  .skills-intro h3 {
    font-size: 27px;
  }

  .about-facts {
    gap: 8px;
  }

  .about-facts b {
    font-size: 10px;
  }

  .skill-chips {
    margin-left: 0;
  }

  /* Projects */
  .project-feature {
    grid-template-columns: 1fr;
  }

  .project-visual {
    min-height: 290px;
  }

  .project-window {
    height: 200px;
  }

  .window-content {
    padding: 20px;
  }

  .project-content {
    padding: 28px 22px;
  }

  .project-footer {
    display: grid;
    gap: 12px;
    line-height: 1.7;
  }

  /* Journey */
  .journey-step {
    grid-template-columns: 42px 1fr 36px;
    gap: 12px;
    padding: 17px 13px;
  }

  .journey-connector {
    margin-left: 34px;
  }

  .journey-step h3 {
    font-size: 15px;
  }

  /* Contact */
  .contact-section {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    padding: 25px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner>p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
  }

  .site-footer nav {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .copyright {
    justify-self: end;
  }
}

/* ══════════════════════════════════
   RESPONSIVE — 390px (small phone)
══════════════════════════════════ */
@media (max-width: 390px) {
  .brand {
    font-size: 9px;
    gap: 8px;
  }

  .nav-contact {
    font-size: 9px;
  }

  .hero-actions .button {
    font-size: 9px;
    padding-inline: 12px;
  }

  .portrait-frame {
    width: 220px;
    height: 220px;
  }

  .orbit-ring-1 {
    width: 280px;
    height: 280px;
  }

  .orbit-ring-2 {
    width: 330px;
    height: 330px;
  }

  .orbit-ring-3 {
    width: 375px;
    height: 375px;
  }

  .float-badge {
    display: none;
  }

  .intro-items article {
    gap: 9px;
  }

  .intro-items b {
    font-size: 10px;
  }

  .dashboard-live {
    font-size: 8px;
  }
}

/* ══════════════════════════════════
   KEYFRAME ANIMATIONS
══════════════════════════════════ */

/* Floating portrait */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-14px);
  }
}

/* Orbital ring spins */
@keyframes orbit-spin-1 {
  from {
    transform: rotateX(70deg) rotate(0deg);
  }

  to {
    transform: rotateX(70deg) rotate(360deg);
  }
}

@keyframes orbit-spin-2 {
  from {
    transform: rotateX(65deg) rotate(45deg);
  }

  to {
    transform: rotateX(65deg) rotate(405deg);
  }
}

@keyframes orbit-spin-3 {
  from {
    transform: rotateX(60deg) rotate(-30deg);
  }

  to {
    transform: rotateX(60deg) rotate(330deg);
  }
}

/* Floating badge bob */
@keyframes badge-float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Pulsing glow */
@keyframes glow-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .7;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* ══════════════════════════════════
   REDUCED MOTION
══════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

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

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