/* ---------- Reset & tokens ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-family: 'Space Grotesk', sans-serif; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:root {
  --bg: #F5F0E6;
  --ink: #111111;
  --pink: #FF4D8D;
  --yellow: #FFDD33;
  --blue: #4D6BFF;
  --white: #FFFFFF;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --border: 3px solid var(--ink);
  --maxw: 1180px;
}

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink); color: var(--yellow); overflow: hidden; white-space: nowrap;
  border-bottom: var(--border); position: relative; z-index: 40;
}
.marquee--bottom { border-bottom: none; border-top: var(--border); }
.marquee__track {
  display: inline-flex; gap: 18px; padding: 9px 0; animation: marquee 22s linear infinite;
  font-family: 'Space Mono', monospace; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
}
.marquee__track span { padding: 0 6px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 39; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; background: var(--bg); border-bottom: var(--border);
}
.nav__brand {
  font-family: 'Archivo Black', sans-serif; font-size: 22px; letter-spacing: -0.02em;
}
.nav__brand span { color: var(--pink); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px; padding: 9px 14px;
  border-radius: 999px; transition: background .15s ease, transform .15s ease;
}
.nav__links a:hover { background: rgba(0,0,0,0.06); }
.nav__links a.active { background: var(--ink); color: var(--bg); }
.nav__cta {
  background: var(--pink); color: var(--ink) !important; border: var(--border);
  box-shadow: 3px 3px 0 var(--ink); margin-left: 8px;
}
.nav__cta:hover { background: var(--yellow); transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 5px; font-family: 'Space Mono', monospace;
  font-weight: 700; font-size: 12.5px; padding: 8px 12px; border: 2px solid var(--ink); background: var(--white);
  cursor: pointer; margin-left: 8px;
}
.lang-toggle__sep { color: #999; }
.lang-toggle__opt { opacity: 0.35; transition: opacity .15s ease; }
.lang-toggle__opt.is-active { opacity: 1; }
.lang-toggle[data-current="pt"] .lang-toggle__opt[data-lang="pt"] { opacity: 1; }
.lang-toggle[data-current="en"] .lang-toggle__opt[data-lang="en"] { opacity: 1; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 3px; background: var(--ink); }

/* ---------- Buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14.5px;
  letter-spacing: 0.02em; border: var(--border); box-shadow: var(--shadow); background: var(--white);
  transition: transform .15s ease, box-shadow .15s ease; cursor: pointer;
}
.btn:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--yellow { background: var(--yellow); }
.btn--outline { background: var(--bg); }

.tag {
  font-family: 'Space Mono', monospace; font-size: 11.5px; font-weight: 700; padding: 6px 12px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--white);
}
.tag--pink { background: var(--pink); }
.tag--yellow { background: var(--yellow); }
.tag--blue { background: var(--blue); color: var(--white); }

.icon-box {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: var(--border); background: var(--white); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.icon-box:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); background: var(--yellow); }

/* ---------- Hero ---------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 56px 32px 80px; position: relative; }
.hero__badge { position: absolute; top: 40px; right: 32px; width: 100px; height: 100px; }
.hero__badge-spin { width: 100%; height: 100%; animation: spin 14s linear infinite; fill: var(--ink); }
.hero__badge-dot {
  position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: var(--pink); border: 2px solid var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__title { font-family: 'Archivo Black', sans-serif; line-height: 0.86; letter-spacing: -0.02em; margin-bottom: 48px; }
.hero__title .line { display: block; font-size: clamp(2.6rem, 8.4vw, 6.4rem); }
.hero__title .line--outline { color: transparent; -webkit-text-stroke: 2.5px var(--ink); }

.hero__row { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.hero__photo {
  position: relative; border: var(--border); box-shadow: var(--shadow-lg); transform: rotate(-3deg);
  background: var(--white); padding: 10px 10px 34px;
}
.hero__photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; filter: grayscale(0.15) contrast(1.05); }
.hero__photo-tag {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font-family: 'Space Mono', monospace;
  font-size: 12px; font-weight: 700;
}
.hero__info { padding-top: 10px; }
.hero__tagline { font-size: clamp(1.15rem, 2.4vw, 1.55rem); font-weight: 500; line-height: 1.4; margin-bottom: 26px; max-width: 640px; }
.hero__tagline mark { background: var(--yellow); padding: 0 6px; font-weight: 700; }
.hero__tagline strong { font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--pink); }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__socials { display: flex; gap: 10px; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(6, 1fr); border-top: var(--border); border-bottom: var(--border);
}
.stat {
  padding: 26px 16px; text-align: center; border-right: var(--border); display: flex; flex-direction: column; gap: 6px;
}
.stat:last-child { border-right: none; }
.stat strong { font-family: 'Archivo Black', sans-serif; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.stat span { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.stat--yellow { background: var(--yellow); }
.stat--pink { background: var(--pink); }
.stat--blue { background: var(--blue); color: var(--white); }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 90px 32px; }
.section--ink { max-width: none; background: var(--ink); color: var(--bg); }
.section--ink > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { margin-bottom: 44px; }
.kicker {
  display: inline-block; font-family: 'Space Mono', monospace; font-size: 12.5px; font-weight: 700;
  padding: 6px 12px; border: 2px solid var(--ink); margin-bottom: 16px; background: var(--white);
}
.kicker--light { border-color: var(--bg); background: var(--ink); color: var(--yellow); }
.section h2 {
  font-family: 'Archivo Black', sans-serif; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 0.98; letter-spacing: -0.01em;
}
.h2--light { color: var(--bg); }

/* ---------- Bento project grid ---------- */
.track-label {
  display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 1rem; margin: 40px 0 18px;
}
.track-label:first-of-type { margin-top: 0; }
.chip {
  font-family: 'Space Mono', monospace; font-size: 11.5px; font-weight: 700; padding: 6px 12px;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.chip--pink { background: var(--pink); }
.chip--yellow { background: var(--yellow); }
.chip--blue { background: var(--blue); color: var(--white); }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bento--games { grid-template-columns: repeat(4, 1fr); }
.bcard {
  grid-column: span 4; border: var(--border); box-shadow: var(--shadow); background: var(--white);
  overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column;
}
.bento--games .bcard { grid-column: span 2; }
.bcard--wide { grid-column: span 4; }
.bcard--half { grid-column: span 2; }
.bcard:hover { transform: translate(-4px,-4px); box-shadow: 12px 12px 0 var(--ink); }
.bcard--pink .bcard__client { background: var(--pink); }
.bcard--yellow .bcard__client { background: var(--yellow); }
.bcard--blue .bcard__client { background: var(--blue); color: var(--white); }

.bcard__media { border-bottom: var(--border); height: 220px; overflow: hidden; background: #eee; }
.bcard--wide .bcard__media { height: 300px; }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.icon-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 100%; text-align: center; padding: 0 20px;
}
.icon-tile--edu { background: #1E9E6B; }
.icon-tile__emoji { font-size: 56px; }
.icon-tile__word { font-family: 'Archivo Black', sans-serif; font-size: 22px; letter-spacing: 0.02em; color: var(--white); }
.bcard__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bcard__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.bcard__client {
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11px; padding: 4px 10px;
  border: 2px solid var(--ink);
}
.bcard__metric { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11px; }
.bcard h3 { font-size: 1.25rem; font-weight: 700; }
.bcard p { font-size: 0.92rem; line-height: 1.55; color: #333; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tags span { font-family: 'Space Mono', monospace; font-size: 10.5px; font-weight: 700; padding: 4px 9px; border: 2px solid var(--ink); background: var(--bg); }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; border-top: 2px solid var(--ink); padding-top: 12px; }
.platforms span, .platforms a { font-size: 12px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.platforms a { text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 2px; }
.platforms a:hover { color: var(--pink); }
.platforms span::after, .platforms a::after { content: " ·"; color: #999; text-decoration: none; display: inline-block; }
.platforms span:last-child::after, .platforms a:last-child::after { content: ""; }

.btn-details {
  align-self: flex-start; margin-top: 4px; font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.02em; background: none; border: none; border-bottom: 2px solid var(--ink); padding: 2px 0;
  cursor: pointer; color: var(--ink);
}
.btn-details:hover { color: var(--pink); border-color: var(--pink); }

/* ---------- Resume tickets ---------- */
.tickets { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.ticket {
  background: var(--bg); color: var(--ink); border: 3px solid var(--bg); box-shadow: 8px 8px 0 var(--yellow);
  padding: 26px; position: relative;
}
.ticket__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 2px dashed var(--ink); padding-bottom: 12px; }
.ticket__title { display: flex; flex-direction: column; gap: 6px; }
.ticket__company { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; }
.ticket__head h3 { font-size: 1.1rem; }
.ticket__date { font-family: 'Space Mono', monospace; font-size: 11.5px; font-weight: 700; background: var(--pink); padding: 3px 9px; white-space: nowrap; }
.ticket ul { display: flex; flex-direction: column; gap: 9px; }
.ticket li { font-size: 0.92rem; line-height: 1.5; padding-left: 20px; position: relative; }
.ticket li::before { content: "▸"; position: absolute; left: 0; color: var(--pink); font-weight: 700; }

.edu-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.edu-chip {
  background: var(--bg); border: 2px solid var(--bg); box-shadow: 4px 4px 0 var(--blue); padding: 12px 16px;
  display: flex; flex-direction: column; gap: 2px; min-width: 160px;
}
.edu-chip strong { font-size: 0.88rem; color: var(--ink); }
.edu-chip span { font-family: 'Space Mono', monospace; font-size: 10.5px; color: #444; }

/* ---------- Skills stickers ---------- */
.sticker-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.sticker-group h4 {
  font-family: 'Space Mono', monospace; font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  margin-bottom: 16px; letter-spacing: 0.04em;
}
.stickers { display: flex; flex-wrap: wrap; gap: 10px; }
.sticker {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; padding: 8px 14px;
  border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); background: var(--white);
  transition: transform .15s ease;
}
.sticker:hover { transform: rotate(-4deg) scale(1.05); }
.sticker--pink { background: var(--pink); }
.sticker--yellow { background: var(--yellow); }
.sticker--blue { background: var(--blue); color: var(--white); }
.sticker-group:nth-child(odd) .sticker:nth-child(2n) { transform: rotate(-3deg); }
.sticker-group:nth-child(even) .sticker:nth-child(2n+1) { transform: rotate(3deg); }

/* ---------- About / languages ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lang-card { background: var(--bg); color: var(--ink); border: 3px solid var(--bg); box-shadow: 8px 8px 0 var(--pink); padding: 26px; }
.lang-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 2px dashed rgba(0,0,0,0.15); }
.lang-row:last-child { border-bottom: none; }
.flag { font-size: 1.6rem; }
.flag--big { font-size: 3rem; }
.lang-name { font-weight: 700; flex: 1; }
.lang-pill { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; padding: 4px 10px; border: 2px solid var(--ink); }
.lang-pill--full { background: var(--yellow); }
.lang-pill--mid { background: var(--blue); color: var(--white); }
.lang-card--citizenship { display: flex; gap: 18px; align-items: center; box-shadow: 8px 8px 0 var(--blue); }
.lang-card--citizenship strong { display: block; margin-bottom: 8px; font-size: 1.05rem; }
.lang-card--citizenship p { font-size: 0.92rem; line-height: 1.5; color: #333; }

/* ---------- Contact ---------- */
.contact { padding-top: 70px; padding-bottom: 90px; }
.contact__box { background: var(--yellow); border: var(--border); box-shadow: var(--shadow-lg); padding: 56px 40px; text-align: center; }
.contact__box h2 { font-family: 'Archivo Black', sans-serif; font-size: clamp(2rem, 5.6vw, 3.6rem); line-height: 1; margin-bottom: 18px; }
.contact__highlight { -webkit-text-stroke: 2px var(--ink); color: var(--yellow); }
.contact__box > p { font-size: 1.1rem; font-weight: 500; margin-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  display: flex; align-items: center; gap: 14px; padding: 20px; border: var(--border); background: var(--white);
  box-shadow: 5px 5px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease; text-align: left;
}
.contact-card:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--ink); }
.contact-card strong { display: block; font-size: 0.98rem; margin-bottom: 3px; }
.contact-card span { font-size: 0.82rem; color: #444; word-break: break-word; }
.contact-card--yellow svg { color: var(--pink); }
.contact-card--pink svg { color: var(--blue); }
.contact-card--blue svg { color: var(--ink); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(17,17,17,0.7); }
.modal__box {
  position: relative; background: var(--bg); border: var(--border); box-shadow: var(--shadow-lg);
  max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 36px 32px 32px;
  transform: translateY(16px) scale(0.98); transition: transform .2s ease;
}
.modal.is-open .modal__box { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 2px solid var(--ink);
  background: var(--white); font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
}
.modal__close:hover { background: var(--pink); }
.modal__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.modal__client { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11.5px; padding: 4px 10px; border: 2px solid var(--ink); }
.modal__metric { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11.5px; background: var(--yellow); padding: 4px 10px; border: 2px solid var(--ink); }
.modal__box h3 { font-family: 'Archivo Black', sans-serif; font-size: 1.5rem; margin-bottom: 20px; padding-right: 30px; }
.modal__bullets { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.modal__bullets li { font-size: 0.95rem; line-height: 1.55; padding-left: 22px; position: relative; }
.modal__bullets li::before { content: "▸"; position: absolute; left: 0; color: var(--pink); font-weight: 700; }
.modal__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.modal__tags span { font-family: 'Space Mono', monospace; font-size: 10.5px; font-weight: 700; padding: 4px 9px; border: 2px solid var(--ink); background: var(--white); }
.modal__links { display: flex; flex-wrap: wrap; gap: 12px; }
.modal__links a {
  display: inline-flex; align-items: center; gap: 6px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px;
  padding: 10px 16px; border: var(--border); background: var(--yellow); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease;
}
.modal__links a:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .bento, .bento--games { grid-template-columns: repeat(2, 1fr); }
  .bcard, .bcard--wide, .bcard--half, .bento--games .bcard { grid-column: span 2; }
  .sticker-board { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3n) { border-right: none; }
  .stat:nth-child(n+4) { border-top: var(--border); }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; top: 96px; left: 16px; right: 16px; background: var(--bg); border: var(--border);
    box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 4px; padding: 14px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 45;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 14px; }
  .nav__cta { margin-left: 0; text-align: center; }
  .nav__toggle { display: flex; }
  .hero__row { grid-template-columns: 1fr; }
  .hero__photo { width: 200px; margin: 0 auto; }
  .hero__badge { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: none; }
  .stat { border-bottom: var(--border); }
  .bento, .bento--games { grid-template-columns: 1fr; }
  .bcard, .bcard--wide, .bcard--half, .bento--games .bcard { grid-column: span 1; }
  .tickets { grid-template-columns: 1fr; }
  .sticker-board { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 20px; }
  .hero { padding: 40px 20px 60px; }
}
