:root {
  --bg: #000000;
  --surface-noir: #1a1a1a;
  --surface-dim: #121212;
  --text: #f6f6f6;
  --text-muted: #cbc4d2;
  --gold: #d4af37;
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-soft: rgba(255, 255, 255, 0.05);
  --container: 1400px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Public Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

img,
video {
  max-width: 100%;
  display: block;
}

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

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  z-index: 20;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.11) 1px, transparent 0);
  background-size: 3px 3px;
}

.container {
  width: min(var(--container), calc(100% - 10rem));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stroke-soft);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.nav a {
  opacity: 0.88;
  transition: color 0.45s ease, opacity 0.45s ease;
}

.nav a:hover {
  color: var(--gold);
  opacity: 1;
}

.nav-cta {
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 0.62rem 1rem;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--stroke-soft);
}

.hero-video,
.hero-gradient {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.5);
  opacity: 0.62;
}

.hero-gradient {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.56) 8%, rgba(0, 0, 0, 0.23) 56%, rgba(0, 0, 0, 0.52) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.59) 10%, rgba(0, 0, 0, 0.13) 50%, rgba(0, 0, 0, 0.57) 90%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 7.4rem;
  padding-bottom: 4rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.63rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 300;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3.5rem, 9.7vw, 8rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.45rem;
  font-weight: 400;
}

.hero-subtitle {
  margin: 0.8rem 0 2rem;
  max-width: 55ch;
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  min-height: 48px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition:
    background-color 0.45s ease,
    color 0.45s ease,
    transform 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gold);
  color: #101010;
}

.btn-primary:hover {
  background: #c69f21;
}

.btn-outline {
  border-color: rgba(212, 175, 55, 0.6);
}

.btn-outline:hover {
  background: var(--gold);
  color: #101010;
}

.section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--stroke-soft);
}

.section-tight {
  padding-top: 5rem;
}

.section-head {
  margin-bottom: 2.4rem;
}

.essencia-section {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid var(--stroke-soft);
}

.essencia-top {
  position: relative;
  z-index: 2;
  padding-top: clamp(96px, 12vh, 150px);
  padding-bottom: clamp(48px, 7vh, 82px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.94) 100%);
}

.essencia-head {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.essencia-cards {
  margin-top: 0;
}

.essencia-section .method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--stroke);
  background: var(--stroke);
}

.essencia-section .method-card {
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(1.6rem, 2.4vw, 2.2rem);
  backdrop-filter: none;
}

.essencia-video-panel {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

.essencia-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform-origin: center center;
}

.essencia-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.08) 38%, rgba(0, 0, 0, 0.38) 100%),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.essencia-video-content {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
}

.method-card .step {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
}

.method-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.essencia-section .method-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0 0 clamp(42px, 7vh, 80px);
  max-width: 52ch;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.6rem;
  color: #ece4cb;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.65);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 120px;
  gap: 0.8rem;
  background: transparent;
  border: none;
}

.project {
  position: relative;
  overflow: hidden;
  border: none;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease;
}

.project:hover img {
  transform: scale(1.03);
}

.project-1 {
  grid-column: 1 / 3;
  grid-row: 1 / 6;
}

.project-2 {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
}

.project-3 {
  grid-column: 3 / 4;
  grid-row: 3 / 6;
}

.project-4 {
  grid-column: 4 / 5;
  grid-row: 1 / 6;
}

.project-5 {
  grid-column: 1 / 2;
  grid-row: 6 / 9;
}

.project-6 {
  grid-column: 2 / 3;
  grid-row: 6 / 9;
}

.project-7 {
  grid-column: 3 / 5;
  grid-row: 6 / 9;
}

.section-sobre {
  background: var(--surface-dim);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.sobre-image {
  position: relative;
  margin: 0;
  padding: 1.5rem 0 0 1.5rem;
}

.sobre-image-decorator {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 40%;
  border-top: 1px solid var(--text-muted);
  border-left: 1px solid var(--text-muted);
  opacity: 0.5;
}

.sobre-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(1);
}

.sobre-copy h2 {
  margin-bottom: 2rem;
  line-height: 1.1;
}

.sobre-quote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.sobre-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.sobre-metrics {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.metric-number {
  display: block;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.metric-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.section-quote blockquote {
  margin: 0;
  border-left: 1px solid rgba(212, 175, 55, 0.7);
  padding-left: 1.2rem;
  max-width: 76ch;
  color: #e8e4ea;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.15rem, 2.5vw, 2rem);
  line-height: 1.55;
  font-style: italic;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1px;
  border: 1px solid var(--stroke);
  background: var(--stroke);
}

.contact-copy,
.contact-form {
  background: var(--surface-dim);
  padding: 2.2rem;
}

.contact-copy p,
.contact-copy li {
  color: var(--text-muted);
}

.contact-copy ul {
  margin: 1.2rem 0 2rem;
  padding-left: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.contact-form label {
  margin-top: 0.4rem;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--text);
  padding: 0.7rem 0.1rem 0.72rem;
  font: inherit;
}

.contact-form select option {
  background: #111;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.error {
  min-height: 1.1rem;
  margin-bottom: 0.25rem;
  color: #d57f6c;
  font-size: 0.7rem;
}

#form-status {
  margin: 0.8rem 0 0;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer {
  padding: 6rem 0;
  background: var(--bg);
  border-top: 1px solid var(--stroke-soft);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--text);
}

.footer-icon {
  display: block;
}

.footer-copyright {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
}

.footer-social a {
  transition: color 0.3s ease;
  display: flex;
}

.footer-social a:hover {
  color: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 1100px) {
  .container {
    width: min(var(--container), calc(100% - 4rem));
  }

  .nav {
    gap: 1rem;
    letter-spacing: 0.18em;
  }

  .method-grid,
  .sobre-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    background: transparent;
    gap: 2rem;
    border: 0;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .project-1,
  .project-2,
  .project-3,
  .project-4,
  .project-5,
  .project-6,
  .project-7 {
    grid-column: span 1;
    grid-row: span 1;
  }

  .project-1 {
    grid-column: span 2;
    grid-row: span 2;
  }

  .project-7 {
    grid-column: span 2;
  }

  .sobre-image img {
    min-height: 360px;
  }

  .method-card,
  .contact-copy,
  .contact-form {
    border: 1px solid var(--stroke);
  }

  .essencia-section .method-grid {
    grid-template-columns: 1fr;
    background: transparent;
    gap: 1rem;
    border: 0;
  }

  .essencia-video-panel {
    min-height: 100dvh;
  }

}

@media (max-width: 780px) {
  .container {
    width: calc(100% - 2.5rem);
  }

  .topbar-inner {
    min-height: 70px;
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--stroke);
    color: var(--text);
    background: transparent;
    text-transform: uppercase;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    padding: 0.65rem 0.8rem;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    width: min(280px, 90vw);
    padding: 1rem;
    border: 1px solid var(--stroke);
    background: rgba(8, 8, 8, 0.98);
    transform: scale(0.98);
    transform-origin: top right;
    opacity: 0;
    pointer-events: none;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .hero-content {
    padding-top: 8.5rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .essencia-top {
    padding-top: 88px;
    padding-bottom: 48px;
  }

  .essencia-video-panel {
    min-height: 100dvh;
  }

  .essencia-video-content {
    min-height: 100dvh;
  }

  .essencia-section .method-caption {
    margin-bottom: 44px;
    letter-spacing: 0.1em;
    font-size: 0.56rem;
  }

  .section {
    padding: 4.6rem 0;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .project-1,
  .project-2,
  .project-3,
  .project-4,
  .project-5,
  .project-6,
  .project-7 {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .footer-inner {
    text-align: center;
  }

  .footer-copyright {
    text-align: center;
    line-height: 1.5;
  }
}