/* =========================================================
   FALOM AI: "About" in the dark look of the rest of the home page
   (black, the hero's blue-square label, grey title, the logo lit on a dark glass panel)
   To go back to the light version: remove the css/about.css line in index.html and use
   the #about section from backup-before-about/index.html.
   ========================================================= */
#about.about-dark {
  position: relative; overflow: hidden; background: #000; color: #fff;
  padding: clamp(110px, 16vh, 180px) 0;
}
/* A faint lamp-like glow and film grain, like the hero and the desk */
#about.about-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 55% at 78% 50%, rgba(30, 107, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 30% 40% at 85% 70%, rgba(155, 92, 246, 0.12), transparent 70%);
}
#about.about-dark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.about-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }

/* Label: the hero's small blue square */
.about-label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: #fff; }
.about-label::before { content: ""; width: 12px; height: 12px; background: #1e6bff; flex: none; }
.about-title {
  margin-top: 22px; font-size: clamp(48px, 6.4vw, 92px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.92; white-space: nowrap;
  color: #bebebe; /* the FALOM wordmark's grey */
}
.about-lead { margin-top: 28px; max-width: 520px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, 0.72); }

/* Three quick facts, separated by thin lines */
.about-facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.about-facts li { padding: 22px 18px 0 0; }
.about-facts li + li { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.about-facts strong {
  display: block; font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(90deg, #fff, #8fb6ff 160%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-facts span { display: block; margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* The logo, lit on a dark glass panel with a slowly turning ring of the logo's colours behind it */
.about-visual { position: relative; }
.about-panel {
  position: relative; aspect-ratio: 1; border-radius: 32px; overflow: hidden; isolation: isolate; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #0b1430 0%, #05070f 60%, #020306 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.about-ring {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; z-index: -2; filter: blur(38px); opacity: 0.75;
  background: conic-gradient(from 0deg, #19e3ff, #1e6bff, #9b5cf6, #1e6bff, #19e3ff);
  animation: aboutSpin 14s linear infinite;
}
.about-glow { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(3, 6, 16, 0.95) 30%, rgba(3, 6, 16, 0) 72%); }
.about-mark { width: 46%; height: auto; filter: drop-shadow(0 24px 50px rgba(25, 227, 255, 0.35)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.3)); animation: aboutFloat 6s ease-in-out infinite; }
/* Glass reflection across the panel */
.about-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.015) 34%, transparent 35%); }
@keyframes aboutSpin { to { transform: rotate(360deg); } }
@keyframes aboutFloat { 50% { transform: translateY(-12px); } }

/* The ChatGPT photo: the FALOM logo as a glowing glass sculpture on the lamp-lit desk, Montreal behind.
   A slow drift (like a camera moving) and, with a mouse, a gentle tilt toward the cursor (js/about.js) */
.about-visual { perspective: 1400px; }
.about-photo { background: #000; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.about-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; animation: aboutDrift 18s ease-in-out infinite alternate; }
/* the edges sink into the black of the section */
.about-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px 10px rgba(0, 0, 0, 0.55); border-radius: inherit; }
@keyframes aboutDrift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }

/* Reveal (js/about.js): unveiled from the bottom up, like the FALOM letters rising in the hero, while the
   photo inside glides down a little and settles (a soft, premium "curtain lift") */
.about-visual.reveal-wait .about-photo { clip-path: inset(100% 0 0 0 round 32px); }
.about-visual.reveal-wait .about-photo-img { transform: translateY(-14%) scale(1.22); animation: none; }
.about-visual.reveal-wait.revealed .about-photo { clip-path: inset(0 0 0 0 round 32px); transition: clip-path 1.5s cubic-bezier(0.77, 0, 0.18, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.about-visual.reveal-wait.revealed .about-photo-img {
  transform: scale(1.04);
  transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1);
  animation: aboutDrift 18s ease-in-out 2s infinite alternate;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 420px; }
  .about-facts { grid-template-columns: 1fr 1fr 1fr; }
  .about-facts li + li { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .about-ring, .about-mark, .about-photo-img { animation: none; }
}
/* the panel's shadow sits on the wrapper, so the unveil (clip) never cuts it */
.about-visual.reveal-wait { filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.65)); }
