/* ═══ NEUBRUTALIST TOKEN SYSTEM ═════════════════════════════════════
   ink    #101010  borders, text
   paper  #F2FAF9  page background (cyan-tinted, brand-linked)
   cyan   #53F2EF  primary accent (brand)
   yellow #FFD23F  secondary accent
   pink   #FF7AC6  sticker/tertiary
   card   #FFFFFF  surfaces
══════════════════════════════════════════════════════════════════ */
:root {
  --ink:    #101010;
  --paper:  #F2FAF9;
  --cyan:   #53F2EF;
  --yellow: #FFD23F;
  --pink:   #FF7AC6;
  --card:   #ffffff;
  --muted:  #4a4a4a;
  --border: 3px solid var(--ink);
  --shadow:      6px 6px 0 var(--ink);
  --shadow-lg:   10px 10px 0 var(--ink);
  --shadow-sm:   4px 4px 0 var(--ink);
  --nav-h: 68px;
  --t: 0.18s cubic-bezier(.34,1.56,.64,1);
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.mono { font-family: 'Space Mono', monospace; }

::selection { background: var(--cyan); color: var(--ink); }

/* ═══ UTILITY ═══ */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.section-dark  { background: var(--ink); color: var(--paper); }
.section-cyan  { background: var(--cyan); }
.section-yellow{ background: var(--yellow); }

.section-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 56px;
}
.title-invert { color: var(--paper); }

/* Highlight marks */
.hl-cyan, .hl-yellow, .hl-pink {
  padding: 0 0.15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hl-cyan   { background: var(--cyan); }
.hl-yellow { background: var(--yellow); }
.hl-pink   { background: var(--pink); }

/* Constraint tag — the OR signature */
.constraint-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--card);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 6px 14px;
  margin-bottom: 22px;
  transform: rotate(-1.5deg);
}
.constraint-tag-invert { background: var(--yellow); }

/* Brutal card base */
.brut-card {
  background: var(--card);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: 0;
  padding: 26px;
  transition: transform var(--t), box-shadow var(--t);
}
.card-cyan { background: var(--cyan); }
.card-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 3px 10px;
}

/* ═══ NAV ═══ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  background: var(--paper);
  border-bottom: var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.5rem;
}
.logo-box { color: var(--ink); background: var(--cyan); padding: 0 4px; margin-left: 2px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 3px solid transparent;
  transition: var(--t);
}
.nav-links a:hover:not(.nav-cta) {
  border-color: var(--ink);
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
  transform: translate(-2px, -2px);
}
.nav-links a.active:not(.nav-cta) { background: var(--cyan); border-color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--paper) !important;
  border: 3px solid var(--ink) !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--pink); color: var(--ink) !important; box-shadow: var(--shadow-sm); transform: translate(-2px,-2px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); transition: var(--t); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ═══ HERO ═══ */
#hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 70px) 24px 90px;
  display: flex; align-items: center;
  background-image:
    linear-gradient(var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  position: relative;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--paper);
  opacity: 0.94;
}
.hero-inner {
  position: relative;
  max-width: 1120px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: center;
}

.hero-eyebrow { font-size: 0.9rem; font-weight: 700; margin-bottom: 18px; color: var(--muted); }

.hero-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(3rem, 7.5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-inner { display: inline-block; }
.cursor-block { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* The objective function card — signature */
.objective-card {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: var(--border);
  box-shadow: 6px 6px 0 var(--cyan);
  padding: 16px 22px;
  margin-bottom: 34px;
  font-size: 0.9rem;
  line-height: 1.8;
}
.objective-card .kw { color: var(--cyan); font-weight: 700; }
.objective-card .indent { padding-left: 6.4em; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.btn {
  display: inline-block;
  font-weight: 700; font-size: 1rem;
  padding: 14px 28px;
  border: var(--border);
  box-shadow: var(--shadow);
  transition: var(--t);
  will-change: transform;
}
.btn-solid { background: var(--cyan); }
.btn-outline { background: var(--card); }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }

.hero-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.stat {
  background: var(--card);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 12px 20px;
}
.stat-num, .stat-plus {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.7rem;
}
.stat-label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* Hero photo & stickers */
.hero-photo-wrap { position: relative; justify-self: center; }
.hero-photo-frame {
  width: 340px; height: 420px;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-lg);
  background: var(--cyan);
  overflow: hidden;
}
.hero-photo-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.sticker {
  position: absolute;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 10px 16px;
  font-weight: 700;
  background: var(--yellow);
}
.sticker-company {
  bottom: 30px; left: -46px;
  transform: rotate(-4deg);
  display: flex; flex-direction: column; line-height: 1.3;
}
.sticker-company .mono { font-size: 0.68rem; text-transform: uppercase; }
.sticker-company strong { font-family: 'Archivo Black', sans-serif; font-size: 1.05rem; }
.sticker-status {
  top: -18px; left: -30px;
  background: var(--pink);
  transform: rotate(3deg);
  font-size: 0.85rem;
}

.hero-code-card {
  position: absolute;
  top: -30px; right: -44px;
  background: var(--ink); color: #cdd6f4;
  border: var(--border);
  box-shadow: 6px 6px 0 var(--pink);
  padding: 14px 18px;
  transform: rotate(2deg);
}
.code-dots { display: flex; gap: 5px; margin-bottom: 10px; }
.code-dots span { width: 9px; height: 9px; border: 2px solid var(--paper); }
.code-dots span:nth-child(1) { background: var(--pink); }
.code-dots span:nth-child(2) { background: var(--yellow); }
.code-dots span:nth-child(3) { background: var(--cyan); }
.hero-code-card pre { font-family: 'Space Mono', monospace; font-size: 0.72rem; line-height: 1.7; }
.c-kw { color: var(--pink); } .c-str { color: var(--cyan); } .c-bool { color: var(--yellow); }

/* ═══ MARQUEE ═══ */
.marquee-strip {
  border-top: var(--border);
  border-bottom: var(--border);
  background: var(--cyan);
  overflow: hidden;
  padding: 12px 0;
  white-space: nowrap;
}
.marquee-strip-alt { background: var(--ink); color: var(--paper); border-top: none; }
.marquee-track { display: inline-flex; }
.marquee-track span {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  padding-right: 8px;
}

/* ═══ ABOUT ═══ */
.about-grid { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.about-text strong { color: var(--ink); background: var(--yellow); padding: 0 4px; }
.about-links { display: flex; gap: 14px; margin-top: 28px; }
.chip-link {
  font-weight: 700;
  border: var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  padding: 8px 18px;
  transition: var(--t);
}
.chip-link:hover { background: var(--cyan); transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }

.about-aside .brut-card { margin-bottom: 20px; }
.edu-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.edu-list li { display: flex; gap: 12px; align-items: flex-start; }
.edu-year { font-size: 0.75rem; font-weight: 700; background: var(--cyan); border: 2px solid var(--ink); padding: 2px 6px; white-space: nowrap; }
.edu-list strong { font-size: 0.92rem; display: block; }
.edu-list p { font-size: 0.82rem; color: var(--muted); }
.card-cyan .edu-year { background: var(--card); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.8rem; font-weight: 700;
  padding: 5px 12px;
  background: var(--card);
  border: 2px solid var(--ink);
}

/* ═══ TIMELINE ═══ */
.timeline { position: relative; padding-left: 40px; }
.timeline-spine {
  position: absolute; left: 10px; top: 8px; bottom: 8px;
  width: 5px; background: var(--cyan);
  border: 2px solid var(--paper);
  transform-origin: top;
}
.timeline-item { position: relative; margin-bottom: 44px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute; left: -40px; top: 4px;
  width: 20px; height: 20px;
  background: var(--yellow);
  border: 3px solid var(--paper);
}
.tl-date-tab {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700;
  background: var(--pink);
  border: var(--border);
  padding: 4px 12px;
  margin-bottom: -3px;
  position: relative; z-index: 1;
  transform: rotate(-1deg);
}
.tl-card { box-shadow: 6px 6px 0 var(--cyan); color: var(--ink);}
.tl-card:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--cyan); }
.tl-header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tl-header h3 { font-size: 1.15rem; font-weight: 700; }
.tl-company {
  font-size: 0.8rem; font-weight: 700;
  background: var(--cyan); border: 2px solid var(--ink);
  padding: 2px 10px;
}
.tl-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 14px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tags span {
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 9px;
  background: var(--paper);
  border: 2px solid var(--ink);
}

/* ═══ PROJECTS ═══ */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-card { display: flex; flex-direction: column; gap: 12px; }
.project-card:hover { transform: translate(-4px,-4px); box-shadow: 10px 10px 0 var(--ink); }
.project-card.featured {
  grid-column: span 2;
  background: var(--cyan);
}
.project-top { display: flex; justify-content: space-between; align-items: center; }
.project-badge {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  padding: 3px 10px;
}
.project-gh { transition: var(--t); }
.project-gh:hover { transform: rotate(-8deg) scale(1.15); }
.project-card h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.project-card p { font-size: 0.9rem; color: var(--muted); flex: 1; }
.project-card.featured p { color: var(--ink); }
.project-card.featured .tl-tags span { background: var(--card); }

/* ═══ SKILLS ═══ */
.section-cyan .constraint-tag { transform: rotate(1.5deg); }
.skills-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 0.83rem; font-weight: 700;
  padding: 6px 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  transition: var(--t);
  cursor: default;
}
.pill:hover { background: var(--yellow); transform: translate(-2px,-2px); box-shadow: 3px 3px 0 var(--ink); }
.pill-hl { background: var(--pink); }

/* ═══ CERTS ═══ */
.certs-row { display: flex; flex-direction: column; gap: 18px; }
.cert-card { display: flex; align-items: center; gap: 20px; padding: 20px 26px; }
.cert-card:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--ink); }
.cert-icon {
  font-size: 1.6rem; flex-shrink: 0;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--yellow);
  border: var(--border);
}
.cert-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.cert-card p { font-size: 0.78rem; color: var(--muted); }

/* ═══ CONTACT ═══ */
.contact-container { text-align: center; }
.contact-container .section-title { margin-bottom: 18px; }
.contact-sub { font-size: 1.05rem; margin: 0 auto 48px; max-width: 520px; font-weight: 500; }
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; }
.contact-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.contact-card:hover { transform: translate(-4px,-4px); box-shadow: 10px 10px 0 var(--ink); background: var(--cyan); }
.cc-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; background: var(--ink); color: var(--paper); padding: 2px 8px; align-self: flex-start; }
.cc-value { font-size: 0.88rem; font-weight: 700; word-break: break-all; }

/* ═══ FOOTER ═══ */
footer { border-top: var(--border); padding: 30px 24px; background: var(--paper); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-logo { font-family: 'Archivo Black', sans-serif; font-size: 1.2rem; }
footer p { font-size: 0.8rem; }

/* ═══ REVEAL BASE STATE (GSAP takes over) ═══ */
.js [data-reveal] { opacity: 0; }
.js [data-hero], .js [data-sticker] { opacity: 0; }
.js .hero-title .line-inner { transform: translateY(110%); }

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-hero], .js [data-sticker] { opacity: 1 !important; }
  .js .hero-title .line-inner { transform: none !important; }
  .cursor-block { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .skills-layout { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 70px; }
  .hero-photo-wrap { order: -1; }
  .hero-photo-frame { width: 260px; height: 320px; }
  .hero-code-card { right: -10px; }
  .sticker-company { left: -14px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .projects-grid, .skills-layout, .contact-cards { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .objective-card { font-size: 0.78rem; padding: 14px 16px; }
  .objective-card .indent { padding-left: 2em; }
  .hero-stats { gap: 12px; }
  .stat { padding: 10px 14px; }
  .footer-inner { flex-direction: column; text-align: center; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--paper);
    border-bottom: var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 8px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { display: block; text-align: center; border-color: var(--ink); background: var(--card); }
  .nav-cta { margin-left: 0; }
}