/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050505;
  --bg2: #0b0b0b;
  --bg3: #161616;
  --surface: rgba(16, 16, 16, 0.78);
  --surface2: rgba(20, 20, 20, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --line2: rgba(255, 255, 255, 0.3);
  --white: #f4f4f4;
  --white80: rgba(244, 244, 244, 0.8);
  --white60: rgba(244, 244, 244, 0.6);
  --white40: rgba(244, 244, 244, 0.4);
  --white25: rgba(244, 244, 244, 0.25);
  --accent: #f0f0f0;
  --accent2: #bfbfbf;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'Space Mono', monospace;
}

/* GPU/compositor hints for smoother motion */
body.gpu-ready .intro-logo-stage,
body.gpu-ready .intro-prof-stage,
body.gpu-ready .intro-content-stage,
body.gpu-ready .hero-grid-art,
body.gpu-ready .section.section-reveal,
body.gpu-ready .section.section-reveal .section-header,
body.gpu-ready .section.section-reveal .avisos-list,
body.gpu-ready .section.section-reveal .materiais-grid,
body.gpu-ready .section.section-reveal .gallery-grid,
body.gpu-ready .section.section-reveal .contato-inner {
  will-change: transform, opacity, filter;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

body.gpu-ready .material-card,
body.gpu-ready .gallery-card,
body.gpu-ready .aviso-item,
body.gpu-ready .hero-cta,
body.gpu-ready .filter-btn,
body.gpu-ready .folder-btn,
body.gpu-ready .social-link {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(84, 84, 84, 0.92) rgba(8, 8, 8, 0.95);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(8, 8, 8, 0.95);
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(8, 8, 8, 0.95);
  background-clip: padding-box;
  background: linear-gradient(180deg, rgba(76, 76, 76, 0.95), rgba(34, 34, 34, 0.96));
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(102, 102, 102, 0.96), rgba(50, 50, 50, 0.98));
}

::-webkit-scrollbar-corner {
  background: rgba(8, 8, 8, 0.95);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 83% 25%, rgba(255, 255, 255, 0.05), transparent 40%),
    linear-gradient(165deg, #030303 0%, #090909 45%, #040404 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 24px);
}

#materiais,
#avisos,
#galeria,
#contato,
#busca {
  scroll-margin-top: 86px;
}

/* Noise */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.02;
  mix-blend-mode: overlay;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1400;
  height: 70px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 5, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.nav-mobile-admin {
  display: none;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 4px;
  line-height: 1;
}

.nav-sub {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--white40);
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.nav-links a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  color: var(--white60);
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-admin {
  border: 1px solid var(--line2) !important;
  color: var(--white80) !important;
  background: rgba(255, 255, 255, 0.07);
  padding: 7px 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  white-space: nowrap;
  transition: background 0.2s;
}

.nav-admin:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

.nav-admin-quick {
  position: relative;
  z-index: 1700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  transition: opacity 0.35s ease;
}

.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--white80);
  display: block;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open .nav-toggle span:first-child {
  transform: translateY(3px) rotate(45deg);
}

body.nav-open .nav-toggle span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

body:not(.intro-header-visible) .nav-logo {
  opacity: 0;
  transform: translateX(-22px);
  pointer-events: none;
}

body:not(.intro-header-visible) .nav-links {
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
}

body:not(.intro-header-visible) .nav-toggle {
  opacity: 0;
  pointer-events: none;
}

.nav-overlay {
  display: none;
}

body.nav-open .noise {
  opacity: 0.006;
}

/* Hero */
.hero {
  position: relative;
  height: 390vh;
  border-bottom: 1px solid var(--line);
}

.intro-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.intro-pin::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(95deg, rgba(5, 5, 5, 0.95) 5%, rgba(10, 10, 10, 0.78) 48%, rgba(18, 18, 18, 0.35) 100%);
}

.intro-pin::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.58) 100%);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  animation: floatOrb 14s ease-in-out infinite;
}

.orb-1 {
  width: 360px;
  height: 360px;
  top: 5%;
  left: -95px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
}

.orb-2 {
  width: 480px;
  height: 480px;
  top: 30%;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 72%);
  animation-delay: 1.2s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  bottom: -70px;
  left: 24%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0) 74%);
  animation-delay: 2.2s;
}

.intro-logo-stage,
.intro-prof-stage,
.intro-content-stage {
  position: absolute;
  inset: 0;
}

.intro-logo-stage {
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.intro-logo-image {
  width: min(72vw, 620px);
  max-width: 620px;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.08);
}

.intro-prof-stage {
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: clamp(30px, 6vw, 94px);
  opacity: 0;
  pointer-events: none;
}

.intro-prof-name {
  font-family: var(--font-display);
  font-size: clamp(58px, 9.2vw, 146px);
  line-height: 0.92;
  letter-spacing: 5px;
  color: var(--white);
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.15);
}

.intro-content-stage {
  z-index: 10;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 40px, 0);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(60vw, 800px);
  padding: 95px 48px 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  width: fit-content;
  padding: 8px 12px;
  margin-bottom: 28px;
  font-size: 9px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--white80);
  border: 1px solid var(--line2);
  background: rgba(0, 0, 0, 0.4);
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
  line-height: 0.9;
  font-family: var(--font-display);
  font-weight: 400;
}

.hero-title-line {
  display: block;
  font-size: clamp(72px, 10vw, 138px);
  letter-spacing: 3px;
}

.hero-title-line.accent {
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(245, 245, 245, 0.95);
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.hero-desc {
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--white80);
  line-height: 1.52;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 300;
}

.hero-desc em {
  color: var(--white);
  font-style: italic;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cta {
  width: fit-content;
  padding: 14px 24px;
  border: 1px solid var(--line2);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  color: #030303;
  background: linear-gradient(90deg, rgba(245, 245, 245, 0.94) 0%, rgba(190, 190, 190, 0.96) 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.35) 48%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 0.35s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.4);
}

.hero-cta:hover::before {
  transform: translateX(110%);
}

.hero-cta.hero-cta-ghost {
  color: var(--white);
  background: rgba(7, 7, 7, 0.58);
}

.hero-grid-art {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  opacity: 0;
}

.grid-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
}

.grid-line.v {
  left: 34%;
  width: 1px;
  height: 100%;
}

.grid-line.v2 {
  left: 67%;
  width: 1px;
  height: 100%;
}

.grid-line.h {
  top: 48%;
  width: 100%;
  height: 1px;
}

.grid-dot {
  position: absolute;
  top: 48%;
  left: 67%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.55);
  animation: pulseDot 2.8s ease-in-out infinite;
}

.hero-number {
  font-family: var(--font-display);
  font-size: clamp(170px, 19vw, 280px);
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  letter-spacing: 1px;
  position: absolute;
  top: 50%;
  right: clamp(14px, 4.8vw, 84px);
  transform: translateY(-50%);
  user-select: none;
}

/* Sections */
.section {
  position: relative;
  padding: 84px 48px;
  border-bottom: 1px solid var(--line);
}

.section.section-reveal {
  opacity: 0;
  transform: translateY(54px);
  filter: blur(3px);
  transition: opacity 0.85s ease, transform 0.85s ease, filter 0.85s ease;
}

.section.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.section.section-reveal .section-header,
.section.section-reveal .avisos-list,
.section.section-reveal .materiais-grid,
.section.section-reveal .gallery-grid,
.section.section-reveal .contato-inner {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.section.section-reveal .section-header {
  transition-delay: 0.08s;
}

.section.section-reveal .avisos-list,
.section.section-reveal .materiais-grid,
.section.section-reveal .gallery-grid,
.section.section-reveal .contato-inner {
  transition-delay: 0.18s;
}

.section.section-reveal.is-visible .section-header,
.section.section-reveal.is-visible .avisos-list,
.section.section-reveal.is-visible .materiais-grid,
.section.section-reveal.is-visible .gallery-grid,
.section.section-reveal.is-visible .contato-inner {
  opacity: 1;
  transform: translateY(0);
}

.section::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.section-dark {
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.05), transparent 30%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.96) 0%, rgba(11, 11, 11, 0.92) 100%);
}

.section-gallery {
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(180deg, rgba(6, 6, 6, 0.85) 0%, rgba(9, 9, 9, 0.92) 100%);
}

.section-label {
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 3.4px;
  text-transform: uppercase;
  color: var(--white);
}

.section-lead {
  max-width: 650px;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.35;
  font-weight: 300;
  color: var(--white80);
}

.section-header {
  margin-bottom: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* Global search */
.section-search-entry {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.05), transparent 30%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.9) 0%, rgba(9, 9, 9, 0.95) 100%);
}

.site-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin-bottom: 14px;
}

.site-search-input {
  width: 100%;
  border: 1px solid var(--line2);
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.6px;
  outline: none;
}

.site-search-input:focus {
  border-color: rgba(255, 255, 255, 0.55);
}

.site-search-input::placeholder {
  color: var(--white40);
}

.site-search-btn {
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white80);
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.site-search-btn:hover {
  border-color: rgba(255, 255, 255, 0.58);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.site-search-btn.site-search-btn-secondary {
  background: rgba(0, 0, 0, 0.35);
}

.search-summary {
  font-size: 11px;
  color: var(--white60);
  letter-spacing: 0.6px;
}

/* Avisos */
.avisos-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aviso-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(14, 14, 14, 0.93) 0%, rgba(8, 8, 8, 0.96) 100%);
  animation: fadeUp 0.42s ease both;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.aviso-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.44);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.aviso-date {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white40);
  padding-top: 6px;
}

.aviso-content h3 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 7px;
}

.aviso-content p {
  font-size: 13px;
  line-height: 1.72;
  color: var(--white80);
}

/* Filter buttons */
.filter-row,
.folder-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn,
.folder-btn {
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid var(--line);
  color: var(--white60);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.filter-btn:hover,
.folder-btn:hover {
  border-color: var(--line2);
  color: var(--white);
}

.filter-btn.active,
.folder-btn.active {
  color: #050505;
  border-color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(180, 180, 180, 0.95));
}

/* Materials */
.materiais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.material-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(14, 14, 14, 0.95) 0%, rgba(8, 8, 8, 0.96) 100%);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeUp 0.42s ease both;
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.material-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.48);
  background: linear-gradient(160deg, rgba(23, 23, 23, 0.96) 0%, rgba(12, 12, 12, 0.98) 100%);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

.material-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.material-type-badge {
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white80);
  padding: 4px 9px;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.badge-pdf {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(248, 248, 248, 0.9);
}

.badge-slides {
  border-color: rgba(235, 235, 235, 0.44);
  color: rgba(236, 236, 236, 0.9);
}

.badge-video {
  border-color: rgba(220, 220, 220, 0.5);
  color: rgba(232, 232, 232, 0.9);
}

.badge-aviso {
  border-color: rgba(208, 208, 208, 0.5);
  color: rgba(225, 225, 225, 0.9);
}

.material-icon-big {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white40);
}

.material-title {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.18;
  font-weight: 400;
}

.material-footer {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.material-date {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white40);
}

.material-download {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--white60);
  transition: color 0.2s;
}

.material-download svg {
  transition: transform 0.2s ease;
}

.material-card:hover .material-download {
  color: var(--white);
}

.material-card:hover .material-download svg {
  transform: translate(1px, -1px);
}

/* Gallery */
.gallery-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.gallery-card {
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(13, 13, 13, 0.96) 0%, rgba(8, 8, 8, 0.96) 100%);
  overflow: hidden;
  position: relative;
  animation: fadeUp 0.45s ease both;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
}

.gallery-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-meta {
  padding: 14px 14px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.gallery-action-btn,
.gallery-download-folder,
.photo-viewer-download {
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white80);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 9px;
  padding: 6px 9px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.gallery-action-btn:hover,
.gallery-download-folder:hover,
.photo-viewer-download:hover {
  border-color: rgba(255, 255, 255, 0.52);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.gallery-download-folder {
  align-self: flex-end;
}

.gallery-download-folder:disabled,
.gallery-action-btn:disabled,
.photo-viewer-download:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gallery-folder {
  width: fit-content;
  border: 1px solid var(--line2);
  color: var(--white80);
  background: rgba(255, 255, 255, 0.04);
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 4px 8px;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.08;
  color: var(--white);
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.photo-viewer.open {
  display: flex;
}

.photo-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(5px);
}

.photo-viewer-content {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  border: 1px solid var(--line);
  background: rgba(6, 6, 6, 0.95);
  overflow: hidden;
}

.photo-viewer-image {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.7);
}

.photo-viewer-meta {
  border-left: 1px solid var(--line);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-viewer-folder {
  width: fit-content;
  border: 1px solid var(--line2);
  font-size: 9px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  padding: 4px 8px;
  color: var(--white80);
}

.photo-viewer-title {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 0.95;
  font-weight: 400;
}

.photo-viewer-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line2);
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  text-transform: uppercase;
  cursor: pointer;
  z-index: 2;
}

.photo-viewer-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* States */
.empty-state {
  grid-column: 1 / -1;
  padding: 54px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--white40);
  border: 1px dashed var(--line);
  background: rgba(8, 8, 8, 0.72);
}

.loading-state {
  padding: 40px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white40);
}

/* Contact */
.contato-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contato-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 94px);
  line-height: 0.9;
  letter-spacing: 2px;
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--white);
}

.contato-sub {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white60);
}

.contato-links {
  border: 1px solid var(--line);
  background: var(--surface2);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 4px;
}

.contato-item {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.contato-item:last-child {
  border-bottom: none;
}

.contato-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white40);
}

.contato-value {
  font-size: 12px;
  color: var(--white80);
  text-decoration: none;
  transition: color 0.2s;
}

.contato-value:hover {
  color: var(--white);
}

.contato-item-social {
  align-items: flex-start;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.social-link {
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 6px 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 9px;
  color: var(--white60);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.social-link:hover {
  border-color: var(--line2);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Footer */
.footer {
  padding: 24px 48px;
  border-top: 1px solid var(--line);
  background: rgba(6, 6, 6, 0.85);
  color: var(--white40);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes pulseDot {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.18); }
}

@keyframes driftMark {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-51%) translateX(-8px); }
}

/* Responsive */
@media (max-width: 1080px) {
  .nav {
    padding: 0 24px;
  }

  .nav-right {
    gap: 14px;
  }

  .hero {
    height: 360vh;
  }

  .hero-inner {
    width: min(70vw, 760px);
    padding: 86px 24px 68px;
  }

  .intro-prof-name {
    font-size: clamp(52px, 8.8vw, 120px);
  }

  .hero-title-line {
    font-size: clamp(62px, 9vw, 112px);
  }

  .hero-desc {
    max-width: 520px;
    font-size: 21px;
  }

  .section {
    padding: 76px 24px;
  }

  .section-lead {
    font-size: 23px;
  }

  .site-search-form {
    grid-template-columns: 1fr;
  }

  .site-search-btn {
    height: 40px;
  }
}

@media (max-width: 768px) {
  .nav {
    height: 64px;
    padding: 0 16px;
  }

  .nav-logo {
    min-width: 0;
    max-width: calc(100vw - 84px);
  }

  .nav-name {
    font-size: clamp(15px, 4.4vw, 18px);
    letter-spacing: 2.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-sub {
    display: none;
  }

  .nav-right {
    gap: 8px;
  }

  body.nav-open .nav {
    background: #070707;
    backdrop-filter: none;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    border-top: 1px solid var(--line2);
    transform: translateX(102%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    z-index: 1500;
  }

  .nav-links li {
    width: 100%;
    list-style: none;
    border-bottom: 1px solid var(--line);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    width: 100%;
    display: block;
    padding: 14px 4px;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--white);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-admin-quick {
    display: none;
  }

  .nav-mobile-admin {
    display: block;
    border-top: 1px solid var(--line2);
    margin-top: 12px;
  }

  .nav-mobile-admin a {
    padding-top: 16px;
    color: var(--white80);
  }

  .nav-toggle {
    display: flex;
    z-index: 1600;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav-links {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.74);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1300;
  }

  body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    height: 345vh;
  }

  .intro-pin::before {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.9) 0%, rgba(10, 10, 10, 0.78) 54%, rgba(16, 16, 16, 0.58) 100%);
  }

  .intro-logo-image {
    width: min(84vw, 430px);
  }

  .intro-prof-stage {
    padding-left: 24px;
    padding-right: 24px;
  }

  .intro-prof-name {
    font-size: clamp(44px, 13vw, 74px);
    letter-spacing: 3px;
    line-height: 0.98;
  }

  .hero-inner {
    width: 100%;
    max-width: none;
    padding: 62px 24px;
  }

  .hero-eyebrow {
    padding: 7px 10px;
    letter-spacing: 2px;
  }

  .hero-title-line {
    font-size: clamp(56px, 16vw, 82px);
  }

  .hero-desc {
    max-width: 100%;
    font-size: 20px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-line.v {
    left: 25%;
  }

  .grid-line.v2 {
    left: 78%;
  }

  .grid-dot {
    left: 78%;
  }

  .hero-number {
    font-size: 34vw;
    right: 10px;
    transform: translateY(-50%);
  }

  .section {
    padding: 64px 24px;
  }

  .section-header {
    margin-bottom: 26px;
    flex-direction: column;
    align-items: flex-start;
  }

  .section-lead {
    font-size: 21px;
  }

  .materiais-grid,
  .avisos-list,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .aviso-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
  }

  .aviso-content h3 {
    font-size: 30px;
  }

  .material-title {
    font-size: 23px;
  }

  .gallery-image {
    height: 230px;
  }

  .gallery-controls {
    align-items: stretch;
    width: 100%;
  }

  .gallery-download-folder {
    align-self: stretch;
  }

  .gallery-title {
    font-size: 20px;
  }

  .photo-viewer {
    padding: 10px;
  }

  .photo-viewer-content {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 20px);
  }

  .photo-viewer-image {
    max-height: 66vh;
  }

  .photo-viewer-meta {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .photo-viewer-title {
    font-size: 24px;
  }

  .contato-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contato-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .social-links {
    justify-content: flex-start;
  }

  .footer {
    padding: 24px;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 430px) {
  .nav {
    padding: 0 16px;
  }

  .hero-inner,
  .section,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-desc {
    font-size: 18px;
  }

  .section-lead {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section.section-reveal,
  .section.section-reveal .section-header,
  .section.section-reveal .avisos-list,
  .section.section-reveal .materiais-grid,
  .section.section-reveal .gallery-grid,
  .section.section-reveal .contato-inner {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
