/* Atelier Marés — premium interior design, Spain */
:root {
  --bg: #0e0d0b;
  --bg-elevated: #171512;
  --surface: #1f1c18;
  --text: #f4efe7;
  --text-soft: #c9c0b4;
  --muted: #8f8578;
  --accent: #c9a66b;
  --accent-soft: rgba(201, 166, 107, 0.16);
  --line: rgba(244, 239, 231, 0.1);
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

/* ——— Nav ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(14, 13, 11, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  border: 1px solid var(--accent);
  padding: 0.55rem 1.1rem !important;
  color: var(--accent) !important;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: currentColor;
  margin: 6px 0;
  transition: transform 0.3s;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 13, 11, 0.35) 0%, rgba(14, 13, 11, 0.2) 40%, rgba(14, 13, 11, 0.92) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(201, 166, 107, 0.18), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 0 5.5rem;
  max-width: 42rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.2s forwards;
}

.hero-brand em {
  font-style: italic;
  color: var(--accent);
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.4s forwards;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 32rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.55s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.7s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.btn-primary {
  background: var(--accent);
  color: #15120f;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: #d8b67a;
  transform: translateY(-1px);
}

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

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

.hero-scroll {
  position: absolute;
  right: 0;
  bottom: 2rem;
  z-index: 1;
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ——— Shared sections ——— */
.section {
  padding: 6.5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}

.section-lead {
  color: var(--text-soft);
  max-width: 36rem;
  font-size: 1.05rem;
}

/* ——— Intro ——— */
.intro {
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: end;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat span {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ——— Projects (8 blocks) ——— */
.projects-head {
  margin-bottom: 3.5rem;
}

.project {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  min-height: 72vh;
  margin-bottom: 2.5rem;
  background: var(--bg-elevated);
  overflow: hidden;
}

.project:nth-child(even) {
  grid-template-columns: 0.85fr 1.15fr;
}

.project:nth-child(even) .project-media {
  order: 2;
}

.project:nth-child(even) .project-body {
  order: 1;
}

.project-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.project:hover .project-media img {
  transform: scale(1.04);
}

.project-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-left: 0;
}

.project:nth-child(even) .project-body {
  border-left: 1px solid var(--line);
  border-right: 0;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.project-body p {
  color: var(--text-soft);
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.project-body p:last-of-type {
  margin-bottom: 1.75rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags li {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid rgba(143, 133, 120, 0.35);
  padding-bottom: 0.15rem;
}

/* ——— Approach ——— */
.approach {
  background:
    linear-gradient(180deg, transparent, rgba(201, 166, 107, 0.04)),
    var(--bg);
  border-block: 1px solid var(--line);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.approach-item {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.approach-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.approach-item h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  margin-bottom: 0.7rem;
}

.approach-item p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ——— Trust ——— */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.trust-item {
  text-align: center;
  padding: 0.5rem;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.trust-item span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ——— CTA ——— */
.cta {
  position: relative;
  overflow: hidden;
}

.cta-panel {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem);
  background:
    linear-gradient(135deg, rgba(14, 13, 11, 0.55), rgba(14, 13, 11, 0.82)),
    url("https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=1600&q=80")
      center / cover no-repeat;
  border: 1px solid var(--line);
}

.cta-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  max-width: 16ch;
  margin-bottom: 1rem;
}

.cta-panel p {
  color: var(--text-soft);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.cta-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.cta-contacts div span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.cta-contacts a:hover {
  color: var(--accent);
}

/* ——— Footer ——— */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-row p {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-row nav {
  display: flex;
  gap: 1.25rem;
}

.footer-row nav a {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-row nav a:hover {
  color: var(--accent);
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .intro-grid,
  .approach-grid,
  .trust-bar {
    grid-template-columns: 1fr;
  }

  .intro-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .project,
  .project:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .project:nth-child(even) .project-media,
  .project:nth-child(even) .project-body {
    order: initial;
  }

  .project-body,
  .project:nth-child(even) .project-body {
    border: 1px solid var(--line);
    border-top: 0;
  }

  .project-media {
    min-height: 300px;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(14, 13, 11, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
    z-index: 50;
  }

  .hero-content {
    padding-bottom: 4rem;
  }

  .hero-scroll {
    display: none;
  }

  .intro-stats {
    gap: 1rem;
  }

  .stat strong {
    font-size: 1.8rem;
  }
}
