/* Fremma, the parent company: a light editorial page (the research house), its products on dark stages (the atlas is a
   dark room). Loaded after site.css on the home page only; the product pages keep the dark theme. */
:root {
  --background: #f6f4ef;
  --surface: #ffffff;
  --ink: #11161c;
  --text-primary: #11161c;
  --text-secondary: #4f5864;
  --text-tertiary: #6b7380;
  --accent: #c9452f;
  --accent-text: #a8321f;
  --button-primary: #11161c;
  --button-primary-hover: #262d36;
  --text-on-color: #ffffff;
  --stage: #11161c;
  --focus: #11161c;
  --ease: cubic-bezier(0.2, 0, 0.38, 0.9);
  --ease-x: cubic-bezier(0.4, 0.14, 0.3, 1);
}
body { background: var(--background); color: var(--text-primary); }
body::after { display: none; }
body::before { background: var(--background); }

/* header: the parent's logo, the house sections, one way into the product */
.shell { background: rgba(246, 244, 239, 0.86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.shell.is-scrolled { background: rgba(246, 244, 239, 0.92); box-shadow: 0 10px 30px -24px rgba(17, 22, 28, 0.45); }
.shell .wrap { min-height: 72px; }
.brand { color: var(--ink); font: 600 21px/1 var(--font-display); letter-spacing: -0.02em; gap: 11px; }
.mark { display: block; flex: none; height: 30px; width: auto; }
.shell nav a { color: var(--text-secondary); }
.shell nav a:hover { color: var(--ink); background: rgba(17, 22, 28, 0.06); }
.shell .cta { display: inline-flex; align-items: center; min-height: 42px; margin-left: 8px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #fff !important; text-decoration: none; font: 500 14px/1 var(--font-sans); white-space: nowrap; }
.shell .cta:hover { background: var(--button-primary-hover) !important; }

/* headings are plain ink here (site.css paints them bone for the dark pages) */
.hero h1, section h2 { background: none; color: var(--ink); -webkit-text-fill-color: currentColor; }

/* the statement band: dark, full width, the atlas turning in it */
.hero-band { padding-block: 0; position: relative; isolation: isolate; background: radial-gradient(42% 62% at 76% 46%, rgba(17, 22, 28, 0.55), transparent 70%), linear-gradient(90deg, rgba(11, 15, 20, 0.95) 0%, rgba(11, 15, 20, 0.88) 36%, rgba(11, 15, 20, 0.62) 68%, rgba(11, 15, 20, 0.78) 100%), linear-gradient(180deg, rgba(11, 15, 20, 0.35), rgba(11, 15, 20, 0.6)), url("img/hero-lab.webp") 30% 50% / cover no-repeat, #11161c; color: #f2ede4; overflow: hidden; }
.hero-band .hero { padding-block: 72px 88px; }
.hero-band .hero h1 { color: #f6f1e7; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; }
.hero-band .hero h1 span { display: block; color: #9ba4b0; }
.hero-band .lead { color: #aab2bd; }
.hero-band .btn--primary { background: #f2ede4; color: #11161c; box-shadow: none; }
.hero-band .btn--primary:hover { background: #ffffff; }
.hero-band .btn--ghost { background: rgba(255, 255, 255, 0.08); color: #f2ede4; }
.hero-band .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }
.hero-band .where { color: #9ba4b0; }
.hero-band .where strong { color: #f0a08f; }

/* sections */
section { padding-block: 104px; }
section h2 { font-size: clamp(32px, 3.6vw, 46px); }
.intro { color: var(--text-secondary); }

/* how we support you: one card per reader */
.audiences { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.aud { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 30px; border-radius: 22px; background: var(--surface); box-shadow: 0 1px 0 rgba(17, 22, 28, 0.04), 0 24px 50px -36px rgba(17, 22, 28, 0.35); }
.aud h3 { font: 600 22px/1.2 var(--font-display); letter-spacing: -0.01em; }
.aud p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; }
.aud .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.aud a { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.aud a svg { width: 15px; height: 15px; fill: currentColor; transition: transform 150ms var(--ease); }
.aud a:hover svg { transform: translateX(3px); }

/* our products: the flagship on a dark stage, the rest as quiet cards */
.flagship { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); border-radius: 28px; overflow: hidden; background: var(--stage); color: #f2ede4; box-shadow: 0 50px 100px -60px rgba(17, 22, 28, 0.8); }
.flagship .copy { padding: 48px; display: grid; gap: 18px; align-content: center; justify-items: start; }
.lockup { display: inline-flex; align-items: center; gap: 14px; font: 600 26px/1 var(--font-display); letter-spacing: -0.02em; color: #f6f1e7; }
.lockup img { width: 72px; height: 72px; margin: -8px -4px -8px -10px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)); }
.lockup span { font-weight: 400; color: #9ba4b0; }
.flagship p { color: #aab2bd; font-size: 17px; line-height: 1.6; max-width: 46ch; }
.flagship .btn--primary { background: #f2ede4; color: #11161c; box-shadow: none; }
.flagship .btn--primary:hover { background: #fff; }
.flagship .note { font-size: 14px; color: #8a929d; }
.flagship figure { margin: 0; min-height: 100%; }
.flagship figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.flagship .pill--soon { background: rgba(240, 160, 143, 0.14); color: #f0a08f; }

.roadmap { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.roadmap .card { background: var(--surface); box-shadow: 0 1px 0 rgba(17, 22, 28, 0.04), 0 24px 50px -36px rgba(17, 22, 28, 0.35); border-radius: 22px; }
.roadmap .card:hover { background: var(--surface); }
.roadmap .card p { color: var(--text-secondary); }

/* status pills on light */
.pill--building { background: rgba(196, 132, 40, 0.13); color: #8a5a12; }
.pill--planned { background: rgba(17, 22, 28, 0.06); color: #4f5864; }
.pill--soon { background: rgba(201, 69, 47, 0.1); color: #a8321f; }

/* how we work: the atlas skull on its dark stage */
.method .stage { background: var(--stage); border-radius: 28px; box-shadow: 0 50px 100px -60px rgba(17, 22, 28, 0.8); }
.principles p { color: var(--text-secondary); }

/* footer: the house, in columns */
footer { background: var(--ink) !important; color: #aab2bd; padding-block: 64px 48px; margin-top: 0; }
footer .cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
footer .brand { color: #f6f1e7; }
footer h3 { font: 600 14px/1.4 var(--font-sans); color: #f6f1e7; margin-bottom: 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
footer a { color: #aab2bd; text-decoration: none; }
footer a:hover { color: #f6f1e7; }
footer .about { max-width: 38ch; margin-top: 16px; font-size: 15px; line-height: 1.6; }
footer .legal { margin-top: 48px; font-size: 13px; color: #7d8590; }

@media (max-width: 960px) {
  .audiences, .roadmap { grid-template-columns: 1fr; }
  .flagship { grid-template-columns: 1fr; }
  .flagship figure { order: -1; aspect-ratio: 4 / 3; }
  footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer .cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  section { padding-block: 72px; }
  .hero-band .hero { padding-block: 24px 64px; }
  .flagship .copy { padding: 30px 24px 34px; }
  .shell nav a:not(.cta) { display: none !important; }
  .shell nav a.cta { display: inline-flex !important; }
  .aud { padding: 24px; }
}

/* the photo under the band is the hero's light: no extra glow from site.css */
.hero-band .hero::before { display: none; }
@media (max-width: 760px) { .hero-band { background-position: 0 0, 0 0, 0 0, 22% 50%, 0 0; } }

/* 3D markers on the cards: Microsoft Fluent Emoji 3D (MIT licence, Copyright (c) Microsoft Corporation) */
.aud .ic, .roadmap .ic { width: 60px; height: 60px; margin: -8px 0 4px -8px; filter: drop-shadow(0 10px 12px rgba(17, 22, 28, 0.16)); transition: transform 240ms var(--ease-x); }
.aud:hover .ic, .roadmap .card:hover .ic { transform: translateY(-3px) rotate(-4deg); }
.aud { grid-template-rows: auto auto 1fr auto; }
.roadmap .card { grid-template-rows: auto auto 1fr auto; }
