/*!
Theme Name: Game Dev Portfolio
Theme URI: https://github.com/alishkeir/game-dev-portfolio
Author: Ali Shokair
Author URI: http://github.com/alishkeir
Description: Editorial game-developer portfolio skin. Warm paper background, ink text, restrained forest-meadow palette.
Version: 7.0.0
Text Domain: game-dev-portfolio
Tags: custom-background, custom-logo, custom-menu, featured-images
*/

@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Press+Start+2P&display=swap");

:root {
  --paper: #101116;
  --paper-2: #17181f;
  --card: #1d1e27;
  --ink: #f4f4f7;
  --ink-soft: #b9bac5;
  --muted: #777985;
  --line: #30313b;
  --line-soft: #262730;
  --forest: #00e5c7;
  --moss: #7dff5b;
  --ember: #ff3f81;
  --gold: #f7d154;
  --plum: #a855f7;
  --teal: #00c8ff;

  --pixel: "Press Start 2P", monospace;
  --ui: "Chakra Petch", Inter, system-ui, sans-serif;
  --display: "Chakra Petch", Inter, system-ui, sans-serif;
  --sans: Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 1.4rem;
  --radius-sm: 0.8rem;
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  padding: 3.2rem 2.4rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.6rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      70rem 34rem at 8% -4%,
      color-mix(in srgb, var(--moss) 16%, transparent),
      transparent 70%
    ),
    radial-gradient(
      76rem 36rem at 96% 4%,
      color-mix(in srgb, var(--ember) 12%, transparent),
      transparent 70%
    ),
    linear-gradient(180deg, var(--paper), var(--paper-2));
}

::selection {
  background: var(--forest);
  color: var(--paper);
}

a {
  color: var(--forest);
}

img {
  max-width: 100%;
}

/* LAYOUT */

.container {
  position: relative;
  z-index: 1;
  max-width: 118rem;
  margin: 0 auto;
  background: transparent;
  border: 0;
  padding: 0;
  overflow: visible;
}

main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  padding: 0;
}

.container.narrow {
  max-width: 88rem;
}

section {
  position: relative;
}

/* HEADER - quiet editorial masthead */

header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 1.4rem 0 1.6rem;
  background: transparent;
  border: 0;
  border-bottom: 0.2rem solid var(--ink);
}

.brand a {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  flex: none;
  color: var(--paper);
  background: var(--forest);
  border-radius: 1.1rem;
}

.brand-mark svg {
  width: 2.3rem;
  height: 2.3rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 0.25rem;
}

.brand a h1 {
  font-family: var(--ui);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.subtitle {
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.hud-status {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hud-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hud-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-weight: 700;
}

.hud-label svg {
  width: 1.4rem;
  height: 1.4rem;
}

.hud-bar-track {
  position: relative;
  width: 17rem;
  height: 0.8rem;
  overflow: hidden;
  background: var(--line);
  border-radius: 9.9rem;
}

.hud-bar-fill {
  height: 100%;
  width: 36.25%;
  background: var(--forest);
  border-radius: 9.9rem;
}

.hud-bar-fill::before,
.hud-bar-fill::after {
  content: none;
}

.hud-value {
  color: var(--muted);
}

.hud-value b {
  color: var(--ink);
}

.hud-level {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: var(--forest);
  border-radius: 9.9rem;
}

.hud-level span {
  font-size: 1.35rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

nav li {
  list-style: none;
}

nav li a {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.2rem;
  font-family: var(--ui);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  background: transparent;
  border-radius: 9.9rem;
  transition: var(--transition);
}

nav li a:hover {
  color: var(--ink);
  background: var(--paper-2);
}

nav li.current-menu-item > a,
nav li.current_page_item > a {
  color: var(--paper);
  background: var(--ink);
}

/* TYPE + BUTTONS - real hierarchy, no neon tags */

.badge,
.section-tag,
.panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  background: none;
  border: 0;
  width: fit-content;
}

.badge svg,
.section-tag svg,
.panel-tag svg {
  width: 1.4rem;
  height: 1.4rem;
}

.section-tag {
  margin-bottom: 1.2rem;
}

.btn-primary,
.btn-secondary,
.btn-view-all,
.back-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 1.9rem;
  font-family: var(--ui);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 9.9rem;
  border: 0.1rem solid transparent;
  transition: var(--transition);
}

.btn-primary {
  color: var(--paper);
  background: var(--ink);
}

.btn-primary:hover {
  background: var(--forest);
  transform: translateY(-0.1rem);
}

.btn-secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--ink);
  transform: translateY(-0.1rem);
}

.btn-primary svg,
.btn-secondary svg {
  width: 1.6rem;
  height: 1.6rem;
}

.btn-view-all {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.btn-view-all:hover {
  color: var(--paper);
  background: var(--ink);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 2rem;
  padding: 0.8rem 1.3rem;
  font-family: var(--ui);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  background: transparent;
  border: 0.1rem solid var(--line);
  border-radius: 9.9rem;
}

.back-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* HERO - magazine feature, not HUD */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 0;
  padding: 4.5rem 0 3.5rem;
  background: transparent;
  border: 0;
  border-bottom: 0.1rem solid var(--line);
}

.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.6rem;
  max-width: 62rem;
}

.headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 4.6vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-sub {
  font-size: 1.7rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 54rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.8rem;
}

/* player panel becomes quiet profile card */

.hero-panel,
.skills-box {
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 1.5rem;
  padding: 2.2rem;
  background: var(--card);
  border: 0.1rem solid var(--line);
  border-radius: var(--radius);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 0.1rem solid var(--line-soft);
}

.panel-title {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-title svg {
  width: 1.5rem;
  height: 1.5rem;
}

.panel-led {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--moss);
}

.hero-panel-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.level-ring {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 8.6rem;
  height: 8.6rem;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--forest) var(--p, 36%), var(--line) 0);
}

.level-ring::before {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border-radius: 50%;
  background: var(--card);
  border: 0.1rem solid var(--line-soft);
}

.level-ring span {
  position: relative;
  font-family: var(--ui);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
}

.level-ring small {
  position: relative;
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.hero-panel-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hero-class {
  font-family: var(--mono);
  font-size: 1.02rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-class-name {
  font-family: var(--ui);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ink);
}

.stat-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: center;
  gap: 1rem;
}

.stat-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.stat-name svg {
  width: 1.3rem;
  height: 1.3rem;
}

.stat-track {
  position: relative;
  height: 0.8rem;
  background: var(--line);
  border-radius: 9.9rem;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  width: var(--w, 50%);
  border-radius: 9.9rem;
  background: var(--forest);
}

.stat-fill-pink {
  background: var(--ember);
}

.stat-fill-cyan {
  background: var(--teal);
}

.stat-fill-yellow,
.stat-fill-green {
  background: var(--gold);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--forest);
}

.led {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--moss);
}

/* ABOUT + SKILLS - editorial two-col, quiet chips */

.about-section {
  padding: 0;
  background: none;
  border: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.about-text h3 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0.4rem 0 1.2rem;
}

.about-text p {
  color: var(--ink-soft);
  font-size: 1.62rem;
  margin-bottom: 1.2rem;
  max-width: 56rem;
}

.status-panel {
  margin-top: 1.6rem;
  padding: 1.4rem 1.6rem;
  background: var(--card);
  border: 0.1rem solid var(--line);
  border-left: 0.3rem solid var(--ember);
  border-radius: var(--radius-sm);
}

.quest-text {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.6rem;
}

.quest-text svg {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--ember);
}

.skill-category h4 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.skill-category h4 svg {
  width: 1.5rem;
  height: 1.5rem;
}

.engine-list,
.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

.engine-item,
.lang-chip {
  position: static;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  font-family: var(--ui);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--paper-2);
  border: 0;
  border-radius: 9.9rem;
  cursor: default;
}

.engine-item::before,
.lang-chip::before {
  content: none;
}

.engine-item::after {
  content: none;
}

.chip-dot {
  display: none;
}

.engine-item[data-engine="unity"] {
  background: var(--plum);
  color: var(--paper);
}

.engine-item[data-engine="godot"] {
  background: var(--moss);
  color: var(--paper);
}

.engine-item[data-engine="unreal"] {
  background: var(--ember);
  color: var(--paper);
}

.skill-category ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.skill-category ul li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.7rem;
  font-size: 1.5rem;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-bottom: 0.1rem solid var(--line-soft);
}

.skill-category ul li:last-child {
  border-bottom: 0;
}

.skill-category ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--moss);
}

/* PROJECTS - image-led cards, real photos, no HUD loot */

.projects-section {
  padding: 0;
  background: none;
  border: 0;
}

.projects-section > .section-tag {
  color: var(--ember);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 2.2rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.3rem;
  font-family: var(--ui);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: 0.1rem solid var(--line);
  border-radius: 9.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn svg {
  width: 1.4rem;
  height: 1.4rem;
}

.filter-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.filter-btn.active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  justify-content: center;
}

.grid.featured {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 0.1rem solid var(--line);
  border-radius: var(--radius);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-0.4rem);
  border-color: var(--muted);
}

.card::before,
.card::after {
  content: none;
}

.card-image {
  position: relative;
  height: 24rem;
  overflow: hidden;
  background: var(--line);
  border-bottom: 0.1rem solid var(--line);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.03);
}

.card-image::after {
  content: none;
}

.card-rarity {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 3;
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: color-mix(in srgb, var(--forest) 70%, transparent);
  border: 0;
  border-radius: 0.5rem;
}

/* .rarity-common,
.rarity-rare,
.rarity-epic,
.rarity-legendary {
  color: var(--paper);
} */

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem 2.1rem 2.1rem;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0;
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  background: none;
  border: 0;
}

.card-tag svg {
  width: 1.3rem;
  height: 1.3rem;
}

.card h3 {
  font-family: var(--ui);
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.card-excerpt {
  font-size: 1.52rem;
  line-height: 1.65;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.2rem;
  font-family: var(--ui);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--forest);
}

.card-cta svg {
  width: 1.4rem;
  height: 1.4rem;
  transition: var(--transition);
}

.card:hover .card-cta svg {
  transform: translateX(0.4rem);
}

.card .project-link {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.projects-cta {
  display: flex;
  justify-content: flex-start;
  margin-top: 2.2rem;
}

/* RESUME - clean document, job history reads like CV */

.resume-section {
  padding: 0;
  background: none;
  border: 0;
}

.resume-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.resume-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.resume-subtitle {
  font-family: var(--sans);
  font-size: 1.45rem;
  color: var(--ink-soft);
  margin: 0.7rem 0 1.6rem;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.6rem;
}

.resume-category {
  margin-bottom: 3rem;
  padding-top: 2.2rem;
  border-top: 0.1rem solid var(--line);
}

.resume-category > h2 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.resume-category > h2::before {
  content: "";
  width: 2.2rem;
  height: 0.2rem;
  background: var(--ember);
}

.resume-entry {
  position: relative;
  margin-bottom: 1.3rem;
  padding: 2rem 2.1rem;
  background: var(--card);
  border: 0.1rem solid var(--line);
  border-radius: var(--radius);
}

.resume-entry::before {
  content: none;
}

.resume-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.resume-header h3 {
  font-family: var(--ui);
  font-size: 1.8rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.resume-company {
  font-family: var(--sans);
  font-size: 1.38rem;
  font-weight: 600;
  color: var(--forest);
  margin-top: 0.25rem;
}

.resume-company a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.resume-meta {
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 1.08rem;
  color: var(--muted);
}

.resume-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  background: var(--paper-2);
  border: 0;
  border-radius: 9.9rem;
}

.resume-meta svg {
  width: 1.25rem;
  height: 1.25rem;
}

.resume-entry ul {
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 1rem 0 0 1.8rem;
}

.resume-entry li {
  position: static;
  padding: 0;
  font-size: 1.52rem;
  color: var(--ink-soft);
}

.resume-entry li::before {
  content: none;
}

.certificate-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.5rem 1.8rem;
  background: var(--card);
  border: 0.1rem solid var(--line);
  border-radius: var(--radius-sm);
}

.certificate-entry h3 {
  font-size: 1.62rem;
  color: var(--ink);
}

.certificate-entry p {
  font-size: 1.35rem;
  color: var(--ink-soft);
}

.certificate-entry span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  font-family: var(--mono);
  font-size: 1.06rem;
  color: var(--gold);
  background: var(--paper-2);
  border-radius: 9.9rem;
  white-space: nowrap;
}

.certificate-entry span svg {
  width: 1.3rem;
  height: 1.3rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.resume-skills-box ul {
  list-style: none;
  margin: 0;
}

.resume-skills-box li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 1.6rem;
  font-size: 1.48rem;
  color: var(--ink-soft);
  border: 0;
}

.resume-skills-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--ember);
}

.resume-skills-box h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 0.1rem solid var(--line-soft);
}

.resume-skills-box h3 svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* PROJECT DOC - calm technical article, generous spacing */

.project-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.project-intro {
  font-size: 1.65rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 68rem;
  margin-bottom: 1.8rem;
}

.project-banner {
  position: relative;
  margin-bottom: 2.2rem;
  overflow: hidden;
  background: var(--line);
  border: 0.1rem solid var(--line);
  border-radius: var(--radius);
}

.project-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.project-banner::after {
  content: none;
}

.project-gallery {
  width: 100%;
  margin: 0 auto 2.2rem;
  position: relative;
  border-radius: 0.5rem;
}

.project-gallery img {
  display: block;
  width: 100%;
  height: auto;
  /* border-radius: 0 !important; */
}
/* 
.swiper-button-prev,
.swiper-button-next {
  color: var(--paper-2) !important;
  background: var(--moss);
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 50%;
} */

/* .swiper-button-prev {
  left: 3rem !important;
}

.swiper-button-next {
  right: 3rem !important;
} */

.swiper-pagination-bullet {
  background: var(--ink-soft) !important;
  width: 1.1rem !important;
  height: 1.1rem !important;
}
.swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: var(--ink) !important;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.6rem;
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.1rem;
  font-family: var(--mono);
  font-size: 1.06rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-2);
  border: 0;
  border-radius: 9.9rem;
}

.meta svg {
  width: 1.25rem;
  height: 1.25rem;
}

.pd-container {
  max-width: 80rem;
  margin: 0 auto;
}

.pd-header {
  position: relative;
  margin-bottom: 2.8rem;
  padding: 2.6rem 2.8rem;
  background: var(--card);
  border: 0.1rem solid var(--line);
  border-radius: var(--radius);
}

.pd-badge {
  display: inline-flex;
  margin-bottom: 1.2rem;
  padding: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--forest);
  border-radius: 9.9rem;
}

.pd-title {
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.pd-subtitle {
  font-size: 1.4rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pd-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--ink-soft);
  background: var(--paper-2);
  border-radius: 9.9rem;
}

.pd-section {
  margin-bottom: 3.2rem;
}

.pd-section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  padding-bottom: 0.9rem;
  font-family: var(--ui);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: 0.2rem solid var(--ink);
}

.pd-section-title::before {
  content: "";
  width: 2.2rem;
  height: 0.2rem;
  background: var(--ember);
}

.pd-text {
  margin: 0 0 1.4rem;
  font-size: 1.62rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 68rem;
}

.pd-text strong {
  color: var(--ink);
}

.pd-text-block {
  max-width: 68rem;
}

.pd-systems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.pd-systems-grid .pd-system-card {
  margin: 0;
  min-width: 0;
}

.pd-how {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  min-width: 0;
}

.pd-how .pd-flow-block {
  margin: 0;
  min-width: 0;
}

.pd-system-card,
.pd-flow-block,
.architecture {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 2.2rem;
  margin: 0 0 1.8rem;
  overflow: visible;
  background: var(--card);
  border: 0.1rem solid var(--line);
  border-radius: var(--radius);
}

.pd-system-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  color: var(--paper);
  background: var(--forest);
  border-radius: 1rem;
}

.pd-system-icon svg {
  width: 1.9rem;
  height: 1.9rem;
}

.pd-system-title {
  font-family: var(--ui);
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.pd-system-desc {
  font-size: 1.48rem;
  color: var(--ink-soft);
}

.pd-feature-list {
  list-style: disc;
  margin: 1rem 0 0 1.8rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pd-feature-list li {
  position: static;
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: none;
  border: 0;
}

.pd-feature-list li::before,
.pd-feature-list li::marker {
  color: var(--moss);
}

.pd-feature-inline {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 0;
  padding: 0;
}

.pd-feature-inline li {
  position: static;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.55rem 1.1rem;
  font-family: var(--ui);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper-2);
  border: 0;
  border-radius: 9.9rem;
}

.pd-feature-inline li::before {
  content: none;
}

.pd-flow-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--ui);
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 1.3rem;
}

.pd-flow-num {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin: 0;
  padding: 0.35rem 0.9rem;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  border-radius: 9.9rem;
}

.pd-flow-diagram {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.3rem 0 1.5rem;
  padding: 1.6rem 1.8rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 1.26rem;
  line-height: 1.9;
  color: var(--forest);
  background: var(--paper-2);
  border: 0.1rem solid var(--line);
  border-radius: var(--radius-sm);
  white-space: pre;
  text-align: center;
}

.pd-subhead {
  margin: 1.5rem 0 0.9rem;
  font-family: var(--mono);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

.pd-takeaway-list {
  list-style: disc;
  margin: 0 0 0 1.8rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pd-takeaway-list li {
  position: static;
  margin: 0;
  padding: 0;
  font-size: 1.52rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: none;
  border: 0;
}

.pd-takeaway-list li::before {
  content: none;
}

.pd-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}

.pd-gallery img,
.pd-gallery figure img {
  border: 0.1rem solid var(--line);
  border-radius: 1rem;
}

/* GUTENBERG + FOOTER */

.wp-block-group {
  margin-bottom: 2.6rem;
  padding: 2rem 2.2rem;
  background: var(--card);
  border: 0.1rem solid var(--line);
  border-radius: var(--radius);
}

.wp-block-group h2 {
  margin-bottom: 1.2rem;
  font-family: var(--ui);
  font-size: 1.6rem;
  color: var(--ink);
}

.wp-block-group p,
.wp-block-group li {
  font-size: 1.58rem;
  color: var(--ink-soft);
}

.wp-block-group strong {
  color: var(--ink);
}

.wp-block-image,
.wp-block-gallery {
  margin: 1.6rem 0;
}

.wp-block-image img {
  border: 0.1rem solid var(--line);
  border-radius: 1rem;
}

.wp-block-code,
.wp-block-preformatted {
  background: var(--paper-2);
  border: 0.1rem solid var(--line);
  border-radius: 0.8rem;
  color: var(--forest);
  font-family: var(--mono);
}

.wp-block-quote {
  border-left: 0.3rem solid var(--ember);
  background: var(--card);
  padding: 1.4rem 1.7rem;
  color: var(--ink-soft);
}

.contact-footer {
  position: relative;
  margin-top: 1rem;
  padding: 2.6rem 0 1.2rem;
  background: transparent;
  border-top: 0.2rem solid var(--ink);
}

.contact-footer .container {
  max-width: 118rem;
  margin: 0 auto;
  background: none;
  border: 0;
  padding: 0;
}

.footer-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--ui);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.7rem;
  font-size: 1.35rem;
  color: var(--forest);
}

.footer-spacer {
  flex: 1;
}

.footer-label {
  display: block;
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  background: transparent;
  border: 0.1rem solid var(--line);
  border-radius: 9.9rem;
}

.footer-links a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 0.1rem solid var(--line);
}

.footer-bottom p {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--muted);
}

svg.lucide {
  flex: none;
}

/* RESPONSIVE */

@media (max-width: 1020px) {
  body {
    padding: 1.6rem 1.2rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .about-grid,
  .grid.featured,
  .skills-grid,
  .pd-systems-grid,
  .pd-gallery {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 40rem));
  }

  .card-image {
    height: 20rem;
  }

  .resume-header {
    flex-direction: column;
  }

  .resume-meta {
    align-items: flex-start;
  }

  .swiper-pagination-bullet {
    background: var(--ink-soft) !important;
    width: 0.95rem !important;
    height: 0.95rem !important;
  }
}

@media (max-width: 620px) {
  html {
    font-size: 58%;
  }

  .hero {
    padding: 3rem 0 2.4rem;
  }

  .hud-bar-track {
    width: 12rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .filter-btn {
    flex: 1;
    justify-content: center;
  }

  .grid {
    grid-template-columns: minmax(0, 40rem);
  }

  .swiper-pagination-bullet {
    background: var(--ink-soft) !important;
    width: 0.85rem !important;
    height: 0.85rem !important;
  }
}
