/* =======================================================
   BAM'S CLEAN — editorial corporate
   ------------------------------------------------------- */

:root {
  /* ---- palette ---- */
  --paper: #f3f4f6; /* cool near-white */
  --paper-2: #e6e8ec; /* slightly darker panel */
  --paper-3: #fafbfc; /* highlight / lift */
  --ink: #141414; /* near-black */
  --ink-2: #2a2a28;
  --muted: #6b6e76; /* cool gray */
  --muted-2: #8e929a;
  --rule: #d6dae0; /* divider */
  --rule-soft: #e4e7ec;
  --blue: #1456c4;
  --blue-ink: #0e3f93;

  /* ---- type ---- */
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;

  /* Fraunces tuning — sharp editorial mode */
  --fraunces: "opsz" 144, "SOFT" 0, "WONK" 0;

  /* ---- layout ---- */
  --wrap: 1280px;
  --pad: clamp(20px, 4vw, 48px);

  /* ---- motion ---- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* =======================================================
   reset
   ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0 !important;
  padding: 0 !important; /* iOS Safari auto-pads body by default — force off */
  overflow-x: clip;
  max-width: 100%;
}
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--paper-3); /* safe-area / overscroll colour */
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
input,
textarea,
select,
button {
  font: inherit;
  color: inherit;
}

/* =======================================================
   base
   ------------------------------------------------------- */
body {
  background: var(--paper-3); /* unified with html and nav */
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  font-feature-settings: "ss01", "cv11";
  position: relative;
}

/* fine paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.08  0 0 0 0 0.10  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.35'/></svg>");
  opacity: 0.1;
  mix-blend-mode: multiply;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* =======================================================
   typography
   ------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero .eyebrow {
  color: var(--paper);
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(20, 86, 196, 0.14);
}

.num {
  font-family: var(--serif);
  font-variation-settings: var(--fraunces);
  font-weight: 400;
  font-feature-settings: "lnum", "tnum";
}

/* =======================================================
   buttons
   ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px 13px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--ink {
  background: var(--blue);
  color: var(--paper);
  border: 1px solid var(--blue);
}
.btn--ink:hover {
  background: var(--blue-ink);
  border-color: var(--blue-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
/* inverted for the dark hero */
.hero .btn--ghost {
  color: var(--paper);
  border-color: rgba(243, 244, 246, 0.5);
}
.hero .btn--ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn--lg {
  padding: 16px 24px 16px 28px;
  font-size: 14.5px;
}

/* =======================================================
   NAV
   ------------------------------------------------------- */
/* ---------- FLOATING CAPSULE NAV ----------
   The .nav is a transparent sticky wrapper. The real visual bar
   is .nav__row — a pill-shaped capsule that floats inset from the
   viewport edges. Side-steps the Safari safe-area seam entirely. */
.nav {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  z-index: 50;
  padding: 0 clamp(12px, 2.4vw, 20px);
  margin-top: 14px;
  pointer-events: none; /* let clicks through the padding area */
  background: transparent;
  border: 0;
}
.nav__row {
  pointer-events: auto;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  column-gap: clamp(18px, 3vw, 40px);
  padding: 10px 14px 10px 18px;
  background: rgba(250, 251, 252, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  backdrop-filter: saturate(160%) blur(22px);
  border-radius: 999px;
  border: 1px solid rgba(20, 20, 20, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 10px 24px -6px rgba(20, 86, 196, 0.1),
    0 2px 6px rgba(20, 20, 20, 0.04);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.nav__logo {
  position: relative;
  width: 52px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: none;
}
.nav__logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}
.nav__logo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-variation-settings:
    "opsz" 144,
    "SOFT" 0,
    "WONK" 0;
  font-weight: 400;
  font-size: 32px;
  color: var(--blue);
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav__logo:has(img) .nav__logo-fallback {
  display: none;
}
.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav__brand-name {
  font-family: var(--serif);
  font-variation-settings: var(--fraunces);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.nav__brand-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}

.nav__links {
  display: inline-flex;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--ink);
  transition: right 0.4s var(--ease);
}
.nav__links a:hover::after {
  right: 0;
}

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--paper-3);
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.nav__toggle:hover {
  background: var(--paper);
  border-color: var(--ink);
}
.nav__toggle-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
.nav__toggle-lines span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition:
    transform 0.35s var(--ease),
    opacity 0.2s var(--ease);
}
/* hamburger -> X when drawer open */
body.drawer-open .nav__toggle-lines span:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}
body.drawer-open .nav__toggle-lines span:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
}

@media (max-width: 940px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
  .nav {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    padding: 0 10px;
    margin-top: 10px;
  }
  .nav__row {
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    padding: 6px 6px 6px 14px;
  }
  .nav__brand-sub {
    display: none;
  } /* tighten brand lockup */
  .nav__logo {
    width: 44px;
    height: 40px;
  }
  .nav__brand-name {
    font-size: 17px;
  }
  :root {
    --pad: 20px;
  }
}

/* =======================================================
   DRAWER (mobile menu)
   ------------------------------------------------------- */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh; /* fallback */
  height: 100dvh;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}
.drawer[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 18, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.drawer[aria-hidden="false"] .drawer__backdrop {
  opacity: 1;
}

/* Dropdown below the capsule nav */
.drawer__panel {
  position: absolute;
  top: calc(
    env(safe-area-inset-top, 0px) + 10px + 52px + 10px
  ); /* safe + nav top + nav height + gap */
  left: 10px;
  right: 10px;
  max-height: calc(
    100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) -
      94px
  );
  background: var(--paper-3);
  border: 1px solid rgba(20, 20, 20, 0.06);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  transform: translateY(-12px) scale(0.98);
  transform-origin: top center;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.38s var(--ease),
    opacity 0.28s var(--ease);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 14px 30px -8px rgba(20, 86, 196, 0.14),
    0 4px 12px rgba(20, 20, 18, 0.05);
}
.drawer[aria-hidden="false"] .drawer__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  overflow-y: auto;
}
.drawer__nav a {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: baseline;
  padding: 18px 28px;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--serif);
  font-variation-settings:
    "opsz" 144,
    "SOFT" 0,
    "WONK" 0;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--ink);
  transition:
    background 0.2s var(--ease),
    padding-left 0.3s var(--ease);
}
.drawer__nav a:hover {
  background: var(--paper-3);
  padding-left: 34px;
}
.drawer__nav a em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--blue);
  transform: translateY(-4px);
}

.drawer__foot {
  padding: 22px 22px 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--paper);
}
.drawer__cta {
  justify-content: center;
}
.drawer__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.drawer__meta a {
  color: var(--ink);
}
.drawer__meta a:hover {
  color: var(--blue);
}

body.drawer-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .drawer__panel,
  .drawer__backdrop {
    transition: none;
  }
}

/* =======================================================
   HERO — full-bleed image with dark navy overlay
   ------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* pull hero up behind the floating nav capsule; generous buffer
     so nav's border + subpixels can't reveal a seam */
  margin-top: -100px;
  padding: clamp(100px, 12vw, 150px) 0 clamp(20px, 3vw, 36px);
  color: var(--paper);
}
@media (max-width: 940px) {
  .hero { margin-top: -80px; }
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: contrast(1.04) saturate(0.92);
}
/* dark navy overlay for legibility + brand atmosphere */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      1200px 800px at 88% 15%,
      rgba(20, 86, 196, 0.3),
      transparent 55%
    ),
    radial-gradient(
      900px 700px at 5% 95%,
      rgba(5, 12, 32, 0.55),
      transparent 60%
    ),
    linear-gradient(
      172deg,
      rgba(8, 22, 56, 0.78) 0%,
      rgba(5, 12, 30, 0.88) 100%
    );
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 36px);
}

.hero__meta {
  margin-bottom: 0;
}

.hero__title {
  font-family: var(--serif);
  font-variation-settings:
    "opsz" 144,
    "SOFT" 0,
    "WONK" 0;
  font-weight: 400;
  font-size: clamp(48px, 7.6vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--paper);
  text-shadow: 0 2px 20px rgba(5, 12, 30, 0.25);
}
.hero__title span {
  display: block;
}
.reveal--italic {
  position: relative;
  font-style: italic;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 30,
    "WONK" 1;
  color: #bed0f1;
  padding-bottom: clamp(14px, 1.2vw, 20px);
}
.reveal--italic::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(120px, 14vw, 200px);
  height: 3px;
  background: #6fa1ef;
  transform-origin: left center;
  animation: blue-rule-in 0.9s var(--ease) 1s both;
}
@keyframes blue-rule-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.hero__lede {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 620px;
  gap: 20px;
  margin-top: 4px;
}
.hero__lede p {
  margin: 0;
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.55;
  color: rgba(243, 244, 246, 0.85);
  max-width: 56ch;
}
.hero__cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* hero figures strip — on the dark hero background */
.hero__figures {
  margin-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid rgba(243, 244, 246, 0.22);
  border-bottom: 1px solid rgba(243, 244, 246, 0.22);
  padding: 22px 0;
}
.hero__figures dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 0;
}
.hero__figures div {
  border-left: 1px solid rgba(243, 244, 246, 0.14);
  padding-left: 22px;
}
.hero__figures div:first-child {
  border-left: 0;
  padding-left: 0;
}
.hero__figures dt {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 244, 246, 0.6);
  font-weight: 500;
  margin-bottom: 10px;
}
.hero__figures dd {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: var(--fraunces);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #bed0f1;
}
.hero__figures .num-sm {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(243, 244, 246, 0.65);
  margin-left: 4px;
}
.num-text {
  font-family: var(--serif);
  font-variation-settings: var(--fraunces);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--paper);
}

@media (max-width: 860px) {
  .hero__figures dl {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .hero__figures div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}
@media (max-width: 520px) {
  .hero__figures dl {
    grid-template-columns: 1fr;
  }
  .hero__figures div {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--rule-soft);
    padding-top: 20px;
  }
  .hero__figures div:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

/* =======================================================
   EDITORIAL IMAGE BLOCKS
   ------------------------------------------------------- */
.editorial {
  padding: clamp(32px, 4vw, 56px) 0;
  background: var(--paper);
}
.editorial__fig {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.editorial__img {
  position: relative;
  aspect-ratio: 5 / 2;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.editorial--tall .editorial__img {
  aspect-ratio: 3 / 1;
}
.editorial__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(0.95);
  transition: transform 1.6s var(--ease);
}
.editorial__img:hover img {
  transform: scale(1.015);
}

.editorial__img-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
  padding: 4px 8px;
  border: 1px solid var(--rule);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.editorial__img.is-empty img {
  display: none;
}
.editorial__img.is-empty {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 10px,
      rgba(108, 102, 92, 0.08) 10px 11px
    ),
    var(--paper-2);
}
.editorial__img.is-empty .editorial__img-label {
  opacity: 1;
}

.editorial__cap {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: baseline;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  max-width: 820px;
}
.editorial__cap-num {
  font-family: var(--serif);
  font-variation-settings:
    "opsz" 144,
    "SOFT" 0,
    "WONK" 0;
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--blue);
  letter-spacing: 0.02em;
}
.editorial__cap-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  letter-spacing: -0.002em;
}
.editorial__cap-text em {
  font-family: var(--serif);
  font-variation-settings:
    "opsz" 144,
    "SOFT" 50,
    "WONK" 1;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-2);
}

@media (max-width: 620px) {
  .editorial__cap {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .editorial__img,
  .editorial--tall .editorial__img {
    aspect-ratio: 3 / 2;
  }
}

/* =======================================================
   SECTION generic
   ------------------------------------------------------- */
.section {
  padding: clamp(56px, 7vw, 100px) 0;
  border-top: 1px solid var(--rule);
}
.section#services {
  border-top: 0;
}

/* pale blue panel — applied selectively for rhythm */
.section--washed {
  background: linear-gradient(
    180deg,
    rgba(20, 86, 196, 0.035),
    rgba(20, 86, 196, 0.075)
  );
  border-top-color: rgba(20, 86, 196, 0.2);
}

.section__head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(36px, 4.5vw, 60px);
  align-items: start;
}
.section__num {
  font-family: var(--serif);
  font-variation-settings: var(--fraunces);
  font-weight: 400;
  font-size: 15px;
  color: var(--blue);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--blue);
  padding-top: 10px;
  width: 80px;
}
.section__head-text {
  max-width: 820px;
}
.section__title {
  font-family: var(--serif);
  font-variation-settings:
    "opsz" 144,
    "SOFT" 0,
    "WONK" 0;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--ink);
}
.section__title em {
  font-style: italic;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 50,
    "WONK" 1;
  color: var(--blue-ink);
  font-weight: 400;
}
.section__intro {
  max-width: 64ch;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 720px) {
  .section__head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section__num {
    width: 60px;
    padding-top: 8px;
  }
}

/* =======================================================
   SERVICES
   ------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.service {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.35s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: 1;
}
.service:hover::before {
  transform: scaleX(1);
}
.service:hover {
  background: rgba(20, 86, 196, 0.04);
}

.service__img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.service__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.92);
  transition: transform 0.8s var(--ease);
}
.service:hover .service__img img {
  transform: scale(1.03);
}

.service__img.is-empty img {
  display: none;
}
.service__img.is-empty::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed var(--rule);
  background: repeating-linear-gradient(
    135deg,
    transparent 0 10px,
    rgba(108, 102, 92, 0.06) 10px 11px
  );
}
.service__img-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
  padding: 4px 8px;
  border: 1px solid var(--rule);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.service__img.is-empty .service__img-label {
  opacity: 1;
}

.service__body {
  padding: clamp(28px, 3vw, 44px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
}
.service__head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.service__num {
  font-family: var(--serif);
  font-variation-settings:
    "opsz" 144,
    "SOFT" 0,
    "WONK" 0;
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: var(--blue);
  letter-spacing: 0.02em;
}
.service__icon {
  width: 34px;
  height: 34px;
  color: var(--ink);
}
.service__title {
  font-family: var(--serif);
  font-variation-settings: var(--fraunces);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.1;
}
.service__desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 50ch;
}
.service__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  font-size: 14px;
  color: var(--ink-2);
}
.service__list li {
  position: relative;
  padding-left: 18px;
}
.service__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 500;
}

@media (max-width: 860px) {
  .services {
    grid-template-columns: 1fr;
  }
  .service__list {
    grid-template-columns: 1fr;
  }
}

/* =======================================================
   MÉTHODE — horizontal pipeline
   ------------------------------------------------------- */
.methode {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.methode__step {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 32px) clamp(18px, 1.8vw, 26px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.35s var(--ease);
}
.methode__step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease);
}
.methode__step:hover::before {
  transform: scaleX(1);
}
.methode__step:hover {
  background: rgba(20, 86, 196, 0.05);
}

.methode__num {
  font-family: var(--serif);
  font-variation-settings: var(--fraunces);
  font-weight: 300;
  font-size: clamp(38px, 3.2vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.methode__num span {
  display: inline-block;
  position: relative;
}
.methode__num span::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.methode__body h3 {
  font-family: var(--serif);
  font-variation-settings: var(--fraunces);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.012em;
  margin: 0;
  line-height: 1.15;
}
.methode__body p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 8px 0 0;
}
.methode__meta {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft);
}

@media (max-width: 1040px) {
  .methode {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .methode {
    grid-template-columns: 1fr;
  }
}

/* =======================================================
   PULL-QUOTE BAND
   ------------------------------------------------------- */
.pullquote {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(
      1100px 600px at 85% -20%,
      rgba(255, 255, 255, 0.1),
      transparent 55%
    ),
    radial-gradient(
      900px 700px at -5% 120%,
      rgba(6, 16, 42, 0.4),
      transparent 60%
    ),
    linear-gradient(170deg, #0f2e6e 0%, #08183c 100%);
}
.pullquote__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(56px, 8vw, 96px) 0;
}
.pullquote__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bed0f1;
  box-shadow: 0 0 0 5px rgba(190, 208, 241, 0.18);
}
.pullquote__text {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings:
    "opsz" 144,
    "SOFT" 50,
    "WONK" 1;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4.8vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--paper);
}
.pullquote__meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(190, 208, 241, 0.6);
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .pullquote__row {
    grid-template-columns: auto 1fr;
  }
  .pullquote__meta {
    grid-column: 2;
    margin-top: 8px;
  }
}

/* =======================================================
   CHANTIERS
   ------------------------------------------------------- */
.chantiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}
.chantier {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.chantier:hover {
  transform: translateY(-3px);
}
.chantier--blue:hover {
  box-shadow: 0 18px 40px -14px rgba(20, 86, 196, 0.35);
}
.chantier:not(.chantier--blue):hover .chantier__meta {
  background: linear-gradient(
    to top,
    rgba(8, 18, 40, 0.95) 0%,
    rgba(8, 18, 40, 0.15) 85%
  );
}
.chantier__img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.chantier__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(0.94);
  transition: transform 1.2s var(--ease);
}
.chantier:hover .chantier__img img {
  transform: scale(1.04);
}

.chantier__img.is-empty img {
  display: none;
}
.chantier__img.is-empty {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 10px,
      rgba(108, 102, 92, 0.06) 10px 11px
    ),
    var(--paper-2);
}
.chantier__img-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
  padding: 4px 8px;
  border: 1px solid var(--rule);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.chantier__img.is-empty .chantier__img-label {
  opacity: 1;
}

.chantier__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(18px, 2vw, 26px);
  display: grid;
  gap: 6px;
  color: var(--paper);
  background: linear-gradient(
    to top,
    rgba(8, 18, 40, 0.85) 0%,
    rgba(8, 18, 40, 0) 85%
  );
}
.chantier__sector {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: #bed0f1;
}
.chantier__title {
  font-family: var(--serif);
  font-variation-settings: var(--fraunces);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  margin: 0;
  letter-spacing: -0.012em;
  line-height: 1.15;
}
.chantier__loc {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 244, 246, 0.7);
  font-weight: 500;
  margin-top: 4px;
}

/* Blue typographic tile */
.chantier--blue {
  background:
    radial-gradient(
      700px 500px at 90% 10%,
      rgba(255, 255, 255, 0.1),
      transparent 55%
    ),
    linear-gradient(165deg, var(--blue) 0%, var(--blue-ink) 100%);
  color: var(--paper);
  border-color: transparent;
}
.chantier__typo {
  position: absolute;
  inset: 0;
  padding: clamp(22px, 2.2vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.chantier__num {
  font-family: var(--serif);
  font-variation-settings:
    "opsz" 144,
    "SOFT" 0,
    "WONK" 0;
  font-weight: 300;
  font-size: clamp(76px, 9vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--paper);
  align-self: flex-start;
}
.chantier__num span {
  font-size: 0.55em;
  vertical-align: 0.2em;
  margin-left: 4px;
  color: #bed0f1;
}
.chantier__line {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings:
    "opsz" 144,
    "SOFT" 0,
    "WONK" 0;
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.35;
  color: rgba(243, 244, 246, 0.88);
  max-width: 26ch;
}
.chantier__line em {
  font-style: italic;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 50,
    "WONK" 1;
  color: var(--paper);
}

.chantier--blue-alt .chantier__typo {
  justify-content: flex-end;
}
.chantier__sectors {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings:
    "opsz" 144,
    "SOFT" 0,
    "WONK" 0;
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.35;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.chantier__sectors em {
  font-style: italic;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 50,
    "WONK" 1;
  color: var(--paper);
}
.chantier__sectors span {
  color: rgba(190, 208, 241, 0.6);
  margin: 0 6px;
  font-style: normal;
}
.chantier__kicker {
  display: block;
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(190, 208, 241, 0.7);
}

@media (max-width: 900px) {
  .chantiers {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .chantiers {
    grid-template-columns: 1fr;
  }
  .chantier {
    aspect-ratio: 5 / 4;
  }
}

/* =======================================================
   ENGAGEMENTS
   ------------------------------------------------------- */
.engagements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.engagement {
  padding: clamp(28px, 3.2vw, 44px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
  transition: background 0.35s var(--ease);
}
.engagement::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}
.engagement:hover::before {
  transform: scaleY(1);
}
.engagement:hover {
  background: rgba(20, 86, 196, 0.04);
}
.engagement__num {
  font-family: var(--serif);
  font-variation-settings:
    "opsz" 144,
    "SOFT" 0,
    "WONK" 0;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--blue);
  display: block;
  margin-bottom: 18px;
}
.engagement h3 {
  font-family: var(--serif);
  font-variation-settings: var(--fraunces);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 26px);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.engagement p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 42ch;
}

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

/* =======================================================
   CONTACT — deep navy with brand-blue atmosphere
   ------------------------------------------------------- */
.section--contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper);
  border-top: 0;
  background:
    radial-gradient(
      1200px 800px at 88% 12%,
      rgba(20, 86, 196, 0.32),
      transparent 55%
    ),
    radial-gradient(
      900px 700px at 5% 95%,
      rgba(6, 16, 42, 0.55),
      transparent 60%
    ),
    linear-gradient(168deg, #0b1f46 0%, #050e28 100%);
}
.section--contact::after {
  /* fine grain to keep the flat panel feeling inked, not digital */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.4'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.25;
}
.section--contact .section__num {
  color: #8fb0e8;
  border-top-color: rgba(143, 176, 232, 0.45);
}
.section--contact .section__title {
  color: var(--paper);
}
.section--contact .section__title em {
  color: #bed0f1;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 50,
    "WONK" 1;
}
.section--contact .section__intro {
  color: rgba(243, 244, 246, 0.78);
}

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 28px;
  padding: clamp(28px, 3vw, 36px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid rgba(190, 208, 241, 0.16);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact__block {
}
.contact__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 244, 246, 0.5);
  margin-bottom: 12px;
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(243, 244, 246, 0.15);
}
.contact__block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper);
}
.contact__block a {
  transition: color 0.2s var(--ease);
}
.contact__block a:hover {
  color: #bed0f1;
}

/* form */
.contact__form {
  display: grid;
  gap: 22px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 244, 246, 0.6);
  font-weight: 500;
}
.field label span {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: rgba(243, 244, 246, 0.4);
  margin-left: 4px;
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(243, 244, 246, 0.25);
  padding: 12px 0;
  color: var(--paper);
  font-size: 15.5px;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.2s var(--ease);
  border-radius: 0;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7' fill='none'><path d='M1 1l5 5 5-5' stroke='%23f2eee6' stroke-width='1.2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}
.field select option {
  background: var(--ink);
  color: var(--paper);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--paper);
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(243, 244, 246, 0.35);
}

.field--inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 620px) {
  .field--inline {
    grid-template-columns: 1fr;
  }
}

.field--submit {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.section--contact .btn--ink {
  background: var(--paper);
  color: var(--blue);
  border-color: var(--paper);
}
.section--contact .btn--ink:hover {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.contact__note {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 244, 246, 0.55);
}
.contact__sent {
  font-size: 14px;
  color: #bed0f1;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid rgba(190, 208, 241, 0.35);
  background: rgba(190, 208, 241, 0.06);
}

@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
  .contact__info {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* =======================================================
   FOOTER
   ------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: rgba(243, 244, 246, 0.75);
  border-top: 1px solid rgba(243, 244, 246, 0.1);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr 0.9fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__mark {
  width: 56px;
  height: 50px;
  object-fit: contain;
  /* invert the blue-on-white logo to white-on-ink */
  filter: brightness(0) invert(1);
  opacity: 0.92;
  flex: none;
}
.footer__wordmark {
  font-family: var(--serif);
  font-variation-settings: var(--fraunces);
  font-weight: 400;
  font-size: 30px;
  color: var(--paper);
  letter-spacing: -0.015em;
  line-height: 1;
}
.footer__tag {
  font-family: var(--serif);
  font-variation-settings:
    "opsz" 144,
    "SOFT" 50,
    "WONK" 1;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: rgba(243, 244, 246, 0.55);
  margin: 0;
}

.footer__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 244, 246, 0.4);
  margin-bottom: 14px;
  font-weight: 500;
}

.footer__nav,
.footer__contact,
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.footer__nav a,
.footer__contact a {
  transition: color 0.2s var(--ease);
}
.footer__nav a:hover,
.footer__contact a:hover {
  color: var(--paper);
}

.footer__base {
  border-top: 1px solid rgba(243, 244, 246, 0.1);
}
.footer__base-row {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 244, 246, 0.4);
  font-weight: 500;
}

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
    padding-top: 48px;
    padding-bottom: 32px;
  }
}
@media (max-width: 520px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__base-row {
    flex-direction: column;
    gap: 8px;
  }
}

/* =======================================================
   REVEAL animations
   ------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal-in 1.2s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* scroll-observed sections — only hide when JS has initialized */
.js-reveal .on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.js-reveal .on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* =======================================================
   FLOATING WHATSAPP CTA
   ------------------------------------------------------- */
.fab {
  position: fixed;
  right: calc(env(safe-area-inset-right, 0px) + 20px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  z-index: 80;

  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 10px 28px -6px rgba(37, 211, 102, 0.45),
    0 4px 12px rgba(20, 20, 18, 0.1);

  opacity: 0;
  transform: translateY(16px) scale(0.92);
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.45s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.35s var(--ease);
}
.fab.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab:hover {
  background: #1db954;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 12px 36px -6px rgba(37, 211, 102, 0.55),
    0 6px 16px rgba(20, 20, 18, 0.12);
}
.fab:hover .fab__tooltip {
  opacity: 1;
  transform: translate(0, -50%);
}

.fab__icon {
  width: 28px;
  height: 28px;
}

.fab__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translate(6px, -50%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition:
    opacity 0.25s var(--ease),
    transform 0.35s var(--ease);
}
.fab__tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--ink);
}

/* hide tooltip on touch / narrow screens */
@media (max-width: 720px) {
  .fab__tooltip {
    display: none;
  }
  .fab {
    width: 52px;
    height: 52px;
  }
  .fab__icon {
    width: 26px;
    height: 26px;
  }
}

/* hide FAB when drawer is open so it doesn't overlap the menu */
body.drawer-open .fab {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.92);
}

/* accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
