/* PESIDZE — brutalist b&w portfolio */
:root {
  --ink: #0a0a0a;
  --paper: #f4f1ea;
  --paper-2: #ebe7dc;
  --line: #0a0a0a;
  --muted: #6b6760;
  --display: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body { cursor: none; overflow-x: hidden; }

a, a:link, a:visited, a:hover, a:active, a:focus { color: inherit; text-decoration: none; }
a * { color: inherit; }
input, textarea, select { color: var(--ink); font-family: inherit; }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--paper) inset; -webkit-text-fill-color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
img, svg { display: block; max-width: 100%; }

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

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.display { font-family: var(--display); line-height: 0.85; letter-spacing: -0.02em; text-transform: uppercase; }
.body { font-family: var(--body); }

/* ───── nav ───── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 28px;
  z-index: 100;
  mix-blend-mode: difference;
  color: var(--paper);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav .brand { font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; }
.nav ul {
  display: flex; gap: 28px; list-style: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  justify-self: center;
}
.nav ul a { position: relative; padding: 4px 0; }
.nav ul a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; }
.nav ul a:hover { opacity: 0.6; }
.nav .lang {
  display: flex; gap: 2px; justify-self: end;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.nav .lang button { padding: 4px 8px; border: 1px solid currentColor; }
.nav .lang button.on { background: currentColor; color: var(--ink); }

/* ───── burger button ───── */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: space-between;
  width: 28px; height: 18px;
  background: none; border: none; padding: 0;
  justify-self: end; cursor: none;
}
.nav-burger span {
  display: block; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s, top .3s;
  transform-origin: center;
}

/* ───── mobile nav overlay ───── */
.nav-mobile {
  position: fixed; inset: 0; z-index: 98;
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  padding: 96px 28px 48px;
  opacity: 0; pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .35s cubic-bezier(.2,.8,.2,1), transform .35s cubic-bezier(.2,.8,.2,1);
}
.nav-mobile.open { opacity: 1; pointer-events: auto; transform: none; }
.nav-mobile nav-list { list-style: none; }
.nav-mobile .mob-links { list-style: none; flex: 1; display: flex; flex-direction: column; }
.nav-mobile .mob-links li { border-bottom: 1px solid var(--ink); }
.nav-mobile .mob-links a {
  display: block; padding: 18px 0;
  font-family: var(--display); font-size: clamp(32px, 9vw, 56px);
  text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.9;
}
.nav-mobile .mob-links a:hover { opacity: 0.5; }
.nav-mobile .mob-lang-row {
  display: flex; gap: 8px; margin-top: 36px;
}
.nav-mobile .mob-lang-row button {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 20px; border: 1px solid var(--ink); background: none; color: var(--ink); cursor: none;
}
.nav-mobile .mob-lang-row button.on { background: var(--ink); color: var(--paper); }

@media (max-width: 700px) {
  .nav { mix-blend-mode: normal; background: var(--paper); color: var(--ink); grid-template-columns: 1fr auto; }
  .nav ul { display: none; }
  .nav .lang { display: none; }
  .nav-burger { display: flex; justify-self: end; }
}
@media (min-width: 701px) {
  .nav-mobile { display: none !important; }
}

/* ───── custom cursor ───── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 14px; height: 14px;
  background: #fff;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s cubic-bezier(.2,.8,.2,1), height .25s cubic-bezier(.2,.8,.2,1), border-radius .25s, background .15s;
  mix-blend-mode: difference;
}
.cursor.hover { width: 56px; height: 56px; }
.cursor.text { width: 2px; height: 22px; }
.cursor-label {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--paper); background: var(--ink);
  padding: 4px 8px;
  transform: translate(20px, 20px);
  opacity: 0; transition: opacity .15s;
  white-space: nowrap;
}
.cursor-label.show { opacity: 1; }

/* ───── marquee ───── */
.marquee {
  border-block: 1px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
  background: var(--paper);
}
.marquee-track {
  display: inline-flex; gap: 48px;
  animation: marquee 40s linear infinite;
  padding: 18px 0;
  font-family: var(--display); font-size: 28px; text-transform: uppercase; letter-spacing: -0.01em;
}
.marquee-track > span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track .dot { width: 10px; height: 10px; background: var(--ink); border-radius: 50%; display: inline-block; }
.marquee.invert { background: var(--ink); color: var(--paper); }
.marquee.invert .dot { background: var(--paper); }
.marquee.reverse .marquee-track { animation-direction: reverse; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ───── footer ───── */
.footer {
  border-top: 1px solid var(--ink);
  padding: 60px 28px 28px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; color: var(--muted); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer ul a:hover { text-decoration: underline; }
.footer .colossal {
  grid-column: 1 / -1;
  font-family: var(--display); font-size: clamp(80px, 18vw, 280px);
  line-height: 0.82; letter-spacing: -0.04em; text-transform: uppercase;
  margin-top: 60px;
  display: flex; justify-content: space-between; align-items: end;
}
.footer .colossal .avail {
  font-size: 0.13em; line-height: 1.25;
  font-family: var(--mono); letter-spacing: 0.1em;
  color: var(--muted); max-width: 36ch; text-align: right;
}
.footer .legalbar {
  grid-column: 1 / -1;
  border-top: 1px solid var(--ink);
  margin-top: 28px; padding-top: 16px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}

/* ───── reveal ───── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.char-reveal { display: inline-block; vertical-align: bottom; }
.char-reveal > span { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.char-reveal.in > span { opacity: 1; transform: none; }

/* ───── shared layout ───── */
.page { padding-top: 80px; min-height: 100vh; }
.container { padding-inline: 28px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.divider { height: 1px; background: var(--ink); width: 100%; }

/* ───── buttons ───── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--ink); padding: 18px 28px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--paper); color: var(--ink);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.invert { background: var(--ink); color: var(--paper); }
.btn.invert:hover { background: var(--paper); color: var(--ink); }
.btn .arrow { display: inline-block; transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* utility */
.hide { display: none !important; }
.flex { display: flex; }
.grid { display: grid; }

@media (max-width: 800px) {
  .nav ul { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer .colossal { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer .colossal .avail { text-align: left; max-width: 100%; }
  body { cursor: auto; }
  .cursor, .cursor-label { display: none; }
}
