/* =========================================================================
   M+ | More Than Marche
   Premium bilingual one-page site
   ========================================================================= */

/* ---------------- Design tokens ---------------- */
:root {
  /* Palette */
  --charcoal: #1C1C1C;
  --ivory:    #F5F2EB;
  --terracotta: #C46A3D;
  --olive:    #6B7A4B;
  --sand:     #D8C9B1;
  --gold:     #B89B5E;

  --ivory-2:  #EFEAE0;
  --charcoal-soft: #2A2926;
  --line: rgba(28, 28, 28, 0.14);
  --line-light: rgba(245, 242, 235, 0.18);

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section-y: clamp(5rem, 11vh, 9.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--charcoal);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--terracotta); color: var(--ivory); }

/* ---------------- Reusable ---------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.section__index {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  color: var(--terracotta);
  font-weight: 400;
  margin-bottom: 1rem;
}
.section__label {
  display: block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--olive);
  font-weight: 500;
  margin-bottom: 1.6rem;
}

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-bottom: 1.8rem;
}
.section__title--light { color: var(--ivory); }

.section__head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section__head--left { text-align: left; margin-inline: 0; }

.lead {
  font-size: clamp(1.12rem, 1.7vw, 1.4rem);
  line-height: 1.6;
  color: var(--charcoal-soft);
  font-weight: 300;
  margin-bottom: 1.4rem;
}
.lead--center { text-align: center; }
.lead--light { color: rgba(245, 242, 235, 0.85); }

p { color: var(--charcoal-soft); max-width: 60ch; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border-radius: 999px;
  transition: transform 0.5s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn--primary { background: var(--terracotta); color: var(--ivory); }
.btn--primary:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(184,155,94,0.3); }
.btn--dark { background: var(--charcoal); color: var(--ivory); }
.btn--dark:hover { background: var(--olive); transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--charcoal); }
.btn--gold:hover { background: var(--terracotta); color: var(--ivory); transform: translateY(-2px); }

/* ---------------- Scroll progress ---------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ---------------- Navigation ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.5s var(--ease);
  padding-block: 1.5rem;
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav.is-scrolled {
  background: rgba(245, 242, 235, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.9rem;
}

.nav__brand { position: relative; display: inline-flex; align-items: center; }
.nav__logo { height: 26px; width: auto; transition: opacity 0.5s var(--ease); }
.nav__logo--dark { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
/* Hero is dark: show ivory mark until scrolled, then charcoal mark */
.nav.is-scrolled .nav__logo--light { opacity: 0; }
.nav.is-scrolled .nav__logo--dark { opacity: 1; }

.nav__links { display: flex; gap: clamp(1rem, 1.8vw, 2.1rem); }
.nav__links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ivory);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.35s var(--ease);
}
.nav.is-scrolled .nav__links a { color: var(--charcoal); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--olive);
  transition: width 0.4s var(--ease);
}
.nav__links a:hover::after,
.nav__links a.is-current::after { width: 100%; }
.nav__links a:hover,
.nav__links a.is-current { color: var(--olive); }
.nav.is-scrolled .nav__links a:hover,
.nav.is-scrolled .nav__links a.is-current { color: var(--olive); }

.nav__actions { display: flex; align-items: center; gap: 1.2rem; }

.lang-switch { display: inline-flex; align-items: center; gap: 0.4rem; }
.lang-switch__btn {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: var(--ivory);
  opacity: 0.6;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
  padding: 0.2rem 0.1rem;
}
.nav.is-scrolled .lang-switch__btn { color: var(--charcoal); }
.lang-switch__btn.is-active { opacity: 1; color: var(--gold); font-weight: 500; }
.nav.is-scrolled .lang-switch__btn.is-active { color: var(--terracotta); }
.lang-switch__btn:hover { opacity: 1; }
.lang-switch__sep { opacity: 0.4; color: var(--ivory); font-size: 0.75rem; }
.nav.is-scrolled .lang-switch__sep { color: var(--charcoal); }

/* hamburger */
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav__toggle span {
  width: 24px; height: 1.5px;
  background: var(--ivory);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), background-color 0.4s var(--ease);
}
.nav.is-scrolled .nav__toggle span { background: var(--charcoal); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ivory);
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: rgba(28, 28, 28, 0.40);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__typing {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ivory);
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
}
.hero__typing-text {
  display: inline;
  min-width: 0;
}
.hero__cursor {
  display: inline-block;
  color: var(--terracotta);
  font-weight: 300;
  animation: cursorBlink 0.85s step-end infinite;
  margin-left: 2px;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---------------- Media frames / image slots ---------------- */
.section__media { position: relative; }
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(28,28,28,0.05), rgba(28,28,28,0)),
    repeating-linear-gradient(45deg, var(--sand) 0 18px, var(--ivory-2) 18px 36px);
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 60px -30px rgba(28,28,28,0.35);
  transition: transform 0.8s var(--ease);
}
.section__media:hover .media-frame { transform: translateY(-6px); }
.media-frame::after {
  content: attr(data-empty);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic;
  color: rgba(28,28,28,0.35); font-size: 1rem;
}
[data-img-slot].has-img .media-frame { background-image: none; }
[data-img-slot].has-img .media-frame::after { display: none; }

/* ---------------- 2. Does ---------------- */
.section--does { background: var(--ivory-2); }
.disciplines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.disciplines li {
  background: var(--ivory-2);
  padding: clamp(2rem, 4vw, 3.4rem) 1.5rem;
  text-align: center;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.disciplines li span {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 500;
  color: var(--charcoal);
  transition: color 0.5s var(--ease);
}
.disciplines li:hover { background: var(--olive); }
.disciplines li:hover span { color: var(--ivory); }
.does__outro {
  text-align: center;
  max-width: 70ch;
  margin-inline: auto;
  font-size: 1.05rem;
}

/* ---------------- About / quote ---------------- */
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.3;
  color: var(--terracotta);
  border-left: 2px solid var(--gold);
  padding-left: 1.6rem;
  margin-top: 2.4rem;
  max-width: none;
}

/* ---------------- 3. Mission ---------------- */
.grid-2--reverse .section__media { order: -1; }
.mission-list { counter-reset: m; margin-top: 0.5rem; }
.mission-list li {
  counter-increment: m;
  position: relative;
  padding: 1.5rem 0 1.5rem 3.4rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-family: var(--serif);
  color: var(--charcoal);
  max-width: none;
}
.mission-list li:first-child { border-top: 1px solid var(--line); }
.mission-list li::before {
  content: "0" counter(m);
  position: absolute; left: 0; top: 1.6rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  font-weight: 500;
}

/* ---------------- 4. Meaning (dark, image bg) ---------------- */
.section--meaning {
  position: relative;
  color: var(--ivory);
  text-align: center;
  overflow: hidden;
}
.meaning__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28,28,28,0.82), rgba(28,28,28,0.86)),
    linear-gradient(135deg, var(--olive), var(--charcoal));
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.section--meaning .container { position: relative; z-index: 1; }
.meaning__concepts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.2rem;
  margin-block: 2.5rem 3rem;
}
.meaning__concepts span {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: var(--sand);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.meaning__concepts span:hover { border-color: var(--gold); color: var(--charcoal); background: var(--gold); }
.meaning__feature {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  line-height: 1.2;
  color: var(--ivory);
  max-width: none;
}

/* ---------------- 5. Values ---------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.value-card {
  background: var(--ivory-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), background-color 0.6s var(--ease);
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.value-card:hover {
  transform: translateY(-6px);
  background: var(--ivory);
  box-shadow: 0 26px 50px -28px rgba(28,28,28,0.4);
}
.value-card__num {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.value-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-bottom: 0.8rem;
  color: var(--charcoal);
}
.value-card p { font-size: 0.98rem; color: var(--charcoal-soft); }

/* ---------------- 6. Manifesto ---------------- */
.section--manifesto {
  position: relative;
  background: var(--charcoal);
  color: var(--ivory);
  text-align: center;
  overflow: hidden;
}
.manifesto__bg {
  position: absolute; inset: 0;
  opacity: 0.22;
  background: radial-gradient(circle at 30% 20%, var(--terracotta), transparent 55%),
              radial-gradient(circle at 75% 80%, var(--olive), transparent 55%);
  background-size: cover;
  background-position: center;
}
.manifesto__bg.has-img { opacity: 1; }
.section--manifesto .container { position: relative; z-index: 1; }
.section__index--light { color: var(--gold); }
.section__label--light { color: var(--sand); }
.manifesto__body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.4vw, 3.4rem);
  line-height: 1.45;
  color: var(--ivory);
  max-width: 22ch;
  margin: 1.5rem auto 0;
}
.manifesto__body .manifesto-accent { color: var(--terracotta); font-style: italic; }
.manifesto__sign {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--gold);
  margin-top: 2.5rem;
  max-width: none;
}

/* ---------------- 7. Brands ---------------- */
.brands-list { border-top: 1px solid var(--line); }
.brand-row {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: baseline;
  padding: clamp(1.8rem, 3.5vw, 2.8rem) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease);
}
.brand-row:hover { padding-left: clamp(0.5rem, 2vw, 1.5rem); }
.brand-row__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  color: var(--charcoal);
  letter-spacing: 0.01em;
  transition: color 0.4s var(--ease);
}
.brand-row:hover .brand-row__name { color: var(--terracotta); }
.brand-row__desc { font-size: 1rem; color: var(--charcoal-soft); max-width: 52ch; }
.brand-signature {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--olive);
  color: var(--ivory);
  border-radius: 4px;
}
.brand-signature h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.8rem;
}
.brand-signature p { color: rgba(245,242,235,0.9); margin-inline: auto; }

/* ---------------- 8. Identity ---------------- */
.section--identity { background: var(--ivory-2); }
.identity-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 2rem;
  margin-top: 2.5rem;
}
.identity-feature h4 {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: var(--olive);
  margin-bottom: 0.6rem;
}
.identity-feature p { font-size: 0.97rem; }
.identity-mark {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  border-radius: 6px;
  box-shadow: 0 40px 70px -40px rgba(28,28,28,0.6);
}
.identity-mark__logo { width: 64%; height: auto; }

/* ---------------- Gallery ---------------- */
.section--gallery { padding-bottom: 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(120px, 16vw, 220px);
  gap: clamp(0.6rem, 1.2vw, 1rem);
  padding-inline: var(--gutter);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.gallery-figure {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(28,28,28,0.06), rgba(28,28,28,0)),
    repeating-linear-gradient(45deg, var(--sand) 0 16px, var(--ivory-2) 16px 32px);
  background-size: cover;
  background-position: center;
}
.gallery-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.gallery-figure:hover img { transform: scale(1.06); }
.gallery-figure__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(28,28,28,0.7));
  color: var(--ivory);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.gallery-figure:hover .gallery-figure__cap { opacity: 1; transform: translateY(0); }

/* span helpers for editorial layout */
.g-tall  { grid-row: span 2; }
.g-wide  { grid-column: span 6; }
.g-half  { grid-column: span 6; }
.g-third { grid-column: span 4; }
.g-two3  { grid-column: span 8; }
.g-full  { grid-column: span 12; }

/* ---------------- Contact ---------------- */
.section--contact { background: var(--charcoal); color: var(--ivory); }
.section--contact .section__title { color: var(--ivory); }
.section--contact .section__label { color: var(--sand); }
.section--contact .lead { color: rgba(245,242,235,0.82); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.field { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.field label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sand);
}
.field input, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-light);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.7rem 0;
  transition: border-color 0.4s var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: rgba(245,242,235,0.4); }

.contact-aside { display: flex; flex-direction: column; gap: 2.5rem; }
.contact-block h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--ivory);
}
.contact-block p { color: rgba(245,242,235,0.75); font-size: 0.97rem; margin-bottom: 1rem; }

.news-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.news-form input {
  flex: 1 1 180px;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: var(--ivory);
  padding: 0.8rem 1.2rem;
  font-family: var(--sans);
  font-size: 0.92rem;
}
.news-form input:focus { outline: none; border-color: var(--gold); }
.news-form input::placeholder { color: rgba(245,242,235,0.45); }

.ig-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.ig-card:hover { border-color: var(--gold); background: rgba(184,155,94,0.08); transform: translateY(-2px); }
.ig-card__icon { color: var(--gold); display: flex; }
.ig-card__text { display: flex; flex-direction: column; line-height: 1.3; }
.ig-card__text strong { font-weight: 500; font-size: 1rem; color: var(--ivory); }
.ig-card__text span { font-size: 0.78rem; color: var(--sand); letter-spacing: 0.04em; }
.ig-card__arrow { margin-left: auto; color: var(--gold); font-size: 1.2rem; transition: transform 0.4s var(--ease); }
.ig-card:hover .ig-card__arrow { transform: translateX(4px); }

.contact-email { color: var(--gold); border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); }
.contact-email:hover { border-color: var(--gold); }

.form-feedback { font-size: 0.85rem; color: var(--gold); min-height: 1.2em; margin-top: 0.8rem; }

/* ---------------- Footer ---------------- */
.footer { background: var(--charcoal-soft); color: var(--ivory); padding-top: clamp(3.5rem, 6vw, 5.5rem); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}
.footer__logo { width: 96px; height: auto; margin-bottom: 1.4rem; }
.footer__tagline { color: var(--sand); font-size: 0.9rem; letter-spacing: 0.04em; }
.footer__line { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ivory); margin-top: 0.3rem; }
.footer__col h4 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer__col a {
  display: block;
  color: rgba(245,242,235,0.78);
  font-size: 0.92rem;
  padding-block: 0.35rem;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.footer__col a:hover { color: var(--gold); padding-left: 4px; }
.footer__lang { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.4rem; }
.footer__lang > span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--sand); margin-right: 0.3rem; }
.footer__lang .lang-switch__btn { color: rgba(245,242,235,0.7); }
.footer__lang .lang-switch__btn.is-active { color: var(--gold); }
.footer__lang .lang-switch__sep { color: rgba(245,242,235,0.4); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 1.8rem;
  font-size: 0.78rem;
  color: rgba(245,242,235,0.55);
  letter-spacing: 0.04em;
}

/* ---------------- Consent gate (body state) ---------------- */
body.consent-pending { overflow: hidden; }

/* ---------------- Cookie consent — full-screen centered overlay ---------------- */
.cookie-banner {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(28, 28, 28, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: consentFadeIn 0.6s var(--ease) both;
}
.cookie-banner.is-visible { display: flex; }
@keyframes consentFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-banner__inner {
  background: var(--charcoal);
  border: 1px solid rgba(184, 155, 94, 0.22);
  border-radius: 8px;
  max-width: 560px;
  width: 100%;
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  text-align: center;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  animation: consentSlideUp 0.7s var(--ease) both;
}
@keyframes consentSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.2rem;
}
.cookie-banner__icon svg {
  width: 36px;
  height: 36px;
  color: var(--gold);
}
.cookie-banner__content h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--ivory);
  margin-bottom: 0.8rem;
  letter-spacing: 0.01em;
}
.cookie-banner__content p {
  color: rgba(245, 242, 235, 0.72);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: none;
  margin-bottom: 0.8rem;
}
.cookie-banner__link {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  border-bottom: 1px solid rgba(184, 155, 94, 0.35);
  padding-bottom: 1px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.cookie-banner__link:hover { border-color: var(--gold); color: var(--ivory); }
.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: stretch;
}
.cookie-banner__actions .btn { justify-content: center; width: 100%; }
.btn--outline {
  background: transparent;
  color: rgba(245, 242, 235, 0.7);
  border: 1px solid rgba(245, 242, 235, 0.2);
  font-size: 0.78rem;
}
.btn--outline:hover {
  background: rgba(245, 242, 235, 0.06);
  border-color: rgba(245, 242, 235, 0.4);
  color: var(--ivory);
  transform: translateY(-2px);
}

/* ---------------- Privacy policy overlay ---------------- */
.privacy-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(28, 28, 28, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: consentFadeIn 0.5s var(--ease) both;
}
.privacy-overlay.is-visible { display: flex; }
.privacy-overlay__panel {
  position: relative;
  background: var(--charcoal);
  border: 1px solid rgba(184, 155, 94, 0.18);
  border-radius: 8px;
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.7);
  animation: consentSlideUp 0.6s var(--ease) both;
}
.privacy-overlay__header {
  flex-shrink: 0;
  padding: clamp(1.8rem, 3.5vw, 2.5rem) clamp(2rem, 4vw, 3rem) 0;
  text-align: center;
  border-bottom: 1px solid rgba(184, 155, 94, 0.12);
  padding-bottom: clamp(1.2rem, 2vw, 1.6rem);
}
.privacy-overlay__header h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--ivory);
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}
.privacy-overlay__header p {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  max-width: none;
}
.privacy-overlay__close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  font-size: 1.5rem;
  color: rgba(245, 242, 235, 0.5);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(245, 242, 235, 0.1);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.privacy-overlay__close:hover { background: rgba(245, 242, 235, 0.08); color: var(--ivory); border-color: rgba(245, 242, 235, 0.2); }
.privacy-overlay__body {
  flex: 1;
  overflow-y: auto;
  padding: clamp(1.5rem, 3vw, 2.2rem) clamp(2rem, 4vw, 3rem);
  color: rgba(245, 242, 235, 0.82);
  font-size: 0.92rem;
  line-height: 1.72;
}
.privacy-overlay__body section {
  margin-bottom: 2.2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(184, 155, 94, 0.08);
}
.privacy-overlay__body section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.privacy-overlay__body h3 {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 0.9rem;
  position: relative;
  padding-left: 1.2rem;
}
.privacy-overlay__body h3::before {
  content: "";
  position: absolute;
  left: 0; top: 0.15em;
  width: 3px; height: 0.7em;
  background: var(--gold);
  border-radius: 2px;
}
.privacy-overlay__body p {
  color: rgba(245, 242, 235, 0.78);
  max-width: none;
  margin-bottom: 0.7rem;
}
.privacy-overlay__body ul {
  margin: 0.7rem 0 0.7rem 1.6rem;
  list-style: none;
}
.privacy-overlay__body li {
  color: rgba(245, 242, 235, 0.75);
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  line-height: 1.65;
  position: relative;
  padding-left: 1rem;
}
.privacy-overlay__body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
}
.privacy-overlay__body strong { color: var(--ivory); font-weight: 500; }
.privacy-overlay__footer {
  flex-shrink: 0;
  padding: 1.4rem clamp(2rem, 4vw, 3rem) clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid rgba(184, 155, 94, 0.12);
  display: flex;
  justify-content: center;
}
.privacy-overlay__footer .btn { min-width: 200px; justify-content: center; }
/* scrollbar styling */
.privacy-overlay__body::-webkit-scrollbar { width: 3px; }
.privacy-overlay__body::-webkit-scrollbar-track { background: transparent; }
.privacy-overlay__body::-webkit-scrollbar-thumb { background: rgba(184, 155, 94, 0.4); border-radius: 4px; }
.privacy-overlay__body::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------------- Reveal animations ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* Mobile nav panel */
  .nav__links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(82vw, 360px);
    z-index: 102;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 5rem 2.5rem 2.5rem;
    background: var(--charcoal);
    transform: translateX(100%);
    transition: transform 0.55s var(--ease);
    align-items: stretch;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open .nav__links {
    transform: translateX(0);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  }
  /* Remove backdrop-filter on nav when menu is open — prevents
     creating a containing block that traps the fixed-position panel */
  .nav.is-open,
  .nav.is-scrolled.is-open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  /* Backdrop overlay */
  .nav.is-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(28, 28, 28, 0.6);
    z-index: 101;
  }
  /* Link styles — always ivory, never fade on scroll */
  .nav__links a {
    display: block;
    color: var(--ivory) !important;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(245, 242, 235, 0.08);
    width: 100%;
    transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
  }
  .nav__links a:last-child { border-bottom: none; }
  .nav__links a:hover,
  .nav__links a.is-current {
    color: var(--gold) !important;
    padding-left: 0.5rem;
  }
  .nav__links a::after { display: none; }
  /* Hamburger toggle */
  .nav__toggle { display: flex; z-index: 103; }
  .nav.is-open .nav__toggle span { background: var(--ivory); }
  /* Lock body scroll when menu is open */
  body.nav-open { overflow: hidden; }

  .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .grid-2--reverse .section__media { order: 0; }
  .disciplines { grid-template-columns: repeat(2, 1fr); }
  .identity-features { grid-template-columns: 1fr; }
  .brand-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .section__media { max-width: 520px; margin-inline: auto; width: 100%; }
}

@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .disciplines { grid-template-columns: 1fr; }
  .lang-switch { margin-right: 0.5rem; }
  /* gallery collapses to simpler spans */
  .g-third, .g-two3, .g-wide, .g-half { grid-column: span 12; }
  .g-tall { grid-row: span 1; }
  /* hero typing scales for narrow viewports */
  .hero__typing { font-size: clamp(1.4rem, 7vw, 2.2rem); white-space: normal; text-align: center; justify-content: center; }
}
