/* ── DESIGN TOKENS ───────────────────────────────────────── */
:root {
  --red: #c8102e;
  --green: #006233;
  --dark: #1a1a1a;
  --mid: #444444;
  --light: #f5f2ee;
  --white: #ffffff;
  --gold: #b89a5e;
  --gold-light: #d4b87a;
  --cream: #ede9e3;
  --surface: var(--light);
  --text-body: var(--mid);
  --text-head: var(--dark);
  --border: rgba(184, 154, 94, 0.25);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Raleway", sans-serif;
  --section-gap: clamp(5rem, 10vw, 9rem);
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text-body);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.75;
  overflow-x: hidden;
}

/* animation pour scroll */
.fade-in-element {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-element[data-delay="1"] {
  transition-delay: 0.12s;
}
.fade-in-element[data-delay="2"] {
  transition-delay: 0.24s;
}
.fade-in-element[data-delay="3"] {
  transition-delay: 0.36s;
}
.fade-in-element[data-delay="4"] {
  transition-delay: 0.48s;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ornament span {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.ornament em {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}

/* hero */
.about-hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.hero-canvas {
  position: relative;
  background: var(--dark);
  overflow: hidden;
}
.hero-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 30% 60%,
      rgba(200, 16, 46, 0.18) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(0, 98, 51, 0.14) 0%,
      transparent 50%
    );
  z-index: 1;
}
.hero-image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transform: scale(1.04);
  transition: transform 14s ease-out;
}
.about-hero:hover .hero-image-wrap img {
  transform: scale(1);
}

/*to not cover the text by the image*/
.hero-identity {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(3rem, 6vw, 5rem);
  padding-top: 120px;
}
.hero-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 1.02;
  color: var(--white);
  margin-bottom: 2.5rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.hero-headline em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-rule {
  width: 60px;
  height: 1px;
  background: var(--red);
  margin-bottom: 2rem;
}
.hero-sub {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  max-width: 32ch;
  line-height: 1.6;
}

.hero-aside {
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(3rem, 6vw, 5rem);
  gap: 3.5rem;
  border-left: 1px solid var(--border);
}
.stat-block {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1;
}
.stat-label {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 0.4rem;
}

/* ─philo */
.philosophy {
  padding: var(--section-gap) clamp(2rem, 8vw, 8rem);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}
.philosophy-left {
  position: sticky;
  top: 5rem;
}
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.2rem;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-head);
  margin-bottom: 2rem;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}
.philosophy-body p {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 1.8rem;
}
.philosophy-pull {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--dark);
  line-height: 1.35;
  padding: 2rem 0 2rem 2rem;
  border-left: 2px solid var(--red);
  margin: 2.5rem 0;
}

/* manifest*/
.manifesto-band {
  background: var(--dark);
  padding: clamp(4rem, 7vw, 6rem) clamp(2rem, 8vw, 8rem);
  position: relative;
  overflow: hidden;
}
.manifesto-inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--white);
  line-height: 1.3;
  max-width: 820px;
  margin: 0 auto 2rem;
}
.manifesto-attr {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

/* expreiience part*/
.experience {
  padding: var(--section-gap) clamp(2rem, 8vw, 8rem);
  max-width: 1400px;
  margin: 0 auto;
}
.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  gap: 2rem;
}
.exp-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5px;
}
.exp-card {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
}
.exp-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}
.exp-card:hover::after {
  transform: scaleX(1);
}

.exp-card:nth-child(1) {
  grid-column: 1 / 6;
  grid-row: 1;
}
.exp-card:nth-child(2) {
  grid-column: 6 / 9;
  grid-row: 1;
}
.exp-card:nth-child(3) {
  grid-column: 9 / 13;
  grid-row: 1;
}
.exp-card:nth-child(4) {
  grid-column: 1 / 5;
  grid-row: 2;
}
.exp-card:nth-child(5) {
  grid-column: 5 / 10;
  grid-row: 2;
}
.exp-card:nth-child(6) {
  grid-column: 10 / 13;
  grid-row: 2;
}

.exp-card-inner {
  padding: clamp(2rem, 3vw, 2.8rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  position: relative;
  z-index: 1;
}
.exp-card.has-image .exp-card-inner {
  min-height: 340px;
  color: var(--white);
}
.exp-card.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.88) 30%,
    rgba(26, 26, 26, 0.2) 100%
  );
  z-index: 0;
}
.exp-card.has-image {
  background: var(--dark);
}
.exp-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition:
    transform 0.9s,
    opacity 0.5s;
}
.exp-card:hover .exp-card-image {
  transform: scale(1.05);
  opacity: 0.5;
}

.card-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.exp-card.has-image .card-num {
  color: var(--gold-light);
}
.card-body {
  margin-top: auto;
}
.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.exp-card.has-image .card-title {
  color: var(--white);
}
.card-text {
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--mid);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.exp-card.has-image .card-text {
  color: rgba(255, 255, 255, 0.9);
}

.exp-card.dark-card {
  background: var(--dark);
}
.exp-card.dark-card .card-num,
.exp-card.dark-card .card-title {
  color: var(--white);
  text-shadow: none;
}
.exp-card.dark-card .card-text {
  color: rgba(255, 255, 255, 0.5);
  text-shadow: none;
}
.exp-card.accent-card {
  background: var(--red);
}
.exp-card.accent-card .card-num {
  color: rgba(255, 255, 255, 0.5);
}
.exp-card.accent-card .card-title {
  color: var(--white);
  text-shadow: none;
}
.exp-card.accent-card .card-text {
  color: rgba(255, 255, 255, 0.75);
  text-shadow: none;
}

/* cta*/
.cta-section {
  padding: var(--section-gap) clamp(2rem, 8vw, 8rem);
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}
.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--dark);
}
.cta-headline em {
  font-style: italic;
  color: var(--green);
}
.cta-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.cta-body {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--mid);
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
  padding: 1.2rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn-primary:hover {
  background: var(--green);
}

/* Dark Theme */
body.dark-theme {
  --surface: #111111;
  --cream: #1e1c1a;
  --text-body: rgba(245, 242, 238, 0.6);
  --text-head: var(--light);
  --border: rgba(184, 154, 94, 0.12);
  --gold: #c4a55e;
  --gold-light: #d4b87a;
}
body.dark-theme .hero-aside {
  background: #1e1c1a;
}
body.dark-theme .stat-number,
body.dark-theme .philosophy-pull,
body.dark-theme .card-title,
body.dark-theme .cta-headline {
  color: var(--light);
}
body.dark-theme .exp-card,
body.dark-theme .cta-section {
  background: #1e1c1a;
}
body.dark-theme .exp-card.dark-card,
body.dark-theme .manifesto-band {
  background: #0d0d0d;
}
body.dark-theme .exp-card.accent-card {
  background: #9e0d24;
}

@media (max-width: 1024px) {
  .about-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-canvas {
    min-height: 70vh;
  }
  .hero-aside {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 3rem;
  }
  .philosophy {
    grid-template-columns: 1fr;
  }
  .philosophy-left {
    position: static;
  }
  .exp-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5px;
  }
  .exp-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
  .cta-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .exp-grid {
    grid-template-columns: 1fr;
  }
  .about-hero {
    grid-template-columns: 1fr;
  }
}
