/* =====================================================================
   DEEPAK KUMAR — PORTFOLIO
   Concept: the page as infrastructure being provisioned.
   Palette: gold · accent cyan · "+create" green on void black
   Type: Orbitron (display, sparingly) · Space Grotesk (body) · Fira Code (code)
   ===================================================================== */

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

:root {
  --void: #06060c;
  --void-2: #0a0a14;
  --panel: #0d0d18;
  --panel-2: #12121f;
  --line: #1c1c2e;
  --line-2: #2a2a42;

  --tf: #e0913a;
  /* brand gold / amber */
  --tf-2: #ffc15e;
  --aura: #6bc5f8;
  /* accent cyan / glow */
  --grn: #34d399;
  /* + create / Gon green */
  --grn-2: #5ef0a3;
  --pink: #f472b6;
  --amber: #fbbf24;

  --txt: #c7ccd6;
  --txt-hi: #ffffff;
  --dim: #7d8597;

  --mono: "Fira Code", ui-monospace, monospace;
  --disp: "Orbitron", sans-serif;
  --body: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --side: 256px;
  --maxw: 1120px;
  --ease: cubic-bezier(.22, .7, .2, 1);

  cursor: default;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--body);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--txt);
  background: var(--void);
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: rgba(224, 145, 58, .4);
  color: #fff;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--void-2);
}

::-webkit-scrollbar-thumb {
  background: #28284a;
  border-radius: 9px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--tf);
}

a {
  color: var(--aura);
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--aura);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 1000;
  background: var(--tf);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--mono);
  transition: top .2s;
}

.skip-link:focus {
  top: 12px;
}

.dim {
  color: var(--dim);
}

/* ---------- ambient background ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1200px 700px at 78% -8%, rgba(224, 145, 58, .16), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(52, 211, 153, .08), transparent 55%),
    linear-gradient(rgba(224, 145, 58, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 145, 58, .035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
  mask-image: radial-gradient(circle at 50% 40%, #000 55%, transparent 100%);
}

/* =====================================================================
   SIDEBAR / RESOURCE TREE NAV
   ===================================================================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: var(--side);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  background: linear-gradient(180deg, rgba(13, 13, 24, .94), rgba(8, 8, 16, .94));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.brand-mark {
  font-family: var(--mono);
  color: var(--grn);
  font-size: 1.7rem;
}

.brand-name {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--txt-hi);
  letter-spacing: .5px;
}

.brand-dim {
  color: var(--tf-2);
}

.brand-role {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--dim);
  margin-top: 6px;
  letter-spacing: .5px;
}

.tree {
  margin-top: 40px;
  flex: 1;
}

.tree-root {
  font-family: var(--mono);
  color: var(--aura);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.tree-list {
  list-style: none;
}

.tree-link {
  display: block;
  font-family: var(--mono);
  font-size: 1.45rem;
  color: var(--dim);
  padding: 7px 10px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  position: relative;
}

.tree-link .tw {
  color: #3a3a5a;
  margin-right: 6px;
}

.tree-link:hover {
  color: var(--txt);
  background: rgba(224, 145, 58, .08);
}

.tree-link.active {
  color: var(--txt-hi);
  background: rgba(224, 145, 58, .16);
}

.tree-link.active::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--tf-2);
  border-radius: 3px;
  box-shadow: 0 0 12px var(--tf-2);
}

.sidebar-foot {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.side-social {
  color: var(--dim);
  width: 22px;
  height: 22px;
  transition: color .2s, transform .2s;
}

.side-social svg {
  width: 100%;
  height: 100%;
  display: block;
}

.side-social:hover {
  color: var(--aura);
  transform: translateY(-2px);
}

/* ---------- mobile topbar ---------- */
.topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(8, 8, 16, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.menu-btn {
  width: 40px;
  height: 34px;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--txt-hi);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.menu-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.nav-scrim.show {
  opacity: 1;
  pointer-events: auto;
}

/* =====================================================================
   MAIN LAYOUT
   ===================================================================== */
.main {
  margin-left: var(--side);
}

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px 48px 28px;
  scroll-margin-top: 24px;
}

.section:last-child {
  padding-bottom: 56px;
}

/* section header */
.sec-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.sec-no {
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--grn);
}

.sec-title {
  font-family: var(--mono);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--txt-hi);
  letter-spacing: .5px;
}

.sec-title::before {
  content: "~/ ";
  color: var(--tf-2);
}

.sec-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}

.sec-sub {
  font-family: var(--mono);
  font-size: 1.55rem;
  color: var(--txt);
  margin-bottom: 28px;
  max-width: 760px;
  line-height: 1.7;
}

.sec-sub code {
  color: var(--tf-2);
  background: rgba(224, 145, 58, .12);
  border: 1px solid rgba(224, 145, 58, .3);
  padding: 1px 7px;
  border-radius: 6px;
}

.cmd-prompt {
  color: var(--grn);
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 90px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero-left {
  min-width: 0;
}

.eyebrow {
  font-family: var(--mono);
  color: var(--grn);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.hero-name {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  line-height: 1;
  color: var(--txt-hi);
  letter-spacing: -2px;
  white-space: nowrap;
  text-shadow: 0 0 50px rgba(224, 145, 58, .45);
}

.hero-name .dot {
  color: var(--tf-2);
}

.hero-role {
  font-family: var(--mono);
  font-size: 1.9rem;
  color: var(--dim);
  margin: 22px 0 18px;
}

.role-tag {
  display: inline-block;
  color: var(--aura);
  background: rgba(107, 197, 248, .08);
  border: 1px solid rgba(107, 197, 248, .28);
  padding: 3px 12px;
  border-radius: 6px;
  margin-right: 6px;
  font-size: 1.55rem;
}

.hero-lede {
  font-size: 1.75rem;
  line-height: 1.7;
  max-width: 540px;
  color: var(--txt);
}

.hero-status {
  font-family: var(--mono);
  font-size: 1.45rem;
  color: var(--dim);
  margin-top: 22px;
}

.hero-status b {
  color: var(--grn-2);
}

.blink-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grn);
  margin-right: 8px;
  box-shadow: 0 0 10px var(--grn);
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: .25;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: 1px solid transparent;
}

.btn-primary {
  color: #0b0a14;
  background: linear-gradient(180deg, #ffcc70, #f2b04c);
  border-color: rgba(255, 200, 120, .5);
  box-shadow: 0 8px 22px -10px rgba(224, 145, 58, .55), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -12px rgba(224, 145, 58, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.btn-ghost {
  color: var(--txt-hi);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, .02);
}

.btn-ghost:hover {
  border-color: var(--tf-2);
  color: var(--tf-2);
  transform: translateY(-2px);
}

/* HCL card */
.hcl-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -40px #000, 0 0 70px -28px rgba(224, 145, 58, .6);
}

.hcl-bar,
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  background: linear-gradient(180deg, #16162a, #101020);
  border-bottom: 1px solid var(--line-2);
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.term-red {
  background: #ff5f56;
}

.term-yellow {
  background: #ffbd2e;
}

.term-grn {
  background: #27c93f;
}

.hcl-file,
.term-title {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 1.3rem;
  color: #8b93a7;
}

.hcl-body {
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 1.45rem;
  line-height: 1.85;
  color: var(--txt);
  white-space: pre-wrap;
  min-height: 330px;
}

.hcl-caret {
  display: inline-block;
  width: 9px;
  height: 1.5rem;
  background: var(--grn);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

.hl-kw {
  color: var(--tf-2);
}

.hl-str {
  color: var(--grn-2);
}

.hl-name {
  color: var(--amber);
}

.hl-txt {
  color: #aab0bd;
}

.hl-mod {
  color: var(--aura);
}

.hl-com {
  color: var(--dim);
  font-style: italic;
}

.scroll-cue {
  display: block;
  text-align: center;
  margin-top: 46px;
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--dim);
  transition: color .2s;
}

.scroll-cue:hover {
  color: var(--grn);
}

/* =====================================================================
   TERMINAL
   ===================================================================== */
.terminal {
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line-2);
  cursor: text;
  box-shadow: 0 40px 90px -42px #000, 0 0 60px -24px rgba(224, 145, 58, .5);
}

.term-body {
  height: 380px;
  overflow-y: auto;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 1.45rem;
  line-height: 1.7;
  color: var(--txt);
  background: radial-gradient(900px 300px at 18% -10%, rgba(224, 145, 58, .1), transparent 60%), var(--panel);
}

.term-body::-webkit-scrollbar {
  width: 7px;
}

.term-body::-webkit-scrollbar-thumb {
  background: #2a2a45;
  border-radius: 7px;
}

.t-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt {
  color: var(--tf-2);
}

.p-user {
  color: var(--grn);
}

.p-path {
  color: var(--aura);
}

.t-cmd {
  color: #fff;
}

.t-accent {
  color: var(--tf-2);
  font-weight: 600;
}

.t-grn {
  color: var(--grn-2);
}

.t-dim {
  color: var(--dim);
}

.tf-plus {
  color: var(--grn);
  font-weight: 700;
}

.t-link {
  color: var(--aura);
  text-decoration: underline;
}

.t-link:hover {
  color: #fff;
}

.t-row {
  display: flex;
  gap: 16px;
}

.t-key {
  color: var(--grn-2);
  min-width: 150px;
  display: inline-block;
}

.t-desc {
  color: var(--dim);
}

.term-line-in {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.term-input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  color: #fff;
  font-family: var(--mono);
  font-size: 1.45rem;
  caret-color: var(--grn);
}

.in-caret {
  width: 9px;
  height: 1.5rem;
  background: var(--grn);
  animation: blink 1.1s steps(1) infinite;
  margin-left: -6px;
  pointer-events: none;
}

.term-input:focus~.in-caret {
  display: none;
}

/* =====================================================================
   FLOATING TERMINAL LAUNCHER + VS CODE-STYLE DOCK
   ===================================================================== */
.console-launcher {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 75;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(255, 193, 94, .5);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #0b0a14;
  padding: 0;
  background: linear-gradient(180deg, #ffcc70, #f2b04c);
  box-shadow: 0 14px 30px -10px rgba(224, 145, 58, .6), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .3s var(--ease), opacity .3s var(--ease), box-shadow .25s;
  animation: launcher-bounce 4.2s ease-in-out 1.5s infinite;
}

.console-launcher:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 46px -10px rgba(224, 145, 58, .95);
}

.console-launcher:active {
  transform: scale(.95);
}

.console-launcher.seen {
  animation: none;
}

.console-launcher.hidden {
  opacity: 0;
  transform: translateY(20px) scale(.6);
  pointer-events: none;
}

.console-launcher svg {
  position: relative;
  z-index: 1;
}

.launcher-ping {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid rgba(255, 193, 94, .7);
  animation: launcher-ping 4.2s ease-out 1.5s infinite;
  pointer-events: none;
}

@keyframes launcher-bounce {

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

  86% {
    transform: translateY(-13px);
  }

  90% {
    transform: translateY(0);
  }

  94% {
    transform: translateY(-6px);
  }

  97% {
    transform: translateY(0);
  }
}

@keyframes launcher-ping {

  0%,
  82% {
    opacity: 0;
    transform: scale(1);
  }

  84% {
    opacity: .85;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.75);
  }
}

/* non-modal: no dimming/blocking, like VS Code's panel */
.dock-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: transparent;
  pointer-events: none;
}

.console-dock {
  position: fixed;
  left: var(--side);
  right: 0;
  bottom: 0;
  z-index: 90;
  height: min(56vh, 440px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(13, 13, 24, .96), rgba(8, 8, 16, .96));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -14px 40px -24px rgba(0, 0, 0, .7);
  transform: translateY(106%);
  opacity: 0;
  pointer-events: none;
  transition: transform .32s var(--ease), opacity .32s var(--ease);
}

.console-dock.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* draggable sash at the top edge, like VS Code's panel */
.dock-resize {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  cursor: ns-resize;
  z-index: 4;
  touch-action: none;
}

.dock-resize::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background .15s;
}

.dock-resize:hover::after,
body.dock-resizing .dock-resize::after {
  background: var(--tf-2);
  box-shadow: 0 0 8px rgba(224, 145, 58, .6);
}

body.dock-resizing {
  cursor: ns-resize;
  user-select: none;
  -webkit-user-select: none;
}

body.dock-resizing .console-dock {
  transition: none;
}

.dock-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  flex: none;
  height: 38px;
  background: rgba(255, 255, 255, .02);
  border-bottom: 1px solid var(--line);
}

.dock-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  margin-bottom: -1px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 1.18rem;
  letter-spacing: 1px;
  color: var(--txt-hi);
  border-bottom: 2px solid var(--tf-2);
}

.dock-tab-ico {
  color: var(--tf-2);
}

.dock-tab-dim {
  color: #5b6172;
  border-bottom-color: transparent;
  cursor: default;
}

.dock-comment {
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 1.22rem;
  color: var(--dim);
  font-style: italic;
}

.dock-comment b {
  color: var(--grn-2);
  font-style: normal;
  font-weight: 500;
}

.dock-meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 1.18rem;
  color: #5b6172;
}

.dock-close {
  flex: none;
  width: 28px;
  height: 28px;
  margin-left: 10px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--dim);
  cursor: pointer;
  transition: all .2s;
}

.dock-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-color: var(--line-2);
}

/* terminal fills the dock and shares its surface (no glow) */
.console-dock .terminal {
  flex: 1;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  cursor: text;
}

.console-dock .term-body {
  height: 100%;
  border-radius: 0;
  background: transparent;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.chip {
  font-family: var(--mono);
  font-size: 1.35rem;
  color: var(--tf-2);
  background: rgba(224, 145, 58, .1);
  border: 1px solid rgba(224, 145, 58, .4);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: all .2s;
}

.chip:hover {
  color: #fff;
  background: rgba(224, 145, 58, .3);
  box-shadow: 0 0 18px -4px rgba(224, 145, 58, .85);
  transform: translateY(-2px);
}

/* =====================================================================
   ABOUT
   ===================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 48px;
  align-items: start;
}

.about-copy p {
  font-size: 1.7rem;
  line-height: 1.8;
  margin-bottom: 18px;
  color: var(--txt);
  text-align: justify;
}

.about-copy b {
  color: var(--txt-hi);
}

.about-quote {
  font-family: var(--mono);
  color: var(--tf-2);
  font-size: 1.8rem;
  border-left: 2px solid var(--tf);
  padding-left: 18px;
  margin-top: 8px;
}

.resume-card {
  position: relative;
  border-radius: 16px;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(155deg, #141226, #0c0b16 60%, #110e20);
  border: 1px solid rgba(255, 193, 94, .4);
  box-shadow: 0 30px 70px -34px #000;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  transform-style: preserve-3d;
}

.resume-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 38px 80px -36px #000;
  border-color: rgba(255, 193, 94, .65);
}

.rc-glow {
  position: absolute;
  inset: -42% -10% auto -10%;
  height: 72%;
  background: radial-gradient(closest-side, rgba(224, 145, 58, .5), transparent);
  filter: blur(20px);
  pointer-events: none;
}

.rc-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  color: var(--grn);
}

.rc-meta-tag {
  color: #8b93a7;
  letter-spacing: .5px;
}

.rc-main {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 16px 0 18px;
}

.rc-avatar {
  flex: none;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.px-guy {
  width: 80px;
  height: 80px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5));
}

.rc-fields {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rc-name {
  font-family: var(--disp);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.rc-role {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--aura);
}

.rc-meta {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: #8b93a7;
}

.rc-meta b {
  color: #cdd3df;
}

.rc-active {
  color: var(--grn) !important;
}

.rc-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 600;
  color: #0b0a14;
  border: 1px solid rgba(255, 200, 120, .45);
  background: linear-gradient(180deg, #ffcc70, #f2b04c);
  box-shadow: 0 8px 22px -10px rgba(224, 145, 58, .5), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .2s, box-shadow .2s, filter .2s;
}

.rc-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(224, 145, 58, .7), inset 0 1px 0 rgba(255, 255, 255, .2);
  filter: brightness(1.04);
}

.edu-stack {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edu-row {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.edu-when {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--grn);
  white-space: nowrap;
  padding-top: 2px;
}

.edu-school {
  color: var(--txt-hi);
  font-weight: 600;
  font-size: 1.55rem;
}

.edu-deg {
  font-size: 1.35rem;
  color: var(--dim);
}

/* =====================================================================
   SKILLS — icon grid
   ===================================================================== */
.stack-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 42px 16px;
  justify-content: center;
}

.stack-box {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(150deg, var(--panel-2), rgba(18, 18, 31, 0));
  border: 1px solid var(--line-2);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.stack-box:hover {
  transform: translateY(-5px);
  border-color: var(--tf-2);
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .6);
}

.stack-logo {
  font-size: 40px;
  filter: grayscale(.4);
  transition: filter .2s;
}

.stack-box:hover .stack-logo {
  filter: grayscale(0);
}

.stack-tip {
  position: absolute;
  bottom: -26px;
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--dim);
  opacity: 0;
  transition: opacity .2s;
  white-space: nowrap;
}

.stack-box:hover .stack-tip {
  opacity: 1;
}

/* =====================================================================
   EXPERIENCE
   ===================================================================== */
.timeline {
  position: relative;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--tf), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 22px;
}

.tl-marker {
  position: absolute;
  left: -34px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--void);
  border: 2px solid var(--grn);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(52, 211, 153, .7);
}

.tl-marker .tf-plus {
  color: var(--grn);
  font-size: 1.2rem;
  font-family: var(--mono);
}

.exp-card {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 24px 26px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  transform-style: preserve-3d;
}

.exp-card:hover {
  border-color: rgba(224, 145, 58, .5);
}

.exp-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.exp-role {
  font-size: 2.1rem;
  color: var(--txt-hi);
  font-weight: 600;
}

.exp-when {
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--grn);
  white-space: nowrap;
}

.exp-co {
  font-family: var(--mono);
  font-size: 1.55rem;
  color: var(--tf-2);
  margin: 4px 0 14px;
}

.exp-loc {
  color: var(--dim);
}

.exp-pts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.exp-pts li {
  position: relative;
  padding-left: 22px;
  font-size: 1.55rem;
  line-height: 1.6;
  color: var(--txt);
}

.exp-pts li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--grn);
  font-family: var(--mono);
  font-weight: 700;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.exp-tags span {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--aura);
  background: rgba(107, 197, 248, .08);
  border: 1px solid rgba(107, 197, 248, .22);
  padding: 3px 11px;
  border-radius: 6px;
}

/* =====================================================================
   PROJECTS (HCL resource blocks)
   ===================================================================== */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.proj-card {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  transform-style: preserve-3d;
}

.proj-card:hover {
  border-color: rgba(255, 193, 94, .55);
}

.proj-head {
  font-family: var(--mono);
  font-size: 1.35rem;
  color: var(--dim);
  margin-bottom: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.proj-kw {
  color: var(--tf-2);
}

.proj-type {
  color: var(--aura);
}

.proj-name {
  color: var(--amber);
}

.proj-title {
  font-size: 2rem;
  color: var(--txt-hi);
  font-weight: 600;
  margin-bottom: 10px;
}

.proj-desc {
  font-size: 1.5rem;
  line-height: 1.65;
  color: var(--txt);
  margin-bottom: 16px;
  text-align: justify;
}

.proj-stack {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.proj-stack li {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--grn-2);
  background: rgba(52, 211, 153, .08);
  border: 1px solid rgba(52, 211, 153, .22);
  padding: 2px 10px;
  border-radius: 6px;
}

.proj-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proj-link {
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--aura);
  transition: color .2s, letter-spacing .2s;
}

.proj-link:hover {
  color: #fff;
  letter-spacing: .4px;
}

.proj-brace {
  font-family: var(--mono);
  color: var(--dim);
  font-size: 1.6rem;
}

/* =====================================================================
   CONTACT / OUTPUTS
   ===================================================================== */
.outputs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.outputs-h {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 1.05;
  color: var(--txt-hi);
  text-shadow: 0 0 40px rgba(224, 145, 58, .4);
}

.outputs-block {
  font-family: var(--mono);
  font-size: 1.5rem;
  line-height: 1.9;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 22px 26px;
  width: 100%;
  max-width: 620px;
  overflow-x: auto;
  color: var(--txt);
}

.o-kw {
  color: var(--tf-2);
}

.o-str {
  color: var(--amber);
}

.o-link {
  color: var(--grn-2);
  text-decoration: underline;
}

.o-link:hover {
  color: #fff;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--dim);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-right {
    max-width: 560px;
  }

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

  .resume-col {
    max-width: 460px;
  }
}

@media (max-width: 880px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .3s var(--ease);
  }

  .sidebar.open {
    transform: none;
    box-shadow: 0 0 60px rgba(0, 0, 0, .7);
  }

  .topbar {
    display: flex;
  }

  .main {
    margin-left: 0;
    padding-top: 64px;
  }

  .section {
    padding: 60px 28px 24px;
  }

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

  .console-dock {
    left: 0;
    height: min(64vh, 460px);
  }
}

@media (max-width: 560px) {
  .section {
    padding: 52px 18px 20px;
  }

  .sec-title {
    font-size: 2.1rem;
  }

  .sec-sub {
    font-size: 1.4rem;
  }

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

  .term-body {
    font-size: 1.3rem;
  }

  .term-title {
    display: none;
  }

  .t-row {
    flex-direction: column;
    gap: 0;
  }

  .t-key {
    min-width: 0;
  }

  .hcl-body {
    font-size: 1.3rem;
    min-height: 280px;
  }

  .exp-top {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
  }

  .console-dock {
    height: 72vh;
  }

  .dock-comment,
  .dock-meta,
  .dock-tab-dim {
    display: none;
  }

  .console-launcher {
    right: 18px;
    bottom: 18px;
    width: 52px;
    height: 52px;
  }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }

  .blink-dot,
  .hcl-caret,
  .in-caret {
    animation: none;
  }

  .exp-card,
  .proj-card,
  .resume-card,
  .btn,
  .stack-box {
    transition: none;
  }

  .console-launcher {
    animation: none;
  }

  .launcher-ping {
    animation: none;
    display: none;
  }
}
