:root {
  --bg-hero: #030607;
  --bg-dark: #0a0b0d;
  --bg-surface: #15171c;
  --bg-dark-elevated: #14161b;

  --ink-light: #ebe7de;
  --ink-light-muted: #9fa4ac;
  --ink-dark: #111316;

  --accent: #c8a97e;
  --accent-soft: #dfd5c3;
  --accent-hover: #d8be98;

  --line-dark: rgba(235, 231, 222, 0.12);
  --line-section: rgba(235, 231, 222, 0.14);

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1120px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-hero);
  color: var(--ink-light);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--bg-dark);
}

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

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

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(6, 7, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(243, 241, 236, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-light);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(200, 169, 126, 0.45);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  background-color: rgba(200, 169, 126, 0.06);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-light);
}

.brand-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-soft);
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ink-light-muted);
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  font-size: 0.9375rem;
  color: var(--ink-light-muted);
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--ink-light);
}

.nav-cta {
  color: var(--ink-light);
  padding: 8px 16px;
  border: 1px solid rgba(243, 241, 236, 0.24);
  border-radius: 4px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-cta:hover {
  border-color: var(--accent);
  background-color: rgba(200, 169, 126, 0.08);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-soft);
  color: var(--ink-dark);
  border: 1px solid var(--accent-soft);
}

.btn-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--ink-dark);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink-light);
  border: 1px solid rgba(243, 241, 236, 0.24);
}

.btn-ghost:hover {
  border-color: var(--ink-light);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--ink-light);
  border: 1px solid rgba(243, 241, 236, 0.28);
  white-space: nowrap;
}

.btn-outline-light:hover {
  background-color: var(--ink-light);
  color: var(--ink-dark);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1rem;
}

/* HERO */
.hero {
  background-color: var(--bg-hero);
  padding-block: clamp(40px, 6vw, 84px) clamp(48px, 7vw, 92px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 56px);
}

.hero-meta {
  margin: 0 0 20px;
  font-size: 0.875rem;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.hero-copy h1 {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(2.45rem, 5vw, 4.15rem);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: var(--ink-light);
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 36px;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.68;
  color: var(--ink-light-muted);
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-portrait {
  margin: 0;
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg-hero) 0%, transparent 18%);
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
}

/* SECTIONS */
.section {
  padding-block: clamp(68px, 9vw, 120px);
  position: relative;
}

.section-paper {
  background-color: var(--bg-surface);
  color: var(--ink-light);
  border-top: 1px solid var(--line-section);
  border-bottom: 1px solid var(--line-section);
  box-shadow: inset 0 24px 48px rgba(0, 0, 0, 0.22);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--ink-light);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-intro h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.95rem, 3.4vw, 2.85rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 16ch;
  color: var(--ink-light);
}

.section-intro p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink-light-muted);
  max-width: 48ch;
}

/* SERVICES (EDITORIAL LIST) */
.service-list {
  border-top: 1px solid var(--line-dark);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(16px, 4vw, 48px);
  padding-block: clamp(28px, 4vw, 42px);
  border-bottom: 1px solid var(--line-dark);
  align-items: start;
}

.service-head h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink-light);
}

.service-mode {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--accent);
}

.service-body p {
  margin: 0 0 16px;
  color: var(--ink-light-muted);
  max-width: 56ch;
}

.text-action {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-light);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-action:hover {
  color: var(--accent);
}

.service-footnote {
  margin: clamp(28px, 4vw, 44px) 0 0;
  font-size: 0.95rem;
  color: var(--ink-light-muted);
  max-width: 68ch;
}

.service-footnote strong {
  color: var(--ink-light);
  font-weight: 500;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.gallery-item {
  padding: 0;
  border: 0;
  background-color: var(--bg-dark-elevated);
  overflow: hidden;
  cursor: pointer;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.03);
}

.instagram-strip {
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.instagram-strip-copy h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
}

.instagram-strip-copy p {
  margin: 0;
  color: var(--ink-light-muted);
  max-width: 54ch;
}

/* ABOUT & PROCESS */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

.about-photo {
  margin: 0;
  position: sticky;
  top: 96px;
  border: 1px solid var(--line-dark);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.92) contrast(1.04);
}

.about-copy h2 {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 18ch;
  color: var(--ink-light);
}

.about-copy > p {
  margin: 0 0 18px;
  color: var(--ink-light-muted);
  max-width: 56ch;
}

.process-block {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}

.process-block h3 {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink-light);
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 20px;
}

.process-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 4px;
}

.process-steps li::before {
  content: counter(step) ".";
  grid-row: 1 / 3;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent);
  padding-top: 1px;
}

.process-steps strong {
  font-weight: 600;
  color: var(--ink-light);
}

.process-steps span {
  color: var(--ink-light-muted);
  font-size: 0.95rem;
  max-width: 50ch;
}

/* CONTACT */
.section-contact {
  border-top: 1px solid var(--line-dark);
}

.contact-wrap {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.contact-header h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contact-header p {
  margin: 0 auto 32px;
  color: var(--ink-light-muted);
  max-width: 52ch;
}

.topic-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.topic-btn {
  background-color: transparent;
  color: var(--ink-light-muted);
  border: 1px solid rgba(243, 241, 236, 0.2);
  border-radius: 4px;
  padding: 9px 15px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.topic-btn:hover {
  border-color: rgba(243, 241, 236, 0.55);
  color: var(--ink-light);
}

.topic-btn.is-active {
  background-color: rgba(200, 169, 126, 0.14);
  border-color: var(--accent);
  color: var(--ink-light);
}

.whatsapp-box {
  padding: clamp(24px, 3.5vw, 34px);
  background-color: var(--bg-dark-elevated);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.whatsapp-box .btn {
  padding: 12px 24px;
  font-size: 0.9rem;
}

.message-preview {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.5;
  color: var(--ink-light);
  max-width: 48ch;
}

/* FOOTER */
.site-footer {
  background-color: var(--bg-hero);
  border-top: 1px solid rgba(243, 241, 236, 0.08);
  padding-block: 28px;
  font-size: 0.875rem;
  color: var(--ink-light-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--ink-light);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(6, 7, 8, 0.94);
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: min(90vw, 760px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-figure img {
  max-height: 78vh;
  width: auto;
  object-fit: contain;
}

.lightbox-figure figcaption {
  font-size: 0.9rem;
  color: var(--ink-light-muted);
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  background: rgba(20, 22, 25, 0.8);
  border: 1px solid rgba(243, 241, 236, 0.2);
  color: var(--ink-light);
  width: 44px;
  height: 44px;
  border-radius: 4px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid,
  .section-intro,
  .service-row,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    justify-self: start;
    max-width: 360px;
  }

  .about-photo {
    position: static;
    max-width: 380px;
  }

  .instagram-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-portrait {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .whatsapp-box .btn {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
