/* ==========================================================================
   BITHI NATH — PORTFOLIO STYLESHEET
   Design concept: 
   ========================================================================== */

/* ---- Fonts ---- */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700;9..144,900&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

/* ---- Tokens ---- */
:root {
  /* Color */
  --navy: #0b1929;
  --navy-soft: #142436;
  --paper: #faf8f3;
  --paper-dim: #f1ede3;
  --teal: #0f8b8d;
  --teal-deep: #0a6466;
  --amber: #e2a33d;
  --slate: #5b6b79;
  --slate-light: #8a97a2;
  --rule: #dcd5c3;
  --rule-dark: rgba(255, 255, 255, 0.14);
  --ink: #16212e;
  --white: #ffffff;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  /* Layout */
  --max-width: 1300px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-card:
    0 1px 2px rgba(11, 25, 41, 0.04), 0 8px 24px rgba(11, 25, 41, 0.06);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.mono {
  font-family: var(--font-mono);
}

/* ---- Eyebrow label ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--teal);
}
.eyebrow--light {
  color: var(--amber);
}

/* ---- Headings ---- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  margin-top: 10px;
}

.section-intro {
  color: var(--slate);
  max-width: 60ch;
  margin-top: 14px;
  font-size: 16px;
}

.section-title2 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  margin-top: 60px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.nav-brand span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition:
    color var(--transition),
    background var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--navy);
  background: var(--paper-dim);
}

.nav-links a.active {
  color: var(--navy);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--rule);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav-links.open {
    max-height: 320px;
  }
  .nav-links a {
    padding: 14px 32px;
    border-radius: 0;
  }
  .nav-links a.active::after {
    display: none;
  }
  .nav-links a.active {
    background: var(--paper-dim);
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: var(--navy);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 88px;
}

.hero-name {
  font-size: clamp(40px, 6vw, 64px);
  color: var(--white);
  margin-top: 14px;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--amber);
  margin-top: 14px;
  letter-spacing: 0.01em;
}

.hero-role span {
  color: var(--slate-light);
}

.hero-tagline {
  margin-top: 22px;
  font-size: 16.5px;
  color: #c7d1da;
  max-width: 50ch;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-deep);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--paper);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost.on-light {
  border-color: var(--rule);
  color: var(--navy);
}
.btn-ghost.on-light:hover {
  border-color: var(--slate);
  background: var(--paper-dim);
}

/* ---- Hero signature: framed profile photo ---- */
.hero-photo {
  display: flex;
  justify-content: center;
}

.hero-photo-frame {
  position: relative;
  width: 50%;
  max-width: 250px;
  border-radius: 50%;
  overflow: hidden;
  border-left: 12px solid #e2a33d;
  border-right: 12px solid transparent;
}

.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: photoReveal 700ms ease 150ms forwards;
}

.hero-photo-frame::before,
.hero-photo-frame::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  z-index: 1;
  opacity: 0;
  animation: bracketReveal 600ms ease forwards;
}
.hero-photo-frame::before {
  top: -14px;
  left: -14px;
  border-top: 3px solid var(--teal);
  border-left: 3px solid var(--teal);
  animation-delay: 500ms;
}
.hero-photo-frame::after {
  bottom: -14px;
  right: -14px;
  border-bottom: 3px solid var(--amber);
  border-right: 3px solid var(--amber);
  animation-delay: 650ms;
}

@keyframes photoReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bracketReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 48px;
  }
  .hero-photo {
    order: -1;
  }
  .hero-photo-frame {
    max-width: 240px;
  }
}

/* ==========================================================================
   STATS STRIP
   ========================================================================== */
.stats {
  background: var(--navy-soft);
  border-top: 1px solid var(--rule-dark);
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat {
  padding: 30px 24px;
  border-left: 1px solid var(--rule-dark);
  text-align: left;
}
.stat:first-child {
  border-left: none;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(38px, 4vw, 35px);
  font-weight: 600;
  text-align: center;
  color: var(--amber);
  letter-spacing: -0.01em;
}

.stat-label {
  margin-top: 6px;
  font-size: 16px;
  text-align: center;
  color: #a9b4bd;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .stats .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3) {
    border-left: none;
  }
  .stat {
    border-bottom: 1px solid var(--rule-dark);
  }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 100px;
}
.section:last-of-type {
  border-bottom: none;
}

.section--tight {
  padding: 56px 0;
}

/* ---- Bio / about ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 36px;
  align-items: start;
}

.about-text p {
  color: var(--slate);
  font-size: 16px;
  margin-bottom: 16px;
}
.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--navy);
  font-weight: 600;
}

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---- Skill ledger (tag groups) ---- */
.skill-group {
  margin-bottom: 22px;
}
.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 10px;
  display: block;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--ink);
}
.tag--finance {
  border-color: #d9cdb8;
  background: #fbf6ec;
  color: #8a5e1f;
}
.tag--data {
  border-color: #bfe3e2;
  background: #effaf9;
  color: var(--teal-deep);
}

/* ---- Quick nav cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.nav-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.nav-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--teal);
}

.nav-card-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.06em;
}

.nav-card h3 {
  font-size: 21px;
  margin-top: 12px;
}

.nav-card p {
  color: var(--slate);
  font-size: 14.5px;
  margin-top: 10px;
  line-height: 1.6;
}

.nav-card-arrow {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-card:hover .nav-card-arrow {
  color: var(--teal);
}

@media (max-width: 820px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PAGE HEADER (sub-pages)
   ========================================================================== */
.page-header {
  background: var(--navy);
  color: var(--paper);
  padding: 64px 0 52px;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(32px, 4.5vw, 46px);
  margin-top: 12px;
}

.page-header p {
  color: #c7d1da;
  max-width: 58ch;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
}

/* ==========================================================================
   EXPERIENCE TIMELINE
   ========================================================================== */
.timeline {
  margin-top: 40px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--rule);
}

.timeline-item {
  position: relative;
  padding-left: 32px;
  padding-bottom: 48px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--teal);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--teal);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.timeline-role {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  font-family: var(--font-display);
}

.timeline-org {
  font-size: 14.5px;
  color: var(--slate);
  margin-top: 4px;
}

.timeline-sub {
  margin-top: 18px;
}

.timeline-sub-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.timeline-list {
  display: grid;
  gap: 8px;
}

.timeline-list li {
  position: relative;
  padding-left: 18px;
  color: var(--slate);
  font-size: 14.5px;
  line-height: 1.6;
}
.timeline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1.5px;
  background: var(--amber);
}

.timeline-list strong {
  color: var(--ink);
  font-weight: 600;
}

.timeline-extra {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--paper-dim);
  border-left: 2px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.timeline-extra-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
  display: block;
}

/* ---- Skill proficiency ledger ---- */
.proficiency-list {
  margin-top: 32px;
  display: grid;
  gap: 18px;
}

.proficiency-row {
  display: grid;
  grid-template-columns: 160px 1fr 90px;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.proficiency-row:last-child {
  border-bottom: none;
}

.proficiency-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
}

.proficiency-track {
  height: 6px;
  background: var(--paper-dim);
  border-radius: 4px;
  overflow: hidden;
}

.proficiency-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  border-radius: 4px;
  width: 0;
  transition: width 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.proficiency-level {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  text-align: right;
}

@media (max-width: 600px) {
  .proficiency-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .proficiency-level {
    text-align: left;
  }
}

/* ---- Education ---- */
.edu-grid {
  margin-top: 32px;
  display: grid;
  gap: 22px;
}

.edu-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.edu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--slate);
}

.edu-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 15.5px;
}
.edu-org {
  color: var(--slate);
  font-size: 14px;
  margin-top: 3px;
}
.edu-meta {
  color: var(--teal-deep);
  font-size: 13px;
  margin-top: 4px;
  font-family: var(--font-mono);
}

@media (max-width: 560px) {
  .edu-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---- Certifications ---- */
.cert-list {
  margin-top: 28px;
  display: grid;
  gap: 0;
}
.cert-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.cert-row:last-child {
  border-bottom: none;
}
.cert-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 14.5px;
}
.cert-issuer {
  color: var(--slate);
  font-size: 13.5px;
  margin-top: 2px;
}
.cert-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--teal);
  white-space: nowrap;
}

.cert-grid-others {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 32px;
  margin-bottom: 40px;
}

.cert-grid-others .cert-card {
  border: 1px solid rgb(62, 62, 62);
}

.cert-grid-others .cert-card-meta {
  padding-bottom: 40px;
  padding-top: 20px;
}

.placeholder-icon {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-deep, #005f73);
  padding: 8px 16px;
  border-bottom: 1px solid var(--rule, #e2e8f0);
  display: block;
  background-color: #fafafa;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 32px;
}

.cert-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.cert-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--rule);
}

.cert-card-meta {
  padding: 14px 16px;
}
.cert-card-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--teal-deep);
  margin-top: 4px;
  display: block;
}

.certificate-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-top: 40px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.project-grid {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 8px 1fr;
}

.project-spine {
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.project-body {
  padding: 32px 34px;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.project-title {
  font-size: 24px;
  font-family: var(--font-display);
  color: var(--navy);
}

.project-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal-deep);
  border: 1px solid var(--rule);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition:
    background var(--transition),
    border-color var(--transition);
}
.project-link:hover {
  background: var(--paper-dim);
  border-color: var(--teal);
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.stack-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  background: var(--paper-dim);
  border-radius: 4px;
  color: var(--slate);
}

.project-desc {
  margin-top: 18px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.7;
  max-width: 110ch;
}

.project-points {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.project-points li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.6;
}
.project-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1.5px;
  background: var(--teal);
}
.project-body h3 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.case-table-wrap {
  overflow-x: auto;
  margin-top: 15px;
}

.case-table {
  width: 70%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}

.case-table th {
  text-align: left;
  padding: 12px;
  background: #f5f5f5;
  border-bottom: 2px solid #ddd;
  font-weight: 600;
}

.case-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.case-table tr:hover {
  background: #fafafa;
}

.mono-cell {
  font-family: monospace;
  font-weight: 600;
}

.num-cell {
  text-align: right;
  font-weight: 600;
}

.deshboard_link a {
  color: #0390b7;
  font-size: 18px;
  margin-top: 20px;
  font-weight: 800;
}
.project_dashboard {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 40px;
}

.project_dashboard img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.project_dashboard:has(img:only-child) {
  grid-template-columns: 3fr 0.2fr;
}

.project_web {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
  margin-top: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.project_web video {
  width: 80%;
  max-width: 1000px;
  max-height: 600px;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* =================================================
   BLOG PAGE —
   ==============================================*/

.blog-intro {
  margin-top: 36px;
  max-width: 62ch;
  color: var(--slate);
  font-size: 16px;
}

.blog-list {
  margin-top: 28px;
}

.blog-post {
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
}
.blog-post:first-child {
  padding-top: 0;
}
.blog-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.blog-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #bfe3e2;
  background: #effaf9;
  color: var(--teal-deep);
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--slate);
}

.blog-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--slate-light);
}

.blog-post h2 {
  font-size: clamp(22px, 2.6vw, 27px);
  margin-bottom: 16px;
}

.blog-post-body p {
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.8;
  max-width: 72ch;
  margin-bottom: 14px;
}
.blog-post-body p:last-child {
  margin-bottom: 0;
}

.blog-post-body strong {
  color: var(--navy);
  font-weight: 600;
}

.blog-post-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--paper-dim);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--teal-deep);
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.hobby-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 26px;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.hobby-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.hobby-icon {
  width: 38px;
  height: 38px;
  color: var(--teal);
}

.hobby-card h3 {
  font-size: 17.5px;
  margin-top: 16px;
  font-family: var(--font-body);
  font-weight: 600;
}

.hobby-card p {
  color: var(--slate);
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .hobby-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .hobby-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Languages ---- */
.lang-list {
  margin-top: 28px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.lang-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lang-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 15.5px;
}
.lang-level {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--teal-deep);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: var(--paper);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

.footer-tagline {
  margin-top: 12px;
  color: #a9b4bd;
  font-size: 14px;
  max-width: 32ch;
  line-height: 1.6;
}

.footer-col-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  gap: 10px;
}
.footer-links a {
  color: #c7d1da;
  font-size: 14.5px;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--amber);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--slate-light);
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
