/* NEWONE WORK — estilos do site
   Edite as variáveis abaixo para mudar cores, fontes e espaçamentos no site todo. */
:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #6b6b6d;
  --light-bg: #f7f7f7;
  --btn-bg: #000000;
  --btn-fg: #ffffff;
  --font: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 4vw;
  --max: 1500px;
  --gap: 11px;
  --h1: 3.9rem;
  --h2: 2.8rem;
  --h3: 1.8rem;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}
body.theme-dark { --bg: #000; --fg: #fff; --muted: #a0a0a3; --btn-bg: #fff; --btn-fg: #000; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 1rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: #1a1a1a; color: #fff; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.04em; line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0 0 1em; }
.text p, .split-body p { font-size: 1.1rem; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--fg); color: var(--bg); padding: .5rem 1rem; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 2.2vw var(--gutter); background: var(--bg);
}
.logo { position: relative; z-index: 60; }
.logo img { width: 32px; height: 32px; }
body.theme-dark .logo img { filter: invert(1); }
.nav { display: flex; gap: 1.4rem; }
.nav a {
  font-size: .82rem; letter-spacing: .02em; text-transform: uppercase;
  padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 1px; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--fg); }
.burger span { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.burger span + span { margin-top: 6px; }

/* Home */
.intro { padding: 6vw 0 4vw; }
.intro h1 { max-width: 14ch; margin: 0; }
.intro--small h1 { font-size: 1.25rem; letter-spacing: 0; font-weight: 400; max-width: none; }
.works { padding-bottom: 8vw; }
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4vw 2.2vw; }
.card-img { overflow: hidden; aspect-ratio: 3 / 2; background: var(--light-bg); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }
.card h3 { font-size: 1.35rem; margin: .8rem 0 0; }

/* Split layout (About / Contact) */
.split { padding: 6vw 0 8vw; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: start; }
.split-title { font-size: var(--h2); position: sticky; top: 120px; }
.split-title a { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 1px; }
.split-body { max-width: 640px; }
.split-body h3 { font-size: 1.6rem; margin-top: 3rem; }
.split-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.social { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* CTA band */
.cta { padding: 8vw 0; }
.theme-light { background: var(--light-bg); color: #000; }
.theme-black { background: #000; color: #fff; }
.cta h2 { margin-bottom: 2.2rem; }
.btn {
  display: inline-block; background: var(--btn-bg); color: var(--btn-fg);
  padding: 1.1rem 2.8rem; font-size: 1rem; transition: opacity .3s;
}
.cta .btn { background: #000; color: #fff; }
.btn:hover { opacity: .8; }

/* Project pages */
.hero img { width: 100%; max-height: 92vh; object-fit: cover; }
.text { padding: 5vw 0; }
.text-col { margin-left: 50%; max-width: 640px; }
.text.intro .text-col { margin-left: 0; max-width: 980px; }
.text.intro p { font-size: 1.6rem; line-height: 1.45; letter-spacing: -0.02em; }
.text .label { font-size: 1.25rem; letter-spacing: -0.02em; margin: 2.4rem 0 .6rem; }
.text .label:first-child { margin-top: 0; }
.text a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text.credits p { font-size: .9rem; color: var(--muted); }
.text.credits p a { color: var(--fg); }
.media { padding: calc(var(--gap) / 2) 0; }
.grid { display: grid; grid-template-columns: repeat(var(--cols, 1), 1fr); gap: var(--gap); align-items: start; }
figure { margin: 0; }
figure img, figure video { width: 100%; }
.gallery img { cursor: zoom-in; }
.embed { position: relative; width: 100%; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.masonry { columns: 3; column-gap: var(--gap); }
.masonry figure { break-inside: avoid; margin-bottom: var(--gap); }
.next { padding: 8vw 0; border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); margin-top: 6vw; }
.next a { display: inline-flex; flex-direction: column; }
.next span { font-size: .82rem; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.next strong { font-size: var(--h2); font-weight: 500; letter-spacing: -0.04em; line-height: 1.2; transition: opacity .3s; }
.next a:hover strong { opacity: .6; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center; padding: 4vw; cursor: zoom-out;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }

/* Circular cursor (desktop) */
#cursor {
  position: fixed; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none; z-index: 300;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease); opacity: 0;
}
#cursor.on { opacity: 1; }
#cursor.big { width: 48px; height: 48px; margin: -24px 0 0 -24px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Mobile */
@media (max-width: 767px) {
  :root { --gutter: 6vw; --h1: 3rem; --h2: 2.2rem; --h3: 1.5rem; }
  p { font-size: 1.1rem; }
  .site-header { padding: 5vw var(--gutter); }
  .burger { display: block; z-index: 60; }
  .nav {
    position: fixed; inset: 0; z-index: 55; background: var(--bg);
    flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
    opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
  }
  .nav a { font-size: 2.4rem; letter-spacing: -0.02em; background: none; }
  body.menu-open .nav { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  body.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  body.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .works-grid, .split-grid { grid-template-columns: 1fr; }
  .split-title { position: static; }
  .text-col { margin-left: 0; }
  .text.intro p { font-size: 1.3rem; }
  .grid.gallery { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .hero img { max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
