/* ==========================================================
   Home-specific styles — extracted from index.html
   Loaded after styles.css on the landing page
   ========================================================== */

/* Defensive — kill any horizontal scroll on the landing page */
html, body {
  overflow-x: clip !important;
  max-width: 100vw !important;
}
/* Clip every direct child container too — bulletproof against any
   element that tries to bleed beyond the viewport (negative margins,
   transforms, fixed positioning, etc.) */
.site-header, main, .site-footer { max-width: 100vw; overflow-x: clip; }

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 64px;
  overflow: hidden;
  background: var(--ivoire);
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-bg .hero-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  background-image: url("/landing/hero-marble.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.06);
  transition: transform 6s var(--ease);
}
.hero.loaded .hero-bg .hero-img {
  transform: scale(1);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 0% 50%, var(--ivoire) 0%, var(--ivoire) 32%, rgba(246, 244, 239, 0.85) 48%, rgba(246, 244, 239, 0) 70%),
    linear-gradient(90deg, var(--ivoire) 0%, rgba(246, 244, 239, 0.7) 35%, rgba(246, 244, 239, 0) 60%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(246, 244, 239, 0) 0%, var(--ivoire) 100%);
}
.hero-veining {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(ellipse 80% 30% at 20% 60%, rgba(189, 167, 134, 0.15), transparent),
    radial-gradient(ellipse 60% 20% at 80% 30%, rgba(189, 167, 134, 0.12), transparent);
}
.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  padding: 8px 16px 8px 14px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 100px;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--sauge);
  border-radius: 50%;
  animation: heroPulse 2.4s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-eyebrow span {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--encre);
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  max-width: 16ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--sauge);
  font-variation-settings: "SOFT" 100;
  position: relative;
  display: inline-block;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.12em;
  background: var(--sauge);
  opacity: 0.18;
  border-radius: 2px;
}
.hero-sub {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.6;
  color: var(--texte);
  max-width: 46ch;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 28px;
  margin-top: 36px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 720px;
}
.hero-trust-item {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 16px 14px;
  box-shadow: 0 8px 24px rgba(60, 50, 30, 0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.hero-trust-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(60, 50, 30, 0.10);
}
.hero-trust-item .num {
  font-family: var(--ff-display);
  font-size: 26px;
  line-height: 1;
  color: var(--sauge);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.hero-trust-item .num small {
  font-size: 0.55em;
  color: var(--sauge);
  font-weight: 400;
}
.hero-trust-item .lbl {
  font-size: 11.5px;
  color: var(--texte);
  line-height: 1.35;
}
.hero-side {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(60, 50, 30, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  max-width: 360px;
  margin-left: auto;
}
.hero-side .uppercase-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sauge);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-side .uppercase-tag::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--sauge);
}
.hero-side h4 {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 14px;
}
.hero-side p {
  font-size: 13px;
  color: var(--texte);
  line-height: 1.6;
}
.hero-side .meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--texte-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 980px) {
  .hero-bg .hero-img { width: 100%; opacity: 0.55; }
  .hero-bg::before {
    background: linear-gradient(180deg, var(--ivoire) 0%, rgba(246, 244, 239, 0.7) 60%, var(--ivoire) 100%);
  }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-side { max-width: 100%; margin-left: 0; }
  .hero-trust { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Narrative Intro */
.intro-narrative {
  padding: 140px 0 100px;
  background: var(--ivoire);
  position: relative;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-text .kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sauge);
  font-weight: 600;
  margin-bottom: 22px;
}
.intro-text h2 {
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  text-wrap: balance;
  max-width: 18ch;
}
.intro-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--texte);
  max-width: 50ch;
}
.intro-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(60, 50, 30, 0.14);
}
.intro-visual .marble {
  position: absolute;
  inset: 0;
}
.intro-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 100px;
  padding: 10px 18px 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.intro-caption .dot {
  width: 6px;
  height: 6px;
  background: var(--sauge);
  border-radius: 50%;
}
@media (max-width: 900px) {
  .intro-narrative { padding: 90px 0 70px; }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-visual { aspect-ratio: 4 / 3; max-height: 420px; }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
}
.about-visual .marble {
  position: absolute;
  inset: 0;
}
.about-visual .badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--encre);
}
.about-visual .floating-card {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--ivoire-2);
  padding: 22px;
  border-radius: 14px;
  width: 220px;
  box-shadow: 0 24px 60px rgba(26, 29, 26, 0.18);
}
.about-visual .floating-card h5 {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 4px;
}
.about-visual .floating-card p {
  font-size: 12px;
  color: var(--texte-mute);
}
.about-content h2 { margin-bottom: 32px; }
.about-content p + p { margin-top: 20px; }
.about-content .btn { margin-top: 36px; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.service {
  background: var(--ivoire-2);
  padding: 40px 36px;
  transition: background 0.4s var(--ease);
  position: relative;
}
.service:hover { background: #fff; }
.service-num {
  font-family: var(--ff-display);
  font-size: 14px;
  color: var(--sauge);
  letter-spacing: 0.05em;
}
.service-icon {
  width: 48px;
  height: 48px;
  margin: 12px 0 28px;
  color: var(--sauge);
}
.service h3 { font-size: 26px; margin-bottom: 12px; }
.service p {
  color: var(--texte-mute);
  font-size: 14.5px;
  line-height: 1.6;
}
.service .more {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.service:hover .more { opacity: 1; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* Chooser */
.chooser-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.chooser-tab {
  padding: 14px 22px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  color: var(--encre);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.chooser-tab:hover { background: rgba(255, 255, 255, 0.5); }
.chooser-tab.active {
  background: var(--encre);
  color: var(--ivoire-2);
  border-color: var(--encre);
}
.chooser-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  background: var(--ivoire-2);
  padding: 56px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.chooser-left h3 {
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 20px;
  max-width: 14ch;
}
.chooser-left p {
  color: var(--texte-mute);
  margin-bottom: 28px;
}
.chooser-mats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.chip {
  background: var(--ivoire);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--line);
  color: var(--encre);
}
.chooser-right .marble {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
}
@media (max-width: 800px) {
  .chooser-content { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
}

/* Featured projects */
.projects-feat {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.proj-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.proj-card .marble {
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease);
}
.proj-card:hover .marble { transform: scale(1.06); }
.proj-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55));
}
.proj-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  color: var(--ivoire-2);
  z-index: 2;
}
.proj-info .proj-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}
.proj-info h4 {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2vw, 32px);
  color: var(--ivoire-2);
  line-height: 1.15;
  margin: 0;
  font-weight: 400;
}
.proj-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivoire-2);
  z-index: 2;
  transition: background 0.3s ease, transform 0.3s ease;
}
.proj-card:hover .proj-arrow {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(-45deg);
}
.proj-1 { grid-column: span 7; aspect-ratio: 16 / 10; }
.proj-2 { grid-column: span 5; aspect-ratio: 16 / 10; }
.proj-3 { grid-column: span 4; aspect-ratio: 4 / 5; }
.proj-4 { grid-column: span 4; aspect-ratio: 4 / 5; }
.proj-5 { grid-column: span 4; aspect-ratio: 4 / 5; }
@media (max-width: 800px) {
  .projects-feat { grid-template-columns: 1fr 1fr; }
  .proj-1, .proj-2, .proj-3, .proj-4, .proj-5 {
    grid-column: span 1;
    aspect-ratio: 4 / 5;
  }
}

/* Process timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  padding: 32px 0 0;
  border-top: 1px solid rgba(246, 244, 239, 0.25);
}
.step .step-num {
  font-family: var(--ff-display);
  font-size: 14px;
  color: var(--bronze);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.step h4 {
  font-family: var(--ff-display);
  font-size: 28px;
  color: var(--ivoire-2);
  margin: 0 0 12px;
  font-weight: 400;
}
.step p {
  font-size: 14px;
  color: rgba(246, 244, 239, 0.7);
  line-height: 1.6;
}
@media (max-width: 800px) { .timeline { grid-template-columns: 1fr; } }

/* Testimonials */
.testi-section {
  background: linear-gradient(180deg, var(--ivoire) 0%, var(--ivoire-2) 100%);
  position: relative;
  overflow: hidden;
  padding: 64px 0;
}
.testi-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}
.testi-head-text { max-width: 56ch; }
.testi-head h2 { margin-top: 18px; }
.testi-head .lede {
  margin-top: 22px;
  font-size: 16px;
  color: var(--texte-mute);
  line-height: 1.6;
  max-width: 50ch;
}
.testi-controls { display: flex; gap: 10px; }
.testi-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(31, 49, 88, 0.18);
  background: var(--ivoire-2);
  color: #1f3158;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  flex-shrink: 0;
}
.testi-arrow:hover {
  background: #1f3158;
  color: var(--ivoire-2);
  border-color: #1f3158;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 49, 88, 0.20);
}
.testi-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.testi-arrow svg { width: 18px; height: 18px; }
.testi-track-wrap {
  position: relative;
  margin: 0 -32px;
  padding: 12px 32px 16px;
}
.testi-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 24px calc(50% - 220px);
}
.testi-track::-webkit-scrollbar { display: none; }
.testi {
  flex: 0 0 440px;
  background: var(--ivoire-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px 40px 36px;
  scroll-snap-align: center;
  transition: transform 0.55s var(--ease), opacity 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.55s var(--ease);
  transform: scale(0.94);
  opacity: 0.6;
  filter: saturate(0.85);
  box-shadow: 0 4px 14px rgba(60, 50, 30, 0.04);
  position: relative;
  overflow: hidden;
}
.testi::before {
  content: "\201C";
  position: absolute;
  top: -36px;
  left: 24px;
  font-family: var(--ff-display);
  font-size: 220px;
  line-height: 1;
  color: rgba(31, 49, 88, 0.04);
  pointer-events: none;
  transition: color 0.55s var(--ease), transform 0.55s var(--ease);
}
.testi.is-active {
  transform: scale(1.04);
  opacity: 1;
  filter: saturate(1);
  border-color: rgba(31, 49, 88, 0.18);
  box-shadow: 0 30px 60px rgba(31, 49, 88, 0.10), 0 8px 24px rgba(60, 50, 30, 0.06);
}
.testi.is-active::before {
  color: rgba(31, 49, 88, 0.08);
  transform: scale(1.05);
}
.testi .quote {
  font-family: var(--ff-display);
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--encre);
  margin-bottom: 32px;
  font-weight: 400;
  position: relative;
  z-index: 1;
  text-wrap: pretty;
}
.testi .divider {
  width: 32px;
  height: 1px;
  background: rgba(31, 49, 88, 0.25);
  margin-bottom: 22px;
}
.testi .who {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(31, 49, 88, 0.12), rgba(31, 49, 88, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 19px;
  color: #1f3158;
  flex-shrink: 0;
}
.testi .who-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--encre);
}
.testi .who-role {
  font-size: 12.5px;
  color: var(--texte-mute);
  margin-top: 3px;
}
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.testi-dot {
  width: 24px;
  height: 4px;
  border-radius: 4px;
  background: rgba(31, 49, 88, 0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}
.testi-dot.is-active {
  background: #1f3158;
  width: 40px;
}
@media (max-width: 900px) {
  .testi-section { padding: 40px 0; }
  .testi-head {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
  }
  .testi-controls { justify-self: start; }
  .testi { flex: 0 0 86%; padding: 32px 28px 28px; }
  .testi-track { padding: 12px 7%; }
  .testi .quote { font-size: 19px; }
  .testi-arrow { width: 46px; height: 46px; }
  .testi-dots { margin-top: 12px; }
  /* Prevent horizontal page overflow caused by the carousel's negative margins */
  .testi-track-wrap {
    margin: 0;
    padding: 6px 0 8px;
  }
}

/* Final CTA */
.final-cta {
  padding: 96px 0;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(62, 92, 74, 0.10), transparent 70%),
    var(--ivoire-2);
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .final-cta { padding: 56px 0; }
}
.final-cta h2 {
  max-width: 18ch;
  margin: 0 auto 28px;
  font-size: clamp(40px, 6vw, 84px);
}
.final-cta p {
  max-width: 56ch;
  margin: 0 auto 40px;
  color: var(--texte-mute);
  font-size: 18px;
}
.final-cta .btns {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: auto; }
}
