/* Fantir site — one stylesheet, no external dependencies. */

:root {
  --bg: #0b0c0e;
  --bg-2: #121418;
  --surface: #171a1f;
  --line: #262a31;
  --text: #eceef1;
  --muted: #9aa1ab;
  --accent: #ff8a1f;          /* the orange of the Fantir mark */
  --accent-2: #ffb15c;
  --accent-ink: #1a0d00;
  --paper: #f4f1ea;
  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 20;
  padding: 10px 14px; background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: 8px;
}
.skip:focus { top: 12px; }

.eyebrow {
  color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: 999px;
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 8px 30px rgb(255 138 31 / .35); transform: translateY(-1px); }
.btn--ghost { background: rgb(255 255 255 / .04); color: var(--text); border-color: rgb(255 255 255 / .35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgb(255 255 255 / .12); color: var(--text); border-color: var(--text); box-shadow: none; }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 15px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgb(11 12 14 / .78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / .06);
}
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.lockup { display: flex; align-items: center; gap: 15px; text-decoration: none; }  /* mark 26 : gap 10 : word 15 */
.lockup__mark { width: 40px; height: 40px; }
.lockup__word { width: auto; height: 23px; }
.top__nav { display: flex; align-items: center; gap: 28px; }
.top__nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.top__nav a:not(.btn):hover { color: var(--text); }

/* 1. Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 820px);
  display: flex; align-items: flex-end;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(11 12 14 / .92) 0%, rgb(11 12 14 / .6) 45%, rgb(11 12 14 / .15) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgb(11 12 14 / 0) 45%);
}
.hero__body { padding-top: 120px; padding-bottom: clamp(48px, 9vh, 96px); }
.hero__title {
  margin-top: 14px;
  font-size: clamp(40px, 7vw, 80px); line-height: 1.02; font-weight: 800; letter-spacing: -.03em;
}
.hero__lead { margin-top: 22px; max-width: 34em; color: #c9ced6; font-size: clamp(17px, 1.6vw, 20px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / .12); color: var(--muted); font-size: 15px;
}
.hero__facts strong { display: block; color: var(--text); font-size: 28px; line-height: 1.1; font-weight: 800; }

/* Section headings */
.section-head { max-width: 720px; }
.section-title { margin-top: 10px; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* 2. Library */
.library { padding: clamp(64px, 10vw, 120px) 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-2); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: border-color .2s, background .2s;
}
.chip span { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 13px; }
.chip:hover { border-color: var(--accent); background: var(--surface); }

.category { margin-top: clamp(56px, 7vw, 88px); }
.category__head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.category__num { color: var(--accent); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; padding-top: 7px; }
.category__title { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; font-weight: 750; }
.category__lead { margin-top: 4px; color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--targets { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgb(255 138 31 / .55); transform: translateY(-2px); }
.card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-2); }
.card__body { padding: 22px 24px 24px; }
.card__title { font-size: 22px; font-weight: 750; }
.card__body p { margin-top: 8px; color: var(--muted); }
.card--wide { display: grid; grid-template-columns: 1.35fr 1fr; }
.card--wide .card__img { height: 100%; min-height: 280px; aspect-ratio: auto; }
.card--wide .card__body { align-self: center; padding: 32px; }
.card--wide .card__title { font-size: 28px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { padding: 4px 11px; border-radius: 999px; background: rgb(255 138 31 / .1); color: var(--accent-2); font-size: 13px; font-weight: 600; }

.target {
  display: flex; flex-direction: column;
  padding: 14px 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.target:hover { border-color: rgb(255 138 31 / .55); transform: translateY(-2px); }
.target img {
  width: 100%; aspect-ratio: 210 / 297;         /* an A4 sheet */
  object-fit: contain; padding: 14%;
  background: var(--paper); border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06);
}
.target h4 { margin-top: 12px; font-size: 16px; font-weight: 700; }
.target p { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

/* 3. Contact */
.contact { padding: 0 0 clamp(64px, 10vw, 120px); }
.contact__box {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(120% 140% at 100% 0%, rgb(255 138 31 / .22), transparent 55%),
    var(--surface);
  border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5);
}
.contact__list { display: grid; gap: 4px; }
.contact__list li {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.contact__list li:last-child { border-bottom: 0; }
.contact__list li > span:first-child { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .12em; }
.contact__list a { font-weight: 700; text-decoration: none; }
.contact__list a:hover { color: var(--accent); }
.placeholder { color: var(--accent-2); font-style: italic; }

/* Footer */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot__row { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Narrow screens */
@media (max-width: 900px) {
  .card--wide, .contact__box { grid-template-columns: 1fr; }
  .card--wide .card__img { min-height: 0; aspect-ratio: 16 / 9; }
  .card--wide .card__body { padding: 22px 24px 24px; }
  .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top__nav a:not(.btn) { display: none; }
  .lockup__word { height: 14px; }
  .lockup__mark { width: 32px; height: 32px; }
  .lockup { gap: 12px; }
  .hero { min-height: min(92vh, 760px); }
  .hero::before {
    background: linear-gradient(0deg, var(--bg) 8%, rgb(11 12 14 / .78) 55%, rgb(11 12 14 / .45) 100%);
  }
  .hero__actions .btn { flex: 1 1 100%; }
  .grid--targets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .target { padding: 10px 10px 12px; }
  .contact__box { border-radius: 0; border-left: 0; border-right: 0; }
}
@media (max-width: 400px) {
  .top__nav .btn { display: none; }
  .lockup__word { height: 16px; }
}
