:root {
  --bg-color: #0c0b09;
  --bg-color-soft: #141210;
  --text-color: #f5f3ee;
  --accent-color: #4A4E2B;   /* "Arte" */
  --gold-color: #674925;     /* "rapel" */
  --gold-light: #a3854f;     /* realce sutil do dourado */
  --tagline-color: #8b8e73;  /* palavras da tagline — mais legível sobre o fundo escuro */
  --line-color: #f5f3ee;
  --frame-color: rgba(245, 243, 238, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  position: relative;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(103, 73, 37, 0.20), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 105%, rgba(74, 78, 43, 0.14), transparent 70%),
    var(--bg-color);
  color: var(--text-color);
  font-family: 'Fraunces', 'Segoe UI', Arial, Helvetica, sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* textura sutil de papel/grão — remete a material natural e artesanal, sem pesar no layout */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  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='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

/* vinheta sutil nas bordas, reforça o clima de "peça em exposição" */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 0 min(18vw, 160px) rgba(0, 0, 0, 0.55);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(14px, 2.5vh, 22px) clamp(20px, 5vw, 40px);
  flex-shrink: 0;
  animation: fadeIn 0.9s ease both;
  position: relative;
  z-index: 1;
}

.logo-icon {
  height: clamp(30px, 4.6vh, 40px);
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s cubic-bezier(.22,.68,.35,1), filter 0.4s ease;
}

.logo-icon:hover {
  transform: rotate(-4deg) scale(1.06);
  filter: drop-shadow(0 0 10px rgba(103, 73, 37, 0.55));
}

.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-color) 50%, transparent);
  opacity: 0.2;
  margin: 0 clamp(20px, 5vw, 40px);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.6vh, 16px);
  padding: clamp(16px, 3.5vh, 44px) clamp(20px, 6vw, 48px);
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.project-label {
  font-family: 'Alex Brush', cursive;
  font-size: clamp(1.7rem, 5.2vh, 2.9rem);
  color: var(--text-color);
  opacity: 0.88;
  line-height: 1;
  letter-spacing: 0.01em;
  animation: fadeIn 1s ease both;
  animation-delay: 0.05s;
}

/* moldura no estilo de etiqueta de galeria, em volta da marca/ícone —
   reforça a ideia de "peça exposta" em vez de logotipo corporativo */
.hero-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3.6vh, 34px) clamp(30px, 6vh, 46px);
  margin: clamp(6px, 1.4vh, 14px) 0;
  animation: fadeUp 1s ease both;
  animation-delay: 0.15s;
}

.hero-logo::before,
.hero-logo::after,
.hero-logo .corner {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid var(--frame-color);
}

.hero-logo::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.hero-logo::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

.hero-logo .corner--tr {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}

.hero-logo .corner--bl {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
}

.hero-logo img {
  width: clamp(160px, 30vh, 260px);
  max-width: 60vw;
  height: auto;
  aspect-ratio: 675 / 627;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  animation: float 6s ease-in-out infinite;
  animation-delay: 1.2s;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.55)) contrast(1.04) saturate(1.05);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.hero-logo img:hover {
  filter: drop-shadow(0 18px 26px rgba(103, 73, 37, 0.35)) contrast(1.04) saturate(1.05);
  transform: scale(1.02);
}

/* Texto "Arterapel" recriado em CSS */
.brand-name {
  font-family: 'Yellowtail', cursive;
  font-size: clamp(2.1rem, 7vh, 3.8rem);
  line-height: 1;
  animation: fadeUp 0.9s ease both;
  animation-delay: 0.25s;
}

.brand-name .arte {
  color: var(--accent-color);
}

.brand-name .rapel {
  color: var(--gold-color);
}

.brand-name--small {
  font-size: clamp(1.15rem, 3.2vh, 1.6rem);
  animation: none;
}

.brand-tagline {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  font-size: clamp(0.62rem, 1.5vh, 0.85rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tagline-color);
  opacity: 0.95;
  text-align: center;
  animation: fadeIn 1s ease both;
  animation-delay: 0.35s;
}

.brand-tagline .dot {
  color: var(--gold-light);
  margin: 0 3px;
  opacity: 0.9;
}

.title {
  font-family: 'Fraunces', 'Segoe UI', Arial, Helvetica, sans-serif;
  font-optical-sizing: auto;
  font-size: clamp(1.05rem, 3vh, 1.8rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
  animation: fadeUp 0.9s ease both;
  animation-delay: 0.45s;
}

.title::after {
  content: "";
  display: block;
  width: clamp(50px, 8vh, 70px);
  height: 2px;
  margin: clamp(12px, 1.8vh, 20px) auto 0;
  background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
  border-radius: 2px;
  animation: growLine 1s ease both;
  animation-delay: 0.7s;
}

.subtitle {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  text-align: center;
  font-size: clamp(0.78rem, 1.8vh, 1rem);
  line-height: 1.6;
  padding: 0 20px clamp(14px, 2.5vh, 40px);
  opacity: 0.75;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  animation: fadeIn 1.2s ease both;
  animation-delay: 0.55s;
}

.footer {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  text-align: center;
  padding: clamp(10px, 1.5vh, 20px);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.45;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.footer:hover {
  opacity: 0.75;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes growLine {
  from { width: 0; }
  to { width: 70px; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Telas médias/celulares em pé */
@media (max-width: 700px) {
  .hero-logo {
    padding: clamp(14px, 2.6vh, 22px) clamp(22px, 5.5vh, 30px);
  }
  .hero-logo img {
    width: clamp(130px, 26vh, 200px);
  }
  .project-label {
    font-size: clamp(1.4rem, 4.4vh, 2rem);
  }
  .brand-name {
    font-size: clamp(1.7rem, 6vh, 3rem);
  }
  .brand-tagline {
    letter-spacing: 0.14em;
  }
}

/* Celulares bem pequenos */
@media (max-width: 380px) {
  .topbar {
    gap: 10px;
  }
  .hero-logo img {
    width: clamp(110px, 24vh, 170px);
  }
  .brand-tagline {
    letter-spacing: 0.1em;
    font-size: 0.6rem;
  }
  .title {
    font-size: clamp(0.95rem, 3vh, 1.4rem);
  }
}

/* Telas curtas (celular deitado, notebooks baixos): evita cortar conteúdo,
   permitindo rolagem em vez de sobrepor elementos */
@media (max-height: 560px) {
  body {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }
  .hero-logo {
    padding: 10px 22px;
    margin: 4px 0;
  }
  .hero-logo img {
    width: clamp(90px, 20vh, 150px);
  }
  .content {
    gap: 6px;
    padding: 14px clamp(20px, 6vw, 48px) 8px;
  }
  .project-label {
    font-size: clamp(1.2rem, 5vh, 1.8rem);
  }
}

@media (min-width: 1600px) {
  .hero-logo img {
    width: 290px;
  }
}
