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

:root {
  --text: #1e1e1e;
  --text-muted: #8a8a8a;
  --accent: #6ba230;
  --dark: #1e1e1e;
  --white: #ffffff;
  --surface-tint: #f6f5fa;
  --surface-alt: #f3f3f3;
  --border: #d7d7d7;
  /* The orange dot of the "i" in the BTI logo — used only for that motif */
  --accent-warm: #f09506;
  --font: 'Poppins', sans-serif;
  /* Outer spacing shrinks on narrower desktops so the layout never overflows.
     Font sizes stay fixed at the Figma values. */
  --gutter: clamp(24px, 7.85vw, 150px);
  --section-y: clamp(56px, 5.2vw, 100px);
  --col-gap: clamp(32px, 3.66vw, 70px);
  /* Motion tokens — mirrored in js/motion.js */
  --motion-fast: 0.3s;
  --motion-base: 0.6s;
  --motion-slow: 0.9s;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: 1912px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.label-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-tint);
  color: var(--text);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.24px;
  padding: 10px 20px;
  border-radius: 18px;
  white-space: nowrap;
}

.section-title {
  font-weight: 600;
  font-size: 57px;
  line-height: 1.3;
  letter-spacing: -0.57px;
  color: var(--text);
}

.section-desc {
  font-size: 24px;
  color: var(--text-muted);
  letter-spacing: -0.24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 25px 16px 30px;
  border-radius: 10px;
  font-size: 20px;
  letter-spacing: -0.2px;
  color: var(--white);
  white-space: nowrap;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--accent);
}

.btn-dark {
  background: var(--dark);
}

.inline-toggle {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-weight: 500;
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  transition: transform var(--motion-base) var(--ease-out),
    background-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease;
}

.navbar.is-solid {
  background: var(--white);
  box-shadow: 0 6px 24px rgba(30, 30, 30, 0.06);
}

.navbar.is-hidden {
  transform: translateY(-100%);
}

.nav-container {
  position: relative;
  max-width: 1912px;
  margin: 0 auto;
  padding: 40px var(--gutter) 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo-img {
  height: 58px;
  width: auto;
}

.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  padding: 8px 0;
  font-size: 24px;
  letter-spacing: -0.24px;
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
}

.nav-toggle img {
  width: 100%;
  height: 100%;
}

.nav-cta {
  flex-shrink: 0;
}

.nav-mobile-panel {
  display: none;
}

/* ---------- Hero ---------- */

.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--col-gap);
  padding-top: clamp(80px, 7.85vw, 150px);
  padding-bottom: var(--section-y);
}

.hero-copy {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-weight: 600;
  font-size: 57px;
  line-height: 1.3;
  letter-spacing: -0.57px;
  margin-top: 14px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 28px;
  letter-spacing: -0.28px;
  margin-top: 16px;
  /* Figma's text engine measures this copy a little wider than the browser
     does; capping the line box keeps the three-line break of the design. */
  max-width: 735px;
}

.hero-btn {
  margin-top: 36px;
}

.hero-visual {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
  aspect-ratio: 771 / 571;
}

/* The mask sits on the wrapper so the photo can move inside it. It is inlined
   (same shape as assets/images/hero-photo-mask.svg) because browsers refuse to
   load an external mask file when the page is opened straight from disk, which
   left the photo invisible. */
.hero-visual picture {
  --hero-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='771' height='571' viewBox='0 0 771 571' preserveAspectRatio='none'%3E%3Cpath d='M770.137 143.651C770.137 160.219 756.705 173.651 740.137 173.651H737.973C721.405 173.651 707.973 187.082 707.973 203.651V366.591C707.973 383.16 721.405 396.591 737.973 396.591H741C757.569 396.591 771 410.022 771 426.591V541C771 557.569 757.569 571 741 571H30C13.4315 571 0 557.569 0 541V422.061C0 407.994 11.4032 396.591 25.4698 396.591C39.5363 396.591 50.9395 385.188 50.9395 371.121V184.314C50.9395 167.746 64.371 154.314 80.9395 154.314H83.9664C100.535 154.314 113.966 140.883 113.966 124.314V30C113.966 13.4315 127.398 0 143.966 0H740.137C756.705 0 770.137 13.4315 770.137 30V143.651Z'/%3E%3C/svg%3E");
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  mask-image: var(--hero-mask);
  -webkit-mask-image: var(--hero-mask);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
}

/* The photo is rendered 9.41% wider than its mask window, left-aligned — the
   same crop as the Figma frame. */
.hero-photo {
  width: 109.41%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

/* Badges are anchored to the right edge of the photo so they never spill out
   of the page on narrower desktops. They stack upwards from the bottom edge
   at a fixed pitch, which keeps them clear of each other at every width —
   including while they tilt and float. */
.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(30, 30, 30, 0.1);
  white-space: nowrap;
}

.hero-badge img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.hero-badge span {
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.24px;
  color: var(--text);
}

.hero-badge--top {
  right: -0.8%;
  top: calc(100% - 253px);
  transform: rotate(2.89deg);
}

.hero-badge--middle {
  right: -5.3%;
  top: calc(100% - 149px);
  background: rgba(229, 231, 244, 0.55);
  backdrop-filter: blur(12px);
  transform: rotate(-2.53deg);
}

.hero-badge--bottom {
  right: 0.65%;
  top: calc(100% - 45px);
  background: var(--accent);
  transform: rotate(1.96deg);
  box-shadow: -14px 10px 8px rgba(53, 53, 53, 0.25);
}

.hero-badge--bottom span {
  color: var(--white);
}

.hero-badge--bottom img {
  filter: brightness(0) invert(1);
}

/* ---------- Sections shared ---------- */

.section {
  padding: var(--section-y) 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto clamp(40px, 3.66vw, 70px);
}

.section-header--left {
  align-items: flex-start;
  text-align: left;
  max-width: 1075px;
  margin-inline: 0;
}

.section-header .section-title {
  margin-top: 14px;
}

.section-header .section-desc {
  margin-top: 16px;
}

/* ---------- About ---------- */

.about-inner {
  display: flex;
  align-items: center;
  gap: var(--col-gap);
}

.about-image {
  flex: 0 0 auto;
  width: min(550px, 40%);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.about-image img {
  width: 79%;
  height: auto;
}

.about-copy {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-copy .section-title {
  margin-top: 14px;
}

.about-text {
  color: var(--text-muted);
  font-size: 24px;
  letter-spacing: -0.24px;
  margin-top: 16px;
}

/* Collapsible copy: full text on desktop, "See All" toggle on mobile */

.collapsible-short,
.collapsible-toggle {
  display: none;
}

.collapsible-full {
  display: inline;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--surface-tint);
  border-radius: 20px;
  padding: clamp(32px, 3.1vw, 60px) clamp(24px, 2.6vw, 50px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.service-card h3 {
  font-weight: 600;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.32px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 20px;
  letter-spacing: -0.2px;
}

.services-extra {
  display: contents;
}

.services-toggle {
  display: none;
}

/* ---------- Products ---------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ---------- Projects ---------- */

.projects {
  background: var(--surface-alt);
}

.projects .label-pill {
  background: var(--white);
}

.projects .section-desc {
  color: var(--text);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--white);
  border-radius: 30px;
  padding: clamp(32px, 3.1vw, 60px) clamp(24px, 2.6vw, 50px) clamp(32px, 3.1vw, 60px) clamp(28px, 4.2vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-logo {
  align-self: flex-start;
  height: 50px;
  width: auto;
}

.project-desc {
  color: var(--text-muted);
  font-size: 18px;
  letter-spacing: -0.18px;
  margin-top: 12px;
  margin-bottom: 28px;
}

/* Wraps the badge row under the label when the card gets too narrow, so the
   button never spills past the card edge. */
.project-store {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 30px;
  max-width: 100%;
  background: var(--dark);
  color: var(--white);
  border-radius: 10px;
  padding: 16px 25px 16px 30px;
  margin-top: auto;
  font-size: 20px;
  letter-spacing: -0.2px;
}

.project-store > span {
  white-space: nowrap;
}

.project-store-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

.project-store-badges img,
.project-store-badges a {
  display: block;
  height: 39px;
  width: 135px;
}

.project-store-badges a img {
  width: 100%;
  height: 100%;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--white);
  padding: clamp(80px, 7.85vw, 150px) 0 70px;
}

.footer-inner {
  max-width: 1912px;
  margin: 0 auto;
  padding-inline: clamp(24px, 10.45vw, 200px);
}

.footer-content {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  row-gap: 48px;
}

.footer-brand {
  flex: 1 1 400px;
  max-width: 500px;
}

.footer-logo {
  width: min(374px, 100%);
  height: auto;
}

.footer-about {
  margin-top: 30px;
}

.footer-about h3 {
  font-weight: 500;
  font-size: 26px;
  margin-bottom: 10px;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1.8;
  letter-spacing: 0.4px;
}

/* Columns keep a readable minimum width and wrap instead of colliding when the
   viewport is narrower than the 1912px design. */
.footer-columns {
  flex: 1 1 560px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 16px;
  padding-left: clamp(0px, 5.2vw, 100px);
}

.footer-col {
  flex: 1 1 175px;
  min-width: 175px;
}

.footer-col:first-child {
  flex: 0 1 274px;
  min-width: 140px;
}

.footer-col-header {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0 0 15px;
  font-family: inherit;
  font-weight: 500;
  font-size: 26px;
  color: var(--text);
  pointer-events: none;
  text-align: left;
}

.footer-col-arrow {
  display: none;
}

.footer-col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col-list a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.footer-bottom {
  margin-top: 100px;
  text-align: center;
  color: var(--text);
  font-size: 24px;
  letter-spacing: -0.24px;
}

/* =====================================================
   NAVIGATION — collapses to the hamburger menu below 1200px,
   where the three 190px nav items no longer fit.
   ===================================================== */

@media (max-width: 1199px) {
  .nav-menu,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-mobile-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px var(--gutter);
    background: var(--white);
    border-top: 1px solid var(--border);
  }

  .nav-mobile-panel.is-open {
    display: flex;
  }

  .nav-mobile-panel .nav-link {
    width: auto;
    padding: 8px 0;
    font-size: 18px;
  }

  .nav-mobile-panel .nav-cta {
    display: inline-flex;
    font-size: 14px;
    padding: 12px 15px 12px 20px;
  }
}

/* =====================================================
   TABLET (601–1199px) — keeps the desktop design and its
   Figma type sizes, but stacks the columns so nothing is
   squeezed or cut off.
   ===================================================== */

@media (min-width: 601px) and (max-width: 1199px) {
  .nav-container {
    padding: 24px var(--gutter);
  }

  .nav-logo-img {
    height: 44px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
    padding-top: 56px;
  }

  .hero-subtitle {
    max-width: none;
  }

  .about-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .about-image {
    width: min(550px, 100%);
    margin-inline: auto;
  }

  .services-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .services-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   MOBILE (≤600px) — the 375px-wide Figma mobile frames.
   ===================================================== */

@media (max-width: 600px) {
  .container,
  .footer-inner,
  .nav-container {
    max-width: none;
    padding-inline: 16px;
  }

  .section {
    padding: 0;
  }

  /* Navbar */

  .nav-container {
    padding: 20px 16px;
    gap: 0;
  }

  .nav-logo-img {
    height: 32px;
  }

  .nav-mobile-panel {
    padding: 16px;
  }

  /* Shared type scale */

  .label-pill {
    font-size: 10px;
    letter-spacing: -0.1px;
    padding: 8px 14px;
    border-radius: 8px;
  }

  .section-title {
    font-size: 24px;
    letter-spacing: -0.24px;
  }

  .section-desc {
    font-size: 14px;
    letter-spacing: -0.14px;
  }

  .section-header {
    align-items: flex-start;
    text-align: left;
    max-width: none;
    margin: 0 0 24px;
  }

  .section-header .section-title,
  .section-header .section-desc {
    margin-top: 10px;
  }

  .btn {
    font-size: 14px;
    letter-spacing: -0.14px;
    padding: 12px 15px 12px 20px;
  }

  /* Hero — image first, copy below */

  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 40px 16px;
  }

  .hero-visual {
    order: 1;
    margin-bottom: 12px;
  }

  .hero-copy {
    order: 2;
    padding-top: 20px;
  }

  .hero-title {
    font-size: 24px;
    letter-spacing: -0.24px;
    margin-top: 10px;
  }

  .hero-subtitle {
    font-size: 14px;
    letter-spacing: -0.14px;
    margin-top: 10px;
    max-width: none;
  }

  .hero-btn {
    margin-top: 18px;
  }

  .hero-badge {
    gap: 8px;
    padding: 6px 12px;
    border-radius: 10px;
  }

  .hero-badge img {
    width: 22px;
    height: 22px;
  }

  .hero-badge span {
    font-size: 11px;
    letter-spacing: -0.11px;
  }

  .hero-badge--top {
    right: 2%;
    top: calc(100% - 112px);
  }

  .hero-badge--middle {
    right: -2%;
    top: calc(100% - 66px);
  }

  .hero-badge--bottom {
    right: 3%;
    top: calc(100% - 20px);
    box-shadow: -6px 5px 6px rgba(53, 53, 53, 0.2);
  }

  /* About */

  .about-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 16px 40px;
  }

  .about-image {
    width: 100%;
    border-radius: 30px;
    padding: 10px;
  }

  .about-image img {
    width: 73.4%;
  }

  .about-copy {
    padding-top: 24px;
  }

  .about-copy .section-title {
    margin-top: 10px;
  }

  .about-text {
    font-size: 14px;
    letter-spacing: -0.14px;
    margin-top: 10px;
  }

  /* Collapsible copy */

  .collapsible-short,
  .collapsible-toggle {
    display: inline;
  }

  .collapsible-full {
    display: none;
  }

  .collapsible.is-expanded .collapsible-short {
    display: none;
  }

  .collapsible.is-expanded .collapsible-full {
    display: inline;
  }

  /* Services */

  .services-inner {
    padding: 0 16px;
  }

  .services-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .service-card {
    padding: 25px 20px;
    border-radius: 20px;
    gap: 8px;
  }

  .service-icon {
    width: 40px;
    height: 40px;
  }

  .service-card h3 {
    font-size: 18px;
    letter-spacing: -0.18px;
  }

  .service-card p {
    font-size: 12px;
    letter-spacing: -0.12px;
  }

  .services-extra {
    display: none;
    flex-direction: column;
    gap: 22px;
  }

  .services-extra.is-open {
    display: flex;
  }

  .services-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    background: none;
    border: none;
    padding: 22px 0 40px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: -0.12px;
  }

  .services-toggle img {
    width: 24px;
    height: 24px;
    transition: transform var(--motion-fast) var(--ease-out);
  }

  .services-toggle.is-open img {
    transform: rotate(180deg);
  }

  /* Products */

  .products-inner {
    padding: 0 16px 40px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Projects */

  .projects-inner {
    padding: 26px 16px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-card {
    border-radius: 20px;
    padding: 25px 20px;
    align-items: stretch;
  }

  .project-logo {
    height: 40px;
  }

  .project-desc {
    font-size: 12px;
    letter-spacing: -0.12px;
    margin-top: 10px;
    margin-bottom: 18px;
  }

  .project-store {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px 16px;
    font-size: 16px;
    letter-spacing: -0.16px;
  }

  .project-store-badges {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  /* Fills the button at the 375px Figma width, then stops growing on wider
     phones so the badges never look oversized. */
  .project-store-badges img,
  .project-store-badges a {
    flex: 1 1 0;
    width: auto;
    height: auto;
    max-width: 180px;
    aspect-ratio: 204 / 59;
  }

  .project-store-badges a img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  /* Footer */

  .site-footer {
    padding: 50px 0;
  }

  .footer-inner {
    padding-inline: 20px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-brand {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .footer-logo {
    width: 255px;
    margin: 0 auto;
  }

  .footer-about {
    margin-top: 40px;
  }

  .footer-about h3 {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 10px;
  }

  .footer-about p {
    font-size: 12px;
    line-height: normal;
    letter-spacing: -0.12px;
  }

  .footer-columns {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding-left: 0;
  }

  .footer-col,
  .footer-col:first-child {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }

  .footer-col-header {
    width: 100%;
    justify-content: center;
    gap: 5px;
    padding: 0;
    font-size: 14px;
    line-height: 28px;
    pointer-events: auto;
  }

  .footer-col-arrow {
    display: block;
    width: 10px;
    height: 10px;
    transition: transform var(--motion-fast) var(--ease-out);
  }

  .footer-col.is-open .footer-col-arrow {
    transform: rotate(180deg);
  }

  .footer-col-list {
    display: none;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding-top: 10px;
  }

  .footer-col.is-open .footer-col-list {
    display: flex;
  }

  .footer-bottom {
    margin-top: 40px;
    font-size: 12px;
    letter-spacing: -0.12px;
  }
}

/* =====================================================
   MOTION — driven by js/motion.js (GSAP + ScrollTrigger + Lenis).
   Start states are scoped to .js-motion, which is only set when
   JavaScript runs and the visitor has not asked for reduced motion.
   ===================================================== */

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis {
  scroll-behavior: auto;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

[tabindex='-1']:focus {
  outline: none;
}

.js-motion [data-reveal]:not(.is-revealed) {
  visibility: hidden;
}

/* Line-by-line title reveal */

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.line-inner {
  display: block;
}

.word {
  display: inline-block;
}

.title-dot {
  position: relative;
  display: inline-block;
  width: 0;
  height: 0;
}

.title-dot i {
  position: absolute;
  left: 0.14em;
  bottom: 0.04em;
  width: 0.2em;
  height: 0.2em;
  border-radius: 14%;
  background: var(--accent-warm);
}

/* Scroll progress */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.scroll-progress-bar {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.scroll-progress-dot {
  position: absolute;
  top: -2px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-warm);
  transform: translateX(-100%);
}

/* Active nav marker */

.nav-dot {
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-warm);
  pointer-events: none;
}

.nav-mobile-panel .nav-link.is-active {
  font-weight: 600;
}

/* Preloader */

.preloader {
  display: none;
}

html.js-preload {
  overflow: hidden;
}

.js-preload .preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--white);
}

.preloader-logo {
  width: min(200px, 42vw);
  height: auto;
  overflow: hidden;
}

.preloader-dot,
.preloader-wipe {
  visibility: hidden;
}

/* The letters rise in CSS so the first paint never waits for the scripts;
   js/motion.js takes over for the dot and the wipe. */
.preloader-letter {
  fill: var(--accent);
  animation: preloader-rise 0.5s var(--ease-out) both;
}

.preloader-letter:nth-child(2) {
  animation-delay: 0.08s;
}

.preloader-letter:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes preloader-rise {
  from {
    transform: translateY(1200px);
  }
}

/* Behind the preloader the hero photo is painted straight away, so the wipe
   opens onto it and the largest paint is not delayed. */
.js-preload .hero-visual picture[data-reveal] {
  visibility: visible;
}

.preloader-dot {
  fill: var(--accent-warm);
}

.preloader-wipe {
  position: absolute;
  border-radius: 14%;
  background: var(--accent-warm);
}

/* Hover — fine pointers only */

@media (hover: hover) and (pointer: fine) {
  .btn-icon {
    transition: transform var(--motion-fast) var(--ease-out);
  }

  .btn:hover .btn-icon {
    transform: translateX(4px);
  }

  /* The transition waits for the entrance to finish so it never fights it */
  html:not(.js-motion) .service-card,
  .service-card.is-revealed {
    transition: transform var(--motion-fast) var(--ease-out),
      box-shadow var(--motion-fast) var(--ease-out);
  }

  html:not(.js-motion) .service-icon,
  .service-card.is-revealed .service-icon {
    transition: transform var(--motion-fast) var(--ease-out);
  }

  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(30, 30, 30, 0.08);
  }

  .service-card:hover .service-icon {
    transform: translateY(-3px) scale(1.06);
  }

  .project-store-badges a {
    transition: transform var(--motion-fast) var(--ease-out);
  }

  .project-store-badges a:hover {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
