@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400&family=IBM+Plex+Serif:wght@300&family=Jost:wght@200;400&display=swap');

:root {
  --blue:        #1593e8;
  --blue-dim:    rgba(21, 147, 232, 0.12);
  --blue-glow:   rgba(21, 147, 232, 0.06);
  --green:       #00df40;
  --green-dim:   rgba(0, 223, 64, 0.1);

  --bg:          #030d18;
  --bg-2:        #071525;
  --bg-3:        #0a1c30;
  --border:      rgba(21, 147, 232, 0.14);
  --border-soft: rgba(255, 255, 255, 0.05);

  --text:        #ddeeff;
  --text-muted:  #4d7a9e;
}

/* ── Base ─────────────────────────────────────────── */

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 95% 0%,
      rgba(21,147,232,0.13)  0%,
      rgba(21,147,232,0.06) 40%,
      rgba(21,147,232,0.01) 65%,
      transparent           80%
    ),
    radial-gradient(ellipse 70% 55% at 5% 100%,
      rgba(0,223,64,0.10)  0%,
      rgba(0,223,64,0.04) 40%,
      rgba(0,223,64,0.01) 65%,
      transparent          80%
    );
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
}

main {
  position: relative;
  z-index: 1;
}

/* ── Layout ───────────────────────────────────────── */


.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Sections ─────────────────────────────────────── */

html {
  scroll-behavior: auto;
}

.snap-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
}

/* Blocker : couvre la section inactive et absorbe tous les clics */
.section-blocker {
  position: absolute;
  inset: 0;
  z-index: 9999;
  pointer-events: auto;
}
.is-interactive .section-blocker {
  pointer-events: none;
}

/* Hero ───────────────────────────────────────────── */
#hero {
  min-height: 90vh;
  display: flex;
  align-items: flex-start;
  padding-top: 28vh;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 55% 65% at 8% 30%,
      rgba(21, 147, 232, 0.22) 0%,
      rgba(21, 147, 232, 0.09) 45%,
      transparent 70%
    ),
    radial-gradient(ellipse 65% 50% at 88% 8%,
      rgba(21, 147, 232, 0.13) 0%,
      rgba(21, 147, 232, 0.05) 45%,
      transparent 70%
    ),
    radial-gradient(ellipse 50% 45% at 12% 88%,
      rgba(0, 223, 64, 0.14) 0%,
      rgba(0, 223, 64, 0.05) 45%,
      transparent 70%
    );
}

/* Grille de fond */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      rgba(21, 147, 232, 0.045) 0px, rgba(21, 147, 232, 0.045) 1px,
      transparent 1px, transparent 80px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(21, 147, 232, 0.045) 0px, rgba(21, 147, 232, 0.045) 1px,
      transparent 1px, transparent 80px
    );
}

/* Grain */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

#hero .container {
  margin-left: 15rem;
  margin-right: auto;
  position: relative;
  z-index: 1;
}


.hero-inner {
  width: 100%;
}

.hero-content {
  max-width: 52%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease 0.15s, transform 0.65s ease 0.15s;
  will-change: transform, opacity, filter;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-tagline {
  font-family: 'IBM Plex Serif', serif;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  font-weight: 300;
  font-style: normal;
  line-height: 1.15;
  text-align: left;
  color: var(--text);
}

.hero-console {
  background: #000;
  padding: 1rem 1.25rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-muted);
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-console-kw-white { color: #ffffff; }
.hero-console-kw-green { color: #3ecfc7; }
.hero-console-kw-blue  { color: #7bc8ff; }

.hero-console-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: #fff;
  opacity: 0;
  vertical-align: text-bottom;
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}


.hero-visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48%;
  will-change: transform;
  z-index: 1;
}

.hero-visual canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.grid-axis-label {
  position: absolute;
  pointer-events: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  background: #030d18;
  padding: 0.15rem 0.35rem;
}

.lbl-x { color: #7bc8ff; }
.lbl-z { color: #7bc8ff; }
.lbl-y { color: #3ecfc7; }

.grid-slider-wrap {
  position: absolute;
  bottom: 9rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
}

.grid-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 40px;
  background: linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.25)) center / 100% 2px no-repeat;
  outline: none;
  cursor: pointer;
  display: block;
}

.grid-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 0;
  cursor: pointer;
}

.grid-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--blue);
  border-radius: 0;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(21, 147, 232, 0.7);
}

/* Services — fond alterné */
#services {
  background: linear-gradient(135deg, #191a1c 0%, #26282b 100%);
}


/* ── Projects — layout panneau latéral ───────────────── */

#projects {
  background: #444857;
  overflow: hidden;
}

#projects:has(.project-view--valoperl.is-active) {
  background: #352925;
}

#projects:has(.project-view--juli.is-active) {
  background: #343d52;
}

#projects-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.projects-nav {
  position: absolute;
  top: 8.5rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 3rem 0 3rem;
  gap: 0;
}

.project-tab {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5em 1.2em;
  margin-right: 0.5rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid currentColor;
  opacity: 0.42;
  transition: opacity 0.2s ease;
}

.project-tab:hover { opacity: 0.7; }

.project-tab.is-active { opacity: 1; }

.project-tab--ssp {
  color: #5cb847;
}

.project-tab--valoperl {
  color: #b09090;
}

.project-tab--juli {
  color: #7aaee8;
}

.projects-wrapper {
  position: absolute;
  inset: 0;
  padding-top: 10.5rem;
  z-index: 1;
}

/* ── Zone contenu ────────────────────────────────────── */

.projects-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.project-view.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ── SSP ToolBox ─────────────────────────────────────── */

.project-view--ssp {
  background: linear-gradient(
          rgba(39, 41, 52, 0) 0%,
          rgba(39, 41, 52, 1) 20%,
          rgba(39, 41, 52, 1) 100%
  );
  padding: 0 3.5rem;
  gap: 1.5rem;
  align-items: center;
}

#projects-view-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.ssp-left {
  flex: 0 0 38%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.ssp-top-zone {
  border-top: 1px solid rgba(74, 148, 56, 0.55);
  background: rgba(15, 17, 24, 0.55);
  padding: 1.25rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 -1rem;
}

.ssp-title {
  font-family: 'IBM Plex Serif', serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
}

.ssp-tagline {
  font-family: 'Jost', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.5;
}

.ssp-divider {
  width: 100%;
  height: 1px;
  background: rgba(74, 148, 56, 0.55);
}

.ssp-desc {
  font-family: 'Jost', sans-serif;
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.75;
}

.ssp-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.ssp-features li {
  font-family: 'Jost', sans-serif;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.5;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(74, 148, 56, 0.4);
}

.ssp-feature-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgb(135, 205, 115);
  margin-bottom: 0.1rem;
}

.ssp-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin-top: 0.4rem;
}

.ssp-stack li {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28em 0.7em;
  border: 1px solid rgba(74, 148, 56, 0.35);
  color: rgba(135, 205, 115, 0.55);
}

.ssp-visual {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  justify-content: center;
}

.ssp-video-frame {
  width: 100%;
  max-width: 720px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.55);
}

.ssp-video-frame video {
  display: block;
  width: 100%;
  height: auto;
}

/* ── VALOPERL ────────────────────────────────────────── */

.project-view--valoperl {
  background: linear-gradient(
    rgba(53, 41, 37, 0) 0%,
    rgba(53, 41, 37, 0.75) 20%,
    rgba(53, 41, 37, 0.75) 100%
  );
  padding: 0 3.5rem;
  gap: 0;
  align-items: center;
}

.valoperl-bg-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(30% + 3.5rem);
  max-height: 55%;
  object-fit: cover;
  object-position: top;
  opacity: 0.85;
  z-index: 0;
  border-radius: 0 8px 0 0;
}

.valoperl-left {
  flex: 0 0 36%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: 4rem;
  padding: 0 1.8rem;
}

.valoperl-top-zone {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.valoperl-title {
  font-family: 'IBM Plex Serif', serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(176, 144, 144, 0.3);
}

.valoperl-tagline {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.valoperl-desc {
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.85;
}

.vhl {
  font-weight: 600;
  color: #f78841;
}

.valoperl-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  gap: 16px;
}

/* ── Mockup téléphone ────────────────────────────────── */

.valoperl-phone-img {
  height: 567px;
  width: auto;
  display: block;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.55));
}

.valoperl-phone-img--back {
  transform: translateY(24px);
}

.valoperl-phone-img--front {
  transform: translateY(-24px);
}

/* ── Features panel (droite) ────────────────────────── */

.valoperl-right {
  flex: 0 0 28%;
  display: flex;
  align-items: center;
  z-index: 1;
  margin-left: -4rem;
}

.valoperl-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3.8rem;
  width: 100%;
}

.valoperl-features li {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.5;
  position: relative;
  padding-left: 76px;
}

.valoperl-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(0.58em - 6px);
  width: 68px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 14' fill='none'%3E%3Cpath d='M1 7 Q28 3 55 7' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M49 2 L57 7 L49 12' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.valoperl-features li::after {
  display: none;
}

.valoperl-feature-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #f78841;
  margin-bottom: 0.15rem;
}

.valoperl-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin-top: 0.4rem;
}

.valoperl-stack li {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28em 0.7em;
  border: 1px solid rgba(176, 144, 144, 0.35);
  color: rgba(210, 175, 175, 0.55);
}

/* ── JuLi ────────────────────────────────────────────── */

.project-view--juli {
  background: linear-gradient(
    rgba(52, 61, 82, 0) 0%,
    rgba(52, 61, 82, 1) 20%,
    rgba(52, 61, 82, 1) 100%
  );
  padding: 0 3.5rem;
  gap: 0;
  align-items: center;
}

.juli-left {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  z-index: 1;
}

.juli-top-zone {
  border-top: 1px solid rgba(21, 35, 59, 0.55);
  background: rgba(15, 17, 24, 0.55);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 -1rem;
  border-radius: 6px;
}

.juli-title {
  font-family: 'IBM Plex Serif', serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
}

.juli-tagline {
  font-family: 'Jost', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.5;
}

.juli-divider {
  width: 100%;
  height: 1px;
  background: #c8ced1;
}

.juli-desc {
  font-family: 'Jost', sans-serif;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
}

.juli-hl {
  font-weight: 600;
  color: #e79379;
}

.juli-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.juli-features li {
  font-family: 'Jost', sans-serif;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.5;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(21, 35, 59, 0.4);
}

.juli-feature-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: #e79379;
  margin-bottom: 0.1rem;
}

.juli-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin-top: 0.4rem;
}

.juli-stack li {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28em 0.7em;
  border: 1px solid rgba(231, 147, 121, 0.35);
  color: rgba(231, 147, 121, 0.7);
}

.juli-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.juli-screenshot-frame {
  width: 100%;
  max-width: 580px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.55);
}

.juli-screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}


.project-visual-placeholder {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
}

/* ── Services ────────────────────────────────────────── */

.services-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  height: 100%;
  gap: 3rem;
  padding: 8.5rem 3.5rem 0;
}

.services-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-self: center;
}

.services-heading {
  font-family: 'IBM Plex Serif', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.services-subheading {
  font-family: 'Jost', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  width: 100%;
}

.service-card {
  padding: 1.8rem 1.8rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.service-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #d4b8a8;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-family: 'IBM Plex Serif', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.service-img-wrap {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 65vh;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-img-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.75);
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: saturate(0.75);
}

.service-desc {
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  color: #d4b8a8;
  line-height: 1.7;
}

/* ── Contact ─────────────────────────────────────────── */

#cta {
  background-color: #0d2040;
  background-image:
    linear-gradient(
      90deg,
      transparent 58px,
      rgba(120, 170, 255, 0.4) 58px,
      rgba(120, 170, 255, 0.4) 60px,
      transparent 60px
    ),
    linear-gradient(rgba(255, 255, 255, 0.04) 0.1em, transparent 0.1em);
  background-size: 100% 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  justify-content: center;
}

#contact-trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.contact-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.contact-hl-img {
  height: 520px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-heading {
  font-family: 'IBM Plex Serif', serif;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.contact-subheading {
  font-family: 'Jost', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
}

.contact-links {
  display: flex;
  gap: 1.2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
}

.contact-link svg {
  width: 20px;
  height: 20px;
  color: #d4b8a8;
  flex-shrink: 0;
}

/* ── Header / Nav ─────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

.nav {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 3rem;
  padding: 1.75rem 2rem 0.5rem;
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}

#section-title {
  font-family: 'Jost', sans-serif;
  font-size: 1.5rem;
  font-weight: 200;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.6rem 2rem 0.4rem 3rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  white-space: nowrap;
}

#section-title.visible {
  opacity: 1;
  transform: translateY(0);
}


.nav-right {
  position: relative;
  padding-top: 0.6rem;
  padding-bottom: 10px;
}

.nav-right::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right,
    rgba(255,255,255,0.6),
    rgba(255,255,255,0.6) 80%,
    transparent
  );
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links li {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.nav-links li.hidden {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
  padding-bottom: 3px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ── Intro animation ──────────────────────────────── */

#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1),
              opacity   0.7s ease;
}

#intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    transparent 0%,
    #1b3d6a     35%,
    #1b7a72     64%,
    transparent 100%
  );
  z-index: 5;
  pointer-events: none;
}

#intro.dismiss {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

#intro-left {
  position: relative;
  width: 50%;
  background: linear-gradient(to top, #000e19, #001a2e);
  overflow: hidden;
}

#matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#intro-dark {
  position: absolute;
  inset: 0;
  background: #000e19;
  opacity: 0;
  z-index: 8;
  pointer-events: none;
}

#intro-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

#intro-logo {
  width: 220px;
  opacity: 0;
  animation: logo-in 0.5s ease 0.2s forwards;
}

#intro-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0;
  animation: arrow-appear 0.4s ease 2.3s forwards;
}

.chevron {
  width: 28px;
  height: auto;
  color: #fff;
  opacity: 0;
  animation: chevron-pulse 1.4s ease-in-out 2.7s infinite;
}

.chevron:nth-child(2) { animation-delay: 2.95s; }
.chevron:nth-child(3) { animation-delay: 3.2s;  }

#intro-right {
  position: relative;
  width: 50%;
  overflow: hidden;
  background: #111;
}

#intro-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 10, 0.55);
  pointer-events: none;
}

#intro-right video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#sprout-left,
#sprout-right {
  transform-box: fill-box;
  transform-origin: bottom center;
  transform: scaleY(0);
}

#sprout-left  { animation: sprout 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.85s forwards; }
#sprout-right { animation: sprout 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s  forwards; }

/* ── Keyframes ────────────────────────────────────── */

@keyframes logo-in {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes sprout {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

@keyframes arrow-appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes chevron-pulse {
  0%   { opacity: 0.15; }
  50%  { opacity: 1;    }
  100% { opacity: 0.15; }
}
