/* ─────────────────────────────────────────
   HIMANSHI AGARWAL — PORTFOLIO STYLESHEET
   ───────────────────────────────────────── */

/* ─── CSS VARIABLES ─── */
:root {
  --ink: #3a3450;
  --cream: #f0eaf5;
  --paper: #faf7ff;
  --accent: #d4726a;
  --accent2: #e8a85c;
  --sage: #72b89a;
  --muted: #8a82a0;
  --border: #e6dff0;
  --glass: rgba(250, 247, 255, 0.88);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3.5rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

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

/* ─── HERO ─── */
#home {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55% 45%;
  padding-top: 68px;
  position: relative;
}

/* Diagonal split */
#home::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 45%;
  background: var(--cream);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3rem 5rem 4.5rem;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.15s;
}

.eyebrow-line {
  height: 1px;
  width: 32px;
  background: var(--accent);
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 0.6rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-name em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  display: block;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  color: var(--sage);
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.45s;
}

.hero-desc {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 400px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.75s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 0.9rem 2rem;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(212, 114, 106, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  padding: 0.9rem 2rem;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: all 0.25s;
}

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

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3.5rem 4rem 5rem;
  position: relative;
  z-index: 1;
}

.hero-monogram {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18vw;
  font-weight: 700;
  color: rgba(160, 145, 190, 0.2);
  line-height: 1;
  position: absolute;
  right: -1vw;
  bottom: 3vh;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.9s;
}

.stat-card {
  background: var(--cream);
  padding: 1.8rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.stat-card:hover { background: #ebe5f2; }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.3s ease;
}

.stat-card:hover::before { height: 100%; }

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── SECTION BASE ─── */
section {
  padding: 7rem 4.5rem;
  border-top: 1px solid var(--border);
  position: relative;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 48px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3.5rem;
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

/* ─── ABOUT ─── */
#about .about-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 6rem;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--muted);
  margin-bottom: 1.3rem;
}

.about-text p:first-child {
  font-size: 1.08rem;
  color: #5a5070;
}

.about-text p strong {
  color: var(--ink);
  font-weight: 500;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sidebar-block-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  color: var(--muted);
  background: white;
  transition: all 0.2s;
  cursor: default;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff5f3;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--cream);
}

.info-icon {
  width: 28px;
  height: 28px;
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.info-icon svg {
  width: 13px;
  height: 13px;
}

.info-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-value {
  font-size: 0.88rem;
  color: var(--ink);
  margin-top: 0.1rem;
}

/* ─── SKILLS ─── */
#skills {
  background: #eee8f5;
}

#skills .section-num { color: var(--accent); }
#skills .section-rule { background: var(--border); }
#skills .section-title { color: var(--ink); }

.skills-outer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-panel {
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  background: white;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.skill-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 114, 106, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.skill-panel:hover {
  border-color: rgba(212, 114, 106, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(58, 52, 80, 0.06);
}

.skill-panel-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 114, 106, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.skill-panel-icon svg {
  width: 18px;
  height: 18px;
}

.skill-panel-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skill-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}

.skill-row:last-child { border-bottom: none; }
.skill-row:hover { color: var(--ink); }

.skill-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─── PROJECTS ─── */
.projects-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}

.project-tile {
  background: var(--paper);
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
}

.project-tile:hover { background: #f3eef8; }

.project-tile::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  transition: width 0.4s ease;
}

.project-tile:hover::after { width: 100%; }

.project-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 1rem;
  user-select: none;
  transition: color 0.3s;
}

.project-tile:hover .project-num { color: #ddd5ea; }

.project-lang {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.project-lang::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.project-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.project-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.project-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  color: var(--muted);
  background: white;
}

.project-concepts-row {
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.concept-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--sage);
}

.concept-chip::before {
  content: '›';
  color: var(--accent);
  font-size: 1rem;
}

/* ─── BANKING SYSTEM SHOWCASE ─── */
.banking-showcase {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #f0ecf8 !important;
  padding: 0 !important;
  position: relative;
  overflow: hidden;
}

.banking-showcase::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 120, 180, 0.12) 0%, transparent 70%);
  top: -150px;
  left: -100px;
  pointer-events: none;
}

.banking-showcase::after {
  background: linear-gradient(90deg, #a78bdf, var(--accent2)) !important;
  height: 3px !important;
  width: 0 !important;
  bottom: 0;
  left: 0;
}

.banking-showcase:hover::after {
  width: 100% !important;
}

.banking-showcase:hover {
  background: #ebe6f5 !important;
}

.banking-showcase .project-num {
  color: rgba(140, 120, 180, 0.2);
  font-size: 6rem;
}

.banking-showcase:hover .project-num {
  color: rgba(140, 120, 180, 0.3);
}

.banking-showcase .project-lang {
  color: #8b6fc0;
}

.banking-showcase .project-lang::before {
  background: #8b6fc0;
}

.banking-showcase .project-name {
  color: var(--ink);
  font-size: 2.2rem;
}

.banking-showcase .project-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.banking-showcase .project-concepts-row {
  border-top-color: var(--border);
}

.banking-showcase .concept-chip {
  color: var(--muted);
}

.banking-showcase .concept-chip::before {
  color: #8b6fc0;
}

/* Banking Left Content */
.banking-left {
  padding: 3.5rem 3rem;
  position: relative;
  z-index: 1;
}

/* Banking Features */
.banking-features {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.banking-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(140, 120, 180, 0.15);
  background: rgba(140, 120, 180, 0.04);
  transition: all 0.25s ease;
}

.banking-feature:hover {
  border-color: rgba(140, 120, 180, 0.35);
  background: rgba(140, 120, 180, 0.08);
  transform: translateX(4px);
}

.banking-feature-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(140, 120, 180, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #8b6fc0;
  transition: all 0.25s;
}

.banking-feature:hover .banking-feature-icon {
  background: rgba(140, 120, 180, 0.12);
  border-color: #8b6fc0;
}

.banking-feature-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.banking-feature-desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Banking Right — Terminal */
.banking-right {
  padding: 3.5rem 3rem 3.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: center;
}

/* Terminal Window */
.terminal-window {
  border: 1px solid rgba(140, 120, 180, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: #2d2845;
  box-shadow: 0 20px 60px rgba(58, 52, 80, 0.15);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.dot-red, .dot-yellow, .dot-green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }

.terminal-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: rgba(242, 236, 224, 0.25);
}

.terminal-body {
  padding: 1.2rem 1.3rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.7;
  color: rgba(230, 220, 245, 0.7);
}

.terminal-line {
  white-space: nowrap;
}

.t-blank {
  height: 0.5rem;
}

.t-prompt {
  color: #b89fdb;
  font-weight: 500;
}

.t-cmd {
  color: #e6dcf5;
}

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

.t-gold {
  color: #e8a85c;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.t-muted {
  color: rgba(230, 220, 245, 0.35);
}

.t-input {
  color: rgba(230, 220, 245, 0.55);
}

.t-cursor {
  color: #b89fdb;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Banking Stats */
.banking-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(140, 120, 180, 0.1);
  border: 1px solid rgba(140, 120, 180, 0.15);
}

.banking-stat {
  background: #f0ecf8;
  padding: 1rem;
  text-align: center;
  transition: background 0.2s;
}

.banking-stat:hover {
  background: #ebe6f5;
}

.banking-stat-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.banking-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── PORTFOLIO WEBSITE SHOWCASE ─── */
.portfolio-showcase {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #ebf5f0 !important;
  padding: 0 !important;
  position: relative;
  overflow: hidden;
}

.portfolio-showcase::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 184, 154, 0.12) 0%, transparent 70%);
  bottom: -200px;
  right: -100px;
  pointer-events: none;
}

.portfolio-showcase::after {
  background: linear-gradient(90deg, var(--sage), var(--accent2)) !important;
  height: 3px !important;
  width: 0 !important;
  bottom: 0;
  left: 0;
}

.portfolio-showcase:hover::after {
  width: 100% !important;
}

.portfolio-showcase:hover {
  background: #e5f0eb !important;
}

.portfolio-showcase .project-num {
  color: rgba(114, 184, 154, 0.2);
  font-size: 6rem;
}

.portfolio-showcase:hover .project-num {
  color: rgba(114, 184, 154, 0.3);
}

.portfolio-showcase .project-lang {
  color: #4a9a78;
}

.portfolio-showcase .project-lang::before {
  background: #4a9a78;
}

.portfolio-showcase .project-name {
  color: var(--ink);
  font-size: 2.2rem;
}

.portfolio-showcase .project-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.portfolio-showcase .project-concepts-row {
  border-top-color: var(--border);
}

.portfolio-showcase .concept-chip {
  color: var(--muted);
}

.portfolio-showcase .concept-chip::before {
  color: #4a9a78;
}

/* Portfolio Left */
.portfolio-left {
  padding: 3.5rem 3rem;
  position: relative;
  z-index: 1;
}

/* Portfolio Features */
.portfolio-features {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.portfolio-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(114, 184, 154, 0.15);
  background: rgba(114, 184, 154, 0.04);
  transition: all 0.25s ease;
}

.portfolio-feature:hover {
  border-color: rgba(114, 184, 154, 0.35);
  background: rgba(114, 184, 154, 0.08);
  transform: translateX(4px);
}

.portfolio-feature-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(114, 184, 154, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #4a9a78;
  transition: all 0.25s;
}

.portfolio-feature:hover .portfolio-feature-icon {
  background: rgba(114, 184, 154, 0.12);
  border-color: #4a9a78;
}

.portfolio-feature-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.portfolio-feature-desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Portfolio Right */
.portfolio-right {
  padding: 3.5rem 3rem 3.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: center;
}

/* Browser Window Mockup */
.browser-window {
  border: 1px solid rgba(114, 184, 154, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: #2a3d35;
  box-shadow: 0 20px 60px rgba(42, 61, 53, 0.15);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(114, 184, 154, 0.12);
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-url-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  color: rgba(200, 230, 215, 0.4);
}

.browser-url-bar svg {
  color: #72b89a;
  flex-shrink: 0;
}

.browser-url-bar span {
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mini Portfolio Preview */
.browser-body {
  padding: 1.2rem 1.5rem;
}

.mini-hero {
  margin-bottom: 1rem;
}

.mini-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.42rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b8391c;
  margin-bottom: 0.4rem;
}

.mini-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 0.95;
  color: #e6f0eb;
}

.mini-name-accent {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  line-height: 0.95;
  color: #d4726a;
  margin-bottom: 0.3rem;
}

.mini-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.65rem;
  font-style: italic;
  color: #72b89a;
  margin-bottom: 0.6rem;
}

.mini-buttons {
  display: flex;
  gap: 0.4rem;
}

.mini-btn-primary {
  font-family: 'DM Mono', monospace;
  font-size: 0.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  background: #3a3450;
  color: #e6f0eb;
  border: 1px solid #3a3450;
}

.mini-btn-secondary {
  font-family: 'DM Mono', monospace;
  font-size: 0.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  background: transparent;
  color: rgba(200, 230, 215, 0.5);
  border: 1px solid rgba(200, 230, 215, 0.2);
}

.mini-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(114, 184, 154, 0.12);
  border: 1px solid rgba(114, 184, 154, 0.12);
}

.mini-stat {
  background: #2a3d35;
  padding: 0.5rem;
  text-align: center;
}

.mini-stat-n {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e6f0eb;
  line-height: 1;
}

.mini-stat-l {
  font-family: 'DM Mono', monospace;
  font-size: 0.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 230, 215, 0.4);
}

/* Color Palette Strip */
.color-palette {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(114, 184, 154, 0.12);
  background: rgba(114, 184, 154, 0.04);
}

.palette-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.palette-colors {
  display: flex;
  gap: 4px;
  flex: 1;
}

.palette-swatch {
  flex: 1;
  height: 24px;
  border-radius: 3px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.palette-swatch:hover {
  transform: scaleY(1.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Portfolio Stats */
.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(114, 184, 154, 0.12);
  border: 1px solid rgba(114, 184, 154, 0.12);
}

.portfolio-stat {
  background: #ebf5f0;
  padding: 1rem;
  text-align: center;
  transition: background 0.2s;
}

.portfolio-stat:hover {
  background: #e5f0eb;
}

.portfolio-stat-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.portfolio-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Wide tile (spans 2 columns) */
.project-tile.wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.wide-right {
  padding-top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-box {
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: white;
}

.highlight-box-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.highlight-item {
  font-size: 0.83rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.highlight-item::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent2);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── BLOG ─── */
#blog {
  background: var(--cream);
}

.blog-intro {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* Category Filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.blog-filter {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.blog-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff8f5;
}

.blog-filter.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}

/* Blog Card */
.blog-card {
  background: var(--paper);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, transform 0.3s;
}

/* Blog Card Image */
.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* Card content padding (below image) */
.blog-card-header,
.blog-card > .blog-title,
.blog-card > .blog-excerpt,
.blog-card > .blog-tags,
.blog-card > .blog-footer,
.blog-card > h2.blog-title,
.blog-card > h3.blog-title,
.blog-card > p.blog-excerpt,
.blog-card > div.blog-tags,
.blog-card > div.blog-footer {
  padding-left: 2.2rem;
  padding-right: 2.2rem;
}

.blog-card-header {
  padding-top: 1.5rem;
}

.blog-card > div.blog-footer {
  padding-bottom: 2rem;
}

/* Article Hero Image (full blog post pages) */
.article-hero-image {
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.article-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.blog-card:hover::before {
  transform: scaleX(1);
}

.blog-card:hover {
  background: #f3eef8;
}

.blog-card.hidden {
  display: none;
}

/* Blog Card Header */
.blog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.blog-category {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(184, 57, 28, 0.2);
  background: rgba(184, 57, 28, 0.04);
}

.blog-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0.6;
}

/* Blog Title */
.blog-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.9rem;
  transition: color 0.2s;
}

.blog-card:hover .blog-title {
  color: var(--accent);
}

/* Blog Excerpt */
.blog-excerpt {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1.3rem;
  flex: 1;
}

/* Blog Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.blog-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  color: var(--sage);
  background: white;
  transition: all 0.2s;
}

.blog-card:hover .blog-tag {
  border-color: rgba(90, 110, 80, 0.3);
}

/* Blog Footer */
.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.blog-read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0.6;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  transition: gap 0.25s ease;
}

.blog-card:hover .blog-read-more {
  gap: 0.7rem;
}

/* Blog card as link */
a.blog-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* View All Button */
.blog-view-all {
  margin-top: 3rem;
  text-align: center;
}

/* ─── BLOG HERO (blog.html) ─── */
.blog-hero-section {
  padding-top: 120px !important;
  background: var(--cream);
}

.blog-hero-section .blog-intro {
  max-width: 700px;
}

.blog-hero-section .blog-intro strong {
  color: var(--ink);
  font-weight: 500;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--border);
}

.breadcrumb-current {
  color: var(--accent);
}

/* ─── BLOG ARTICLE PAGE ─── */
.blog-article-page {
  padding: 120px 4.5rem 4rem;
  max-width: 860px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1rem;
}

.article-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 300;
  color: var(--sage);
  margin-bottom: 2rem;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.author-role {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Article Content Typography */
.article-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 0.7rem;
}

.article-content p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.article-content p strong {
  color: var(--ink);
  font-weight: 500;
}

.article-content p em {
  color: var(--sage);
}

.article-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 57, 28, 0.2);
  transition: border-color 0.2s;
}

.article-content a:hover {
  border-color: var(--accent);
}

.article-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.article-content li strong {
  color: var(--ink);
  font-weight: 500;
}

/* Article CTA Box */
.article-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--cream);
  border-left: 3px solid var(--accent);
}

.article-cta p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 0;
}

.article-cta a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 57, 28, 0.3);
}

.article-cta a:hover {
  border-color: var(--accent);
}

/* Related Posts */
.related-posts {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.related-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: white;
  text-decoration: none;
  transition: all 0.25s;
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(18, 14, 10, 0.06);
}

.related-card .blog-category {
  margin-bottom: 0.8rem;
  display: inline-block;
}

.related-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.related-card:hover h4 {
  color: var(--accent);
}

/* ─── ENHANCED FOOTER ─── */
.blog-page-footer {
  background: #241e38;
  padding: 3.5rem 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-main span {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
}

.footer-keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-keywords a {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-keywords a:hover {
  color: var(--accent2);
}

.footer-keywords .footer-dot {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.68rem;
}

.footer-backlinks {
  display: flex;
  gap: 2rem;
  padding-top: 0.8rem;
}

.footer-backlinks a {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-backlinks a:hover {
  color: var(--accent2);
}

/* #blog-listing on blog.html */
#blog-listing {
  padding-top: 2rem;
}

/* ─── CONTACT ─── */
#contact {
  background: #fcf6f5;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 114, 106, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

#contact .section-num { color: var(--accent); }
#contact .section-rule { background: rgba(0, 0, 0, 0.05); }
#contact .section-title { color: var(--ink); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  position: relative;
  z-index: 1;
}

.contact-intro {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: padding-left 0.25s;
}

.contact-item:hover { padding-left: 0.5rem; }

.c-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid rgba(212, 114, 106, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.contact-item:hover .c-icon {
  background: rgba(212, 114, 106, 0.08);
  border-color: var(--accent);
}

.c-icon svg {
  width: 17px;
  height: 17px;
}

.c-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.c-value {
  font-size: 0.92rem;
  color: var(--ink);
}

.contact-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.big-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 2rem;
  border-left: 2px solid var(--accent);
  padding-left: 2rem;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(212, 114, 106, 0.3);
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ─── FOOTER ─── */
footer {
  background: #241e38;
  padding: 3.5rem 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer span {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
}

.footer-dot { color: var(--accent); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.5rem; }

  #home { grid-template-columns: 1fr; }
  #home::before { display: none; }
  .hero-left { padding: 4rem 1.5rem 3rem; }
  .hero-right { display: none; }

  section { padding: 4.5rem 1.5rem; }

  #about .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .skills-outer { grid-template-columns: 1fr; }

  .projects-wrapper { grid-template-columns: 1fr; }
  .project-tile.wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .wide-right { padding-top: 0; }

  .banking-showcase {
    grid-column: span 1 !important;
    grid-template-columns: 1fr !important;
  }

  .banking-left {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .banking-right {
    padding: 0 1.5rem 2.5rem;
  }

  .terminal-body {
    font-size: 0.6rem;
    overflow-x: auto;
  }

  .banking-showcase .project-name {
    font-size: 1.7rem;
  }

  .portfolio-showcase {
    grid-column: span 1 !important;
    grid-template-columns: 1fr !important;
  }

  .portfolio-left {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .portfolio-right {
    padding: 0 1.5rem 2.5rem;
  }

  .portfolio-showcase .project-name {
    font-size: 1.7rem;
  }

  .mini-name, .mini-name-accent {
    font-size: 1.4rem;
  }

  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }

  .blog-grid { grid-template-columns: 1fr; }
  .blog-filters { gap: 0.4rem; }
  .blog-filter { padding: 0.45rem 0.9rem; font-size: 0.56rem; }

  .blog-article-page {
    padding: 100px 1.5rem 3rem;
  }

  .article-title {
    font-size: 1.8rem;
  }

  .article-hero-image {
    height: 220px;
  }

  .blog-card-image {
    height: 160px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .blog-page-footer {
    padding: 1.5rem;
  }

  .footer-main {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-keywords {
    justify-content: center;
  }

  .footer-backlinks {
    justify-content: center;
    flex-wrap: wrap;
  }

  footer {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    text-align: center;
  }
}

@media (min-width: 601px) and (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
