/* ---------- Fonts ---------- */

@font-face {
  font-family: "Hurme";
  src: url("../fonts/HurmeGeometricSans2-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hurme";
  src: url("../fonts/HurmeGeometricSans2-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Hurme";
  src: url("../fonts/HurmeGeometricSans2-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hurme";
  src: url("../fonts/HurmeGeometricSans2-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --bg: #0b0c0b;
  --bg-alt: #131512;
  --surface: #191b18;
  --border: #2a2c28;
  --text: #f3f2ec;
  --text-muted: #9a9d95;
  --accent: #7fcdc1;
  --font-sans: "Hurme", "Gotham", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --max-width: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.1;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 12, 11, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo img {
  height: 34px;
  width: auto;
  filter: invert(1) brightness(2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav__cta {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--text) !important;
}

.site-nav__cta:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 12, 11, 0.55) 0%, rgba(11, 12, 11, 0.35) 40%, rgba(11, 12, 11, 0.95) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--gutter) clamp(64px, 10vw, 112px);
}

.hero__content h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  max-width: 18ch;
  margin-bottom: 24px;
}

.hero__brand {
  color: var(--accent);
}

.hero__content h2 {
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 20px;
}

.hero__tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero__cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.hero__cta:hover {
  opacity: 0.85;
}

.hero__scroll {
  position: absolute;
  bottom: clamp(24px, 4vw, 48px);
  right: var(--gutter);
  width: 28px;
  height: 44px;
  border: 1px solid var(--text-muted);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: scrollcue 1.8s ease infinite;
}

@keyframes scrollcue {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ---------- Impact / stats ---------- */

.impact {
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.stat-card {
  background: var(--bg);
  padding: clamp(28px, 3vw, 40px);
}

.stat-card__number {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-card__number span {
  font-size: 0.5em;
  vertical-align: super;
}

.stat-card__label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.stat-card__detail {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Innovation ---------- */

.innovation {
  border-bottom: 1px solid var(--border);
}

.innovation__intro {
  max-width: 62ch;
  margin-bottom: 56px;
}

.innovation__intro h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 20px;
}

.innovation__text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.pillar-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.pillar-card__index {
  display: block;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.innovation__result {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}


/* ---------- Gammes ---------- */

.gammes {
  border-bottom: 1px solid var(--border);
}

.gammes__intro {
  max-width: 62ch;
  margin-bottom: 56px;
}

.gammes__intro h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.gammes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gamme-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.25s ease;
}

.gamme-card:hover {
  border-color: var(--accent);
}

.gamme-card__image {
  width: calc(100% + 64px);
  aspect-ratio: 4 / 3;
  margin: -32px -32px 24px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.gamme-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gamme-card__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.gamme-card__letter {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gamme-card__head h3 {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.gamme-card__head small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gamme-card dl {
  display: grid;
  gap: 4px 12px;
}

.gamme-card dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 14px;
}

.gamme-card dt:first-child {
  margin-top: 0;
}

.gamme-card dd {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---------- Partners ---------- */

.partners__intro {
  max-width: 62ch;
  margin-bottom: 48px;
}

.partners__intro h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.timeline {
  border-top: 1px solid var(--border);
  margin-bottom: 64px;
}

.timeline li {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text-muted);
}

.timeline__year {
  font-family: var(--font-mono);
  color: var(--accent);
  min-width: 64px;
  flex-shrink: 0;
}

.partners__label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.partners-logos img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) brightness(2.2);
  opacity: 0.7;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.partners-logos img:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.site-footer__tagline {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  max-width: 20ch;
  margin-bottom: 56px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 32px);
  margin-bottom: 56px;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
}

.contact-form__success {
  max-width: 560px;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 56px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form__submit {
  align-self: flex-start;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.contact-form__submit:hover {
  opacity: 0.85;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}

.site-footer__grid h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.site-footer__grid p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.site-footer__grid a:hover {
  color: var(--text);
}

.site-footer__legal {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-bottom: 12px;
}

.site-footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars-grid,
  .gammes-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 12, 11, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 320px;
  }

  .site-nav a {
    width: 100%;
    padding: 16px var(--gutter);
    border-bottom: 1px solid var(--border);
  }

  .site-nav__cta {
    border: none;
    border-radius: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
