:root {
  --bg: #0a0908;
  --bg-elevated: #14110f;
  --bg-card: #1a1613;
  --text: #f5efe6;
  --text-muted: #b8aea3;
  --copper: #c9a27a;
  --copper-bright: #e4c4a0;
  --copper-dim: #8b6b4f;
  --line: rgba(201, 162, 122, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 1.25rem;
  --container: 72rem;
  --header-h: 4.75rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--copper);
  color: var(--bg);
  border-radius: 0.5rem;
}

.skip-link:focus {
  left: 1rem;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  pointer-events: none;
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: 0;
  animation: float 18s var(--ease-out) infinite alternate;
}

.orb--one {
  width: 28rem;
  height: 28rem;
  top: -8rem;
  right: -6rem;
  background: radial-gradient(circle, #c9a27a 0%, transparent 70%);
}

.orb--two {
  width: 22rem;
  height: 22rem;
  bottom: 10%;
  left: -8rem;
  background: radial-gradient(circle, #6b3f2a 0%, transparent 70%);
  animation-delay: -6s;
}

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2rem, 2.5rem, 0) scale(1.08); }
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(10, 9, 8, 0.82);
  backdrop-filter: blur(16px);
  border-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.nav__brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 12px rgba(201, 162, 122, 0.35));
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a:not(.btn) {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.25s;
}

.nav__menu a:not(.btn):hover,
.nav__menu a:not(.btn):focus-visible {
  color: var(--copper-bright);
}

.nav__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-muted);
  transition: color 0.25s, border-color 0.25s, transform 0.3s var(--ease-spring);
}

.nav__social svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.nav__social:hover,
.nav__social:focus-visible {
  color: var(--copper-bright);
  border-color: var(--copper);
  transform: translateY(-2px);
}

.nav__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
}

.nav__toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--bg);
  background: linear-gradient(135deg, var(--copper-bright), var(--copper));
  box-shadow: 0 12px 32px rgba(201, 162, 122, 0.25);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, filter 0.3s;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(201, 162, 122, 0.35);
  filter: brightness(1.05);
}

.btn--ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--copper);
  color: var(--copper-bright);
  box-shadow: 0 0 0 1px rgba(201, 162, 122, 0.15);
}

.btn--small {
  padding: 0.65rem 1.1rem;
  font-size: 0.82rem;
}

.btn--wide {
  width: 100%;
  max-width: 22rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__image {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: hero-zoom 20s var(--ease-out) infinite alternate;
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.14); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.55) 0%, rgba(10, 9, 8, 0.88) 55%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 20%, rgba(201, 162, 122, 0.12), transparent 55%);
}

.hero__content {
  text-align: center;
  max-width: 46rem;
}

.hero__logo {
  width: min(14rem, 42vw);
  height: min(14rem, 42vw);
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
  animation: logo-in 1.2s var(--ease-out) 0.2s forwards;
  filter: drop-shadow(0 0 40px rgba(201, 162, 122, 0.3));
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 auto 2rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* Marquee */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(20, 17, 15, 0.6);
  overflow: hidden;
  padding: 0.9rem 0;
}

.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-dim);
}

.marquee__track span::after {
  content: "·";
  margin-left: 3rem;
  color: var(--copper);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section__head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section__head h2,
.craft h2,
.contact h2 {
  margin: 0 0 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
}

.section__head p,
.craft__copy > p,
.contact p {
  margin: 0;
  color: var(--text-muted);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery__item {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--bg-card);
  margin: 0;
}

.gallery__item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.5s;
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 9, 8, 0.85) 100%);
  opacity: 0.85;
  transition: opacity 0.4s;
}

.gallery__label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-bright);
  transform: translateY(0.5rem);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}

.gallery__item:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.gallery__item:hover .gallery__label,
.gallery__item:focus-within .gallery__label {
  transform: translateY(0);
  opacity: 1;
}

/* Craft */
.section--craft {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201, 162, 122, 0.08), transparent 45%),
    var(--bg-elevated);
}

.craft {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.craft__list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.craft__list li {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(10, 9, 8, 0.45);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.craft__list li:hover {
  border-color: rgba(201, 162, 122, 0.45);
  transform: translateX(4px);
}

.craft__list strong {
  display: block;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.craft__list span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.craft__visual {
  position: relative;
}

.craft__frame {
  overflow: hidden;
  border-radius: calc(var(--radius) + 0.25rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.craft__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  animation: craft-drift 16s var(--ease-out) infinite alternate;
}

@keyframes craft-drift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-1%); }
}

.craft__badge {
  position: absolute;
  right: -1rem;
  bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, var(--bg-card), #221c18);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
  animation: badge-pop 0.8s var(--ease-spring) 0.5s both;
}

@keyframes badge-pop {
  from { opacity: 0; transform: scale(0.85) translateY(1rem); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.craft__badge-num {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--copper-bright);
}

.craft__badge-text {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-bright);
}

/* Contact */
.section--contact {
  padding-bottom: 5rem;
}

.contact__card {
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: calc(var(--radius) + 0.5rem);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(26, 22, 19, 0.95), rgba(10, 9, 8, 0.9));
  box-shadow: var(--shadow);
  text-align: center;
}

.contact__details {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  text-align: left;
}

.contact__details div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact__details dt {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.contact__details dd {
  margin: 0;
  color: var(--text-muted);
}

.contact__details a {
  color: var(--text);
  transition: color 0.25s;
}

.contact__details a:hover {
  color: var(--copper-bright);
}

.contact__details small {
  color: var(--copper-dim);
  font-size: 0.8rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 20;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer a {
  color: var(--copper);
  transition: color 0.25s;
}

.footer a:hover {
  color: var(--copper-bright);
}

.footer__admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  min-height: 1.4rem;
  padding: 0.1rem 0.2rem;
  border-radius: 50%;
  border: none;
  color: var(--copper-dim) !important;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  opacity: 0.45;
}

.footer__admin:hover {
  color: var(--copper-bright) !important;
  opacity: 0.8;
}

.gallery__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  animation: fab-in 0.6s var(--ease-spring) 1s both;
}

@keyframes fab-in {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.45);
}

.whatsapp-fab svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: currentColor;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition:
    opacity 0.8s var(--ease-out) var(--delay, 0ms),
    transform 0.8s var(--ease-out) var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .gallery__item,
  .gallery__item--tall {
    grid-column: span 6;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }

  .craft {
    grid-template-columns: 1fr;
  }

  .craft__badge {
    right: 1rem;
  }
}

@media (max-width: 720px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.25rem;
    background: rgba(10, 9, 8, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out), opacity 0.4s;
  }

  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__menu li {
    width: 100%;
  }

  .nav__menu a:not(.btn) {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__menu .btn {
    margin-top: 0.75rem;
    width: 100%;
  }

  .nav__menu .nav__social {
    display: inline-flex;
    margin: 0.75rem auto 0;
    padding: 0;
    border-bottom: none;
    width: auto;
  }

  .gallery__item,
  .gallery__item--tall {
    grid-column: span 12;
  }

  .contact__details div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
