/* =========================================================
   brcmarques.dev — Portfolio
   Dark · editorial · cinematic. Vanilla CSS, zero framework.
   Author build: Bruno Marques (brcmarques-tech)
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  --bg:        #08080a;
  --bg-2:      #0e0e12;
  --surface:   #141419;
  --surface-2: #1b1b22;
  --ink:       #f5f5f4;
  --ink-dim:   #a6a6b0;
  --ink-faint: #6a6a76;
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.16);
  --accent:    #3ba2ff;
  --accent-2:  #6ad0ff;
  --accent-deep:#1f6fd0;
  --warm:      #ff6a3d;
  --glow:      0 0 60px rgba(59,162,255,0.35);
  --max:       1240px;
  --pad:       clamp(1.1rem, 4.5vw, 3rem);
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-disp: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Lenis smooth-scroll (overrides native smooth so they don't fight) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent); color: #04040a; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- GLOBAL FX LAYERS ---------- */
/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 9990; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0%,100%{transform:translate(0,0)} 10%{transform:translate(-3%,-5%)}
  30%{transform:translate(4%,-2%)} 50%{transform:translate(-2%,4%)}
  70%{transform:translate(3%,3%)} 90%{transform:translate(-4%,2%)}
}
/* vignette */
.vignette { position: fixed; inset: 0; z-index: 9989; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%); }

/* ---------- CUSTOM CURSOR ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  transform: translate(-50%, -50%); will-change: transform; }
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring { width: 38px; height: 38px; border: 1px solid var(--line-2);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s, border-color .25s; }
.cursor-ring.hover { width: 64px; height: 64px; border-color: var(--accent); background: rgba(59,162,255,0.08); }
.cursor-ring.down { width: 26px; height: 26px; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }
/* hide native cursor only while the custom one is active */
body.has-cursor, body.has-cursor * { cursor: none !important; }

/* ---------- PRELOADER ---------- */
.preloader { position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: clamp(1.5rem,5vw,3rem); transition: opacity .6s var(--ease), visibility .6s; }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader .pl-word { font-family: var(--font-disp); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.02em; font-size: clamp(1.6rem, 6vw, 3rem); overflow: hidden; }
.preloader .pl-word span { display: inline-block; transform: translateY(110%); animation: plUp .8s var(--ease) forwards; }
@keyframes plUp { to { transform: translateY(0); } }
.preloader .pl-count { font-family: var(--font-mono); font-size: clamp(2.5rem,12vw,7rem);
  font-weight: 700; line-height: 1; color: var(--ink); }
.pl-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); box-shadow: var(--glow); }

/* ---------- LAYOUT ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); width: 100%; }
.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent-2); display: inline-flex; align-items: center; gap: 0.6rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); display: inline-block; }
.muted { color: var(--ink-dim); }
.faint { color: var(--ink-faint); }
.display { font-family: var(--font-disp); font-weight: 700; letter-spacing: -0.025em; line-height: 0.95; }

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 9988;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: var(--glow); }

/* ---------- NAV ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 9980;
  transition: transform .4s var(--ease), background .3s, border-color .3s;
  border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(8,8,10,0.72); backdrop-filter: saturate(180%) blur(14px); border-color: var(--line); }
.nav.hidden { transform: translateY(-100%); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { font-family: var(--font-disp); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 0.55rem; }
.brand .mark { width: 26px; height: 26px; }
.brand b { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); font-size: 0.9rem; font-weight: 500; }
.nav-links a { color: var(--ink-dim); position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--accent); transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--ink); } .nav-links a:hover::after { width: 100%; }
.nav-cta { border: 1px solid var(--line-2); padding: 0.5rem 1rem !important; color: var(--ink) !important; }
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; }
/* language switcher */
.lang { display: inline-flex; gap: 1px; border: 1px solid var(--line-2); padding: 2px; align-self: center; }
.lang button { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; font-weight: 700;
  padding: 0.3rem 0.42rem; color: var(--ink-faint); background: transparent; border: 0; cursor: pointer;
  text-transform: uppercase; line-height: 1; transition: color .2s var(--ease), background .2s var(--ease); }
.lang button:hover { color: var(--ink); }
.lang button[aria-current="true"] { color: #04040a; background: var(--accent); }
body.has-cursor .lang button { cursor: none; }
@media (max-width: 600px) { .nav-links a.hide-sm { display: none; } .nav-links { gap: 0.85rem; } }

/* ---------- BUTTONS ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 600; font-size: 0.95rem; padding: 0.95rem 1.7rem; border: 1px solid var(--line-2);
  overflow: hidden; transition: color .3s, border-color .3s; will-change: transform; }
.btn span { position: relative; z-index: 1; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: translateY(101%); transition: transform .45s var(--ease); z-index: 0; }
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #04040a; border-color: var(--accent); }
.btn-solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-solid::before { background: var(--accent); }
.btn .ar { transition: transform .3s var(--ease); } .btn:hover .ar { transform: translate(4px,-4px); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column;
  padding: 8rem 0 2rem; overflow: hidden; }
.hero > .wrap { margin-block: auto; }
#hero-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.9; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(80% 60% at 70% 30%, rgba(59,162,255,0.10), transparent 60%); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(3rem, 12vw, 9.5rem); text-transform: uppercase; margin: 1.2rem 0 1.6rem; }
.hero h1 .accent { color: var(--accent); -webkit-text-stroke: 0; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink-faint); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.4rem); max-width: 50ch; color: var(--ink-dim); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }
.hero-meta { position: static; margin-top: 1.6rem; z-index: 2; }
.hero-meta .wrap { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.hero-meta .item { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); letter-spacing: 0.08em; }
.hero-meta .item b { display: block; color: var(--ink); font-size: 0.95rem; margin-top: 0.2rem; font-family: var(--font-sans); }
.scroll-hint { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--ink-faint);
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 0.8rem; }
.scroll-hint::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: scrollPulse 1.8s var(--ease) infinite; }
@keyframes scrollPulse { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* text reveal (split lines) */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > * { display: inline-block; transform: translateY(110%); }
.in .reveal-line > * { transform: translateY(0); transition: transform 1s var(--ease); }
.in .reveal-line:nth-child(2) > * { transition-delay: .08s; }
.in .reveal-line:nth-child(3) > * { transition-delay: .16s; }
.in .reveal-line:nth-child(4) > * { transition-delay: .24s; }

/* generic reveal */
.r { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.r.in { opacity: 1; transform: none; }
.r.d1 { transition-delay: .08s; } .r.d2 { transition-delay: .16s; }
.r.d3 { transition-delay: .24s; } .r.d4 { transition-delay: .32s; } .r.d5 { transition-delay: .4s; }
.clip { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
.clip.in { clip-path: inset(0 0 0 0); }

/* ---------- SECTION SHELL ---------- */
section { position: relative; padding: clamp(4rem, 11vw, 9rem) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 6vw, 4.5rem); text-transform: uppercase; }
.section-head .idx { font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem; letter-spacing: 0.15em; }
.divider { height: 1px; background: var(--line); width: 100%; }

/* ---------- MANIFESTO ---------- */
.manifesto { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manifesto .big { font-family: var(--font-disp); font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 5vw, 3.6rem); line-height: 1.12; max-width: 20ch; }
.manifesto .big em { font-style: normal; color: var(--ink-faint); }
.manifesto .big b { color: var(--accent); font-weight: 700; }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.4rem 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-disp); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.4rem, 4vw, 2.6rem); color: var(--ink-faint); letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 3rem; }
.marquee-track span::after { content: "✦"; color: var(--accent); font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4,1fr); } }
.stat { background: var(--bg); padding: clamp(1.6rem,4vw,2.6rem); }
.stat .num { font-family: var(--font-disp); font-weight: 700; font-size: clamp(2.4rem,7vw,4rem); line-height: 1; letter-spacing: -0.02em; }
.stat .num .suf { color: var(--accent); }
.stat .lbl { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); margin-top: 0.7rem; }

/* ---------- FEATURED PROJECT ---------- */
.featured { overflow: visible; }
.featured .inner { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 920px) { .featured .inner { grid-template-columns: 0.82fr 1.18fr; align-items: center; } }
.featured .copy { padding: 0; display: flex; flex-direction: column; gap: 1.2rem; justify-content: center; }
.featured h3 { font-family: var(--font-disp); font-weight: 700; font-size: clamp(2rem,5vw,3.4rem); letter-spacing: -0.02em; line-height: 1; }
.featured .shot-wrap { position: relative; border-left: 1px solid var(--line); min-height: 320px; overflow: hidden; background: #000; }
.featured .shot-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 1.2s var(--ease); }
.featured:hover .shot-wrap img { transform: scale(1.04); }
.featured .shot-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8,8,10,0.5), transparent 40%); }
@media (max-width: 919px) { .featured .shot-wrap { border-left: none; border-top: 1px solid var(--line); } }

/* ---------- PROJECTS GRID ---------- */
.projects { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .projects { grid-template-columns: 1fr 1fr; } }
.proj { position: relative; background: var(--bg); padding: clamp(1.6rem,3.5vw,2.6rem);
  display: flex; flex-direction: column; gap: 1rem; min-height: 280px; overflow: hidden;
  transition: background .4s var(--ease); }
.proj::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.proj:hover { background: var(--surface); } .proj:hover::before { width: 100%; }
.proj .num-tag { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); letter-spacing: 0.1em; }
.proj .top { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.proj h3 { font-family: var(--font-disp); font-weight: 700; font-size: clamp(1.6rem,3vw,2.1rem); letter-spacing: -0.01em; }
.proj .arrow { font-size: 1.4rem; color: var(--accent); transition: transform .35s var(--ease); }
.proj:hover .arrow { transform: translate(5px,-5px); }
.proj p { color: var(--ink-dim); font-size: 0.97rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; padding: 0.3rem 0.65rem;
  border: 1px solid var(--line); color: var(--ink-dim); }
.proj.soon { opacity: 0.6; }
.badge { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; background: var(--accent); color: #04040a; }
.badge.ghost { background: transparent; color: var(--ink-faint); border: 1px solid var(--line); }

/* ---------- CAPABILITIES ---------- */
.caps { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .caps { grid-template-columns: repeat(3,1fr); } }
.cap { background: var(--bg); padding: clamp(1.6rem,4vw,2.4rem); display: flex; flex-direction: column; gap: 0.9rem;
  transition: background .4s; }
.cap:hover { background: var(--surface); }
.cap .ic { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--accent); transition: border-color .4s var(--ease), background .4s; }
.cap .ic svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cap:hover .ic { border-color: var(--accent); background: rgba(59,162,255,0.07); }
.cap h4 { font-family: var(--font-disp); font-weight: 700; font-size: 1.2rem; }
.cap p { color: var(--ink-dim); font-size: 0.92rem; }
.cap ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }
.cap li { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); border: 1px solid var(--line); padding: 0.22rem 0.5rem; }

/* ---------- PROCESS / TIMELINE ---------- */
.timeline { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--bg); padding: clamp(1.5rem,4vw,2.6rem); display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
  transition: background .4s; }
.step:hover { background: var(--surface); }
.step .no { font-family: var(--font-disp); font-weight: 700; font-size: clamp(2rem,5vw,3.2rem); color: var(--ink-faint); line-height: 1; min-width: 2.5ch; }
.step:hover .no { color: var(--accent); }
.step h4 { font-family: var(--font-disp); font-weight: 700; font-size: clamp(1.2rem,2.5vw,1.6rem); margin-bottom: 0.4rem; }
.step p { color: var(--ink-dim); font-size: 0.95rem; max-width: 60ch; }

/* ---------- CINEMATIC BAND ---------- */
.band { position: relative; min-height: 72vh; display: flex; align-items: center; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; }
.band-img { position: absolute; inset: -12% 0; background-size: cover; background-position: center 30%; will-change: transform; }
.band-overlay { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(8,8,10,0.94) 0%, rgba(8,8,10,0.55) 55%, rgba(8,8,10,0.78) 100%),
  radial-gradient(60% 80% at 20% 50%, rgba(59,162,255,0.12), transparent 70%); }
.band-content { position: relative; z-index: 2; padding-block: clamp(3rem,8vw,5rem); }
.band-quote { font-size: clamp(2.6rem, 9vw, 6.5rem); text-transform: uppercase; margin-top: 1rem; }
.band-quote .accent { color: var(--accent); }

/* ---------- ABOUT ---------- */
.about-photo { position: relative; border: 1px solid var(--line); overflow: hidden; background: var(--surface); margin-bottom: 1.6rem; }
.about-photo img { width: 100%; display: block; transition: transform 1.1s var(--ease); }
.about-photo:hover img { transform: scale(1.05); }
.about-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(8,8,10,0.4)); }
.about-grid { display: grid; gap: clamp(2rem,5vw,3.5rem); grid-template-columns: 1fr; }
@media (min-width: 880px) { .about-grid { grid-template-columns: 1.5fr 1fr; } }
.about-grid .bio p { font-size: clamp(1.1rem,2vw,1.45rem); line-height: 1.5; margin-bottom: 1.2rem; }
.about-grid .bio p.first { color: var(--ink); } .about-grid .bio p { color: var(--ink-dim); }
.about-grid .bio strong { color: var(--accent); font-weight: 600; }
.facts { border-top: 1px solid var(--line); }
.fact { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.fact .k { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.fact .v { font-weight: 600; text-align: right; }
.skill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.skill { font-family: var(--font-mono); font-size: 0.78rem; padding: 0.45rem 0.75rem; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, color .3s, transform .3s; }
.skill:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- CONTACT CTA ---------- */
.cta { text-align: center; border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(2.6rem, 11vw, 9rem); text-transform: uppercase; line-height: 0.95; }
.cta h2 a { transition: color .3s; } .cta h2 a:hover { color: var(--accent); }
.cta .sub { color: var(--ink-dim); max-width: 44ch; margin: 1.5rem auto 0; }
.cta-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.5rem; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 3rem 0; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.footer .links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer a { color: var(--ink-dim); font-size: 0.9rem; transition: color .2s; } .footer a:hover { color: var(--accent); }
.footer .copy { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-faint); }

/* =========================================================
   PROJECT CASE PAGE
   ========================================================= */
.case-hero { position: relative; padding: 9rem 0 3rem; overflow: hidden; }
.case-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 50% at 30% 0%, rgba(59,162,255,0.10), transparent 60%); pointer-events: none; }
.case-hero .wrap { position: relative; z-index: 1; }
.back { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--ink-dim); transition: color .2s; }
.back:hover { color: var(--accent); }
.case-hero h1 { font-size: clamp(2.8rem, 10vw, 7rem); text-transform: uppercase; margin: 1.2rem 0; }
.case-meta { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2.5rem; }
@media (min-width: 760px) { .case-meta { grid-template-columns: repeat(5,1fr); } }
.case-meta .item { background: var(--bg); padding: 1.2rem 1.4rem; }
.case-meta .k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.case-meta .v { font-weight: 600; margin-top: 0.4rem; font-size: 0.95rem; }
.case-meta .v a { color: var(--accent); }

.prose { max-width: 70ch; }
.prose h2 { font-family: var(--font-disp); font-weight: 700; font-size: clamp(1.6rem, 4.5vw, 2.6rem); margin: 3rem 0 1rem; letter-spacing: -0.02em; }
.prose p { margin-bottom: 1.1rem; color: var(--ink-dim); font-size: 1.05rem; }
.prose p.big { color: var(--ink); font-size: clamp(1.2rem,2.4vw,1.6rem); line-height: 1.45; }
.prose ul { margin: 0 0 1.2rem 0; list-style: none; }
.prose li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; color: var(--ink-dim); }
.prose li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.prose strong { color: var(--ink); }

.shots { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 2rem 0; }
@media (min-width: 760px) { .shots.two { grid-template-columns: 1fr 1fr; } }
.shot { background: var(--surface); overflow: hidden; }
.shot img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); padding: 0.7rem 0.9rem; border-top: 1px solid var(--line); background: var(--bg); }
figure.full { margin: 2rem 0; border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
figure.full img { width: 100%; }
figure.full figcaption { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); padding: 0.7rem 0.9rem; border-top: 1px solid var(--line); background: var(--bg); }

/* ---------- UTILITIES ---------- */
.spacer-sm { height: 2rem; } .spacer { height: 4rem; }
.center { text-align: center; }
.no-scroll { overflow: hidden; }

/* =========================================================
   RESPONSIVE POLISH — telas pequenas / tablets
   ========================================================= */

/* Hero: vira coluna natural no mobile — sem hero-meta absoluto sobrepondo o texto */
@media (max-width: 600px) {
  .hero { min-height: auto; padding: 6.5rem 0 3rem; flex-direction: column; align-items: stretch; }
  .hero-meta { position: static; margin-top: 2.4rem; }
  .hero-meta .wrap { padding-inline: 0; }
  .scroll-hint { display: none; }
}

/* Nav: em telas minúsculas, deixa só a logo + CTA "Contato" (Projetos fica a um scroll) */
@media (max-width: 480px) {
  .brand { font-size: 1rem; gap: 0.45rem; }
  .brand .mark { width: 23px; height: 23px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 0.5rem 0.95rem !important; }
}

/* Capacidades: 2 colunas no tablet (3 ficava apertado a ~768) */
@media (min-width: 760px) and (max-width: 919px) {
  .caps { grid-template-columns: 1fr 1fr; }
}

/* Case: meta em 1 coluna em telas minúsculas */
@media (max-width: 430px) {
  .case-meta { grid-template-columns: 1fr; }
}

/* ---------- DESTAQUE: telas flutuando livres (desktop) / carrossel (mobile) ---------- */
.feat-gallery { position: relative; min-height: clamp(400px, 44vw, 520px); }
.fcard { position: absolute; margin: 0; overflow: hidden; background: #000;
  border: 1px solid var(--line-2); box-shadow: 0 22px 52px rgba(0,0,0,0.6);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  animation: floatY var(--dur, 7s) ease-in-out infinite; will-change: transform; }
.fcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fcard.web { aspect-ratio: 16 / 10; }  .fcard.web img { object-position: top left; }
.fcard.phone { aspect-ratio: 9 / 19; } .fcard.phone img { object-position: top center; }
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(var(--rot)); }
  50% { transform: translateY(-15px) rotate(calc(var(--rot) + 0.8deg)); }
}
/* posições + ritmo de flutuação (cada uma diferente = movimento orgânico) */
.c1 { width: 57%; top: 6%;  left: 1%;  z-index: 2; --rot: -2deg; --dur: 7s;   animation-delay: -0.5s; }
.c2 { width: 21%; max-width: 124px; bottom: 8%; left: 21%; z-index: 5; --rot: 2deg;  --dur: 5.5s; animation-delay: -2s; }
.c3 { width: 48%; right: 2%; bottom: 7%; z-index: 3; --rot: 2deg;  --dur: 8s;   animation-delay: -3.5s; }
.c4 { width: 19%; max-width: 112px; top: 9%; right: 8%; z-index: 4; --rot: -3deg; --dur: 6s;   animation-delay: -1s; }
/* hover: avança — cresce, endireita, vem pra frente e pausa o float */
@media (hover: hover) {
  .fcard:hover { animation-play-state: paused; transform: scale(1.14) rotate(0deg) !important;
    box-shadow: 0 40px 90px rgba(0,0,0,0.8); border-color: var(--accent); z-index: 9; }
}
.feat-swipe { display: none; }

/* tablet/celular: vira carrossel deslizável com snap (sem flutuar) */
@media (max-width: 919px) {
  .feat-gallery { display: flex; gap: 0.9rem; min-height: 0; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 0.4rem 0 0.3rem; scrollbar-width: none; }
  .feat-gallery::-webkit-scrollbar { display: none; }
  .fcard { position: static; flex: 0 0 auto; transform: none; animation: none;
    scroll-snap-align: center; box-shadow: 0 16px 38px rgba(0,0,0,0.5); }
  .fcard.web { width: min(86%, 470px); }
  .fcard.phone { width: min(52%, 240px); max-width: none; }
  .feat-swipe { display: block; position: absolute; top: -1.4rem; right: 0.2rem; z-index: 6;
    font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--ink-faint); pointer-events: none; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .r, .clip, .reveal-line > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .grain { display: none; }
}
