/* ==========================================================================
   PRATHAMESH KATE PORTFOLIO — SYSTEMATIC STYLESHEET (styles.css v3)
   ========================================================================== */

:root {
  --paper: #f5f3ee;
  --paper-deep: #eae7df;
  --paper-dark: #dedbd2;
  --ink: #111827;
  --navy: #10243e;
  --navy-soft: #1c3b5e;
  --muted: #667085;
  --muted-dark: #475467;
  --orange: #ff6b35;
  --orange-dark: #d94d1e;
  --blue: #2563eb;
  --blue-soft: #dce9ff;
  --green: #15803d;
  --green-soft: #dcfce7;
  --line: #d8d5cc;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(16, 36, 62, 0.12);
  --shadow-small: 0 12px 32px rgba(16, 36, 62, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 107, 53, 0.1), transparent 22rem),
    radial-gradient(circle at 90% 14%, rgba(37, 99, 235, 0.08), transparent 24rem),
    var(--paper);
  font-family: var(--display);
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(16, 36, 62, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 36, 62, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

::selection {
  color: var(--white);
  background: var(--orange);
}

[hidden] {
  display: none !important;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 64px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 0;
  height: 3px;
  background: var(--orange);
  transition: width 80ms linear;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  border-bottom: 1px solid rgba(216, 213, 204, 0.75);
  background: rgba(245, 243, 238, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--orange);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: -0.08em;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy small {
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav > a:not(.header-resume):not(.header-github) {
  position: relative;
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-nav > a:not(.header-resume):not(.header-github).is-active {
  color: var(--navy);
  font-weight: 500;
}

.site-nav > a:not(.header-resume):not(.header-github)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav > a:not(.header-resume):not(.header-github):hover::after,
.site-nav > a:not(.header-resume):not(.header-github):focus-visible::after,
.site-nav > a:not(.header-resume):not(.header-github).is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-github {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.header-github svg {
  width: 19px;
  height: 19px;
}

.header-github:hover,
.header-github:focus-visible {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.header-resume {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.header-resume:hover,
.header-resume:focus-visible {
  background: var(--orange);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-panel {
  display: none;
}

/* Hero Section */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 23px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: 64px;
  min-height: calc(100vh - 84px);
  padding: 72px 0 92px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}

.hero-badge strong {
  color: var(--orange-dark);
}

.hero h1 {
  max-width: 800px;
  margin: 20px 0 24px;
  color: var(--navy);
  font-size: clamp(3.3rem, 6.8vw, 6.8rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.93;
}

.hero h1 .accent {
  position: relative;
  display: inline-block;
  color: var(--orange);
}

.hero h1 .accent::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 6px;
  height: 6px;
  content: "";
  background: var(--blue);
  transform: rotate(-2deg);
}

.hero-description {
  max-width: 640px;
  margin: 0;
  color: var(--muted-dark);
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 6px 6px 0 var(--orange);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--orange);
  box-shadow: 6px 6px 0 var(--navy);
}

.button-secondary {
  color: var(--navy);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--navy);
  background: var(--white);
}

.arrow {
  font-size: 1rem;
  line-height: 1;
}

.availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.availability-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #30a46c;
  box-shadow: 0 0 0 5px rgba(48, 164, 108, 0.15);
}

.hero-stage {
  position: relative;
  min-height: 540px;
  isolation: isolate;
}

.hero-stage::before {
  position: absolute;
  top: 11%;
  right: 1%;
  width: 90%;
  height: 75%;
  content: "";
  border: 1px solid rgba(37, 99, 235, 0.23);
  border-radius: 48% 52% 44% 56%;
  transform: rotate(-13deg);
}

.hero-stage::after {
  position: absolute;
  top: 15%;
  right: 9%;
  width: 75%;
  height: 70%;
  content: "";
  border: 1px dashed rgba(255, 107, 53, 0.45);
  border-radius: 50%;
  transform: rotate(28deg);
}

.stage-window {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(100%, 535px);
  overflow: hidden;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 20px 28px 70px rgba(16, 36, 62, 0.24);
  transform: translate(-50%, -50%) rotate(2.5deg);
}

.stage-window::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, transparent 0 35%, rgba(255, 255, 255, 0.07) 50%, transparent 65%),
    radial-gradient(circle at 70% 10%, rgba(37, 99, 235, 0.38), transparent 20rem);
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.window-dots span:nth-child(2) {
  background: #f6c344;
}

.window-dots span:nth-child(3) {
  background: #55b685;
}

.stage-body {
  position: relative;
  min-height: 370px;
  padding: 32px 28px 28px;
}

.stage-label {
  margin-bottom: 14px;
  color: #81aefc;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-title {
  max-width: 380px;
  margin: 0 0 24px;
  color: var(--white);
  font-size: clamp(1.95rem, 3.4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.code-lines {
  display: grid;
  gap: 11px;
  max-width: 420px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.code-line {
  display: grid;
  grid-template-columns: 26px 64px 1fr;
  align-items: baseline;
  gap: 8px;
  color: rgba(255, 255, 255, 0.68);
}

.code-line strong {
  color: rgba(255, 255, 255, 0.32);
  font-weight: 400;
}

.code-line em {
  color: #82d8b1;
  font-style: normal;
}

.code-line b {
  color: #ffba9f;
  font-weight: 400;
}

.code-line span {
  color: #a9c9ff;
}

.signal-card {
  position: absolute;
  right: -24px;
  bottom: 28px;
  z-index: 3;
  width: 205px;
  padding: 17px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(16, 36, 62, 0.09);
  border-radius: 16px;
  box-shadow: var(--shadow-small);
  transform: rotate(-6deg);
  animation: float-card 5s ease-in-out infinite;
}

.signal-card small {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  font-size: 2.1rem;
  letter-spacing: -0.07em;
  line-height: 1;
}

.signal-card p {
  margin: 8px 0 0;
  color: var(--muted-dark);
  font-size: 0.74rem;
  line-height: 1.4;
}

.signal-card::after {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 30px;
  height: 30px;
  content: "";
  background: var(--orange);
  border-radius: 50%;
}

.stage-orb {
  position: absolute;
  top: 16%;
  left: 8%;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 10px rgba(255, 107, 53, 0.12);
  animation: float-orb 4.5s ease-in-out infinite;
}

.stage-orb-blue {
  top: auto;
  right: 7%;
  bottom: 10%;
  left: auto;
  width: 22px;
  height: 22px;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.12);
  animation-delay: 1s;
}

/* Proof Strip */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.proof-item {
  min-height: 138px;
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-value {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1;
}

.proof-label {
  display: block;
  color: var(--navy);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proof-sub {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Sections & Headers */
.section {
  padding: 120px 0;
  scroll-margin-top: 88px;
}

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

.section-header h2 {
  max-width: 740px;
  margin: 14px 0 0;
  color: var(--navy);
  font-size: clamp(2.35rem, 4.6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.section-header p {
  max-width: 370px;
  margin: 0 0 4px;
  color: var(--muted-dark);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Projects Grid & Filter Bar */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.filter-button {
  padding: 9px 14px;
  color: var(--muted-dark);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  border-color: var(--navy);
  transform: translateY(-2px);
}

.filter-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

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

.project-card {
  position: relative;
  display: flex;
  min-height: 580px;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.project-card:hover {
  border-color: rgba(16, 36, 62, 0.32);
  box-shadow: var(--shadow-small);
  transform: translateY(-6px);
}

.project-card.is-hidden {
  display: none;
}

.project-art {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  padding: 22px;
  color: var(--white);
  background: var(--navy);
}

.project-art::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.75;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

.project-art-blue {
  background:
    radial-gradient(circle at 79% 20%, rgba(112, 168, 255, 0.78), transparent 9rem),
    var(--navy);
}

.project-art-orange {
  background:
    radial-gradient(circle at 22% 27%, rgba(255, 139, 92, 0.78), transparent 9rem),
    var(--navy);
}

.project-art-green {
  background:
    radial-gradient(circle at 74% 65%, rgba(87, 184, 139, 0.68), transparent 10rem),
    var(--navy);
}

.project-number {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-index {
  color: rgba(255, 255, 255, 0.58);
}

.project-art-label {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.2);
  color: #ff9b76;
}

.project-art h3 {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  max-width: 340px;
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.project-art-graphic {
  position: absolute;
  top: 48px;
  right: 24px;
  left: 24px;
  height: 108px;
  z-index: 1;
  opacity: 0.92;
}

.face-scan {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 102px;
  height: 102px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transform: translateX(-50%);
}

.face-scan::before,
.face-scan::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.face-scan::before {
  inset: 14px;
}

.face-scan::after {
  inset: 28px;
  border-color: var(--orange);
}

.face-scan-dot {
  position: absolute;
  top: 47px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow:
    0 0 0 7px rgba(255, 107, 53, 0.13),
    0 0 23px rgba(255, 107, 53, 0.9);
}

.face-scan-line {
  position: absolute;
  top: 51px;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.text-flow {
  position: absolute;
  top: 10px;
  right: 12px;
  left: 12px;
  display: grid;
  gap: 12px;
}

.text-flow-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.text-flow-row span {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.text-flow-row span:nth-child(1) { width: 25%; background: var(--orange); }
.text-flow-row span:nth-child(2) { width: 42%; background: rgba(255, 255, 255, 0.58); }
.text-flow-row span:nth-child(3) { width: 19%; background: #83b0ff; }
.text-flow-row:nth-child(2) span:nth-child(1) { width: 38%; }
.text-flow-row:nth-child(2) span:nth-child(2) { width: 22%; }
.text-flow-row:nth-child(2) span:nth-child(3) { width: 32%; }
.text-flow-row:nth-child(3) span:nth-child(1) { width: 18%; }
.text-flow-row:nth-child(3) span:nth-child(2) { width: 51%; }
.text-flow-row:nth-child(3) span:nth-child(3) { width: 26%; }

.text-flow-node {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.1);
  transform: translateX(-50%);
}

.text-flow-node::before,
.text-flow-node::after {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.6);
}

.text-flow-node::before {
  right: 100%;
  transform: rotate(25deg);
  transform-origin: right;
}

.text-flow-node::after {
  left: 100%;
  transform: rotate(-25deg);
  transform-origin: left;
}

.dashboard-graphic {
  position: absolute;
  top: 2px;
  right: 8px;
  left: 8px;
  height: 98px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.dashboard-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.dashboard-bars span {
  flex: 1;
  min-width: 12px;
  border-radius: 4px 4px 0 0;
  background: #82d8b1;
}

.dashboard-bars span:nth-child(1) { height: 42%; }
.dashboard-bars span:nth-child(2) { height: 66%; }
.dashboard-bars span:nth-child(3) { height: 52%; background: var(--orange); }
.dashboard-bars span:nth-child(4) { height: 88%; }
.dashboard-bars span:nth-child(5) { height: 73%; background: #83b0ff; }
.dashboard-bars span:nth-child(6) { height: 96%; }

.dashboard-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
  font-size: 0.5rem;
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px;
}

.project-card-body p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.93rem;
  line-height: 1.65;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tag {
  padding: 6px 9px;
  color: var(--muted-dark);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.project-metric {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--navy);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.project-metric::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  content: "";
  border-radius: 50%;
  background: var(--orange);
}

.project-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.project-quick-links a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-quick-links a:hover {
  color: var(--orange-dark);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.project-type {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: var(--navy);
  background: transparent;
  border: 0;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.project-open span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--white);
  background: var(--orange);
  border-radius: 50%;
  transition: transform 180ms ease, background 180ms ease;
}

.project-open:hover span,
.project-open:focus-visible span {
  background: var(--navy);
  transform: rotate(45deg);
}

/* ==========================================================================
   08b. Hugging Face Space Live Interactive Embed Showcase
   ========================================================================== */
.hf-embed-showcase {
  margin-top: 36px;
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hf-embed-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  background: rgba(0, 0, 0, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hf-embed-title-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hf-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(48, 164, 108, 0.2);
  border: 1px solid rgba(85, 182, 133, 0.45);
  color: #82d8b1;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hf-live-pill::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: #55b685;
  box-shadow: 0 0 0 4px rgba(85, 182, 133, 0.25);
}

.hf-space-slug {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.hf-embed-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hf-mode-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 180ms ease;
}

.hf-mode-btn:hover,
.hf-mode-btn:focus-visible {
  border-color: var(--orange);
  color: var(--white);
  background: rgba(255, 107, 53, 0.22);
}

.hf-mode-btn[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.hf-embed-body {
  padding: 28px;
}

.hf-embed-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.hf-embed-intro h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: -0.04em;
}

.hf-embed-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.65;
}

.hf-embed-intro code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  color: #a9c9ff;
  font-family: var(--mono);
  font-size: 0.82em;
}

.hf-sample-box {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
}

.hf-sample-box small {
  display: block;
  margin-bottom: 9px;
  color: #ff9b76;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hf-sample-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hf-sample-chip {
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #dce9ff;
  font-family: var(--mono);
  font-size: 0.61rem;
  text-align: left;
  transition: all 180ms ease;
}

.hf-sample-chip:hover,
.hf-sample-chip:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.hf-frame-container {
  position: relative;
  width: 100%;
  background: #0b1628;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hf-iframe-el {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 490px;
  border: 0;
  background: #0b1628;
}

.hf-webcomp-container {
  padding: 16px;
  min-height: 490px;
  background: #0b1628;
}

.hf-embed-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--mono);
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.7);
}

.hf-embed-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hf-embed-footer .research-btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
}

.hf-embed-footer .research-btn-outline:hover,
.hf-embed-footer .research-btn-outline:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.hf-embed-footer .research-btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.hf-embed-footer .research-btn-primary:hover,
.hf-embed-footer .research-btn-primary:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

/* Research Section */
.research-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  gap: 64px;
  align-items: start;
}

.research-intro {
  position: sticky;
  top: 116px;
}

.research-intro h2 {
  max-width: 400px;
  margin: 15px 0 18px;
  color: var(--navy);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.research-intro p {
  max-width: 390px;
  margin: 0 0 18px;
  color: var(--muted-dark);
  line-height: 1.7;
}

.research-highlight-box {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--navy);
}

.research-highlight-box strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.research-list {
  display: grid;
  gap: 20px;
}

.research-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.research-card:hover {
  border-color: rgba(16, 36, 62, 0.3);
  box-shadow: var(--shadow-small);
  transform: translateY(-3px);
}

.research-index {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--orange-dark);
  background: rgba(255, 107, 53, 0.12);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.research-venue-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.venue-badge {
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.venue-meta {
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 0.63rem;
}

.research-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.38rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.research-authors {
  margin: 0 0 12px;
  color: var(--muted-dark);
  font-size: 0.83rem;
}

.research-authors strong {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.research-card p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.9rem;
  line-height: 1.65;
}

.research-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.research-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 180ms ease;
}

.research-btn-primary {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
}

.research-btn-primary:hover,
.research-btn-primary:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
}

.research-btn-outline {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
}

.research-btn-outline:hover,
.research-btn-outline:focus-visible {
  border-color: var(--navy);
  background: var(--paper-deep);
}

/* Certifications & Education */
.credentials-section {
  background: rgba(255, 255, 255, 0.42);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.credential-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(16, 36, 62, 0.04);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.credential-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 36, 62, 0.28);
  box-shadow: var(--shadow-small);
}

.credential-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.credential-issuer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.issuer-oracle { color: #b91c1c; background: #fee2e2; }
.issuer-ibm { color: #1d4ed8; background: #dbeafe; }
.issuer-research { color: var(--orange-dark); background: rgba(255, 107, 53, 0.14); }
.issuer-edu { color: var(--green); background: var(--green-soft); }

.credential-year {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.credential-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.credential-card p {
  margin: 0 0 18px;
  color: var(--muted-dark);
  font-size: 0.9rem;
  line-height: 1.65;
}

.credential-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted-dark);
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 500;
}

.verified-pill::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--green);
}

/* Experience Timeline */
.experience-section {
  color: var(--white);
  background: var(--navy);
}

.experience-section .eyebrow { color: #ff9b76; }
.experience-section .section-header h2 { color: var(--white); }
.experience-section .section-header p { color: rgba(255, 255, 255, 0.66); }

.experience-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 72px;
}

.experience-statement {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  line-height: 1.75;
}

.experience-statement strong {
  color: var(--white);
  font-weight: 500;
}

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

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 7px;
  left: 5px;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.22);
}

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

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 107, 53, 0.18);
}

.timeline-date {
  margin-bottom: 8px;
  color: #8db6ff;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.timeline-company {
  margin-bottom: 14px;
  color: #ff9b76;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.timeline-item p {
  max-width: 670px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.7;
}

.achievement-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.achievement-list li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.55;
}

.achievement-list li::before {
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--orange);
}

/* Recruiter Role-Fit Matcher & Capabilities */
.recruiter-matcher {
  margin-bottom: 44px;
  padding: 24px 28px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-small);
}

.matcher-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.matcher-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff9b76;
}

.matcher-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  transition: all 180ms ease;
}

.role-pill:hover,
.role-pill:focus-visible {
  border-color: var(--orange);
  color: var(--white);
}

.role-pill[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.matcher-output {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.matcher-summary h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--white);
}

.matcher-summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  line-height: 1.6;
}

.matcher-evidence {
  display: grid;
  gap: 8px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: #a9c9ff;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 64px;
  align-items: start;
}

.about-copy h2 {
  max-width: 520px;
  margin: 15px 0 22px;
  color: var(--navy);
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.about-copy p {
  max-width: 560px;
  margin: 0 0 18px;
  color: var(--muted-dark);
  line-height: 1.75;
}

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

.deepening span {
  padding: 7px 11px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.skill-cluster {
  min-height: 168px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.skill-cluster.is-highlighted {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.skill-cluster:hover {
  border-color: rgba(16, 36, 62, 0.25);
  box-shadow: var(--shadow-small);
  transform: translateY(-4px);
}

.skill-cluster h3 {
  margin: 0 0 16px;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.skill-cluster p {
  margin: 0;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

/* Contact & Footer */
.contact-section {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.5), transparent 24rem),
    radial-gradient(circle at 8% 100%, rgba(255, 107, 53, 0.38), transparent 24rem),
    var(--navy);
}

.contact-section::before {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 480px;
  height: 480px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(255, 255, 255, 0.025),
    0 0 0 90px rgba(255, 255, 255, 0.025);
}

.contact-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 60px;
  align-items: end;
}

.contact-content h2 {
  max-width: 780px;
  margin: 18px 0 20px;
  font-size: clamp(2.8rem, 6.2vw, 6.2rem);
  font-weight: 600;
  letter-spacing: -0.09em;
  line-height: 0.92;
}

.contact-content p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.copy-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 180ms ease;
}

.copy-email-btn:hover,
.copy-email-btn:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.contact-note {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.02em;
}

.contact-links {
  display: grid;
  gap: 10px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-link small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.58rem;
  text-transform: none;
}

.contact-link > span:last-child {
  color: var(--orange);
  font-size: 1rem;
  transition: transform 180ms ease;
}

.contact-link:hover > span:last-child,
.contact-link:focus-visible > span:last-child {
  transform: translateX(5px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 90px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-symbol {
  color: var(--orange);
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--navy);
}

.toast-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--orange);
  border-radius: 12px;
  box-shadow: var(--shadow-small);
  font-family: var(--mono);
  font-size: 0.68rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.toast-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Modal */
.case-study-dialog {
  width: min(900px, calc(100% - 30px));
  max-height: min(840px, calc(100vh - 30px));
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

.case-study-dialog::backdrop {
  background: rgba(16, 36, 62, 0.66);
  backdrop-filter: blur(5px);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  padding: 28px 30px;
  color: var(--white);
  background: var(--navy);
}

.dialog-header .eyebrow { color: #ff9b76; }

.dialog-header h2 {
  max-width: 660px;
  margin: 12px 0 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  background: var(--orange);
  transform: rotate(90deg);
}

.dialog-body {
  overflow-y: auto;
  padding: 30px;
}

.dialog-summary {
  max-width: 740px;
  margin: 0 0 26px;
  color: var(--muted-dark);
  font-size: 1.02rem;
  line-height: 1.7;
}

.dialog-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.dialog-block {
  padding: 20px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.dialog-block h3 {
  margin: 0 0 10px;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dialog-block p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.89rem;
  line-height: 1.68;
}

.dialog-block ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted-dark);
  font-size: 0.87rem;
  line-height: 1.58;
}

.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.dialog-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.dialog-metric {
  min-height: 88px;
  padding: 16px;
  background: var(--navy);
  border-radius: var(--radius-sm);
}

.dialog-metric strong {
  display: block;
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 1.18rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.dialog-metric span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--mono);
  font-size: 0.58rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.dialog-actions .button {
  min-height: 42px;
  font-size: 0.65rem;
}

.dialog-actions .button-secondary {
  background: transparent;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float-card {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-10px); }
}

@keyframes float-orb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Responsive Media Queries */
@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    gap: 36px;
  }

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

  .project-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .site-shell {
    padding-right: 36px;
    padding-left: 36px;
  }

  .site-header { min-height: 72px; }
  .site-nav { display: none; }
  .menu-toggle { display: block; }

  .menu-toggle.is-open span:first-child { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:last-child { transform: translateY(-6px) rotate(-45deg); }

  .mobile-panel {
    position: absolute;
    top: calc(100% + 1px);
    right: 24px;
    left: 24px;
    z-index: 25;
    padding: 14px;
    background: rgba(245, 243, 238, 0.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-small);
  }

  .mobile-panel:not([hidden]) {
    display: grid;
    gap: 2px;
  }

  .mobile-panel a {
    padding: 12px;
    color: var(--navy);
    border-radius: 9px;
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
  }

  .mobile-panel a:hover,
  .mobile-panel a:focus-visible {
    background: var(--paper-deep);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 56px;
  }

  .hero-stage {
    min-height: 490px;
    margin-top: 16px;
  }

  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

  .section { padding: 92px 0; }
  .section-header { display: block; margin-bottom: 34px; }
  .section-header p { margin-top: 16px; }

  .research-layout,
  .experience-layout,
  .about-grid,
  .credentials-grid,
  .matcher-output,
  .hf-embed-intro,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .research-intro { position: static; }
}

@media (max-width: 620px) {
  .site-shell {
    padding-right: 22px;
    padding-left: 22px;
  }

  .mobile-panel { right: 16px; left: 16px; }
  .hero { padding-top: 44px; padding-bottom: 68px; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-stage { min-height: 400px; }
  .stage-window { width: calc(100% - 8px); transform: translate(-50%, -50%) rotate(1.5deg); }
  .stage-body { min-height: 290px; padding: 24px 18px 18px; }
  .code-line { grid-template-columns: 20px 52px 1fr; font-size: 0.58rem; }
  .signal-card { right: 0; bottom: 8px; width: 165px; padding: 13px; }

  .proof-strip,
  .project-grid,
  .skill-grid,
  .dialog-columns,
  .dialog-metrics {
    grid-template-columns: 1fr;
  }

  .proof-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .research-card { grid-template-columns: 1fr; }
  .hf-embed-topbar,
  .hf-embed-body { padding: 18px; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .has-js .reveal { opacity: 1; transform: none; }
}
