@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;900&family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@300;400;500&display=swap');

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --bg: #000000;
  --fg: #ffffff;
  --accent: #6366f1;
  --hairline: rgba(255, 255, 255, 0.15);
  --muted: rgba(255, 255, 255, 0.4);
  --font-head: 'Inter Tight', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;
  --nav-h: 72px;
  --transition: 300ms ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section { scroll-margin-top: var(--nav-h); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Noise Grain Overlay ────────────────────────────────── */
body::before {
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 9999;
}

/* ── Hairline Utilities ─────────────────────────────────── */
.hl-b { border-bottom: 0.5px solid var(--hairline); }
.hl-t { border-top: 0.5px solid var(--hairline); }
.hl-r { border-right: 0.5px solid var(--hairline); }
.hl-l { border-left: 0.5px solid var(--hairline); }
.hl-all { border: 0.5px solid var(--hairline); }

/* ── Mono Text Utility ──────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 9px;
}

/* ── PAGE LOADER (hidden instantly) ─────────────────────── */
#loader { display: none !important; }

/* ── NAVIGATION ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  border-bottom: 0.5px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), opacity 400ms ease;
}

/* ── SVG Glass filter variant (Chromium) ── */
nav.glass-svg {
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: url(#glass-nav-filter) saturate(1.3) brightness(1.05);
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.12) inset,
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 4px 24px rgba(0,0,0,0.4),
    0 1px 6px rgba(0,0,0,0.3);
}

/* ── Fallback glass (Safari / Firefox / no SVG filter) ── */
nav.glass-fallback {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px) saturate(1.8) brightness(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.8) brightness(1.1);
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.1) inset,
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 4px 24px rgba(0,0,0,0.4);
}

nav.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
}
.nav-dot {
  width: 6px; height: 6px;
  background: var(--fg);
  border-radius: 50%;
}
.nav-version {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0.5px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
.nav-icon svg { width: 16px; height: 16px; }
.nav-icon:hover { border-color: var(--fg); background: rgba(255,255,255,0.05); }
.btn-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  border: 0.5px solid var(--fg);
}
.btn-pill:hover { background: var(--accent); border-color: var(--accent); color: var(--fg); }

/* ── HERO GRID ──────────────────────────────────────────── */
#hero {
  height: 100vh;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero-cell {
  border: 0.5px solid var(--hairline);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem 2rem;
  overflow: hidden;
  position: relative;
}
.hero-cell:nth-child(1) { align-items: flex-end; justify-content: flex-start; border-top: none; border-left: none; }
.hero-cell:nth-child(2) { align-items: flex-start; justify-content: flex-end; border-top: none; border-right: none; }
.hero-cell:nth-child(3) { align-items: flex-end; justify-content: flex-start; border-bottom: none; border-left: none; }
.hero-cell:nth-child(4) { align-items: flex-start; justify-content: flex-end; border-bottom: none; border-right: none; }
.hero-seg {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(5rem, 16vw, 22vw);
  line-height: 0.85;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: var(--fg);
  user-select: none;
  position: relative;
  z-index: 1;
}
.hero-cell:nth-child(2) .hero-seg,
.hero-cell:nth-child(4) .hero-seg { text-align: right; }

.hero-meta {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.hero-meta span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.4em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── HERO PORTRAIT ──────────────────────────────────────── */
.hero-portrait {
  position: absolute;
  top: calc(50% + 2.5rem);
  left: 50%;
  transform: translate(-50%, -50%);
  height: 90%;
  width: auto;
  max-width: 90vw;
  max-height: 80vh;
  z-index: 5;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-portrait img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.75));
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
@media (max-width: 900px) {
  .hero-portrait {
    height: 80%;
    max-height: 65vh;
    top: calc(52% + 1rem);
  }
}

/* ── COMMAND BAR ────────────────────────────────────────── */
#command-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  border-top: 0.5px solid var(--hairline);
  border-bottom: 0.5px solid var(--hairline);
  min-height: 80px;
}
.cmd-cell {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  border-right: 0.5px solid var(--hairline);
}
.cmd-cell:last-child { border-right: none; }
.cmd-cell input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  width: 100%;
}
.cmd-cell input::placeholder { color: var(--muted); }
.btn-join {
  width: 100%;
  padding: 14px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-join:hover { background: var(--accent); color: var(--fg); }
#countdown {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}
#countdown .sep { opacity: 0.2; }
.cmd-labels { flex-direction: column; align-items: flex-start; gap: 6px; display: flex; }
.cmd-labels span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.4em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── SECTION HEADER ─────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 0.5px solid var(--hairline);
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--muted);
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 6rem);
  letter-spacing: -0.06em;
  text-transform: uppercase;
  line-height: 1;
}

/* ── BENTO FEATURE GRID ─────────────────────────────────── */
#features {
  border-bottom: 0.5px solid var(--hairline);
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.bento-card {
  padding: 2.5rem 2rem;
  border-right: 0.5px solid var(--hairline);
  border-bottom: 0.5px solid var(--hairline);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}
.bento-card:nth-child(3n) { border-right: none; }
.bento-card:hover { background: rgba(255, 255, 255, 0.02); }
.bento-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.4em;
  color: var(--muted);
  text-transform: uppercase;
}
.bento-photo {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 0;
}
.bento-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  transition: opacity var(--transition), transform 600ms ease;
  display: block;
}
.bento-card:hover .bento-photo img {
  opacity: 0.55;
  transform: scale(1.05);
}
/* Keep bento content above photo */
.bento-tag { position: relative; z-index: 2; }
.bento-bottom { position: relative; z-index: 2; }
.bento-bottom {}
.bento-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 8px;
}
.bento-sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

/* ── GEOMETRIC CARD ─────────────────────────────────────── */
.geo-card {
  width: 100px; height: 100px;
  border: 0.5px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: border-color var(--transition);
  opacity: 0.55;
}
.geo-inner {
  width: 62px; height: 62px;
  border: 0.5px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1), border-color 300ms ease;
}
.bento-card:hover .geo-inner { transform: rotate(90deg); border-color: var(--accent); }
.bento-card:hover .geo-card { border-color: rgba(99, 102, 241, 0.4); opacity: 1; }

/* ── PROJECTS SECTION ───────────────────────────────────── */
#projects {}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.project-card {
  padding: 2.5rem 2rem;
  border-right: 0.5px solid var(--hairline);
  border-bottom: 0.5px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: background var(--transition);
  text-decoration: none;
  color: var(--fg);
}
.project-card:nth-child(2n) { border-right: none; }
.project-card:hover { background: rgba(255,255,255,0.02); }
.project-num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--muted);
  text-transform: uppercase;
}
.project-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 1;
}
.project-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 40ch;
}
.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  border: 0.5px solid var(--hairline);
  padding: 4px 10px;
}
.project-arrow {
  font-size: 1.5rem;
  transition: transform var(--transition), color var(--transition);
}
.project-card:hover .project-arrow { transform: translate(4px, -4px); color: var(--accent); }

/* ── SKILLS / ABOUT SPLIT ───────────────────────────────── */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 0.5px solid var(--hairline);
  min-height: 60vh;
}
.about-left {
  padding: 4rem 2rem;
  border-right: 0.5px solid var(--hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.about-headline {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 5rem);
  letter-spacing: -0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  max-width: 12ch;
}
.about-bio {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  max-width: 55ch;
  margin-top: 2rem;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 3rem;
  border-top: 0.5px solid var(--hairline);
}
.stat-item {
  padding: 1.5rem 0;
  border-right: 0.5px solid var(--hairline);
  border-bottom: 0.5px solid var(--hairline);
  padding-right: 1.5rem;
}
.stat-item:nth-child(2n) { border-right: none; padding-left: 1.5rem; padding-right: 0; }
.stat-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 3rem;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--accent);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.4em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.about-right {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.skills-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  border-bottom: 0.5px solid var(--hairline);
  transition: color var(--transition);
}
.skill-row:hover { color: var(--accent); }
.skill-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.skill-level {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── EXPERIENCE ─────────────────────────────────────────── */
#experience { border-bottom: 0.5px solid var(--hairline); }
.exp-list {}
.exp-row {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  align-items: start;
  padding: 2.5rem 2rem;
  border-bottom: 0.5px solid var(--hairline);
  gap: 2rem;
  transition: background var(--transition);
}
.exp-row:last-child { border-bottom: none; }
.exp-row:hover { background: rgba(255,255,255,0.02); }
.exp-date {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  padding-top: 6px;
}
.exp-content {}
.exp-role {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.2rem, 2vw, 2rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 6px;
}
.exp-org {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.35em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.exp-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 60ch;
}
.exp-tag-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.exp-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  border: 0.5px solid var(--hairline);
  padding: 4px 10px;
}

/* ── CONTACT ────────────────────────────────────────────── */
#contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
  border-bottom: 0.5px solid var(--hairline);
}
.contact-left {
  padding: 4rem 2rem;
  border-right: 0.5px solid var(--hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-headline {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 10rem);
  letter-spacing: -0.06em;
  text-transform: uppercase;
  line-height: 0.9;
}
.contact-right {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-form { display: flex; flex-direction: column; gap: 0; }
.form-field {
  border-bottom: 0.5px solid var(--hairline);
  padding: 1.5rem 0;
}
.form-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.4em;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.form-input,
.form-textarea {
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
  resize: none;
}
.form-textarea { min-height: 80px; }
.btn-send {
  margin-top: 2rem;
  padding: 1.2rem 2rem;
  background: transparent;
  border: 0.5px solid var(--hairline);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-send:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-top: 0.5px solid var(--hairline);
}
.footer-left, .footer-right {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.footer-link {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--fg); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
}

/* ── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; grid-template-rows: repeat(4, 1fr); }
  .hero-cell:nth-child(2) .hero-seg,
  .hero-cell:nth-child(4) .hero-seg { text-align: left; }
  .hero-portrait { height: 80%; max-height: 65vh; top: calc(52% + 1rem); }
  #command-bar { grid-template-columns: 1fr 1fr; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card:nth-child(2n) { border-right: none; }
  .bento-card:nth-child(3n) { border-right: 0.5px solid var(--hairline); }
  .bento-card:nth-child(3n):nth-child(2n) { border-right: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(2n) { border-right: 0; }
  #about { grid-template-columns: 1fr; }
  .about-left { border-right: none; border-bottom: 0.5px solid var(--hairline); }
  .exp-row { grid-template-columns: 1fr; }
  .exp-tag-stack { align-items: flex-start; }
  #contact { grid-template-columns: 1fr; }
  .contact-left { border-right: none; border-bottom: 0.5px solid var(--hairline); }
}

@media (max-width: 600px) {
  /* Nav */
  nav { padding: 0 1rem; gap: 8px; }
  .nav-version { display: none; }
  .nav-dot { display: none; }
  .nav-brand-name { font-size: 12px; }
  .nav-right { gap: 6px; }
  .nav-icon { display: none; }
  .btn-pill { padding: 6px 12px; font-size: 8px; letter-spacing: 0.15em; }

  /* Hero — keep 2×2 grid on mobile so portrait covers all 4 quadrants */
  #hero {
    height: 100svh;
    min-height: 100svh;
    padding-top: var(--nav-h);
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    overflow: hidden;
  }
  .hero-cell:nth-child(2) .hero-seg,
  .hero-cell:nth-child(4) .hero-seg { text-align: right; }
  .hero-seg { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-cell { padding: 0.75rem; }
  .hero-portrait {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: calc(100svh - var(--nav-h));
    width: auto;
    max-width: 100vw;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-portrait img {
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: center;
  }
  .hero-meta span { font-size: 7px; letter-spacing: 0.2em; }

  /* Command bar */
  #command-bar { grid-template-columns: 1fr; }
  .cmd-cell { padding: 1rem; }
  #countdown { font-size: 18px; }

  /* Bento */
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card { border-right: none !important; min-height: 280px; padding: 1.5rem 1rem; }
  .bento-title { font-size: 20px; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { padding: 1.5rem 1rem; }
  .project-title { font-size: clamp(1.2rem, 6vw, 2rem); }

  /* Gallery section */
  #gallery-section { height: 60vh; }

  /* About */
  #about { grid-template-columns: 1fr; }
  .about-left, .about-right { padding: 2rem 1rem; }
  .about-headline { font-size: clamp(1.8rem, 8vw, 3rem); line-height: 1.15; }
  .about-bio { font-size: 14px; }
  .stat-num { font-size: 2rem; }
  .skill-name { font-size: clamp(1rem, 5vw, 1.5rem); }

  /* Experience & Education */
  .exp-row { grid-template-columns: 1fr; padding: 1.5rem 1rem; gap: 0.75rem; }
  .exp-role { font-size: clamp(1rem, 5vw, 1.5rem); }
  .exp-tag-stack { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 6px; }

  /* Contact */
  #contact { grid-template-columns: 1fr; }
  .contact-left, .contact-right { padding: 2rem 1rem; }
  .contact-headline { font-size: clamp(2.5rem, 14vw, 5rem); line-height: 1.05; }
  .btn-send { padding: 1rem 1.5rem; font-size: 10px; }

  /* Footer */
  footer { flex-direction: column; gap: 1rem; align-items: flex-start; padding: 1.5rem 1rem; }
  .footer-right { flex-wrap: wrap; gap: 1rem; }

  /* Section headers */
  .section-header { padding: 1rem; }
}
