:root {
  --bg:            rgba(11, 13, 18, 1);      /* hsla(223, 24%, 6%, 1) */
  --surface:       rgba(20, 24, 33, 1);      /* hsla(222, 25%, 10%, 1) */
  --surface-alt:   rgba(28, 32, 41, 1);      /* hsla(222, 19%, 14%, 1) */

  --accent:        rgba(232, 163, 61, 1);    /* hsla(36, 79%, 57%, 1) */
  --accent-alt:    rgba(245, 219, 92, 1);    /* hsla(50, 88%, 66%, 1) */

  --text-headline: rgba(241, 243, 247, 1);   /* hsla(220, 27%, 96%, 1) */
  --text-body:     rgba(167, 174, 187, 1);   /* hsla(219, 13%, 69%, 1) */
  --text-muted:    rgba(125, 132, 146, 1);   /* hsla(220, 9%, 53%, 1) */
  --text-nav:      rgba(136, 146, 160, 1);   /* hsla(215, 11%, 58%, 1) */

  --border-accent: rgba(232, 163, 61, .3);
  --border-faint:  rgba(232, 163, 61, .25);
  --grid-line:     rgba(232, 163, 61, .08);
}

/* ------------------------------------------------------------------
   LIGHT MODE — applied when <body class="light-mode"> is set by JS.
   Only the variables that need to change are listed here; everything
   else inherits from :root above.
   ------------------------------------------------------------------ */
body.light-mode {
  --bg:            rgba(245, 243, 235, 1);   /* warm off-white parchment */
  --surface:       rgba(232, 229, 218, 1);   /* slightly darker card bg  */
  --surface-alt:   rgba(220, 217, 204, 1);

  --text-headline: rgba(18, 20, 28, 1);      /* near-black */
  --text-body:     rgba(55, 60, 75, 1);
  --text-muted:    rgba(100, 107, 122, 1);
  --text-nav:      rgba(80, 88, 105, 1);

  --border-accent: rgba(180, 120, 30, .4);
  --border-faint:  rgba(180, 120, 30, .3);
  --grid-line:     rgba(180, 120, 30, .1);
}

/* Smooth transition when the theme flips — affects background and text */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Visually hide text while keeping it for screen readers (used to avoid
   duplicating a section's visible label when a numbered divider already shows it) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Numbered section divider, e.g. "01 — SKILLS ————" */
.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
}

.section-divider .rule {
  flex: 1;
  height: 1px;
  background: var(--border-faint);
}

/* Inline uppercase tech tag row, e.g. "GO · REDIS · GRPC" */
.tech-line {
  font-size: 10.5px;
  letter-spacing: .05em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Status line, e.g. "STATUS: ● OPEN TO OPPORTUNITIES" */
.status-line {
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: .03em;
}

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

/* ============================================================
   TYPEWRITER EFFECT
   The blinking cursor is a pseudo-element so it never appears
   in the actual text content (good for screen readers).
   .typing  = cursor blinking while text is being typed
   .typed   = cursor stops blinking once typing is complete
   ============================================================ */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.typing::after,
.typed::after {
  content: "_";
  color: var(--accent);
  font-weight: 700;
}

.typing::after {
  animation: blink 0.7s step-end infinite;
}

/* Respect reduced-motion — skip the blink */
@media (prefers-reduced-motion: reduce) {
  .typing::after { animation: none; }
}

/* ============================================================
   SCROLL ANIMATIONS
   Elements with [data-animate] start hidden. When animations.js
   adds the "visible" class, the transition plays.
   data-animate="delay-1" / "delay-2" / "delay-3" staggers cards
   so they don't all pop in at the same time.
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grids (skill cards, project cards) */
[data-animate="delay-1"] { transition-delay: 0.1s; }
[data-animate="delay-2"] { transition-delay: 0.2s; }
[data-animate="delay-3"] { transition-delay: 0.3s; }

/* Respect user's reduced-motion preference — skip animation entirely */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   BOX MODEL: Set border-box globally for predictable sizing
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ============================================================
   BASIC RESETS & BODY
   ============================================================ */
body {
  background: var(--bg);
  color: var(--text-body);
  font-family: 'JetBrains Mono', monospace;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
} 
/* Hero headline */
.headline {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-headline);
}

/* Eyebrow label (small pixel-font tag above headings) */
.eyebrow {
  font-family: 'Press Start 2P', monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}

/* Body paragraph */
.body-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 100%;
}

/* Nav links */
.nav-link {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--text-nav);
}

/* Section number, e.g. "01" */
.section-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 9.5px;
  color: var(--accent);
}

/* Section label, e.g. "SKILLS" */
.section-label {
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--text-muted);
}

/* Card / project title */
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-headline);
}

/* Metric numbers, e.g. "−42%" */
.metric {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

/* Timeline role label */
.timeline-role {
  font-size: 14px;
  font-weight: 700;
}
.btn-primary {
  background: var(--accent);
  color: #1a1204;
  padding: 12px 22px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent-alt);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 163, 61, 0.2);
}

.btn-secondary {
  border: 1px solid #3a3f4a;
  color: #c3c8d1;
  padding: 11px 22px;
  font-size: 12.5px;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-faint);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.nav-brand {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-headline);
  text-decoration: none;
  white-space: nowrap;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

.nav-link {
  display: inline-block;
  background: var(--accent);
  color: #1a1204;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 3px 3px 0 color-mix(in oklch, var(--accent) 40%, black), 0 6px 14px rgba(0,0,0,.5);
}

.nav-link:hover {
  background: var(--accent-alt);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 color-mix(in oklch, var(--accent) 40%, black), 0 8px 18px rgba(0,0,0,.5);
}

.nav-link:active {
  box-shadow: 1px 1px 0 color-mix(in oklch, var(--accent) 40%, black), 0 2px 6px rgba(0,0,0,.4);
  transform: translate(2px, 2px);
}

.nav-link[aria-current="page"] {
  background: var(--accent-alt);
}

#lang-switcher {
  white-space: nowrap;
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  background: #1a7fb5;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .05em;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 3px 3px 0 color-mix(in oklch, #1a7fb5 40%, black), 0 6px 14px rgba(0,0,0,.5);
}

.lang-btn:hover {
  background: #2298d4;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 color-mix(in oklch, #1a7fb5 40%, black), 0 8px 18px rgba(0,0,0,.5);
}

.lang-btn:active {
  box-shadow: 1px 1px 0 color-mix(in oklch, #1a7fb5 40%, black), 0 2px 6px rgba(0,0,0,.4);
  transform: translate(2px, 2px);
}

.lang-btn[aria-pressed="true"] {
  background: #2298d4;
}

/* Theme toggle button — styled to match the retro nav aesthetic */
.theme-toggle {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.2);
}

/* --- Nav social icons --- */
.nav-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-faint);
  border-radius: 4px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 15px;
}

.nav-icon:hover {
  background: var(--surface-alt);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* --- Hero grid --- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

section {
  margin-bottom: 80px;
  padding: 0;
}

section h1 {
  margin: 0 0 16px 0;
}

section h2 {
  margin: 0 0 20px 0;
}

section h3 {
  margin: 0 0 12px 0;
}

section p {
  margin: 0 0 16px 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  margin-bottom: 120px;
}

.hero-subtitle,
.hero-location {
  font-size: 14.5px;
  color: var(--text-body);
  margin: 12px 0;
}

.cta-button {
  display: inline-block;
  margin-top: 24px;
}

/* ============================================================
   CARDS & PROJECTS
   ============================================================ */
.project-card,
.article-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-faint);
  padding: 24px;
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.project-card::before,
.article-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.project-card::after,
.article-card::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.project-card:hover,
.article-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(232, 163, 61, 0.1);
}

.project-description {
  margin: 12px 0 16px 0;
  line-height: 1.75;
}

.tech-stack {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-stack li {
  background: var(--surface-alt);
  border: 1px solid var(--border-faint);
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 11px;
  color: var(--text-muted);
}

.project-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .03em;
  text-decoration: none;
}

.project-link:hover {
  color: var(--accent-alt);
}

/* ============================================================
   SKILL CATEGORIES
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border-faint);
  padding: 20px;
  border-radius: 4px;
}

.skill-category h3 {
  margin-top: 0;
}

.skill-category ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-category li {
  padding: 8px 0;
  border-bottom: 1px solid var(--grid-line);
  font-size: 13px;
  line-height: 1.6;
}

.skill-category li:last-child {
  border-bottom: none;
}

.skill-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-faint);
  border-radius: 4px;
  background: var(--surface);
}

.skill-badge .icon {
  width: 28px;
  height: 28px;
  flex: none;
  background: var(--surface-alt);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.skill-badge .icon .dot {
  background: var(--accent);
  border-radius: 50%;
}

.skill-badge .name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-headline);
}

.skill-badge .level {
  font-size: 9px;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-left: auto;
}

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

.cert-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border-faint);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cert-card:hover {
  border-color: var(--accent);
  box-shadow: 3px 3px 0 color-mix(in oklch, var(--accent) 40%, black), 0 6px 14px rgba(0,0,0,.5);
  transform: translateY(-2px);
}

.cert-card .cert-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-headline);
}

.cert-card .cert-meta {
  font-size: 11px;
  color: var(--text-muted);
}

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

/* ============================================================
   FORMS
   ============================================================ */
form {
  background: var(--surface);
  border: 1px solid var(--border-faint);
  padding: 32px;
  border-radius: 4px;
  margin-bottom: 32px;
  max-width: 600px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-headline);
  margin-bottom: 8px;
  display: block;
}

input,
textarea {
  background: var(--bg);
  border: 1px solid var(--border-faint);
  color: var(--text-body);
  padding: 10px 12px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  border-radius: 3px;
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(232, 163, 61, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  align-self: flex-start;
  margin-top: 12px;
}

/* ============================================================
   HUD-STYLE VIEWFINDER CORNERS (Avatar/Image box)
   ============================================================ */
.viewfinder-frame {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.viewfinder-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-faint);
  border-radius: 2px;
}

.viewfinder-frame .corner {
  position: absolute;
  width: 20px;
  height: 20px;
}

.viewfinder-frame .corner.tl {
  top: -8px;
  left: -8px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.viewfinder-frame .corner.tr {
  top: -8px;
  right: -8px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.viewfinder-frame .corner.bl {
  bottom: -8px;
  left: -8px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.viewfinder-frame .corner.br {
  bottom: -8px;
  right: -8px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.viewfinder-frame .reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.5;
}

/* ============================================================
   CONTACT LINKS & SOCIAL
   ============================================================ */
.contact-links {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border-faint);
}

.contact-links h2 {
  margin-bottom: 24px;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-faint);
  border-radius: 4px;
  color: var(--text-body);
  text-decoration: none;
  margin-right: 12px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  font-size: 18px;
}

.contact-icon:hover {
  background: var(--surface-alt);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   PROJECT GRID
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border-faint);
  padding: 32px 24px;
  text-align: center;
  margin-top: 80px;
  font-size: 12px;
  color: var(--text-muted);
}

footer p {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent-alt);
}

.footer-social {
  margin-bottom: 16px;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-faint);
  border-radius: 4px;
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 6px;
  transition: all 0.2s ease;
  font-size: 16px;
}

.footer-icon:hover {
  background: var(--surface-alt);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.bracket-frame {
  position: relative;
  border: 1px solid var(--border-accent);
}

.bracket-frame .corner {
  position: absolute;
  width: 14px;
  height: 14px;
}

.bracket-frame .corner.tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.bracket-frame .corner.tr {
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.bracket-frame .corner.bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.bracket-frame .corner.br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
/* ------------------------------------------------------------------
   EXPERIENCE TIMELINE
   Vertical line on the left with cards branching off to the right.
   ------------------------------------------------------------------ */
.timeline {
  position: relative;
  padding-left: 32px;
  margin-top: 32px;
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-accent);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Dot on the line */
.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  z-index: 1;
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border-faint);
  border-radius: 6px;
  padding: 24px 28px;
  transition: border-color 0.2s ease;
}

.timeline-card:hover {
  border-color: var(--accent);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.timeline-role {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-headline);
}

.timeline-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}

.timeline-company {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline-desc {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.7;
  width: 100%;
}

.timeline-desc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.timeline-desc ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  text-align: justify;
}

.timeline-desc ul li:last-child {
  margin-bottom: 0;
}

.timeline-desc ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 14px;
}

/* Mobile: tighten the timeline */
@media (max-width: 768px) {
  .timeline {
    padding-left: 24px;
  }
  .timeline-item::before {
    left: -24px;
    width: 12px;
    height: 12px;
  }
  .timeline::before {
    left: 5px;
  }
  .timeline-header {
    flex-direction: column;
    gap: 4px;
  }
}

.btn-pressable {
  box-shadow: 4px 4px 0 color-mix(in oklch, var(--accent) 40%, black), 0 8px 18px rgba(0,0,0,.5);
  transition: box-shadow .08s ease, transform .08s ease;
  cursor: pointer;
}

.btn-pressable:active {
  box-shadow: 1px 1px 0 color-mix(in oklch, var(--accent) 40%, black), 0 2px 6px rgba(0,0,0,.4);
  transform: translate(3px, 3px);
}
.blueprint-bg {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ===== Tablet and below ===== */
@media (max-width: 768px) {
  .headline {
    font-size: 30px;
  }

  .body-text {
    max-width: 100%;
  }

  nav {
    flex-direction: column;
    gap: 12px;
  }

  .nav-social {
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-grid .viewfinder-frame {
    justify-self: center;
    order: -1;
  }

  .hero-grid .cta-button {
    display: inline-block;
  }

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

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

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* ===== Phone ===== */
@media (max-width: 480px) {
  .headline {
    font-size: 24px;
  }

  .blueprint-bg {
    background-size: 28px 28px;
  }

  .bracket-frame {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  #lang-switcher {
    justify-content: center;
  }
}