/* 7PERDE — Creative Agency */
:root {
  --ink: #0a0908;
  --stage: #12100e;
  --panel: #1a1714;
  --line: rgba(242, 237, 228, 0.12);
  --cream: #f2ede4;
  --muted: #a39e94;
  --gold: #d4a84b;
  --gold-soft: #e8c878;
  --ember: #c45c2a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.5rem;
  --max: 1200px;
  --font-display: "Syne", sans-serif;
  --font-body: "Sora", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 2.5rem, 1400px);
  margin-inline: auto;
}

/* ----- Nav ----- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
}

.site-header.is-scrolled {
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: min(100% - 2.5rem, 1400px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 110;
}

.logo img {
  width: 42px;
  height: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.logo-text span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--cream);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang-switch button.is-active {
  background: var(--gold);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-soft);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-nav {
  padding: 0.65rem 1.1rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  z-index: 110;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ----- 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,
.hero-media .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.hero-media .hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.35) 0%, rgba(10, 9, 8, 0.55) 45%, rgba(10, 9, 8, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 9, 8, 0.55) 0%, transparent 55%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 0 4.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-brand em {
  font-style: normal;
  color: var(--gold);
}

.hero-lead {
  max-width: 32rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-scroll {
  position: absolute;
  right: max(1.25rem, calc((100% - 1400px) / 2 + 1.25rem));
  bottom: 2rem;
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----- Sections ----- */
.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
  position: relative;
}

.section-dark {
  background: var(--stage);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-label::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 16ch;
}

.section-copy {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-head {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-head.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
}

/* ----- Pillars ----- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pillar {
  background: var(--ink);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  transition: background 0.35s;
}

.pillar:hover {
  background: var(--panel);
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pillar p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ----- Services grid ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-item {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0.25rem 1.25rem;
  transition: border-color 0.3s;
}

.service-item:hover {
  border-color: var(--gold);
}

.service-item img {
  width: 56px;
  height: auto;
  margin-bottom: 1.1rem;
  filter: brightness(0) invert(0.85);
  opacity: 0.85;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.service-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ----- Marquee ----- */
.marquee-wrap {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--panel);
  padding: 1.1rem 0;
}

.marquee {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee span {
  color: var(--muted);
}

.marquee em {
  font-style: normal;
  color: var(--gold);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ----- About / split ----- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.split-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.split-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, var(--ink));
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat span {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ----- Clients ----- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.client-cell {
  background: var(--ink);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  transition: background 0.3s;
}

.client-cell:hover {
  background: var(--panel);
}

.client-cell img {
  max-width: 78%;
  max-height: 58%;
  object-fit: contain;
  filter: grayscale(1) brightness(1.2);
  opacity: 0.75;
  transition: filter 0.3s, opacity 0.3s;
}

.client-cell:hover img {
  filter: none;
  opacity: 1;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}

.filter-btn.is-active,
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ----- Portfolio ----- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.folio-item {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  min-height: 280px;
}

.folio-item:nth-child(1) { grid-column: span 7; min-height: 420px; }
.folio-item:nth-child(2) { grid-column: span 5; min-height: 420px; }
.folio-item:nth-child(3) { grid-column: span 4; }
.folio-item:nth-child(4) { grid-column: span 4; }
.folio-item:nth-child(5) { grid-column: span 4; }
.folio-item:nth-child(6) { grid-column: span 5; min-height: 360px; }
.folio-item:nth-child(7) { grid-column: span 7; min-height: 360px; }

.folio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.folio-item:hover img {
  transform: scale(1.06);
}

.folio-meta {
  position: absolute;
  inset: auto 0 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(10, 9, 8, 0.9));
}

.folio-meta span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.folio-meta h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

/* ----- CTA band ----- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 7rem) 0;
}

.cta-band-bg {
  position: absolute;
  inset: 0;
}

.cta-band-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.78);
}

.cta-band .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  max-width: 16ch;
  margin: 0 auto 1rem;
}

.cta-band p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

/* ----- Page hero (inner) ----- */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 3.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(212, 168, 75, 0.12), transparent 60%),
    var(--ink);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.contact-list {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

.contact-list li strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.contact-list a:hover {
  color: var(--gold);
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--stage);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-row input,
.form-row textarea {
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.25s;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--gold);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-note.success {
  color: #7dba6f;
}

.form-note.error {
  color: #d96b5c;
}

.social-row {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-row a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.social-row a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ----- Why ----- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.why-card {
  background: var(--stage);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.why-card p {
  color: var(--muted);
}

/* ----- Timeline / process ----- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.process-step {
  border-left: 1px solid var(--line);
  padding: 0.5rem 0 0.5rem 1.25rem;
}

.process-step strong {
  display: block;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  background: var(--stage);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 26rem;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

/* ----- Reveal helpers ----- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pillars,
  .split,
  .contact-grid,
  .why-grid,
  .process,
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .process {
    grid-template-columns: 1fr 1fr;
  }

  .folio-item:nth-child(n) {
    grid-column: span 6;
    min-height: 280px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(10, 9, 8, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
  }

  body.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.3rem;
    color: var(--cream);
  }

  .btn-nav {
    display: none;
  }

  .pillars,
  .services-grid,
  .split,
  .contact-grid,
  .why-grid,
  .process,
  .footer-top,
  .stats,
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .folio-item:nth-child(n) {
    grid-column: span 12;
    min-height: 260px;
  }

  .hero-scroll {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
